From b9d2d6f02a977d0b2ea48f28d6eb396f4326e504 Mon Sep 17 00:00:00 2001
From: cwjbxqmz <1134865194@qq.com>
Date: 星期五, 10 十一月 2023 16:55:13 +0800
Subject: [PATCH] 1
---
WorkM/车间管理/QC_NoPassProdCheckBill.cs | 24 +++++++++++++++++++++++-
1 files changed, 23 insertions(+), 1 deletions(-)
diff --git "a/WorkM/\350\275\246\351\227\264\347\256\241\347\220\206/QC_NoPassProdCheckBill.cs" "b/WorkM/\350\275\246\351\227\264\347\256\241\347\220\206/QC_NoPassProdCheckBill.cs"
index 8aa6b15..1c0679d 100644
--- "a/WorkM/\350\275\246\351\227\264\347\256\241\347\220\206/QC_NoPassProdCheckBill.cs"
+++ "b/WorkM/\350\275\246\351\227\264\347\256\241\347\220\206/QC_NoPassProdCheckBill.cs"
@@ -179,6 +179,15 @@
return;
}
//
+ ClsXt_SystemParameter oClsXt_SystemParameter = new ClsXt_SystemParameter();
+ string DeleteCtl = oClsXt_SystemParameter.GetSingleSystemParameter("QC_NoPassProdCheckBill_DeleteCtl", ref DBUtility.ClsPub.sExeReturnInfo);
+
+ if (DeleteCtl == "Y" && BillOld.omodel.HMaker != DBUtility.ClsPub.CurUserName && DBUtility.ClsPub.CurUserName != "admin" && DBUtility.ClsPub.CurUserName != "Admin")
+ {
+ MessageBox.Show("鐧诲綍鐢ㄦ埛涓庡埗鍗曚汉涓嶄竴鑷达紝涓嶅厑璁稿垹闄�", "鎻愮ず");
+ return;
+ }
+ //
if (MessageBox.Show("纭畾瑕佸垹闄ゅ綋鍓嶅崟鎹紵", "鎻愮ず", MessageBoxButtons.OKCancel, MessageBoxIcon.Question) == DialogResult.OK)
{
@@ -1141,6 +1150,19 @@
}
}
+ else
+ {
+ if (DBUtility.ClsPub.isDoule(grdMain.Rows[i].Cells[HBadQtyCol].Value) != 0)
+ {
+ MessageBox.Show("绗�" + (i + 1) + "琛岋紝娌℃湁涓嶈壇鍘熷洜涓嶈兘濉啓涓嶈壇鏁伴噺锛�");
+ return false;
+ }
+ if (DBUtility.ClsPub.isDoule(grdMain.Rows[i].Cells[HBadPCSQtyCol].Value) != 0)
+ {
+ MessageBox.Show("绗�" + (i + 1) + "琛岋紝娌℃湁涓嶈壇鍘熷洜涓嶈兘濉啓涓嶈壇PCS鏁伴噺锛�");
+ return false;
+ }
+ }
}
//if (ClsPub.isDoule(txtHBadPNL.Text) != sPNLQty)
//{
@@ -1149,7 +1171,7 @@
//}
if (ClsPub.isDoule(txtHBadQty.Text) != sPCSQty)
{
- MessageBox.Show("鏄庣粏鎶ュ簾PCS鏁颁笉绛変簬鎬绘姤搴烶CS锛屼笉鍏佽淇濆瓨锛�");
+ MessageBox.Show("琛ㄤ綋鏄庣粏涓嶈壇鏁颁笉绛変簬琛ㄥご鎬讳笉鑹暟閲忥紝涓嶅厑璁镐繚瀛橈紒");
return false;
}
}
--
Gitblit v1.9.1