Browse Source

禁用右键菜单

章政 7 years ago
parent
commit
8f3eaa4910

+ 11 - 0
UAS_DeviceMonitor/Device/Information/DeviceStatusInfo.Designer.cs

@@ -54,6 +54,7 @@ namespace UAS_DeviceMonitor.Device.Infomation
             this.de_address = new UAS_DeviceMonitor.CustomerControl.ValueLabel.ValueLabel();
             this.de_address = new UAS_DeviceMonitor.CustomerControl.ValueLabel.ValueLabel();
             this.de_wccode = new UAS_DeviceMonitor.CustomerControl.ValueLabel.ValueLabel();
             this.de_wccode = new UAS_DeviceMonitor.CustomerControl.ValueLabel.ValueLabel();
             this.de_name = new UAS_DeviceMonitor.CustomerControl.ValueLabel.ValueLabel();
             this.de_name = new UAS_DeviceMonitor.CustomerControl.ValueLabel.ValueLabel();
+            this.dpg_runtime = new UAS_DeviceMonitor.CustomerControl.ValueLabel.ValueLabel();
             ((System.ComponentModel.ISupportInitialize)(this.groupControl1)).BeginInit();
             ((System.ComponentModel.ISupportInitialize)(this.groupControl1)).BeginInit();
             this.groupControl1.SuspendLayout();
             this.groupControl1.SuspendLayout();
             ((System.ComponentModel.ISupportInitialize)(this.groupControl2)).BeginInit();
             ((System.ComponentModel.ISupportInitialize)(this.groupControl2)).BeginInit();
@@ -209,6 +210,7 @@ namespace UAS_DeviceMonitor.Device.Infomation
             // 
             // 
             // groupControl3
             // groupControl3
             // 
             // 
+            this.groupControl3.Controls.Add(this.dpg_runtime);
             this.groupControl3.Controls.Add(this.dpg_count);
             this.groupControl3.Controls.Add(this.dpg_count);
             this.groupControl3.Controls.Add(this.dpg_receivedatasize);
             this.groupControl3.Controls.Add(this.dpg_receivedatasize);
             this.groupControl3.Controls.Add(this.dpg_senddatasize);
             this.groupControl3.Controls.Add(this.dpg_senddatasize);
@@ -288,6 +290,14 @@ namespace UAS_DeviceMonitor.Device.Infomation
             this.de_name.Size = new System.Drawing.Size(0, 16);
             this.de_name.Size = new System.Drawing.Size(0, 16);
             this.de_name.TabIndex = 16;
             this.de_name.TabIndex = 16;
             // 
             // 
+            // dpg_runtime
+            // 
+            this.dpg_runtime.Appearance.Font = new System.Drawing.Font("黑体", 12F);
+            this.dpg_runtime.Location = new System.Drawing.Point(101, 74);
+            this.dpg_runtime.Name = "dpg_runtime";
+            this.dpg_runtime.Size = new System.Drawing.Size(0, 16);
+            this.dpg_runtime.TabIndex = 16;
+            // 
             // DeviceStatusInfo
             // DeviceStatusInfo
             // 
             // 
             this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 14F);
             this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 14F);
@@ -343,5 +353,6 @@ namespace UAS_DeviceMonitor.Device.Infomation
         private ValueLabel de_address;
         private ValueLabel de_address;
         private ValueLabel de_wccode;
         private ValueLabel de_wccode;
         private ValueLabel de_name;
         private ValueLabel de_name;
+        private ValueLabel dpg_runtime;
     }
     }
 }
 }

+ 1 - 1
UAS_DeviceMonitor/Device/Information/DeviceStatusInfo.cs

@@ -39,7 +39,7 @@ namespace UAS_DeviceMonitor.Device.Infomation
             {
             {
                 BaseUtil.SetFormValue(Controls, dt);
                 BaseUtil.SetFormValue(Controls, dt);
             }
             }
-            dt = (DataTable)dh.ExecuteSql("select dpg_count,dpg_starttime,dpg_senddatasize,dpg_receivedatasize from DEVICEPOLLINGLOG where dpg_id=(select max(dpg_id) from DEVICEPOLLINGLOG where dpg_decode='" + de_code + "')", "select");
+            dt = (DataTable)dh.ExecuteSql("select dpg_count,round((sysdate-dpg_starttime)*1440)||'分钟' dpg_runtime,dpg_starttime,dpg_senddatasize,dpg_receivedatasize from DEVICEPOLLINGLOG where dpg_id=(select max(dpg_id) from DEVICEPOLLINGLOG where dpg_decode='" + de_code + "')", "select");
             if (dt.Rows.Count > 0)
             if (dt.Rows.Count > 0)
             {
             {
                 BaseUtil.SetFormValue(Controls, dt);
                 BaseUtil.SetFormValue(Controls, dt);