| | |
| | | int k = 0; |
| | | int n = 0; //å䏿¹çææ¡ç ä¸çç¬¬å æ¡ |
| | | string sTMNumber = ""; //æ¡ç èªå®ä¹åç¼ |
| | | |
| | | string HCoilNO = ""; |
| | | string HFurnaceNO = ""; |
| | | string HFactory = ""; |
| | | decimal HAuxQty = 0; |
| | | string HheatNO = ""; |
| | | |
| | | DataSet Ds; |
| | | msg2 = msg2.Replace("\\", ""); |
| | | msg2 = msg2.Replace("\n", ""); //\n |
| | |
| | | HNumber = DBUtility.ClsPub.isStrNull(ordrlist[j].HMaterID); |
| | | HMaterNumber = DBUtility.ClsPub.isStrNull(ordrlist[j].HMaterNumber); |
| | | HBatchNo = ClsPub.isStrNull(ordrlist[j].HBatchNo); |
| | | |
| | | HCoilNO = ClsPub.isStrNull(ordrlist[j].HCoilNO); |
| | | HFurnaceNO = ClsPub.isStrNull(ordrlist[j].HFurnaceNO); |
| | | HFactory = ClsPub.isStrNull(ordrlist[j].HFactory); |
| | | HAuxQty = ClsPub.isLong(ordrlist[j].HAuxQty); |
| | | HheatNO = ClsPub.isStrNull(ordrlist[j].HheatNO); |
| | | //æ¥æè·åæ¹å¼ |
| | | sDate = DateTime.Now.ToString(); |
| | | // |
| | |
| | | barcode.HInnerBillNo2 = ordrlist[j].HInnerBillNo; |
| | | barcode.HMaker2 = ordrlist[j].HMaker; |
| | | barcode.HGiveAwayFlag2 = ordrlist[j].HGiveAwayFlag; |
| | | |
| | | barcode.HCoilNO = ordrlist[j].HCoilNO; |
| | | barcode.HFurnaceNO = ordrlist[j].HFurnaceNO; |
| | | barcode.HFactory = ordrlist[j].HFactory; |
| | | barcode.HAuxQty = ordrlist[j].HAuxQty; |
| | | barcode.HheatNO = ordrlist[j].HheatNO; |
| | | ListRows.Add(barcode); |
| | | k = k + 1; |
| | | n = n + 1; |
| | |
| | | string HInnerBillNo = ""; |
| | | bool HGiveAwayFlag = false; |
| | | Int64 HEntryID = 0; |
| | | |
| | | string HCoilNO2 = ""; |
| | | string HFurnaceNO2 = ""; |
| | | string HFactory2 = ""; |
| | | decimal HAuxQty2 = 0; |
| | | string HheatNO2 = ""; |
| | | DateTime HProduceDate; |
| | | DateTime HExpiryDate; |
| | | try |
| | | { |
| | | oCN.BeginTran(); |
| | |
| | | HSeOrderBillNo = ClsPub.isStrNull(ListRows[i].HSeOrderBillNo2); |
| | | HInnerBillNo = ClsPub.isStrNull(ListRows[i].HInnerBillNo2); |
| | | HGiveAwayFlag = ClsPub.isBool(ListRows[i].HGiveAwayFlag2); |
| | | |
| | | HCoilNO2 = ClsPub.isStrNull(ListRows[i].HCoilNO); |
| | | HFurnaceNO2 = ClsPub.isStrNull(ListRows[i].HFurnaceNO); |
| | | HFactory2 = ClsPub.isStrNull(ListRows[i].HFactory); |
| | | HAuxQty2 = ClsPub.isLong(ListRows[i].HAuxQty); |
| | | HheatNO2 = ClsPub.isStrNull(ListRows[i].HheatNO); |
| | | HProduceDate = ClsPub.isDate(ListRows[i].HProduceDate); |
| | | HExpiryDate = ClsPub.isDate(ListRows[i].HExpiryDate); |
| | | oCN.RunProc("insert into Gy_BarCodeBill (HBarCode,HBarCodeType,HMaterID,HUnitID,HQty" + |
| | | ",HBatchNo,HSupID,HGroupID,HMaker,HMakeDate,HPrintQty,HinitQty" + |
| | | ",HSourceInterID,HSourceEntryID,HSourceBillNo,HSourceBillType,HEndQty " + |
| | |
| | | ",HCusID,HCusType,HEndDate,HWorkLineName,HBarCodeDate " + |
| | | ",HSTOCKORGID,HOWNERID,HSeOrderBillNo,HInterID,HEntryID " + |
| | | ",HGiveAwayFlag " + |
| | | ",HMaterName,HMaterModel,HPinfan,HAuxPropID,HMTONo,HInnerBillNo " + |
| | | ",HMaterName,HMaterModel,HPinfan,HAuxPropID,HMTONo,HInnerBillNo" + |
| | | ",HCoilNO,HFurnaceNO,HFactory,HAuxQty,HheatNO,HProduceDate,HExpiryDate " + |
| | | ") values (" |
| | | + "'" + HBarCode + "','" + HBarCodeType + "'," + HMaterID.ToString() + "," + HUnitID.ToString() + "," + HQty2.ToString() |
| | | + ",'" + HBatchNo2 + "'," + HSupID.ToString() + "," + HGroupID.ToString() + ",'" + ClsPub.CurUserName + "',getdate()," + HPrintQty.ToString() + "," + HQty2.ToString() |
| | |
| | | + ", " + 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 + "')"); |
| | | + ",'" + HMaterName + "','" + HMaterModel + "','" + HPinfan + "'," + HAuxPropID.ToString() + ",'" + HMTONo + "','" + HInnerBillNo + "','" + HCoilNO2 + "','" + HFurnaceNO2 + "','" + HFactory2 + "'," + HAuxQty2 + ",'" + HheatNO2 + "','" + HProduceDate + "','" + HExpiryDate + "'" + ")"); |
| | | |
| | | |
| | | //HNumber = ClsPub.isStrNull(grdSub.Rows[i].Cells[HMaterID2Col].Value); |