From 6004ecbc69453a135da56d982b6c78d6d5c03d2a Mon Sep 17 00:00:00 2001
From: lu <99954486@qq.com>
Date: 星期五, 27 十二月 2024 15:06:40 +0800
Subject: [PATCH] 委外工单

---
 DevApp/Gs.DevApp/DevFrm/Rk/Frm_MesInvItemArn.cs |   26 ++++++++++++++++++--------
 1 files changed, 18 insertions(+), 8 deletions(-)

diff --git a/DevApp/Gs.DevApp/DevFrm/Rk/Frm_MesInvItemArn.cs b/DevApp/Gs.DevApp/DevFrm/Rk/Frm_MesInvItemArn.cs
index 76da4de..8a64c07 100644
--- a/DevApp/Gs.DevApp/DevFrm/Rk/Frm_MesInvItemArn.cs
+++ b/DevApp/Gs.DevApp/DevFrm/Rk/Frm_MesInvItemArn.cs
@@ -51,6 +51,8 @@
             this.txt_receiveOrgId.EditChanged += (s, e) =>
             {
                 string _orgId = txt_receiveOrgId.GetId();
+                if (string.IsNullOrEmpty(_orgId))
+                    return;
                 txt_suppId.getSuppler(_orgId);
                 txt_depotsId.getSuppler(_orgId);
             };
@@ -72,7 +74,7 @@
                     Gs.DevApp.ToolBox.MsgHelper.ShowError("璇峰厛閫夋嫨渚涘簲鍟嗭紝鎵嶈兘閫夋嫨鏉ユ枡鏄庣粏锛�");
                     return;
                 }
-                var frm = new SelectCgMx(this.txt_suppId.GetId());
+                var frm = new SelectCgMx(this.txt_suppId.GetId(), txt_receiveOrgId.GetId());
                 //璧嬪�肩粰鏄庣粏琛�
                 frm.UpdateParent += (ss, ee) =>
                 {
@@ -81,9 +83,7 @@
                         var lst = new List<string>();
                         lst = ee.StringList;
                         var _obj = lst;
-                        var strReturn = UtilityHelper.HttpPost("",
-                            _webServiceName + "SelectDialogToView",
-                            JsonConvert.SerializeObject(_obj));
+                        var strReturn = UtilityHelper.HttpPost("", _webServiceName + "SelectFormTo", JsonConvert.SerializeObject(_obj));
                         var dt = UtilityHelper.ReturnToList(strReturn);
                         DataTable _newTable = dt.rtnData;
                         DataTable _oldTable = (DataTable)gcMx1.DataSource;
@@ -113,7 +113,7 @@
             Task.Delay(100);
             getPageList(1);
         }
-        
+
         /// <summary>
         ///     鍒嗛〉浜嬩欢
         /// </summary>
@@ -200,8 +200,7 @@
         private void ToolBarMenu1_btnDelClick1(object sender, EventArgs e)
         {
             string rowGuid = "", rowName = "";
-            (rowGuid, rowName) = UtilityHelper.GetCurrentRow(xtraTabControl1,
-                lbGuid, txt_billNo, gridView1);
+            (rowGuid, rowName) = UtilityHelper.GetCurrentRow(xtraTabControl1, lbGuid, txt_billNo, gridView1, "billNo");
             if (string.IsNullOrEmpty(rowGuid))
             {
                 MsgHelper.Warning("璇峰厛閫夋嫨浣犺鎿嶄綔鐨勮锛�");
@@ -271,7 +270,16 @@
                 return;
             }
             Gs.DevApp.ToolBox.UtilityHelper.JumpTab(xtraTabControl1, 3);
-            UtilityHelper.ChangeEnableByControl(panel1.Controls, true);
+            if (xtraTabControl1.SelectedTabPageIndex == 1)
+            {
+                getModel(rowGuid);
+            }
+            else
+            {
+                List<DevExpress.XtraGrid.Views.Grid.GridView> gvList = new List<DevExpress.XtraGrid.Views.Grid.GridView>();
+                gvList.Add(gvMx1);
+                UtilityHelper.ChangeEnableByControl(panel1.Controls, true, gvList);
+            }
         }
 
         /// <summary>
@@ -369,6 +377,8 @@
                 {
                     lbGuid.Text = _rtn.rtnData;
                     toolBarMenu1.isSetBtn = true;
+                    List<DevExpress.XtraGrid.Views.Grid.GridView> gvList = new List<DevExpress.XtraGrid.Views.Grid.GridView>();
+                    gvList.Add(gvMx1);
                     UtilityHelper.ChangeEnableByControl(panel1.Controls, false);
                 }
             }

--
Gitblit v1.9.3