雅琪诺MES智能条码管理系统
jingh
2021-03-10 aaf61dbf97e6d7faaa7568aa30ac23668cab6095
SCM/µ¥¾Ý×ÊÁÏ/Sc_ICMOReportToBarCode.cs
@@ -1423,12 +1423,24 @@
        private void btnBLHB_Click(object sender, EventArgs e)
        {
            if(HSourceInterID<=0)
            {
                MessageBox.Show("没有选单!");
                return;
            }
            Gy_BadReasonList oGy_BadReasonList = new Gy_BadReasonList();
            oGy_BadReasonList.sSourceTypeName = HSourceBillType;
            oGy_BadReasonList.ShowDialog();
            if (oGy_BadReasonList.ISOK == 1)
            {
                txtHReasonList.Text = "";
                txtHReasonList.Text = oGy_BadReasonList.txtHBadReason.Text;
                if (HSourceBillType == "生产订单") //销售裁切
                {
                    txtHBadQty.Text = oGy_BadReasonList.txtHBadQty.Text;
                }
                if (SaveBadReasonBill())
                {
                    MessageBox.Show("保存不良原因成功!");
@@ -1501,6 +1513,7 @@
                oQC_NoPassProdCheckBillMain.HDate = DateTime.Today;
                oQC_NoPassProdCheckBillMain.HSourceID = DBUtility.ClsPub.isLong(txtHSourceID.Tag);
                oQC_NoPassProdCheckBillMain.HMaterID = DBUtility.ClsPub.isLong(txtHMaterNumber.Tag);
                oQC_NoPassProdCheckBillMain.HGroupName = txtHGroupID.Text;
                oQC_NoPassProdCheckBillMain.HProcID = DBUtility.ClsPub.isLong(0);
                oQC_NoPassProdCheckBillMain.HWorkCenterID = DBUtility.ClsPub.isLong(0);
                oQC_NoPassProdCheckBillMain.HICMOInterID = 0;
@@ -1508,13 +1521,21 @@
                oQC_NoPassProdCheckBillMain.HInStockQty = 0;
                oQC_NoPassProdCheckBillMain.HCheckQty = 0;
                oQC_NoPassProdCheckBillMain.HRightQty = 0;
                oQC_NoPassProdCheckBillMain.HBadQty = DBUtility.ClsPub.isDoule(txtHDQQty.Text);
                if (HSourceBillType == "生产订单") //销售裁切
                {
                    oQC_NoPassProdCheckBillMain.HBadQty = DBUtility.ClsPub.isDoule(txtHBadQty.Text);
                    oQC_NoPassProdCheckBillMain.HNote = "销售裁切";
                }
                else
                {
                    oQC_NoPassProdCheckBillMain.HBadQty = DBUtility.ClsPub.isDoule(txtHDQQty.Text);
                    oQC_NoPassProdCheckBillMain.HNote = "在线检验";
                }
                oQC_NoPassProdCheckBillMain.HPlanQty = 0;
                oQC_NoPassProdCheckBillMain.HBadPNL = 0;
                oQC_NoPassProdCheckBillMain.HPlanPNL = 0;
                oQC_NoPassProdCheckBillMain.HFirstCheckEmp = 0;
                oQC_NoPassProdCheckBillMain.HCheckerResult = txtHReasonList.Text;
                oQC_NoPassProdCheckBillMain.HNote = "在线检验";
                oQC_NoPassProdCheckBillMain.HProcExchInterID = HSourceInterID;//源单主内码
                oQC_NoPassProdCheckBillMain.HProcExchEntryID = HSourceEntryID;//源单子内码
                oQC_NoPassProdCheckBillMain.HProcExchBillNo = HSourceBillTypeID;//源单类型