From f23d33d0cf77a73d449cd7c38effda9e50c8fda4 Mon Sep 17 00:00:00 2001
From: lu <99954486@qq.com>
Date: 星期四, 06 三月 2025 08:13:37 +0800
Subject: [PATCH] 版面

---
 DevApp/Gs.DevApp/DevFrm/WOM/Frm_Wompba.cs |   32 ++++++++++++++++++++++----------
 1 files changed, 22 insertions(+), 10 deletions(-)

diff --git a/DevApp/Gs.DevApp/DevFrm/WOM/Frm_Wompba.cs b/DevApp/Gs.DevApp/DevFrm/WOM/Frm_Wompba.cs
index 1884013..9ebbcf0 100644
--- a/DevApp/Gs.DevApp/DevFrm/WOM/Frm_Wompba.cs
+++ b/DevApp/Gs.DevApp/DevFrm/WOM/Frm_Wompba.cs
@@ -17,6 +17,7 @@
     {
         string _webServiceName = "WompbaManager/";
         List<FilterEntity> _filterList = new List<FilterEntity>();
+        string _cjBm = "";//杞﹂棿
         public Frm_Wompba()
         {
             InitializeComponent();
@@ -29,8 +30,12 @@
             this.toolBarMenu1.btnQueryClick += ToolBarMenu1_btnQueryClick;
             toolBarMenu1.btnChkClick += ToolBarMenu1_btnChkClick;
             toolBarMenu1.btnFChkClick += ToolBarMenu1_btnFChkClick;
-             Gs.DevApp.ToolBox.UtilityHelper.SetGridViewParameterMx(this.GetType().FullName, gvMx1);
-            Gs.DevApp.ToolBox.UtilityHelper.SetGridViewParameter(this.GetType().FullName, gridView1, picCheckBox, this, "fstatus", "", (value) =>
+            List<DevExpress.XtraGrid.Views.Grid.GridView> gvList = new List<DevExpress.XtraGrid.Views.Grid.GridView>();
+            gvList.Add(gridView1);
+            gvList.Add(gvMx1);
+            Gs.DevApp.ToolBox.UtilityHelper.getGridViewConfig(this.GetType().FullName, gvList);
+            Gs.DevApp.ToolBox.UtilityHelper.SetGridViewParameterMx(gvMx1);
+            Gs.DevApp.ToolBox.UtilityHelper.SetGridViewParameter(gridView1, picCheckBox, this, "fstatus", "", (value) =>
             {
                 Gs.DevApp.ToolBox.UtilityHelper.JumpTab(xtraTabControl1, 0);
             });
@@ -43,10 +48,15 @@
             });
             getPageList(1);
             pageBar1.PagerEvent += PageBar1_PagerEvent;
-            this.txt_pba013.getSuppler("");
-            txt_erpSczz.EditChanged += (s, e) => {
-                txt_pba013.getSuppler(txt_erpSczz.GetId());
+            //閫夊瓨缁勭粐锛堝彉鏄庣粏涓殑鐗╂枡鍜岃溅闂达級
+            txt_erpSczz.EditChanged += (s, e) =>
+            {
+                string _orgId = txt_erpSczz.GetId();
+                if (string.IsNullOrEmpty(_orgId))
+                    return;
+                txt_pba013.getSuppler(_orgId, _cjBm);
             };
+            // 閫夋嫨杞﹂棿锛堝彉鏄庣粏涓骇绾匡級
             txt_pba013.EditChanged += (s, e) =>
             {
                 string workGuid = this.txt_pba013.GetId();
@@ -122,8 +132,8 @@
             var frm = new ShowFilter(gridView1.Columns, _filterList);
             frm.UpdateParent += Frm_UpdateParent;
             frm.ShowDialog();
-
         }
+       
         /// <summary>
         /// 鏌ヨ鍥炶皟
         /// </summary>
@@ -231,7 +241,7 @@
             _toolCk(0, "EditModelSubmitFSH");
         }
 
-        
+
         /// <summary>
         /// 淇敼浜嬩欢
         /// </summary>
@@ -384,6 +394,7 @@
                     List<DevExpress.XtraGrid.Views.Grid.GridView> gvList = new List<DevExpress.XtraGrid.Views.Grid.GridView>();
                     gvList.Add(gvMx1);
                     UtilityHelper.ChangeEnableByControl(this.panel1.Controls, false, gvList);
+                    toolBarMenu1.currentAction = "";
                 }
             }
             catch (Exception ex)
@@ -457,10 +468,12 @@
                 if (_rtn.rtnCode > 0)
                 {
                     dynamic dy = _rtn.rtnData;
+                    _cjBm = dy.pba013;
                     lbGuid.Text = strGuid;
                     List<DevExpress.XtraGrid.Views.Grid.GridView> gvList = new List<DevExpress.XtraGrid.Views.Grid.GridView>();
                     gvList.Add(gvMx1);
                     UtilityHelper.SetValueByObj(this.panel1.Controls, dy, isEdit, gvList);
+                    _cjBm = "";
                     JObject _job = JObject.Parse(strJson);
                     JArray array = new JArray();
                     foreach (var a in _job["rtnData"]["list"])
@@ -537,7 +550,7 @@
             rptJYBZ.Items.Clear();
             if (string.IsNullOrEmpty(workGuid))
                 return;
-            var _sbSqlWhere = " and 1=1 and dpt_id="+ workGuid;
+            var _sbSqlWhere = " and 1=1 and dpt_id=" + workGuid;
             var pgq = new PageQueryModel(1, 999999, "a.line_no", "asc", "", _sbSqlWhere.ToString());
             var json = JsonConvert.SerializeObject(pgq);
             try
@@ -605,8 +618,7 @@
             };
             try
             {
-                var strJson = UtilityHelper.HttpPost("", _webServiceName + _mth,
-                    JsonConvert.SerializeObject(_obj));
+                var strJson = UtilityHelper.HttpPost("", _webServiceName + _mth,JsonConvert.SerializeObject(_obj));
                 var _rtn = UtilityHelper.ReturnToDynamic(strJson);
                 MsgHelper.Warning(_rtn.rtnData.outMsg.ToString());
                 if (_rtn.rtnCode > 0 && _rtn.rtnData.outSum * 1 > 0)

--
Gitblit v1.9.3