| | |
| | | return; |
| | | } |
| | | Gs.DevApp.ToolBox.UtilityHelper.JumpTab(xtraTabControl1, 3); |
| | | List<DevExpress.XtraGrid.Views.Grid.GridView> gvList = new List<DevExpress.XtraGrid.Views.Grid.GridView>(); |
| | | gvList.Add(gvMx1); |
| | | UtilityHelper.ChangeEnableByControl(panel1.Controls, true, gvList); |
| | | if (xtraTabControl1.SelectedTabPageIndex == 1) |
| | | { |
| | | getModel(rowGuid); |
| | | } |
| | | else |
| | | { |
| | | List<DevExpress.XtraGrid.Views.Grid.GridView> gvList = new List<DevExpress.XtraGrid.Views.Grid.GridView>(); |
| | | gvList.Add(gvMx1); |
| | | UtilityHelper.ChangeEnableByControl(panel1.Controls, true, gvList); |
| | | } |
| | | } |
| | | /// <summary> |
| | | /// 新增事件 |
| | |
| | | { |
| | | SearchLookUpEdit LookupEdit = sender as SearchLookUpEdit; |
| | | DataRowView SelectedDataRow = (DataRowView)LookupEdit.GetSelectedDataRow(); |
| | | gvMx1.SetFocusedRowCellValue("itemNo", SelectedDataRow["itemNo"]); |
| | | gvMx1.SetFocusedRowCellValue("itemName", SelectedDataRow["itemName"]); |
| | | gvMx1.SetFocusedRowCellValue("itemModel", SelectedDataRow["itemModel"]); |
| | | gvMx1.SetFocusedRowCellValue("dwName", SelectedDataRow["dwName"]); |
| | | gvMx1.SetFocusedRowCellValue("itemNo", SelectedDataRow["itemNo"].ToString()); |
| | | gvMx1.SetFocusedRowCellValue("itemName", SelectedDataRow["itemName"].ToString()); |
| | | gvMx1.SetFocusedRowCellValue("itemMpdel", SelectedDataRow["itemModel"].ToString()); |
| | | gvMx1.SetFocusedRowCellValue("itemUnit", SelectedDataRow["dwName"].ToString()); |
| | | } |
| | | |
| | | private void repositoryItemButtonEdit1_ButtonClick(object sender, DevExpress.XtraEditors.Controls.ButtonPressedEventArgs e) |