| | |
| | | public const Int16 HMinQtyCol = 23; |
| | | public const Int16 HBQtyCol = 24; |
| | | public const Int16 HPackQtyCol = 25; |
| | | public const Int16 HDeptIDCol = 26; |
| | | public const Int16 HDeptNumberCol = 27; |
| | | public const Int16 HDeptNameCol = 28; |
| | | public const Int16 HSourceIDCol = 29; |
| | | public const Int16 HSourceNumberCol = 30; |
| | | public const Int16 HSourceNameCol = 31; |
| | | public const Int16 HDateCol = 32; |
| | | public const Int16 HEndDateCol = 33; |
| | | public const Int16 HSupIDCol = 34; |
| | | public const Int16 HSupNumberCol = 35; |
| | | public const Int16 HSupNameCol = 36; |
| | | public const Int16 HCusIDCol = 37; |
| | | public const Int16 HCusNumberCol = 38; |
| | | public const Int16 HCusNameCol = 39; |
| | | public const Int16 HCusTypeCol = 40; |
| | | public const Int16 HSourceInterIDCol = 41; |
| | | public const Int16 HSourceEntryIDCol = 42; |
| | | public const Int16 HSourceBillNoCol = 43; |
| | | public const Int16 HSourceBillTypeCol = 44; |
| | | public const Int16 HInstructIDCol = 45; |
| | | public const Int16 HInstructNoCol = 46; |
| | | public const Int16 HSeOrderBillIDCol = 47; |
| | | public const Int16 HSeOrderBillNoCol = 48; |
| | | 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 const Int16 HProduceDateCol = 63; |
| | | public const Int16 HExpiryDateCol = 64; |
| | | public const Int16 HProduceDateCol = 26; |
| | | public const Int16 HExpiryDateCol = 27; |
| | | public const Int16 HDeptIDCol = 28; |
| | | public const Int16 HDeptNumberCol = 29; |
| | | public const Int16 HDeptNameCol = 30; |
| | | public const Int16 HSourceIDCol = 31; |
| | | public const Int16 HSourceNumberCol = 32; |
| | | public const Int16 HSourceNameCol = 33; |
| | | public const Int16 HDateCol = 34; |
| | | public const Int16 HEndDateCol = 35; |
| | | public const Int16 HSupIDCol = 36; |
| | | public const Int16 HSupNumberCol = 37; |
| | | public const Int16 HSupNameCol = 38; |
| | | public const Int16 HCusIDCol = 39; |
| | | public const Int16 HCusNumberCol = 40; |
| | | public const Int16 HCusNameCol = 41; |
| | | public const Int16 HCusTypeCol = 42; |
| | | public const Int16 HSourceInterIDCol = 43; |
| | | public const Int16 HSourceEntryIDCol = 44; |
| | | public const Int16 HSourceBillNoCol = 45; |
| | | public const Int16 HSourceBillTypeCol = 46; |
| | | public const Int16 HInstructIDCol = 47; |
| | | public const Int16 HInstructNoCol = 48; |
| | | public const Int16 HSeOrderBillIDCol = 49; |
| | | public const Int16 HSeOrderBillNoCol = 50; |
| | | public const Int16 HSeOrderSEQCol = 51; |
| | | public const Int16 HWhIDCol = 52; |
| | | public const Int16 HWhNumberCol = 53; |
| | | public const Int16 HWhNameCol = 54; |
| | | public const Int16 HSPIDCol = 55; |
| | | public const Int16 HSPNumberCol = 56; |
| | | public const Int16 HSPNameCol = 57; |
| | | public const Int16 HinitQtyCol = 58; |
| | | public const Int16 HRemarkCol = 59; |
| | | public const Int16 HPinfanBarCodeCol = 60; |
| | | public const Int16 HMTONoCol = 61; |
| | | public const Int16 HShowDateCol = 62; |
| | | public const Int16 HInnerBillNoCol = 63; |
| | | public const Int16 HMakerCol = 64; |
| | | public const Int16 HISKFPERIODCol = 65; |
| | | public const Int16 HEXPUNITCol = 66; |
| | | public const Int16 HEXPPERIODCol = 67; |
| | |
| | | { |
| | | sHRemark= sHRemark+DBUtility.ClsPub.isStrNull(oDsCheck.Tables[0].Rows[0]["HRemark"]); |
| | | } |
| | | else |
| | | { |
| | | else if(DBUtility.ClsPub.isStrNull(grdMain.Rows[j].Cells[HExpiryDateCol].Value) == "") |
| | | { |
| | | if (DBUtility.ClsPub.isBool(oDsCheck.Tables[0].Rows[0]["HISKFPERIOD"])) |
| | | { |
| | | DateTime HProduceDate; //çäº§æ¥æ |
| | |
| | | grdMain.Columns[HSourceIDCol].Visible = false; |
| | | grdMain.Columns[HSourceNumberCol].Visible = false; |
| | | grdMain.Columns[HSourceNameCol].Visible = false; |
| | | grdMain.Columns[HProduceDateCol].Visible = false; |
| | | grdMain.Columns[HExpiryDateCol].Visible = false; |
| | | //grdMain.Columns[HProduceDateCol].Visible = false; |
| | | //grdMain.Columns[HExpiryDateCol].Visible = false; |
| | | grdMain.Columns[HISKFPERIODCol].Visible = false; |
| | | grdMain.Columns[HEXPUNITCol].Visible = false; |
| | | grdMain.Columns[HEXPPERIODCol].Visible = false; |
| | |
| | | grdMain.Rows.Add(); |
| | | Application.DoEvents(); |
| | | //å¾å°ä¿¡æ¯ |
| | | Ds = oCn.RunProcReturn("select * from h_v_KF_ICInventoryList_IF where hmaterid=" + oSelectRow.BillMainID + " and hwhid=" + oSelectRow.BillSubID + " and hspid=" + oSelectRow.SPID + " and HAuxPropID=" + oSelectRow.HAuxPropID + " and æ¹æ¬¡='" + oSelectRow.BatchNo + "' and 计åè·è¸ªå·='" + oSelectRow.BillNo + "'", "h_v_KF_ICInventoryList_IF"); |
| | | Ds = oCn.RunProcReturn("select * from h_v_KF_ICInventoryList_IF where hmaterid=" + oSelectRow.BillMainID + " and hwhid=" + oSelectRow.BillSubID + " and hspid=" + oSelectRow.SPID + " and HAuxPropID=" + oSelectRow.HAuxPropID + " and æ¹æ¬¡='" + oSelectRow.BatchNo + "' and 计åè·è¸ªå·='" + oSelectRow.BillNo + "' and çäº§æ¥æ='" + oSelectRow.HProduceDate + "' and æææè³='" + oSelectRow.HExpiryDate + "'", "h_v_KF_ICInventoryList_IF"); |
| | | //åå
¥ä¿¡æ¯ |
| | | Sub_WriteInForm2(Ds.Tables[0], i); |
| | | } |
| | |
| | | grdMain.Rows[i].Cells[HShowDateCol].Value = dtpHDate.Value.ToShortDateString(); |
| | | grdMain.Rows[i].Cells[HRemarkCol].Value = "æåºåçæ"; |
| | | grdMain.Rows[i].Cells[HMTONoCol].Value = oTable.Rows[0]["计åè·è¸ªå·"].ToString(); |
| | | grdMain.Rows[i].Cells[HProduceDateCol].Value = oTable.Rows[0]["çäº§æ¥æ"].ToString(); |
| | | grdMain.Rows[i].Cells[HExpiryDateCol].Value = oTable.Rows[0]["æææè³"].ToString(); |
| | | grdMain.Rows[i].Cells[HISKFPERIODCol].Value = oTable.Rows[0]["HISKFPERIOD"].ToString(); |
| | | grdMain.Rows[i].Cells[HEXPUNITCol].Value = oTable.Rows[0]["HEXPUNIT"].ToString(); |
| | | grdMain.Rows[i].Cells[HEXPPERIODCol].Value = oTable.Rows[0]["HEXPPERIOD"].ToString(); |
| | | //-- |
| | | //设置å¯ç¼è¾å |
| | | string sAllowCol = HQtyCol.ToString() + |