| | |
| | | Gs.DevApp.ToolBox.UtilityHelper.SetGridLayout(gridView2); |
| | | // 保存原始值 |
| | | SaveOriginalValues(); |
| | | SetGridView2EditState(false); |
| | | } |
| | | else |
| | | { |
| | | Gs.DevApp.ToolBox.UtilityHelper.SetDefaultTable(gridControl2, gridView2); |
| | | _originalValues.Clear(); |
| | | SetGridView2EditState(false); |
| | | } |
| | | |
| | | JArray array2 = new JArray(); |
| | |
| | | /// <param name="e"></param> |
| | | private void ToolBarMenu1_btnEscClick(object sender, EventArgs e) |
| | | { |
| | | // Gs.DevApp.ToolBox.UtilityHelper.JumpTab(xtraTabControl1, 1); |
| | | // Gs.DevApp.ToolBox.UtilityHelper.JumpTab(xtraTabControl1, 1); |
| | | SetGridView2EditState(false); |
| | | } |
| | | |
| | | /// <summary> |
| | |
| | | { |
| | | // 其它需要的UI状态切换 |
| | | //Gs.DevApp.ToolBox.UtilityHelper.JumpTab(xtraTabControl1, 3); |
| | | SetGridView2EditState(true); |
| | | |
| | | } |
| | | |
| | | private void SetGridView2EditState(bool editable) |
| | | { |
| | | // 在岗 |
| | | var colHour = gridView2.Columns["hour"]; |
| | | if (colHour != null) |
| | | colHour.OptionsColumn.AllowEdit = editable; |
| | | // 修改原因 |
| | | var colReason = gridView2.Columns["reason"]; |
| | | if (colReason != null) |
| | | colReason.OptionsColumn.AllowEdit = editable; |
| | | } |
| | | |
| | | /// <summary> |
| | |
| | | ToolBox.MsgHelper.ShowInformation("保存成功!"); |
| | | getPageList(); |
| | | toolBarMenu1.isSetBtn = true; |
| | | SetGridView2EditState(false); |
| | | } |
| | | else |
| | | { |