| | |
| | | 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; |
| | |
| | | // |
| | | public string ModName = "85"; |
| | | public string ModCaption = "æ¡ç çæ"; |
| | | public const string ModRightName = "Gy_BarCodeBill"; |
| | | public const string ModRightNameSourceQty = ModRightName + "_SourceQty"; //è¶
æºåæ°éæ§å¶ |
| | | public bool BillChange; // |
| | | |
| | | public DBUtility.ClsPub.Enum_BillStatus BillStatus; |
| | |
| | | cmbHBarCodeType.Items.Add("ä»ªå¨æåæ¡ç è§å"); |
| | | cmbHBarCodeType.Items.Add("è¯åæåæ¡ç è§å"); |
| | | } |
| | | else if (sCapName == "䏿§") |
| | | { |
| | | cmbHBarCodeType.Items.Add("å¯ä¸æ¡ç "); |
| | | } |
| | | else |
| | | { |
| | | // |
| | |
| | | //cmbHBarCodeType.Items.Add("æçæ¡ç "); |
| | | } |
| | | |
| | | // |
| | | cmbSourceBillType.Items.Add("ç产订å"); |
| | | cmbSourceBillType.Items.Add("çäº§æ±æ¥å"); |
| | | cmbSourceBillType.Items.Add("éè´è®¢å"); |
| | | cmbSourceBillType.Items.Add("æ¶æéç¥å"); |
| | | cmbSourceBillType.Items.Add("å§å¤è®¢å"); |
| | | cmbSourceBillType.Items.Add("å·¥åºæ±æ¥å"); |
| | | cmbSourceBillType.Items.Add("å·¥åºæµè½¬å¡"); |
| | | cmbSourceBillType.Items.Add("éè´§éç¥å"); |
| | | cmbSourceBillType.Items.Add("å
¶ä»å
¥åºå"); |
| | | cmbSourceBillType.Items.Add("ç´æ¥è°æ¨å"); |
| | | cmbSourceBillType.Items.Add("éè´éæå"); |
| | | cmbSourceBillType.Items.Add("ç产éæå"); |
| | | cmbSourceBillType.Items.Add("ç»è£
æå¸å"); |
| | | //æºåç±»å |
| | | if (sCapName == "䏿§") |
| | | { |
| | | cmbSourceBillType.Items.Add("çäº§æ±æ¥å"); |
| | | cmbSourceBillType.Items.Add("æ¶æéç¥å"); |
| | | } |
| | | else |
| | | { |
| | | cmbSourceBillType.Items.Add("ç产订å"); |
| | | cmbSourceBillType.Items.Add("çäº§æ±æ¥å"); |
| | | cmbSourceBillType.Items.Add("éè´è®¢å"); |
| | | cmbSourceBillType.Items.Add("æ¶æéç¥å"); |
| | | cmbSourceBillType.Items.Add("å§å¤è®¢å"); |
| | | cmbSourceBillType.Items.Add("å·¥åºæ±æ¥å"); |
| | | cmbSourceBillType.Items.Add("å·¥åºæµè½¬å¡"); |
| | | cmbSourceBillType.Items.Add("éè´§éç¥å"); |
| | | cmbSourceBillType.Items.Add("å
¶ä»å
¥åºå"); |
| | | cmbSourceBillType.Items.Add("ç´æ¥è°æ¨å"); |
| | | cmbSourceBillType.Items.Add("éè´éæå"); |
| | | cmbSourceBillType.Items.Add("ç产éæå"); |
| | | cmbSourceBillType.Items.Add("ç»è£
æå¸å"); |
| | | } |
| | | // |
| | | DBUtility.Xt_BaseBillFun.Sub_ClearBill(gbUp); |
| | | // |
| | |
| | | PrintQtyCtl = oSystemParameter.omodel.BarCode_PrintQtyCtl; |
| | | UpdatePrintQtyCtl = oSystemParameter.omodel.BarCode_UpdatePrintQtyCtl; |
| | | } |
| | | //ç³»ç»åæ°ï¼ææºåçææ¡ç ï¼çææ¡ç æ°éå¯å¦è¶
æºåæ°éæ§å¶ï¼N为ä¸å¯è¶
æºåæ°éï¼ |
| | | if (SourceQtyCtl == "N") |
| | | { |
| | | //ç³»ç»åæ°ä¸ºä¸å¯è¶
æºåæ°éæ¶ï¼åæ¬¡å¤æç¨æ·æéæ¯å¦å¯è¶
æºåæ°é |
| | | //夿æé |
| | | if (ClsPub.Security_Log(ModRightNameSourceQty, 3, false, ClsPub.CurUserName)) |
| | | { |
| | | SourceQtyCtl = "Y"; |
| | | } |
| | | } |
| | | |
| | | cmbHWorksNumber.Items.Clear(); |
| | | if (CampanyName == "é£é¾") //ç³»ç»åæ° å®¢æ·å®å¶ååç§° |
| | |
| | | //忮宿´æ§å¤æ æªå®æ |
| | | private bool Sub_AllowSave() |
| | | { |
| | | ////å¿
è¾é¡¹ç®æ¯å¦ä¸ºç©º |
| | | //if (txtHDeptID.Tag.ToString().Trim() == "0") |
| | | //{ |
| | | // MessageBox.Show("çäº§è½¦é´æ²¡æéæ©ï¼", "æç¤º"); |
| | | // return false; |
| | | //} |
| | | //if (txtHGroupID.Tag.ToString().Trim() == "0") |
| | | //{ |
| | | // MessageBox.Show("çç»æ²¡æéæ©ï¼", "æç¤º"); |
| | | // return false; |
| | | //} |
| | | //忮巿¯å¦éå¤ |
| | | //if (BillNew.IsExistBillNo(ref ClsPub.sExeReturnInfo, txtHBillNo.Text.Trim(), BillStatus, BillOld.omodel.HInterID)) |
| | | //{ |
| | | // MessageBox.Show("åæ®å·éå¤ï¼", "æç¤º"); |
| | | // return false; |
| | | //} |
| | | //æç»è¡¨æ¯å¦ä¸ºé¶è¡ |
| | | bool b = false; |
| | | for (int i = 0; i < grdMain.RowCount; i++) |
| | |
| | | { |
| | | 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; //çäº§æ¥æ |
| | |
| | | int k = 0; |
| | | Int64 n = 0; //å䏿¹çææ¡ç ä¸çç¬¬å æ¡ |
| | | string sTMNumber = ""; //æ¡ç èªå®ä¹åç¼ |
| | | string sSourceBillNo = ""; //æºåå· |
| | | string sSourceEntryID = ""; //è¡å·ï¼æºååIDï¼ |
| | | DataSet Ds; |
| | | //Ds = oCn.RunProcReturn("exec GetLSH '" + ClsPub.GetServerDate(0) + "'", "GetLSH"); |
| | | //LSH = ClsPub.isInt(Ds.Tables[0].Rows[0][0]); |
| | |
| | | Ds = oCn.RunProcReturn("exec h_p_WMS_GetMaxNo '" + sTMNumber + "'", "h_p_WMS_GetMaxNo"); //è·åæå¤§æµæ°´å· |
| | | //oCn.RunProc("exec h_p_WMS_SetMaxNo '" + sTMNumber + "'"); |
| | | LSH = ClsPub.isLong(Ds.Tables[0].Rows[0][0]); |
| | | } |
| | | else if (CampanyName == "䏿§") |
| | | { |
| | | sSourceBillNo = DBUtility.ClsPub.isStrNull(grdMain.Rows[j].Cells[HBillNoCol].Value); |
| | | sSourceEntryID = DBUtility.ClsPub.isStrNull(grdMain.Rows[j].Cells[HSubIDCol].Value); |
| | | if (sSourceBillNo == "") |
| | | { |
| | | //æ¡ç åç¼ = ç»ç»ä»£ç + ç©æä»£ç + å¹´ + æ + æ¥ |
| | | sTMNumber = HOrgNumber + HNumber + sYear + sPeriod + sDay; |
| | | Ds = oCn.RunProcReturn("exec h_p_WMS_GetMaxNo '" + sTMNumber + "'", "h_p_WMS_GetMaxNo"); //è·åæå¤§æµæ°´å· |
| | | LSH = ClsPub.isLong(Ds.Tables[0].Rows[0][0]); |
| | | } |
| | | else |
| | | { |
| | | //æ¡ç = æºååå· + ç©æID + è¡å· |
| | | sTMNumber = sSourceBillNo + HNumber + sSourceEntryID; |
| | | } |
| | | } |
| | | else //éç¨æ¹æ³ |
| | | { |
| | |
| | | return; |
| | | } |
| | | |
| | | Int64 HBQty2 = 0; //ç®±æ° |
| | | HBQty2 =ClsPub.isLong(grdMain.Rows[j].Cells[HBQtyCol].Value); |
| | | HBQty = HBQty + ClsPub.isLong(grdMain.Rows[j].Cells[HBQtyCol].Value); |
| | | HMinQty = ClsPub.isDoule(grdMain.Rows[j].Cells[HMinQtyCol].Value); |
| | | HSumQty = ClsPub.isDoule(grdMain.Rows[j].Cells[HQtyCol].Value); |
| | |
| | | } |
| | | if (cmbHBarCodeType.Text == "å¯ä¸æ¡ç ") |
| | | { |
| | | //æ¡ç ç¼å· = æ¡ç åç¼ + æµæ°´å· |
| | | TM = sTMNumber + LSH2; |
| | | if (CampanyName == "䏿§") |
| | | { |
| | | if (sSourceBillNo == "") |
| | | { |
| | | //æ¡ç ç¼å· = æ¡ç åç¼ + æµæ°´å· |
| | | TM = sTMNumber + LSH2; |
| | | } |
| | | else |
| | | { |
| | | if (HBQty2 > 1) |
| | | { |
| | | MessageBox.Show("çäº§æ±æ¥åãæ¶æéç¥åçææ¡ç æ¶ï¼ç®±æ°ä¸è½å¤§äº1ï¼"); |
| | | bc.Enabled = true; |
| | | return; |
| | | } |
| | | //æ¡ç ç¼å· = æ¡ç åç¼ |
| | | TM = sTMNumber; |
| | | } |
| | | } |
| | | else |
| | | { |
| | | //æ¡ç ç¼å· = æ¡ç åç¼ + æµæ°´å· |
| | | TM = sTMNumber + LSH2; |
| | | } |
| | | } |
| | | else if (cmbHBarCodeType.Text == "åºåç ") |
| | | { |
| | |
| | | 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[sRow].Cells[HUnitNumberCol].Value = ""; |
| | | grdMain.Rows[sRow].Cells[HUnitNameCol].Value = ""; |
| | | } |
| | | if (CampanyName == "䏿§") |
| | | { |
| | | grdMain.Rows[sRow].Cells[HQtyCol].Value = oMater.omodel.HQtyMin; |
| | | grdMain.Rows[sRow].Cells[HBQtyCol].Value = 1; |
| | | } |
| | | oEdit.Text = oMater.omodel.HNumber; |
| | | } |
| | | else |
| | |
| | | |
| | | if (cmbSourceBillType.Text.Trim() == "ç产订å") |
| | | { |
| | | string sWhere = " and HOrgID =" + HOrgID.ToString(); |
| | | string sWhere = ""; |
| | | //ç³»ç»åæ°ï¼çææ¡ç æ°éå¯å¦è¶
æºåæ°éæ§å¶ï¼N为ä¸å¯è¶
æºåæ°éï¼ |
| | | if (SourceQtyCtl == "N") |
| | | { |
| | | sWhere = " and HOrgID =" + HOrgID.ToString() + " and 任塿°é>0"; |
| | | } |
| | | else |
| | | { |
| | | sWhere = " and HOrgID =" + HOrgID.ToString(); |
| | | } |
| | | |
| | | DAL.Cls_S_IFCLD_ICMOList oIFCLD_ICMOList = new DAL.Cls_S_IFCLD_ICMOList(); |
| | | if (oIFCLD_ICMOList.Refresh(sWhere)) //éæ©åå |
| | | { |
| | |
| | | grdMain.Rows.Add(); |
| | | grdMain.Rows[i].Cells[HTagCol].Value = "*"; |
| | | //å¾å°ä¿¡æ¯ |
| | | Ds = oCn.RunProcReturn("select * from h_v_IFCLD_ICMOList where hmainid=" + oSelectRow.BillMainID + " and hsubid=" + oSelectRow.BillSubID, "h_v_IFCLD_ICMOList"); |
| | | Ds = oCn.RunProcReturn("exec h_p_Gy_BarCodeBill_ICMOBillList " + oSelectRow.BillMainID.ToString() + "," + oSelectRow.BillSubID.ToString() + ",'" + SourceQtyCtl + "'", "h_p_Gy_BarCodeBill_ICMOBillList"); |
| | | //Ds = oCn.RunProcReturn("select * from h_v_IFCLD_ICMOList where hmainid=" + oSelectRow.BillMainID + " and hsubid=" + oSelectRow.BillSubID, "h_v_IFCLD_ICMOList"); |
| | | //åå
¥ä¿¡æ¯ |
| | | Sub_WriteInForm(Ds.Tables[0], i); |
| | | } |
| | |
| | | grdMain.Rows.Add(); |
| | | grdMain.Rows[i].Cells[HTagCol].Value = "*"; |
| | | //å¾å°ä¿¡æ¯ |
| | | Ds = oCn.RunProcReturn("select * from h_v_IF_POStockInList where hmainid=" + oSelectRow.BillMainID + " and hsubid=" + oSelectRow.BillSubID, "h_v_IF_POStockInList"); |
| | | Ds = oCn.RunProcReturn("select * from h_v_IF_POStockInBillList_Source where hmainid=" + oSelectRow.BillMainID + " and hsubid=" + oSelectRow.BillSubID, "h_v_IF_POStockInBillList_Source"); |
| | | //åå
¥ä¿¡æ¯ |
| | | Sub_WriteInForm1(Ds.Tables[0], i); |
| | | } |
| | |
| | | //åå
¥ä¿¡æ¯ |
| | | Sub_WriteInForm1(Ds.Tables[0], i); |
| | | } |
| | | //çäº§æ±æ¥å |
| | | //å·¥åºæ±æ¥å |
| | | if (oSelectRow.BillType == "3714") |
| | | { |
| | | grdMain.Rows.Add(); |
| | |
| | | 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[HMinQtyCol].Value = oTable.Rows[0]["æå°å
è£
æ°"].ToString(); |
| | | } |
| | | grdMain.Rows[i].Cells[HProduceDateCol].Value = oTable.Rows[0]["HProduceDate"].ToString(); |
| | | grdMain.Rows[i].Cells[HExpiryDateCol].Value = oTable.Rows[0]["HExpiryDate"].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() + |
| | |
| | | grdMain.Rows[i].Cells[HUnitNameCol].Value = oTable.Rows[0]["计éåä½"].ToString(); |
| | | grdMain.Rows[i].Cells[HRemarkCol].Value = oTable.Rows[0]["夿³¨"].ToString(); |
| | | 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(); |
| | | if (cmbHBarCodeType.Text == "仪å¨å¤è´ä»¶æ¡ç 容å¨è§å") |
| | | { |
| | | grdMain.Rows[i].Cells[HMinQtyCol].Value = ClsPub.isDoule(oTable.Rows[0]["æªçææ¡ç æ°é"]); |
| | |
| | | } |
| | | else |
| | | { |
| | | grdMain.Rows[i].Cells[HMinQtyCol].Value = oTable.Rows[0]["æå°å
è£
æ°"].ToString(); |
| | | if (CampanyName == "䏿§") |
| | | { |
| | | grdMain.Rows[i].Cells[HMinQtyCol].Value = ClsPub.isDoule(oTable.Rows[0]["æªçææ¡ç æ°é"]); |
| | | } |
| | | else |
| | | { |
| | | grdMain.Rows[i].Cells[HMinQtyCol].Value = oTable.Rows[0]["æå°å
è£
æ°"].ToString(); |
| | | } |
| | | } |
| | | grdMain.Rows[i].Cells[HMakerCol].Value = ClsPub.CurUserName; |
| | | if (cmbSourceBillType.Text.Trim() == "æ¶æéç¥å"|| cmbSourceBillType.Text.Trim() == "éè´è®¢å" |
| | |
| | | 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(); |
| | | if (CampanyName == "䏿§") |
| | | { |
| | | grdMain.Rows[i].Cells[HMinQtyCol].Value = ClsPub.isDoule(oTable.Rows[0]["æ°é"]); |
| | | } |
| | | //-- |
| | | //设置å¯ç¼è¾å |
| | | string sAllowCol = HQtyCol.ToString() + |
| | |
| | | if (cmbSourceBillType.Text.Trim() == "ç产订å") |
| | | { |
| | | DAL.Cls_S_IFCLD_ICMOList oIFCLD_ICMOList = new DAL.Cls_S_IFCLD_ICMOList(); |
| | | if (oIFCLD_ICMOList.RefreshBySourceBillNo(" Where åæ®å· like '%" + txtHSourceBillNo.Text + "' and HOrgID =" + sHOrgID.ToString())) //éæ©åå |
| | | //ç³»ç»åæ°ï¼çææ¡ç æ°éå¯å¦è¶
æºåæ°éæ§å¶ï¼N为ä¸å¯è¶
æºåæ°éï¼ |
| | | if (SourceQtyCtl == "N") |
| | | { |
| | | FillSelectData(oIFCLD_ICMOList.oBillSelectColl); |
| | | txtHSourceBillNo.Text = ""; |
| | | if (oIFCLD_ICMOList.RefreshBySourceBillNo(" Where åæ®å· like '%" + txtHSourceBillNo.Text + "' and HOrgID =" + sHOrgID.ToString() + " and 任塿°é>0")) //éæ©åå |
| | | { |
| | | FillSelectData(oIFCLD_ICMOList.oBillSelectColl); |
| | | txtHSourceBillNo.Text = ""; |
| | | } |
| | | else |
| | | { |
| | | MessageBox.Show("æªæ¥è¯¢å°ä»»å¡æ°æ®ï¼è¯·ç¡®è®¤æéç»ç»ãæºåç±»å䏿ºååå·æ¯å¦æ£ç¡®ï¼"); |
| | | return; |
| | | } |
| | | } |
| | | else |
| | | { |
| | | MessageBox.Show("æªæ¥è¯¢å°ä»»å¡æ°æ®ï¼è¯·ç¡®è®¤æéç»ç»ãæºåç±»å䏿ºååå·æ¯å¦æ£ç¡®ï¼"); |
| | | return; |
| | | if (oIFCLD_ICMOList.RefreshBySourceBillNo(" Where åæ®å· like '%" + txtHSourceBillNo.Text + "' and HOrgID =" + sHOrgID.ToString())) //éæ©åå |
| | | { |
| | | FillSelectData(oIFCLD_ICMOList.oBillSelectColl); |
| | | txtHSourceBillNo.Text = ""; |
| | | } |
| | | else |
| | | { |
| | | MessageBox.Show("æªæ¥è¯¢å°ä»»å¡æ°æ®ï¼è¯·ç¡®è®¤æéç»ç»ãæºåç±»å䏿ºååå·æ¯å¦æ£ç¡®ï¼"); |
| | | return; |
| | | } |
| | | } |
| | | } |
| | | else if (cmbSourceBillType.Text.Trim() == "çäº§æ±æ¥å") |
| | |
| | | } |
| | | else |
| | | { |
| | | cmbHBarCodeType.Items.Clear(); |
| | | cmbHBarCodeType.Items.Add("å¯ä¸æ¡ç "); |
| | | cmbHBarCodeType.Items.Add("åç§æ¡ç "); |
| | | cmbHBarCodeType.Items.Add("æ¹æ¬¡æ¡ç "); |
| | | this.cmbHBarCodeType.SelectedIndex = 0; |
| | | if (CampanyName == "å¤å®çµå¨") |
| | | { |
| | | cmbHBarCodeType.Items.Clear(); |
| | | cmbHBarCodeType.Items.Add("å
éæºæ¡ç "); |
| | | cmbHBarCodeType.Items.Add("å¤éæºæ¡ç "); |
| | | cmbHBarCodeType.Items.Add("åæåæ¡ç "); |
| | | this.cmbHBarCodeType.SelectedIndex = 0; |
| | | } |
| | | else if (CampanyName == "åæ¥ç§æ") |
| | | { |
| | | cmbHBarCodeType.Items.Clear(); |
| | | cmbHBarCodeType.Items.Add("仪å¨å¤è´ä»¶æ¡ç æ®éè§å"); |
| | | cmbHBarCodeType.Items.Add("仪å¨å¤è´ä»¶æ¡ç 容å¨è§å"); |
| | | cmbHBarCodeType.Items.Add("ä»ªå¨æåæ¡ç è§å"); |
| | | cmbHBarCodeType.Items.Add("è¯åæåæ¡ç è§å"); |
| | | this.cmbHBarCodeType.SelectedIndex = 0; |
| | | } |
| | | else if (CampanyName == "䏿§") |
| | | { |
| | | cmbHBarCodeType.Items.Clear(); |
| | | cmbHBarCodeType.Items.Add("å¯ä¸æ¡ç "); |
| | | this.cmbHBarCodeType.SelectedIndex = 0; |
| | | } |
| | | else |
| | | { |
| | | cmbHBarCodeType.Items.Clear(); |
| | | cmbHBarCodeType.Items.Add("å¯ä¸æ¡ç "); |
| | | cmbHBarCodeType.Items.Add("åç§æ¡ç "); |
| | | cmbHBarCodeType.Items.Add("æ¹æ¬¡æ¡ç "); |
| | | this.cmbHBarCodeType.SelectedIndex = 0; |
| | | } |
| | | } |
| | | } |
| | | } |