From adc3fd8af6ff791cd3f924890419cd0cba385f51 Mon Sep 17 00:00:00 2001
From: cdk <2441919651@qq.com>
Date: 星期五, 25 七月 2025 15:48:34 +0800
Subject: [PATCH] 调整审核的文字提示

---
 DevApp/Gs.DevApp/DevFrm/Ck/Frm_MesCgthSq.cs |   63 +++++++++++++++++++++++++------
 1 files changed, 51 insertions(+), 12 deletions(-)

diff --git a/DevApp/Gs.DevApp/DevFrm/Ck/Frm_MesCgthSq.cs b/DevApp/Gs.DevApp/DevFrm/Ck/Frm_MesCgthSq.cs
index 0d34401..54d7324 100644
--- a/DevApp/Gs.DevApp/DevFrm/Ck/Frm_MesCgthSq.cs
+++ b/DevApp/Gs.DevApp/DevFrm/Ck/Frm_MesCgthSq.cs
@@ -53,7 +53,6 @@
                     return;
                 txt_suppId.getSuppler(orgId, _ucGys);
                 txt_fPurchaseDeptId.getSuppler(orgId, _ucBm);
-                // txt_fPurchaserId.getSuppler();
             };
             //閫夋嫨闇�瑕佺殑鏄庣粏
             btnSelect.Click += (s, e) =>
@@ -104,6 +103,44 @@
                     var frm2 = new SelectMesCgthSqLink(this.txt_thOrgId.GetId());
                     frm2.UpdateParent += (ss, ee) =>
                     {
+                        try
+                        {
+                            var lst = ee.DynamicList;
+                            DataTable _Table = (DataTable)gcMx1.DataSource;
+                            foreach (dynamic dym in lst)
+                            {
+                                DataRow _row = _Table.NewRow();
+                                _row["id"] = dym.id;
+                                _row["mid"] = dym.mid;
+                                _row["rkmxGuid"] = dym.rkmxGuid;//鍏ュ簱鏄庣粏琛╣uid
+                                _row["cgdh"] = dym.cgdh;//閲囪喘鍗曞彿
+                                _row["invWorkLine"] = dym.invWorkLine;//琛屽彿,
+                                _row["wlbm"] = dym.wlbm; //鐗╂枡缂栧彿,
+                                _row["wlmc"] = dym.wlmc;  //鐗╂枡鍚嶇О,
+                                _row["wlgg"] = dym.wlgg;//瑙勬牸鍨嬪彿,
+                                _row["rksl"] = dym.rksl;  //鍏ュ簱鏁伴噺,
+                                _row["dwName"] = dym.dwName;
+                                _row["eid"] = dym.eid;
+                                _row["erpid"] = dym.erpid;
+                                _row["itemId"] = dym.itemId;  //鐗╂枡id,
+                                _row["ysNum"] = dym.ysNum;//宸叉壂鏁伴噺
+                                _row["remark"] = dym.remark;
+                                _row["orderNo"] = dym.orderNo; //搴忓彿
+                                _row["kcQty"] = dym.kcQty; //搴撳瓨鏁伴噺
+                                _Table.Rows.Add(_row);
+                            }
+                            gcMx1.BindingContext = new BindingContext();
+                            gcMx1.DataSource = _Table;
+                            gcMx1.ForceInitialize();
+                            gvMx1.CloseEditor();
+                            gvMx1.PostEditor();
+                            gvMx1.UpdateCurrentRow();
+                            gvMx1.BestFitColumns();
+                        }
+                        catch (Exception ex)
+                        {
+                            MessageBox.Show(ex.Message);
+                        }
                     };
                     frm2.ShowDialog();
                     return;
@@ -113,7 +150,7 @@
             txt_fHasLinkRad.SelectedIndex = 0;
             layItem1.Visibility = DevExpress.XtraLayout.Utils.LayoutVisibility.Never;
             layItem2.Visibility = DevExpress.XtraLayout.Utils.LayoutVisibility.Never;
-            layItem3.Visibility = DevExpress.XtraLayout.Utils.LayoutVisibility.Never;
+            //layItem3.Visibility = DevExpress.XtraLayout.Utils.LayoutVisibility.Never;
             layItem4.Visibility = DevExpress.XtraLayout.Utils.LayoutVisibility.Never;
             txt_fHasLinkRad.SelectedIndexChanged += (s, e) =>
             {
@@ -305,7 +342,7 @@
             txt_fRequireOrgId.IsReadly = true;
             txt_fOwnerIdHead.IsReadly = true;
             txt_fPurchaseDeptId.IsReadly = true;
-            txt_fPurchaserId.IsReadly = true;
+          //  txt_fPurchaserId.IsReadly = true;
         }
         /// <summary>
         /// 鏂板浜嬩欢
@@ -339,7 +376,8 @@
             string _xqzz = txt_fRequireOrgId.GetId();//闇�姹傜粍缁�
             string _hz = txt_fOwnerIdHead.GetId();//璐т富
             string _bm = txt_fPurchaseDeptId.GetId();//閮ㄩ棬
-            string _ygbh = txt_fPurchaserId.GetId();//鍛樺伐
+            //string _ygbh = txt_fPurchaserId.GetId();//鍛樺伐
+            string _ygbh = "";
             if (string.IsNullOrEmpty(_orgId))
             {
                 MsgHelper.ShowError("璇烽�夋嫨缁勭粐锛�");
@@ -385,12 +423,12 @@
                     txt_fPurchaseDeptId.Focus();
                     return;
                 }
-                if (string.IsNullOrEmpty(_ygbh))
-                {
-                    MsgHelper.ShowError("璇烽�夋嫨鍛樺伐锛�");
-                    txt_fPurchaserId.Focus();
-                    return;
-                }
+                //if (string.IsNullOrEmpty(_ygbh))
+                //{
+                //    MsgHelper.ShowError("璇烽�夋嫨鍛樺伐锛�");
+                //    txt_fPurchaserId.Focus();
+                //    return;
+                //}
             }
             var _obj = new
             {
@@ -441,6 +479,7 @@
                         Quantity = decimal.Parse(row["sqNum"].ToString()),
                         Bz = row["remark"].ToString(),
                         DepotId = row["depotId"].ToString(),
+                        ItemId = row["itemId"].ToString(),
                     });
                 }
             }
@@ -719,14 +758,14 @@
             {
                 layItem1.Visibility = DevExpress.XtraLayout.Utils.LayoutVisibility.Never;
                 layItem2.Visibility = DevExpress.XtraLayout.Utils.LayoutVisibility.Never;
-                layItem3.Visibility = DevExpress.XtraLayout.Utils.LayoutVisibility.Never;
+               // layItem3.Visibility = DevExpress.XtraLayout.Utils.LayoutVisibility.Never;
                 layItem4.Visibility = DevExpress.XtraLayout.Utils.LayoutVisibility.Never;
             }
             else
             {
                 layItem1.Visibility = DevExpress.XtraLayout.Utils.LayoutVisibility.Always;
                 layItem2.Visibility = DevExpress.XtraLayout.Utils.LayoutVisibility.Always;
-                layItem3.Visibility = DevExpress.XtraLayout.Utils.LayoutVisibility.Always;
+                //layItem3.Visibility = DevExpress.XtraLayout.Utils.LayoutVisibility.Always;
                 layItem4.Visibility = DevExpress.XtraLayout.Utils.LayoutVisibility.Always;
             }
         }

--
Gitblit v1.9.3