| | |
| | | using System; |
| | | using System.Collections.Generic; |
| | | using System.Data; |
| | | using System.Drawing; |
| | | using System.Threading.Tasks; |
| | | using System.Windows.Forms; |
| | | |
| | |
| | | this.toolBarMenu1.btnQueryClick += ToolBarMenu1_btnQueryClick; |
| | | toolBarMenu1.btnChkClick += ToolBarMenu1_btnChkClick; |
| | | toolBarMenu1.btnFChkClick += ToolBarMenu1_btnFChkClick; |
| | | List<DevExpress.XtraGrid.Views.Grid.GridView> gvList = new List<DevExpress.XtraGrid.Views.Grid.GridView>(); |
| | | gvList.Add(gridView1); |
| | | Gs.DevApp.ToolBox.UtilityHelper.getGridViewConfig(this.GetType().FullName, gvList); |
| | | Gs.DevApp.ToolBox.UtilityHelper.SetGridViewParameter(gridView1, picCheckBox, this, "status", "", (value) => |
| | | { |
| | | Gs.DevApp.ToolBox.UtilityHelper.JumpTab(xtraTabControl1, 0); |
| | |
| | | }); |
| | | getPageList(1); |
| | | pageBar1.PagerEvent += PageBar1_PagerEvent; |
| | | this.txt_OrgName.EditChanged += (s, e) => { |
| | | string _orgId = txt_OrgName.GetId(); |
| | | this.txt_fSubsidiary.EditChanged += (s, e) => |
| | | { |
| | | string _orgId = txt_fSubsidiary.GetId(); |
| | | if (string.IsNullOrEmpty(_orgId)) |
| | | return; |
| | | txt_suppId.getSuppler(_orgId); |
| | |
| | | }; |
| | | txt_itemId.EditChanged += (s, e) => |
| | | { |
| | | txt_itemNo.Text = this.txt_itemId.GetCode(); |
| | | if (!string.IsNullOrEmpty(this.txt_itemId.GetCode())) |
| | | txt_itemNo.Text = this.txt_itemId.GetCode(); |
| | | }; |
| | | txt_suppId.EditChanged += (s, e) => |
| | | { |
| | | txtGysNo.Text = this.txt_suppId.GetCode(); |
| | | if (!string.IsNullOrEmpty(this.txt_suppId.GetCode())) |
| | | txt_suppNo.Text = this.txt_suppId.GetCode(); |
| | | }; |
| | | } |
| | | private void GridView1_ColumnFilterChanged(object sender, EventArgs e) |
| | |
| | | getPageList(1); |
| | | } |
| | | |
| | | |
| | | |
| | | /// <summary> |
| | | /// 分页事件 |
| | | /// </summary> |
| | |
| | | toolBarMenu1.isSetBtn = false; |
| | | string _ItemId = txt_itemId.GetId(); |
| | | string _suppNo = txt_suppId.GetId(); |
| | | string _orgId = txt_OrgName.GetId(); |
| | | string _orgId = txt_fSubsidiary.GetId(); |
| | | //if (string.IsNullOrEmpty(_orgId)) |
| | | //{ |
| | | // Gs.DevApp.ToolBox.MsgHelper.Warning("请选择组织!"); |
| | |
| | | dynamic dy = _rtn.rtnData; |
| | | lbGuid.Text = strGuid; |
| | | UtilityHelper.SetValueByObj(this.panel1.Controls, dy, isEdit); |
| | | |
| | | } |
| | | else |
| | | ToolBox.MsgHelper.Warning("提示:" + _rtn.rtnMsg); |
| | |
| | | } |
| | | } |
| | | |
| | | |
| | | |
| | | } |
| | | } |