|
|
@@ -700,24 +700,36 @@ namespace Dongke.IBOSS.PRD.Service.BarcodePrintService
|
|
|
return sre;
|
|
|
}
|
|
|
|
|
|
+ // string ZZXBZ = string.Empty;
|
|
|
+ // string ZZXBZ2 = string.Empty;
|
|
|
+ // string gb = "GB";
|
|
|
+ // int index = printData.Rows[0]["ZZXBZ"].ToString().IndexOf(gb, 2);
|
|
|
+ // if (index != -1)
|
|
|
+ //{
|
|
|
+ // int iee = index;
|
|
|
+ // ZZXBZ = printData.Rows[0]["ZZXBZ"].ToString().Substring(index);
|
|
|
+ // index = ZZXBZ.IndexOf(gb, 2);
|
|
|
+ // if (index != -1)
|
|
|
+ // {
|
|
|
+
|
|
|
+ // }
|
|
|
+ // ZZXBZ = printData.Rows[0]["ZZXBZ"].ToString().Substring(0, index + iee - 1);
|
|
|
+ // }
|
|
|
+
|
|
|
|
|
|
- string gb = "GB";
|
|
|
- int index = printData.Rows[0]["ZZXBZ"].ToString().IndexOf(gb,2);
|
|
|
- int iee = index;
|
|
|
- string ZZXBZ = printData.Rows[0]["ZZXBZ"].ToString().Substring(index);
|
|
|
- index = ZZXBZ.IndexOf(gb, 2);
|
|
|
- ZZXBZ = printData.Rows[0]["ZZXBZ"].ToString().Substring(0,index+ iee - 1);
|
|
|
-
|
|
|
- string gb2 = "GB";
|
|
|
- int index2 = printData.Rows[0]["ZZXBZ"].ToString().IndexOf(gb2, 3);
|
|
|
- string ZZXBZ2 = printData.Rows[0]["ZZXBZ"].ToString().Substring(index2);
|
|
|
- index2 = ZZXBZ2.IndexOf(gb2, 2);
|
|
|
- ZZXBZ2 = ZZXBZ2.Substring(index2);
|
|
|
+ // string gb2 = "GB";
|
|
|
+ // int index2 = printData.Rows[0]["ZZXBZ"].ToString().IndexOf(gb2, 3);
|
|
|
+ //if (index2 != -1)
|
|
|
+ //{
|
|
|
+ // ZZXBZ2 = printData.Rows[0]["ZZXBZ"].ToString().Substring(index2);
|
|
|
+ // index2 = ZZXBZ2.IndexOf(gb2, 2);
|
|
|
+ // ZZXBZ2 = ZZXBZ2.Substring(index2);
|
|
|
+ // }
|
|
|
|
|
|
- if (printData.Rows[0]["ZZXBZ"].ToString() != "")
|
|
|
- {
|
|
|
- printData.Rows[0]["ZZXBZ"] = ZZXBZ + "\r\n" + ZZXBZ2;
|
|
|
- }
|
|
|
+ // if (printData.Rows[0]["ZZXBZ"].ToString() != "")
|
|
|
+ //{
|
|
|
+ // printData.Rows[0]["ZZXBZ"] = ZZXBZ + "\r\n" + ZZXBZ2;
|
|
|
+ //}
|
|
|
//if (printerID == null && printData.Rows.Count > 0)
|
|
|
//{
|
|
|
// int goodsCopies = Convert.ToInt32(printData.Rows[0]["printcopies"]);
|