| | |
| | | text = str9 + num35.ToString() + text25 + "#" + num34; |
| | | text1 = str9 + num35.ToString() + text25; |
| | | DataSet dataSet21 = clsCN4.RunProcReturn(" select * from Gy_BarCodeBill where HBarCode= '" + text1 + "'", "Gy_BarCodeBill"); |
| | | bool flag15 = dataSet21.Tables[0].Rows.Count > 0; |
| | | bool flag15 = dataSet21.Tables[0].Rows.Count > 0; |
| | | |
| | | if (!flag15) |
| | | { |
| | | string billCode4 = "85"; |
| | |
| | | //如果存在 再判断扫码临时表是否存在该条码 |
| | | //如果不存在 进行扫源单的方法 |
| | | DataSet Dss5; |
| | | Dss5 = oCn.RunProcReturn(" select * from Gy_BarCodeBill where HBarCode= '" + HTM + "'", "Gy_BarCodeBill"); |
| | | Dss5 = oCn.RunProcReturn(" select * from Gy_BarCodeBill where HBarCode= '" + HTM + "' and HSourceBillNo='" + HSourceBillNo + "'", "Gy_BarCodeBill"); |
| | | if (Dss5.Tables[0].Rows.Count > 0) |
| | | { |
| | | DataSet ds; |