| | |
| | | _strOrgGuid = strOrgGuid; |
| | | _strHzType = strHzType; |
| | | InitializeComponent(); |
| | | 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); |
| | | switch (_strHzType) |
| | | { |
| | | case "1": |
| | |
| | | { |
| | | gcMain.DataSource = dt; |
| | | gcMain.ForceInitialize(); |
| | | gridView1.BestFitColumns(); |
| | | gridView1.BestFitColumns(); Gs.DevApp.ToolBox.UtilityHelper.SetGridLayout(gridView1); |
| | | } |
| | | else |
| | | UtilityHelper.SetDefaultTable(gcMain, gridView1); |
| | |
| | | if (e.Button.Index == 0) |
| | | { |
| | | var dr = gridView1.GetDataRow(rowhandle); |
| | | var mxGuid = dr["guid"].ToString(); |
| | | string mxGuid = dr["guid"].ToString(); |
| | | string mxFid = ""; |
| | | if (string.IsNullOrEmpty(mxGuid)) |
| | | { |
| | | return; |
| | |
| | | { |
| | | case "1": |
| | | mxName = dr["name"].ToString(); |
| | | mxFid = dr["fid"].ToString(); |
| | | break; |
| | | case "2": |
| | | mxName = dr["suppName"].ToString(); |
| | | mxFid = dr["id"].ToString(); |
| | | break; |
| | | case "3": |
| | | mxName = dr["custName"].ToString(); |
| | | mxFid = dr["id"].ToString(); |
| | | break; |
| | | } |
| | | var list = new List<dynamic>(); |
| | | list.Add(new |
| | | { |
| | | guid = mxGuid, |
| | | guid = mxFid, |
| | | name = mxName, |
| | | }); |
| | | UpdateParent?.Invoke(this, new UpdateParentEventArgs { DynamicList = list }); |
| | |
| | | { |
| | | gcMain.DataSource = dt; |
| | | gcMain.ForceInitialize(); |
| | | gridView1.BestFitColumns(); |
| | | gridView1.BestFitColumns(); Gs.DevApp.ToolBox.UtilityHelper.SetGridLayout(gridView1); |
| | | } |
| | | else |
| | | UtilityHelper.SetDefaultTable(gcMain, gridView1); |
| | |
| | | { |
| | | gcMain.DataSource = dt; |
| | | gcMain.ForceInitialize(); |
| | | gridView1.BestFitColumns(); |
| | | gridView1.BestFitColumns(); Gs.DevApp.ToolBox.UtilityHelper.SetGridLayout(gridView1); |
| | | } |
| | | else |
| | | UtilityHelper.SetDefaultTable(gcMain, gridView1); |