|
|
@@ -45,8 +45,6 @@ namespace UAS_DeviceMonitor
|
|
|
this.RibDeviceInf = new DevExpress.XtraBars.Ribbon.RibbonPageGroup();
|
|
|
this.DeviceCommandSetting = new DevExpress.XtraBars.Ribbon.RibbonPage();
|
|
|
this.RibDeviceCommand = new DevExpress.XtraBars.Ribbon.RibbonPageGroup();
|
|
|
- this.ribbonPage2 = new DevExpress.XtraBars.Ribbon.RibbonPage();
|
|
|
- this.RibDeviceBadInf = new DevExpress.XtraBars.Ribbon.RibbonPageGroup();
|
|
|
this.ribbonStatusBar = new DevExpress.XtraBars.Ribbon.RibbonStatusBar();
|
|
|
this.ribbonPageGroup1 = new DevExpress.XtraBars.Ribbon.RibbonPageGroup();
|
|
|
this.ribbonPage1 = new DevExpress.XtraBars.Ribbon.RibbonPage();
|
|
|
@@ -66,7 +64,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.GridCommandSetting = new DevExpress.XtraGrid.GridControl();
|
|
|
+ this.GridCommandSetting = new UAS_DeviceMonitor.CustomerControl.AutoDataGridControl.AutoDataGridControl();
|
|
|
this.gridView2 = new DevExpress.XtraGrid.Views.Grid.GridView();
|
|
|
this.dc_id = new DevExpress.XtraGrid.Columns.GridColumn();
|
|
|
this.dc_code = new DevExpress.XtraGrid.Columns.GridColumn();
|
|
|
@@ -75,10 +73,7 @@ namespace UAS_DeviceMonitor
|
|
|
this.PageDeviceKind = new DevExpress.XtraTab.XtraTabPage();
|
|
|
this.PageDeviceStatus = new DevExpress.XtraTab.XtraTabPage();
|
|
|
this.PagePollingSetting = new DevExpress.XtraTab.XtraTabPage();
|
|
|
- this.simpleButton3 = new DevExpress.XtraEditors.SimpleButton();
|
|
|
- this.simpleButton2 = new DevExpress.XtraEditors.SimpleButton();
|
|
|
- this.simpleButton1 = new DevExpress.XtraEditors.SimpleButton();
|
|
|
- this.GridPollingSetting = new DevExpress.XtraGrid.GridControl();
|
|
|
+ this.GridPollingSetting = new UAS_DeviceMonitor.CustomerControl.AutoDataGridControl.AutoDataGridControl();
|
|
|
this.GridViewPollSetting = new DevExpress.XtraGrid.Views.Grid.GridView();
|
|
|
this.dpc_id = new DevExpress.XtraGrid.Columns.GridColumn();
|
|
|
this.dpc_decode = new DevExpress.XtraGrid.Columns.GridColumn();
|
|
|
@@ -88,12 +83,12 @@ namespace UAS_DeviceMonitor
|
|
|
this.dpc_dccode = new DevExpress.XtraGrid.Columns.GridColumn();
|
|
|
this.dpc_function = new DevExpress.XtraGrid.Columns.GridColumn();
|
|
|
this.dpc_enable = new DevExpress.XtraGrid.Columns.GridColumn();
|
|
|
- this.repositoryItemCheckEdit1 = new DevExpress.XtraEditors.Repository.RepositoryItemCheckEdit();
|
|
|
+ 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.GridPolling = new DevExpress.XtraGrid.GridControl();
|
|
|
- this.gridView3 = new DevExpress.XtraGrid.Views.Grid.GridView();
|
|
|
+ this.GridPolling = new UAS_DeviceMonitor.CustomerControl.AutoDataGridControl.AutoDataGridControl();
|
|
|
+ this.GridViewPolling = new DevExpress.XtraGrid.Views.Grid.GridView();
|
|
|
this.pl_id = new DevExpress.XtraGrid.Columns.GridColumn();
|
|
|
this.pl_code = new DevExpress.XtraGrid.Columns.GridColumn();
|
|
|
this.pl_name = new DevExpress.XtraGrid.Columns.GridColumn();
|
|
|
@@ -112,10 +107,10 @@ namespace UAS_DeviceMonitor
|
|
|
this.PagePollingSetting.SuspendLayout();
|
|
|
((System.ComponentModel.ISupportInitialize)(this.GridPollingSetting)).BeginInit();
|
|
|
((System.ComponentModel.ISupportInitialize)(this.GridViewPollSetting)).BeginInit();
|
|
|
- ((System.ComponentModel.ISupportInitialize)(this.repositoryItemCheckEdit1)).BeginInit();
|
|
|
+ ((System.ComponentModel.ISupportInitialize)(this.dpc_enableCheckEdit)).BeginInit();
|
|
|
this.PagePolling.SuspendLayout();
|
|
|
((System.ComponentModel.ISupportInitialize)(this.GridPolling)).BeginInit();
|
|
|
- ((System.ComponentModel.ISupportInitialize)(this.gridView3)).BeginInit();
|
|
|
+ ((System.ComponentModel.ISupportInitialize)(this.GridViewPolling)).BeginInit();
|
|
|
this.SuspendLayout();
|
|
|
//
|
|
|
// RibbonNav
|
|
|
@@ -139,8 +134,7 @@ namespace UAS_DeviceMonitor
|
|
|
this.RibbonNav.Name = "RibbonNav";
|
|
|
this.RibbonNav.Pages.AddRange(new DevExpress.XtraBars.Ribbon.RibbonPage[] {
|
|
|
this.DeviceInf,
|
|
|
- this.DeviceCommandSetting,
|
|
|
- this.ribbonPage2});
|
|
|
+ this.DeviceCommandSetting});
|
|
|
this.RibbonNav.Size = new System.Drawing.Size(1033, 128);
|
|
|
this.RibbonNav.StatusBar = this.ribbonStatusBar;
|
|
|
//
|
|
|
@@ -260,19 +254,6 @@ namespace UAS_DeviceMonitor
|
|
|
this.RibDeviceCommand.Name = "RibDeviceCommand";
|
|
|
this.RibDeviceCommand.Text = "ribbonPageGroup3";
|
|
|
//
|
|
|
- // ribbonPage2
|
|
|
- //
|
|
|
- this.ribbonPage2.Groups.AddRange(new DevExpress.XtraBars.Ribbon.RibbonPageGroup[] {
|
|
|
- this.RibDeviceBadInf});
|
|
|
- this.ribbonPage2.Name = "ribbonPage2";
|
|
|
- this.ribbonPage2.Text = "设备故障监控";
|
|
|
- //
|
|
|
- // RibDeviceBadInf
|
|
|
- //
|
|
|
- this.RibDeviceBadInf.ItemLinks.Add(this.barButtonItem5);
|
|
|
- this.RibDeviceBadInf.Name = "RibDeviceBadInf";
|
|
|
- this.RibDeviceBadInf.Text = "ribbonPageGroup4";
|
|
|
- //
|
|
|
// ribbonStatusBar
|
|
|
//
|
|
|
this.ribbonStatusBar.Location = new System.Drawing.Point(0, 680);
|
|
|
@@ -451,10 +432,12 @@ namespace UAS_DeviceMonitor
|
|
|
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.GetDataSQL = null;
|
|
|
this.GridCommandSetting.Location = new System.Drawing.Point(0, -1);
|
|
|
this.GridCommandSetting.MainView = this.gridView2;
|
|
|
this.GridCommandSetting.MenuManager = this.RibbonNav;
|
|
|
this.GridCommandSetting.Name = "GridCommandSetting";
|
|
|
+ this.GridCommandSetting.RowCount = 0;
|
|
|
this.GridCommandSetting.Size = new System.Drawing.Size(1027, 511);
|
|
|
this.GridCommandSetting.TabIndex = 1;
|
|
|
this.GridCommandSetting.ViewCollection.AddRange(new DevExpress.XtraGrid.Views.Base.BaseView[] {
|
|
|
@@ -518,50 +501,22 @@ namespace UAS_DeviceMonitor
|
|
|
//
|
|
|
// PagePollingSetting
|
|
|
//
|
|
|
- this.PagePollingSetting.Controls.Add(this.simpleButton3);
|
|
|
- this.PagePollingSetting.Controls.Add(this.simpleButton2);
|
|
|
- this.PagePollingSetting.Controls.Add(this.simpleButton1);
|
|
|
this.PagePollingSetting.Controls.Add(this.GridPollingSetting);
|
|
|
this.PagePollingSetting.Name = "PagePollingSetting";
|
|
|
this.PagePollingSetting.PageVisible = false;
|
|
|
this.PagePollingSetting.Size = new System.Drawing.Size(1027, 546);
|
|
|
this.PagePollingSetting.Text = "xtraTabPage1";
|
|
|
//
|
|
|
- // simpleButton3
|
|
|
- //
|
|
|
- this.simpleButton3.Location = new System.Drawing.Point(787, 520);
|
|
|
- this.simpleButton3.Name = "simpleButton3";
|
|
|
- this.simpleButton3.Size = new System.Drawing.Size(75, 23);
|
|
|
- this.simpleButton3.TabIndex = 3;
|
|
|
- this.simpleButton3.Text = "simpleButton3";
|
|
|
- this.simpleButton3.Click += new System.EventHandler(this.simpleButton3_Click);
|
|
|
- //
|
|
|
- // simpleButton2
|
|
|
- //
|
|
|
- this.simpleButton2.Location = new System.Drawing.Point(868, 520);
|
|
|
- this.simpleButton2.Name = "simpleButton2";
|
|
|
- this.simpleButton2.Size = new System.Drawing.Size(75, 23);
|
|
|
- this.simpleButton2.TabIndex = 2;
|
|
|
- this.simpleButton2.Text = "simpleButton2";
|
|
|
- this.simpleButton2.Click += new System.EventHandler(this.simpleButton2_Click);
|
|
|
- //
|
|
|
- // simpleButton1
|
|
|
- //
|
|
|
- this.simpleButton1.Location = new System.Drawing.Point(949, 520);
|
|
|
- this.simpleButton1.Name = "simpleButton1";
|
|
|
- this.simpleButton1.Size = new System.Drawing.Size(75, 23);
|
|
|
- this.simpleButton1.TabIndex = 1;
|
|
|
- this.simpleButton1.Text = "simpleButton1";
|
|
|
- this.simpleButton1.Click += new System.EventHandler(this.simpleButton1_Click);
|
|
|
- //
|
|
|
// GridPollingSetting
|
|
|
//
|
|
|
+ this.GridPollingSetting.GetDataSQL = null;
|
|
|
this.GridPollingSetting.Location = new System.Drawing.Point(0, 0);
|
|
|
this.GridPollingSetting.MainView = this.GridViewPollSetting;
|
|
|
this.GridPollingSetting.MenuManager = this.RibbonNav;
|
|
|
this.GridPollingSetting.Name = "GridPollingSetting";
|
|
|
this.GridPollingSetting.RepositoryItems.AddRange(new DevExpress.XtraEditors.Repository.RepositoryItem[] {
|
|
|
- this.repositoryItemCheckEdit1});
|
|
|
+ this.dpc_enableCheckEdit});
|
|
|
+ this.GridPollingSetting.RowCount = 0;
|
|
|
this.GridPollingSetting.Size = new System.Drawing.Size(1027, 514);
|
|
|
this.GridPollingSetting.TabIndex = 0;
|
|
|
this.GridPollingSetting.ViewCollection.AddRange(new DevExpress.XtraGrid.Views.Base.BaseView[] {
|
|
|
@@ -582,6 +537,7 @@ namespace UAS_DeviceMonitor
|
|
|
this.dpc_remark});
|
|
|
this.GridViewPollSetting.GridControl = this.GridPollingSetting;
|
|
|
this.GridViewPollSetting.Name = "GridViewPollSetting";
|
|
|
+ this.GridViewPollSetting.OptionsSelection.MultiSelect = true;
|
|
|
//
|
|
|
// dpc_id
|
|
|
//
|
|
|
@@ -640,17 +596,21 @@ namespace UAS_DeviceMonitor
|
|
|
// dpc_enable
|
|
|
//
|
|
|
this.dpc_enable.Caption = "是否启用";
|
|
|
- this.dpc_enable.ColumnEdit = this.repositoryItemCheckEdit1;
|
|
|
+ this.dpc_enable.ColumnEdit = this.dpc_enableCheckEdit;
|
|
|
+ this.dpc_enable.FieldName = "DPC_ENABLE";
|
|
|
this.dpc_enable.Name = "dpc_enable";
|
|
|
this.dpc_enable.Visible = true;
|
|
|
this.dpc_enable.VisibleIndex = 6;
|
|
|
//
|
|
|
- // repositoryItemCheckEdit1
|
|
|
+ // dpc_enableCheckEdit
|
|
|
//
|
|
|
- this.repositoryItemCheckEdit1.AutoHeight = false;
|
|
|
- this.repositoryItemCheckEdit1.Name = "repositoryItemCheckEdit1";
|
|
|
- this.repositoryItemCheckEdit1.PictureChecked = ((System.Drawing.Image)(resources.GetObject("repositoryItemCheckEdit1.PictureChecked")));
|
|
|
- this.repositoryItemCheckEdit1.PictureUnchecked = ((System.Drawing.Image)(resources.GetObject("repositoryItemCheckEdit1.PictureUnchecked")));
|
|
|
+ this.dpc_enableCheckEdit.AutoHeight = false;
|
|
|
+ this.dpc_enableCheckEdit.Name = "dpc_enableCheckEdit";
|
|
|
+ this.dpc_enableCheckEdit.NullStyle = DevExpress.XtraEditors.Controls.StyleIndeterminate.Unchecked;
|
|
|
+ this.dpc_enableCheckEdit.PictureChecked = ((System.Drawing.Image)(resources.GetObject("dpc_enableCheckEdit.PictureChecked")));
|
|
|
+ this.dpc_enableCheckEdit.PictureUnchecked = ((System.Drawing.Image)(resources.GetObject("dpc_enableCheckEdit.PictureUnchecked")));
|
|
|
+ this.dpc_enableCheckEdit.ValueChecked = "-1";
|
|
|
+ this.dpc_enableCheckEdit.ValueUnchecked = "0";
|
|
|
//
|
|
|
// dpc_status
|
|
|
//
|
|
|
@@ -679,26 +639,28 @@ namespace UAS_DeviceMonitor
|
|
|
// GridPolling
|
|
|
//
|
|
|
this.GridPolling.Dock = System.Windows.Forms.DockStyle.Fill;
|
|
|
+ this.GridPolling.GetDataSQL = null;
|
|
|
this.GridPolling.Location = new System.Drawing.Point(0, 0);
|
|
|
- this.GridPolling.MainView = this.gridView3;
|
|
|
+ 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, 546);
|
|
|
this.GridPolling.TabIndex = 0;
|
|
|
this.GridPolling.ViewCollection.AddRange(new DevExpress.XtraGrid.Views.Base.BaseView[] {
|
|
|
- this.gridView3});
|
|
|
+ this.GridViewPolling});
|
|
|
//
|
|
|
- // gridView3
|
|
|
+ // GridViewPolling
|
|
|
//
|
|
|
- this.gridView3.Columns.AddRange(new DevExpress.XtraGrid.Columns.GridColumn[] {
|
|
|
+ this.GridViewPolling.Columns.AddRange(new DevExpress.XtraGrid.Columns.GridColumn[] {
|
|
|
this.pl_id,
|
|
|
this.pl_code,
|
|
|
this.pl_name,
|
|
|
this.pl_type,
|
|
|
this.pl_dccode,
|
|
|
this.pl_remark});
|
|
|
- this.gridView3.GridControl = this.GridPolling;
|
|
|
- this.gridView3.Name = "gridView3";
|
|
|
+ this.GridViewPolling.GridControl = this.GridPolling;
|
|
|
+ this.GridViewPolling.Name = "GridViewPolling";
|
|
|
//
|
|
|
// pl_id
|
|
|
//
|
|
|
@@ -775,10 +737,10 @@ namespace UAS_DeviceMonitor
|
|
|
this.PagePollingSetting.ResumeLayout(false);
|
|
|
((System.ComponentModel.ISupportInitialize)(this.GridPollingSetting)).EndInit();
|
|
|
((System.ComponentModel.ISupportInitialize)(this.GridViewPollSetting)).EndInit();
|
|
|
- ((System.ComponentModel.ISupportInitialize)(this.repositoryItemCheckEdit1)).EndInit();
|
|
|
+ ((System.ComponentModel.ISupportInitialize)(this.dpc_enableCheckEdit)).EndInit();
|
|
|
this.PagePolling.ResumeLayout(false);
|
|
|
((System.ComponentModel.ISupportInitialize)(this.GridPolling)).EndInit();
|
|
|
- ((System.ComponentModel.ISupportInitialize)(this.gridView3)).EndInit();
|
|
|
+ ((System.ComponentModel.ISupportInitialize)(this.GridViewPolling)).EndInit();
|
|
|
this.ResumeLayout(false);
|
|
|
this.PerformLayout();
|
|
|
|
|
|
@@ -799,11 +761,9 @@ namespace UAS_DeviceMonitor
|
|
|
private DevExpress.XtraTab.XtraTabControl MainTabControl;
|
|
|
private DevExpress.XtraBars.BarButtonItem ButtonDeviceStatus;
|
|
|
private DevExpress.XtraBars.Ribbon.RibbonPage DeviceCommandSetting;
|
|
|
- private DevExpress.XtraBars.Ribbon.RibbonPage ribbonPage2;
|
|
|
private DevExpress.XtraBars.BarButtonItem ButtonCommandSet;
|
|
|
private DevExpress.XtraBars.Ribbon.RibbonPageGroup RibDeviceCommand;
|
|
|
private DevExpress.XtraBars.BarButtonItem barButtonItem5;
|
|
|
- private DevExpress.XtraBars.Ribbon.RibbonPageGroup RibDeviceBadInf;
|
|
|
private DevExpress.XtraTab.XtraTabPage PageDeviceList;
|
|
|
private DevExpress.XtraTab.XtraTabPage PageCommandSet;
|
|
|
private DevExpress.XtraTab.XtraTabPage PageDeviceKind;
|
|
|
@@ -825,15 +785,15 @@ namespace UAS_DeviceMonitor
|
|
|
private DevExpress.XtraGrid.Columns.GridColumn de_address;
|
|
|
private DevExpress.XtraGrid.Columns.GridColumn de_wccode;
|
|
|
private CustomerControl.PagingControl.PageControl pageControl1;
|
|
|
- private DevExpress.XtraGrid.GridControl GridCommandSetting;
|
|
|
+ private AutoDataGridControl GridCommandSetting;
|
|
|
private DevExpress.XtraGrid.Views.Grid.GridView gridView2;
|
|
|
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 DevExpress.XtraGrid.GridControl GridPolling;
|
|
|
- private DevExpress.XtraGrid.Views.Grid.GridView gridView3;
|
|
|
- private DevExpress.XtraGrid.GridControl GridPollingSetting;
|
|
|
+ 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;
|
|
|
@@ -851,9 +811,6 @@ namespace UAS_DeviceMonitor
|
|
|
private DevExpress.XtraGrid.Columns.GridColumn dpc_enable;
|
|
|
private DevExpress.XtraGrid.Columns.GridColumn dpc_status;
|
|
|
private DevExpress.XtraGrid.Columns.GridColumn dpc_remark;
|
|
|
- private DevExpress.XtraEditors.SimpleButton simpleButton1;
|
|
|
- private DevExpress.XtraEditors.SimpleButton simpleButton2;
|
|
|
- private DevExpress.XtraEditors.SimpleButton simpleButton3;
|
|
|
- private DevExpress.XtraEditors.Repository.RepositoryItemCheckEdit repositoryItemCheckEdit1;
|
|
|
+ private DevExpress.XtraEditors.Repository.RepositoryItemCheckEdit dpc_enableCheckEdit;
|
|
|
}
|
|
|
}
|