| | |
| | | toolBarMenu1.btnChkClick += ToolBarMenu1_btnChkClick; |
| | | toolBarMenu1.btnFChkClick += ToolBarMenu1_btnFChkClick; |
| | | gcMain.MouseDoubleClick += GcMain_MouseDoubleClick; |
| | | gridView1.FocusedRowChanged += (s, e) => |
| | | { |
| | | UtilityHelper.SetCheckIco(s, picCheckBox, this, "status", ""); |
| | | }; |
| | | getPageList(1); |
| | | Gs.DevApp.ToolBox.UtilityHelper.SetGridSear(gridView1); |
| | | Gs.DevApp.ToolBox.UtilityHelper.SetGridSear(gridView1, picCheckBox, this, "status", ""); |
| | | pageBar1.PagerEvent += PageBar1_PagerEvent; |
| | | gridView1.CustomDrawRowIndicator += (s, e) => |
| | | txt_itemId.EditChanged += (s, e) => |
| | | { |
| | | if (e.Info.IsRowIndicator && e.RowHandle >= 0) |
| | | { |
| | | e.Info.DisplayText = (e.RowHandle + 1).ToString(); |
| | | } |
| | | txt_itemNo.Text = this.txt_itemId.GetCode(); |
| | | }; |
| | | gridView1.CustomDrawEmptyForeground += (s, e) => |
| | | txt_suppId.getSuppler(""); |
| | | txt_suppId.EditChanged += (s, e) => |
| | | { |
| | | string str = "暂未查找到匹配的数据!"; |
| | | Font f = new Font("微软雅黑", 16); |
| | | Rectangle r = new Rectangle(gridView1.GridControl.Width / 2 - 100, e.Bounds.Top + 45, e.Bounds.Right - 5, e.Bounds.Height - 5); |
| | | e.Graphics.DrawString(str, f, Brushes.Gray, r); |
| | | txtGysNo.Text = this.txt_suppId.GetCode(); |
| | | }; |
| | | _setIno(); |
| | | } |
| | | private void GridView1_ColumnFilterChanged(object sender, EventArgs e) |
| | | { |
| | |
| | | Task.Delay(100); |
| | | getPageList(1); |
| | | } |
| | | private void _setIno() |
| | | { |
| | | txt_itemId.EditChanged += (s, e) => |
| | | { |
| | | txt_itemNo.Text = this.txt_itemId.GetCode(); |
| | | //var ItemId = this.txt_itemId.GetId(); |
| | | //var ItemName = this.txt_itemId.GetName(); |
| | | //GetCount(ItemId, ItemName); |
| | | }; |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 双击事件 |
| | | /// </summary> |
| | |
| | | UtilityHelper.JumpToTab(xtraTabControl1, 1); |
| | | lbGuid.Text = ""; |
| | | UtilityHelper.CleanValueByControl(this.panel1.Controls, true); |
| | | txt_createBy.Enabled = false; |
| | | txt_createDate.Enabled = false; |
| | | txt_lastupdateBy.Enabled = false; |
| | | txt_lastupdateDate.Enabled = false; |
| | | txt_checkUser.Enabled = false; |
| | | txt_checkDate.Enabled = false; |
| | | txt_status.Enabled = false; |
| | | } |
| | | /// <summary> |
| | | /// 保存事件 |