| | |
| | | return; |
| | | txt_suppId.getSuppler(orgId, _ucGys); |
| | | txt_fPurchaseDeptId.getSuppler(orgId, _ucBm); |
| | | // txt_fPurchaserId.getSuppler(); |
| | | }; |
| | | //选择需要的明细 |
| | | btnSelect.Click += (s, e) => |
| | |
| | | txt_fHasLinkRad.SelectedIndex = 0; |
| | | layItem1.Visibility = DevExpress.XtraLayout.Utils.LayoutVisibility.Never; |
| | | layItem2.Visibility = DevExpress.XtraLayout.Utils.LayoutVisibility.Never; |
| | | layItem3.Visibility = DevExpress.XtraLayout.Utils.LayoutVisibility.Never; |
| | | //layItem3.Visibility = DevExpress.XtraLayout.Utils.LayoutVisibility.Never; |
| | | layItem4.Visibility = DevExpress.XtraLayout.Utils.LayoutVisibility.Never; |
| | | txt_fHasLinkRad.SelectedIndexChanged += (s, e) => |
| | | { |
| | |
| | | txt_fRequireOrgId.IsReadly = true; |
| | | txt_fOwnerIdHead.IsReadly = true; |
| | | txt_fPurchaseDeptId.IsReadly = true; |
| | | txt_fPurchaserId.IsReadly = true; |
| | | // txt_fPurchaserId.IsReadly = true; |
| | | } |
| | | /// <summary> |
| | | /// 新增事件 |
| | |
| | | string _xqzz = txt_fRequireOrgId.GetId();//需求组织 |
| | | string _hz = txt_fOwnerIdHead.GetId();//货主 |
| | | string _bm = txt_fPurchaseDeptId.GetId();//部门 |
| | | string _ygbh = txt_fPurchaserId.GetId();//员工 |
| | | //string _ygbh = txt_fPurchaserId.GetId();//员工 |
| | | string _ygbh = ""; |
| | | if (string.IsNullOrEmpty(_orgId)) |
| | | { |
| | | MsgHelper.ShowError("请选择组织!"); |
| | |
| | | txt_fPurchaseDeptId.Focus(); |
| | | return; |
| | | } |
| | | if (string.IsNullOrEmpty(_ygbh)) |
| | | { |
| | | MsgHelper.ShowError("请选择员工!"); |
| | | txt_fPurchaserId.Focus(); |
| | | return; |
| | | } |
| | | //if (string.IsNullOrEmpty(_ygbh)) |
| | | //{ |
| | | // MsgHelper.ShowError("请选择员工!"); |
| | | // txt_fPurchaserId.Focus(); |
| | | // return; |
| | | //} |
| | | } |
| | | var _obj = new |
| | | { |
| | |
| | | { |
| | | layItem1.Visibility = DevExpress.XtraLayout.Utils.LayoutVisibility.Never; |
| | | layItem2.Visibility = DevExpress.XtraLayout.Utils.LayoutVisibility.Never; |
| | | layItem3.Visibility = DevExpress.XtraLayout.Utils.LayoutVisibility.Never; |
| | | // layItem3.Visibility = DevExpress.XtraLayout.Utils.LayoutVisibility.Never; |
| | | layItem4.Visibility = DevExpress.XtraLayout.Utils.LayoutVisibility.Never; |
| | | } |
| | | else |
| | | { |
| | | layItem1.Visibility = DevExpress.XtraLayout.Utils.LayoutVisibility.Always; |
| | | layItem2.Visibility = DevExpress.XtraLayout.Utils.LayoutVisibility.Always; |
| | | layItem3.Visibility = DevExpress.XtraLayout.Utils.LayoutVisibility.Always; |
| | | //layItem3.Visibility = DevExpress.XtraLayout.Utils.LayoutVisibility.Always; |
| | | layItem4.Visibility = DevExpress.XtraLayout.Utils.LayoutVisibility.Always; |
| | | } |
| | | } |