| | |
| | | txt_inventoryOrg.IsReadly = true; |
| | | txt_fHasLinkRad.ReadOnly = true; |
| | | txt_fHasLinkSource.ReadOnly = true; |
| | | txt_returnCustomer.IsReadly = true; |
| | | } |
| | | /// <summary> |
| | | /// 新增事件 |
| | |
| | | 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("请选择单据类型!"); |
| | |
| | | txt_salesDept.Focus(); |
| | | return; |
| | | } |
| | | if (txt_xsms.SelectedIndex <= 0) |
| | | { |
| | | Gs.DevApp.ToolBox.MsgHelper.ShowError("请选择销售模式!"); |
| | | txt_xsms.Focus(); |
| | | return; |
| | | } |
| | | } |
| | | var _obj = new |
| | | { |
| | |
| | | inventoryOrg = _inventoryOrg, |
| | | returnCustomer = _returnCustomer, |
| | | salesDept = _salesDept, |
| | | xsms = _xsms, |
| | | list = new List<dynamic>(), |
| | | }; |
| | | gvMx1.CloseEditor(); |
| | |
| | | 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; |
| | | } |
| | | } |
| | | } |