private void BrowseFileButton_Click(object sender, EventArgs e) { OpenFileDialog SelectFile = new OpenFileDialog(); SelectFile.Multiselect = true; String Path = string.Empty; int i = NewFile_Spread_Sheet1.Rows.Count; if (SelectFile.ShowDialog() == DialogResult.OK) { NewFile_Spread_Sheet1.Rows.Add(NewFile_Spread_Sheet1.Rows.Count, SelectFile.FileNames.Length); foreach (String FileName in SelectFile.FileNames) { Path = System.IO.Path.GetDirectoryName(FileName); break; } foreach (String FileName in SelectFile.SafeFileNames) { NewFile_Spread_Sheet1.Cells[i, 0].Text = FileName; FarPoint.Win.Spread.CellType.ButtonCellType ButtonDCType = new ButtonCellType(); ButtonDCType.Text = "删除"; NewFile_Spread_Sheet1.Cells[i, 2].CellType = ButtonDCType; NewFile_Spread_Sheet1.Rows[i].Tag = Path; i++; } i = 0; } }
/// <summary> /// Loadイベント /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void Window_Loaded_1(object sender, RoutedEventArgs e) { this.sp確定データ一覧.RowCount = 0; //this.spConfig = AppCommon.SaveSpConfig(this.sp確定データ一覧); #region 設定項目取得 ucfg = AppCommon.GetConfig(this); frmcfg = (ConfigTKS90010)ucfg.GetConfigValue(typeof(ConfigTKS90010)); if (frmcfg == null) { frmcfg = new ConfigTKS90010(); ucfg.SetConfigValue(frmcfg); frmcfg.spConfig = this.spConfig; } else { //表示できるかチェック var WidthCHK = System.Windows.Forms.Screen.PrimaryScreen.Bounds.Width - frmcfg.Left; if (WidthCHK > 10) { this.Left = frmcfg.Left; } //表示できるかチェック var HeightCHK = System.Windows.Forms.Screen.PrimaryScreen.Bounds.Height - frmcfg.Top; if (HeightCHK > 10) { this.Top = frmcfg.Top; } this.Width = frmcfg.Width; this.Height = frmcfg.Height; } // 権限設定を呼び出す(ucfgを取得した後のに入れる) ccfg = (CommonConfig)ucfg.GetConfigValue(typeof(CommonConfig)); // 登録ボタン設定 if (!権限Get.Authority_Update_Button(ccfg, this.GetType().Name)) { DataUpdateVisible = System.Windows.Visibility.Hidden; } if (frmcfg.spConfig != null) { //AppCommon.LoadSpConfig(this.sp確定データ一覧, frmcfg.spConfig); } #endregion base.MasterMaintenanceWindowList.Add("M70_JIS", new List <Type> { typeof(MST16010), typeof(SCHM70_JIS) }); ButtonCellType btn = this.sp確定データ一覧.Columns[(int)GridColumnsMapping.確定ボタン].CellType as ButtonCellType; btn.Command = new cmd確定日登録(sp確定データ一覧); gridCtl = new GcSpreadGridController(sp確定データ一覧); this.MyCompany.Text1 = ccfg.自社コード.ToString(); this.MyCompany.Text1IsReadOnly = (ccfg.自社販社区分 != 0); ScreenClear(); }
/// <summary> /// Loadイベント /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void Window_Loaded_1(object sender, RoutedEventArgs e) { this.sp請求データ一覧.RowCount = 0; this.spConfig = AppCommon.SaveSpConfig(this.sp請求データ一覧); #region 設定項目取得 ucfg = AppCommon.GetConfig(this); frmcfg = (ConfigTKS05010)ucfg.GetConfigValue(typeof(ConfigTKS05010)); if (frmcfg == null) { frmcfg = new ConfigTKS05010(); ucfg.SetConfigValue(frmcfg); frmcfg.spConfig = this.spConfig; } else { //表示できるかチェック var WidthCHK = System.Windows.Forms.Screen.PrimaryScreen.Bounds.Width - frmcfg.Left; if (WidthCHK > 10) { this.Left = frmcfg.Left; } //表示できるかチェック var HeightCHK = System.Windows.Forms.Screen.PrimaryScreen.Bounds.Height - frmcfg.Top; if (HeightCHK > 10) { this.Top = frmcfg.Top; } this.Width = frmcfg.Width; this.Height = frmcfg.Height; } if (frmcfg.spConfig != null) { AppCommon.LoadSpConfig(this.sp請求データ一覧, frmcfg.spConfig); } #endregion base.MasterMaintenanceWindowList.Add("M01_TOK", new List <Type> { null, typeof(SCH01010) }); this.sp請求データ一覧.PreviewKeyDown += sp請求データ一覧_PreviewKeyDown; base.SendRequest(new CommunicationObject(MessageType.RequestData, GET_CNTL, 1, 0)); base.SendRequest(new CommunicationObject(MessageType.RequestData, GET_RPT)); ButtonCellType btn = this.sp請求データ一覧.Columns[3].CellType as ButtonCellType; btn.Command = new cmd期間クリア(sp請求データ一覧); ScreenClear(); }
/// <summary> /// Loadイベント /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void Window_Loaded_1(object sender, RoutedEventArgs e) { this.spConfig = AppCommon.SaveSpConfig(this.sp燃費目標データ); //詳細ボタンの設定 ButtonCellType btn = this.sp燃費目標データ.Columns[0].CellType as ButtonCellType; btn.Command = new cmd燃費詳細表示(sp燃費目標データ); base.MasterMaintenanceWindowList.Add("M71_BUM", new List <Type> { typeof(MST10010), typeof(SCH10010) }); base.SendRequest(new CommunicationObject(MessageType.RequestData, LOAD_SRY22010, new object[] { 自社部門ID })); SetFocusToTopControl(); }
/// <summary> /// 画面読み込み /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void MainWindow_Loaded_1(object sender, RoutedEventArgs e) { ScreenClear(); #region 設定項目取得 ucfg = AppCommon.GetConfig(this); ccfg = (CommonConfig)ucfg.GetConfigValue(typeof(CommonConfig)); #region "権限関係" // 登録ボタン設定 if (!権限Get.Authority_Update_Button(ccfg, this.GetType().Name)) { // RibbonWindowViewBaseのプロパティに設定 DataUpdateVisible = System.Windows.Visibility.Hidden; } #endregion 入力者ID = ccfg.ユーザID; frmcfg = (ConfigDLY08010)ucfg.GetConfigValue(typeof(ConfigDLY08010)); if (frmcfg == null) { frmcfg = new ConfigDLY08010(); ucfg.SetConfigValue(frmcfg); } else { //表示できるかチェック var WidthCHK = System.Windows.Forms.Screen.PrimaryScreen.Bounds.Width - frmcfg.Left; if (WidthCHK > 100) { this.Left = frmcfg.Left; } //表示できるかチェック var HeightCHK = System.Windows.Forms.Screen.PrimaryScreen.Bounds.Height - frmcfg.Top; if (HeightCHK > 100) { this.Top = frmcfg.Top; } this.Height = frmcfg.Height; this.Width = frmcfg.Width; } #endregion 番号通知区分 = frmcfg.番号通知区分; 最終伝票表示区分 = frmcfg.最終伝票表示区分; // 初期状態を保存(SPREADリセット時にのみ使用する) this.spConfig = AppCommon.SaveSpConfig(this.spNyukin); this.spConfig2 = AppCommon.SaveSpConfig(this.spOldNyukin); AppCommon.LoadSpConfig(this.spNyukin, this.spConfig); AppCommon.LoadSpConfig(this.spOldNyukin, this.spConfig2); base.MasterMaintenanceWindowList.Add("M01_TOK_TOKU_SCH", new List <Type> { null, typeof(SCH01010) }); AppCommon.SetutpComboboxListToCell(this.spNyukin, "入金区分", "日次", "入金伝票入力", "入金区分", false); spNyukin.InputBindings.Add(new KeyBinding(spNyukin.NavigationCommands.MoveNext, Key.Enter, ModifierKeys.None)); ButtonCellType btn1 = this.spNyukin.Columns[0].CellType as ButtonCellType; btn1.Command = new cmd売上削除(spNyukin); if (初期明細番号 != null) { DetailsNumber = 初期明細番号; this.MaintenanceMode = AppConst.MAINTENANCEMODE_EDIT; GetMeisaiData(); return; } ChangeKeyItemChangeable(true); if (最終伝票表示区分 == 1) { datagetmode = DataGetMode.last; base.SendRequest(new CommunicationObject(MessageType.RequestData, GetMeisaiNo, new object[] { 0, 3 })); } }
/// <summary> /// ロードイベント /// </summary> /// <param name="sender"></param> /// <param name="e"></param> void Window_Loaded(object sender, RoutedEventArgs e) { #region 設定項目取得 ucfg = AppCommon.GetConfig(this); ccfg = (CommonConfig)ucfg.GetConfigValue(typeof(CommonConfig)); #region "権限関係" // 登録ボタン設定 if (!権限Get.Authority_Update_Button(ccfg, this.GetType().Name)) { // RibbonWindowViewBaseのプロパティに設定 DataUpdateVisible = System.Windows.Visibility.Hidden; } frmcfg = (ConfigDLY02020)ucfg.GetConfigValue(typeof(ConfigDLY02020)); #endregion if (frmcfg == null) { frmcfg = new ConfigDLY02020(); ucfg.SetConfigValue(frmcfg); //画面サイズをタスクバーをのぞいた状態で表示させる //this.Height = System.Windows.Forms.Screen.PrimaryScreen.WorkingArea.Size.Height; } else { //表示できるかチェック var WidthCHK = System.Windows.Forms.Screen.PrimaryScreen.Bounds.Width - frmcfg.Left; if (WidthCHK > 10) { this.Left = frmcfg.Left; } //表示できるかチェック var HeightCHK = System.Windows.Forms.Screen.PrimaryScreen.Bounds.Height - frmcfg.Top; if (HeightCHK > 10) { this.Top = frmcfg.Top; } this.Width = frmcfg.Width; this.Height = frmcfg.Height; } #endregion gcSpreadGrid.InputBindings.Add(new KeyBinding(gcSpreadGrid.NavigationCommands.MoveNext, Key.Enter, ModifierKeys.None)); // グリッドボタンにコマンド配置 ButtonCellType btn = new ButtonCellType(); btn.Content = "在庫"; btn.Command = new cmd在庫(gcSpreadGrid); this.gcSpreadGrid.Columns[GridColumnsMapping.在庫.GetHashCode()].CellType = btn; // 検索画面情報を設定 base.MasterMaintenanceWindowList.Add("M09_HIN", new List <Type> { typeof(MST02010), typeof(SCHM09_HIN) }); ScreenClear(); ChangeKeyItemChangeable(true); }
/// <summary> /// 画面読み込み /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void MainWindow_Loaded_1(object sender, RoutedEventArgs e) { // 初期状態を保存(SPREADリセット時にのみ使用する) this.sp_Config = AppCommon.SaveSpConfig(this.sp売上明細データ); //F1(検索)機能 base.MasterMaintenanceWindowList.Add("M01_TOK", new List <Type> { null, typeof(SCH01010) }); base.MasterMaintenanceWindowList.Add("M72_TNT", new List <Type> { null, typeof(SCH23010) }); AppCommon.SetutpComboboxList(this.Cmb_検索日付, false); AppCommon.SetutpComboboxList(this.c入金区分, false); #region 設定項目取得 ucfg = AppCommon.GetConfig(this); frmcfg = (ConfigDLY16010)ucfg.GetConfigValue(typeof(ConfigDLY16010)); if (frmcfg == null) { frmcfg = new ConfigDLY16010(); ucfg.SetConfigValue(frmcfg); frmcfg.spConfig20180118 = this.sp_Config; } else { //表示できるかチェック var WidthCHK = System.Windows.Forms.Screen.PrimaryScreen.Bounds.Width - frmcfg.Left; if (WidthCHK > 10) { this.Left = frmcfg.Left; } //表示できるかチェック var HeightCHK = System.Windows.Forms.Screen.PrimaryScreen.Bounds.Height - frmcfg.Top; if (HeightCHK > 10) { this.Top = frmcfg.Top; } this.Height = frmcfg.Height; this.Width = frmcfg.Width; this.Cmb_検索日付.SelectedIndex = frmcfg.区分1; this.検索日付From = frmcfg.集計期間From; this.検索日付To = frmcfg.集計期間To; } #endregion AppCommon.LoadSpConfig(this.sp売上明細データ, frmcfg.spConfig20180118 != null ? frmcfg.spConfig20180118 : this.sp_Config); sp売上明細データ.InputBindings.Add(new KeyBinding(sp売上明細データ.NavigationCommands.MoveNext, Key.Enter, ModifierKeys.None)); ButtonCellType btn = this.sp売上明細データ.Columns[0].CellType as ButtonCellType; btn.Command = new cmd売上詳細表示(sp売上明細データ); //ComboBoxに値を設定する GetComboBoxItems(); sp売上明細データ.RowCount = 0; if (frmcfg.表示順 != null) { if (frmcfg.表示順.Length == 5) { this.表示順 = frmcfg.表示順; } } if (frmcfg.表示順方向 != null) { if (frmcfg.表示順方向.Length == 5) { this.表示順方向 = frmcfg.表示順方向; } } this.textbox検索日付From.SetFocus(); }
/// <summary> /// 控制切换右侧详细信息 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void _fpTunelInfo_SelectionChanged(object sender, SelectionChangedEventArgs e) { var rowIndex = 0; if (e != null) { rowIndex = e.Range.Row; } //巷道名称 _txtWorkingFaceName.Text = summaryCells[rowIndex, 0].Text; //日期班次 _txtPreWarningDateAndShift.Text = summaryCells[rowIndex, 1].Text + " " + summaryCells[rowIndex, 2].Text; try { //超限预警 _picOverLimitResult.Image = (Image)summaryCells[rowIndex, 3].Value; //突出预警 _picOurburstResult.Image = (Image)summaryCells[rowIndex, 4].Value; var imageCell = new ImageCellType(); imageCell.Style = RenderStyle.Normal; //Mark By QinKai,若添加新的预警依据项,需要更改的内容 var buttonCell = new ButtonCellType(); buttonCell.Text = "详细信息"; //超限预警 //瓦斯 infoCells[_iDetailsRowHeaderCount + (int)WarningReasonItems.瓦斯, 1].CellType = imageCell; infoCells[_iDetailsRowHeaderCount + (int)WarningReasonItems.瓦斯, 1].Value = summaryCells[rowIndex, _iOverLimitGas].Value; infoCells[_iDetailsRowHeaderCount + (int)WarningReasonItems.瓦斯, 2].CellType = buttonCell; //煤层 infoCells[_iDetailsRowHeaderCount + (int)WarningReasonItems.煤层赋存, 1].CellType = imageCell; infoCells[_iDetailsRowHeaderCount + (int)WarningReasonItems.煤层赋存, 1].Value = summaryCells[rowIndex, _iOverLimitCoal].Value; infoCells[_iDetailsRowHeaderCount + (int)WarningReasonItems.煤层赋存, 2].CellType = buttonCell; //地质 infoCells[_iDetailsRowHeaderCount + (int)WarningReasonItems.地质构造, 1].CellType = imageCell; infoCells[_iDetailsRowHeaderCount + (int)WarningReasonItems.地质构造, 1].Value = summaryCells[rowIndex, _iOverLimitGeology].Value; infoCells[_iDetailsRowHeaderCount + (int)WarningReasonItems.地质构造, 2].CellType = buttonCell; //通风 infoCells[_iDetailsRowHeaderCount + (int)WarningReasonItems.通风, 1].CellType = imageCell; infoCells[_iDetailsRowHeaderCount + (int)WarningReasonItems.通风, 1].Value = summaryCells[rowIndex, _iOverLimitVentilation].Value; infoCells[_iDetailsRowHeaderCount + (int)WarningReasonItems.通风, 2].CellType = buttonCell; //管理 infoCells[_iDetailsRowHeaderCount + (int)WarningReasonItems.管理因素, 1].CellType = imageCell; infoCells[_iDetailsRowHeaderCount + (int)WarningReasonItems.管理因素, 1].Value = summaryCells[rowIndex, _iOverLimitManagement].Value; infoCells[_iDetailsRowHeaderCount + (int)WarningReasonItems.管理因素, 2].CellType = buttonCell; //其他 infoCells[_iDetailsRowHeaderCount + (int)WarningReasonItems.其他, 1].CellType = imageCell; infoCells[_iDetailsRowHeaderCount + (int)WarningReasonItems.其他, 1].Value = summaryCells[rowIndex, _iOverLimitOther].Value; infoCells[_iDetailsRowHeaderCount + (int)WarningReasonItems.其他, 2].CellType = buttonCell; //预警依据类型的数量 var warningItemTypeCount = Enum.GetNames(typeof(WarningReasonItems)).Length; //超限预警 //瓦斯 infoCells[warningItemTypeCount + 2 * _iDetailsRowHeaderCount + (int)WarningReasonItems.瓦斯, 1].CellType = imageCell; infoCells[warningItemTypeCount + 2 * _iDetailsRowHeaderCount + (int)WarningReasonItems.瓦斯, 1].Value = (summaryCells[rowIndex, _iOutBurstGas]).Value; infoCells[warningItemTypeCount + 2 * _iDetailsRowHeaderCount + (int)WarningReasonItems.瓦斯, 2].CellType = buttonCell; //煤层 infoCells[warningItemTypeCount + 2 * _iDetailsRowHeaderCount + (int)WarningReasonItems.煤层赋存, 1].CellType = imageCell; infoCells[warningItemTypeCount + 2 * _iDetailsRowHeaderCount + (int)WarningReasonItems.煤层赋存, 1].Value = summaryCells[rowIndex, _iOutBurstCoal].Value; infoCells[warningItemTypeCount + 2 * _iDetailsRowHeaderCount + (int)WarningReasonItems.煤层赋存, 2].CellType = buttonCell; //地质 infoCells[warningItemTypeCount + 2 * _iDetailsRowHeaderCount + (int)WarningReasonItems.地质构造, 1].CellType = imageCell; infoCells[warningItemTypeCount + 2 * _iDetailsRowHeaderCount + (int)WarningReasonItems.地质构造, 1].Value = summaryCells[rowIndex, _iOutBurstGeology].Value; infoCells[warningItemTypeCount + 2 * _iDetailsRowHeaderCount + (int)WarningReasonItems.地质构造, 2].CellType = buttonCell; //通风 infoCells[warningItemTypeCount + 2 * _iDetailsRowHeaderCount + (int)WarningReasonItems.通风, 1].CellType = imageCell; infoCells[warningItemTypeCount + 2 * _iDetailsRowHeaderCount + (int)WarningReasonItems.通风, 1].Value = summaryCells[rowIndex, _iOutBurstVentilation].Value; infoCells[warningItemTypeCount + 2 * _iDetailsRowHeaderCount + (int)WarningReasonItems.通风, 2].CellType = buttonCell; //管理 infoCells[warningItemTypeCount + 2 * _iDetailsRowHeaderCount + (int)WarningReasonItems.管理因素, 1].CellType = imageCell; infoCells[warningItemTypeCount + 2 * _iDetailsRowHeaderCount + (int)WarningReasonItems.管理因素, 1].Value = summaryCells[rowIndex, _iOutBurstManagement].Value; infoCells[warningItemTypeCount + 2 * _iDetailsRowHeaderCount + (int)WarningReasonItems.管理因素, 2].CellType = buttonCell; //其他 infoCells[warningItemTypeCount + 2 * _iDetailsRowHeaderCount + +(int)WarningReasonItems.其他, 1].CellType = imageCell; infoCells[warningItemTypeCount + 2 * _iDetailsRowHeaderCount + +(int)WarningReasonItems.其他, 1].Value = summaryCells[rowIndex, _iOutBurstOther].Value; infoCells[warningItemTypeCount + 2 * _iDetailsRowHeaderCount + +(int)WarningReasonItems.其他, 2].CellType = buttonCell; } catch (Exception ex) { Alert.alert(ex.ToString()); } //设置传出值 //工作面名称 sOutWorkface = _txtWorkingFaceName.Text; //日期 sOutDate = summaryCells[rowIndex, 1].Text; //班次 sOutShift = summaryCells[rowIndex, 2].Text; //巷道ID sOutTunnelId = summaryCells[rowIndex, COLUMN_TUNNEL_ID].Text; }
/// <summary> /// Loadイベント /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void Window_Loaded_1(object sender, RoutedEventArgs e) { this.sp支払データ一覧.RowCount = 0; //this.spConfig = AppCommon.SaveSpConfig(this.sp請求データ一覧); #region 設定項目取得 ucfg = AppCommon.GetConfig(this); frmcfg = (ConfigSHR03010)ucfg.GetConfigValue(typeof(ConfigSHR03010)); if (frmcfg == null) { frmcfg = new ConfigSHR03010(); ucfg.SetConfigValue(frmcfg); frmcfg.spConfig = this.spConfig; } else { //表示できるかチェック var WidthCHK = System.Windows.Forms.Screen.PrimaryScreen.Bounds.Width - frmcfg.Left; if (WidthCHK > 10) { this.Left = frmcfg.Left; } //表示できるかチェック var HeightCHK = System.Windows.Forms.Screen.PrimaryScreen.Bounds.Height - frmcfg.Top; if (HeightCHK > 10) { this.Top = frmcfg.Top; } this.Width = frmcfg.Width; this.Height = frmcfg.Height; } // 権限設定を呼び出す(ucfgを取得した後のに入れる) ccfg = (CommonConfig)ucfg.GetConfigValue(typeof(CommonConfig)); // 登録ボタン設定 if (!権限Get.Authority_Update_Button(ccfg, this.GetType().Name)) { DataUpdateVisible = System.Windows.Visibility.Hidden; } if (frmcfg.spConfig != null) { //AppCommon.LoadSpConfig(this.sp請求データ一覧, frmcfg.spConfig); } #endregion base.MasterMaintenanceWindowList.Add("M01_TOK", new List <Type> { typeof(MST01010), typeof(SCHM01_TOK) }); base.MasterMaintenanceWindowList.Add("M70_JIS", new List <Type> { typeof(MST16010), typeof(SCHM70_JIS) }); this.sp支払データ一覧.PreviewKeyDown += sp支払データ一覧_PreviewKeyDown; ButtonCellType btn = this.sp支払データ一覧.Columns[3].CellType as ButtonCellType; btn.Command = new cmd期間クリア(sp支払データ一覧); this.MyCompany.Text1 = ccfg.自社コード.ToString(); this.MyCompany.Text1IsReadOnly = (ccfg.自社販社区分 != 0); this.CreateYearMonth.Text = string.Format("{0:yyyy/MM}", DateTime.Now); ScreenClear(); }
/// <summary> /// 向farpoint spread表单中添加一行数据. /// </summary> /// <param name="rowIdx"></param> /// <param name="entity"></param> private void addRow2Fp(int rowIdx, LibEntity.PreWarningResultQuery entity) { _fpPreWaringLastedValue.ActiveSheet.Rows.Add(rowIdx, 1); _fpPreWaringLastedValue.ActiveSheet.Rows[rowIdx].Height = 40; _fpPreWaringLastedValue.ActiveSheet.Rows[rowIdx].Locked = true; cells[rowIdx, COLUMN_INDEX_WORKFACE_NAME].Value = entity.TunelName; cells[rowIdx, COLUMN_INDEX_DATETIME_SHIFT].Value = entity.DateTime + " " + entity.Date_Shift; FpUtil.setCellImg(cells[rowIdx, COLUMN_INDEX_WANRING_RESULT_OVERLIMIT], entity.OverLimitWarningResult.WarningResult); FpUtil.setCellImg(cells[rowIdx, COLUMN_INDEX_WANRING_RESULT_OUTBURST], entity.OutBrustWarningResult.WarningResult); //瓦斯 FpUtil.setCellImg(cells[rowIdx, COLUMN_INDEX_OVERLIMIT_GAS], entity.OverLimitWarningResult.Gas); FpUtil.setCellImg(cells[rowIdx, COLUMN_INDEX_OUTBURST_GAS], entity.OutBrustWarningResult.Gas); //煤层 FpUtil.setCellImg(cells[rowIdx, COLUMN_INDEX_OVERLIMIT_COAL], entity.OverLimitWarningResult.Coal); FpUtil.setCellImg(cells[rowIdx, COLUMN_INDEX_OUTBURST_COAL], entity.OutBrustWarningResult.Coal); //地质 FpUtil.setCellImg(cells[rowIdx, COLUMN_INDEX_OVERLIMIT_GEOLOGY], entity.OverLimitWarningResult.Geology); FpUtil.setCellImg(cells[rowIdx, COLUMN_INDEX_OUTBURST_GEOLOGY], entity.OutBrustWarningResult.Geology); //通风 FpUtil.setCellImg(cells[rowIdx, COLUMN_INDEX_OVERLIMIT_VENTILATION], entity.OverLimitWarningResult.Ventilation); FpUtil.setCellImg(cells[rowIdx, COLUMN_INDEX_OUTBURST_VENTILATION], entity.OutBrustWarningResult.Ventilation); //管理 FpUtil.setCellImg(cells[rowIdx, COLUMN_INDEX_OVERLIMIT_MANAGEMENT], entity.OverLimitWarningResult.Management); FpUtil.setCellImg(cells[rowIdx, COLUMN_INDEX_OUTBURST_MANAGEMENT], entity.OutBrustWarningResult.Management); var buttonCell = new ButtonCellType(); buttonCell.Text = "···"; if (entity.OverLimitWarningResult.WarningResult > 1 && entity.OutBrustWarningResult.WarningResult > 1) { cells[rowIdx, COLUMN_INDEX_DETAIL_INFO_BUTTON].Locked = true; buttonCell.Text = "-"; } cells[rowIdx, COLUMN_INDEX_DETAIL_INFO_BUTTON].CellType = buttonCell; if (_chkAddPreWarningVoice.Checked) { if (entity.OverLimitWarningResult.WarningResult < (int)WarningResult.GREEN || entity.OutBrustWarningResult.WarningResult < (int)WarningResult.GREEN) { AddPreWarningTxt(entity.TunelName, entity.OverLimitWarningResult.WarningResult, entity.OutBrustWarningResult.WarningResult); } } //以下内容设置了隐藏,界面上无法看到 //超限预警记录的ID 列号15 cells[rowIdx, COLUMN_INDEX_HIDE_OVERLIMIT_WARNING_ID].Value = entity.OverLimitWarningResult.ID; //突出预警记录的ID 列号16 cells[rowIdx, COLUMN_INDEX_HIDE_OUTBURST_WARNING_ID].Value = entity.OutBrustWarningResult.ID; //巷道ID 列号17 cells[rowIdx, COLUMN_INDEX_HIDE_TUNNEL_ID].Value = entity.TunnelID; //日期 列号18 cells[rowIdx, COLUMN_INDEX_HIDE_DATETIME].Value = entity.DateTime; //班次 列号19 cells[rowIdx, COLUMN_INDEX_HIDE_SHIFT].Value = entity.Date_Shift; // 列号20 cells[rowIdx, COLUMN_INDEX_HIDE_OVERLIMIT_HANDLE_STATUS].Value = entity.OverLimitWarningResult.HandleStatus; //班次 列号21 cells[rowIdx, COLUMN_INDEX_HIDE_OUTBURST_HANDLE_STATUS].Value = entity.OutBrustWarningResult.HandleStatus; }