From acdbefae8e00a3d32b17fd23c95ad31c73d9566f Mon Sep 17 00:00:00 2001 From: zzr99 <1940172413@qq.com> Date: 星期二, 07 六月 2022 09:57:39 +0800 Subject: [PATCH] nothing --- WorkM/流转卡管理/MES_StationEntrustOutBill.cs | 97 +++++++++++++++++++++++++++++++++++++++++++++++- 1 files changed, 95 insertions(+), 2 deletions(-) diff --git "a/WorkM/\346\265\201\350\275\254\345\215\241\347\256\241\347\220\206/MES_StationEntrustOutBill.cs" "b/WorkM/\346\265\201\350\275\254\345\215\241\347\256\241\347\220\206/MES_StationEntrustOutBill.cs" index 2283814..20cea37 100644 --- "a/WorkM/\346\265\201\350\275\254\345\215\241\347\256\241\347\220\206/MES_StationEntrustOutBill.cs" +++ "b/WorkM/\346\265\201\350\275\254\345\215\241\347\256\241\347\220\206/MES_StationEntrustOutBill.cs" @@ -482,6 +482,7 @@ this.txtHBadPNL.Text = BillOld.omodel.HBadPNL.ToString(); this.txtHRemark.Text = BillOld.omodel.HRemark.ToString(); this.txtHWasterQty.Text = BillOld.omodel.HWasterQty.ToString(); + this.txtHBadCount.Text = BillOld.omodel.HBadCount.ToString(); this.txtHQty.Text = BillOld.omodel.HQty.ToString(); this.txtHPieceQty.Text = BillOld.omodel.HPieceQty.ToString(); this.txtHPlanPieceQty.Text = BillOld.omodel.HPlanPieceQty.ToString(); @@ -659,14 +660,16 @@ // MessageBox.Show("鎺ユ敹涓暟涓嶈兘涓�0锛�", "鎻愮ず"); // return false; //} - if (DBUtility.ClsPub.isDoule(txtHQty.Text.Trim()) + DBUtility.ClsPub.isDoule(txtHWasterQty.Text.Trim()) <= 0) + if (DBUtility.ClsPub.isDoule(txtHQty.Text.Trim()) + + DBUtility.ClsPub.isDoule(txtHWasterQty.Text.Trim()) + + DBUtility.ClsPub.isDoule(txtHBadCount.Text) <= 0) { MessageBox.Show("鎺ユ敹涓暟涓嶈兘涓�0锛�", "鎻愮ず"); return false; } if (DBUtility.ClsPub.isDoule(txtHQty.Text.Trim()) < 0) { - MessageBox.Show("鎺ユ敹涓暟涓嶈兘灏忎簬0锛�", "鎻愮ず"); + MessageBox.Show("鎺ユ敹鍚堟牸涓暟涓嶈兘灏忎簬0锛�", "鎻愮ず"); return false; } //if (DBUtility.ClsPub.isDoule(txtHQty.Text.Trim()) > DBUtility.ClsPub.isDoule(txtHPlanQty.Text.Trim())) @@ -678,6 +681,11 @@ if (DBUtility.ClsPub.isDoule(txtHWasterQty.Text.Trim()) < 0) { MessageBox.Show("涓嶅悎鏍兼暟涓嶈兘灏忎簬0锛�", "鎻愮ず"); + return false; + } + if (DBUtility.ClsPub.isDoule(txtHBadCount.Text.Trim()) < 0) + { + MessageBox.Show("涓嶈壇鍝佹暟涓嶈兘灏忎簬0锛�", "鎻愮ず"); return false; } //if (DBUtility.ClsPub.isDoule(txtHWasterQty.Text.Trim()) > DBUtility.ClsPub.isDoule(txtHPlanQty.Text.Trim())) @@ -792,6 +800,7 @@ BillNew.omodel.HOrderProcNO = DBUtility.ClsPub.isStrNull(this.txtHOrderProcNO.Text); BillNew.omodel.HBadPNL = DBUtility.ClsPub.isDoule(this.txtHBadPNL.Text); BillNew.omodel.HWasterQty = DBUtility.ClsPub.isDoule(this.txtHWasterQty.Text); + BillNew.omodel.HBadCount = DBUtility.ClsPub.isDoule(this.txtHBadCount.Text); BillNew.omodel.HRemark = DBUtility.ClsPub.isStrNull(this.txtHRemark.Text); BillNew.omodel.HLastSubProc = true; BillNew.omodel.HMainSourceInterID = sHMainSourceInterID; @@ -1875,6 +1884,7 @@ if (e.KeyCode == Keys.Enter) { txtHPrice.Select(); + txtHInnerBillNo.Focus(); } } @@ -1891,6 +1901,7 @@ if (e.KeyCode == Keys.Enter) { txtHPieceQty.Select(); + txtHBadCount.Focus(); } } @@ -2490,5 +2501,87 @@ { this.Sub_AddBill(); } + + //鎶ュ簾鍝佽川纭鎸夐挳 + private void cmdBFChecker_Click(object sender, EventArgs e) + { + QC_NoPassProdCheckBill oBF = new QC_NoPassProdCheckBill(); + oBF.BillStatus = DBUtility.ClsPub.Enum_BillStatus.BillStatus_AddNew; + oBF.HMainSourceInterID = BillOld.omodel.HInterID; + oBF.HProcExchInterID = lngBillKey; + oBF.HProcExchEntryID = lngBillSubKey; + oBF.HBillSubType = "鎶ュ簾璇勫"; + oBF.txtHLotNo.Text = txtHProcExchBillNo.Text; + oBF.txtHOrderProcNo.Text = txtHOrderProcNO.Text; + oBF.txtHMaterID.Text = txtHMaterName.Text; + oBF.txtHMaterNumber.Text = txtHMaterID.Text; + oBF.txtHModel.Text = txtHMaterModel.Text; + oBF.txtHMaterID.Tag = txtHMaterID.Tag; + oBF.txtHProcID.Tag = txtHProcID.Tag; + oBF.txtHProcID.Text = txtHProcID.Text; + oBF.txtHWorkCenterID.Text = ""; + oBF.txtHWorkCenterID.Tag = 0; + oBF.txtHICMOInterID.Text = Pub_Class.ClsPub.isStrNull(txtHICMOBillNo.Tag); + oBF.txtHICMOBillNo.Text = txtHICMOBillNo.Text; + oBF.txtHProcExchQty.Text = ClsPub.isStrNull(ClsPub.isDoule(txtHPlanQty.Text)); + oBF.txtHPlanQty.Text = ClsPub.isStrNull(ClsPub.isDoule(txtHWasterQty.Text)); + oBF.txtHPlanPNL.Text = ClsPub.isStrNull(ClsPub.isDoule(txtHBadPNL.Text)); + oBF.txtHBadPNL.Text = ClsPub.isStrNull(ClsPub.isDoule(txtHBadPNL.Text)); + oBF.txtHBadQty.Text = ClsPub.isStrNull(ClsPub.isDoule(txtHWasterQty.Text)); + oBF.ShowDialog(); + if (oBF.BillChange) + { + this.Sub_ShowBill(); + } + } + + //涓嶈壇鍝佽川纭鎸夐挳 + private void cmdChecker_Click(object sender, EventArgs e) + { + QC_NoPassProdCheckBill oBF = new QC_NoPassProdCheckBill(); + oBF.BillStatus = DBUtility.ClsPub.Enum_BillStatus.BillStatus_AddNew; + oBF.HMainSourceInterID = BillOld.omodel.HInterID; + oBF.HProcExchInterID = lngBillKey; + oBF.HProcExchEntryID = lngBillSubKey; + oBF.HBillSubType = "涓嶈壇璇勫"; + oBF.txtHLotNo.Text = txtHProcExchBillNo.Text; + oBF.txtHOrderProcNo.Text = txtHOrderProcNO.Text; + oBF.txtHMaterID.Text = txtHMaterName.Text; + oBF.txtHMaterNumber.Text = txtHMaterID.Text; + oBF.txtHModel.Text = txtHMaterModel.Text; + oBF.txtHMaterID.Tag = txtHMaterID.Tag; + oBF.txtHProcID.Tag = txtHProcID.Tag; + oBF.txtHProcID.Text = txtHProcID.Text; + oBF.txtHWorkCenterID.Text = ""; + oBF.txtHWorkCenterID.Tag = 0; + oBF.txtHICMOInterID.Text = Pub_Class.ClsPub.isStrNull(txtHICMOBillNo.Tag); + oBF.txtHICMOBillNo.Text = txtHICMOBillNo.Text; + oBF.txtHProcExchQty.Text = ClsPub.isStrNull(ClsPub.isDoule(txtHPlanQty.Text)); + oBF.txtHPlanQty.Text = ClsPub.isStrNull(ClsPub.isDoule(txtHBadCount.Text)); + oBF.txtHPlanPNL.Text = ClsPub.isStrNull(ClsPub.isDoule(txtHBadPNL.Text)); + oBF.txtHBadPNL.Text = ClsPub.isStrNull(ClsPub.isDoule(txtHBadPNL.Text)); + oBF.txtHBadQty.Text = ClsPub.isStrNull(ClsPub.isDoule(txtHBadCount.Text)); + oBF.ShowDialog(); + if (oBF.BillChange) + { + this.Sub_ShowBill(); + } + } + + private void txtHInnerBillNo_KeyDown(object sender, KeyEventArgs e) + { + if (e.KeyCode == Keys.Enter) + { + txtHWasterQty.Focus(); + } + } + + private void txtHBadCount_KeyDown(object sender, KeyEventArgs e) + { + if (e.KeyCode == Keys.Enter) + { + cmdOK.Focus(); + } + } } } \ No newline at end of file -- Gitblit v1.9.1