From e1dbb26b92643e7d78ffa8548586af38e2f1dc11 Mon Sep 17 00:00:00 2001
From: lu <99954486@qq.com>
Date: 星期四, 09 一月 2025 09:34:26 +0800
Subject: [PATCH] 细节

---
 DevApp/Gs.DevApp/DevFrm/Ck/Frm_MesCgthSq.cs |   38 +++++++++++++++++++++++++++++---------
 1 files changed, 29 insertions(+), 9 deletions(-)

diff --git a/DevApp/Gs.DevApp/DevFrm/Ck/Frm_MesCgthSq.cs b/DevApp/Gs.DevApp/DevFrm/Ck/Frm_MesCgthSq.cs
index edd4f5b..4ee2fb1 100644
--- a/DevApp/Gs.DevApp/DevFrm/Ck/Frm_MesCgthSq.cs
+++ b/DevApp/Gs.DevApp/DevFrm/Ck/Frm_MesCgthSq.cs
@@ -43,6 +43,14 @@
             pageBar1.PagerEvent += PageBar1_PagerEvent;
             txt_depotId.getSuppler("");
             txt_suppId.getSuppler("");
+            txt_thOrgId.EditChanged += (s, e) =>
+            {
+                var orgId = txt_thOrgId.GetId();
+                if (string.IsNullOrEmpty(orgId))
+                    return;
+                txt_suppId.getSuppler(orgId);
+                txt_depotId.getSuppler(orgId);
+            };
             //閫夋嫨闇�瑕佺殑鏄庣粏
             btnSelect.Click += (s, e) =>
             {
@@ -150,7 +158,7 @@
         /// <param name="e"></param>
         private void ToolBarMenu1_btnEscClick(object sender, EventArgs e)
         {
-            UtilityHelper.JumpToTab(xtraTabControl1, 0);
+            Gs.DevApp.ToolBox.UtilityHelper.JumpTab(xtraTabControl1, 1);
         }
 
         /// <summary>
@@ -225,16 +233,23 @@
         private void ToolBarMenu1_btnEdtClick(object sender, EventArgs e)
         {
             string rowGuid = "", rowName = "";
-            (rowGuid, rowName) = UtilityHelper.GetCurrentRow(xtraTabControl1, lbGuid, txt_billNo, gridView1, "blNo");
+            (rowGuid, rowName) = UtilityHelper.GetCurrentRow(xtraTabControl1, lbGuid, txt_billNo, gridView1, "billNo");
             if (string.IsNullOrEmpty(rowGuid))
             {
                 ToolBox.MsgHelper.Warning("璇峰厛閫夋嫨浣犺鎿嶄綔鐨勮锛�");
                 return;
             }
             Gs.DevApp.ToolBox.UtilityHelper.JumpTab(xtraTabControl1, 3);
-            List<DevExpress.XtraGrid.Views.Grid.GridView> gvList = new List<DevExpress.XtraGrid.Views.Grid.GridView>();
-            gvList.Add(gvMx1);
-            UtilityHelper.ChangeEnableByControl(panel1.Controls, true, gvList);
+            if (xtraTabControl1.SelectedTabPageIndex == 1)
+            {
+                getModel(lbGuid.Text.Trim());
+            }
+            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>
         /// 鏂板浜嬩欢
@@ -260,6 +275,13 @@
             toolBarMenu1.isSetBtn = false;
             var _ckId = txt_depotId.GetId(); //浠撳簱缂栧彿 depots_code
             var _gysId = txt_suppId.GetId(); //渚涘簲鍟嗙紪鍙�
+            string _orgId = txt_thOrgId.GetId();
+            if (string.IsNullOrEmpty(_orgId))
+            {
+                MsgHelper.Warning("璇烽�夋嫨缁勭粐锛�");
+                txt_thOrgId.Focus();
+                return;
+            }
             if (string.IsNullOrEmpty(_gysId))
             {
                 MsgHelper.Warning("璇烽�夋嫨渚涘簲鍟嗭紒");
@@ -280,7 +302,7 @@
             }
             if (string.IsNullOrEmpty(txt_returnType.Text.Trim()))
             {
-                MsgHelper.Warning("璇烽�夋嫨閫�鏂欑被鍨嬶紒");
+                MsgHelper.Warning("璇烽�夋嫨閫�鏂欏師鍥狅紒");
                 txt_returnType.Focus();
                 return;
             }
@@ -292,7 +314,7 @@
                 DepotId = int.Parse(_ckId),//浠撳簱
                 FType = txt_isOut.Checked == true ? 1 : 0,  //0=閲囪喘锛�1=濮斿
                 Fmrmode = txt_returnMethod.Text,//閫�鏂欐柟寮�
-                Reason = txt_returnType.Text,//閫�鏂欑被鍨�
+                Reason = txt_returnType.Text,//閫�鏂欏師鍥�
                 list = new List<dynamic>(),
             };
             gvMx1.CloseEditor();
@@ -435,7 +457,6 @@
                 ToolBox.MsgHelper.Warning("鎻愮ず锛�" + ex.Message);
             }
         }
-
         /// <summary>
         /// 宸ュ叿鏉′簨浠�
         /// </summary>
@@ -488,7 +509,6 @@
             }
 
         }
-
         private void repositoryItemButtonEdit1_ButtonClick(object sender, DevExpress.XtraEditors.Controls.ButtonPressedEventArgs e)
         {
             gvMx1.CloseEditor();

--
Gitblit v1.9.3