| | |
| | | { |
| | | string _webServiceName = "MesItemTblManager/"; |
| | | List<FilterEntity> _filterList = new List<FilterEntity>(); |
| | | string _ucGg = ""; |
| | | public Frm_MesItemTbl() |
| | | { |
| | | InitializeComponent(); |
| | |
| | | { |
| | | string orgdId = txt_tbl023.GetId(); |
| | | if (string.IsNullOrEmpty(orgdId)) return; |
| | | txt_tbl002.getSuppler(orgdId); |
| | | txt_tbl002.getSuppler(orgdId, _ucGg); |
| | | }; |
| | | //设置工单子 |
| | | txt_tbl002.EditChanged += (s, e) => |
| | |
| | | if (string.IsNullOrEmpty(daaId)) return; |
| | | txt_rwd.Text = txt_tbl002.GetRwd(); |
| | | txt_workName.Text = txt_tbl002.GetWorkName(); |
| | | txt_lineName.Text = txt_tbl002.GetPrdName(); |
| | | txt_itemName.Text = txt_tbl002.GetPrdModel(); |
| | | }; |
| | | //选择需要入库的明细 |
| | |
| | | if (dd.rtnCode > 0) |
| | | { |
| | | DataTable dt = dd.rtnData.list; |
| | | gcMain.BindingContext = new BindingContext(); |
| | | gcMain1.BindingContext = new BindingContext(); |
| | | gridView1.ColumnFilterChanged -= GridView1_ColumnFilterChanged; |
| | | if (dt.Rows.Count > 0) |
| | | { |
| | | gcMain.DataSource = dt; |
| | | gcMain.ForceInitialize(); |
| | | gcMain1.DataSource = dt; |
| | | gcMain1.ForceInitialize(); |
| | | gridView1.BestFitColumns(); |
| | | } |
| | | else |
| | | UtilityHelper.SetDefaultTable(gcMain, gridView1); |
| | | UtilityHelper.SetDefaultTable(gcMain1, gridView1); |
| | | gridView1.ColumnFilterChanged += GridView1_ColumnFilterChanged; |
| | | pageBar1.TotalPages = dd.rtnData.pages;//总页 |
| | | pageBar1.CurrentPage = curPage;//当前页 |
| | |
| | | if (_rtn.rtnCode > 0) |
| | | { |
| | | dynamic dy = _rtn.rtnData; |
| | | _ucGg= dy.tbl002; |
| | | lbGuid.Text = strGuid; |
| | | List<DevExpress.XtraGrid.Views.Grid.GridView> gvList = new List<DevExpress.XtraGrid.Views.Grid.GridView>(); |
| | | gvList.Add(gvMx1); |
| | | gvList.Add(gvMx2); |
| | | UtilityHelper.SetValueByObj(this.layoutMx1.Controls, dy, isEdit, gvList); |
| | | _ucGg = ""; |
| | | JObject _job = JObject.Parse(strJson); |
| | | JArray array = new JArray(); |
| | | foreach (var a in _job["rtnData"]["list"]) |