Browse Source

显示字段调整

章政 7 years ago
parent
commit
7bc365b412
2 changed files with 13 additions and 21 deletions
  1. 11 14
      PLCDataReader/Main.Designer.cs
  2. 2 7
      PLCDataReader/Main.cs

+ 11 - 14
PLCDataReader/Main.Designer.cs

@@ -422,7 +422,6 @@ namespace UAS_PLCDataReader
             this.ComBoxDeviceListMan.Size = new System.Drawing.Size(100, 22);
             this.ComBoxDeviceListMan.TabIndex = 12;
             this.ComBoxDeviceListMan.Visible = false;
-            this.ComBoxDeviceListMan.EditValueChanged += new System.EventHandler(this.ComBoxDeviceListMan_EditValueChanged);
             // 
             // searchLookUpEdit1View
             // 
@@ -601,8 +600,6 @@ namespace UAS_PLCDataReader
             this.de_runstatus.Caption = "运行状态";
             this.de_runstatus.FieldName = "DE_RUNSTATUS";
             this.de_runstatus.Name = "de_runstatus";
-            this.de_runstatus.Visible = true;
-            this.de_runstatus.VisibleIndex = 3;
             // 
             // de_stepcode
             // 
@@ -610,7 +607,7 @@ namespace UAS_PLCDataReader
             this.de_stepcode.FieldName = "DE_STEPCODE";
             this.de_stepcode.Name = "de_stepcode";
             this.de_stepcode.Visible = true;
-            this.de_stepcode.VisibleIndex = 4;
+            this.de_stepcode.VisibleIndex = 3;
             // 
             // de_stepname
             // 
@@ -618,7 +615,7 @@ namespace UAS_PLCDataReader
             this.de_stepname.FieldName = "DE_STEPNAME";
             this.de_stepname.Name = "de_stepname";
             this.de_stepname.Visible = true;
-            this.de_stepname.VisibleIndex = 6;
+            this.de_stepname.VisibleIndex = 5;
             // 
             // de_sourcecode
             // 
@@ -626,7 +623,7 @@ namespace UAS_PLCDataReader
             this.de_sourcecode.FieldName = "DE_SOURCECODE";
             this.de_sourcecode.Name = "de_sourcecode";
             this.de_sourcecode.Visible = true;
-            this.de_sourcecode.VisibleIndex = 5;
+            this.de_sourcecode.VisibleIndex = 4;
             // 
             // de_indate
             // 
@@ -644,7 +641,7 @@ namespace UAS_PLCDataReader
             this.de_spec.FieldName = "DE_SPEC";
             this.de_spec.Name = "de_spec";
             this.de_spec.Visible = true;
-            this.de_spec.VisibleIndex = 7;
+            this.de_spec.VisibleIndex = 6;
             // 
             // de_inman
             // 
@@ -652,7 +649,7 @@ namespace UAS_PLCDataReader
             this.de_inman.FieldName = "DE_INMAN";
             this.de_inman.Name = "de_inman";
             this.de_inman.Visible = true;
-            this.de_inman.VisibleIndex = 8;
+            this.de_inman.VisibleIndex = 7;
             // 
             // de_vendcode
             // 
@@ -672,7 +669,7 @@ namespace UAS_PLCDataReader
             this.de_address.FieldName = "DE_ADDRESS";
             this.de_address.Name = "de_address";
             this.de_address.Visible = true;
-            this.de_address.VisibleIndex = 9;
+            this.de_address.VisibleIndex = 8;
             // 
             // de_linecode
             // 
@@ -680,7 +677,7 @@ namespace UAS_PLCDataReader
             this.de_linecode.FieldName = "DE_LINECODE";
             this.de_linecode.Name = "de_linecode";
             this.de_linecode.Visible = true;
-            this.de_linecode.VisibleIndex = 10;
+            this.de_linecode.VisibleIndex = 9;
             // 
             // de_wccode
             // 
@@ -688,7 +685,7 @@ namespace UAS_PLCDataReader
             this.de_wccode.FieldName = "DE_WCCODE";
             this.de_wccode.Name = "de_wccode";
             this.de_wccode.Visible = true;
-            this.de_wccode.VisibleIndex = 11;
+            this.de_wccode.VisibleIndex = 10;
             // 
             // de_item1
             // 
@@ -697,7 +694,7 @@ namespace UAS_PLCDataReader
             this.de_item1.FieldName = "DE_ITEM1";
             this.de_item1.Name = "de_item1";
             this.de_item1.Visible = true;
-            this.de_item1.VisibleIndex = 12;
+            this.de_item1.VisibleIndex = 11;
             // 
             // DataItemRepositoryItemComboBox1
             // 
@@ -713,7 +710,7 @@ namespace UAS_PLCDataReader
             this.de_item2.FieldName = "DE_ITEM2";
             this.de_item2.Name = "de_item2";
             this.de_item2.Visible = true;
-            this.de_item2.VisibleIndex = 13;
+            this.de_item2.VisibleIndex = 12;
             // 
             // de_item3
             // 
@@ -722,7 +719,7 @@ namespace UAS_PLCDataReader
             this.de_item3.FieldName = "DE_ITEM3";
             this.de_item3.Name = "de_item3";
             this.de_item3.Visible = true;
-            this.de_item3.VisibleIndex = 14;
+            this.de_item3.VisibleIndex = 13;
             // 
             // PageCommandSet
             // 

+ 2 - 7
PLCDataReader/Main.cs

@@ -137,10 +137,10 @@ namespace UAS_PLCDataReader
             //ButtonSavePolling.Grid = GridPolling;
             //ButtonAddPolling.Grid = GridPolling;
             //轮询配置界面
-            GridPollingSetting.GetDataSQL = "SELECT '' POLLSETTINGSTATUSCOLUMN,0 CHECKEDCOLUMN,DPC_MAN,DPC_ID,DPC_DECODE,DPC_DENAME ,DPC_INTERVAL ,DPC_DCCODE ,DPC_FUNCTION , nvl(DPC_ENABLE,0)DPC_ENABLE,DPC_STATUS,DPC_REMARK,EM_NAME FROM DEVICEPOLLINGCONFIG left join EMPLOYEE on em_code=dpc_man WHERE DPC_MAN='" + User.UserCode + "' ORDER BY DPC_ID";
+            GridPollingSetting.GetDataSQL = "SELECT '' POLLSETTINGSTATUSCOLUMN,0 CHECKEDCOLUMN,DPC_MAN,DPC_ID,DPC_DECODE,de_name DPC_DENAME ,DPC_INTERVAL ,DPC_DCCODE ,DPC_FUNCTION , nvl(DPC_ENABLE,0)DPC_ENABLE,DPC_STATUS,DPC_REMARK,EM_NAME FROM DEVICEPOLLINGCONFIG left join EMPLOYEE on em_code=dpc_man left join device on de_code=dpc_decode WHERE DPC_MAN='" + User.UserCode + "' ORDER BY DPC_ID";
             GridPollingSetting.ID = "DPC_ID";
             GridPollingSetting.TableName = "DEVICEPOLLINGCONFIG";
-            GridPollingSetting.InsertSQL = "insert into DEVICEPOLLINGCONFIG(DPC_ID,DPC_DECODE,DPC_DENAME ,DPC_INTERVAL ,DPC_DCCODE ,DPC_FUNCTION , DPC_ENABLE,DPC_STATUS ,DPC_REMARK,DPC_MAN) values(DEVICEPOLLINGCONFIG_seq.nextval,:DPC_DECODE  ,:DPC_INTERVAL ,:DPC_DCCODE ,:DPC_FUNCTION , :DPC_ENABLE,:DPC_STATUS ,:DPC_REMARK,'" + User.UserCode + "')";
+            GridPollingSetting.InsertSQL = "insert into DEVICEPOLLINGCONFIG(DPC_ID,DPC_DECODE, DPC_DENAME ,DPC_INTERVAL ,DPC_DCCODE ,DPC_FUNCTION , DPC_ENABLE,DPC_STATUS ,DPC_REMARK,DPC_MAN) values(DEVICEPOLLINGCONFIG_seq.nextval,:DPC_DECODE  ,:DPC_INTERVAL ,:DPC_DCCODE ,:DPC_FUNCTION , :DPC_ENABLE,:DPC_STATUS ,:DPC_REMARK,'" + User.UserCode + "')";
             ButtonSaveCommandSet.Grid = GridPollingSetting;
             ButtonNewCommandSet.Grid = GridPollingSetting;
             ButtonDeleteCommandSet.Grid = GridPollingSetting;
@@ -235,11 +235,6 @@ namespace UAS_PLCDataReader
             RefreshDeviceData();
         }
 
-        private void ComBoxDeviceListMan_EditValueChanged(object sender, EventArgs e)
-        {
-
-        }
-
         private void RefreshDeviceData()
         {
             GridDeviceList.GetDataSQL = DeviceListQuerySQL.ToString();