lu
5 天以前 530065f7c1bd97fd372b745cc9175ca7d936b9a6
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;
            }
        }
    }