From e4c662a16cbecd88e64bfeea677ef2a0c97ab771 Mon Sep 17 00:00:00 2001
From: wbc <2597324127@qq.com>
Date: 星期四, 11 十二月 2025 23:22:47 +0800
Subject: [PATCH] 蓝宝自动调拨相关更新

---
 DevApp/Gs.DevApp/DevFrm/WOM/Frm_Wompba.cs             |  255 +++++++++++++++++++++++
 DevApp/Gs.DevApp/DevFrm/WOM/Frm_MesScrkDj.Designer.cs |   96 ++++----
 DevApp/Gs.DevApp/DevFrm/WOM/Frm_Wompba.Designer.cs    |  265 ++++++++++++++++-------
 3 files changed, 486 insertions(+), 130 deletions(-)

diff --git a/DevApp/Gs.DevApp/DevFrm/WOM/Frm_MesScrkDj.Designer.cs b/DevApp/Gs.DevApp/DevFrm/WOM/Frm_MesScrkDj.Designer.cs
index 109842e..6093f55 100644
--- a/DevApp/Gs.DevApp/DevFrm/WOM/Frm_MesScrkDj.Designer.cs
+++ b/DevApp/Gs.DevApp/DevFrm/WOM/Frm_MesScrkDj.Designer.cs
@@ -54,6 +54,7 @@
             this.gv_lastupdateDate = new DevExpress.XtraGrid.Columns.GridColumn();
             this.gv_checkUser = new DevExpress.XtraGrid.Columns.GridColumn();
             this.gv_checkDate = new DevExpress.XtraGrid.Columns.GridColumn();
+            this.gv_rkqty = new DevExpress.XtraGrid.Columns.GridColumn();
             this.gv_taskNo = new DevExpress.XtraGrid.Columns.GridColumn();
             this.gridColumn8 = new DevExpress.XtraGrid.Columns.GridColumn();
             this.gridColumn9 = new DevExpress.XtraGrid.Columns.GridColumn();
@@ -158,7 +159,6 @@
             this.gridColumn4 = new DevExpress.XtraGrid.Columns.GridColumn();
             this.picCheckBox = new System.Windows.Forms.PictureBox();
             this.tips = new DevExpress.Utils.ToolTipController(this.components);
-            this.gv_rkqty = new DevExpress.XtraGrid.Columns.GridColumn();
             ((System.ComponentModel.ISupportInitialize)(this.xtraTabControl1)).BeginInit();
             this.xtraTabControl1.SuspendLayout();
             this.xtraTabPage1.SuspendLayout();
@@ -442,6 +442,16 @@
             this.gv_checkDate.Visible = true;
             this.gv_checkDate.VisibleIndex = 15;
             this.gv_checkDate.Width = 180;
+            // 
+            // gv_rkqty
+            // 
+            this.gv_rkqty.Caption = "鍏ュ簱鏁伴噺";
+            this.gv_rkqty.FieldName = "rkQty";
+            this.gv_rkqty.MinWidth = 25;
+            this.gv_rkqty.Name = "gv_rkqty";
+            this.gv_rkqty.Visible = true;
+            this.gv_rkqty.VisibleIndex = 9;
+            this.gv_rkqty.Width = 138;
             // 
             // gv_taskNo
             // 
@@ -857,7 +867,7 @@
             this.splitMx1.Panel2.Text = "Panel2";
             this.splitMx1.ShowSplitGlyph = DevExpress.Utils.DefaultBoolean.True;
             this.splitMx1.Size = new System.Drawing.Size(1467, 570);
-            this.splitMx1.SplitterPosition = 172;
+            this.splitMx1.SplitterPosition = 174;
             this.splitMx1.TabIndex = 0;
             // 
             // layoutMx1
@@ -889,7 +899,7 @@
             this.layoutMx1.Name = "layoutMx1";
             this.layoutMx1.OptionsCustomizationForm.DesignTimeCustomizationFormPositionAndSize = new System.Drawing.Rectangle(486, 477, 812, 500);
             this.layoutMx1.Root = this.Root;
-            this.layoutMx1.Size = new System.Drawing.Size(1467, 172);
+            this.layoutMx1.Size = new System.Drawing.Size(1467, 174);
             this.layoutMx1.TabIndex = 0;
             this.layoutMx1.Text = "layoutControl1";
             // 
@@ -913,7 +923,7 @@
             // 
             // txt_fcheckUser
             // 
-            this.txt_fcheckUser.Location = new System.Drawing.Point(1169, 72);
+            this.txt_fcheckUser.Location = new System.Drawing.Point(1169, 73);
             this.txt_fcheckUser.Name = "txt_fcheckUser";
             this.txt_fcheckUser.Properties.Appearance.Options.UseFont = true;
             this.txt_fcheckUser.Size = new System.Drawing.Size(286, 24);
@@ -922,7 +932,7 @@
             // 
             // txt_checkDate
             // 
-            this.txt_checkDate.Location = new System.Drawing.Point(1169, 102);
+            this.txt_checkDate.Location = new System.Drawing.Point(1169, 104);
             this.txt_checkDate.Name = "txt_checkDate";
             this.txt_checkDate.Properties.Appearance.Options.UseFont = true;
             this.txt_checkDate.Size = new System.Drawing.Size(286, 24);
@@ -931,7 +941,7 @@
             // 
             // txt_itemName
             // 
-            this.txt_itemName.Location = new System.Drawing.Point(84, 102);
+            this.txt_itemName.Location = new System.Drawing.Point(84, 104);
             this.txt_itemName.Name = "txt_itemName";
             this.txt_itemName.Properties.Appearance.Options.UseFont = true;
             this.txt_itemName.Size = new System.Drawing.Size(285, 24);
@@ -941,7 +951,7 @@
             // 
             // txt_itemNo
             // 
-            this.txt_itemNo.Location = new System.Drawing.Point(445, 102);
+            this.txt_itemNo.Location = new System.Drawing.Point(445, 104);
             this.txt_itemNo.Name = "txt_itemNo";
             this.txt_itemNo.Properties.Appearance.Options.UseFont = true;
             this.txt_itemNo.Size = new System.Drawing.Size(286, 24);
@@ -961,7 +971,7 @@
             // 
             // txt_remark
             // 
-            this.txt_remark.Location = new System.Drawing.Point(84, 132);
+            this.txt_remark.Location = new System.Drawing.Point(84, 135);
             this.txt_remark.Name = "txt_remark";
             this.txt_remark.Properties.Appearance.Options.UseFont = true;
             this.txt_remark.Size = new System.Drawing.Size(647, 24);
@@ -970,7 +980,7 @@
             // 
             // txt_itemModel
             // 
-            this.txt_itemModel.Location = new System.Drawing.Point(445, 72);
+            this.txt_itemModel.Location = new System.Drawing.Point(445, 73);
             this.txt_itemModel.Name = "txt_itemModel";
             this.txt_itemModel.Properties.Appearance.Options.UseFont = true;
             this.txt_itemModel.Size = new System.Drawing.Size(286, 24);
@@ -1017,7 +1027,7 @@
             // 
             // txt_depotName
             // 
-            this.txt_depotName.Location = new System.Drawing.Point(807, 72);
+            this.txt_depotName.Location = new System.Drawing.Point(807, 73);
             this.txt_depotName.Name = "txt_depotName";
             this.txt_depotName.Properties.Appearance.Options.UseFont = true;
             this.txt_depotName.Size = new System.Drawing.Size(286, 24);
@@ -1036,7 +1046,7 @@
             // 
             // txt_workNo
             // 
-            this.txt_workNo.Location = new System.Drawing.Point(84, 72);
+            this.txt_workNo.Location = new System.Drawing.Point(84, 73);
             this.txt_workNo.Name = "txt_workNo";
             this.txt_workNo.Properties.Appearance.Options.UseFont = true;
             this.txt_workNo.Size = new System.Drawing.Size(285, 24);
@@ -1045,7 +1055,7 @@
             // 
             // txt_fstatus
             // 
-            this.txt_fstatus.Location = new System.Drawing.Point(1097, 132);
+            this.txt_fstatus.Location = new System.Drawing.Point(1097, 135);
             this.txt_fstatus.Name = "txt_fstatus";
             this.txt_fstatus.Properties.Caption = "瀹℃牳鐘舵��";
             this.txt_fstatus.Size = new System.Drawing.Size(358, 24);
@@ -1144,7 +1154,7 @@
             rowDefinition8,
             rowDefinition9,
             rowDefinition10});
-            this.Root.Size = new System.Drawing.Size(1467, 172);
+            this.Root.Size = new System.Drawing.Size(1467, 174);
             this.Root.TextVisible = false;
             // 
             // layoutControlItem1
@@ -1169,11 +1179,11 @@
             // layoutControlItem5
             // 
             this.layoutControlItem5.Control = this.txt_depotName;
-            this.layoutControlItem5.Location = new System.Drawing.Point(723, 60);
+            this.layoutControlItem5.Location = new System.Drawing.Point(723, 61);
             this.layoutControlItem5.Name = "layoutControlItem5";
             this.layoutControlItem5.OptionsTableLayoutItem.ColumnIndex = 2;
             this.layoutControlItem5.OptionsTableLayoutItem.RowIndex = 2;
-            this.layoutControlItem5.Size = new System.Drawing.Size(362, 30);
+            this.layoutControlItem5.Size = new System.Drawing.Size(362, 31);
             this.layoutControlItem5.Text = "浠撳簱鍚嶇О";
             this.layoutControlItem5.TextSize = new System.Drawing.Size(60, 18);
             // 
@@ -1183,60 +1193,60 @@
             this.layoutControlItem7.Location = new System.Drawing.Point(0, 30);
             this.layoutControlItem7.Name = "layoutControlItem7";
             this.layoutControlItem7.OptionsTableLayoutItem.RowIndex = 1;
-            this.layoutControlItem7.Size = new System.Drawing.Size(361, 30);
+            this.layoutControlItem7.Size = new System.Drawing.Size(361, 31);
             this.layoutControlItem7.Text = "宸ュ崟鍗曞彿";
             this.layoutControlItem7.TextSize = new System.Drawing.Size(60, 18);
             // 
             // layoutControlItem9
             // 
             this.layoutControlItem9.Control = this.txt_workNo;
-            this.layoutControlItem9.Location = new System.Drawing.Point(0, 60);
+            this.layoutControlItem9.Location = new System.Drawing.Point(0, 61);
             this.layoutControlItem9.Name = "layoutControlItem9";
             this.layoutControlItem9.OptionsTableLayoutItem.RowIndex = 2;
-            this.layoutControlItem9.Size = new System.Drawing.Size(361, 30);
+            this.layoutControlItem9.Size = new System.Drawing.Size(361, 31);
             this.layoutControlItem9.Text = "浠诲姟鍗曞彿";
             this.layoutControlItem9.TextSize = new System.Drawing.Size(60, 18);
             // 
             // layoutControlItem11
             // 
             this.layoutControlItem11.Control = this.txt_itemName;
-            this.layoutControlItem11.Location = new System.Drawing.Point(0, 90);
+            this.layoutControlItem11.Location = new System.Drawing.Point(0, 92);
             this.layoutControlItem11.Name = "layoutControlItem11";
             this.layoutControlItem11.OptionsTableLayoutItem.RowIndex = 3;
-            this.layoutControlItem11.Size = new System.Drawing.Size(361, 30);
+            this.layoutControlItem11.Size = new System.Drawing.Size(361, 31);
             this.layoutControlItem11.Text = "浜у搧缂栫爜";
             this.layoutControlItem11.TextSize = new System.Drawing.Size(60, 18);
             // 
             // layoutControlItem12
             // 
             this.layoutControlItem12.Control = this.txt_itemNo;
-            this.layoutControlItem12.Location = new System.Drawing.Point(361, 90);
+            this.layoutControlItem12.Location = new System.Drawing.Point(361, 92);
             this.layoutControlItem12.Name = "layoutControlItem12";
             this.layoutControlItem12.OptionsTableLayoutItem.ColumnIndex = 1;
             this.layoutControlItem12.OptionsTableLayoutItem.RowIndex = 3;
-            this.layoutControlItem12.Size = new System.Drawing.Size(362, 30);
+            this.layoutControlItem12.Size = new System.Drawing.Size(362, 31);
             this.layoutControlItem12.Text = "浜у搧鍚嶇О";
             this.layoutControlItem12.TextSize = new System.Drawing.Size(60, 18);
             // 
             // layoutControlItem13
             // 
             this.layoutControlItem13.Control = this.txt_remark;
-            this.layoutControlItem13.Location = new System.Drawing.Point(0, 120);
+            this.layoutControlItem13.Location = new System.Drawing.Point(0, 123);
             this.layoutControlItem13.Name = "layoutControlItem13";
             this.layoutControlItem13.OptionsTableLayoutItem.ColumnSpan = 2;
             this.layoutControlItem13.OptionsTableLayoutItem.RowIndex = 4;
-            this.layoutControlItem13.Size = new System.Drawing.Size(723, 32);
+            this.layoutControlItem13.Size = new System.Drawing.Size(723, 31);
             this.layoutControlItem13.Text = "澶囨敞";
             this.layoutControlItem13.TextSize = new System.Drawing.Size(60, 18);
             // 
             // layoutControlItem16
             // 
             this.layoutControlItem16.Control = this.txt_fstatus;
-            this.layoutControlItem16.Location = new System.Drawing.Point(1085, 120);
+            this.layoutControlItem16.Location = new System.Drawing.Point(1085, 123);
             this.layoutControlItem16.Name = "layoutControlItem16";
             this.layoutControlItem16.OptionsTableLayoutItem.ColumnIndex = 3;
             this.layoutControlItem16.OptionsTableLayoutItem.RowIndex = 4;
-            this.layoutControlItem16.Size = new System.Drawing.Size(362, 32);
+            this.layoutControlItem16.Size = new System.Drawing.Size(362, 31);
             this.layoutControlItem16.Text = "瀹℃牳鏍囪瘑";
             this.layoutControlItem16.TextSize = new System.Drawing.Size(0, 0);
             this.layoutControlItem16.TextVisible = false;
@@ -1244,22 +1254,22 @@
             // layoutControlItem15
             // 
             this.layoutControlItem15.Control = this.txt_checkDate;
-            this.layoutControlItem15.Location = new System.Drawing.Point(1085, 90);
+            this.layoutControlItem15.Location = new System.Drawing.Point(1085, 92);
             this.layoutControlItem15.Name = "layoutControlItem15";
             this.layoutControlItem15.OptionsTableLayoutItem.ColumnIndex = 3;
             this.layoutControlItem15.OptionsTableLayoutItem.RowIndex = 3;
-            this.layoutControlItem15.Size = new System.Drawing.Size(362, 30);
+            this.layoutControlItem15.Size = new System.Drawing.Size(362, 31);
             this.layoutControlItem15.Text = "瀹℃牳鏃堕棿";
             this.layoutControlItem15.TextSize = new System.Drawing.Size(60, 18);
             // 
             // layoutControlItem14
             // 
             this.layoutControlItem14.Control = this.txt_fcheckUser;
-            this.layoutControlItem14.Location = new System.Drawing.Point(1085, 60);
+            this.layoutControlItem14.Location = new System.Drawing.Point(1085, 61);
             this.layoutControlItem14.Name = "layoutControlItem14";
             this.layoutControlItem14.OptionsTableLayoutItem.ColumnIndex = 3;
             this.layoutControlItem14.OptionsTableLayoutItem.RowIndex = 2;
-            this.layoutControlItem14.Size = new System.Drawing.Size(362, 30);
+            this.layoutControlItem14.Size = new System.Drawing.Size(362, 31);
             this.layoutControlItem14.Text = "瀹℃牳浜�";
             this.layoutControlItem14.TextSize = new System.Drawing.Size(60, 18);
             // 
@@ -1280,7 +1290,7 @@
             this.layoutControlItem4.Name = "layoutControlItem4";
             this.layoutControlItem4.OptionsTableLayoutItem.ColumnIndex = 3;
             this.layoutControlItem4.OptionsTableLayoutItem.RowIndex = 1;
-            this.layoutControlItem4.Size = new System.Drawing.Size(362, 30);
+            this.layoutControlItem4.Size = new System.Drawing.Size(362, 31);
             this.layoutControlItem4.Text = "鍒涘缓鏃堕棿";
             this.layoutControlItem4.TextSize = new System.Drawing.Size(60, 18);
             // 
@@ -1301,7 +1311,7 @@
             this.layoutControlItem19.Name = "layoutControlItem19";
             this.layoutControlItem19.OptionsTableLayoutItem.ColumnIndex = 1;
             this.layoutControlItem19.OptionsTableLayoutItem.RowIndex = 1;
-            this.layoutControlItem19.Size = new System.Drawing.Size(362, 30);
+            this.layoutControlItem19.Size = new System.Drawing.Size(362, 31);
             this.layoutControlItem19.Text = "鎶曟枡鍗曞彿";
             this.layoutControlItem19.TextSize = new System.Drawing.Size(60, 18);
             // 
@@ -1312,18 +1322,18 @@
             this.layoutControlItem10.Name = "layoutControlItem10";
             this.layoutControlItem10.OptionsTableLayoutItem.ColumnIndex = 2;
             this.layoutControlItem10.OptionsTableLayoutItem.RowIndex = 1;
-            this.layoutControlItem10.Size = new System.Drawing.Size(362, 30);
+            this.layoutControlItem10.Size = new System.Drawing.Size(362, 31);
             this.layoutControlItem10.Text = "鐢熶骇杞﹂棿";
             this.layoutControlItem10.TextSize = new System.Drawing.Size(60, 18);
             // 
             // layoutControlItem6
             // 
             this.layoutControlItem6.Control = this.txt_itemModel;
-            this.layoutControlItem6.Location = new System.Drawing.Point(361, 60);
+            this.layoutControlItem6.Location = new System.Drawing.Point(361, 61);
             this.layoutControlItem6.Name = "layoutControlItem6";
             this.layoutControlItem6.OptionsTableLayoutItem.ColumnIndex = 1;
             this.layoutControlItem6.OptionsTableLayoutItem.RowIndex = 2;
-            this.layoutControlItem6.Size = new System.Drawing.Size(362, 30);
+            this.layoutControlItem6.Size = new System.Drawing.Size(362, 31);
             this.layoutControlItem6.Text = "瑙勬牸鍨嬪彿";
             this.layoutControlItem6.TextSize = new System.Drawing.Size(60, 18);
             // 
@@ -1333,7 +1343,7 @@
             this.tabMx.Location = new System.Drawing.Point(0, 0);
             this.tabMx.Name = "tabMx";
             this.tabMx.SelectedTabPage = this.tabMxPage2;
-            this.tabMx.Size = new System.Drawing.Size(1467, 386);
+            this.tabMx.Size = new System.Drawing.Size(1467, 384);
             this.tabMx.TabIndex = 3;
             this.tabMx.TabPages.AddRange(new DevExpress.XtraTab.XtraTabPage[] {
             this.tabMxPage2,
@@ -1343,7 +1353,7 @@
             // 
             this.tabMxPage2.Controls.Add(this.gcMx1);
             this.tabMxPage2.Name = "tabMxPage2";
-            this.tabMxPage2.Size = new System.Drawing.Size(1465, 354);
+            this.tabMxPage2.Size = new System.Drawing.Size(1465, 352);
             this.tabMxPage2.Text = "鐗╂枡鏄庣粏";
             // 
             // gcMx1
@@ -1352,7 +1362,7 @@
             this.gcMx1.Location = new System.Drawing.Point(0, 0);
             this.gcMx1.MainView = this.gvMx1;
             this.gcMx1.Name = "gcMx1";
-            this.gcMx1.Size = new System.Drawing.Size(1465, 354);
+            this.gcMx1.Size = new System.Drawing.Size(1465, 352);
             this.gcMx1.TabIndex = 0;
             this.gcMx1.ViewCollection.AddRange(new DevExpress.XtraGrid.Views.Base.BaseView[] {
             this.gvMx1});
@@ -1601,16 +1611,6 @@
             this.picCheckBox.TabIndex = 6;
             this.picCheckBox.TabStop = false;
             this.picCheckBox.Visible = false;
-            // 
-            // gv_rkqty
-            // 
-            this.gv_rkqty.Caption = "鍏ュ簱鏁伴噺";
-            this.gv_rkqty.FieldName = "rkQty";
-            this.gv_rkqty.MinWidth = 25;
-            this.gv_rkqty.Name = "gv_rkqty";
-            this.gv_rkqty.Visible = true;
-            this.gv_rkqty.VisibleIndex = 9;
-            this.gv_rkqty.Width = 138;
             // 
             // Frm_MesScrkDj
             // 
diff --git a/DevApp/Gs.DevApp/DevFrm/WOM/Frm_Wompba.Designer.cs b/DevApp/Gs.DevApp/DevFrm/WOM/Frm_Wompba.Designer.cs
index b432c25..78dbc54 100644
--- a/DevApp/Gs.DevApp/DevFrm/WOM/Frm_Wompba.Designer.cs
+++ b/DevApp/Gs.DevApp/DevFrm/WOM/Frm_Wompba.Designer.cs
@@ -30,18 +30,18 @@
         private void InitializeComponent()
         {
             this.components = new System.ComponentModel.Container();
-            DevExpress.XtraLayout.ColumnDefinition columnDefinition1 = new DevExpress.XtraLayout.ColumnDefinition();
-            DevExpress.XtraLayout.ColumnDefinition columnDefinition2 = new DevExpress.XtraLayout.ColumnDefinition();
-            DevExpress.XtraLayout.ColumnDefinition columnDefinition3 = new DevExpress.XtraLayout.ColumnDefinition();
-            DevExpress.XtraLayout.ColumnDefinition columnDefinition4 = new DevExpress.XtraLayout.ColumnDefinition();
-            DevExpress.XtraLayout.RowDefinition rowDefinition1 = new DevExpress.XtraLayout.RowDefinition();
-            DevExpress.XtraLayout.RowDefinition rowDefinition2 = new DevExpress.XtraLayout.RowDefinition();
-            DevExpress.XtraLayout.RowDefinition rowDefinition3 = new DevExpress.XtraLayout.RowDefinition();
-            DevExpress.XtraEditors.Controls.EditorButtonImageOptions editorButtonImageOptions1 = new DevExpress.XtraEditors.Controls.EditorButtonImageOptions();
-            DevExpress.Utils.SerializableAppearanceObject serializableAppearanceObject1 = new DevExpress.Utils.SerializableAppearanceObject();
-            DevExpress.Utils.SerializableAppearanceObject serializableAppearanceObject2 = new DevExpress.Utils.SerializableAppearanceObject();
-            DevExpress.Utils.SerializableAppearanceObject serializableAppearanceObject3 = new DevExpress.Utils.SerializableAppearanceObject();
-            DevExpress.Utils.SerializableAppearanceObject serializableAppearanceObject4 = new DevExpress.Utils.SerializableAppearanceObject();
+            DevExpress.XtraLayout.ColumnDefinition columnDefinition13 = new DevExpress.XtraLayout.ColumnDefinition();
+            DevExpress.XtraLayout.ColumnDefinition columnDefinition14 = new DevExpress.XtraLayout.ColumnDefinition();
+            DevExpress.XtraLayout.ColumnDefinition columnDefinition15 = new DevExpress.XtraLayout.ColumnDefinition();
+            DevExpress.XtraLayout.ColumnDefinition columnDefinition16 = new DevExpress.XtraLayout.ColumnDefinition();
+            DevExpress.XtraLayout.RowDefinition rowDefinition10 = new DevExpress.XtraLayout.RowDefinition();
+            DevExpress.XtraLayout.RowDefinition rowDefinition11 = new DevExpress.XtraLayout.RowDefinition();
+            DevExpress.XtraLayout.RowDefinition rowDefinition12 = new DevExpress.XtraLayout.RowDefinition();
+            DevExpress.XtraEditors.Controls.EditorButtonImageOptions editorButtonImageOptions4 = new DevExpress.XtraEditors.Controls.EditorButtonImageOptions();
+            DevExpress.Utils.SerializableAppearanceObject serializableAppearanceObject13 = new DevExpress.Utils.SerializableAppearanceObject();
+            DevExpress.Utils.SerializableAppearanceObject serializableAppearanceObject14 = new DevExpress.Utils.SerializableAppearanceObject();
+            DevExpress.Utils.SerializableAppearanceObject serializableAppearanceObject15 = new DevExpress.Utils.SerializableAppearanceObject();
+            DevExpress.Utils.SerializableAppearanceObject serializableAppearanceObject16 = new DevExpress.Utils.SerializableAppearanceObject();
             System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Frm_Wompba));
             this.repositoryItemDateEdit1 = new DevExpress.XtraEditors.Repository.RepositoryItemDateEdit();
             this.repositoryItemDateEdit4 = new DevExpress.XtraEditors.Repository.RepositoryItemDateEdit();
@@ -116,10 +116,17 @@
             this.tableMxContainer = new System.Windows.Forms.TableLayoutPanel();
             this.panelMxButtons = new System.Windows.Forms.Panel();
             this.btnMultiSelect = new DevExpress.XtraEditors.SimpleButton();
+            this.btnBatchSetDepotSections = new DevExpress.XtraEditors.SimpleButton();
             this.gcMx1 = new DevExpress.XtraGrid.GridControl();
             this.gvMx1 = new DevExpress.XtraGrid.Views.Grid.GridView();
             this.gvMx1guid = new DevExpress.XtraGrid.Columns.GridColumn();
             this.caaGuid = new DevExpress.XtraGrid.Columns.GridColumn();
+            this.gvMx1ZDDB = new DevExpress.XtraGrid.Columns.GridColumn();
+            this.gvMx1DepotId = new DevExpress.XtraGrid.Columns.GridColumn();
+            this.gvMx1DepotName = new DevExpress.XtraGrid.Columns.GridColumn();
+            this.rptDepotName = new DevExpress.XtraEditors.Repository.RepositoryItemComboBox();
+            this.gvMx1DepotSections = new DevExpress.XtraGrid.Columns.GridColumn();
+            this.rptDepotSections = new DevExpress.XtraEditors.Repository.RepositoryItemComboBox();
             this.gvMx1daa002 = new DevExpress.XtraGrid.Columns.GridColumn();
             this.gvMx1daa010 = new DevExpress.XtraGrid.Columns.GridColumn();
             this.gvMx1daa005 = new DevExpress.XtraGrid.Columns.GridColumn();
@@ -230,6 +237,8 @@
             this.panelMxButtons.SuspendLayout();
             ((System.ComponentModel.ISupportInitialize)(this.gcMx1)).BeginInit();
             ((System.ComponentModel.ISupportInitialize)(this.gvMx1)).BeginInit();
+            ((System.ComponentModel.ISupportInitialize)(this.rptDepotName)).BeginInit();
+            ((System.ComponentModel.ISupportInitialize)(this.rptDepotSections)).BeginInit();
             ((System.ComponentModel.ISupportInitialize)(this.repositoryItemDateEdit2)).BeginInit();
             ((System.ComponentModel.ISupportInitialize)(this.repositoryItemDateEdit2.CalendarTimeProperties)).BeginInit();
             ((System.ComponentModel.ISupportInitialize)(this.repositoryItemDateEdit3)).BeginInit();
@@ -930,7 +939,7 @@
             this.txt_pba013.IsReadly = false;
             this.txt_pba013.Location = new System.Drawing.Point(89, 43);
             this.txt_pba013.Name = "txt_pba013";
-            this.txt_pba013.Size = new System.Drawing.Size(320, 24);
+            this.txt_pba013.Size = new System.Drawing.Size(315, 24);
             this.txt_pba013.TabIndex = 459;
             // 
             // txt_erpSczz
@@ -938,54 +947,54 @@
             this.txt_erpSczz.IsReadly = false;
             this.txt_erpSczz.Location = new System.Drawing.Point(89, 12);
             this.txt_erpSczz.Name = "txt_erpSczz";
-            this.txt_erpSczz.Size = new System.Drawing.Size(320, 24);
+            this.txt_erpSczz.Size = new System.Drawing.Size(315, 24);
             this.txt_erpSczz.TabIndex = 460;
             // 
             // txt_hNo
             // 
-            this.txt_hNo.Location = new System.Drawing.Point(490, 12);
+            this.txt_hNo.Location = new System.Drawing.Point(485, 12);
             this.txt_hNo.Name = "txt_hNo";
             this.txt_hNo.Properties.Appearance.Options.UseFont = true;
-            this.txt_hNo.Size = new System.Drawing.Size(320, 24);
+            this.txt_hNo.Size = new System.Drawing.Size(315, 24);
             this.txt_hNo.StyleController = this.layoutMx1;
             this.txt_hNo.TabIndex = 458;
             this.txt_hNo.Tag = "readonly";
             // 
             // txt_pba009
             // 
-            this.txt_pba009.Location = new System.Drawing.Point(490, 43);
+            this.txt_pba009.Location = new System.Drawing.Point(485, 43);
             this.txt_pba009.Name = "txt_pba009";
             this.txt_pba009.Properties.Appearance.Options.UseFont = true;
-            this.txt_pba009.Size = new System.Drawing.Size(721, 24);
+            this.txt_pba009.Size = new System.Drawing.Size(711, 24);
             this.txt_pba009.StyleController = this.layoutMx1;
             this.txt_pba009.TabIndex = 240;
             // 
             // txt_checkUser
             // 
-            this.txt_checkUser.Location = new System.Drawing.Point(1292, 12);
+            this.txt_checkUser.Location = new System.Drawing.Point(1277, 12);
             this.txt_checkUser.Name = "txt_checkUser";
             this.txt_checkUser.Properties.Appearance.Options.UseFont = true;
-            this.txt_checkUser.Size = new System.Drawing.Size(322, 24);
+            this.txt_checkUser.Size = new System.Drawing.Size(316, 24);
             this.txt_checkUser.StyleController = this.layoutMx1;
             this.txt_checkUser.TabIndex = 273;
             this.txt_checkUser.Tag = "readonly";
             // 
             // txt_checkDate
             // 
-            this.txt_checkDate.Location = new System.Drawing.Point(891, 12);
+            this.txt_checkDate.Location = new System.Drawing.Point(881, 12);
             this.txt_checkDate.Name = "txt_checkDate";
             this.txt_checkDate.Properties.Appearance.Options.UseFont = true;
-            this.txt_checkDate.Size = new System.Drawing.Size(320, 24);
+            this.txt_checkDate.Size = new System.Drawing.Size(315, 24);
             this.txt_checkDate.StyleController = this.layoutMx1;
             this.txt_checkDate.TabIndex = 267;
             this.txt_checkDate.Tag = "readonly";
             // 
             // txt_fstatus
             // 
-            this.txt_fstatus.Location = new System.Drawing.Point(1215, 43);
+            this.txt_fstatus.Location = new System.Drawing.Point(1200, 43);
             this.txt_fstatus.Name = "txt_fstatus";
             this.txt_fstatus.Properties.Caption = "瀹℃牳鐘舵��";
-            this.txt_fstatus.Size = new System.Drawing.Size(399, 24);
+            this.txt_fstatus.Size = new System.Drawing.Size(393, 24);
             this.txt_fstatus.StyleController = this.layoutMx1;
             this.txt_fstatus.TabIndex = 461;
             this.txt_fstatus.Tag = "readonly";
@@ -1017,30 +1026,30 @@
             this.layoutControlItem8});
             this.Root.LayoutMode = DevExpress.XtraLayout.Utils.LayoutMode.Table;
             this.Root.Name = "Root";
-            columnDefinition1.SizeType = System.Windows.Forms.SizeType.Percent;
-            columnDefinition1.Width = 100D;
-            columnDefinition2.SizeType = System.Windows.Forms.SizeType.Percent;
-            columnDefinition2.Width = 100D;
-            columnDefinition3.SizeType = System.Windows.Forms.SizeType.Percent;
-            columnDefinition3.Width = 100D;
-            columnDefinition4.SizeType = System.Windows.Forms.SizeType.Percent;
-            columnDefinition4.Width = 100D;
+            columnDefinition13.SizeType = System.Windows.Forms.SizeType.Percent;
+            columnDefinition13.Width = 100D;
+            columnDefinition14.SizeType = System.Windows.Forms.SizeType.Percent;
+            columnDefinition14.Width = 100D;
+            columnDefinition15.SizeType = System.Windows.Forms.SizeType.Percent;
+            columnDefinition15.Width = 100D;
+            columnDefinition16.SizeType = System.Windows.Forms.SizeType.Percent;
+            columnDefinition16.Width = 100D;
             this.Root.OptionsTableLayoutGroup.ColumnDefinitions.AddRange(new DevExpress.XtraLayout.ColumnDefinition[] {
-            columnDefinition1,
-            columnDefinition2,
-            columnDefinition3,
-            columnDefinition4});
-            rowDefinition1.Height = 100D;
-            rowDefinition1.SizeType = System.Windows.Forms.SizeType.Percent;
-            rowDefinition2.Height = 100D;
-            rowDefinition2.SizeType = System.Windows.Forms.SizeType.Percent;
-            rowDefinition3.Height = 100D;
-            rowDefinition3.SizeType = System.Windows.Forms.SizeType.Percent;
+            columnDefinition13,
+            columnDefinition14,
+            columnDefinition15,
+            columnDefinition16});
+            rowDefinition10.Height = 100D;
+            rowDefinition10.SizeType = System.Windows.Forms.SizeType.Percent;
+            rowDefinition11.Height = 100D;
+            rowDefinition11.SizeType = System.Windows.Forms.SizeType.Percent;
+            rowDefinition12.Height = 100D;
+            rowDefinition12.SizeType = System.Windows.Forms.SizeType.Percent;
             this.Root.OptionsTableLayoutGroup.RowDefinitions.AddRange(new DevExpress.XtraLayout.RowDefinition[] {
-            rowDefinition1,
-            rowDefinition2,
-            rowDefinition3});
-            this.Root.Size = new System.Drawing.Size(1626, 113);
+            rowDefinition10,
+            rowDefinition11,
+            rowDefinition12});
+            this.Root.Size = new System.Drawing.Size(1605, 113);
             this.Root.TextVisible = false;
             // 
             // layoutControlItem1
@@ -1048,27 +1057,27 @@
             this.layoutControlItem1.Control = this.txt_erpSczz;
             this.layoutControlItem1.Location = new System.Drawing.Point(0, 0);
             this.layoutControlItem1.Name = "layoutControlItem1";
-            this.layoutControlItem1.Size = new System.Drawing.Size(401, 31);
+            this.layoutControlItem1.Size = new System.Drawing.Size(396, 31);
             this.layoutControlItem1.Text = "鐢熶骇缁勭粐";
             this.layoutControlItem1.TextSize = new System.Drawing.Size(65, 18);
             // 
             // layoutControlItem2
             // 
             this.layoutControlItem2.Control = this.txt_hNo;
-            this.layoutControlItem2.Location = new System.Drawing.Point(401, 0);
+            this.layoutControlItem2.Location = new System.Drawing.Point(396, 0);
             this.layoutControlItem2.Name = "layoutControlItem2";
             this.layoutControlItem2.OptionsTableLayoutItem.ColumnIndex = 1;
-            this.layoutControlItem2.Size = new System.Drawing.Size(401, 31);
+            this.layoutControlItem2.Size = new System.Drawing.Size(396, 31);
             this.layoutControlItem2.Text = "鎺掍骇缂栧彿";
             this.layoutControlItem2.TextSize = new System.Drawing.Size(65, 18);
             // 
             // layoutControlItem3
             // 
             this.layoutControlItem3.Control = this.txt_checkDate;
-            this.layoutControlItem3.Location = new System.Drawing.Point(802, 0);
+            this.layoutControlItem3.Location = new System.Drawing.Point(792, 0);
             this.layoutControlItem3.Name = "layoutControlItem3";
             this.layoutControlItem3.OptionsTableLayoutItem.ColumnIndex = 2;
-            this.layoutControlItem3.Size = new System.Drawing.Size(401, 31);
+            this.layoutControlItem3.Size = new System.Drawing.Size(396, 31);
             this.layoutControlItem3.Text = "瀹℃牳鏃ユ湡 ";
             this.layoutControlItem3.TextSize = new System.Drawing.Size(65, 18);
             // 
@@ -1078,28 +1087,28 @@
             this.layoutControlItem4.Location = new System.Drawing.Point(0, 31);
             this.layoutControlItem4.Name = "layoutControlItem4";
             this.layoutControlItem4.OptionsTableLayoutItem.RowIndex = 1;
-            this.layoutControlItem4.Size = new System.Drawing.Size(401, 31);
+            this.layoutControlItem4.Size = new System.Drawing.Size(396, 31);
             this.layoutControlItem4.Text = "宸ヤ綔杞﹂棿";
             this.layoutControlItem4.TextSize = new System.Drawing.Size(65, 18);
             // 
             // layoutControlItem5
             // 
             this.layoutControlItem5.Control = this.txt_checkUser;
-            this.layoutControlItem5.Location = new System.Drawing.Point(1203, 0);
+            this.layoutControlItem5.Location = new System.Drawing.Point(1188, 0);
             this.layoutControlItem5.Name = "layoutControlItem5";
             this.layoutControlItem5.OptionsTableLayoutItem.ColumnIndex = 3;
-            this.layoutControlItem5.Size = new System.Drawing.Size(403, 31);
+            this.layoutControlItem5.Size = new System.Drawing.Size(397, 31);
             this.layoutControlItem5.Text = "瀹℃牳浜哄憳";
             this.layoutControlItem5.TextSize = new System.Drawing.Size(65, 18);
             // 
             // layoutControlItem6
             // 
             this.layoutControlItem6.Control = this.txt_fstatus;
-            this.layoutControlItem6.Location = new System.Drawing.Point(1203, 31);
+            this.layoutControlItem6.Location = new System.Drawing.Point(1188, 31);
             this.layoutControlItem6.Name = "layoutControlItem6";
             this.layoutControlItem6.OptionsTableLayoutItem.ColumnIndex = 3;
             this.layoutControlItem6.OptionsTableLayoutItem.RowIndex = 1;
-            this.layoutControlItem6.Size = new System.Drawing.Size(403, 31);
+            this.layoutControlItem6.Size = new System.Drawing.Size(397, 31);
             this.layoutControlItem6.Text = "瀹℃牳鐘舵��";
             this.layoutControlItem6.TextSize = new System.Drawing.Size(0, 0);
             this.layoutControlItem6.TextVisible = false;
@@ -1107,12 +1116,12 @@
             // layoutControlItem7
             // 
             this.layoutControlItem7.Control = this.txt_pba009;
-            this.layoutControlItem7.Location = new System.Drawing.Point(401, 31);
+            this.layoutControlItem7.Location = new System.Drawing.Point(396, 31);
             this.layoutControlItem7.Name = "layoutControlItem7";
             this.layoutControlItem7.OptionsTableLayoutItem.ColumnIndex = 1;
             this.layoutControlItem7.OptionsTableLayoutItem.ColumnSpan = 2;
             this.layoutControlItem7.OptionsTableLayoutItem.RowIndex = 1;
-            this.layoutControlItem7.Size = new System.Drawing.Size(802, 31);
+            this.layoutControlItem7.Size = new System.Drawing.Size(792, 31);
             this.layoutControlItem7.Text = "鎺掍骇澶囨敞";
             this.layoutControlItem7.TextSize = new System.Drawing.Size(65, 18);
             // 
@@ -1124,7 +1133,7 @@
             this.layoutControlItem8.MinSize = new System.Drawing.Size(105, 31);
             this.layoutControlItem8.Name = "layoutControlItem8";
             this.layoutControlItem8.OptionsTableLayoutItem.RowIndex = 2;
-            this.layoutControlItem8.Size = new System.Drawing.Size(401, 31);
+            this.layoutControlItem8.Size = new System.Drawing.Size(396, 31);
             this.layoutControlItem8.SizeConstraintsType = DevExpress.XtraLayout.SizeConstraintsType.Custom;
             this.layoutControlItem8.Text = "閫夋嫨鎶曟枡鍗�";
             this.layoutControlItem8.TextSize = new System.Drawing.Size(0, 0);
@@ -1166,6 +1175,7 @@
             // panelMxButtons
             // 
             this.panelMxButtons.Controls.Add(this.btnMultiSelect);
+            this.panelMxButtons.Controls.Add(this.btnBatchSetDepotSections);
             this.panelMxButtons.Dock = System.Windows.Forms.DockStyle.Fill;
             this.panelMxButtons.Location = new System.Drawing.Point(3, 4);
             this.panelMxButtons.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
@@ -1183,6 +1193,16 @@
             this.btnMultiSelect.Text = "鎵归噺鍗曟嵁鍙嶅鏍�";
             this.btnMultiSelect.Click += new System.EventHandler(this.btnMultiSelect_Click);
             // 
+            // btnBatchSetDepotSections
+            // 
+            this.btnBatchSetDepotSections.Location = new System.Drawing.Point(158, 6);
+            this.btnBatchSetDepotSections.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
+            this.btnBatchSetDepotSections.Name = "btnBatchSetDepotSections";
+            this.btnBatchSetDepotSections.Size = new System.Drawing.Size(180, 32);
+            this.btnBatchSetDepotSections.TabIndex = 1;
+            this.btnBatchSetDepotSections.Text = "鎵归噺璧嬪�艰嚜鍔ㄨ皟鎷ㄥ簱浣�";
+            this.btnBatchSetDepotSections.Click += new System.EventHandler(this.btnBatchSetDepotSections_Click);
+            // 
             // gcMx1
             // 
             this.gcMx1.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 
@@ -1196,7 +1216,9 @@
             this.repositoryItemButtonEdit1,
             this.rptJYBZ,
             this.repositoryItemDateEdit3,
-            this.repositoryItemComboBox1});
+            this.repositoryItemComboBox1,
+            this.rptDepotName,
+            this.rptDepotSections});
             this.gcMx1.Size = new System.Drawing.Size(1618, 487);
             this.gcMx1.TabIndex = 0;
             this.gcMx1.ViewCollection.AddRange(new DevExpress.XtraGrid.Views.Base.BaseView[] {
@@ -1210,6 +1232,10 @@
             this.gvMx1.Columns.AddRange(new DevExpress.XtraGrid.Columns.GridColumn[] {
             this.gvMx1guid,
             this.caaGuid,
+            this.gvMx1ZDDB,
+            this.gvMx1DepotId,
+            this.gvMx1DepotName,
+            this.gvMx1DepotSections,
             this.gvMx1daa002,
             this.gvMx1daa010,
             this.gvMx1daa005,
@@ -1232,7 +1258,6 @@
             this.gridColumn7});
             this.gvMx1.GridControl = this.gcMx1;
             this.gvMx1.Name = "gvMx1";
-            this.gvMx1.OptionsBehavior.AllowAddRows = DevExpress.Utils.DefaultBoolean.False;
             this.gvMx1.OptionsFind.ShowSearchNavButtons = false;
             this.gvMx1.OptionsSelection.MultiSelect = true;
             this.gvMx1.OptionsSelection.MultiSelectMode = DevExpress.XtraGrid.Views.Grid.GridMultiSelectMode.CheckBoxRowSelect;
@@ -1258,6 +1283,72 @@
             this.caaGuid.OptionsColumn.ReadOnly = true;
             this.caaGuid.Width = 94;
             // 
+            // gvMx1ZDDB
+            // 
+            this.gvMx1ZDDB.AppearanceCell.ForeColor = System.Drawing.Color.Blue;
+            this.gvMx1ZDDB.AppearanceCell.Options.UseFont = true;
+            this.gvMx1ZDDB.AppearanceCell.Options.UseForeColor = true;
+            this.gvMx1ZDDB.AppearanceHeader.ForeColor = System.Drawing.Color.Blue;
+            this.gvMx1ZDDB.AppearanceHeader.Options.UseForeColor = true;
+            this.gvMx1ZDDB.Caption = "鏄惁鑷姩璋冩嫧";
+            this.gvMx1ZDDB.FieldName = "isCheck";
+            this.gvMx1ZDDB.MinWidth = 25;
+            this.gvMx1ZDDB.Name = "gvMx1ZDDB";
+            this.gvMx1ZDDB.Tag = "edit";
+            this.gvMx1ZDDB.UnboundDataType = typeof(bool);
+            this.gvMx1ZDDB.Visible = true;
+            this.gvMx1ZDDB.VisibleIndex = 2;
+            this.gvMx1ZDDB.Width = 94;
+            // 
+            // gvMx1DepotId
+            // 
+            this.gvMx1DepotId.Caption = "浠撳簱ID";
+            this.gvMx1DepotId.FieldName = "dbDepotId";
+            this.gvMx1DepotId.MinWidth = 25;
+            this.gvMx1DepotId.Name = "gvMx1DepotId";
+            // 
+            // gvMx1DepotName
+            // 
+            this.gvMx1DepotName.Caption = "鑷姩璋冩嫧浠撳簱";
+            this.gvMx1DepotName.ColumnEdit = this.rptDepotName;
+            this.gvMx1DepotName.FieldName = "depotName";
+            this.gvMx1DepotName.MinWidth = 120;
+            this.gvMx1DepotName.Name = "gvMx1DepotName";
+            this.gvMx1DepotName.Tag = "edit";
+            this.gvMx1DepotName.Visible = true;
+            this.gvMx1DepotName.VisibleIndex = 3;
+            this.gvMx1DepotName.Width = 140;
+            // 
+            // rptDepotName
+            // 
+            this.rptDepotName.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] {
+            new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)});
+            this.rptDepotName.Name = "rptDepotName";
+            this.rptDepotName.NullText = "-璇烽�夋嫨-";
+            this.rptDepotName.TextEditStyle = DevExpress.XtraEditors.Controls.TextEditStyles.DisableTextEditor;
+            this.rptDepotName.SelectedIndexChanged += new System.EventHandler(this.rptDepotName_SelectedIndexChanged);
+            // 
+            // gvMx1DepotSections
+            // 
+            this.gvMx1DepotSections.Caption = "鑷姩璋冩嫧搴撲綅";
+            this.gvMx1DepotSections.ColumnEdit = this.rptDepotSections;
+            this.gvMx1DepotSections.FieldName = "dbDepotSections";
+            this.gvMx1DepotSections.MinWidth = 120;
+            this.gvMx1DepotSections.Name = "gvMx1DepotSections";
+            this.gvMx1DepotSections.Tag = "edit";
+            this.gvMx1DepotSections.Visible = true;
+            this.gvMx1DepotSections.VisibleIndex = 4;
+            this.gvMx1DepotSections.Width = 140;
+            // 
+            // rptDepotSections
+            // 
+            this.rptDepotSections.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] {
+            new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)});
+            this.rptDepotSections.Name = "rptDepotSections";
+            this.rptDepotSections.NullText = "-璇烽�夋嫨-";
+            this.rptDepotSections.TextEditStyle = DevExpress.XtraEditors.Controls.TextEditStyles.DisableTextEditor;
+            this.rptDepotSections.SelectedIndexChanged += new System.EventHandler(this.rptDepotSections_SelectedIndexChanged);
+            // 
             // gvMx1daa002
             // 
             this.gvMx1daa002.AppearanceCell.Options.UseFont = true;
@@ -1281,7 +1372,7 @@
             this.gvMx1daa010.OptionsColumn.ReadOnly = true;
             this.gvMx1daa010.Tag = "query_a.daa010";
             this.gvMx1daa010.Visible = true;
-            this.gvMx1daa010.VisibleIndex = 2;
+            this.gvMx1daa010.VisibleIndex = 5;
             this.gvMx1daa010.Width = 50;
             // 
             // gvMx1daa005
@@ -1294,7 +1385,7 @@
             this.gvMx1daa005.OptionsColumn.ReadOnly = true;
             this.gvMx1daa005.Tag = "query_a.daa005";
             this.gvMx1daa005.Visible = true;
-            this.gvMx1daa005.VisibleIndex = 3;
+            this.gvMx1daa005.VisibleIndex = 6;
             this.gvMx1daa005.Width = 50;
             // 
             // gvMx1daa003
@@ -1307,7 +1398,7 @@
             this.gvMx1daa003.OptionsColumn.ReadOnly = true;
             this.gvMx1daa003.Tag = "query_a.daa003";
             this.gvMx1daa003.Visible = true;
-            this.gvMx1daa003.VisibleIndex = 4;
+            this.gvMx1daa003.VisibleIndex = 7;
             this.gvMx1daa003.Width = 50;
             // 
             // gvMx1daa004
@@ -1320,7 +1411,7 @@
             this.gvMx1daa004.OptionsColumn.ReadOnly = true;
             this.gvMx1daa004.Tag = "query_a.daa004";
             this.gvMx1daa004.Visible = true;
-            this.gvMx1daa004.VisibleIndex = 5;
+            this.gvMx1daa004.VisibleIndex = 8;
             this.gvMx1daa004.Width = 50;
             // 
             // gvMx1daa016
@@ -1337,7 +1428,7 @@
             this.gvMx1daa016.Name = "gvMx1daa016";
             this.gvMx1daa016.Tag = "edit";
             this.gvMx1daa016.Visible = true;
-            this.gvMx1daa016.VisibleIndex = 7;
+            this.gvMx1daa016.VisibleIndex = 10;
             this.gvMx1daa016.Width = 78;
             // 
             // repositoryItemDateEdit2
@@ -1368,7 +1459,7 @@
             this.gvMx1daa018.Name = "gvMx1daa018";
             this.gvMx1daa018.Tag = "edit";
             this.gvMx1daa018.Visible = true;
-            this.gvMx1daa018.VisibleIndex = 8;
+            this.gvMx1daa018.VisibleIndex = 11;
             this.gvMx1daa018.Width = 50;
             // 
             // repositoryItemDateEdit3
@@ -1391,7 +1482,7 @@
             this.gvMx1daa008.OptionsColumn.ReadOnly = true;
             this.gvMx1daa008.Tag = "query_a.daa008";
             this.gvMx1daa008.Visible = true;
-            this.gvMx1daa008.VisibleIndex = 9;
+            this.gvMx1daa008.VisibleIndex = 12;
             this.gvMx1daa008.Width = 50;
             // 
             // gvMx1daa006
@@ -1405,7 +1496,7 @@
             this.gvMx1daa006.OptionsColumn.ReadOnly = true;
             this.gvMx1daa006.Tag = "query_a.daa006";
             this.gvMx1daa006.Visible = true;
-            this.gvMx1daa006.VisibleIndex = 10;
+            this.gvMx1daa006.VisibleIndex = 13;
             this.gvMx1daa006.Width = 50;
             // 
             // gvMx1daa007
@@ -1419,7 +1510,7 @@
             this.gvMx1daa007.OptionsColumn.ReadOnly = true;
             this.gvMx1daa007.Tag = "query_a.daa007";
             this.gvMx1daa007.Visible = true;
-            this.gvMx1daa007.VisibleIndex = 11;
+            this.gvMx1daa007.VisibleIndex = 14;
             this.gvMx1daa007.Width = 50;
             // 
             // gvMx1daa009
@@ -1433,7 +1524,7 @@
             this.gvMx1daa009.OptionsColumn.ReadOnly = true;
             this.gvMx1daa009.Tag = "query_a.daa009";
             this.gvMx1daa009.Visible = true;
-            this.gvMx1daa009.VisibleIndex = 12;
+            this.gvMx1daa009.VisibleIndex = 15;
             this.gvMx1daa009.Width = 50;
             // 
             // gvMx1daa011
@@ -1450,7 +1541,7 @@
             this.gvMx1daa011.Name = "gvMx1daa011";
             this.gvMx1daa011.Tag = "yz_quantity_0_edit";
             this.gvMx1daa011.Visible = true;
-            this.gvMx1daa011.VisibleIndex = 13;
+            this.gvMx1daa011.VisibleIndex = 16;
             this.gvMx1daa011.Width = 60;
             // 
             // gvMx1daa012
@@ -1467,7 +1558,7 @@
             this.gvMx1daa012.Name = "gvMx1daa012";
             this.gvMx1daa012.Tag = "edit";
             this.gvMx1daa012.Visible = true;
-            this.gvMx1daa012.VisibleIndex = 14;
+            this.gvMx1daa012.VisibleIndex = 17;
             this.gvMx1daa012.Width = 153;
             // 
             // rptJYBZ
@@ -1493,7 +1584,7 @@
             this.gvMx1reporttime.Name = "gvMx1reporttime";
             this.gvMx1reporttime.Tag = "edit";
             this.gvMx1reporttime.Visible = true;
-            this.gvMx1reporttime.VisibleIndex = 15;
+            this.gvMx1reporttime.VisibleIndex = 18;
             this.gvMx1reporttime.Width = 102;
             // 
             // gvMx1daa014
@@ -1506,7 +1597,7 @@
             this.gvMx1daa014.OptionsColumn.ReadOnly = true;
             this.gvMx1daa014.Tag = "query_a.daa014";
             this.gvMx1daa014.Visible = true;
-            this.gvMx1daa014.VisibleIndex = 16;
+            this.gvMx1daa014.VisibleIndex = 19;
             this.gvMx1daa014.Width = 51;
             // 
             // gridColumn3
@@ -1527,7 +1618,7 @@
             this.gvMx1fstatus.OptionsColumn.ReadOnly = true;
             this.gvMx1fstatus.Tag = "query_a.fstatus";
             this.gvMx1fstatus.Visible = true;
-            this.gvMx1fstatus.VisibleIndex = 17;
+            this.gvMx1fstatus.VisibleIndex = 20;
             this.gvMx1fstatus.Width = 76;
             // 
             // gridColumn6
@@ -1537,7 +1628,7 @@
             this.gridColumn6.MinWidth = 25;
             this.gridColumn6.Name = "gridColumn6";
             this.gridColumn6.Visible = true;
-            this.gridColumn6.VisibleIndex = 18;
+            this.gridColumn6.VisibleIndex = 21;
             this.gridColumn6.Width = 94;
             // 
             // gvMxDel
@@ -1547,16 +1638,16 @@
             this.gvMxDel.MinWidth = 80;
             this.gvMxDel.Name = "gvMxDel";
             this.gvMxDel.Visible = true;
-            this.gvMxDel.VisibleIndex = 19;
+            this.gvMxDel.VisibleIndex = 22;
             this.gvMxDel.Width = 84;
             // 
             // repositoryItemButtonEdit1
             // 
             this.repositoryItemButtonEdit1.AutoHeight = false;
-            editorButtonImageOptions1.Image = global::Gs.DevApp.Properties.Resources.removegroupfooter_16x16;
-            editorButtonImageOptions1.ImageToTextAlignment = DevExpress.XtraEditors.ImageAlignToText.LeftCenter;
+            editorButtonImageOptions4.Image = global::Gs.DevApp.Properties.Resources.removegroupfooter_16x16;
+            editorButtonImageOptions4.ImageToTextAlignment = DevExpress.XtraEditors.ImageAlignToText.LeftCenter;
             this.repositoryItemButtonEdit1.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] {
-            new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Glyph, "绉诲嚭", -1, true, true, false, editorButtonImageOptions1, new DevExpress.Utils.KeyShortcut(System.Windows.Forms.Keys.None), serializableAppearanceObject1, serializableAppearanceObject2, serializableAppearanceObject3, serializableAppearanceObject4, "", null, null, DevExpress.Utils.ToolTipAnchor.Default)});
+            new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Glyph, "绉诲嚭", -1, true, true, false, editorButtonImageOptions4, new DevExpress.Utils.KeyShortcut(System.Windows.Forms.Keys.None), serializableAppearanceObject13, serializableAppearanceObject14, serializableAppearanceObject15, serializableAppearanceObject16, "", null, null, DevExpress.Utils.ToolTipAnchor.Default)});
             this.repositoryItemButtonEdit1.Name = "repositoryItemButtonEdit1";
             this.repositoryItemButtonEdit1.TextEditStyle = DevExpress.XtraEditors.Controls.TextEditStyles.HideTextEditor;
             this.repositoryItemButtonEdit1.ButtonClick += new DevExpress.XtraEditors.Controls.ButtonPressedEventHandler(this.repositoryItemButtonEdit1_ButtonClick);
@@ -1574,7 +1665,7 @@
             this.gridColumn7.Name = "gridColumn7";
             this.gridColumn7.Tag = "edit";
             this.gridColumn7.Visible = true;
-            this.gridColumn7.VisibleIndex = 6;
+            this.gridColumn7.VisibleIndex = 9;
             this.gridColumn7.Width = 94;
             // 
             // repositoryItemComboBox1
@@ -1981,6 +2072,8 @@
             this.panelMxButtons.ResumeLayout(false);
             ((System.ComponentModel.ISupportInitialize)(this.gcMx1)).EndInit();
             ((System.ComponentModel.ISupportInitialize)(this.gvMx1)).EndInit();
+            ((System.ComponentModel.ISupportInitialize)(this.rptDepotName)).EndInit();
+            ((System.ComponentModel.ISupportInitialize)(this.rptDepotSections)).EndInit();
             ((System.ComponentModel.ISupportInitialize)(this.repositoryItemDateEdit2.CalendarTimeProperties)).EndInit();
             ((System.ComponentModel.ISupportInitialize)(this.repositoryItemDateEdit2)).EndInit();
             ((System.ComponentModel.ISupportInitialize)(this.repositoryItemDateEdit3.CalendarTimeProperties)).EndInit();
@@ -2093,6 +2186,8 @@
         private DevExpress.XtraGrid.Columns.GridColumn gvMx1daa011;
         private DevExpress.XtraGrid.Columns.GridColumn gvMx1daa012;
         private DevExpress.XtraEditors.Repository.RepositoryItemComboBox rptJYBZ;
+        private DevExpress.XtraEditors.Repository.RepositoryItemComboBox rptDepotName;
+        private DevExpress.XtraEditors.Repository.RepositoryItemComboBox rptDepotSections;
         private DevExpress.XtraGrid.Columns.GridColumn gvMx1reporttime;
         private DevExpress.XtraGrid.Columns.GridColumn gvMx1daa014;
         private DevExpress.XtraGrid.Columns.GridColumn gridColumn3;
@@ -2103,6 +2198,7 @@
         private DevExpress.XtraGrid.Columns.GridColumn gridColumn7;
         private DevExpress.XtraEditors.Repository.RepositoryItemComboBox repositoryItemComboBox1;
         private System.Windows.Forms.TableLayoutPanel tableMxContainer;
+        private DevExpress.XtraEditors.SimpleButton btnBatchSetDepotSections;
         private DevExpress.XtraGrid.GridControl gcMxL1;
         private DevExpress.XtraGrid.Views.Grid.GridView gridView4;
         private DevExpress.XtraGrid.Columns.GridColumn gridColumn8;
@@ -2130,5 +2226,10 @@
         private DevExpress.XtraEditors.Repository.RepositoryItemDateEdit repositoryItemDateEdit4;
         private DevExpress.XtraEditors.Repository.RepositoryItemComboBox repositoryItemComboBox2;
         private DevExpress.XtraEditors.Repository.RepositoryItemComboBox repositoryItemComboBox3;
+        private DevExpress.XtraGrid.Columns.GridColumn gvMx1ZDDB;
+        private DevExpress.XtraGrid.Columns.GridColumn gvMx1DepotId;
+        private DevExpress.XtraGrid.Columns.GridColumn gvMx1DepotName;
+        private DevExpress.XtraGrid.Columns.GridColumn gvMx1DepotSections;
     }
 }
+           
diff --git a/DevApp/Gs.DevApp/DevFrm/WOM/Frm_Wompba.cs b/DevApp/Gs.DevApp/DevFrm/WOM/Frm_Wompba.cs
index 360aeb4..65875ce 100644
--- a/DevApp/Gs.DevApp/DevFrm/WOM/Frm_Wompba.cs
+++ b/DevApp/Gs.DevApp/DevFrm/WOM/Frm_Wompba.cs
@@ -54,6 +54,8 @@
 
             getPageList(1);
             pageBar1.PagerEvent += PageBar1_PagerEvent;
+           
+            
             //閫夊瓨缁勭粐锛堝彉鏄庣粏涓殑鐗╂枡鍜岃溅闂达級
             txt_erpSczz.EditChanged += (s, e) =>
             {
@@ -61,6 +63,7 @@
                 if (string.IsNullOrEmpty(_orgId))
                     return;
                 txt_pba013.getSuppler(_orgId, _cjBm);
+                _getListDepot(_orgId);
             };
             // 閫夋嫨杞﹂棿锛堝彉鏄庣粏涓骇绾匡級
             txt_pba013.EditChanged += (s, e) =>
@@ -96,6 +99,10 @@
                         {
                             _oldTable.ImportRow(sourceRows[i]);
                         }
+                        // 纭繚鑷姩璋冩嫧鐩稿叧鍒楀瓨鍦紝渚夸簬涓嬫媺璧嬪��
+                        if (!_oldTable.Columns.Contains("dbDepotId")) _oldTable.Columns.Add("dbDepotId", typeof(string));
+                        if (!_oldTable.Columns.Contains("depotName")) _oldTable.Columns.Add("depotName", typeof(string));
+                        if (!_oldTable.Columns.Contains("dbDepotSections")) _oldTable.Columns.Add("dbDepotSections", typeof(string));
                         gcMx1.BindingContext = new BindingContext();
                         gcMx1.DataSource = _oldTable;
                         gvMx1.CloseEditor();
@@ -112,6 +119,28 @@
                 };
                 frm.ShowDialog();
             };
+            gvMx1.ShowingEditor += (s, e) =>
+            {
+                if (gvMx1.FocusedColumn == gvMx1DepotSections)
+                {
+                    string depotId = gvMx1.GetRowCellValue(gvMx1.FocusedRowHandle, "dbDepotId")?.ToString();
+                    _getListDepotSections(depotId);
+                }
+            };
+
+            gvMx1.CellValueChanged += (s, e) =>
+            {
+                if (e.RowHandle < 0) return;
+                if (e.Column == gvMx1DepotName)
+                {
+                    var depotId = gvMx1.GetRowCellValue(e.RowHandle, "dbDepotId")?.ToString();
+                    // 娓呯┖搴撲綅骞舵牴鎹粨搴揑D鍔犺浇搴撲綅涓嬫媺
+                    gvMx1.SetRowCellValue(e.RowHandle, "dbDepotSections", null);
+                    _getListDepotSections(depotId);
+                }
+            };
+
+            
         }
         private void GridView1_ColumnFilterChanged(object sender, EventArgs e)
         {
@@ -281,6 +310,7 @@
                 MsgHelper.ShowError("璇峰厛閫夋嫨浣犺鎿嶄綔鐨勮锛�");
                 return;
             }
+            toolBarMenu1.currentAction = "edit";
             Gs.DevApp.ToolBox.UtilityHelper.JumpTab(xtraTabControl1, 3);
             if (xtraTabControl1.SelectedTabPageIndex == 1)
             {
@@ -291,6 +321,12 @@
                 List<DevExpress.XtraGrid.Views.Grid.GridView> gvList = new List<DevExpress.XtraGrid.Views.Grid.GridView>();
                 gvList.Add(gvMx1);
                 UtilityHelper.ChangeEnableByControl(this.layoutMx1.Controls, true, gvList);
+                gvMx1DepotName.OptionsColumn.ReadOnly = false;
+                gvMx1DepotName.OptionsColumn.AllowEdit = true;
+                gvMx1DepotSections.OptionsColumn.ReadOnly = false;
+                gvMx1DepotSections.OptionsColumn.AllowEdit = true;
+                if (btnBatchSetDepotSections != null)
+                    btnBatchSetDepotSections.Enabled = true;
             }
             //2025/07/12鍔犱笂淇敼鐘舵�佷笅涓嶈兘淇敼
             txt_erpSczz.IsReadly = true;
@@ -375,6 +411,29 @@
                         MsgHelper.ShowError("棰勮瀹屽伐鏃堕棿涓嶈兘涓虹┖锛�");
                         return;
                     }
+                    var _isCheckObj = row["isCheck"];
+                    bool _isAuto = false;
+                    if (_isCheckObj is bool _b) _isAuto = _b;
+                    else
+                    {
+                        var _s = _isCheckObj == null ? "" : _isCheckObj.ToString();
+                        _isAuto = _s == "1" || string.Equals(_s, "true", System.StringComparison.OrdinalIgnoreCase);
+                    }
+                    if (_isAuto)
+                    {
+                        var _depotId = row["dbDepotId"] == null ? "" : row["dbDepotId"].ToString();
+                        var _depotSections = row["dbDepotSections"] == null ? "" : row["dbDepotSections"].ToString();
+                        if (string.IsNullOrWhiteSpace(_depotId))
+                        {
+                            MsgHelper.ShowError("鑷姩璋冩嫧浠撳簱涓嶈兘涓虹┖锛�");
+                            return;
+                        }
+                        if (string.IsNullOrWhiteSpace(_depotSections))
+                        {
+                            MsgHelper.ShowError("鑷姩璋冩嫧搴撲綅涓嶈兘涓虹┖锛�");
+                            return;
+                        }
+                    }
                     _obj.list.Add(new
                     {
                         Guid = _guid,
@@ -385,6 +444,10 @@
                         Yjwgsj = row["mesEndProd"].ToString(),//棰勮瀹屽伐鏃堕棿
                         Pcsl = row["daa008"].ToString(),//鎺掍骇鏁伴噺
                         Bz = row["daa009"].ToString(),//澶囨敞
+                        IsZddb = row["isCheck"].ToString(),//鏄惁鑷姩璋冩嫧
+                        DepotId = row["dbDepotId"].ToString(),//浠撳簱ID
+                        DepotSections = row["dbDepotSections"].ToString()//浠撳簱搴撲綅
+
                     });
                 }
             }
@@ -402,6 +465,8 @@
                     gvList.Add(gvMx1);
                     UtilityHelper.ChangeEnableByControl(this.layoutMx1.Controls, false, gvList);
                     toolBarMenu1.currentAction = "";
+                    if (btnBatchSetDepotSections != null)
+                        btnBatchSetDepotSections.Enabled = false;
                     Gs.DevApp.ToolBox.UtilityHelper.JumpTab(xtraTabControl1, 6);
                 }
                 else
@@ -411,6 +476,105 @@
             {
                 ToolBox.MsgHelper.ShowError("鎻愮ず锛�" + ex.Message);
             }
+        }
+
+        private void btnBatchSetDepotSections_Click(object sender, EventArgs e)
+        {
+            var selected = gvMx1.GetSelectedRows();
+            if (selected == null || selected.Length == 0)
+            {
+                MsgHelper.ShowError("璇峰厛鍦ㄦ渶宸︿晶閫夋嫨闇�瑕佹壒閲忚祴鍊肩殑琛岋紒");
+                return;
+            }
+            // 棰勫姞杞戒粨搴撳垪琛�
+            string orgId = txt_erpSczz.GetId();
+            _getListDepot(orgId);
+            // 鏋勫缓寮规
+            var dlg = new DevExpress.XtraEditors.XtraForm();
+            dlg.Text = "鎵归噺璧嬪�艰嚜鍔ㄨ皟鎷ㄥ簱浣�";
+            dlg.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
+            dlg.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
+            dlg.MaximizeBox = false;
+            dlg.MinimizeBox = false;
+            dlg.Width = 420;
+            dlg.Height = 220;
+
+            var lblDepot = new DevExpress.XtraEditors.LabelControl() { Text = "浠撳簱鍚嶇О锛�", Left = 15, Top = 20, Width = 80 };
+            var cboDepot = new DevExpress.XtraEditors.ComboBoxEdit() { Left = 100, Top = 16, Width = 280 };
+            cboDepot.Properties.TextEditStyle = DevExpress.XtraEditors.Controls.TextEditStyles.DisableTextEditor;
+            foreach (var item in this.rptDepotName.Items)
+            {
+                cboDepot.Properties.Items.Add(item);
+            }
+
+            var lblSection = new DevExpress.XtraEditors.LabelControl() { Text = "搴撲綅锛�", Left = 15, Top = 60, Width = 80 };
+            var cboSection = new DevExpress.XtraEditors.ComboBoxEdit() { Left = 100, Top = 56, Width = 280 };
+            cboSection.Properties.TextEditStyle = DevExpress.XtraEditors.Controls.TextEditStyles.DisableTextEditor;
+
+            var chkAuto = new DevExpress.XtraEditors.CheckEdit() { Left = 15, Top = 96, Width = 200, Text = "鍚屾椂鍕鹃�夎嚜鍔ㄨ皟鎷ㄦ爣璇�", Checked = true };
+
+            var btnOk = new DevExpress.XtraEditors.SimpleButton() { Left = 200, Top = 130, Width = 80, Text = "纭畾" };
+            var btnCancel = new DevExpress.XtraEditors.SimpleButton() { Left = 300, Top = 130, Width = 80, Text = "鍙栨秷" };
+
+            cboDepot.SelectedIndexChanged += (s, ev) =>
+            {
+                var itm = cboDepot.EditValue as CboItemEntity;
+                var depotId = itm == null ? null : itm.Value?.ToString();
+                _getListDepotSections(depotId);
+                cboSection.Properties.Items.Clear();
+                foreach (var sec in this.rptDepotSections.Items)
+                {
+                    cboSection.Properties.Items.Add(sec);
+                }
+                cboSection.EditValue = null;
+            };
+
+            btnCancel.Click += (s, ev) => { dlg.DialogResult = System.Windows.Forms.DialogResult.Cancel; dlg.Close(); };
+            btnOk.Click += (s, ev) =>
+            {
+                var depotItem = cboDepot.EditValue as CboItemEntity;
+                var sectionItem = cboSection.EditValue as CboItemEntity;
+                if (depotItem == null)
+                {
+                    MsgHelper.ShowError("璇烽�夋嫨浠撳簱鍚嶇О锛�");
+                    return;
+                }
+                if (sectionItem == null)
+                {
+                    MsgHelper.ShowError("璇烽�夋嫨搴撲綅锛�");
+                    return;
+                }
+                var depotId = depotItem.Value?.ToString();
+                var depotName = depotItem.Text?.ToString();
+                var sectionCode = sectionItem.Text?.ToString();
+
+                gvMx1.BeginUpdate();
+                foreach (var handle in selected)
+                {
+                    if (handle < 0) continue;
+                    gvMx1.SetRowCellValue(handle, "dbDepotId", depotId);
+                    gvMx1.SetRowCellValue(handle, "depotName", depotName);
+                    gvMx1.SetRowCellValue(handle, "dbDepotSections", sectionCode);
+                    gvMx1.SetRowCellValue(handle, "isCheck", true);
+                }
+                gvMx1.EndUpdate();
+                gvMx1.CloseEditor();
+                gvMx1.PostEditor();
+                gvMx1.UpdateCurrentRow();
+
+                dlg.DialogResult = System.Windows.Forms.DialogResult.OK;
+                dlg.Close();
+            };
+
+            dlg.Controls.Add(lblDepot);
+            dlg.Controls.Add(cboDepot);
+            dlg.Controls.Add(lblSection);
+            dlg.Controls.Add(cboSection);
+            dlg.Controls.Add(chkAuto);
+            dlg.Controls.Add(btnOk);
+            dlg.Controls.Add(btnCancel);
+
+            dlg.ShowDialog(this);
         }
 
         /// <summary>
@@ -497,11 +661,16 @@
                     DataTable dt = JsonConvert.DeserializeObject<DataTable>(array.ToString());
                     if (dt.Rows.Count > 0)
                     {
+                        if (!dt.Columns.Contains("DbDepotId")) dt.Columns.Add("DbDepotId", typeof(string));
+                        if (!dt.Columns.Contains("DepotName")) dt.Columns.Add("DepotName", typeof(string));
+                        if (!dt.Columns.Contains("DbDepotSections")) dt.Columns.Add("DbDepotSections", typeof(string));
                         gcMx1.BindingContext = new BindingContext();
                         gcMx1.DataSource = dt;
                         gcMx1.ForceInitialize();
                         gvMx1.BestFitColumns();
                         Gs.DevApp.ToolBox.UtilityHelper.SetGridLayout(gvMx1);
+                        if (btnBatchSetDepotSections != null)
+                            btnBatchSetDepotSections.Enabled = isEdit;
                     }
                     else
                     {
@@ -603,6 +772,92 @@
             }
         }
 
+        private void rptDepotName_SelectedIndexChanged(object sender, EventArgs e)
+        {
+            ComboBoxEdit comboBox = sender as ComboBoxEdit;
+            if (comboBox != null)
+            {
+                GridView myView = (gcMx1.MainView as GridView);
+                int dataIndex = myView.GetDataSourceRowIndex(myView.FocusedRowHandle);
+                CboItemEntity _itm = comboBox.EditValue as CboItemEntity;
+                if (_itm == null) return;
+                string depotId = _itm.Value.ToString();
+                string depotName = _itm.Text.ToString();
+                gvMx1.CloseEditor();
+                gvMx1.PostEditor();
+                gvMx1.UpdateCurrentRow();
+                gvMx1.SetRowCellValue(dataIndex, "dbDepotId", depotId);
+                gvMx1.SetRowCellValue(dataIndex, "depotName", depotName);
+                // 娓呯┖搴撲綅骞舵牴鎹粨搴揑D鍔犺浇搴撲綅鍒楄〃
+                gvMx1.SetRowCellValue(dataIndex, "dbDepotSections", null);
+                _getListDepotSections(depotId);
+            }
+        }
+
+        private void rptDepotSections_SelectedIndexChanged(object sender, EventArgs e)
+        {
+            ComboBoxEdit comboBox = sender as ComboBoxEdit;
+            if (comboBox != null)
+            {
+                GridView myView = (gcMx1.MainView as GridView);
+                int dataIndex = myView.GetDataSourceRowIndex(myView.FocusedRowHandle);
+                CboItemEntity _itm = comboBox.EditValue as CboItemEntity;
+                if (_itm == null) return;
+                string sectionCode = _itm.Text.ToString();
+                gvMx1.CloseEditor();
+                gvMx1.PostEditor();
+                gvMx1.UpdateCurrentRow();
+                gvMx1.SetRowCellValue(dataIndex, "dbDepotSections", sectionCode);
+            }
+        }
+
+        private void _getListDepot(string orgId)
+        {
+            try
+            {
+                var pgq = new PageQueryModel(1, 999999, "org.FNumber asc ,a.depot_code", "asc", "", " and is_ng='A'" + (string.IsNullOrEmpty(orgId) ? "" : (" and a.FSubsidiary='" + orgId + "'")));
+                var json = JsonConvert.SerializeObject(pgq);
+                var strReturn = UtilityHelper.HttpPost("", "MesDepotsManager/GetListPage", json);
+                var rtn = UtilityHelper.ReturnToTablePage(strReturn);
+                var dt = rtn.rtnData.list;
+                this.rptDepotName.Items.Clear();
+                foreach (System.Data.DataRow dr in dt.Rows)
+                {
+                    this.rptDepotName.Items.Add(new CboItemEntity(dr["depotId"].ToString(), dr["depotName"].ToString()));
+                }
+            }
+            catch (Exception ex)
+            {
+                MsgHelper.Warning("鎻愮ず锛�" + ex.Message);
+            }
+        }
+
+        private void _getListDepotSections(string depotId)
+        {
+            try
+            {
+                if (string.IsNullOrEmpty(depotId))
+                {
+                    this.rptDepotSections.Items.Clear();
+                    return;
+                }
+                var pgq = new PageQueryModel(1, 999999, "b.xh", "asc", "", " and is_ng='A' and a.depot_id='" + depotId + "'" );
+                var json = JsonConvert.SerializeObject(pgq);
+                var strReturn = UtilityHelper.HttpPost("", "MesDepotSectionsManager/GetListPage", json);
+                var rtn = UtilityHelper.ReturnToTablePage(strReturn);
+                var dt = rtn.rtnData.list;
+                this.rptDepotSections.Items.Clear();
+                foreach (System.Data.DataRow dr in dt.Rows)
+                {
+                    this.rptDepotSections.Items.Add(new CboItemEntity(dr["depotSectionCode"].ToString(), dr["depotSectionCode"].ToString()));
+                }
+            }
+            catch (Exception ex)
+            {
+                MsgHelper.Warning("鎻愮ず锛�" + ex.Message);
+            }
+        }
+
         /// <summary>
         ///  鏂板鏂规硶锛氬垪琛ㄦ樉绀�
         /// </summary>

--
Gitblit v1.9.3