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/Sales/Frm_SalesReturnNotice.cs |   11 +++++++++++
 1 files changed, 11 insertions(+), 0 deletions(-)

diff --git a/DevApp/Gs.DevApp/DevFrm/Sales/Frm_SalesReturnNotice.cs b/DevApp/Gs.DevApp/DevFrm/Sales/Frm_SalesReturnNotice.cs
index 88cf1c5..cd949a4 100644
--- a/DevApp/Gs.DevApp/DevFrm/Sales/Frm_SalesReturnNotice.cs
+++ b/DevApp/Gs.DevApp/DevFrm/Sales/Frm_SalesReturnNotice.cs
@@ -457,6 +457,7 @@
             txt_inventoryOrg.IsReadly = true;
             txt_fHasLinkRad.ReadOnly = true;
             txt_fHasLinkSource.ReadOnly = true;
+            txt_returnCustomer.IsReadly = true;
         }
         /// <summary>
         /// 鏂板浜嬩欢
@@ -495,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("璇烽�夋嫨鍗曟嵁绫诲瀷锛�");
@@ -540,6 +542,12 @@
                     txt_salesDept.Focus();
                     return;
                 }
+                if (txt_xsms.SelectedIndex <= 0)
+                {
+                    Gs.DevApp.ToolBox.MsgHelper.ShowError("璇烽�夋嫨閿�鍞ā寮忥紒");
+                    txt_xsms.Focus();
+                    return;
+                }
             }
             var _obj = new
             {
@@ -554,6 +562,7 @@
                 inventoryOrg = _inventoryOrg,
                 returnCustomer = _returnCustomer,
                 salesDept = _salesDept,
+                xsms = _xsms,
                 list = new List<dynamic>(),
             };
             gvMx1.CloseEditor();
@@ -930,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;
             }
         }
     }

--
Gitblit v1.9.3