| | |
| | | if (string.IsNullOrEmpty(_orgId)) |
| | | return; |
| | | txt_suppId.getSuppler(_orgId, _ucGys); |
| | | txt_depotsId.getSuppler(_orgId, _ucCk); |
| | | }; |
| | | //设置仓库选择 |
| | | this.txt_depotsId.EditChanged += (s, e) => |
| | | { |
| | | txtDepotsCode.Text = this.txt_depotsId.GetCode(); |
| | | }; |
| | | //设置供应商选择 |
| | | this.txt_suppId.EditChanged += (s, e) => |
| | |
| | | { |
| | | toolBarMenu1.isSetBtn = false; |
| | | string _orgId = txt_receiveOrgId.GetId(); |
| | | string _ckId = txt_depotsId.GetId(); //仓库编号 depots_code |
| | | string _gysId = txt_suppId.GetId(); //供应商编号 |
| | | if (string.IsNullOrEmpty(_orgId)) |
| | | { |
| | |
| | | txt_suppId.Focus(); |
| | | return; |
| | | } |
| | | if (string.IsNullOrEmpty(_ckId)) |
| | | { |
| | | MsgHelper.Warning("请选择仓库!"); |
| | | txt_depotsId.Focus(); |
| | | return; |
| | | } |
| | | var _obj = new |
| | | { |
| | | Guid = Gs.DevApp.ToolBox.UtilityHelper.ToGuid(lbGuid.Text.Trim()), //到货单主键 |
| | | PaperBillNo = txt_paperBillNo.Text.Trim(), //送货单号; |
| | | Remark = txt_remark.Text.Trim(), //备注 |
| | | SuppId = _gysId, //供应商 |
| | | DepotsId = _ckId,//仓库 |
| | | OrgId = _orgId, |
| | | list = new List<dynamic>(), |
| | | }; |