From 2a72bbff6c293dcd9d84633a8a89b73f468a6f79 Mon Sep 17 00:00:00 2001
From: yusijie <ysj@hz-kingdee.com>
Date: 星期三, 27 三月 2024 10:02:32 +0800
Subject: [PATCH] Merge branch 'master' of http://101.37.171.70:10101/r/MES-WEB-API

---
 WarM/条码打印/Gy_BarCodeBill.cs |   38 +++++++++++++++++++++-----------------
 1 files changed, 21 insertions(+), 17 deletions(-)

diff --git "a/WarM/\346\235\241\347\240\201\346\211\223\345\215\260/Gy_BarCodeBill.cs" "b/WarM/\346\235\241\347\240\201\346\211\223\345\215\260/Gy_BarCodeBill.cs"
index fc3a85a..a9a2bcb 100644
--- "a/WarM/\346\235\241\347\240\201\346\211\223\345\215\260/Gy_BarCodeBill.cs"
+++ "b/WarM/\346\235\241\347\240\201\346\211\223\345\215\260/Gy_BarCodeBill.cs"
@@ -155,6 +155,8 @@
         //
         public  string ModName = "85";
         public  string ModCaption = "鏉$爜鐢熸垚";
+        public const string ModRightName = "Gy_BarCodeBill";
+        public const string ModRightNameSourceQty = ModRightName + "_SourceQty"; //瓒呮簮鍗曟暟閲忔帶鍒�
         public bool BillChange;   //
 
         public DBUtility.ClsPub.Enum_BillStatus BillStatus;
@@ -589,23 +591,16 @@
         //鍗曟嵁瀹屾暣鎬у垽鏂�          鏈畬鎴�
         private bool Sub_AllowSave()
         {
-            ////蹇呰緭椤圭洰鏄惁涓虹┖
-            //if (txtHDeptID.Tag.ToString().Trim() == "0")
-            //{
-            //    MessageBox.Show("鐢熶骇杞﹂棿娌℃湁閫夋嫨锛�", "鎻愮ず");
-            //    return false;
-            //}
-            //if (txtHGroupID.Tag.ToString().Trim() == "0")
-            //{
-            //    MessageBox.Show("鐝粍娌℃湁閫夋嫨锛�", "鎻愮ず");
-            //    return false;
-            //}
-            //鍗曟嵁鍙锋槸鍚﹂噸澶�
-            //if (BillNew.IsExistBillNo(ref ClsPub.sExeReturnInfo, txtHBillNo.Text.Trim(), BillStatus, BillOld.omodel.HInterID))
-            //{
-            //    MessageBox.Show("鍗曟嵁鍙烽噸澶嶏紒", "鎻愮ず");
-            //    return false;
-            //}
+            //绯荤粺鍙傛暟锛屾湁婧愬崟鐢熸垚鏉$爜锛岀敓鎴愭潯鐮佹暟閲忓彲鍚﹁秴婧愬崟鏁伴噺鎺у埗锛圢涓轰笉鍙秴婧愬崟鏁伴噺锛�
+            if (SourceQtyCtl=="N")
+            {
+                //绯荤粺鍙傛暟涓轰笉鍙秴婧愬崟鏁伴噺鏃讹紝鍐嶆鍒ゆ柇鐢ㄦ埛鏉冮檺鏄惁鍙秴婧愬崟鏁伴噺
+                //鍒ゆ柇鏉冮檺
+                if (ClsPub.Security_Log(ModRightNameSourceQty, 3, false, ClsPub.CurUserName))
+                {
+                    SourceQtyCtl = "Y";
+                }
+            }
             //鏄庣粏琛ㄦ槸鍚︿负闆惰
             bool b = false;
             for (int i = 0; i < grdMain.RowCount; i++)
@@ -2115,6 +2110,11 @@
                                             grdMain.Rows[sRow].Cells[HUnitNumberCol].Value = "";
                                             grdMain.Rows[sRow].Cells[HUnitNameCol].Value = "";
                                         }
+                                        if (CampanyName == "涓帶")
+                                        {
+                                            grdMain.Rows[sRow].Cells[HQtyCol].Value = oMater.omodel.HQtyMin;
+                                            grdMain.Rows[sRow].Cells[HBQtyCol].Value = 1;
+                                        }
                                         oEdit.Text = oMater.omodel.HNumber;
                                     }
                                     else
@@ -2794,6 +2794,10 @@
             grdMain.Rows[i].Cells[HISKFPERIODCol].Value = oTable.Rows[0]["HISKFPERIOD"].ToString();
             grdMain.Rows[i].Cells[HEXPUNITCol].Value = oTable.Rows[0]["HEXPUNIT"].ToString();
             grdMain.Rows[i].Cells[HEXPPERIODCol].Value = oTable.Rows[0]["HEXPPERIOD"].ToString();
+            if (CampanyName == "涓帶")
+            {
+                grdMain.Rows[i].Cells[HMinQtyCol].Value = ClsPub.isDoule(oTable.Rows[0]["鏁伴噺"]);
+            }
             //--
             //璁剧疆鍙紪杈戝垪
             string sAllowCol = HQtyCol.ToString() +

--
Gitblit v1.9.1