| | |
| | |
|
| | | 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("ä¿åä¸è¯åå æåï¼");
|
| | |
| | | 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;
|
| | |
| | | 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;//æºåç±»å
|