| | |
| | | { |
| | | string _webServiceName = "MesBackFlash/"; |
| | | List<FilterEntity> _filterList = new List<FilterEntity>(); |
| | | string _ucBm = "";//领料部门 |
| | | string _ucCk = "";//发料仓库 |
| | | string _ucWl = "";//料 |
| | | public FrmBackFlash() |
| | | { |
| | | InitializeComponent(); |
| | |
| | | }, lbGuid); |
| | | getPageList(1); |
| | | pageBar1.PagerEvent += PageBar1_PagerEvent; |
| | | txt_depotId.getSuppler(""); |
| | | txt_departmentId.getSuppler(""); |
| | | txt_ItemId.getSuppler(""); |
| | | //选择库存组织(变明细中的物料和变货主) |
| | | this.txt_orgId.EditChanged += (s, e) => |
| | | { |
| | | string _orgId = txt_orgId.GetId(); |
| | | if (string.IsNullOrEmpty(_orgId)) |
| | | return; |
| | | txt_depotId.getSuppler(_orgId, _ucCk); |
| | | txt_departmentId.getSuppler(_orgId, _ucBm); |
| | | txt_ItemId.getSuppler(_orgId, _ucWl); |
| | | }; |
| | | this.txt_ItemId.EditChanged += (s, e) => |
| | | { |
| | | txt_itemNo.Text = txt_ItemId.GetCode(); |
| | | txt_itemModel.Text = txt_ItemId.GetModel(); |
| | | }; |
| | | } |
| | | private async void GridView1_ColumnFilterChanged(object sender, EventArgs e) |
| | | { |
| | |
| | | if (_rtn.rtnCode > 0) |
| | | { |
| | | dynamic dy = _rtn.rtnData; |
| | | _ucBm = dy.departmentId; |
| | | _ucCk = dy.depotId; |
| | | _ucWl = dy.ItemId; |
| | | lbGuid.Text = strGuid; |
| | | UtilityHelper.SetValueByObj(this.layoutMx1.Controls, dy, isEdit); |
| | | _ucBm = ""; |
| | | _ucCk = ""; |
| | | _ucWl = ""; |
| | | } |
| | | else |
| | | ToolBox.MsgHelper.Warning("提示:" + _rtn.rtnMsg); |