| | |
| | | decimal HAuxQty = 0; |
| | | string HheatNO = ""; |
| | | |
| | | Int64 HGroupID = 0; |
| | | long HEmpID = 0; |
| | | |
| | | DataSet Ds; |
| | | msg2 = msg2.Replace("\\", ""); |
| | | msg2 = msg2.Replace("\n", ""); //\n |
| | |
| | | HFactory = ClsPub.isStrNull(ordrlist[j].HFactory); |
| | | HAuxQty = ClsPub.isLong(ordrlist[j].HAuxQty); |
| | | HheatNO = ClsPub.isStrNull(ordrlist[j].HheatNO); |
| | | HGroupID = ClsPub.isInt(ordrlist[j].HGroupID); |
| | | HEmpID = ClsPub.isLong(ordrlist[j].HEmpID); |
| | | //鏃ユ湡鑾峰彇鏂瑰紡 |
| | | sDate = DateTime.Now.ToString(); |
| | | // |
| | |
| | | barcode.HFactory = ordrlist[j].HFactory; |
| | | barcode.HAuxQty = ordrlist[j].HAuxQty; |
| | | barcode.HheatNO = ordrlist[j].HheatNO; |
| | | |
| | | barcode.HGroupID2 = ordrlist[j].HGroupID; |
| | | barcode.HEmpID2 = ordrlist[j].HEmpID; |
| | | ListRows.Add(barcode); |
| | | k = k + 1; |
| | | n = n + 1; |
| | |
| | | double HQty2 = 0; |
| | | string HBatchNo2 = ""; |
| | | Int64 HSupID = 0; |
| | | Int64 HGroupID = 0; |
| | | Int64 HGroupID2 = 0; |
| | | int HPrintQty = 0; |
| | | Int64 HSourceInterID = 0; |
| | | Int64 HSourceEntryID = 0; |
| | |
| | | string HheatNO2 = ""; |
| | | DateTime HProduceDate; |
| | | DateTime HExpiryDate; |
| | | long HEmpID2 = 0; |
| | | |
| | | try |
| | | { |
| | | oCN.BeginTran(); |
| | |
| | | HheatNO2 = ClsPub.isStrNull(ListRows[i].HheatNO); |
| | | HProduceDate = ClsPub.isDate(ListRows[i].HProduceDate); |
| | | HExpiryDate = ClsPub.isDate(ListRows[i].HExpiryDate); |
| | | HGroupID2 = ClsPub.isInt(ListRows[i].HGroupID2); |
| | | HEmpID2 = ClsPub.isLong(ListRows[i].HEmpID2); |
| | | oCN.RunProc("insert into Gy_BarCodeBill (HBarCode,HBarCodeType,HMaterID,HUnitID,HQty" + |
| | | ",HBatchNo,HSupID,HGroupID,HMaker,HMakeDate,HPrintQty,HinitQty" + |
| | | ",HSourceInterID,HSourceEntryID,HSourceBillNo,HSourceBillType,HEndQty " + |
| | |
| | | ",HSTOCKORGID,HOWNERID,HSeOrderBillNo,HInterID,HEntryID " + |
| | | ",HGiveAwayFlag " + |
| | | ",HMaterName,HMaterModel,HPinfan,HAuxPropID,HMTONo,HInnerBillNo" + |
| | | ",HCoilNO,HFurnaceNO,HFactory,HAuxQty,HheatNO,HProduceDate,HExpiryDate " + |
| | | ",HCoilNO,HFurnaceNO,HFactory,HAuxQty,HheatNO,HProduceDate,HExpiryDate,HEmpID " + |
| | | ") values (" |
| | | + "'" + HBarCode + "','" + HBarCodeType + "'," + HMaterID.ToString() + "," + HUnitID.ToString() + "," + HQty2.ToString() |
| | | + ",'" + HBatchNo2 + "'," + HSupID.ToString() + "," + HGroupID.ToString() + ",'" + ClsPub.CurUserName + "',getdate()," + HPrintQty.ToString() + "," + HQty2.ToString() |
| | | + ",'" + HBatchNo2 + "'," + HSupID.ToString() + "," + HGroupID2.ToString() + ",'" + ClsPub.CurUserName + "',getdate()," + HPrintQty.ToString() + "," + HQty2.ToString() |
| | | + ", " + HSourceInterID.ToString() + "," + HSourceEntryID.ToString() + ",'" + HSourceBillNo + "','" + HSourceBillType + "','" + HWei + "'" |
| | | + ", " + HBarcodeQtys.ToString() + "," + HBarcodeNo.ToString() + "," + HDeptID.ToString() + "," + HWhID.ToString() + "," + HSPID.ToString() + ",'" + HRemark + "'" |
| | | + ", " + HCusID.ToString() + ",'" + HCusType + "','" + HEndDate.ToShortDateString() + "','" + HWorkLineName + "','" + sDate + "'" |
| | | + ", " + HOrgID.ToString() + "," + HOrgID.ToString() + ",'" + HSeOrderBillNo + "'," + HInterID.ToString() + "," + HEntryID.ToString() + "" |
| | | + ", " + DBUtility.ClsPub.BoolToString(HGiveAwayFlag) |
| | | + ",'" + HMaterName + "','" + HMaterModel + "','" + HPinfan + "'," + HAuxPropID.ToString() + ",'" + HMTONo + "','" + HInnerBillNo + "','" + HCoilNO2 + "','" + HFurnaceNO2 + "','" + HFactory2 + "'," + HAuxQty2 + ",'" + HheatNO2 + "','" + HProduceDate + "','" + HExpiryDate + "'" + ")"); |
| | | + ",'" + HMaterName + "','" + HMaterModel + "','" + HPinfan + "'," + HAuxPropID.ToString() + ",'" + HMTONo + "','" + HInnerBillNo + "','" + HCoilNO2 + "','" + HFurnaceNO2 + "','" + HFactory2 + "'," + HAuxQty2 + ",'" + HheatNO2 + "','" + HProduceDate + "','" + HExpiryDate + "'," + HEmpID2.ToString() + ")"); |
| | | |
| | | |
| | | //HNumber = ClsPub.isStrNull(grdSub.Rows[i].Cells[HMaterID2Col].Value); |