|
|
@@ -61,6 +61,7 @@ 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.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();
|
|
|
@@ -76,6 +77,11 @@ 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 UAS_DeviceMonitor.CustomerControl.GridViewWithSerialNum.GridViewWithSerialNum();
|
|
|
this.dpc_id = new DevExpress.XtraGrid.Columns.GridColumn();
|
|
|
@@ -84,12 +90,16 @@ namespace UAS_DeviceMonitor
|
|
|
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 UAS_DeviceMonitor.CustomerControl.GridViewWithSerialNum.GridViewWithSerialNum();
|
|
|
this.pl_id = new DevExpress.XtraGrid.Columns.GridColumn();
|
|
|
@@ -98,7 +108,6 @@ namespace UAS_DeviceMonitor
|
|
|
this.pl_type = new DevExpress.XtraGrid.Columns.GridColumn();
|
|
|
this.pl_dccode = new DevExpress.XtraGrid.Columns.GridColumn();
|
|
|
this.pl_remark = new DevExpress.XtraGrid.Columns.GridColumn();
|
|
|
- this.ButtonDeleteCommand = new UAS_DeviceMonitor.CustomerControl.Button.ButtonDeleteRow();
|
|
|
((System.ComponentModel.ISupportInitialize)(this.RibbonNav)).BeginInit();
|
|
|
((System.ComponentModel.ISupportInitialize)(this.MainTabControl)).BeginInit();
|
|
|
this.MainTabControl.SuspendLayout();
|
|
|
@@ -113,6 +122,7 @@ namespace UAS_DeviceMonitor
|
|
|
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();
|
|
|
@@ -396,6 +406,16 @@ namespace UAS_DeviceMonitor
|
|
|
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);
|
|
|
@@ -537,11 +557,65 @@ 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.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
|
|
|
//
|
|
|
@@ -557,9 +631,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, 545);
|
|
|
+ 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[] {
|
|
|
@@ -624,11 +699,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 = "解析函数";
|
|
|
@@ -674,25 +760,60 @@ 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.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.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.Dock = System.Windows.Forms.DockStyle.Fill;
|
|
|
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[] {
|
|
|
@@ -714,7 +835,7 @@ namespace UAS_DeviceMonitor
|
|
|
// 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
|
|
|
@@ -757,15 +878,6 @@ namespace UAS_DeviceMonitor
|
|
|
this.pl_remark.Visible = true;
|
|
|
this.pl_remark.VisibleIndex = 4;
|
|
|
//
|
|
|
- // ButtonDeleteCommand
|
|
|
- //
|
|
|
- this.ButtonDeleteCommand.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
|
|
|
- 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 = "删除";
|
|
|
- //
|
|
|
// Main
|
|
|
//
|
|
|
this.AllowFormGlass = DevExpress.Utils.DefaultBoolean.False;
|
|
|
@@ -796,6 +908,7 @@ namespace UAS_DeviceMonitor
|
|
|
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();
|
|
|
@@ -872,5 +985,14 @@ namespace UAS_DeviceMonitor
|
|
|
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;
|
|
|
}
|
|
|
}
|