Browse Source

取参数显示BUG

callm 6 years ago
parent
commit
b782de4289
2 changed files with 84 additions and 86 deletions
  1. 83 83
      PLCDataReader/Main.Designer.cs
  2. 1 3
      PLCDataReader/PublicMethod/BaseUtil.cs

+ 83 - 83
PLCDataReader/Main.Designer.cs

@@ -220,10 +220,6 @@ namespace UAS_PLCDataReader
             this.dr_runstatus = new DevExpress.XtraGrid.Columns.GridColumn();
             this.dr_qty = new DevExpress.XtraGrid.Columns.GridColumn();
             this.dr_inqty = new DevExpress.XtraGrid.Columns.GridColumn();
-            this.TimerDeviceStatus = new System.Windows.Forms.Timer(this.components);
-            this.CommonTipController = new DevExpress.Utils.ToolTipController(this.components);
-            this.TimerUpdateDevice = new System.Windows.Forms.Timer(this.components);
-            this.TimerUpdateSQL = new System.Windows.Forms.Timer(this.components);
             this.dr_value1 = new DevExpress.XtraGrid.Columns.GridColumn();
             this.dr_value2 = new DevExpress.XtraGrid.Columns.GridColumn();
             this.dr_value3 = new DevExpress.XtraGrid.Columns.GridColumn();
@@ -234,6 +230,10 @@ namespace UAS_PLCDataReader
             this.dr_value8 = new DevExpress.XtraGrid.Columns.GridColumn();
             this.dr_value9 = new DevExpress.XtraGrid.Columns.GridColumn();
             this.dr_value10 = new DevExpress.XtraGrid.Columns.GridColumn();
+            this.TimerDeviceStatus = new System.Windows.Forms.Timer(this.components);
+            this.CommonTipController = new DevExpress.Utils.ToolTipController(this.components);
+            this.TimerUpdateDevice = new System.Windows.Forms.Timer(this.components);
+            this.TimerUpdateSQL = new System.Windows.Forms.Timer(this.components);
             ((System.ComponentModel.ISupportInitialize)(this.RibbonNav)).BeginInit();
             ((System.ComponentModel.ISupportInitialize)(this.MainTabControl)).BeginInit();
             this.MainTabControl.SuspendLayout();
@@ -313,7 +313,7 @@ namespace UAS_PLCDataReader
             this.RibbonNav.Pages.AddRange(new DevExpress.XtraBars.Ribbon.RibbonPage[] {
             this.DeviceInf,
             this.DeviceCommandSetting});
-            this.RibbonNav.Size = new System.Drawing.Size(1040, 128);
+            this.RibbonNav.Size = new System.Drawing.Size(1040, 252);
             // 
             // ButtonDeviceList
             // 
@@ -450,11 +450,11 @@ namespace UAS_PLCDataReader
             // MainTabControl
             // 
             this.MainTabControl.Dock = System.Windows.Forms.DockStyle.Fill;
-            this.MainTabControl.Location = new System.Drawing.Point(0, 128);
+            this.MainTabControl.Location = new System.Drawing.Point(0, 252);
             this.MainTabControl.Name = "MainTabControl";
             this.MainTabControl.SelectedTabPage = this.PageDeviceList;
             this.MainTabControl.ShowTabHeader = DevExpress.Utils.DefaultBoolean.False;
-            this.MainTabControl.Size = new System.Drawing.Size(1040, 584);
+            this.MainTabControl.Size = new System.Drawing.Size(1040, 460);
             this.MainTabControl.TabIndex = 3;
             this.MainTabControl.TabPages.AddRange(new DevExpress.XtraTab.XtraTabPage[] {
             this.PageDeviceList,
@@ -482,7 +482,7 @@ namespace UAS_PLCDataReader
             this.PageDeviceList.Controls.Add(this.GridDeviceList);
             this.PageDeviceList.Name = "PageDeviceList";
             this.PageDeviceList.PageVisible = false;
-            this.PageDeviceList.Size = new System.Drawing.Size(1034, 578);
+            this.PageDeviceList.Size = new System.Drawing.Size(1028, 448);
             this.PageDeviceList.Text = "xtraTabPage1";
             this.PageDeviceList.VisibleChanged += new System.EventHandler(this.PageDeviceList_VisibleChanged);
             // 
@@ -490,7 +490,7 @@ namespace UAS_PLCDataReader
             // 
             this.ButtonAddDevice.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
             this.ButtonAddDevice.Grid = null;
-            this.ButtonAddDevice.Location = new System.Drawing.Point(818, 4);
+            this.ButtonAddDevice.Location = new System.Drawing.Point(812, 4);
             this.ButtonAddDevice.Name = "ButtonAddDevice";
             this.ButtonAddDevice.Size = new System.Drawing.Size(64, 23);
             this.ButtonAddDevice.TabIndex = 16;
@@ -500,7 +500,7 @@ namespace UAS_PLCDataReader
             // 
             this.ButtonDeleteDevice.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
             this.ButtonDeleteDevice.Grid = null;
-            this.ButtonDeleteDevice.Location = new System.Drawing.Point(958, 4);
+            this.ButtonDeleteDevice.Location = new System.Drawing.Point(952, 4);
             this.ButtonDeleteDevice.Name = "ButtonDeleteDevice";
             this.ButtonDeleteDevice.Size = new System.Drawing.Size(64, 23);
             this.ButtonDeleteDevice.TabIndex = 15;
@@ -511,7 +511,7 @@ namespace UAS_PLCDataReader
             this.ButtonSaveDevice.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
             this.ButtonSaveDevice.Grid = null;
             this.ButtonSaveDevice.HandlerOtherFirst = true;
-            this.ButtonSaveDevice.Location = new System.Drawing.Point(888, 4);
+            this.ButtonSaveDevice.Location = new System.Drawing.Point(882, 4);
             this.ButtonSaveDevice.Name = "ButtonSaveDevice";
             this.ButtonSaveDevice.Size = new System.Drawing.Size(64, 23);
             this.ButtonSaveDevice.TabIndex = 14;
@@ -532,7 +532,7 @@ namespace UAS_PLCDataReader
             this.ComBoxDeviceListMan.Properties.NullText = "";
             this.ComBoxDeviceListMan.Properties.ValueMember = "EM_CODE";
             this.ComBoxDeviceListMan.Properties.View = this.searchLookUpEdit1View;
-            this.ComBoxDeviceListMan.Size = new System.Drawing.Size(100, 22);
+            this.ComBoxDeviceListMan.Size = new System.Drawing.Size(100, 34);
             this.ComBoxDeviceListMan.TabIndex = 12;
             this.ComBoxDeviceListMan.Visible = false;
             // 
@@ -567,7 +567,7 @@ namespace UAS_PLCDataReader
             this.ComBoxDeviceListMan_label.Appearance.Font = new System.Drawing.Font("黑体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
             this.ComBoxDeviceListMan_label.Location = new System.Drawing.Point(318, 8);
             this.ComBoxDeviceListMan_label.Name = "ComBoxDeviceListMan_label";
-            this.ComBoxDeviceListMan_label.Size = new System.Drawing.Size(32, 16);
+            this.ComBoxDeviceListMan_label.Size = new System.Drawing.Size(64, 33);
             this.ComBoxDeviceListMan_label.TabIndex = 11;
             this.ComBoxDeviceListMan_label.Text = "人员";
             this.ComBoxDeviceListMan_label.Visible = false;
@@ -582,7 +582,7 @@ namespace UAS_PLCDataReader
             this.ComboxDeviceListWC.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] {
             new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)});
             this.ComboxDeviceListWC.Properties.TextEditStyle = DevExpress.XtraEditors.Controls.TextEditStyles.DisableTextEditor;
-            this.ComboxDeviceListWC.Size = new System.Drawing.Size(100, 22);
+            this.ComboxDeviceListWC.Size = new System.Drawing.Size(100, 36);
             this.ComboxDeviceListWC.TabIndex = 6;
             this.ComboxDeviceListWC.SelectedIndexChanged += new System.EventHandler(this.ComboxDeviceListWC_SelectedIndexChanged);
             // 
@@ -596,7 +596,7 @@ namespace UAS_PLCDataReader
             this.ComboxDeviceListLC.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] {
             new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)});
             this.ComboxDeviceListLC.Properties.TextEditStyle = DevExpress.XtraEditors.Controls.TextEditStyles.DisableTextEditor;
-            this.ComboxDeviceListLC.Size = new System.Drawing.Size(100, 22);
+            this.ComboxDeviceListLC.Size = new System.Drawing.Size(100, 36);
             this.ComboxDeviceListLC.TabIndex = 7;
             this.ComboxDeviceListLC.SelectedIndexChanged += new System.EventHandler(this.ComboxDeviceListLC_SelectedIndexChanged);
             // 
@@ -605,7 +605,7 @@ namespace UAS_PLCDataReader
             this.ComboxDeviceListLC_label.Appearance.Font = new System.Drawing.Font("黑体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
             this.ComboxDeviceListLC_label.Location = new System.Drawing.Point(161, 8);
             this.ComboxDeviceListLC_label.Name = "ComboxDeviceListLC_label";
-            this.ComboxDeviceListLC_label.Size = new System.Drawing.Size(32, 16);
+            this.ComboxDeviceListLC_label.Size = new System.Drawing.Size(64, 33);
             this.ComboxDeviceListLC_label.TabIndex = 9;
             this.ComboxDeviceListLC_label.Text = "线别";
             // 
@@ -614,7 +614,7 @@ namespace UAS_PLCDataReader
             this.ComboxDeviceListWC_label.Appearance.Font = new System.Drawing.Font("黑体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
             this.ComboxDeviceListWC_label.Location = new System.Drawing.Point(10, 8);
             this.ComboxDeviceListWC_label.Name = "ComboxDeviceListWC_label";
-            this.ComboxDeviceListWC_label.Size = new System.Drawing.Size(32, 16);
+            this.ComboxDeviceListWC_label.Size = new System.Drawing.Size(64, 33);
             this.ComboxDeviceListWC_label.TabIndex = 8;
             this.ComboxDeviceListWC_label.Text = "车间";
             // 
@@ -635,7 +635,7 @@ namespace UAS_PLCDataReader
             this.DataItemRepositoryItemComboBox1,
             this.DeviceItemSearchLookUpEdit});
             this.GridDeviceList.RowCount = 0;
-            this.GridDeviceList.Size = new System.Drawing.Size(1034, 547);
+            this.GridDeviceList.Size = new System.Drawing.Size(1028, 417);
             this.GridDeviceList.TabIndex = 0;
             this.GridDeviceList.TableName = null;
             this.GridDeviceList.ViewCollection.AddRange(new DevExpress.XtraGrid.Views.Base.BaseView[] {
@@ -941,7 +941,7 @@ namespace UAS_PLCDataReader
             this.PageCommandSet.Controls.Add(this.GridCommandSetting);
             this.PageCommandSet.Name = "PageCommandSet";
             this.PageCommandSet.PageVisible = false;
-            this.PageCommandSet.Size = new System.Drawing.Size(1034, 578);
+            this.PageCommandSet.Size = new System.Drawing.Size(1028, 572);
             this.PageCommandSet.Text = "xtraTabPage1";
             this.PageCommandSet.VisibleChanged += new System.EventHandler(this.PageCommandSet_VisibleChanged);
             // 
@@ -949,7 +949,7 @@ namespace UAS_PLCDataReader
             // 
             this.ButtonDeleteCommand.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
             this.ButtonDeleteCommand.Grid = null;
-            this.ButtonDeleteCommand.Location = new System.Drawing.Point(952, 5);
+            this.ButtonDeleteCommand.Location = new System.Drawing.Point(946, 5);
             this.ButtonDeleteCommand.Name = "ButtonDeleteCommand";
             this.ButtonDeleteCommand.Size = new System.Drawing.Size(64, 23);
             this.ButtonDeleteCommand.TabIndex = 6;
@@ -960,7 +960,7 @@ namespace UAS_PLCDataReader
             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.Size = new System.Drawing.Size(64, 41);
             this.Brand_label.TabIndex = 5;
             this.Brand_label.Text = "品牌";
             // 
@@ -974,7 +974,7 @@ namespace UAS_PLCDataReader
             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.Size = new System.Drawing.Size(100, 38);
             this.Brand.TabIndex = 4;
             this.Brand.SelectedIndexChanged += new System.EventHandler(this.Brand_SelectedIndexChanged);
             // 
@@ -982,7 +982,7 @@ namespace UAS_PLCDataReader
             // 
             this.ButtonNewCommand.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
             this.ButtonNewCommand.Grid = null;
-            this.ButtonNewCommand.Location = new System.Drawing.Point(812, 5);
+            this.ButtonNewCommand.Location = new System.Drawing.Point(806, 5);
             this.ButtonNewCommand.Name = "ButtonNewCommand";
             this.ButtonNewCommand.Size = new System.Drawing.Size(64, 23);
             this.ButtonNewCommand.TabIndex = 3;
@@ -993,7 +993,7 @@ namespace UAS_PLCDataReader
             this.ButtonSaveCommand.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
             this.ButtonSaveCommand.Grid = null;
             this.ButtonSaveCommand.HandlerOtherFirst = true;
-            this.ButtonSaveCommand.Location = new System.Drawing.Point(882, 5);
+            this.ButtonSaveCommand.Location = new System.Drawing.Point(876, 5);
             this.ButtonSaveCommand.Name = "ButtonSaveCommand";
             this.ButtonSaveCommand.Size = new System.Drawing.Size(64, 23);
             this.ButtonSaveCommand.TabIndex = 2;
@@ -1018,7 +1018,7 @@ namespace UAS_PLCDataReader
             this.CommandSetRepositoryItemComboBox1,
             this.repositoryItemDateEdit1});
             this.GridCommandSetting.RowCount = 0;
-            this.GridCommandSetting.Size = new System.Drawing.Size(1034, 547);
+            this.GridCommandSetting.Size = new System.Drawing.Size(1028, 541);
             this.GridCommandSetting.TabIndex = 1;
             this.GridCommandSetting.TableName = null;
             this.GridCommandSetting.ViewCollection.AddRange(new DevExpress.XtraGrid.Views.Base.BaseView[] {
@@ -1192,13 +1192,13 @@ namespace UAS_PLCDataReader
             this.PageDeviceNetSetting.Controls.Add(this.GridDeviceNetSetting);
             this.PageDeviceNetSetting.Name = "PageDeviceNetSetting";
             this.PageDeviceNetSetting.PageVisible = false;
-            this.PageDeviceNetSetting.Size = new System.Drawing.Size(1034, 578);
+            this.PageDeviceNetSetting.Size = new System.Drawing.Size(1028, 572);
             // 
             // ButtonDeleteNetConfig
             // 
             this.ButtonDeleteNetConfig.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
             this.ButtonDeleteNetConfig.Grid = null;
-            this.ButtonDeleteNetConfig.Location = new System.Drawing.Point(949, 7);
+            this.ButtonDeleteNetConfig.Location = new System.Drawing.Point(943, 7);
             this.ButtonDeleteNetConfig.Name = "ButtonDeleteNetConfig";
             this.ButtonDeleteNetConfig.Size = new System.Drawing.Size(64, 23);
             this.ButtonDeleteNetConfig.TabIndex = 12;
@@ -1208,7 +1208,7 @@ namespace UAS_PLCDataReader
             // 
             this.ButtonAddNetConfig.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
             this.ButtonAddNetConfig.Grid = null;
-            this.ButtonAddNetConfig.Location = new System.Drawing.Point(809, 7);
+            this.ButtonAddNetConfig.Location = new System.Drawing.Point(803, 7);
             this.ButtonAddNetConfig.Name = "ButtonAddNetConfig";
             this.ButtonAddNetConfig.Size = new System.Drawing.Size(64, 23);
             this.ButtonAddNetConfig.TabIndex = 11;
@@ -1219,7 +1219,7 @@ namespace UAS_PLCDataReader
             this.ButtonSaveNetConfig.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
             this.ButtonSaveNetConfig.Grid = null;
             this.ButtonSaveNetConfig.HandlerOtherFirst = false;
-            this.ButtonSaveNetConfig.Location = new System.Drawing.Point(879, 7);
+            this.ButtonSaveNetConfig.Location = new System.Drawing.Point(873, 7);
             this.ButtonSaveNetConfig.Name = "ButtonSaveNetConfig";
             this.ButtonSaveNetConfig.Size = new System.Drawing.Size(64, 23);
             this.ButtonSaveNetConfig.TabIndex = 10;
@@ -1241,7 +1241,7 @@ namespace UAS_PLCDataReader
             this.GridDeviceNetSetting.RepositoryItems.AddRange(new DevExpress.XtraEditors.Repository.RepositoryItem[] {
             this.dpc_enableCheckEdit});
             this.GridDeviceNetSetting.RowCount = 0;
-            this.GridDeviceNetSetting.Size = new System.Drawing.Size(1031, 544);
+            this.GridDeviceNetSetting.Size = new System.Drawing.Size(1025, 538);
             this.GridDeviceNetSetting.TabIndex = 0;
             this.GridDeviceNetSetting.TableName = null;
             this.GridDeviceNetSetting.ViewCollection.AddRange(new DevExpress.XtraGrid.Views.Base.BaseView[] {
@@ -1351,7 +1351,7 @@ namespace UAS_PLCDataReader
             this.PagePollingSetting.Controls.Add(this.GridPollingSetting);
             this.PagePollingSetting.Name = "PagePollingSetting";
             this.PagePollingSetting.PageVisible = false;
-            this.PagePollingSetting.Size = new System.Drawing.Size(1034, 578);
+            this.PagePollingSetting.Size = new System.Drawing.Size(1028, 572);
             this.PagePollingSetting.Text = "xtraTabPage1";
             this.PagePollingSetting.VisibleChanged += new System.EventHandler(this.PagePollingSetting_VisibleChanged);
             // 
@@ -1359,7 +1359,7 @@ namespace UAS_PLCDataReader
             // 
             this.ButtonDeleteCommandSet.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
             this.ButtonDeleteCommandSet.Grid = null;
-            this.ButtonDeleteCommandSet.Location = new System.Drawing.Point(957, 6);
+            this.ButtonDeleteCommandSet.Location = new System.Drawing.Point(951, 6);
             this.ButtonDeleteCommandSet.Name = "ButtonDeleteCommandSet";
             this.ButtonDeleteCommandSet.Size = new System.Drawing.Size(64, 23);
             this.ButtonDeleteCommandSet.TabIndex = 9;
@@ -1369,7 +1369,7 @@ namespace UAS_PLCDataReader
             // 
             this.ButtonNewCommandSet.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
             this.ButtonNewCommandSet.Grid = null;
-            this.ButtonNewCommandSet.Location = new System.Drawing.Point(817, 6);
+            this.ButtonNewCommandSet.Location = new System.Drawing.Point(811, 6);
             this.ButtonNewCommandSet.Name = "ButtonNewCommandSet";
             this.ButtonNewCommandSet.Size = new System.Drawing.Size(64, 23);
             this.ButtonNewCommandSet.TabIndex = 8;
@@ -1380,7 +1380,7 @@ namespace UAS_PLCDataReader
             this.ButtonSaveCommandSet.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
             this.ButtonSaveCommandSet.Grid = null;
             this.ButtonSaveCommandSet.HandlerOtherFirst = true;
-            this.ButtonSaveCommandSet.Location = new System.Drawing.Point(887, 6);
+            this.ButtonSaveCommandSet.Location = new System.Drawing.Point(881, 6);
             this.ButtonSaveCommandSet.Name = "ButtonSaveCommandSet";
             this.ButtonSaveCommandSet.Size = new System.Drawing.Size(64, 23);
             this.ButtonSaveCommandSet.TabIndex = 7;
@@ -1390,7 +1390,7 @@ namespace UAS_PLCDataReader
             // ButtonPausePolling
             // 
             this.ButtonPausePolling.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
-            this.ButtonPausePolling.Location = new System.Drawing.Point(736, 6);
+            this.ButtonPausePolling.Location = new System.Drawing.Point(730, 6);
             this.ButtonPausePolling.Name = "ButtonPausePolling";
             this.ButtonPausePolling.Size = new System.Drawing.Size(75, 23);
             this.ButtonPausePolling.TabIndex = 2;
@@ -1400,7 +1400,7 @@ namespace UAS_PLCDataReader
             // ButtonStartPolling
             // 
             this.ButtonStartPolling.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
-            this.ButtonStartPolling.Location = new System.Drawing.Point(655, 6);
+            this.ButtonStartPolling.Location = new System.Drawing.Point(649, 6);
             this.ButtonStartPolling.Name = "ButtonStartPolling";
             this.ButtonStartPolling.Size = new System.Drawing.Size(75, 23);
             this.ButtonStartPolling.TabIndex = 1;
@@ -1426,7 +1426,7 @@ namespace UAS_PLCDataReader
             this.PollSettingItemSearchLookUpEdit,
             this.PollSettingDeviceSearchLookUpEdit});
             this.GridPollingSetting.RowCount = 0;
-            this.GridPollingSetting.Size = new System.Drawing.Size(1034, 544);
+            this.GridPollingSetting.Size = new System.Drawing.Size(1028, 538);
             this.GridPollingSetting.TabIndex = 0;
             this.GridPollingSetting.TableName = null;
             this.GridPollingSetting.ViewCollection.AddRange(new DevExpress.XtraGrid.Views.Base.BaseView[] {
@@ -1648,14 +1648,14 @@ namespace UAS_PLCDataReader
             this.PagePolling.Controls.Add(this.GridPolling);
             this.PagePolling.Name = "PagePolling";
             this.PagePolling.PageVisible = false;
-            this.PagePolling.Size = new System.Drawing.Size(1034, 578);
+            this.PagePolling.Size = new System.Drawing.Size(1028, 572);
             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(885, 552);
+            this.ButtonAddPolling.Location = new System.Drawing.Point(879, 546);
             this.ButtonAddPolling.Name = "ButtonAddPolling";
             this.ButtonAddPolling.Size = new System.Drawing.Size(64, 23);
             this.ButtonAddPolling.TabIndex = 9;
@@ -1665,7 +1665,7 @@ namespace UAS_PLCDataReader
             // 
             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(814, 552);
+            this.ButtonDeletePolling.Location = new System.Drawing.Point(808, 546);
             this.ButtonDeletePolling.Name = "ButtonDeletePolling";
             this.ButtonDeletePolling.Size = new System.Drawing.Size(64, 23);
             this.ButtonDeletePolling.TabIndex = 8;
@@ -1676,7 +1676,7 @@ namespace UAS_PLCDataReader
             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(956, 552);
+            this.ButtonSavePolling.Location = new System.Drawing.Point(950, 546);
             this.ButtonSavePolling.Name = "ButtonSavePolling";
             this.ButtonSavePolling.Size = new System.Drawing.Size(64, 23);
             this.ButtonSavePolling.TabIndex = 7;
@@ -1698,7 +1698,7 @@ namespace UAS_PLCDataReader
             this.GridPolling.RepositoryItems.AddRange(new DevExpress.XtraEditors.Repository.RepositoryItem[] {
             this.dpc_enableCheckEdit});
             this.GridPolling.RowCount = 0;
-            this.GridPolling.Size = new System.Drawing.Size(1034, 550);
+            this.GridPolling.Size = new System.Drawing.Size(1028, 544);
             this.GridPolling.TabIndex = 0;
             this.GridPolling.TableName = null;
             this.GridPolling.ViewCollection.AddRange(new DevExpress.XtraGrid.Views.Base.BaseView[] {
@@ -1791,7 +1791,7 @@ namespace UAS_PLCDataReader
             this.PageDeviceStatus.Controls.Add(this.PanelDeviceStatus);
             this.PageDeviceStatus.Name = "PageDeviceStatus";
             this.PageDeviceStatus.PageVisible = false;
-            this.PageDeviceStatus.Size = new System.Drawing.Size(1034, 578);
+            this.PageDeviceStatus.Size = new System.Drawing.Size(1028, 572);
             this.PageDeviceStatus.Text = "xtraTabPage1";
             this.PageDeviceStatus.VisibleChanged += new System.EventHandler(this.PageDeviceStatus_VisibleChanged);
             // 
@@ -1805,7 +1805,7 @@ namespace UAS_PLCDataReader
             this.ComboxDeviceDepartment.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] {
             new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)});
             this.ComboxDeviceDepartment.Properties.TextEditStyle = DevExpress.XtraEditors.Controls.TextEditStyles.DisableTextEditor;
-            this.ComboxDeviceDepartment.Size = new System.Drawing.Size(100, 22);
+            this.ComboxDeviceDepartment.Size = new System.Drawing.Size(100, 36);
             this.ComboxDeviceDepartment.TabIndex = 6;
             this.ComboxDeviceDepartment.SelectedIndexChanged += new System.EventHandler(this.ComboxDeviceStatusLC_SelectedIndexChanged);
             // 
@@ -1819,7 +1819,7 @@ namespace UAS_PLCDataReader
             this.ComboxDeviceFloor.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] {
             new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)});
             this.ComboxDeviceFloor.Properties.TextEditStyle = DevExpress.XtraEditors.Controls.TextEditStyles.DisableTextEditor;
-            this.ComboxDeviceFloor.Size = new System.Drawing.Size(100, 22);
+            this.ComboxDeviceFloor.Size = new System.Drawing.Size(100, 36);
             this.ComboxDeviceFloor.TabIndex = 7;
             this.ComboxDeviceFloor.SelectedIndexChanged += new System.EventHandler(this.ComboxDeviceStatusLC_SelectedIndexChanged);
             // 
@@ -1828,7 +1828,7 @@ namespace UAS_PLCDataReader
             this.label_ComboxDeviceFloor.Appearance.Font = new System.Drawing.Font("黑体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
             this.label_ComboxDeviceFloor.Location = new System.Drawing.Point(477, 13);
             this.label_ComboxDeviceFloor.Name = "label_ComboxDeviceFloor";
-            this.label_ComboxDeviceFloor.Size = new System.Drawing.Size(32, 16);
+            this.label_ComboxDeviceFloor.Size = new System.Drawing.Size(64, 33);
             this.label_ComboxDeviceFloor.TabIndex = 9;
             this.label_ComboxDeviceFloor.Text = "楼层";
             // 
@@ -1837,7 +1837,7 @@ namespace UAS_PLCDataReader
             this.label_ComboxDeviceDepartment.Appearance.Font = new System.Drawing.Font("黑体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
             this.label_ComboxDeviceDepartment.Location = new System.Drawing.Point(326, 13);
             this.label_ComboxDeviceDepartment.Name = "label_ComboxDeviceDepartment";
-            this.label_ComboxDeviceDepartment.Size = new System.Drawing.Size(32, 16);
+            this.label_ComboxDeviceDepartment.Size = new System.Drawing.Size(64, 33);
             this.label_ComboxDeviceDepartment.TabIndex = 8;
             this.label_ComboxDeviceDepartment.Text = "部门";
             // 
@@ -1851,7 +1851,7 @@ namespace UAS_PLCDataReader
             this.ComboxDeviceStatusWC.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] {
             new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)});
             this.ComboxDeviceStatusWC.Properties.TextEditStyle = DevExpress.XtraEditors.Controls.TextEditStyles.DisableTextEditor;
-            this.ComboxDeviceStatusWC.Size = new System.Drawing.Size(100, 22);
+            this.ComboxDeviceStatusWC.Size = new System.Drawing.Size(100, 36);
             this.ComboxDeviceStatusWC.TabIndex = 0;
             this.ComboxDeviceStatusWC.SelectedIndexChanged += new System.EventHandler(this.ComboxDeviceStatusWC_SelectedIndexChanged);
             // 
@@ -1865,7 +1865,7 @@ namespace UAS_PLCDataReader
             this.ComboxDeviceStatusLC.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] {
             new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)});
             this.ComboxDeviceStatusLC.Properties.TextEditStyle = DevExpress.XtraEditors.Controls.TextEditStyles.DisableTextEditor;
-            this.ComboxDeviceStatusLC.Size = new System.Drawing.Size(100, 22);
+            this.ComboxDeviceStatusLC.Size = new System.Drawing.Size(100, 36);
             this.ComboxDeviceStatusLC.TabIndex = 0;
             this.ComboxDeviceStatusLC.SelectedIndexChanged += new System.EventHandler(this.ComboxDeviceStatusLC_SelectedIndexChanged);
             // 
@@ -1877,7 +1877,7 @@ namespace UAS_PLCDataReader
             this.CheckEditDeviceStatusEnable.Properties.Appearance.Font = new System.Drawing.Font("黑体", 10F);
             this.CheckEditDeviceStatusEnable.Properties.Appearance.Options.UseFont = true;
             this.CheckEditDeviceStatusEnable.Properties.Caption = "只显示已启用设备";
-            this.CheckEditDeviceStatusEnable.Size = new System.Drawing.Size(142, 19);
+            this.CheckEditDeviceStatusEnable.Size = new System.Drawing.Size(142, 34);
             this.CheckEditDeviceStatusEnable.TabIndex = 5;
             this.CheckEditDeviceStatusEnable.CheckedChanged += new System.EventHandler(this.CheckEditDeviceStatusEnable_CheckedChanged);
             // 
@@ -1886,7 +1886,7 @@ namespace UAS_PLCDataReader
             this.ComboxDeviceStatusLC_label.Appearance.Font = new System.Drawing.Font("黑体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
             this.ComboxDeviceStatusLC_label.Location = new System.Drawing.Point(173, 13);
             this.ComboxDeviceStatusLC_label.Name = "ComboxDeviceStatusLC_label";
-            this.ComboxDeviceStatusLC_label.Size = new System.Drawing.Size(32, 16);
+            this.ComboxDeviceStatusLC_label.Size = new System.Drawing.Size(64, 33);
             this.ComboxDeviceStatusLC_label.TabIndex = 4;
             this.ComboxDeviceStatusLC_label.Text = "线别";
             // 
@@ -1895,7 +1895,7 @@ namespace UAS_PLCDataReader
             this.ComboxDeviceStatusWC_label.Appearance.Font = new System.Drawing.Font("黑体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
             this.ComboxDeviceStatusWC_label.Location = new System.Drawing.Point(22, 13);
             this.ComboxDeviceStatusWC_label.Name = "ComboxDeviceStatusWC_label";
-            this.ComboxDeviceStatusWC_label.Size = new System.Drawing.Size(32, 16);
+            this.ComboxDeviceStatusWC_label.Size = new System.Drawing.Size(64, 33);
             this.ComboxDeviceStatusWC_label.TabIndex = 2;
             this.ComboxDeviceStatusWC_label.Text = "车间";
             // 
@@ -1906,7 +1906,7 @@ namespace UAS_PLCDataReader
             | System.Windows.Forms.AnchorStyles.Right)));
             this.PanelDeviceStatus.Location = new System.Drawing.Point(0, 35);
             this.PanelDeviceStatus.Name = "PanelDeviceStatus";
-            this.PanelDeviceStatus.Size = new System.Drawing.Size(1034, 543);
+            this.PanelDeviceStatus.Size = new System.Drawing.Size(1028, 537);
             this.PanelDeviceStatus.TabIndex = 0;
             // 
             // PageWorkCenterStatus
@@ -1914,7 +1914,7 @@ namespace UAS_PLCDataReader
             this.PageWorkCenterStatus.Controls.Add(this.GridWorkCenterStatus);
             this.PageWorkCenterStatus.Name = "PageWorkCenterStatus";
             this.PageWorkCenterStatus.PageVisible = false;
-            this.PageWorkCenterStatus.Size = new System.Drawing.Size(1034, 578);
+            this.PageWorkCenterStatus.Size = new System.Drawing.Size(1028, 572);
             this.PageWorkCenterStatus.Text = "车间全局监控";
             // 
             // GridWorkCenterStatus
@@ -1931,7 +1931,7 @@ namespace UAS_PLCDataReader
             this.GridWorkCenterStatus.MenuManager = this.RibbonNav;
             this.GridWorkCenterStatus.Name = "GridWorkCenterStatus";
             this.GridWorkCenterStatus.RowCount = 0;
-            this.GridWorkCenterStatus.Size = new System.Drawing.Size(1031, 575);
+            this.GridWorkCenterStatus.Size = new System.Drawing.Size(1025, 569);
             this.GridWorkCenterStatus.TabIndex = 0;
             this.GridWorkCenterStatus.TableName = null;
             this.GridWorkCenterStatus.ViewCollection.AddRange(new DevExpress.XtraGrid.Views.Base.BaseView[] {
@@ -1952,7 +1952,7 @@ namespace UAS_PLCDataReader
             this.PageDeviceRunLog.Controls.Add(this.GridDeviceRunLog);
             this.PageDeviceRunLog.Name = "PageDeviceRunLog";
             this.PageDeviceRunLog.PageVisible = false;
-            this.PageDeviceRunLog.Size = new System.Drawing.Size(1034, 578);
+            this.PageDeviceRunLog.Size = new System.Drawing.Size(1028, 572);
             this.PageDeviceRunLog.Text = "设备运行日志";
             // 
             // ButtonSearchDeviceRunLog
@@ -1969,7 +1969,7 @@ namespace UAS_PLCDataReader
             this.TextDrrDeCode.Location = new System.Drawing.Point(64, 5);
             this.TextDrrDeCode.MenuManager = this.RibbonNav;
             this.TextDrrDeCode.Name = "TextDrrDeCode";
-            this.TextDrrDeCode.Size = new System.Drawing.Size(100, 20);
+            this.TextDrrDeCode.Size = new System.Drawing.Size(100, 36);
             this.TextDrrDeCode.TabIndex = 2;
             // 
             // LabelDrrDeCode
@@ -1977,7 +1977,7 @@ namespace UAS_PLCDataReader
             this.LabelDrrDeCode.Appearance.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
             this.LabelDrrDeCode.Location = new System.Drawing.Point(10, 7);
             this.LabelDrrDeCode.Name = "LabelDrrDeCode";
-            this.LabelDrrDeCode.Size = new System.Drawing.Size(48, 17);
+            this.LabelDrrDeCode.Size = new System.Drawing.Size(96, 31);
             this.LabelDrrDeCode.TabIndex = 1;
             this.LabelDrrDeCode.Text = "设备编号";
             // 
@@ -1995,7 +1995,7 @@ namespace UAS_PLCDataReader
             this.GridDeviceRunLog.MenuManager = this.RibbonNav;
             this.GridDeviceRunLog.Name = "GridDeviceRunLog";
             this.GridDeviceRunLog.RowCount = 0;
-            this.GridDeviceRunLog.Size = new System.Drawing.Size(1035, 554);
+            this.GridDeviceRunLog.Size = new System.Drawing.Size(1029, 548);
             this.GridDeviceRunLog.TabIndex = 0;
             this.GridDeviceRunLog.TableName = null;
             this.GridDeviceRunLog.ViewCollection.AddRange(new DevExpress.XtraGrid.Views.Base.BaseView[] {
@@ -2101,7 +2101,7 @@ namespace UAS_PLCDataReader
             this.PageClientParam.Controls.Add(this.label1);
             this.PageClientParam.Name = "PageClientParam";
             this.PageClientParam.PageVisible = false;
-            this.PageClientParam.Size = new System.Drawing.Size(1034, 578);
+            this.PageClientParam.Size = new System.Drawing.Size(1028, 572);
             this.PageClientParam.VisibleChanged += new System.EventHandler(this.PageClientParam_VisibleChanged);
             // 
             // ButtonSaveClientParam
@@ -2117,7 +2117,7 @@ namespace UAS_PLCDataReader
             // 
             this.UpdateTimeSpan.Location = new System.Drawing.Point(140, 30);
             this.UpdateTimeSpan.Name = "UpdateTimeSpan";
-            this.UpdateTimeSpan.Size = new System.Drawing.Size(53, 22);
+            this.UpdateTimeSpan.Size = new System.Drawing.Size(53, 36);
             this.UpdateTimeSpan.TabIndex = 1;
             // 
             // label1
@@ -2126,7 +2126,7 @@ namespace UAS_PLCDataReader
             this.label1.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
             this.label1.Location = new System.Drawing.Point(28, 30);
             this.label1.Name = "label1";
-            this.label1.Size = new System.Drawing.Size(106, 21);
+            this.label1.Size = new System.Drawing.Size(210, 41);
             this.label1.TabIndex = 0;
             this.label1.Text = "数据上传时间";
             // 
@@ -2135,7 +2135,7 @@ namespace UAS_PLCDataReader
             this.PageDeviceData.Controls.Add(this.GridDeviceData);
             this.PageDeviceData.Name = "PageDeviceData";
             this.PageDeviceData.PageVisible = false;
-            this.PageDeviceData.Size = new System.Drawing.Size(1034, 578);
+            this.PageDeviceData.Size = new System.Drawing.Size(1028, 572);
             // 
             // GridDeviceData
             // 
@@ -2151,7 +2151,7 @@ namespace UAS_PLCDataReader
             this.GridDeviceData.MenuManager = this.RibbonNav;
             this.GridDeviceData.Name = "GridDeviceData";
             this.GridDeviceData.RowCount = 0;
-            this.GridDeviceData.Size = new System.Drawing.Size(1034, 578);
+            this.GridDeviceData.Size = new System.Drawing.Size(1028, 572);
             this.GridDeviceData.TabIndex = 0;
             this.GridDeviceData.TableName = null;
             this.GridDeviceData.ViewCollection.AddRange(new DevExpress.XtraGrid.Views.Base.BaseView[] {
@@ -2225,25 +2225,6 @@ namespace UAS_PLCDataReader
             this.dr_inqty.Visible = true;
             this.dr_inqty.VisibleIndex = 4;
             // 
-            // TimerDeviceStatus
-            // 
-            this.TimerDeviceStatus.Interval = 10000;
-            this.TimerDeviceStatus.Tick += new System.EventHandler(this.TimerDeviceStatus_Tick);
-            // 
-            // CommonTipController
-            // 
-            this.CommonTipController.AutoPopDelay = 10000;
-            // 
-            // TimerUpdateDevice
-            // 
-            this.TimerUpdateDevice.Interval = 20000;
-            this.TimerUpdateDevice.Tick += new System.EventHandler(this.TimerUpdateDevice_Tick);
-            // 
-            // TimerUpdateSQL
-            // 
-            this.TimerUpdateSQL.Interval = 5000;
-            this.TimerUpdateSQL.Tick += new System.EventHandler(this.TimerUpdateSQL_Tick);
-            // 
             // dr_value1
             // 
             this.dr_value1.Caption = "参数1";
@@ -2324,6 +2305,25 @@ namespace UAS_PLCDataReader
             this.dr_value10.Visible = true;
             this.dr_value10.VisibleIndex = 14;
             // 
+            // TimerDeviceStatus
+            // 
+            this.TimerDeviceStatus.Interval = 10000;
+            this.TimerDeviceStatus.Tick += new System.EventHandler(this.TimerDeviceStatus_Tick);
+            // 
+            // CommonTipController
+            // 
+            this.CommonTipController.AutoPopDelay = 10000;
+            // 
+            // TimerUpdateDevice
+            // 
+            this.TimerUpdateDevice.Interval = 20000;
+            this.TimerUpdateDevice.Tick += new System.EventHandler(this.TimerUpdateDevice_Tick);
+            // 
+            // TimerUpdateSQL
+            // 
+            this.TimerUpdateSQL.Interval = 5000;
+            this.TimerUpdateSQL.Tick += new System.EventHandler(this.TimerUpdateSQL_Tick);
+            // 
             // Main
             // 
             this.AllowFormGlass = DevExpress.Utils.DefaultBoolean.False;

+ 1 - 3
PLCDataReader/PublicMethod/BaseUtil.cs

@@ -413,7 +413,7 @@ namespace UAS_PLCDataReader.PublicMethod
                 if (HexStr != "")
                 {
                     string RealData = HexStr.Substring(6);
-
+                    RealData = RealData.Substring(0, RealData.Length - 2);
                     //每个地址位存的数据是DataSize个
                     for (int i = 0; i < RealData.Length; i = i + DataSize)
                     {
@@ -421,8 +421,6 @@ namespace UAS_PLCDataReader.PublicMethod
                         {
                             if (Convert.ToInt32("0x" + (RealData.Substring(i, DataSize).Substring(0, 4)), 16) / 1 != 0)
                                 ReturnData.Add(Convert.ToInt32("0x" + (RealData.Substring(i, DataSize).Substring(0, 4)), 16));
-                            else
-                                break;
                         }
                     }
                 }