|
|
@@ -1,4 +1,7 @@
|
|
|
-using UAS_DeviceMonitor.CustomerControl.AutoDataGridControl;
|
|
|
+using DevExpress.XtraEditors;
|
|
|
+using UAS_DeviceMonitor.CustomerControl.AutoDataGridControl;
|
|
|
+using UAS_DeviceMonitor.CustomerControl;
|
|
|
+using UAS_DeviceMonitor.CustomerControl.GridViewWithSerialNum;
|
|
|
|
|
|
namespace UAS_DeviceMonitor
|
|
|
{
|
|
|
@@ -46,7 +49,7 @@ namespace UAS_DeviceMonitor
|
|
|
this.PageDeviceList = new DevExpress.XtraTab.XtraTabPage();
|
|
|
this.PageControlDeviceList = new UAS_DeviceMonitor.CustomerControl.PagingControl.PageControl();
|
|
|
this.GridDeviceList = new UAS_DeviceMonitor.CustomerControl.AutoDataGridControl.AutoDataGridControl();
|
|
|
- this.GridViewDeviceList = new DevExpress.XtraGrid.Views.Grid.GridView();
|
|
|
+ this.GridViewDeviceList = new UAS_DeviceMonitor.CustomerControl.GridViewWithSerialNum.GridViewWithSerialNum();
|
|
|
this.de_id = new DevExpress.XtraGrid.Columns.GridColumn();
|
|
|
this.de_code = new DevExpress.XtraGrid.Columns.GridColumn();
|
|
|
this.de_name = new DevExpress.XtraGrid.Columns.GridColumn();
|
|
|
@@ -58,9 +61,15 @@ namespace UAS_DeviceMonitor
|
|
|
this.de_address = new DevExpress.XtraGrid.Columns.GridColumn();
|
|
|
this.de_wccode = new DevExpress.XtraGrid.Columns.GridColumn();
|
|
|
this.PageCommandSet = new DevExpress.XtraTab.XtraTabPage();
|
|
|
- this.ButtonSaveCommand = new UAS_DeviceMonitor.CustomerControl.Button.ButtonAddRow();
|
|
|
+ this.ButtonDeleteCommand = new UAS_DeviceMonitor.CustomerControl.Button.ButtonDeleteRow();
|
|
|
+ this.Brand_label = new DevExpress.XtraEditors.LabelControl();
|
|
|
+ this.Brand = new DevExpress.XtraEditors.ComboBoxEdit();
|
|
|
+ this.ButtonNewCommand = new DevExpress.XtraEditors.SimpleButton();
|
|
|
+ this.ButtonSaveCommand = new UAS_DeviceMonitor.CustomerControl.Button.ButtonSaveGrid();
|
|
|
this.GridCommandSetting = new UAS_DeviceMonitor.CustomerControl.AutoDataGridControl.AutoDataGridControl();
|
|
|
- this.GridViewCommandSet = new DevExpress.XtraGrid.Views.Grid.GridView();
|
|
|
+ this.GridViewCommandSet = new UAS_DeviceMonitor.CustomerControl.GridViewWithSerialNum.GridViewWithSerialNum();
|
|
|
+ this.Choose = 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();
|
|
|
this.dc_name = new DevExpress.XtraGrid.Columns.GridColumn();
|
|
|
@@ -68,22 +77,31 @@ namespace UAS_DeviceMonitor
|
|
|
this.PageDeviceKind = new DevExpress.XtraTab.XtraTabPage();
|
|
|
this.PageDeviceStatus = new DevExpress.XtraTab.XtraTabPage();
|
|
|
this.PagePollingSetting = new DevExpress.XtraTab.XtraTabPage();
|
|
|
+ this.ButtonDeleteCommandSet = new UAS_DeviceMonitor.CustomerControl.Button.ButtonDeleteRow();
|
|
|
+ this.ButtonNewCommandSet = new UAS_DeviceMonitor.CustomerControl.Button.ButtonAddRow();
|
|
|
+ this.ButtonSaveCommandSet = new UAS_DeviceMonitor.CustomerControl.Button.ButtonSaveGrid();
|
|
|
+ this.ButtonPausePolling = new DevExpress.XtraEditors.SimpleButton();
|
|
|
+ this.ButtonStartPolling = new DevExpress.XtraEditors.SimpleButton();
|
|
|
this.GridPollingSetting = new UAS_DeviceMonitor.CustomerControl.AutoDataGridControl.AutoDataGridControl();
|
|
|
- this.GridViewPollSetting = new DevExpress.XtraGrid.Views.Grid.GridView();
|
|
|
+ this.GridViewPollSetting = new UAS_DeviceMonitor.CustomerControl.GridViewWithSerialNum.GridViewWithSerialNum();
|
|
|
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.dpc_plname = new DevExpress.XtraGrid.Columns.GridColumn();
|
|
|
this.dpc_interval = new DevExpress.XtraGrid.Columns.GridColumn();
|
|
|
this.dpc_dccode = new DevExpress.XtraGrid.Columns.GridColumn();
|
|
|
+ this.PollingSetItemLookUpEdit = new DevExpress.XtraEditors.Repository.RepositoryItemLookUpEdit();
|
|
|
this.dpc_function = new DevExpress.XtraGrid.Columns.GridColumn();
|
|
|
this.dpc_enable = new DevExpress.XtraGrid.Columns.GridColumn();
|
|
|
this.dpc_enableCheckEdit = new DevExpress.XtraEditors.Repository.RepositoryItemCheckEdit();
|
|
|
this.dpc_status = new DevExpress.XtraGrid.Columns.GridColumn();
|
|
|
this.dpc_remark = new DevExpress.XtraGrid.Columns.GridColumn();
|
|
|
this.PagePolling = new DevExpress.XtraTab.XtraTabPage();
|
|
|
+ this.ButtonAddPolling = new UAS_DeviceMonitor.CustomerControl.Button.ButtonAddRow();
|
|
|
+ this.ButtonDeletePolling = new UAS_DeviceMonitor.CustomerControl.Button.ButtonDeleteRow();
|
|
|
+ this.ButtonSavePolling = new UAS_DeviceMonitor.CustomerControl.Button.ButtonSaveGrid();
|
|
|
this.GridPolling = new UAS_DeviceMonitor.CustomerControl.AutoDataGridControl.AutoDataGridControl();
|
|
|
- this.GridViewPolling = new DevExpress.XtraGrid.Views.Grid.GridView();
|
|
|
+ this.GridViewPolling = new UAS_DeviceMonitor.CustomerControl.GridViewWithSerialNum.GridViewWithSerialNum();
|
|
|
this.pl_id = new DevExpress.XtraGrid.Columns.GridColumn();
|
|
|
this.pl_code = new DevExpress.XtraGrid.Columns.GridColumn();
|
|
|
this.pl_name = new DevExpress.XtraGrid.Columns.GridColumn();
|
|
|
@@ -97,11 +115,14 @@ namespace UAS_DeviceMonitor
|
|
|
((System.ComponentModel.ISupportInitialize)(this.GridDeviceList)).BeginInit();
|
|
|
((System.ComponentModel.ISupportInitialize)(this.GridViewDeviceList)).BeginInit();
|
|
|
this.PageCommandSet.SuspendLayout();
|
|
|
+ ((System.ComponentModel.ISupportInitialize)(this.Brand.Properties)).BeginInit();
|
|
|
((System.ComponentModel.ISupportInitialize)(this.GridCommandSetting)).BeginInit();
|
|
|
((System.ComponentModel.ISupportInitialize)(this.GridViewCommandSet)).BeginInit();
|
|
|
+ ((System.ComponentModel.ISupportInitialize)(this.CheckEditCommandSet)).BeginInit();
|
|
|
this.PagePollingSetting.SuspendLayout();
|
|
|
((System.ComponentModel.ISupportInitialize)(this.GridPollingSetting)).BeginInit();
|
|
|
((System.ComponentModel.ISupportInitialize)(this.GridViewPollSetting)).BeginInit();
|
|
|
+ ((System.ComponentModel.ISupportInitialize)(this.PollingSetItemLookUpEdit)).BeginInit();
|
|
|
((System.ComponentModel.ISupportInitialize)(this.dpc_enableCheckEdit)).BeginInit();
|
|
|
this.PagePolling.SuspendLayout();
|
|
|
((System.ComponentModel.ISupportInitialize)(this.GridPolling)).BeginInit();
|
|
|
@@ -257,6 +278,7 @@ namespace UAS_DeviceMonitor
|
|
|
//
|
|
|
// GridDeviceList
|
|
|
//
|
|
|
+ this.GridDeviceList.Condition = null;
|
|
|
this.GridDeviceList.Dock = System.Windows.Forms.DockStyle.Fill;
|
|
|
this.GridDeviceList.GetDataSQL = null;
|
|
|
this.GridDeviceList.ID = null;
|
|
|
@@ -286,6 +308,7 @@ namespace UAS_DeviceMonitor
|
|
|
this.de_address,
|
|
|
this.de_wccode});
|
|
|
this.GridViewDeviceList.GridControl = this.GridDeviceList;
|
|
|
+ this.GridViewDeviceList.IndicatorWidth = 30;
|
|
|
this.GridViewDeviceList.Name = "GridViewDeviceList";
|
|
|
//
|
|
|
// de_id
|
|
|
@@ -371,36 +394,90 @@ namespace UAS_DeviceMonitor
|
|
|
//
|
|
|
// PageCommandSet
|
|
|
//
|
|
|
+ this.PageCommandSet.Controls.Add(this.ButtonDeleteCommand);
|
|
|
+ this.PageCommandSet.Controls.Add(this.Brand_label);
|
|
|
+ this.PageCommandSet.Controls.Add(this.Brand);
|
|
|
+ this.PageCommandSet.Controls.Add(this.ButtonNewCommand);
|
|
|
this.PageCommandSet.Controls.Add(this.ButtonSaveCommand);
|
|
|
this.PageCommandSet.Controls.Add(this.GridCommandSetting);
|
|
|
this.PageCommandSet.Name = "PageCommandSet";
|
|
|
this.PageCommandSet.PageVisible = false;
|
|
|
this.PageCommandSet.Size = new System.Drawing.Size(1027, 577);
|
|
|
this.PageCommandSet.Text = "xtraTabPage1";
|
|
|
+ this.PageCommandSet.VisibleChanged += new System.EventHandler(this.PageCommandSet_VisibleChanged);
|
|
|
+ //
|
|
|
+ // ButtonDeleteCommand
|
|
|
+ //
|
|
|
+ this.ButtonDeleteCommand.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
|
|
|
+ this.ButtonDeleteCommand.Grid = null;
|
|
|
+ this.ButtonDeleteCommand.Location = new System.Drawing.Point(816, 551);
|
|
|
+ this.ButtonDeleteCommand.Name = "ButtonDeleteCommand";
|
|
|
+ this.ButtonDeleteCommand.Size = new System.Drawing.Size(64, 23);
|
|
|
+ this.ButtonDeleteCommand.TabIndex = 6;
|
|
|
+ this.ButtonDeleteCommand.Text = "删除";
|
|
|
+ //
|
|
|
+ // Brand_label
|
|
|
+ //
|
|
|
+ this.Brand_label.Appearance.Font = new System.Drawing.Font("微软雅黑", 12F);
|
|
|
+ this.Brand_label.Location = new System.Drawing.Point(8, 5);
|
|
|
+ this.Brand_label.Name = "Brand_label";
|
|
|
+ this.Brand_label.Size = new System.Drawing.Size(32, 21);
|
|
|
+ this.Brand_label.TabIndex = 5;
|
|
|
+ this.Brand_label.Text = "品牌";
|
|
|
+ //
|
|
|
+ // Brand
|
|
|
+ //
|
|
|
+ this.Brand.Location = new System.Drawing.Point(47, 4);
|
|
|
+ this.Brand.MenuManager = this.RibbonNav;
|
|
|
+ this.Brand.Name = "Brand";
|
|
|
+ this.Brand.Properties.Appearance.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
|
|
+ this.Brand.Properties.Appearance.Options.UseFont = true;
|
|
|
+ this.Brand.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] {
|
|
|
+ new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)});
|
|
|
+ this.Brand.Properties.TextEditStyle = DevExpress.XtraEditors.Controls.TextEditStyles.DisableTextEditor;
|
|
|
+ this.Brand.Size = new System.Drawing.Size(100, 24);
|
|
|
+ this.Brand.TabIndex = 4;
|
|
|
+ this.Brand.SelectedIndexChanged += new System.EventHandler(this.Brand_SelectedIndexChanged);
|
|
|
+ //
|
|
|
+ // ButtonNewCommand
|
|
|
+ //
|
|
|
+ this.ButtonNewCommand.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
|
|
|
+ this.ButtonNewCommand.Location = new System.Drawing.Point(886, 551);
|
|
|
+ this.ButtonNewCommand.Name = "ButtonNewCommand";
|
|
|
+ this.ButtonNewCommand.Size = new System.Drawing.Size(64, 23);
|
|
|
+ this.ButtonNewCommand.TabIndex = 3;
|
|
|
+ this.ButtonNewCommand.Text = "新增";
|
|
|
+ this.ButtonNewCommand.Click += new System.EventHandler(this.ButtonNewCommand_Click);
|
|
|
//
|
|
|
// ButtonSaveCommand
|
|
|
//
|
|
|
+ this.ButtonSaveCommand.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
|
|
|
this.ButtonSaveCommand.Grid = null;
|
|
|
+ this.ButtonSaveCommand.HandlerOtherFirst = true;
|
|
|
this.ButtonSaveCommand.Location = new System.Drawing.Point(956, 551);
|
|
|
this.ButtonSaveCommand.Name = "ButtonSaveCommand";
|
|
|
this.ButtonSaveCommand.Size = new System.Drawing.Size(64, 23);
|
|
|
this.ButtonSaveCommand.TabIndex = 2;
|
|
|
this.ButtonSaveCommand.Text = "保存";
|
|
|
+ this.ButtonSaveCommand.Click += new System.EventHandler(this.ButtonSaveCommand_Click);
|
|
|
//
|
|
|
// GridCommandSetting
|
|
|
//
|
|
|
this.GridCommandSetting.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
|
|
|
| System.Windows.Forms.AnchorStyles.Left)
|
|
|
| System.Windows.Forms.AnchorStyles.Right)));
|
|
|
+ this.GridCommandSetting.Condition = null;
|
|
|
this.GridCommandSetting.GetDataSQL = null;
|
|
|
this.GridCommandSetting.ID = null;
|
|
|
this.GridCommandSetting.InsertSQL = null;
|
|
|
- this.GridCommandSetting.Location = new System.Drawing.Point(0, -1);
|
|
|
+ this.GridCommandSetting.Location = new System.Drawing.Point(0, 31);
|
|
|
this.GridCommandSetting.MainView = this.GridViewCommandSet;
|
|
|
this.GridCommandSetting.MenuManager = this.RibbonNav;
|
|
|
this.GridCommandSetting.Name = "GridCommandSetting";
|
|
|
+ this.GridCommandSetting.RepositoryItems.AddRange(new DevExpress.XtraEditors.Repository.RepositoryItem[] {
|
|
|
+ this.CheckEditCommandSet});
|
|
|
this.GridCommandSetting.RowCount = 0;
|
|
|
- this.GridCommandSetting.Size = new System.Drawing.Size(1027, 549);
|
|
|
+ this.GridCommandSetting.Size = new System.Drawing.Size(1027, 517);
|
|
|
this.GridCommandSetting.TabIndex = 1;
|
|
|
this.GridCommandSetting.TableName = null;
|
|
|
this.GridCommandSetting.ViewCollection.AddRange(new DevExpress.XtraGrid.Views.Base.BaseView[] {
|
|
|
@@ -409,12 +486,30 @@ namespace UAS_DeviceMonitor
|
|
|
// GridViewCommandSet
|
|
|
//
|
|
|
this.GridViewCommandSet.Columns.AddRange(new DevExpress.XtraGrid.Columns.GridColumn[] {
|
|
|
+ this.Choose,
|
|
|
this.dc_id,
|
|
|
this.dc_code,
|
|
|
this.dc_name,
|
|
|
this.dc_command});
|
|
|
this.GridViewCommandSet.GridControl = this.GridCommandSetting;
|
|
|
+ this.GridViewCommandSet.IndicatorWidth = 30;
|
|
|
this.GridViewCommandSet.Name = "GridViewCommandSet";
|
|
|
+ this.GridViewCommandSet.OptionsSelection.MultiSelect = true;
|
|
|
+ //
|
|
|
+ // Choose
|
|
|
+ //
|
|
|
+ this.Choose.Caption = "勾选";
|
|
|
+ this.Choose.ColumnEdit = this.CheckEditCommandSet;
|
|
|
+ this.Choose.FieldName = "CHOOSE";
|
|
|
+ this.Choose.Name = "Choose";
|
|
|
+ this.Choose.Visible = true;
|
|
|
+ this.Choose.VisibleIndex = 0;
|
|
|
+ //
|
|
|
+ // CheckEditCommandSet
|
|
|
+ //
|
|
|
+ this.CheckEditCommandSet.AutoHeight = false;
|
|
|
+ this.CheckEditCommandSet.Name = "CheckEditCommandSet";
|
|
|
+ this.CheckEditCommandSet.NullStyle = DevExpress.XtraEditors.Controls.StyleIndeterminate.Unchecked;
|
|
|
//
|
|
|
// dc_id
|
|
|
//
|
|
|
@@ -427,7 +522,7 @@ namespace UAS_DeviceMonitor
|
|
|
this.dc_code.FieldName = "DC_CODE";
|
|
|
this.dc_code.Name = "dc_code";
|
|
|
this.dc_code.Visible = true;
|
|
|
- this.dc_code.VisibleIndex = 0;
|
|
|
+ this.dc_code.VisibleIndex = 1;
|
|
|
this.dc_code.Width = 118;
|
|
|
//
|
|
|
// dc_name
|
|
|
@@ -436,7 +531,7 @@ namespace UAS_DeviceMonitor
|
|
|
this.dc_name.FieldName = "DC_NAME";
|
|
|
this.dc_name.Name = "dc_name";
|
|
|
this.dc_name.Visible = true;
|
|
|
- this.dc_name.VisibleIndex = 1;
|
|
|
+ this.dc_name.VisibleIndex = 2;
|
|
|
this.dc_name.Width = 123;
|
|
|
//
|
|
|
// dc_command
|
|
|
@@ -445,7 +540,7 @@ namespace UAS_DeviceMonitor
|
|
|
this.dc_command.FieldName = "DC_COMMAND";
|
|
|
this.dc_command.Name = "dc_command";
|
|
|
this.dc_command.Visible = true;
|
|
|
- this.dc_command.VisibleIndex = 2;
|
|
|
+ this.dc_command.VisibleIndex = 3;
|
|
|
this.dc_command.Width = 768;
|
|
|
//
|
|
|
// PageDeviceKind
|
|
|
@@ -464,17 +559,73 @@ namespace UAS_DeviceMonitor
|
|
|
//
|
|
|
// PagePollingSetting
|
|
|
//
|
|
|
+ this.PagePollingSetting.Controls.Add(this.ButtonDeleteCommandSet);
|
|
|
+ this.PagePollingSetting.Controls.Add(this.ButtonNewCommandSet);
|
|
|
+ this.PagePollingSetting.Controls.Add(this.ButtonSaveCommandSet);
|
|
|
+ this.PagePollingSetting.Controls.Add(this.ButtonPausePolling);
|
|
|
+ this.PagePollingSetting.Controls.Add(this.ButtonStartPolling);
|
|
|
this.PagePollingSetting.Controls.Add(this.GridPollingSetting);
|
|
|
this.PagePollingSetting.Name = "PagePollingSetting";
|
|
|
this.PagePollingSetting.PageVisible = false;
|
|
|
this.PagePollingSetting.Size = new System.Drawing.Size(1027, 577);
|
|
|
this.PagePollingSetting.Text = "xtraTabPage1";
|
|
|
+ this.PagePollingSetting.VisibleChanged += new System.EventHandler(this.PagePollingSetting_VisibleChanged);
|
|
|
+ //
|
|
|
+ // ButtonDeleteCommandSet
|
|
|
+ //
|
|
|
+ this.ButtonDeleteCommandSet.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
|
|
|
+ this.ButtonDeleteCommandSet.Grid = null;
|
|
|
+ this.ButtonDeleteCommandSet.Location = new System.Drawing.Point(816, 549);
|
|
|
+ this.ButtonDeleteCommandSet.Name = "ButtonDeleteCommandSet";
|
|
|
+ this.ButtonDeleteCommandSet.Size = new System.Drawing.Size(64, 23);
|
|
|
+ this.ButtonDeleteCommandSet.TabIndex = 9;
|
|
|
+ this.ButtonDeleteCommandSet.Text = "删除";
|
|
|
+ //
|
|
|
+ // ButtonNewCommandSet
|
|
|
+ //
|
|
|
+ this.ButtonNewCommandSet.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
|
|
|
+ this.ButtonNewCommandSet.Grid = null;
|
|
|
+ this.ButtonNewCommandSet.Location = new System.Drawing.Point(886, 549);
|
|
|
+ this.ButtonNewCommandSet.Name = "ButtonNewCommandSet";
|
|
|
+ this.ButtonNewCommandSet.Size = new System.Drawing.Size(64, 23);
|
|
|
+ this.ButtonNewCommandSet.TabIndex = 8;
|
|
|
+ this.ButtonNewCommandSet.Text = "新增";
|
|
|
+ //
|
|
|
+ // ButtonSaveCommandSet
|
|
|
+ //
|
|
|
+ this.ButtonSaveCommandSet.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
|
|
|
+ this.ButtonSaveCommandSet.Grid = null;
|
|
|
+ this.ButtonSaveCommandSet.HandlerOtherFirst = false;
|
|
|
+ this.ButtonSaveCommandSet.Location = new System.Drawing.Point(956, 549);
|
|
|
+ this.ButtonSaveCommandSet.Name = "ButtonSaveCommandSet";
|
|
|
+ this.ButtonSaveCommandSet.Size = new System.Drawing.Size(64, 23);
|
|
|
+ this.ButtonSaveCommandSet.TabIndex = 7;
|
|
|
+ this.ButtonSaveCommandSet.Text = "保存";
|
|
|
+ //
|
|
|
+ // ButtonPausePolling
|
|
|
+ //
|
|
|
+ this.ButtonPausePolling.Location = new System.Drawing.Point(734, 549);
|
|
|
+ this.ButtonPausePolling.Name = "ButtonPausePolling";
|
|
|
+ this.ButtonPausePolling.Size = new System.Drawing.Size(75, 23);
|
|
|
+ this.ButtonPausePolling.TabIndex = 2;
|
|
|
+ this.ButtonPausePolling.Text = "暂停轮询";
|
|
|
+ this.ButtonPausePolling.Click += new System.EventHandler(this.ButtonPausePolling_Click);
|
|
|
+ //
|
|
|
+ // ButtonStartPolling
|
|
|
+ //
|
|
|
+ this.ButtonStartPolling.Location = new System.Drawing.Point(653, 549);
|
|
|
+ this.ButtonStartPolling.Name = "ButtonStartPolling";
|
|
|
+ this.ButtonStartPolling.Size = new System.Drawing.Size(75, 23);
|
|
|
+ this.ButtonStartPolling.TabIndex = 1;
|
|
|
+ this.ButtonStartPolling.Text = "开启轮询";
|
|
|
+ this.ButtonStartPolling.Click += new System.EventHandler(this.ButtonStartPolling_Click);
|
|
|
//
|
|
|
// GridPollingSetting
|
|
|
//
|
|
|
this.GridPollingSetting.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
|
|
|
| System.Windows.Forms.AnchorStyles.Left)
|
|
|
| System.Windows.Forms.AnchorStyles.Right)));
|
|
|
+ this.GridPollingSetting.Condition = null;
|
|
|
this.GridPollingSetting.GetDataSQL = null;
|
|
|
this.GridPollingSetting.ID = null;
|
|
|
this.GridPollingSetting.InsertSQL = null;
|
|
|
@@ -483,9 +634,10 @@ namespace UAS_DeviceMonitor
|
|
|
this.GridPollingSetting.MenuManager = this.RibbonNav;
|
|
|
this.GridPollingSetting.Name = "GridPollingSetting";
|
|
|
this.GridPollingSetting.RepositoryItems.AddRange(new DevExpress.XtraEditors.Repository.RepositoryItem[] {
|
|
|
- this.dpc_enableCheckEdit});
|
|
|
+ this.dpc_enableCheckEdit,
|
|
|
+ this.PollingSetItemLookUpEdit});
|
|
|
this.GridPollingSetting.RowCount = 0;
|
|
|
- this.GridPollingSetting.Size = new System.Drawing.Size(1027, 582);
|
|
|
+ this.GridPollingSetting.Size = new System.Drawing.Size(1027, 544);
|
|
|
this.GridPollingSetting.TabIndex = 0;
|
|
|
this.GridPollingSetting.TableName = null;
|
|
|
this.GridPollingSetting.ViewCollection.AddRange(new DevExpress.XtraGrid.Views.Base.BaseView[] {
|
|
|
@@ -505,6 +657,7 @@ namespace UAS_DeviceMonitor
|
|
|
this.dpc_status,
|
|
|
this.dpc_remark});
|
|
|
this.GridViewPollSetting.GridControl = this.GridPollingSetting;
|
|
|
+ this.GridViewPollSetting.IndicatorWidth = 30;
|
|
|
this.GridViewPollSetting.Name = "GridViewPollSetting";
|
|
|
this.GridViewPollSetting.OptionsSelection.MultiSelect = true;
|
|
|
//
|
|
|
@@ -549,11 +702,22 @@ 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;
|
|
|
this.dpc_dccode.VisibleIndex = 4;
|
|
|
//
|
|
|
+ // PollingSetItemLookUpEdit
|
|
|
+ //
|
|
|
+ this.PollingSetItemLookUpEdit.AutoHeight = false;
|
|
|
+ this.PollingSetItemLookUpEdit.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] {
|
|
|
+ new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)});
|
|
|
+ this.PollingSetItemLookUpEdit.Name = "PollingSetItemLookUpEdit";
|
|
|
+ this.PollingSetItemLookUpEdit.NullText = "";
|
|
|
+ this.PollingSetItemLookUpEdit.ShowFooter = false;
|
|
|
+ this.PollingSetItemLookUpEdit.ShowHeader = false;
|
|
|
+ //
|
|
|
// dpc_function
|
|
|
//
|
|
|
this.dpc_function.Caption = "解析函数";
|
|
|
@@ -599,24 +763,61 @@ namespace UAS_DeviceMonitor
|
|
|
//
|
|
|
// PagePolling
|
|
|
//
|
|
|
+ this.PagePolling.Controls.Add(this.ButtonAddPolling);
|
|
|
+ this.PagePolling.Controls.Add(this.ButtonDeletePolling);
|
|
|
+ this.PagePolling.Controls.Add(this.ButtonSavePolling);
|
|
|
this.PagePolling.Controls.Add(this.GridPolling);
|
|
|
this.PagePolling.Name = "PagePolling";
|
|
|
this.PagePolling.PageVisible = false;
|
|
|
this.PagePolling.Size = new System.Drawing.Size(1027, 577);
|
|
|
this.PagePolling.Text = "xtraTabPage1";
|
|
|
//
|
|
|
+ // ButtonAddPolling
|
|
|
+ //
|
|
|
+ this.ButtonAddPolling.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
|
|
|
+ this.ButtonAddPolling.Grid = null;
|
|
|
+ this.ButtonAddPolling.Location = new System.Drawing.Point(878, 551);
|
|
|
+ this.ButtonAddPolling.Name = "ButtonAddPolling";
|
|
|
+ this.ButtonAddPolling.Size = new System.Drawing.Size(64, 23);
|
|
|
+ this.ButtonAddPolling.TabIndex = 9;
|
|
|
+ this.ButtonAddPolling.Text = "新增";
|
|
|
+ //
|
|
|
+ // ButtonDeletePolling
|
|
|
+ //
|
|
|
+ this.ButtonDeletePolling.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
|
|
|
+ this.ButtonDeletePolling.Grid = null;
|
|
|
+ this.ButtonDeletePolling.Location = new System.Drawing.Point(807, 551);
|
|
|
+ this.ButtonDeletePolling.Name = "ButtonDeletePolling";
|
|
|
+ this.ButtonDeletePolling.Size = new System.Drawing.Size(64, 23);
|
|
|
+ this.ButtonDeletePolling.TabIndex = 8;
|
|
|
+ this.ButtonDeletePolling.Text = "删除";
|
|
|
+ //
|
|
|
+ // ButtonSavePolling
|
|
|
+ //
|
|
|
+ this.ButtonSavePolling.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
|
|
|
+ this.ButtonSavePolling.Grid = null;
|
|
|
+ this.ButtonSavePolling.HandlerOtherFirst = false;
|
|
|
+ this.ButtonSavePolling.Location = new System.Drawing.Point(949, 551);
|
|
|
+ this.ButtonSavePolling.Name = "ButtonSavePolling";
|
|
|
+ this.ButtonSavePolling.Size = new System.Drawing.Size(64, 23);
|
|
|
+ this.ButtonSavePolling.TabIndex = 7;
|
|
|
+ this.ButtonSavePolling.Text = "保存";
|
|
|
+ //
|
|
|
// GridPolling
|
|
|
//
|
|
|
- this.GridPolling.Dock = System.Windows.Forms.DockStyle.Fill;
|
|
|
+ this.GridPolling.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
|
|
|
+ | System.Windows.Forms.AnchorStyles.Left)
|
|
|
+ | System.Windows.Forms.AnchorStyles.Right)));
|
|
|
+ this.GridPolling.Condition = null;
|
|
|
this.GridPolling.GetDataSQL = null;
|
|
|
this.GridPolling.ID = null;
|
|
|
this.GridPolling.InsertSQL = null;
|
|
|
- this.GridPolling.Location = new System.Drawing.Point(0, 0);
|
|
|
+ this.GridPolling.Location = new System.Drawing.Point(3, -3);
|
|
|
this.GridPolling.MainView = this.GridViewPolling;
|
|
|
this.GridPolling.MenuManager = this.RibbonNav;
|
|
|
this.GridPolling.Name = "GridPolling";
|
|
|
this.GridPolling.RowCount = 0;
|
|
|
- this.GridPolling.Size = new System.Drawing.Size(1027, 577);
|
|
|
+ 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[] {
|
|
|
@@ -632,12 +833,13 @@ namespace UAS_DeviceMonitor
|
|
|
this.pl_dccode,
|
|
|
this.pl_remark});
|
|
|
this.GridViewPolling.GridControl = this.GridPolling;
|
|
|
+ this.GridViewPolling.IndicatorWidth = 30;
|
|
|
this.GridViewPolling.Name = "GridViewPolling";
|
|
|
//
|
|
|
// pl_id
|
|
|
//
|
|
|
this.pl_id.Caption = "ID";
|
|
|
- this.pl_id.FieldName = "pl_id";
|
|
|
+ this.pl_id.FieldName = "PL_ID";
|
|
|
this.pl_id.Name = "pl_id";
|
|
|
//
|
|
|
// pl_code
|
|
|
@@ -685,11 +887,11 @@ namespace UAS_DeviceMonitor
|
|
|
this.AllowFormGlass = DevExpress.Utils.DefaultBoolean.False;
|
|
|
this.Appearance.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(192)))), ((int)(((byte)(128)))));
|
|
|
this.Appearance.Options.UseForeColor = true;
|
|
|
- this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 14F);
|
|
|
- this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
|
|
+ this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None;
|
|
|
this.ClientSize = new System.Drawing.Size(1033, 711);
|
|
|
this.Controls.Add(this.MainTabControl);
|
|
|
this.Controls.Add(this.RibbonNav);
|
|
|
+ this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
|
|
|
this.Name = "Main";
|
|
|
this.Ribbon = this.RibbonNav;
|
|
|
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
|
|
|
@@ -702,11 +904,15 @@ namespace UAS_DeviceMonitor
|
|
|
((System.ComponentModel.ISupportInitialize)(this.GridDeviceList)).EndInit();
|
|
|
((System.ComponentModel.ISupportInitialize)(this.GridViewDeviceList)).EndInit();
|
|
|
this.PageCommandSet.ResumeLayout(false);
|
|
|
+ this.PageCommandSet.PerformLayout();
|
|
|
+ ((System.ComponentModel.ISupportInitialize)(this.Brand.Properties)).EndInit();
|
|
|
((System.ComponentModel.ISupportInitialize)(this.GridCommandSetting)).EndInit();
|
|
|
((System.ComponentModel.ISupportInitialize)(this.GridViewCommandSet)).EndInit();
|
|
|
+ ((System.ComponentModel.ISupportInitialize)(this.CheckEditCommandSet)).EndInit();
|
|
|
this.PagePollingSetting.ResumeLayout(false);
|
|
|
((System.ComponentModel.ISupportInitialize)(this.GridPollingSetting)).EndInit();
|
|
|
((System.ComponentModel.ISupportInitialize)(this.GridViewPollSetting)).EndInit();
|
|
|
+ ((System.ComponentModel.ISupportInitialize)(this.PollingSetItemLookUpEdit)).EndInit();
|
|
|
((System.ComponentModel.ISupportInitialize)(this.dpc_enableCheckEdit)).EndInit();
|
|
|
this.PagePolling.ResumeLayout(false);
|
|
|
((System.ComponentModel.ISupportInitialize)(this.GridPolling)).EndInit();
|
|
|
@@ -737,7 +943,6 @@ namespace UAS_DeviceMonitor
|
|
|
private DevExpress.XtraBars.BarButtonItem ButtionPolling;
|
|
|
private DevExpress.XtraTab.XtraTabPage PagePollingSetting;
|
|
|
private DevExpress.XtraTab.XtraTabPage PagePolling;
|
|
|
- private DevExpress.XtraGrid.Views.Grid.GridView GridViewDeviceList;
|
|
|
private DevExpress.XtraGrid.Columns.GridColumn de_id;
|
|
|
private DevExpress.XtraGrid.Columns.GridColumn de_code;
|
|
|
private DevExpress.XtraGrid.Columns.GridColumn de_name;
|
|
|
@@ -750,15 +955,12 @@ namespace UAS_DeviceMonitor
|
|
|
private DevExpress.XtraGrid.Columns.GridColumn de_wccode;
|
|
|
private CustomerControl.PagingControl.PageControl PageControlDeviceList;
|
|
|
private AutoDataGridControl GridCommandSetting;
|
|
|
- private DevExpress.XtraGrid.Views.Grid.GridView GridViewCommandSet;
|
|
|
private DevExpress.XtraGrid.Columns.GridColumn dc_id;
|
|
|
private DevExpress.XtraGrid.Columns.GridColumn dc_code;
|
|
|
private DevExpress.XtraGrid.Columns.GridColumn dc_name;
|
|
|
private DevExpress.XtraGrid.Columns.GridColumn dc_command;
|
|
|
private AutoDataGridControl GridPolling;
|
|
|
- private DevExpress.XtraGrid.Views.Grid.GridView GridViewPolling;
|
|
|
private AutoDataGridControl GridPollingSetting;
|
|
|
- private DevExpress.XtraGrid.Views.Grid.GridView GridViewPollSetting;
|
|
|
private DevExpress.XtraGrid.Columns.GridColumn pl_id;
|
|
|
private DevExpress.XtraGrid.Columns.GridColumn pl_code;
|
|
|
private DevExpress.XtraGrid.Columns.GridColumn pl_name;
|
|
|
@@ -776,6 +978,25 @@ namespace UAS_DeviceMonitor
|
|
|
private DevExpress.XtraGrid.Columns.GridColumn dpc_status;
|
|
|
private DevExpress.XtraGrid.Columns.GridColumn dpc_remark;
|
|
|
private DevExpress.XtraEditors.Repository.RepositoryItemCheckEdit dpc_enableCheckEdit;
|
|
|
- private CustomerControl.Button.ButtonAddRow ButtonSaveCommand;
|
|
|
+ private CustomerControl.Button.ButtonSaveGrid ButtonSaveCommand;
|
|
|
+ private SimpleButton ButtonNewCommand;
|
|
|
+ private GridViewWithSerialNum GridViewDeviceList;
|
|
|
+ private GridViewWithSerialNum GridViewCommandSet;
|
|
|
+ private GridViewWithSerialNum GridViewPolling;
|
|
|
+ private GridViewWithSerialNum GridViewPollSetting;
|
|
|
+ private LabelControl Brand_label;
|
|
|
+ private ComboBoxEdit Brand;
|
|
|
+ private DevExpress.XtraGrid.Columns.GridColumn Choose;
|
|
|
+ private DevExpress.XtraEditors.Repository.RepositoryItemCheckEdit CheckEditCommandSet;
|
|
|
+ private CustomerControl.Button.ButtonDeleteRow ButtonDeleteCommand;
|
|
|
+ private CustomerControl.Button.ButtonDeleteRow ButtonDeletePolling;
|
|
|
+ private CustomerControl.Button.ButtonSaveGrid ButtonSavePolling;
|
|
|
+ private CustomerControl.Button.ButtonAddRow ButtonAddPolling;
|
|
|
+ private SimpleButton ButtonPausePolling;
|
|
|
+ private SimpleButton ButtonStartPolling;
|
|
|
+ private CustomerControl.Button.ButtonDeleteRow ButtonDeleteCommandSet;
|
|
|
+ private CustomerControl.Button.ButtonAddRow ButtonNewCommandSet;
|
|
|
+ private CustomerControl.Button.ButtonSaveGrid ButtonSaveCommandSet;
|
|
|
+ private DevExpress.XtraEditors.Repository.RepositoryItemLookUpEdit PollingSetItemLookUpEdit;
|
|
|
}
|
|
|
}
|