From 3db477ccda04b391872cbd570b7d1c1253e1f6e0 Mon Sep 17 00:00:00 2001
From: yangle <admin@YINMOU>
Date: 星期二, 23 五月 2023 14:11:00 +0800
Subject: [PATCH] 生产订单备注字段改成白坯要求,底部备注下推流转卡的时候带到流转卡底部备注中去 生产订单 已经下推过 流转卡或 生产入库单 或生产领料单 后,就不能删除; 生产资源新增模块增加 负责人 HEmpID int 字段(gy_Employee) 非必录入,打印的时候打印出来 生产订单列表里增加关闭和反关闭按钮(在生产订单编辑模块里有这个功能,将一样的功能复制出来),列表显示关闭状态 工序流转卡维护列表增加当前工序过滤条件(下拉框形式,取值取工序列表) 网格选中行, 背景行 浅蓝色 显示;(优先改 生产订单列表,流转卡列表,出站单列表,进站单列表)(最好改JS底层方法)
---
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