|
@@ -68,6 +68,7 @@ namespace UAS_DeviceMonitor
|
|
|
this.ButtonSaveCommand = new UAS_DeviceMonitor.CustomerControl.Button.ButtonSaveGrid();
|
|
|
this.GridCommandSetting = new UAS_DeviceMonitor.CustomerControl.AutoDataGridControl.AutoDataGridControl();
|
|
|
this.GridViewCommandSet = new UAS_DeviceMonitor.CustomerControl.GridViewWithSerialNum.GridViewWithSerialNum();
|
|
|
+ this.CommandSetCheckedColumn = new DevExpress.XtraGrid.Columns.GridColumn();
|
|
|
this.CheckEditCommandSet = new DevExpress.XtraEditors.Repository.RepositoryItemCheckEdit();
|
|
|
this.dc_id = new DevExpress.XtraGrid.Columns.GridColumn();
|
|
|
this.dc_code = new DevExpress.XtraGrid.Columns.GridColumn();
|
|
@@ -83,10 +84,18 @@ namespace UAS_DeviceMonitor
|
|
|
this.ButtonStartPolling = new DevExpress.XtraEditors.SimpleButton();
|
|
|
this.GridPollingSetting = new UAS_DeviceMonitor.CustomerControl.AutoDataGridControl.AutoDataGridControl();
|
|
|
this.GridViewPollSetting = new UAS_DeviceMonitor.CustomerControl.GridViewWithSerialNum.GridViewWithSerialNum();
|
|
|
+ this.PollSettingCheckedColumn = new DevExpress.XtraGrid.Columns.GridColumn();
|
|
|
this.dpc_enableCheckEdit = new DevExpress.XtraEditors.Repository.RepositoryItemCheckEdit();
|
|
|
this.dpc_id = new DevExpress.XtraGrid.Columns.GridColumn();
|
|
|
this.dpc_decode = new DevExpress.XtraGrid.Columns.GridColumn();
|
|
|
this.dpc_plcode = new DevExpress.XtraGrid.Columns.GridColumn();
|
|
|
+ this.PollSettingItemSearchLookUpEdit = new DevExpress.XtraEditors.Repository.RepositoryItemSearchLookUpEdit();
|
|
|
+ this.PollSettingItemSearchLookUpEditView = new DevExpress.XtraGrid.Views.Grid.GridView();
|
|
|
+ this.gridColumn1 = new DevExpress.XtraGrid.Columns.GridColumn();
|
|
|
+ this.gridColumn2 = new DevExpress.XtraGrid.Columns.GridColumn();
|
|
|
+ this.gridColumn3 = new DevExpress.XtraGrid.Columns.GridColumn();
|
|
|
+ this.gridColumn4 = new DevExpress.XtraGrid.Columns.GridColumn();
|
|
|
+ this.gridColumn5 = new DevExpress.XtraGrid.Columns.GridColumn();
|
|
|
this.dpc_plname = new DevExpress.XtraGrid.Columns.GridColumn();
|
|
|
this.dpc_interval = new DevExpress.XtraGrid.Columns.GridColumn();
|
|
|
this.dpc_dccode = new DevExpress.XtraGrid.Columns.GridColumn();
|
|
@@ -102,6 +111,7 @@ namespace UAS_DeviceMonitor
|
|
|
this.ButtonSavePolling = new UAS_DeviceMonitor.CustomerControl.Button.ButtonSaveGrid();
|
|
|
this.GridPolling = new UAS_DeviceMonitor.CustomerControl.AutoDataGridControl.AutoDataGridControl();
|
|
|
this.GridViewPolling = new UAS_DeviceMonitor.CustomerControl.GridViewWithSerialNum.GridViewWithSerialNum();
|
|
|
+ this.PollingCheckedColumn = new DevExpress.XtraGrid.Columns.GridColumn();
|
|
|
this.pl_id = new DevExpress.XtraGrid.Columns.GridColumn();
|
|
|
this.pl_code = new DevExpress.XtraGrid.Columns.GridColumn();
|
|
|
this.pl_name = new DevExpress.XtraGrid.Columns.GridColumn();
|
|
@@ -123,6 +133,8 @@ namespace UAS_DeviceMonitor
|
|
|
((System.ComponentModel.ISupportInitialize)(this.GridPollingSetting)).BeginInit();
|
|
|
((System.ComponentModel.ISupportInitialize)(this.GridViewPollSetting)).BeginInit();
|
|
|
((System.ComponentModel.ISupportInitialize)(this.dpc_enableCheckEdit)).BeginInit();
|
|
|
+ ((System.ComponentModel.ISupportInitialize)(this.PollSettingItemSearchLookUpEdit)).BeginInit();
|
|
|
+ ((System.ComponentModel.ISupportInitialize)(this.PollSettingItemSearchLookUpEditView)).BeginInit();
|
|
|
((System.ComponentModel.ISupportInitialize)(this.PollingSetItemLookUpEdit)).BeginInit();
|
|
|
this.PagePolling.SuspendLayout();
|
|
|
((System.ComponentModel.ISupportInitialize)(this.GridPolling)).BeginInit();
|
|
@@ -486,6 +498,7 @@ namespace UAS_DeviceMonitor
|
|
|
// GridViewCommandSet
|
|
|
//
|
|
|
this.GridViewCommandSet.Columns.AddRange(new DevExpress.XtraGrid.Columns.GridColumn[] {
|
|
|
+ this.CommandSetCheckedColumn,
|
|
|
this.dc_id,
|
|
|
this.dc_code,
|
|
|
this.dc_name,
|
|
@@ -493,8 +506,17 @@ namespace UAS_DeviceMonitor
|
|
|
this.GridViewCommandSet.GridControl = this.GridCommandSetting;
|
|
|
this.GridViewCommandSet.IndicatorWidth = 30;
|
|
|
this.GridViewCommandSet.Name = "GridViewCommandSet";
|
|
|
- this.GridViewCommandSet.OptionsSelection.MultiSelect = true;
|
|
|
- this.GridViewCommandSet.OptionsSelection.MultiSelectMode = DevExpress.XtraGrid.Views.Grid.GridMultiSelectMode.CheckBoxRowSelect;
|
|
|
+ //
|
|
|
+ // CommandSetCheckedColumn
|
|
|
+ //
|
|
|
+ this.CommandSetCheckedColumn.Caption = " ";
|
|
|
+ this.CommandSetCheckedColumn.ColumnEdit = this.CheckEditCommandSet;
|
|
|
+ this.CommandSetCheckedColumn.FieldName = "CHECKEDCOLUMN";
|
|
|
+ this.CommandSetCheckedColumn.Name = "CommandSetCheckedColumn";
|
|
|
+ this.CommandSetCheckedColumn.OptionsColumn.AllowSort = DevExpress.Utils.DefaultBoolean.False;
|
|
|
+ this.CommandSetCheckedColumn.Tag = "0";
|
|
|
+ this.CommandSetCheckedColumn.Visible = true;
|
|
|
+ this.CommandSetCheckedColumn.VisibleIndex = 0;
|
|
|
//
|
|
|
// CheckEditCommandSet
|
|
|
//
|
|
@@ -628,7 +650,8 @@ namespace UAS_DeviceMonitor
|
|
|
this.GridPollingSetting.Name = "GridPollingSetting";
|
|
|
this.GridPollingSetting.RepositoryItems.AddRange(new DevExpress.XtraEditors.Repository.RepositoryItem[] {
|
|
|
this.dpc_enableCheckEdit,
|
|
|
- this.PollingSetItemLookUpEdit});
|
|
|
+ this.PollingSetItemLookUpEdit,
|
|
|
+ this.PollSettingItemSearchLookUpEdit});
|
|
|
this.GridPollingSetting.RowCount = 0;
|
|
|
this.GridPollingSetting.Size = new System.Drawing.Size(1027, 544);
|
|
|
this.GridPollingSetting.TabIndex = 0;
|
|
@@ -639,6 +662,7 @@ namespace UAS_DeviceMonitor
|
|
|
// GridViewPollSetting
|
|
|
//
|
|
|
this.GridViewPollSetting.Columns.AddRange(new DevExpress.XtraGrid.Columns.GridColumn[] {
|
|
|
+ this.PollSettingCheckedColumn,
|
|
|
this.dpc_id,
|
|
|
this.dpc_decode,
|
|
|
this.dpc_plcode,
|
|
@@ -653,10 +677,21 @@ namespace UAS_DeviceMonitor
|
|
|
this.GridViewPollSetting.GridControl = this.GridPollingSetting;
|
|
|
this.GridViewPollSetting.IndicatorWidth = 30;
|
|
|
this.GridViewPollSetting.Name = "GridViewPollSetting";
|
|
|
- this.GridViewPollSetting.OptionsSelection.MultiSelect = true;
|
|
|
this.GridViewPollSetting.OptionsSelection.MultiSelectMode = DevExpress.XtraGrid.Views.Grid.GridMultiSelectMode.CheckBoxRowSelect;
|
|
|
this.GridViewPollSetting.CellValueChanging += new DevExpress.XtraGrid.Views.Base.CellValueChangedEventHandler(this.GridViewPollSetting_CellValueChanging);
|
|
|
//
|
|
|
+ // PollSettingCheckedColumn
|
|
|
+ //
|
|
|
+ this.PollSettingCheckedColumn.Caption = " ";
|
|
|
+ this.PollSettingCheckedColumn.ColumnEdit = this.dpc_enableCheckEdit;
|
|
|
+ this.PollSettingCheckedColumn.FieldName = "CHECKEDCOLUMN";
|
|
|
+ this.PollSettingCheckedColumn.Name = "PollSettingCheckedColumn";
|
|
|
+ this.PollSettingCheckedColumn.OptionsColumn.AllowSort = DevExpress.Utils.DefaultBoolean.False;
|
|
|
+ this.PollSettingCheckedColumn.OptionsFilter.AllowFilter = false;
|
|
|
+ this.PollSettingCheckedColumn.Tag = "0";
|
|
|
+ this.PollSettingCheckedColumn.Visible = true;
|
|
|
+ this.PollSettingCheckedColumn.VisibleIndex = 0;
|
|
|
+ //
|
|
|
// dpc_enableCheckEdit
|
|
|
//
|
|
|
this.dpc_enableCheckEdit.AutoHeight = false;
|
|
@@ -685,12 +720,75 @@ namespace UAS_DeviceMonitor
|
|
|
// dpc_plcode
|
|
|
//
|
|
|
this.dpc_plcode.Caption = "业务编号";
|
|
|
+ this.dpc_plcode.ColumnEdit = this.PollSettingItemSearchLookUpEdit;
|
|
|
this.dpc_plcode.FieldName = "DPC_PLCODE";
|
|
|
this.dpc_plcode.Name = "dpc_plcode";
|
|
|
this.dpc_plcode.Visible = true;
|
|
|
this.dpc_plcode.VisibleIndex = 2;
|
|
|
this.dpc_plcode.Width = 90;
|
|
|
//
|
|
|
+ // PollSettingItemSearchLookUpEdit
|
|
|
+ //
|
|
|
+ this.PollSettingItemSearchLookUpEdit.AutoHeight = false;
|
|
|
+ this.PollSettingItemSearchLookUpEdit.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] {
|
|
|
+ new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)});
|
|
|
+ this.PollSettingItemSearchLookUpEdit.Name = "PollSettingItemSearchLookUpEdit";
|
|
|
+ this.PollSettingItemSearchLookUpEdit.NullText = "";
|
|
|
+ this.PollSettingItemSearchLookUpEdit.View = this.PollSettingItemSearchLookUpEditView;
|
|
|
+ //
|
|
|
+ // PollSettingItemSearchLookUpEditView
|
|
|
+ //
|
|
|
+ this.PollSettingItemSearchLookUpEditView.Columns.AddRange(new DevExpress.XtraGrid.Columns.GridColumn[] {
|
|
|
+ this.gridColumn1,
|
|
|
+ this.gridColumn2,
|
|
|
+ this.gridColumn3,
|
|
|
+ this.gridColumn4,
|
|
|
+ this.gridColumn5});
|
|
|
+ this.PollSettingItemSearchLookUpEditView.FocusRectStyle = DevExpress.XtraGrid.Views.Grid.DrawFocusRectStyle.RowFocus;
|
|
|
+ this.PollSettingItemSearchLookUpEditView.Name = "PollSettingItemSearchLookUpEditView";
|
|
|
+ this.PollSettingItemSearchLookUpEditView.OptionsSelection.EnableAppearanceFocusedCell = false;
|
|
|
+ this.PollSettingItemSearchLookUpEditView.OptionsView.ShowGroupPanel = false;
|
|
|
+ //
|
|
|
+ // gridColumn1
|
|
|
+ //
|
|
|
+ this.gridColumn1.Caption = "业务编号";
|
|
|
+ this.gridColumn1.FieldName = "PL_CODE";
|
|
|
+ this.gridColumn1.Name = "gridColumn1";
|
|
|
+ this.gridColumn1.Visible = true;
|
|
|
+ this.gridColumn1.VisibleIndex = 0;
|
|
|
+ //
|
|
|
+ // gridColumn2
|
|
|
+ //
|
|
|
+ this.gridColumn2.Caption = "业务名称";
|
|
|
+ this.gridColumn2.FieldName = "PL_NAME";
|
|
|
+ this.gridColumn2.Name = "gridColumn2";
|
|
|
+ this.gridColumn2.Visible = true;
|
|
|
+ this.gridColumn2.VisibleIndex = 1;
|
|
|
+ //
|
|
|
+ // gridColumn3
|
|
|
+ //
|
|
|
+ this.gridColumn3.Caption = "业务类型";
|
|
|
+ this.gridColumn3.FieldName = "PL_TYPE";
|
|
|
+ this.gridColumn3.Name = "gridColumn3";
|
|
|
+ this.gridColumn3.Visible = true;
|
|
|
+ this.gridColumn3.VisibleIndex = 2;
|
|
|
+ //
|
|
|
+ // gridColumn4
|
|
|
+ //
|
|
|
+ this.gridColumn4.Caption = "指令编号";
|
|
|
+ this.gridColumn4.FieldName = "PL_DCCODE";
|
|
|
+ this.gridColumn4.Name = "gridColumn4";
|
|
|
+ this.gridColumn4.Visible = true;
|
|
|
+ this.gridColumn4.VisibleIndex = 3;
|
|
|
+ //
|
|
|
+ // gridColumn5
|
|
|
+ //
|
|
|
+ this.gridColumn5.Caption = "备注";
|
|
|
+ this.gridColumn5.FieldName = "PL_REMARK";
|
|
|
+ this.gridColumn5.Name = "gridColumn5";
|
|
|
+ this.gridColumn5.Visible = true;
|
|
|
+ this.gridColumn5.VisibleIndex = 4;
|
|
|
+ //
|
|
|
// dpc_plname
|
|
|
//
|
|
|
this.dpc_plname.Caption = "业务名称";
|
|
@@ -712,7 +810,6 @@ namespace UAS_DeviceMonitor
|
|
|
// dpc_dccode
|
|
|
//
|
|
|
this.dpc_dccode.Caption = "指令编号";
|
|
|
- this.dpc_dccode.ColumnEdit = this.PollingSetItemLookUpEdit;
|
|
|
this.dpc_dccode.FieldName = "DPC_DCCODE";
|
|
|
this.dpc_dccode.Name = "dpc_dccode";
|
|
|
this.dpc_dccode.Visible = true;
|
|
@@ -831,16 +928,20 @@ namespace UAS_DeviceMonitor
|
|
|
this.GridPolling.MainView = this.GridViewPolling;
|
|
|
this.GridPolling.MenuManager = this.RibbonNav;
|
|
|
this.GridPolling.Name = "GridPolling";
|
|
|
+ this.GridPolling.RepositoryItems.AddRange(new DevExpress.XtraEditors.Repository.RepositoryItem[] {
|
|
|
+ this.dpc_enableCheckEdit});
|
|
|
this.GridPolling.RowCount = 0;
|
|
|
this.GridPolling.Size = new System.Drawing.Size(1027, 549);
|
|
|
this.GridPolling.TabIndex = 0;
|
|
|
this.GridPolling.TableName = null;
|
|
|
this.GridPolling.ViewCollection.AddRange(new DevExpress.XtraGrid.Views.Base.BaseView[] {
|
|
|
this.GridViewPolling});
|
|
|
+ this.GridPolling.VisibleChanged += new System.EventHandler(this.GridPolling_VisibleChanged);
|
|
|
//
|
|
|
// GridViewPolling
|
|
|
//
|
|
|
this.GridViewPolling.Columns.AddRange(new DevExpress.XtraGrid.Columns.GridColumn[] {
|
|
|
+ this.PollingCheckedColumn,
|
|
|
this.pl_id,
|
|
|
this.pl_code,
|
|
|
this.pl_name,
|
|
@@ -851,6 +952,17 @@ namespace UAS_DeviceMonitor
|
|
|
this.GridViewPolling.IndicatorWidth = 30;
|
|
|
this.GridViewPolling.Name = "GridViewPolling";
|
|
|
//
|
|
|
+ // PollingCheckedColumn
|
|
|
+ //
|
|
|
+ this.PollingCheckedColumn.Caption = " ";
|
|
|
+ this.PollingCheckedColumn.ColumnEdit = this.dpc_enableCheckEdit;
|
|
|
+ this.PollingCheckedColumn.FieldName = "CHECKEDCOLUMN";
|
|
|
+ this.PollingCheckedColumn.Name = "PollingCheckedColumn";
|
|
|
+ this.PollingCheckedColumn.OptionsColumn.AllowSort = DevExpress.Utils.DefaultBoolean.False;
|
|
|
+ this.PollingCheckedColumn.Tag = "0";
|
|
|
+ this.PollingCheckedColumn.Visible = true;
|
|
|
+ this.PollingCheckedColumn.VisibleIndex = 0;
|
|
|
+ //
|
|
|
// pl_id
|
|
|
//
|
|
|
this.pl_id.Caption = "ID";
|
|
@@ -863,7 +975,7 @@ namespace UAS_DeviceMonitor
|
|
|
this.pl_code.FieldName = "PL_CODE";
|
|
|
this.pl_code.Name = "pl_code";
|
|
|
this.pl_code.Visible = true;
|
|
|
- this.pl_code.VisibleIndex = 0;
|
|
|
+ this.pl_code.VisibleIndex = 1;
|
|
|
//
|
|
|
// pl_name
|
|
|
//
|
|
@@ -871,7 +983,7 @@ namespace UAS_DeviceMonitor
|
|
|
this.pl_name.FieldName = "PL_NAME";
|
|
|
this.pl_name.Name = "pl_name";
|
|
|
this.pl_name.Visible = true;
|
|
|
- this.pl_name.VisibleIndex = 1;
|
|
|
+ this.pl_name.VisibleIndex = 2;
|
|
|
//
|
|
|
// pl_type
|
|
|
//
|
|
@@ -879,15 +991,16 @@ namespace UAS_DeviceMonitor
|
|
|
this.pl_type.FieldName = "PL_TYPE";
|
|
|
this.pl_type.Name = "pl_type";
|
|
|
this.pl_type.Visible = true;
|
|
|
- this.pl_type.VisibleIndex = 2;
|
|
|
+ this.pl_type.VisibleIndex = 3;
|
|
|
//
|
|
|
// pl_dccode
|
|
|
//
|
|
|
this.pl_dccode.Caption = "指令编号";
|
|
|
+ this.pl_dccode.ColumnEdit = this.PollingSetItemLookUpEdit;
|
|
|
this.pl_dccode.FieldName = "PL_DCCODE";
|
|
|
this.pl_dccode.Name = "pl_dccode";
|
|
|
this.pl_dccode.Visible = true;
|
|
|
- this.pl_dccode.VisibleIndex = 3;
|
|
|
+ this.pl_dccode.VisibleIndex = 4;
|
|
|
//
|
|
|
// pl_remark
|
|
|
//
|
|
@@ -895,7 +1008,7 @@ namespace UAS_DeviceMonitor
|
|
|
this.pl_remark.FieldName = "PL_REMARK";
|
|
|
this.pl_remark.Name = "pl_remark";
|
|
|
this.pl_remark.Visible = true;
|
|
|
- this.pl_remark.VisibleIndex = 4;
|
|
|
+ this.pl_remark.VisibleIndex = 5;
|
|
|
//
|
|
|
// Main
|
|
|
//
|
|
@@ -928,6 +1041,8 @@ namespace UAS_DeviceMonitor
|
|
|
((System.ComponentModel.ISupportInitialize)(this.GridPollingSetting)).EndInit();
|
|
|
((System.ComponentModel.ISupportInitialize)(this.GridViewPollSetting)).EndInit();
|
|
|
((System.ComponentModel.ISupportInitialize)(this.dpc_enableCheckEdit)).EndInit();
|
|
|
+ ((System.ComponentModel.ISupportInitialize)(this.PollSettingItemSearchLookUpEdit)).EndInit();
|
|
|
+ ((System.ComponentModel.ISupportInitialize)(this.PollSettingItemSearchLookUpEditView)).EndInit();
|
|
|
((System.ComponentModel.ISupportInitialize)(this.PollingSetItemLookUpEdit)).EndInit();
|
|
|
this.PagePolling.ResumeLayout(false);
|
|
|
((System.ComponentModel.ISupportInitialize)(this.GridPolling)).EndInit();
|
|
@@ -1013,5 +1128,15 @@ namespace UAS_DeviceMonitor
|
|
|
private CustomerControl.Button.ButtonSaveGrid ButtonSaveCommandSet;
|
|
|
private DevExpress.XtraEditors.Repository.RepositoryItemLookUpEdit PollingSetItemLookUpEdit;
|
|
|
private DevExpress.XtraGrid.Columns.GridColumn POLLSETTINGSTATUSCOLUMN;
|
|
|
+ private DevExpress.XtraGrid.Columns.GridColumn PollSettingCheckedColumn;
|
|
|
+ private DevExpress.XtraGrid.Columns.GridColumn CommandSetCheckedColumn;
|
|
|
+ private DevExpress.XtraGrid.Columns.GridColumn PollingCheckedColumn;
|
|
|
+ private DevExpress.XtraEditors.Repository.RepositoryItemSearchLookUpEdit PollSettingItemSearchLookUpEdit;
|
|
|
+ private DevExpress.XtraGrid.Views.Grid.GridView PollSettingItemSearchLookUpEditView;
|
|
|
+ private DevExpress.XtraGrid.Columns.GridColumn gridColumn1;
|
|
|
+ private DevExpress.XtraGrid.Columns.GridColumn gridColumn2;
|
|
|
+ private DevExpress.XtraGrid.Columns.GridColumn gridColumn3;
|
|
|
+ private DevExpress.XtraGrid.Columns.GridColumn gridColumn4;
|
|
|
+ private DevExpress.XtraGrid.Columns.GridColumn gridColumn5;
|
|
|
}
|
|
|
}
|