From 866490cda5fe7b9b7a0076b09d474df6b064212a Mon Sep 17 00:00:00 2001
From: yusijie <ysj@hz-kingdee.com>
Date: 星期六, 29 六月 2024 15:44:39 +0800
Subject: [PATCH] 条码生成添加客户物料字段;网页器具保养添加字段;PDA设备保养添加字段;首件检验单、工序检验单、巡检记录单列表查询和编辑查询接口分开
---
WorkM/流转卡管理/MES_StationEntrustOutBill.cs | 29 +++++++++++++++++++++++++++--
1 files changed, 27 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 c11f3ab..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"
@@ -660,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()))
@@ -679,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()))
@@ -1877,6 +1884,7 @@
if (e.KeyCode == Keys.Enter)
{
txtHPrice.Select();
+ txtHInnerBillNo.Focus();
}
}
@@ -1893,6 +1901,7 @@
if (e.KeyCode == Keys.Enter)
{
txtHPieceQty.Select();
+ txtHBadCount.Focus();
}
}
@@ -2558,5 +2567,21 @@
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