From 530065f7c1bd97fd372b745cc9175ca7d936b9a6 Mon Sep 17 00:00:00 2001
From: lu <123456>
Date: 星期六, 13 九月 2025 16:04:04 +0800
Subject: [PATCH] 到货单报表

---
 DevApp/Gs.DevApp/DevFrm/Rpt/UcRptCgdhd.resx                               |  120 ++++++++
 DevApp/Gs.DevApp/DevFrm/Sales/Frm_SalesReturnNotice.cs                    |   10 
 DevApp/Gs.DevApp/DevFrm/Sales/Frm_SalesReturnNotice.Designer.cs           |  163 ++++++----
 DevApp/Gs.DevApp/Gs.DevApp.csproj                                         |    9 
 DevApp/Gs.DevApp/App.config                                               |    4 
 DevApp/Gs.DevApp/DevFrm/Sales/Frm_SalesReturnNoticeSelectLink.Designer.cs |   22 
 DevApp/Gs.DevApp/DevFrm/Rk/Frm_MesInvItemArn.Designer.cs                  |   25 +
 DevApp/Gs.DevApp/DevFrm/Rpt/UcRptCgdhd.Designer.cs                        |  379 +++++++++++++++++++++++++
 DevApp/Gs.DevApp/DevFrm/Rpt/UcRptCgdhd.cs                                 |  138 +++++++++
 9 files changed, 797 insertions(+), 73 deletions(-)

diff --git a/DevApp/Gs.DevApp/App.config b/DevApp/Gs.DevApp/App.config
index 548e44c..6b9697e 100644
--- a/DevApp/Gs.DevApp/App.config
+++ b/DevApp/Gs.DevApp/App.config
@@ -36,9 +36,9 @@
   </runtime>
 	
   <appSettings>
-    <!--<add key="webapiurl" value="http://localhost:5263/" />-->
+    <add key="webapiurl" value="http://localhost:5263/" />
     <!--<add key="WebApiUrl" value="http://192.168.1.145:8081/" />-->
-    <add key="WebApiUrl" value="http://192.168.1.145:81/" />
+    <!--<add key="WebApiUrl" value="http://192.168.1.145:81/" />-->
     <add key="LogPath" value="logs" />
     <add key="ProductName" value="G-MES V2.0" />
     <add key="PageSize" value="50" />
diff --git a/DevApp/Gs.DevApp/DevFrm/Rk/Frm_MesInvItemArn.Designer.cs b/DevApp/Gs.DevApp/DevFrm/Rk/Frm_MesInvItemArn.Designer.cs
index 50bd956..c500830 100644
--- a/DevApp/Gs.DevApp/DevFrm/Rk/Frm_MesInvItemArn.Designer.cs
+++ b/DevApp/Gs.DevApp/DevFrm/Rk/Frm_MesInvItemArn.Designer.cs
@@ -152,8 +152,10 @@
             this.gridColumn18 = new DevExpress.XtraGrid.Columns.GridColumn();
             this.gridColumn19 = new DevExpress.XtraGrid.Columns.GridColumn();
             this.gridColumn20 = new DevExpress.XtraGrid.Columns.GridColumn();
+            this.xtraTabPageReport = new DevExpress.XtraTab.XtraTabPage();
             this.picCheckBox = new System.Windows.Forms.PictureBox();
             this.tips = new DevExpress.Utils.ToolTipController(this.components);
+            this.ucRptCgdhd1 = new Gs.DevApp.DevFrm.Rpt.UcRptCgdhd();
             ((System.ComponentModel.ISupportInitialize)(this.xtraTabControl1)).BeginInit();
             this.xtraTabControl1.SuspendLayout();
             this.xtraTabPage1.SuspendLayout();
@@ -210,6 +212,7 @@
             ((System.ComponentModel.ISupportInitialize)(this.repositoryItemButtonEdit2)).BeginInit();
             ((System.ComponentModel.ISupportInitialize)(this.repositoryItemButtonEdit1)).BeginInit();
             ((System.ComponentModel.ISupportInitialize)(this.rptHistory)).BeginInit();
+            this.xtraTabPageReport.SuspendLayout();
             ((System.ComponentModel.ISupportInitialize)(this.picCheckBox)).BeginInit();
             this.SuspendLayout();
             // 
@@ -239,7 +242,8 @@
             this.xtraTabControl1.TabIndex = 3;
             this.xtraTabControl1.TabPages.AddRange(new DevExpress.XtraTab.XtraTabPage[] {
             this.xtraTabPage1,
-            this.xtraTabPage2});
+            this.xtraTabPage2,
+            this.xtraTabPageReport});
             // 
             // xtraTabPage1
             // 
@@ -1427,6 +1431,14 @@
             this.gridColumn20.VisibleIndex = 13;
             this.gridColumn20.Width = 94;
             // 
+            // xtraTabPageReport
+            // 
+            this.xtraTabPageReport.Controls.Add(this.ucRptCgdhd1);
+            this.xtraTabPageReport.ImageOptions.Image = global::Gs.DevApp.Properties.Resources._3dcolumn_16x16;
+            this.xtraTabPageReport.Name = "xtraTabPageReport";
+            this.xtraTabPageReport.Size = new System.Drawing.Size(1573, 570);
+            this.xtraTabPageReport.Text = "鎶ヨ〃";
+            // 
             // picCheckBox
             // 
             this.picCheckBox.Image = global::Gs.DevApp.Properties.Resources.ico_noCheck;
@@ -1437,6 +1449,14 @@
             this.picCheckBox.TabIndex = 6;
             this.picCheckBox.TabStop = false;
             this.picCheckBox.Visible = false;
+            // 
+            // ucRptCgdhd1
+            // 
+            this.ucRptCgdhd1.Dock = System.Windows.Forms.DockStyle.Fill;
+            this.ucRptCgdhd1.Location = new System.Drawing.Point(0, 0);
+            this.ucRptCgdhd1.Name = "ucRptCgdhd1";
+            this.ucRptCgdhd1.Size = new System.Drawing.Size(1573, 570);
+            this.ucRptCgdhd1.TabIndex = 0;
             // 
             // Frm_MesInvItemArn
             // 
@@ -1504,6 +1524,7 @@
             ((System.ComponentModel.ISupportInitialize)(this.repositoryItemButtonEdit2)).EndInit();
             ((System.ComponentModel.ISupportInitialize)(this.repositoryItemButtonEdit1)).EndInit();
             ((System.ComponentModel.ISupportInitialize)(this.rptHistory)).EndInit();
+            this.xtraTabPageReport.ResumeLayout(false);
             ((System.ComponentModel.ISupportInitialize)(this.picCheckBox)).EndInit();
             this.ResumeLayout(false);
 
@@ -1610,5 +1631,7 @@
         private DevExpress.XtraGrid.Columns.GridColumn gridColumn19;
         private DevExpress.XtraGrid.Columns.GridColumn gridColumn20;
         private DevExpress.XtraGrid.Columns.GridColumn gridColumn7;
+        private DevExpress.XtraTab.XtraTabPage xtraTabPageReport;
+        private Rpt.UcRptCgdhd ucRptCgdhd1;
     }
 }
\ No newline at end of file
diff --git a/DevApp/Gs.DevApp/DevFrm/Rpt/UcRptCgdhd.Designer.cs b/DevApp/Gs.DevApp/DevFrm/Rpt/UcRptCgdhd.Designer.cs
new file mode 100644
index 0000000..4fe83e9
--- /dev/null
+++ b/DevApp/Gs.DevApp/DevFrm/Rpt/UcRptCgdhd.Designer.cs
@@ -0,0 +1,379 @@
+锘縩amespace Gs.DevApp.DevFrm.Rpt
+{
+    partial class UcRptCgdhd
+    {
+        /// <summary> 
+        /// Required designer variable.
+        /// </summary>
+        private System.ComponentModel.IContainer components = null;
+
+        /// <summary> 
+        /// Clean up any resources being used.
+        /// </summary>
+        /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
+        protected override void Dispose(bool disposing)
+        {
+            if (disposing && (components != null))
+            {
+                components.Dispose();
+            }
+            base.Dispose(disposing);
+        }
+
+        #region Windows Form Designer generated code
+
+        /// <summary>
+        /// Required method for Designer support - do not modify
+        /// the contents of this method with the code editor.
+        /// </summary>
+        private void InitializeComponent()
+        {
+            this.gcMain1 = new DevExpress.XtraGrid.GridControl();
+            this.gridView1 = new DevExpress.XtraGrid.Views.Grid.GridView();
+            this.gv_guid = new DevExpress.XtraGrid.Columns.GridColumn();
+            this.gv_itemId = new DevExpress.XtraGrid.Columns.GridColumn();
+            this.gridColumn3 = new DevExpress.XtraGrid.Columns.GridColumn();
+            this.gridColumn2 = new DevExpress.XtraGrid.Columns.GridColumn();
+            this.gridColumn4 = new DevExpress.XtraGrid.Columns.GridColumn();
+            this.gv_quantity = new DevExpress.XtraGrid.Columns.GridColumn();
+            this.gv_depotId = new DevExpress.XtraGrid.Columns.GridColumn();
+            this.gridColumn6 = new DevExpress.XtraGrid.Columns.GridColumn();
+            this.gridColumn1 = new DevExpress.XtraGrid.Columns.GridColumn();
+            this.gv_depotSectionsCode = new DevExpress.XtraGrid.Columns.GridColumn();
+            this.gv_ownerType = new DevExpress.XtraGrid.Columns.GridColumn();
+            this.gv_ownerId = new DevExpress.XtraGrid.Columns.GridColumn();
+            this.gridColumn5 = new DevExpress.XtraGrid.Columns.GridColumn();
+            this.gv_indepUserCode = new DevExpress.XtraGrid.Columns.GridColumn();
+            this.gv_indepDate = new DevExpress.XtraGrid.Columns.GridColumn();
+            this.gridColumn7 = new DevExpress.XtraGrid.Columns.GridColumn();
+            this.gridColumn8 = new DevExpress.XtraGrid.Columns.GridColumn();
+            this.gridColumn9 = new DevExpress.XtraGrid.Columns.GridColumn();
+            this.gridColumn10 = new DevExpress.XtraGrid.Columns.GridColumn();
+            this.pageBar1 = new UserControls.Data.UcPageBar();
+            ((System.ComponentModel.ISupportInitialize)(this.gcMain1)).BeginInit();
+            ((System.ComponentModel.ISupportInitialize)(this.gridView1)).BeginInit();
+            this.SuspendLayout();
+            // 
+            // gcMain1
+            // 
+            this.gcMain1.Dock = System.Windows.Forms.DockStyle.Fill;
+            this.gcMain1.Location = new System.Drawing.Point(0, 0);
+            this.gcMain1.MainView = this.gridView1;
+            this.gcMain1.Name = "gcMain1";
+            this.gcMain1.Size = new System.Drawing.Size(1339, 644);
+            this.gcMain1.TabIndex = 2;
+            this.gcMain1.ViewCollection.AddRange(new DevExpress.XtraGrid.Views.Base.BaseView[] {
+            this.gridView1});
+            // 
+            // gridView1
+            // 
+            this.gridView1.Appearance.Row.Options.UseFont = true;
+            this.gridView1.Columns.AddRange(new DevExpress.XtraGrid.Columns.GridColumn[] {
+            this.gv_guid,
+            this.gv_itemId,
+            this.gridColumn3,
+            this.gridColumn2,
+            this.gridColumn4,
+            this.gv_quantity,
+            this.gv_depotId,
+            this.gridColumn6,
+            this.gridColumn1,
+            this.gv_depotSectionsCode,
+            this.gv_ownerType,
+            this.gv_ownerId,
+            this.gridColumn5,
+            this.gv_indepUserCode,
+            this.gv_indepDate,
+            this.gridColumn7,
+            this.gridColumn8,
+            this.gridColumn9,
+            this.gridColumn10});
+            this.gridView1.GridControl = this.gcMain1;
+            this.gridView1.IndicatorWidth = 50;
+            this.gridView1.Name = "gridView1";
+            this.gridView1.OptionsFind.ShowSearchNavButtons = false;
+            this.gridView1.OptionsView.ShowAutoFilterRow = true;
+            this.gridView1.OptionsView.ShowFooter = true;
+            this.gridView1.OptionsView.ShowGroupPanel = false;
+            // 
+            // gv_guid
+            // 
+            this.gv_guid.AppearanceCell.Options.UseFont = true;
+            this.gv_guid.Caption = "涓婚敭GUID";
+            this.gv_guid.FieldName = "guid";
+            this.gv_guid.MinWidth = 50;
+            this.gv_guid.Name = "gv_guid";
+            this.gv_guid.OptionsColumn.AllowEdit = false;
+            this.gv_guid.Tag = "query_a.guid";
+            this.gv_guid.Width = 94;
+            // 
+            // gv_itemId
+            // 
+            this.gv_itemId.AppearanceCell.Options.UseFont = true;
+            this.gv_itemId.Caption = "鐗╂枡ID ";
+            this.gv_itemId.FieldName = "itemId";
+            this.gv_itemId.MinWidth = 50;
+            this.gv_itemId.Name = "gv_itemId";
+            this.gv_itemId.OptionsColumn.AllowEdit = false;
+            this.gv_itemId.Tag = "query_a.ITEM_ID";
+            this.gv_itemId.Width = 73;
+            // 
+            // gridColumn3
+            // 
+            this.gridColumn3.Caption = "鐗╂枡缂栫爜";
+            this.gridColumn3.FieldName = "itemNo";
+            this.gridColumn3.MinWidth = 25;
+            this.gridColumn3.Name = "gridColumn3";
+            this.gridColumn3.Visible = true;
+            this.gridColumn3.VisibleIndex = 7;
+            this.gridColumn3.Width = 74;
+            // 
+            // gridColumn2
+            // 
+            this.gridColumn2.Caption = "鐗╂枡鍚嶇О";
+            this.gridColumn2.FieldName = "itemName";
+            this.gridColumn2.MinWidth = 25;
+            this.gridColumn2.Name = "gridColumn2";
+            this.gridColumn2.Visible = true;
+            this.gridColumn2.VisibleIndex = 8;
+            this.gridColumn2.Width = 74;
+            // 
+            // gridColumn4
+            // 
+            this.gridColumn4.Caption = "瑙勬牸鍨嬪彿";
+            this.gridColumn4.FieldName = "itemModel";
+            this.gridColumn4.MinWidth = 25;
+            this.gridColumn4.Name = "gridColumn4";
+            this.gridColumn4.Visible = true;
+            this.gridColumn4.VisibleIndex = 9;
+            this.gridColumn4.Width = 74;
+            // 
+            // gv_quantity
+            // 
+            this.gv_quantity.AppearanceCell.ForeColor = System.Drawing.Color.Blue;
+            this.gv_quantity.AppearanceCell.Options.UseFont = true;
+            this.gv_quantity.AppearanceCell.Options.UseForeColor = true;
+            this.gv_quantity.AppearanceHeader.ForeColor = System.Drawing.Color.Blue;
+            this.gv_quantity.AppearanceHeader.Options.UseForeColor = true;
+            this.gv_quantity.Caption = "鏀舵枡鏁伴噺 ";
+            this.gv_quantity.FieldName = "quantity";
+            this.gv_quantity.MinWidth = 50;
+            this.gv_quantity.Name = "gv_quantity";
+            this.gv_quantity.OptionsColumn.AllowEdit = false;
+            this.gv_quantity.Summary.AddRange(new DevExpress.XtraGrid.GridSummaryItem[] {
+            new DevExpress.XtraGrid.GridColumnSummaryItem(DevExpress.Data.SummaryItemType.Sum, "quantity", "鍚堣={0:0.##}")});
+            this.gv_quantity.Tag = "query_a.QUANTITY";
+            this.gv_quantity.Visible = true;
+            this.gv_quantity.VisibleIndex = 3;
+            this.gv_quantity.Width = 74;
+            // 
+            // gv_depotId
+            // 
+            this.gv_depotId.AppearanceCell.ForeColor = System.Drawing.Color.Red;
+            this.gv_depotId.AppearanceCell.Options.UseFont = true;
+            this.gv_depotId.AppearanceCell.Options.UseForeColor = true;
+            this.gv_depotId.AppearanceHeader.ForeColor = System.Drawing.Color.Red;
+            this.gv_depotId.AppearanceHeader.Options.UseForeColor = true;
+            this.gv_depotId.Caption = "妫�楠岀姸鎬�";
+            this.gv_depotId.FieldName = "checkStates";
+            this.gv_depotId.MinWidth = 50;
+            this.gv_depotId.Name = "gv_depotId";
+            this.gv_depotId.OptionsColumn.AllowEdit = false;
+            this.gv_depotId.Tag = "query_a.DEPOT_ID";
+            this.gv_depotId.Visible = true;
+            this.gv_depotId.VisibleIndex = 5;
+            this.gv_depotId.Width = 73;
+            // 
+            // gridColumn6
+            // 
+            this.gridColumn6.AppearanceCell.ForeColor = System.Drawing.Color.Red;
+            this.gridColumn6.AppearanceCell.Options.UseForeColor = true;
+            this.gridColumn6.AppearanceHeader.ForeColor = System.Drawing.Color.Red;
+            this.gridColumn6.AppearanceHeader.Options.UseForeColor = true;
+            this.gridColumn6.Caption = "妫�楠岀粨鏋�";
+            this.gridColumn6.FieldName = "checkRes";
+            this.gridColumn6.MinWidth = 25;
+            this.gridColumn6.Name = "gridColumn6";
+            this.gridColumn6.Visible = true;
+            this.gridColumn6.VisibleIndex = 6;
+            this.gridColumn6.Width = 74;
+            // 
+            // gridColumn1
+            // 
+            this.gridColumn1.Caption = "閫�璐�";
+            this.gridColumn1.FieldName = "returnFlag";
+            this.gridColumn1.MinWidth = 25;
+            this.gridColumn1.Name = "gridColumn1";
+            this.gridColumn1.Visible = true;
+            this.gridColumn1.VisibleIndex = 13;
+            this.gridColumn1.Width = 74;
+            // 
+            // gv_depotSectionsCode
+            // 
+            this.gv_depotSectionsCode.AppearanceCell.Options.UseFont = true;
+            this.gv_depotSectionsCode.Caption = "鎬ユ枡";
+            this.gv_depotSectionsCode.FieldName = "urgentFlagTxt";
+            this.gv_depotSectionsCode.MinWidth = 50;
+            this.gv_depotSectionsCode.Name = "gv_depotSectionsCode";
+            this.gv_depotSectionsCode.OptionsColumn.AllowEdit = false;
+            this.gv_depotSectionsCode.Tag = "query_a.DEPOT_SECTIONS_CODE";
+            this.gv_depotSectionsCode.Visible = true;
+            this.gv_depotSectionsCode.VisibleIndex = 10;
+            this.gv_depotSectionsCode.Width = 74;
+            // 
+            // gv_ownerType
+            // 
+            this.gv_ownerType.AppearanceCell.Options.UseFont = true;
+            this.gv_ownerType.Caption = "鏀舵枡缁勭粐";
+            this.gv_ownerType.FieldName = "receivingOrg";
+            this.gv_ownerType.MinWidth = 50;
+            this.gv_ownerType.Name = "gv_ownerType";
+            this.gv_ownerType.OptionsColumn.AllowEdit = false;
+            this.gv_ownerType.Tag = "query_a.Owner_Type";
+            this.gv_ownerType.Visible = true;
+            this.gv_ownerType.VisibleIndex = 0;
+            this.gv_ownerType.Width = 74;
+            // 
+            // gv_ownerId
+            // 
+            this.gv_ownerId.AppearanceCell.Options.UseFont = true;
+            this.gv_ownerId.Caption = "閲囪喘鍗曞彿";
+            this.gv_ownerId.FieldName = "ebeln";
+            this.gv_ownerId.MinWidth = 50;
+            this.gv_ownerId.Name = "gv_ownerId";
+            this.gv_ownerId.OptionsColumn.AllowEdit = false;
+            this.gv_ownerId.Tag = "query_a.Owner_Id";
+            this.gv_ownerId.Visible = true;
+            this.gv_ownerId.VisibleIndex = 1;
+            this.gv_ownerId.Width = 74;
+            // 
+            // gridColumn5
+            // 
+            this.gridColumn5.Caption = "鍒拌揣鍗曞彿";
+            this.gridColumn5.FieldName = "dhdNo";
+            this.gridColumn5.MinWidth = 25;
+            this.gridColumn5.Name = "gridColumn5";
+            this.gridColumn5.Visible = true;
+            this.gridColumn5.VisibleIndex = 2;
+            this.gridColumn5.Width = 74;
+            // 
+            // gv_indepUserCode
+            // 
+            this.gv_indepUserCode.AppearanceCell.Options.UseFont = true;
+            this.gv_indepUserCode.Caption = "鏀惰揣浜�";
+            this.gv_indepUserCode.FieldName = "dhdUser";
+            this.gv_indepUserCode.MinWidth = 50;
+            this.gv_indepUserCode.Name = "gv_indepUserCode";
+            this.gv_indepUserCode.OptionsColumn.AllowEdit = false;
+            this.gv_indepUserCode.Tag = "query_a.INDEP_USER_CODE";
+            this.gv_indepUserCode.Visible = true;
+            this.gv_indepUserCode.VisibleIndex = 11;
+            this.gv_indepUserCode.Width = 74;
+            // 
+            // gv_indepDate
+            // 
+            this.gv_indepDate.AppearanceCell.Options.UseFont = true;
+            this.gv_indepDate.Caption = "鏀惰揣鏃ユ湡 ";
+            this.gv_indepDate.FieldName = "dhdDate";
+            this.gv_indepDate.MinWidth = 10;
+            this.gv_indepDate.Name = "gv_indepDate";
+            this.gv_indepDate.OptionsColumn.AllowEdit = false;
+            this.gv_indepDate.Tag = "query_a.INDEP_DATE";
+            this.gv_indepDate.Visible = true;
+            this.gv_indepDate.VisibleIndex = 12;
+            this.gv_indepDate.Width = 80;
+            // 
+            // gridColumn7
+            // 
+            this.gridColumn7.AppearanceCell.ForeColor = System.Drawing.Color.Blue;
+            this.gridColumn7.AppearanceCell.Options.UseForeColor = true;
+            this.gridColumn7.AppearanceHeader.ForeColor = System.Drawing.Color.Blue;
+            this.gridColumn7.AppearanceHeader.Options.UseForeColor = true;
+            this.gridColumn7.Caption = "鏀舵枡澶囨敞";
+            this.gridColumn7.FieldName = "memo";
+            this.gridColumn7.MinWidth = 25;
+            this.gridColumn7.Name = "gridColumn7";
+            this.gridColumn7.Visible = true;
+            this.gridColumn7.VisibleIndex = 4;
+            this.gridColumn7.Width = 77;
+            // 
+            // gridColumn8
+            // 
+            this.gridColumn8.Caption = "OA澶勭悊鎰忚";
+            this.gridColumn8.FieldName = "clyj";
+            this.gridColumn8.MinWidth = 25;
+            this.gridColumn8.Name = "gridColumn8";
+            this.gridColumn8.Visible = true;
+            this.gridColumn8.VisibleIndex = 14;
+            this.gridColumn8.Width = 77;
+            // 
+            // gridColumn9
+            // 
+            this.gridColumn9.Caption = "OA鎸戦�夋暟閲�";
+            this.gridColumn9.FieldName = "txsl";
+            this.gridColumn9.MinWidth = 25;
+            this.gridColumn9.Name = "gridColumn9";
+            this.gridColumn9.Visible = true;
+            this.gridColumn9.VisibleIndex = 15;
+            this.gridColumn9.Width = 77;
+            // 
+            // gridColumn10
+            // 
+            this.gridColumn10.Caption = "OA閫夊埆绫诲埆";
+            this.gridColumn10.FieldName = "xblb";
+            this.gridColumn10.MinWidth = 25;
+            this.gridColumn10.Name = "gridColumn10";
+            this.gridColumn10.Visible = true;
+            this.gridColumn10.VisibleIndex = 16;
+            this.gridColumn10.Width = 88;
+            // 
+            // pageBar1
+            // 
+            this.pageBar1.CurrentPage = 1;
+            this.pageBar1.Dock = System.Windows.Forms.DockStyle.Bottom;
+            this.pageBar1.Location = new System.Drawing.Point(0, 644);
+            this.pageBar1.Margin = new System.Windows.Forms.Padding(3, 5, 3, 5);
+            this.pageBar1.Name = "pageBar1";
+            this.pageBar1.RecordCount = 0;
+            this.pageBar1.Size = new System.Drawing.Size(1339, 38);
+            this.pageBar1.TabIndex = 4;
+            this.pageBar1.TotalPages = 0;
+            // 
+            // UcRptCgdhd
+            // 
+            this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 18F);
+            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
+            this.Controls.Add(this.gcMain1);
+            this.Controls.Add(this.pageBar1);
+            this.Name = "UcRptCgdhd";
+            this.Size = new System.Drawing.Size(1339, 682);
+            ((System.ComponentModel.ISupportInitialize)(this.gcMain1)).EndInit();
+            ((System.ComponentModel.ISupportInitialize)(this.gridView1)).EndInit();
+            this.ResumeLayout(false);
+
+        }
+        #endregion
+        private DevExpress.XtraGrid.GridControl gcMain1;
+        private DevExpress.XtraGrid.Views.Grid.GridView gridView1;
+        private DevExpress.XtraGrid.Columns.GridColumn gv_guid;
+        private DevExpress.XtraGrid.Columns.GridColumn gv_itemId;
+        private DevExpress.XtraGrid.Columns.GridColumn gridColumn3;
+        private DevExpress.XtraGrid.Columns.GridColumn gridColumn2;
+        private DevExpress.XtraGrid.Columns.GridColumn gridColumn4;
+        private DevExpress.XtraGrid.Columns.GridColumn gv_quantity;
+        private DevExpress.XtraGrid.Columns.GridColumn gv_depotId;
+        private DevExpress.XtraGrid.Columns.GridColumn gridColumn6;
+        private DevExpress.XtraGrid.Columns.GridColumn gridColumn1;
+        private DevExpress.XtraGrid.Columns.GridColumn gv_depotSectionsCode;
+        private DevExpress.XtraGrid.Columns.GridColumn gv_ownerType;
+        private DevExpress.XtraGrid.Columns.GridColumn gv_ownerId;
+        private DevExpress.XtraGrid.Columns.GridColumn gridColumn5;
+        private DevExpress.XtraGrid.Columns.GridColumn gv_indepUserCode;
+        private DevExpress.XtraGrid.Columns.GridColumn gv_indepDate;
+        private UserControls.Data.UcPageBar pageBar1;
+        private DevExpress.XtraGrid.Columns.GridColumn gridColumn7;
+        private DevExpress.XtraGrid.Columns.GridColumn gridColumn8;
+        private DevExpress.XtraGrid.Columns.GridColumn gridColumn9;
+        private DevExpress.XtraGrid.Columns.GridColumn gridColumn10;
+    }
+}
\ No newline at end of file
diff --git a/DevApp/Gs.DevApp/DevFrm/Rpt/UcRptCgdhd.cs b/DevApp/Gs.DevApp/DevFrm/Rpt/UcRptCgdhd.cs
new file mode 100644
index 0000000..4336c82
--- /dev/null
+++ b/DevApp/Gs.DevApp/DevFrm/Rpt/UcRptCgdhd.cs
@@ -0,0 +1,138 @@
+锘縰sing DevExpress.Utils.DirectXPaint;
+using DevExpress.XtraEditors;
+using Gs.DevApp.Entity;
+using Gs.DevApp.ToolBox;
+using Gs.DevApp.UserControl;
+using Newtonsoft.Json;
+using System;
+using System.Collections.Generic;
+using System.ComponentModel;
+using System.Data;
+using System.Drawing;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+using System.Windows.Forms;
+
+namespace Gs.DevApp.DevFrm.Rpt
+{
+    public partial class UcRptCgdhd : DevExpress.XtraEditors.XtraUserControl
+    {
+        string _webServiceName = "MesInvItemArnManager/";
+        List<FilterEntity> _filterList = new List<FilterEntity>();
+        public UcRptCgdhd()
+        {
+            InitializeComponent();
+            //this.toolBarMenu1.btnLoadClick += ToolBarMenu1_btnLoadClick;
+            //this.toolBarMenu1.btnQueryClick += ToolBarMenu1_btnQueryClick;
+            //this.toolBarMenu1.getXmlConfig();
+            Form parentForm = this.FindForm();
+            Gs.DevApp.ToolBox.UtilityHelper.SetGridViewParameter(gridView1, null, parentForm, "", "", (value) =>
+            {
+              //  Gs.DevApp.ToolBox.UtilityHelper.JumpTab(xtraTabControl1, 0);
+            });
+            //Gs.DevApp.ToolBox.UtilityHelper.SetTabParameter(gridView1, xtraTabControl1, pageBar1, (value) =>
+            //{
+            //    getModel(value);
+            //}, (value) =>
+            //{
+            //    getPageList(this.pageBar1.CurrentPage);
+            //}, lbGuid);
+            getPageList(1);
+            pageBar1.PagerEvent += PageBar1_PagerEvent;
+        }
+        private async void GridView1_ColumnFilterChanged(object sender, EventArgs e)
+        {
+            _filterList = Gs.DevApp.ToolBox.UtilityHelper.GetDilter(gridView1.Columns, gridView1);
+            await Task.Delay(100);
+            getPageList(1);
+        }
+
+        /// <summary>
+        /// 鍒嗛〉浜嬩欢
+        /// </summary>
+        /// <param name="curPage"></param>
+        /// <param name="pageSize"></param>
+        private void PageBar1_PagerEvent(int curPage, int pageSize)
+        {
+            getPageList(curPage);
+        }
+        /// <summary>
+        /// 鏌ヨ浜嬩欢
+        /// </summary>
+        /// <param name="sender"></param>
+        /// <param name="e"></param>
+        private void ToolBarMenu1_btnQueryClick(object sender, EventArgs e)
+        {
+            gridView1.ColumnFilterChanged -= GridView1_ColumnFilterChanged;
+            gridView1.ActiveFilter.Clear();
+            gridView1.ColumnFilterChanged += GridView1_ColumnFilterChanged;
+            var frm = new ShowFilter(gridView1.Columns, _filterList, this.GetType().FullName);
+            frm.UpdateParent += Frm_UpdateParent;
+            frm.ShowDialog();
+        }
+        /// <summary>
+        /// 鏌ヨ鍥炶皟
+        /// </summary>
+        /// <param name="sender"></param>
+        /// <param name="e"></param>
+        private void Frm_UpdateParent(object sender, UpdateParentEventArgs e)
+        {
+            _filterList = e.FilterList;
+            getPageList(1);
+        }
+
+        /// <summary>
+        /// 鍒锋柊浜嬩欢
+        /// </summary>
+        /// <param name="sender"></param>
+        /// <param name="e"></param>
+        private void ToolBarMenu1_btnLoadClick(object sender, EventArgs e)
+        {
+            getPageList(this.pageBar1.CurrentPage);
+        }
+
+        /// <summary>
+        /// 
+        /// </summary>
+        /// <param name="curPage">绗嚑椤�</param>
+        /// <param name="pageSize">姣忛〉鍑犳潯</param>
+        private void getPageList(int curPage)
+        {
+            gcMain1.DataSource = null; var _sbSqlWhere = UtilityHelper.GetSearchWhere(_filterList);
+            PageQueryModel pgq = new PageQueryModel(curPage, this.pageBar1.RowsCount, "a.INDEP_DATE", "asc", "", _sbSqlWhere.ToString());
+            string json = JsonConvert.SerializeObject(pgq);
+            try
+            {
+                var strReturn = UtilityHelper.HttpPost("", _webServiceName + "GetListPageReport", json);
+                ReturnModel<PageListModel> dd = UtilityHelper.ReturnToTablePage(strReturn);
+                if (dd.rtnCode > 0)
+                {
+                    DataTable dt = dd.rtnData.list;
+                    gcMain1.BindingContext = new BindingContext();
+                    gridView1.ColumnFilterChanged -= GridView1_ColumnFilterChanged;
+                    if (dt.Rows.Count > 0)
+                    {
+                        gcMain1.DataSource = dt;
+                        gcMain1.ForceInitialize();
+                        gridView1.BestFitColumns(); Gs.DevApp.ToolBox.UtilityHelper.SetGridLayout(gridView1);
+                    }
+                    else
+                        UtilityHelper.SetDefaultTable(gcMain1, gridView1);
+                    gridView1.ColumnFilterChanged += GridView1_ColumnFilterChanged;
+                    pageBar1.TotalPages = dd.rtnData.pages;//鎬婚〉
+                    pageBar1.CurrentPage = curPage;//褰撳墠椤�
+                    pageBar1.RecordCount = dd.rtnData.total;//鎬昏褰曟暟
+                }
+                else
+                {
+                    ToolBox.MsgHelper.ShowError("鎻愮ず锛�" + dd.rtnMsg);
+                }
+            }
+            catch (Exception ex)
+            {
+                ToolBox.MsgHelper.ShowError("鎻愮ず锛�" + ex.Message);
+            }
+        }
+    }
+}
\ No newline at end of file
diff --git a/DevApp/Gs.DevApp/DevFrm/Rpt/UcRptCgdhd.resx b/DevApp/Gs.DevApp/DevFrm/Rpt/UcRptCgdhd.resx
new file mode 100644
index 0000000..1af7de1
--- /dev/null
+++ b/DevApp/Gs.DevApp/DevFrm/Rpt/UcRptCgdhd.resx
@@ -0,0 +1,120 @@
+锘�<?xml version="1.0" encoding="utf-8"?>
+<root>
+  <!-- 
+    Microsoft ResX Schema 
+    
+    Version 2.0
+    
+    The primary goals of this format is to allow a simple XML format 
+    that is mostly human readable. The generation and parsing of the 
+    various data types are done through the TypeConverter classes 
+    associated with the data types.
+    
+    Example:
+    
+    ... ado.net/XML headers & schema ...
+    <resheader name="resmimetype">text/microsoft-resx</resheader>
+    <resheader name="version">2.0</resheader>
+    <resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
+    <resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
+    <data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
+    <data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
+    <data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
+        <value>[base64 mime encoded serialized .NET Framework object]</value>
+    </data>
+    <data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
+        <value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
+        <comment>This is a comment</comment>
+    </data>
+                
+    There are any number of "resheader" rows that contain simple 
+    name/value pairs.
+    
+    Each data row contains a name, and value. The row also contains a 
+    type or mimetype. Type corresponds to a .NET class that support 
+    text/value conversion through the TypeConverter architecture. 
+    Classes that don't support this are serialized and stored with the 
+    mimetype set.
+    
+    The mimetype is used for serialized objects, and tells the 
+    ResXResourceReader how to depersist the object. This is currently not 
+    extensible. For a given mimetype the value must be set accordingly:
+    
+    Note - application/x-microsoft.net.object.binary.base64 is the format 
+    that the ResXResourceWriter will generate, however the reader can 
+    read any of the formats listed below.
+    
+    mimetype: application/x-microsoft.net.object.binary.base64
+    value   : The object must be serialized with 
+            : System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
+            : and then encoded with base64 encoding.
+    
+    mimetype: application/x-microsoft.net.object.soap.base64
+    value   : The object must be serialized with 
+            : System.Runtime.Serialization.Formatters.Soap.SoapFormatter
+            : and then encoded with base64 encoding.
+
+    mimetype: application/x-microsoft.net.object.bytearray.base64
+    value   : The object must be serialized into a byte array 
+            : using a System.ComponentModel.TypeConverter
+            : and then encoded with base64 encoding.
+    -->
+  <xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
+    <xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
+    <xsd:element name="root" msdata:IsDataSet="true">
+      <xsd:complexType>
+        <xsd:choice maxOccurs="unbounded">
+          <xsd:element name="metadata">
+            <xsd:complexType>
+              <xsd:sequence>
+                <xsd:element name="value" type="xsd:string" minOccurs="0" />
+              </xsd:sequence>
+              <xsd:attribute name="name" use="required" type="xsd:string" />
+              <xsd:attribute name="type" type="xsd:string" />
+              <xsd:attribute name="mimetype" type="xsd:string" />
+              <xsd:attribute ref="xml:space" />
+            </xsd:complexType>
+          </xsd:element>
+          <xsd:element name="assembly">
+            <xsd:complexType>
+              <xsd:attribute name="alias" type="xsd:string" />
+              <xsd:attribute name="name" type="xsd:string" />
+            </xsd:complexType>
+          </xsd:element>
+          <xsd:element name="data">
+            <xsd:complexType>
+              <xsd:sequence>
+                <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
+                <xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
+              </xsd:sequence>
+              <xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
+              <xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
+              <xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
+              <xsd:attribute ref="xml:space" />
+            </xsd:complexType>
+          </xsd:element>
+          <xsd:element name="resheader">
+            <xsd:complexType>
+              <xsd:sequence>
+                <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
+              </xsd:sequence>
+              <xsd:attribute name="name" type="xsd:string" use="required" />
+            </xsd:complexType>
+          </xsd:element>
+        </xsd:choice>
+      </xsd:complexType>
+    </xsd:element>
+  </xsd:schema>
+  <resheader name="resmimetype">
+    <value>text/microsoft-resx</value>
+  </resheader>
+  <resheader name="version">
+    <value>2.0</value>
+  </resheader>
+  <resheader name="reader">
+    <value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
+  </resheader>
+  <resheader name="writer">
+    <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
+  </resheader>
+</root>
\ No newline at end of file
diff --git a/DevApp/Gs.DevApp/DevFrm/Sales/Frm_SalesReturnNotice.Designer.cs b/DevApp/Gs.DevApp/DevFrm/Sales/Frm_SalesReturnNotice.Designer.cs
index e029ed2..8ee2e51 100644
--- a/DevApp/Gs.DevApp/DevFrm/Sales/Frm_SalesReturnNotice.Designer.cs
+++ b/DevApp/Gs.DevApp/DevFrm/Sales/Frm_SalesReturnNotice.Designer.cs
@@ -109,6 +109,7 @@
             this.txt_returnReason = new DevExpress.XtraEditors.TextEdit();
             this.txt_createdBy = new DevExpress.XtraEditors.TextEdit();
             this.txt_fHasLinkSource = new DevExpress.XtraEditors.ComboBoxEdit();
+            this.txt_xsms = new DevExpress.XtraEditors.ComboBoxEdit();
             this.layoutControlItem19 = new DevExpress.XtraLayout.LayoutControlItem();
             this.layoutControlItem1 = new DevExpress.XtraLayout.LayoutControlItem();
             this.layoutControlItem12 = new DevExpress.XtraLayout.LayoutControlItem();
@@ -133,6 +134,7 @@
             this.layoutControlItem14 = new DevExpress.XtraLayout.LayoutControlItem();
             this.layoutControlItem9 = new DevExpress.XtraLayout.LayoutControlItem();
             this.layoutControlItem3 = new DevExpress.XtraLayout.LayoutControlItem();
+            this.layItem101 = new DevExpress.XtraLayout.LayoutControlItem();
             this.tabMx = new DevExpress.XtraTab.XtraTabControl();
             this.tabMxPage1 = new DevExpress.XtraTab.XtraTabPage();
             this.split99 = new DevExpress.XtraEditors.SplitContainerControl();
@@ -240,6 +242,7 @@
             ((System.ComponentModel.ISupportInitialize)(this.txt_returnReason.Properties)).BeginInit();
             ((System.ComponentModel.ISupportInitialize)(this.txt_createdBy.Properties)).BeginInit();
             ((System.ComponentModel.ISupportInitialize)(this.txt_fHasLinkSource.Properties)).BeginInit();
+            ((System.ComponentModel.ISupportInitialize)(this.txt_xsms.Properties)).BeginInit();
             ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem19)).BeginInit();
             ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem1)).BeginInit();
             ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem12)).BeginInit();
@@ -264,6 +267,7 @@
             ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem14)).BeginInit();
             ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem9)).BeginInit();
             ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem3)).BeginInit();
+            ((System.ComponentModel.ISupportInitialize)(this.layItem101)).BeginInit();
             ((System.ComponentModel.ISupportInitialize)(this.tabMx)).BeginInit();
             this.tabMx.SuspendLayout();
             this.tabMxPage1.SuspendLayout();
@@ -734,6 +738,7 @@
             this.layoutMx1.Controls.Add(this.txt_returnReason);
             this.layoutMx1.Controls.Add(this.txt_createdBy);
             this.layoutMx1.Controls.Add(this.txt_fHasLinkSource);
+            this.layoutMx1.Controls.Add(this.txt_xsms);
             this.layoutMx1.Dock = System.Windows.Forms.DockStyle.Fill;
             this.layoutMx1.HiddenItems.AddRange(new DevExpress.XtraLayout.BaseLayoutItem[] {
             this.layoutControlItem19,
@@ -763,25 +768,25 @@
             // txt_returnCustomer
             // 
             this.txt_returnCustomer.IsReadly = false;
-            this.txt_returnCustomer.Location = new System.Drawing.Point(438, 44);
+            this.txt_returnCustomer.Location = new System.Drawing.Point(433, 44);
             this.txt_returnCustomer.Name = "txt_returnCustomer";
-            this.txt_returnCustomer.Size = new System.Drawing.Size(278, 24);
+            this.txt_returnCustomer.Size = new System.Drawing.Size(273, 24);
             this.txt_returnCustomer.TabIndex = 539;
             // 
             // txt_salesDept
             // 
             this.txt_salesDept.IsReadly = false;
-            this.txt_salesDept.Location = new System.Drawing.Point(1146, 108);
+            this.txt_salesDept.Location = new System.Drawing.Point(1131, 108);
             this.txt_salesDept.Name = "txt_salesDept";
-            this.txt_salesDept.Size = new System.Drawing.Size(279, 24);
+            this.txt_salesDept.Size = new System.Drawing.Size(273, 24);
             this.txt_salesDept.TabIndex = 538;
             // 
             // txt_inventoryOrg
             // 
             this.txt_inventoryOrg.IsReadly = false;
-            this.txt_inventoryOrg.Location = new System.Drawing.Point(792, 108);
+            this.txt_inventoryOrg.Location = new System.Drawing.Point(782, 108);
             this.txt_inventoryOrg.Name = "txt_inventoryOrg";
-            this.txt_inventoryOrg.Size = new System.Drawing.Size(278, 24);
+            this.txt_inventoryOrg.Size = new System.Drawing.Size(273, 24);
             this.txt_inventoryOrg.TabIndex = 537;
             // 
             // txt_salesOrg
@@ -789,20 +794,20 @@
             this.txt_salesOrg.IsReadly = false;
             this.txt_salesOrg.Location = new System.Drawing.Point(84, 44);
             this.txt_salesOrg.Name = "txt_salesOrg";
-            this.txt_salesOrg.Size = new System.Drawing.Size(278, 24);
+            this.txt_salesOrg.Size = new System.Drawing.Size(273, 24);
             this.txt_salesOrg.TabIndex = 535;
             // 
             // txt_fHasLinkRad
             // 
             this.txt_fHasLinkRad.EditValue = "1";
-            this.txt_fHasLinkRad.Location = new System.Drawing.Point(438, 106);
+            this.txt_fHasLinkRad.Location = new System.Drawing.Point(433, 106);
             this.txt_fHasLinkRad.Margin = new System.Windows.Forms.Padding(0);
             this.txt_fHasLinkRad.Name = "txt_fHasLinkRad";
             this.txt_fHasLinkRad.Properties.Items.AddRange(new DevExpress.XtraEditors.Controls.RadioGroupItem[] {
             new DevExpress.XtraEditors.Controls.RadioGroupItem("1", "鏈夋簮鍗�"),
             new DevExpress.XtraEditors.Controls.RadioGroupItem("0", "鏃犳簮鍗�")});
             this.txt_fHasLinkRad.Properties.Padding = new System.Windows.Forms.Padding(0);
-            this.txt_fHasLinkRad.Size = new System.Drawing.Size(278, 32);
+            this.txt_fHasLinkRad.Size = new System.Drawing.Size(273, 32);
             this.txt_fHasLinkRad.StyleController = this.layoutMx1;
             this.txt_fHasLinkRad.TabIndex = 534;
             // 
@@ -812,7 +817,7 @@
             this.txt_fstockid.Location = new System.Drawing.Point(84, 76);
             this.txt_fstockid.Margin = new System.Windows.Forms.Padding(0);
             this.txt_fstockid.Name = "txt_fstockid";
-            this.txt_fstockid.Size = new System.Drawing.Size(278, 24);
+            this.txt_fstockid.Size = new System.Drawing.Size(273, 24);
             this.txt_fstockid.TabIndex = 454;
             // 
             // lbGuid
@@ -835,10 +840,10 @@
             // 
             // txt_chkStatus
             // 
-            this.txt_chkStatus.Location = new System.Drawing.Point(1074, 76);
+            this.txt_chkStatus.Location = new System.Drawing.Point(1059, 76);
             this.txt_chkStatus.Name = "txt_chkStatus";
             this.txt_chkStatus.Properties.Caption = "瀹℃牳鏍囪瘑";
-            this.txt_chkStatus.Size = new System.Drawing.Size(351, 24);
+            this.txt_chkStatus.Size = new System.Drawing.Size(345, 24);
             this.txt_chkStatus.StyleController = this.layoutMx1;
             this.txt_chkStatus.TabIndex = 452;
             this.txt_chkStatus.Tag = "readonly";
@@ -846,23 +851,23 @@
             // txt_billType
             // 
             this.txt_billType.EditValue = "鏍囧噯閿�鍞��璐у崟(XSTHD01_SYS)";
-            this.txt_billType.Location = new System.Drawing.Point(438, 12);
+            this.txt_billType.Location = new System.Drawing.Point(433, 12);
             this.txt_billType.Name = "txt_billType";
             this.txt_billType.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] {
             new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)});
             this.txt_billType.Properties.Items.AddRange(new object[] {
             "鏍囧噯閿�鍞��璐у崟(XSTHD01_SYS)"});
             this.txt_billType.Properties.TextEditStyle = DevExpress.XtraEditors.Controls.TextEditStyles.DisableTextEditor;
-            this.txt_billType.Size = new System.Drawing.Size(278, 24);
+            this.txt_billType.Size = new System.Drawing.Size(273, 24);
             this.txt_billType.StyleController = this.layoutMx1;
             this.txt_billType.TabIndex = 451;
             // 
             // txt_approvedDate
             // 
-            this.txt_approvedDate.Location = new System.Drawing.Point(1146, 44);
+            this.txt_approvedDate.Location = new System.Drawing.Point(1131, 44);
             this.txt_approvedDate.Name = "txt_approvedDate";
             this.txt_approvedDate.Properties.Appearance.Options.UseFont = true;
-            this.txt_approvedDate.Size = new System.Drawing.Size(279, 24);
+            this.txt_approvedDate.Size = new System.Drawing.Size(273, 24);
             this.txt_approvedDate.StyleController = this.layoutMx1;
             this.txt_approvedDate.TabIndex = 378;
             this.txt_approvedDate.Tag = "readonly";
@@ -879,20 +884,20 @@
             // 
             // txt_approvedBy
             // 
-            this.txt_approvedBy.Location = new System.Drawing.Point(1146, 12);
+            this.txt_approvedBy.Location = new System.Drawing.Point(1131, 12);
             this.txt_approvedBy.Name = "txt_approvedBy";
             this.txt_approvedBy.Properties.Appearance.Options.UseFont = true;
-            this.txt_approvedBy.Size = new System.Drawing.Size(279, 24);
+            this.txt_approvedBy.Size = new System.Drawing.Size(273, 24);
             this.txt_approvedBy.StyleController = this.layoutMx1;
             this.txt_approvedBy.TabIndex = 370;
             this.txt_approvedBy.Tag = "readonly";
             // 
             // txt_modifiedDate
             // 
-            this.txt_modifiedDate.Location = new System.Drawing.Point(792, 44);
+            this.txt_modifiedDate.Location = new System.Drawing.Point(782, 44);
             this.txt_modifiedDate.Name = "txt_modifiedDate";
             this.txt_modifiedDate.Properties.Appearance.Options.UseFont = true;
-            this.txt_modifiedDate.Size = new System.Drawing.Size(278, 24);
+            this.txt_modifiedDate.Size = new System.Drawing.Size(273, 24);
             this.txt_modifiedDate.StyleController = this.layoutMx1;
             this.txt_modifiedDate.TabIndex = 336;
             this.txt_modifiedDate.Tag = "readonly";
@@ -902,7 +907,7 @@
             this.txt_billNo.Location = new System.Drawing.Point(84, 12);
             this.txt_billNo.Name = "txt_billNo";
             this.txt_billNo.Properties.Appearance.Options.UseFont = true;
-            this.txt_billNo.Size = new System.Drawing.Size(278, 24);
+            this.txt_billNo.Size = new System.Drawing.Size(273, 24);
             this.txt_billNo.StyleController = this.layoutMx1;
             this.txt_billNo.TabIndex = 213;
             this.txt_billNo.Tag = "readonly";
@@ -919,20 +924,20 @@
             // 
             // txt_modifiedBy
             // 
-            this.txt_modifiedBy.Location = new System.Drawing.Point(792, 12);
+            this.txt_modifiedBy.Location = new System.Drawing.Point(782, 12);
             this.txt_modifiedBy.Name = "txt_modifiedBy";
             this.txt_modifiedBy.Properties.Appearance.Options.UseFont = true;
-            this.txt_modifiedBy.Size = new System.Drawing.Size(278, 24);
+            this.txt_modifiedBy.Size = new System.Drawing.Size(273, 24);
             this.txt_modifiedBy.StyleController = this.layoutMx1;
             this.txt_modifiedBy.TabIndex = 327;
             this.txt_modifiedBy.Tag = "readonly";
             // 
             // txt_saleDeptName
             // 
-            this.txt_saleDeptName.Location = new System.Drawing.Point(792, 76);
+            this.txt_saleDeptName.Location = new System.Drawing.Point(782, 76);
             this.txt_saleDeptName.Name = "txt_saleDeptName";
             this.txt_saleDeptName.Properties.Appearance.Options.UseFont = true;
-            this.txt_saleDeptName.Size = new System.Drawing.Size(278, 24);
+            this.txt_saleDeptName.Size = new System.Drawing.Size(273, 24);
             this.txt_saleDeptName.StyleController = this.layoutMx1;
             this.txt_saleDeptName.TabIndex = 222;
             this.txt_saleDeptName.Tag = "readonly";
@@ -949,10 +954,10 @@
             // 
             // txt_returnReason
             // 
-            this.txt_returnReason.Location = new System.Drawing.Point(438, 76);
+            this.txt_returnReason.Location = new System.Drawing.Point(433, 76);
             this.txt_returnReason.Name = "txt_returnReason";
             this.txt_returnReason.Properties.Appearance.Options.UseFont = true;
-            this.txt_returnReason.Size = new System.Drawing.Size(278, 24);
+            this.txt_returnReason.Size = new System.Drawing.Size(273, 24);
             this.txt_returnReason.StyleController = this.layoutMx1;
             this.txt_returnReason.TabIndex = 235;
             // 
@@ -969,7 +974,7 @@
             // txt_fHasLinkSource
             // 
             this.txt_fHasLinkSource.EditValue = "閿�鍞嚭搴撳崟(SAL OUTSTOCK)";
-            this.txt_fHasLinkSource.Location = new System.Drawing.Point(438, 140);
+            this.txt_fHasLinkSource.Location = new System.Drawing.Point(433, 140);
             this.txt_fHasLinkSource.Name = "txt_fHasLinkSource";
             this.txt_fHasLinkSource.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] {
             new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)});
@@ -977,9 +982,27 @@
             "閿�鍞嚭搴撳崟(SAL_OUTSTOCK)",
             "閿�鍞鍗�(SAL_SaleOrder)"});
             this.txt_fHasLinkSource.Properties.TextEditStyle = DevExpress.XtraEditors.Controls.TextEditStyles.DisableTextEditor;
-            this.txt_fHasLinkSource.Size = new System.Drawing.Size(278, 24);
+            this.txt_fHasLinkSource.Size = new System.Drawing.Size(273, 24);
             this.txt_fHasLinkSource.StyleController = this.layoutMx1;
             this.txt_fHasLinkSource.TabIndex = 544;
+            // 
+            // txt_xsms
+            // 
+            this.txt_xsms.EditValue = "-璇烽�夋嫨-";
+            this.txt_xsms.Location = new System.Drawing.Point(782, 140);
+            this.txt_xsms.Name = "txt_xsms";
+            this.txt_xsms.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] {
+            new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)});
+            this.txt_xsms.Properties.Items.AddRange(new object[] {
+            "-璇烽�夋嫨-",
+            "1:ODM",
+            "2:OEM",
+            "3:OBM",
+            "4:渚涘簲鍟嗕拱鏂�"});
+            this.txt_xsms.Properties.TextEditStyle = DevExpress.XtraEditors.Controls.TextEditStyles.DisableTextEditor;
+            this.txt_xsms.Size = new System.Drawing.Size(273, 24);
+            this.txt_xsms.StyleController = this.layoutMx1;
+            this.txt_xsms.TabIndex = 545;
             // 
             // layoutControlItem19
             // 
@@ -1068,7 +1091,8 @@
             this.layoutControlItem13,
             this.layoutControlItem14,
             this.layoutControlItem9,
-            this.layoutControlItem3});
+            this.layoutControlItem3,
+            this.layItem101});
             this.Root.LayoutMode = DevExpress.XtraLayout.Utils.LayoutMode.Table;
             this.Root.Name = "Root";
             columnDefinition1.SizeType = System.Windows.Forms.SizeType.Percent;
@@ -1100,7 +1124,7 @@
             rowDefinition3,
             rowDefinition4,
             rowDefinition5});
-            this.Root.Size = new System.Drawing.Size(1437, 180);
+            this.Root.Size = new System.Drawing.Size(1416, 180);
             this.Root.TextVisible = false;
             // 
             // layoutControlItem4
@@ -1108,39 +1132,39 @@
             this.layoutControlItem4.Control = this.txt_billNo;
             this.layoutControlItem4.Location = new System.Drawing.Point(0, 0);
             this.layoutControlItem4.Name = "layoutControlItem4";
-            this.layoutControlItem4.Size = new System.Drawing.Size(354, 32);
+            this.layoutControlItem4.Size = new System.Drawing.Size(349, 32);
             this.layoutControlItem4.Text = "鐢宠鍗曞彿";
             this.layoutControlItem4.TextSize = new System.Drawing.Size(60, 18);
             // 
             // layoutControlItem15
             // 
             this.layoutControlItem15.Control = this.txt_approvedBy;
-            this.layoutControlItem15.Location = new System.Drawing.Point(1062, 0);
+            this.layoutControlItem15.Location = new System.Drawing.Point(1047, 0);
             this.layoutControlItem15.Name = "layoutControlItem15";
             this.layoutControlItem15.OptionsTableLayoutItem.ColumnIndex = 3;
-            this.layoutControlItem15.Size = new System.Drawing.Size(355, 32);
+            this.layoutControlItem15.Size = new System.Drawing.Size(349, 32);
             this.layoutControlItem15.Text = "瀹℃牳浜哄憳";
             this.layoutControlItem15.TextSize = new System.Drawing.Size(60, 18);
             // 
             // layoutControlItem16
             // 
             this.layoutControlItem16.Control = this.txt_approvedDate;
-            this.layoutControlItem16.Location = new System.Drawing.Point(1062, 32);
+            this.layoutControlItem16.Location = new System.Drawing.Point(1047, 32);
             this.layoutControlItem16.Name = "layoutControlItem16";
             this.layoutControlItem16.OptionsTableLayoutItem.ColumnIndex = 3;
             this.layoutControlItem16.OptionsTableLayoutItem.RowIndex = 1;
-            this.layoutControlItem16.Size = new System.Drawing.Size(355, 32);
+            this.layoutControlItem16.Size = new System.Drawing.Size(349, 32);
             this.layoutControlItem16.Text = "瀹℃牳鏃堕棿";
             this.layoutControlItem16.TextSize = new System.Drawing.Size(60, 18);
             // 
             // layoutControlItem17
             // 
             this.layoutControlItem17.Control = this.txt_chkStatus;
-            this.layoutControlItem17.Location = new System.Drawing.Point(1062, 64);
+            this.layoutControlItem17.Location = new System.Drawing.Point(1047, 64);
             this.layoutControlItem17.Name = "layoutControlItem17";
             this.layoutControlItem17.OptionsTableLayoutItem.ColumnIndex = 3;
             this.layoutControlItem17.OptionsTableLayoutItem.RowIndex = 2;
-            this.layoutControlItem17.Size = new System.Drawing.Size(355, 32);
+            this.layoutControlItem17.Size = new System.Drawing.Size(349, 32);
             this.layoutControlItem17.Text = "瀹℃牳鏍囪瘑";
             this.layoutControlItem17.TextSize = new System.Drawing.Size(0, 0);
             this.layoutControlItem17.TextVisible = false;
@@ -1151,7 +1175,7 @@
             this.layoutControlItem20.Location = new System.Drawing.Point(0, 64);
             this.layoutControlItem20.Name = "layoutControlItem20";
             this.layoutControlItem20.OptionsTableLayoutItem.RowIndex = 2;
-            this.layoutControlItem20.Size = new System.Drawing.Size(354, 32);
+            this.layoutControlItem20.Size = new System.Drawing.Size(349, 32);
             this.layoutControlItem20.Text = "閫夋嫨浠撳簱";
             this.layoutControlItem20.TextSize = new System.Drawing.Size(60, 18);
             // 
@@ -1161,7 +1185,7 @@
             this.layItem1.Location = new System.Drawing.Point(0, 32);
             this.layItem1.Name = "layItem1";
             this.layItem1.OptionsTableLayoutItem.RowIndex = 1;
-            this.layItem1.Size = new System.Drawing.Size(354, 32);
+            this.layItem1.Size = new System.Drawing.Size(349, 32);
             this.layItem1.Text = "閿�鍞粍缁�";
             this.layItem1.TextSize = new System.Drawing.Size(60, 18);
             // 
@@ -1170,44 +1194,44 @@
             this.layoutControlItem21.AppearanceItemCaption.BackColor = System.Drawing.Color.SkyBlue;
             this.layoutControlItem21.AppearanceItemCaption.Options.UseBackColor = true;
             this.layoutControlItem21.Control = this.txt_fHasLinkRad;
-            this.layoutControlItem21.Location = new System.Drawing.Point(354, 96);
+            this.layoutControlItem21.Location = new System.Drawing.Point(349, 96);
             this.layoutControlItem21.Name = "layoutControlItem21";
             this.layoutControlItem21.OptionsTableLayoutItem.ColumnIndex = 1;
             this.layoutControlItem21.OptionsTableLayoutItem.RowIndex = 3;
             this.layoutControlItem21.Padding = new DevExpress.XtraLayout.Utils.Padding(2, 2, 0, 0);
-            this.layoutControlItem21.Size = new System.Drawing.Size(354, 32);
+            this.layoutControlItem21.Size = new System.Drawing.Size(349, 32);
             this.layoutControlItem21.Text = "婧愬崟绫诲瀷";
             this.layoutControlItem21.TextSize = new System.Drawing.Size(60, 18);
             // 
             // layoutControlItem7
             // 
             this.layoutControlItem7.Control = this.txt_saleDeptName;
-            this.layoutControlItem7.Location = new System.Drawing.Point(708, 64);
+            this.layoutControlItem7.Location = new System.Drawing.Point(698, 64);
             this.layoutControlItem7.Name = "layoutControlItem7";
             this.layoutControlItem7.OptionsTableLayoutItem.ColumnIndex = 2;
             this.layoutControlItem7.OptionsTableLayoutItem.RowIndex = 2;
-            this.layoutControlItem7.Size = new System.Drawing.Size(354, 32);
+            this.layoutControlItem7.Size = new System.Drawing.Size(349, 32);
             this.layoutControlItem7.Text = "閿�鍞儴闂�";
             this.layoutControlItem7.TextSize = new System.Drawing.Size(60, 18);
             // 
             // layoutControlItem10
             // 
             this.layoutControlItem10.Control = this.txt_billType;
-            this.layoutControlItem10.Location = new System.Drawing.Point(354, 0);
+            this.layoutControlItem10.Location = new System.Drawing.Point(349, 0);
             this.layoutControlItem10.Name = "layoutControlItem10";
             this.layoutControlItem10.OptionsTableLayoutItem.ColumnIndex = 1;
-            this.layoutControlItem10.Size = new System.Drawing.Size(354, 32);
+            this.layoutControlItem10.Size = new System.Drawing.Size(349, 32);
             this.layoutControlItem10.Text = "鍗曟嵁绫诲瀷";
             this.layoutControlItem10.TextSize = new System.Drawing.Size(60, 18);
             // 
             // layItem2
             // 
             this.layItem2.Control = this.txt_returnCustomer;
-            this.layItem2.Location = new System.Drawing.Point(354, 32);
+            this.layItem2.Location = new System.Drawing.Point(349, 32);
             this.layItem2.Name = "layItem2";
             this.layItem2.OptionsTableLayoutItem.ColumnIndex = 1;
             this.layItem2.OptionsTableLayoutItem.RowIndex = 1;
-            this.layItem2.Size = new System.Drawing.Size(354, 32);
+            this.layItem2.Size = new System.Drawing.Size(349, 32);
             this.layItem2.Text = "閫�璐у鎴�";
             this.layItem2.TextSize = new System.Drawing.Size(60, 18);
             // 
@@ -1216,11 +1240,11 @@
             this.layItem3.AppearanceItemCaption.BackColor = System.Drawing.Color.SkyBlue;
             this.layItem3.AppearanceItemCaption.Options.UseBackColor = true;
             this.layItem3.Control = this.txt_inventoryOrg;
-            this.layItem3.Location = new System.Drawing.Point(708, 96);
+            this.layItem3.Location = new System.Drawing.Point(698, 96);
             this.layItem3.Name = "layItem3";
             this.layItem3.OptionsTableLayoutItem.ColumnIndex = 2;
             this.layItem3.OptionsTableLayoutItem.RowIndex = 3;
-            this.layItem3.Size = new System.Drawing.Size(354, 32);
+            this.layItem3.Size = new System.Drawing.Size(349, 32);
             this.layItem3.Text = "搴撳瓨缁勭粐";
             this.layItem3.TextSize = new System.Drawing.Size(60, 18);
             // 
@@ -1229,11 +1253,11 @@
             this.layItem4.AppearanceItemCaption.BackColor = System.Drawing.Color.SkyBlue;
             this.layItem4.AppearanceItemCaption.Options.UseBackColor = true;
             this.layItem4.Control = this.txt_salesDept;
-            this.layItem4.Location = new System.Drawing.Point(1062, 96);
+            this.layItem4.Location = new System.Drawing.Point(1047, 96);
             this.layItem4.Name = "layItem4";
             this.layItem4.OptionsTableLayoutItem.ColumnIndex = 3;
             this.layItem4.OptionsTableLayoutItem.RowIndex = 3;
-            this.layItem4.Size = new System.Drawing.Size(355, 32);
+            this.layItem4.Size = new System.Drawing.Size(349, 32);
             this.layItem4.Text = "閿�鍞儴闂�";
             this.layItem4.TextSize = new System.Drawing.Size(60, 18);
             // 
@@ -1243,32 +1267,32 @@
             this.layItem100.AppearanceItemCaption.Options.UseBackColor = true;
             this.layItem100.Control = this.txt_fHasLinkSource;
             this.layItem100.CustomizationFormText = "鏁版嵁鏉ユ簮";
-            this.layItem100.Location = new System.Drawing.Point(354, 128);
+            this.layItem100.Location = new System.Drawing.Point(349, 128);
             this.layItem100.Name = "layItem100";
             this.layItem100.OptionsTableLayoutItem.ColumnIndex = 1;
             this.layItem100.OptionsTableLayoutItem.RowIndex = 4;
-            this.layItem100.Size = new System.Drawing.Size(354, 32);
+            this.layItem100.Size = new System.Drawing.Size(349, 32);
             this.layItem100.Text = "鏁版嵁鏉ユ簮";
             this.layItem100.TextSize = new System.Drawing.Size(60, 18);
             // 
             // layoutControlItem13
             // 
             this.layoutControlItem13.Control = this.txt_modifiedBy;
-            this.layoutControlItem13.Location = new System.Drawing.Point(708, 0);
+            this.layoutControlItem13.Location = new System.Drawing.Point(698, 0);
             this.layoutControlItem13.Name = "layoutControlItem13";
             this.layoutControlItem13.OptionsTableLayoutItem.ColumnIndex = 2;
-            this.layoutControlItem13.Size = new System.Drawing.Size(354, 32);
+            this.layoutControlItem13.Size = new System.Drawing.Size(349, 32);
             this.layoutControlItem13.Text = "淇敼浜哄憳";
             this.layoutControlItem13.TextSize = new System.Drawing.Size(60, 18);
             // 
             // layoutControlItem14
             // 
             this.layoutControlItem14.Control = this.txt_modifiedDate;
-            this.layoutControlItem14.Location = new System.Drawing.Point(708, 32);
+            this.layoutControlItem14.Location = new System.Drawing.Point(698, 32);
             this.layoutControlItem14.Name = "layoutControlItem14";
             this.layoutControlItem14.OptionsTableLayoutItem.ColumnIndex = 2;
             this.layoutControlItem14.OptionsTableLayoutItem.RowIndex = 1;
-            this.layoutControlItem14.Size = new System.Drawing.Size(354, 32);
+            this.layoutControlItem14.Size = new System.Drawing.Size(349, 32);
             this.layoutControlItem14.Text = "淇敼鏃堕棿";
             this.layoutControlItem14.TextSize = new System.Drawing.Size(60, 18);
             // 
@@ -1276,11 +1300,11 @@
             // 
             this.layoutControlItem9.Control = this.txt_returnReason;
             this.layoutControlItem9.CustomizationFormText = "鐢宠鍘熷洜";
-            this.layoutControlItem9.Location = new System.Drawing.Point(354, 64);
+            this.layoutControlItem9.Location = new System.Drawing.Point(349, 64);
             this.layoutControlItem9.Name = "layoutControlItem9";
             this.layoutControlItem9.OptionsTableLayoutItem.ColumnIndex = 1;
             this.layoutControlItem9.OptionsTableLayoutItem.RowIndex = 2;
-            this.layoutControlItem9.Size = new System.Drawing.Size(354, 32);
+            this.layoutControlItem9.Size = new System.Drawing.Size(349, 32);
             this.layoutControlItem9.Text = "鐢宠鍘熷洜";
             this.layoutControlItem9.TextSize = new System.Drawing.Size(60, 18);
             // 
@@ -1292,11 +1316,24 @@
             this.layoutControlItem3.MinSize = new System.Drawing.Size(20, 31);
             this.layoutControlItem3.Name = "layoutControlItem3";
             this.layoutControlItem3.OptionsTableLayoutItem.RowIndex = 3;
-            this.layoutControlItem3.Size = new System.Drawing.Size(354, 32);
+            this.layoutControlItem3.Size = new System.Drawing.Size(349, 32);
             this.layoutControlItem3.SizeConstraintsType = DevExpress.XtraLayout.SizeConstraintsType.Custom;
             this.layoutControlItem3.Text = "閫夋嫨鏄庣粏";
             this.layoutControlItem3.TextSize = new System.Drawing.Size(0, 0);
             this.layoutControlItem3.TextVisible = false;
+            // 
+            // layItem101
+            // 
+            this.layItem101.AppearanceItemCaption.BackColor = System.Drawing.Color.SkyBlue;
+            this.layItem101.AppearanceItemCaption.Options.UseBackColor = true;
+            this.layItem101.Control = this.txt_xsms;
+            this.layItem101.Location = new System.Drawing.Point(698, 128);
+            this.layItem101.Name = "layItem101";
+            this.layItem101.OptionsTableLayoutItem.ColumnIndex = 2;
+            this.layItem101.OptionsTableLayoutItem.RowIndex = 4;
+            this.layItem101.Size = new System.Drawing.Size(349, 32);
+            this.layItem101.Text = "閿�鍞ā寮�";
+            this.layItem101.TextSize = new System.Drawing.Size(60, 18);
             // 
             // tabMx
             // 
@@ -2224,6 +2261,7 @@
             ((System.ComponentModel.ISupportInitialize)(this.txt_returnReason.Properties)).EndInit();
             ((System.ComponentModel.ISupportInitialize)(this.txt_createdBy.Properties)).EndInit();
             ((System.ComponentModel.ISupportInitialize)(this.txt_fHasLinkSource.Properties)).EndInit();
+            ((System.ComponentModel.ISupportInitialize)(this.txt_xsms.Properties)).EndInit();
             ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem19)).EndInit();
             ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem1)).EndInit();
             ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem12)).EndInit();
@@ -2248,6 +2286,7 @@
             ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem14)).EndInit();
             ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem9)).EndInit();
             ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem3)).EndInit();
+            ((System.ComponentModel.ISupportInitialize)(this.layItem101)).EndInit();
             ((System.ComponentModel.ISupportInitialize)(this.tabMx)).EndInit();
             this.tabMx.ResumeLayout(false);
             this.tabMxPage1.ResumeLayout(false);
@@ -2451,5 +2490,7 @@
         private DevExpress.XtraLayout.LayoutControlItem layoutControlItem14;
         private DevExpress.XtraLayout.LayoutControlItem layoutControlItem9;
         private DevExpress.XtraLayout.LayoutControlItem layoutControlItem3;
+        private DevExpress.XtraEditors.ComboBoxEdit txt_xsms;
+        private DevExpress.XtraLayout.LayoutControlItem layItem101;
     }
 }
\ No newline at end of file
diff --git a/DevApp/Gs.DevApp/DevFrm/Sales/Frm_SalesReturnNotice.cs b/DevApp/Gs.DevApp/DevFrm/Sales/Frm_SalesReturnNotice.cs
index 2ce2ed3..cd949a4 100644
--- a/DevApp/Gs.DevApp/DevFrm/Sales/Frm_SalesReturnNotice.cs
+++ b/DevApp/Gs.DevApp/DevFrm/Sales/Frm_SalesReturnNotice.cs
@@ -496,6 +496,7 @@
             string _inventoryOrg = txt_inventoryOrg.GetId();
             string _returnCustomer = txt_returnCustomer.GetId().ToString();
             string _salesDept = txt_salesDept.GetId();
+            string _xsms = txt_xsms.Text.ToString();
             if (txt_billType.SelectedIndex < 0)
             {
                 Gs.DevApp.ToolBox.MsgHelper.ShowError("璇烽�夋嫨鍗曟嵁绫诲瀷锛�");
@@ -541,6 +542,12 @@
                     txt_salesDept.Focus();
                     return;
                 }
+                if (txt_xsms.SelectedIndex <= 0)
+                {
+                    Gs.DevApp.ToolBox.MsgHelper.ShowError("璇烽�夋嫨閿�鍞ā寮忥紒");
+                    txt_xsms.Focus();
+                    return;
+                }
             }
             var _obj = new
             {
@@ -555,6 +562,7 @@
                 inventoryOrg = _inventoryOrg,
                 returnCustomer = _returnCustomer,
                 salesDept = _salesDept,
+                xsms = _xsms,
                 list = new List<dynamic>(),
             };
             gvMx1.CloseEditor();
@@ -931,12 +939,14 @@
                 layItem3.Visibility = DevExpress.XtraLayout.Utils.LayoutVisibility.Never;
                 layItem4.Visibility = DevExpress.XtraLayout.Utils.LayoutVisibility.Never;
                 layItem100.Visibility = DevExpress.XtraLayout.Utils.LayoutVisibility.Always;
+                layItem101.Visibility = DevExpress.XtraLayout.Utils.LayoutVisibility.Never;
             }
             else
             {
                 layItem3.Visibility = DevExpress.XtraLayout.Utils.LayoutVisibility.Always;
                 layItem4.Visibility = DevExpress.XtraLayout.Utils.LayoutVisibility.Always;
                 layItem100.Visibility = DevExpress.XtraLayout.Utils.LayoutVisibility.Never;
+                layItem101.Visibility = DevExpress.XtraLayout.Utils.LayoutVisibility.Always;
             }
         }
     }
diff --git a/DevApp/Gs.DevApp/DevFrm/Sales/Frm_SalesReturnNoticeSelectLink.Designer.cs b/DevApp/Gs.DevApp/DevFrm/Sales/Frm_SalesReturnNoticeSelectLink.Designer.cs
index 5c52363..4c96bd5 100644
--- a/DevApp/Gs.DevApp/DevFrm/Sales/Frm_SalesReturnNoticeSelectLink.Designer.cs
+++ b/DevApp/Gs.DevApp/DevFrm/Sales/Frm_SalesReturnNoticeSelectLink.Designer.cs
@@ -28,11 +28,11 @@
         /// </summary>
         private void InitializeComponent()
         {
-            DevExpress.XtraEditors.Controls.EditorButtonImageOptions editorButtonImageOptions2 = new DevExpress.XtraEditors.Controls.EditorButtonImageOptions();
-            DevExpress.Utils.SerializableAppearanceObject serializableAppearanceObject5 = new DevExpress.Utils.SerializableAppearanceObject();
-            DevExpress.Utils.SerializableAppearanceObject serializableAppearanceObject6 = new DevExpress.Utils.SerializableAppearanceObject();
-            DevExpress.Utils.SerializableAppearanceObject serializableAppearanceObject7 = new DevExpress.Utils.SerializableAppearanceObject();
-            DevExpress.Utils.SerializableAppearanceObject serializableAppearanceObject8 = new DevExpress.Utils.SerializableAppearanceObject();
+            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();
             this.panelControl2 = new DevExpress.XtraEditors.PanelControl();
             this.gcMain = new DevExpress.XtraGrid.GridControl();
             this.gridView1 = new DevExpress.XtraGrid.Views.Grid.GridView();
@@ -123,7 +123,7 @@
             // gridColumn1
             // 
             this.gridColumn1.Caption = "浣跨敤缁勭粐";
-            this.gridColumn1.FieldName = "fSubsidiary2";
+            this.gridColumn1.FieldName = "fSubsidiary";
             this.gridColumn1.MinWidth = 50;
             this.gridColumn1.Name = "gridColumn1";
             this.gridColumn1.OptionsColumn.AllowEdit = false;
@@ -154,6 +154,10 @@
             // 
             // gridColumn3
             // 
+            this.gridColumn3.AppearanceCell.ForeColor = System.Drawing.Color.Red;
+            this.gridColumn3.AppearanceCell.Options.UseForeColor = true;
+            this.gridColumn3.AppearanceHeader.ForeColor = System.Drawing.Color.Red;
+            this.gridColumn3.AppearanceHeader.Options.UseForeColor = true;
             this.gridColumn3.Caption = "搴撳瓨";
             this.gridColumn3.FieldName = "kcQty";
             this.gridColumn3.MinWidth = 25;
@@ -176,10 +180,10 @@
             // repositoryItemButtonEdit1
             // 
             this.repositoryItemButtonEdit1.AutoHeight = false;
-            editorButtonImageOptions2.Image = global::Gs.DevApp.Properties.Resources.checkbox2_16x16;
-            editorButtonImageOptions2.ImageToTextAlignment = DevExpress.XtraEditors.ImageAlignToText.LeftCenter;
+            editorButtonImageOptions1.Image = global::Gs.DevApp.Properties.Resources.checkbox2_16x16;
+            editorButtonImageOptions1.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, editorButtonImageOptions2, new DevExpress.Utils.KeyShortcut(System.Windows.Forms.Keys.None), serializableAppearanceObject5, serializableAppearanceObject6, serializableAppearanceObject7, serializableAppearanceObject8, "", null, null, DevExpress.Utils.ToolTipAnchor.Default)});
+            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)});
             this.repositoryItemButtonEdit1.Name = "repositoryItemButtonEdit1";
             this.repositoryItemButtonEdit1.TextEditStyle = DevExpress.XtraEditors.Controls.TextEditStyles.HideTextEditor;
             this.repositoryItemButtonEdit1.ButtonClick += new DevExpress.XtraEditors.Controls.ButtonPressedEventHandler(this.repositoryItemButtonEdit1_ButtonClick);
diff --git a/DevApp/Gs.DevApp/Gs.DevApp.csproj b/DevApp/Gs.DevApp/Gs.DevApp.csproj
index 2b3abe6..9747e6e 100644
--- a/DevApp/Gs.DevApp/Gs.DevApp.csproj
+++ b/DevApp/Gs.DevApp/Gs.DevApp.csproj
@@ -806,6 +806,12 @@
     <Compile Include="DevFrm\Rpt\QLCX.Designer.cs">
       <DependentUpon>QLCX.cs</DependentUpon>
     </Compile>
+    <Compile Include="DevFrm\Rpt\UcRptCgdhd.cs">
+      <SubType>UserControl</SubType>
+    </Compile>
+    <Compile Include="DevFrm\Rpt\UcRptCgdhd.Designer.cs">
+      <DependentUpon>UcRptCgdhd.cs</DependentUpon>
+    </Compile>
     <Compile Include="DevFrm\Rpt\WomShjh.cs">
       <SubType>Form</SubType>
     </Compile>
@@ -1882,6 +1888,9 @@
     <EmbeddedResource Include="DevFrm\Rpt\QLCX.resx">
       <DependentUpon>QLCX.cs</DependentUpon>
     </EmbeddedResource>
+    <EmbeddedResource Include="DevFrm\Rpt\UcRptCgdhd.resx">
+      <DependentUpon>UcRptCgdhd.cs</DependentUpon>
+    </EmbeddedResource>
     <EmbeddedResource Include="DevFrm\Rpt\WomShjh.resx">
       <DependentUpon>WomShjh.cs</DependentUpon>
     </EmbeddedResource>

--
Gitblit v1.9.3