| | |
| | | this.toolBarMenu1.btnQueryClick += ToolBarMenu1_btnQueryClick; |
| | | toolBarMenu1.btnChkClick += ToolBarMenu1_btnChkClick; |
| | | toolBarMenu1.btnFChkClick += ToolBarMenu1_btnFChkClick; |
| | | //toolBarMenu1.btnReportClick += ToolBarMenu1_btnReportClick; |
| | | //toolBarMenu1.btnDesignClick += ToolBarMenu1_btnDesignClick; |
| | | Gs.DevApp.ToolBox.UtilityHelper.SetGridViewParameterMx(gvMx1); |
| | | Gs.DevApp.ToolBox.UtilityHelper.SetGridViewParameter(gridView1, picCheckBox, this, "tbl013", "", (value) => |
| | | { |
| | |
| | | }); |
| | | getPageList(1); |
| | | pageBar1.PagerEvent += PageBar1_PagerEvent; |
| | | //设置组织 |
| | | txt_tbl023.EditChanged += (s, e) => |
| | | { |
| | | string orgdId = txt_tbl023.GetId(); |
| | | if (string.IsNullOrEmpty(orgdId)) return; |
| | | txt_tbl002.getSuppler(orgdId); |
| | | }; |
| | | //设置工单子 |
| | | txt_tbl002.EditChanged += (s, e) => |
| | | { |
| | | string daaId = txt_tbl002.GetId(); |
| | | 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(); |
| | | }; |
| | | //选择需要入库的明细 |
| | | btnSelect.Click += (s, e) => |
| | | { |
| | |
| | | + "}"; |
| | | }; |
| | | } |
| | | |
| | | |
| | | private async void GridView1_ColumnFilterChanged(object sender, EventArgs e) |
| | | { |
| | | _filterList = Gs.DevApp.ToolBox.UtilityHelper.GetDilter(gridView1.Columns); |
| | | await Task.Delay(100); |
| | | getPageList(1); |
| | | } |
| | | |
| | | |
| | | /// <summary> |
| | | /// 分页事件 |
| | | /// </summary> |
| | |
| | | { |
| | | toolBarMenu1.isSetBtn = false; |
| | | string workId = txt_tbl002.GetId(); |
| | | string orgId = txt_tbl023.GetId(); |
| | | if (string.IsNullOrEmpty(orgId.Trim())) |
| | | { |
| | | Gs.DevApp.ToolBox.MsgHelper.Warning("请选择组织!"); |
| | | txt_tbl023.Focus(); |
| | | return; |
| | | } |
| | | if (string.IsNullOrEmpty(workId.Trim())) |
| | | { |
| | | Gs.DevApp.ToolBox.MsgHelper.Warning("请选择工单!"); |
| | |
| | | guid = UtilityHelper.ToGuid(lbGuid.Text.Trim()), //主建 |
| | | bz = txt_tbl006.Text.Trim(),//备注 |
| | | yy = txt_tbl005.Text.Trim(),//原因 |
| | | inDaaGuid = workId,//工单 |
| | | inOrgId = orgId,//组织 |
| | | list = new List<dynamic>(), |
| | | }; |
| | | gvMx1.CloseEditor(); |
| | |
| | | { |
| | | gcMain.DataSource = dt; |
| | | gcMain.ForceInitialize(); |
| | | gridView1.BestFitColumns(); |
| | | } |
| | | else |
| | | UtilityHelper.SetDefaultTable(gcMain, gridView1); |
| | |
| | | gcMx1.BindingContext = new BindingContext(); |
| | | gcMx1.DataSource = dt; |
| | | gcMx1.ForceInitialize(); |
| | | gvMx1.BestFitColumns(); |
| | | } |
| | | else |
| | | { |
| | |
| | | gcMx2.BindingContext = new BindingContext(); |
| | | gcMx2.DataSource = dt2; |
| | | gcMx2.ForceInitialize(); |
| | | gvMx2.BestFitColumns(); |
| | | } |
| | | else |
| | | { |
| | |
| | | txtWlgg.Text = row["tld004"].ToString(); |
| | | txtWlmc.Text = row["tld003"].ToString(); |
| | | txtQuantity.Text = row["tld004"].ToString();//申请总量 |
| | | //txtYdy.Text = row["YDYNUM"].ToString();//已打印总量 |
| | | //kyPrtQty.Text = row["KDYNUM"].ToString();//可打印总量 |
| | | //txtYdy.Text = row["YDYNUM"].ToString();//已打印总量 |
| | | //kyPrtQty.Text = row["KDYNUM"].ToString();//可打印总量 |
| | | txtYdy.Text = "";//已打印总量 |
| | | kyPrtQty.Text = "";//可打印总量 |
| | | } |
| | | } |
| | | |
| | | |
| | | } |
| | | } |