| | |
| | | public const Int16 HInstructNoCol = 46; |
| | | public const Int16 HSeOrderBillIDCol = 47; |
| | | public const Int16 HSeOrderBillNoCol = 48; |
| | | public const Int16 HWhIDCol = 49; |
| | | public const Int16 HWhNumberCol = 50; |
| | | public const Int16 HWhNameCol = 51; |
| | | public const Int16 HSPIDCol = 52; |
| | | public const Int16 HSPNumberCol = 53; |
| | | public const Int16 HSPNameCol = 54; |
| | | public const Int16 HinitQtyCol = 55; |
| | | public const Int16 HRemarkCol = 56; |
| | | public const Int16 HPinfanBarCodeCol = 57; |
| | | public const Int16 HMTONoCol = 58; |
| | | public const Int16 HShowDateCol = 59; |
| | | public const Int16 HInnerBillNoCol = 60; |
| | | public const Int16 HMakerCol = 61; |
| | | public const Int16 HSeOrderSEQCol = 49; |
| | | public const Int16 HWhIDCol = 50; |
| | | public const Int16 HWhNumberCol = 51; |
| | | public const Int16 HWhNameCol = 52; |
| | | public const Int16 HSPIDCol = 53; |
| | | public const Int16 HSPNumberCol = 54; |
| | | public const Int16 HSPNameCol = 55; |
| | | public const Int16 HinitQtyCol = 56; |
| | | public const Int16 HRemarkCol = 57; |
| | | public const Int16 HPinfanBarCodeCol = 58; |
| | | public const Int16 HMTONoCol = 59; |
| | | public const Int16 HShowDateCol = 60; |
| | | public const Int16 HInnerBillNoCol = 61; |
| | | public const Int16 HMakerCol = 62; |
| | | |
| | | public Int16 HSelectCol = 0; |
| | | public Int16 HSno2Col = 1; |
| | |
| | | public Int16 HInstructNo2Col = 43; |
| | | public Int16 HSeOrderBillID2Col = 44; |
| | | public Int16 HSeOrderBillNo2Col = 45; |
| | | public Int16 HWhID2Col = 46; |
| | | public Int16 HWhNumber2Col = 47; |
| | | public Int16 HWhName2Col = 48; |
| | | public Int16 HSPID2Col = 49; |
| | | public Int16 HSPNumber2Col = 50; |
| | | public Int16 HSPName2Col = 51; |
| | | public Int16 HRemark2Col = 52; |
| | | public Int16 HPinfanBarCode2Col = 53; |
| | | public Int16 HMTONo2Col = 54; |
| | | public Int16 HShowDate2Col = 55; |
| | | public Int16 HInnerBillNo2Col = 56; |
| | | public Int16 HMaker2Col = 57; |
| | | public Int16 HEntryID2Col = 58; |
| | | public Int16 HSeOrderSEQ2Col = 46; |
| | | public Int16 HWhID2Col = 47; |
| | | public Int16 HWhNumber2Col = 48; |
| | | public Int16 HWhName2Col = 49; |
| | | public Int16 HSPID2Col = 50; |
| | | public Int16 HSPNumber2Col = 51; |
| | | public Int16 HSPName2Col = 52; |
| | | public Int16 HRemark2Col = 53; |
| | | public Int16 HPinfanBarCode2Col = 54; |
| | | public Int16 HMTONo2Col = 55; |
| | | public Int16 HShowDate2Col = 56; |
| | | public Int16 HInnerBillNo2Col = 57; |
| | | public Int16 HMaker2Col = 58; |
| | | public Int16 HEntryID2Col = 59; |
| | | // |
| | | public string ModName = "85"; |
| | | public string ModCaption = "æ¡ç çæ"; |
| | |
| | | grdSub.Rows[i].Cells[HSourceName2Col].Value = grdMain.Rows[j].Cells[HSourceNameCol].Value; |
| | | grdSub.Rows[i].Cells[HEndDate2Col].Value = grdMain.Rows[j].Cells[HEndDateCol].Value; |
| | | grdSub.Rows[i].Cells[HSeOrderBillNo2Col].Value = grdMain.Rows[j].Cells[HSeOrderBillNoCol].Value; |
| | | grdSub.Rows[i].Cells[HSeOrderSEQ2Col].Value = grdMain.Rows[j].Cells[HSeOrderSEQCol].Value; |
| | | grdSub.Rows[i].Cells[HInnerBillNo2Col].Value = grdMain.Rows[j].Cells[HInnerBillNoCol].Value; |
| | | grdSub.Rows[i].Cells[HMaker2Col].Value = grdMain.Rows[j].Cells[HMakerCol].Value; |
| | | grdSub.Rows[i].Cells[HGiveAwayFlag2Col].Value = grdMain.Rows[j].Cells[HGiveAwayFlagCol].Value; |
| | |
| | | DateTime HEndDate; |
| | | string HWorkLineName = ""; |
| | | string HSeOrderBillNo = ""; |
| | | Int64 HSeOrderSEQ = 0; |
| | | string HInnerBillNo = ""; |
| | | bool HGiveAwayFlag = false; |
| | | Int64 HEntryID = 0; |
| | |
| | | HEndDate = ClsPub.isDate(grdSub.Rows[i].Cells[HEndDate2Col].Value); |
| | | HWorkLineName = ClsPub.isStrNull(grdSub.Rows[i].Cells[HSourceName2Col].Value); |
| | | HSeOrderBillNo = ClsPub.isStrNull(grdSub.Rows[i].Cells[HSeOrderBillNo2Col].Value); |
| | | HSeOrderSEQ = ClsPub.isLong(grdSub.Rows[i].Cells[HSeOrderSEQ2Col].Value); |
| | | HInnerBillNo = ClsPub.isStrNull(grdSub.Rows[i].Cells[HInnerBillNo2Col].Value); |
| | | HGiveAwayFlag = ClsPub.isBool(grdSub.Rows[i].Cells[HGiveAwayFlag2Col].Value); |
| | | oCn.RunProc("insert into Gy_BarCodeBill (HBarCode,HBarCodeType,HMaterID,HUnitID,HQty" + |
| | |
| | | ",HBarcodeQtys,HBarcodeNo,HDeptID,HWhID,HSPID,HRemark " + |
| | | ",HCusID,HCusType,HEndDate,HWorkLineName,HBarCodeDate " + |
| | | ",HSTOCKORGID,HOWNERID,HSeOrderBillNo,HInterID,HEntryID " + |
| | | ",HGiveAwayFlag " + |
| | | ",HGiveAwayFlag,HSeOrderSEQ " + |
| | | ",HMaterName,HMaterModel,HPinfan,HAuxPropID,HMTONo,HInnerBillNo " + |
| | | ") values (" |
| | | + "'" + HBarCode + "','" + HBarCodeType + "'," + HMaterID.ToString() + "," + HUnitID.ToString() + "," + HQty2.ToString() |
| | |
| | | + ", " + 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) |
| | | + ", " + DBUtility.ClsPub.BoolToString(HGiveAwayFlag) + "," + HSeOrderSEQ.ToString() |
| | | + ",'" + HMaterName + "','" + HMaterModel + "','" + HPinfan + "'," + HAuxPropID.ToString() + ",'" + HMTONo + "','" + HInnerBillNo + "')"); |
| | | |
| | | |
| | |
| | | // |
| | | grdMain.RowCount = 0; |
| | | grdSub.RowCount = 0; |
| | | grdMain.ColumnCount = 62; //æ»åæ° |
| | | grdMain.ColumnCount = 63; //æ»åæ° |
| | | DBUtility.Xt_BaseBillFun.initGridFst(grdMain, this.Name); |
| | | grdMain.Columns[HSnoCol].HeaderText = "åºå·"; |
| | | grdMain.Columns[HMainIDCol].HeaderText = "æºå主ID"; |
| | |
| | | grdMain.Columns[HSPNameCol].HeaderText = "ä»ä½"; |
| | | grdMain.Columns[HInstructNoCol].HeaderText = "æä»¤åå·"; |
| | | grdMain.Columns[HSeOrderBillNoCol].HeaderText = "éå®è®¢åå·"; |
| | | grdMain.Columns[HSeOrderSEQCol].HeaderText = "éå®è®¢åè¡å·"; |
| | | grdMain.Columns[HDateCol].HeaderText = "è¿ææ¥æ"; |
| | | grdMain.Columns[HRemarkCol].HeaderText = "夿³¨"; |
| | | grdMain.Columns[HMTONoCol].HeaderText = "计åè·è¸ªå·"; |
| | |
| | | DBUtility.Xt_BaseBillFun.initGridLast(sAllowCol, sTotalCol,oSumGrid); |
| | | //---------------------------- |
| | | |
| | | grdSub.ColumnCount = 59; //æ»åæ° |
| | | grdSub.ColumnCount = 60; //æ»åæ° |
| | | DBUtility.Xt_BaseBillFun.initGridFst(grdSub, this.Name); |
| | | grdSub.Columns[HSelectCol].HeaderText = "éæ©"; |
| | | grdSub.Columns[HTMCol].HeaderText = "æ¡ç ç¼å·"; |
| | |
| | | grdSub.Columns[HSourceBillNo2Col].HeaderText = "æºååå·"; |
| | | grdSub.Columns[HSourceBillType2Col].HeaderText = "æºåç±»å"; |
| | | grdSub.Columns[HSeOrderBillNo2Col].HeaderText = "éå®è®¢åå·"; |
| | | grdSub.Columns[HSeOrderSEQ2Col].HeaderText = "éå®è®¢åè¡å·"; |
| | | grdSub.Columns[HBarcodeNoCol].HeaderText = "æå·"; |
| | | grdSub.Columns[HBarcodeQtysCol].HeaderText = "æ»ææ°"; |
| | | grdSub.Columns[HSupID2Col].HeaderText = "ä¾åºåID"; |
| | |
| | | { |
| | | grdMain.Rows[i].Cells[HGiveAwayFlagCol].Value = 0; |
| | | } |
| | | grdMain.Rows[i].Cells[HSeOrderBillNoCol].Value = oTable.Rows[0]["éå®è®¢åå·"].ToString(); |
| | | grdMain.Rows[i].Cells[HSeOrderSEQCol].Value = oTable.Rows[0]["éå®è®¢åè¡å·"].ToString(); |
| | | } |
| | | |
| | | } |