能耗定时上传
This commit is contained in:
@@ -38,6 +38,8 @@ namespace JY.Inspection.Frm
|
||||
tb_loginMes.DataBindings.Add(new Binding("Text", bindingSource1, "LoginMesUrl", true, DataSourceUpdateMode.OnPropertyChanged));
|
||||
tb_euipAlarm.DataBindings.Add(new Binding("Text", bindingSource1, "EquipAlarmUrl", true, DataSourceUpdateMode.OnPropertyChanged));
|
||||
tb_euipStatus.DataBindings.Add(new Binding("Text", bindingSource1, "EquipStatusUrl", true, DataSourceUpdateMode.OnPropertyChanged));
|
||||
num_taskInterval.DataBindings.Add(new Binding("Value", bindingSource1, "TaskInterval", true,
|
||||
DataSourceUpdateMode.OnPropertyChanged));
|
||||
}
|
||||
#endregion
|
||||
|
||||
@@ -62,6 +64,8 @@ namespace JY.Inspection.Frm
|
||||
_viewModel.LoginMesUrl = IniFileHelper.ReadIniData("MES配置", "LoginMesUrl");
|
||||
_viewModel.EquipAlarmUrl = IniFileHelper.ReadIniData("MES配置", "EquipAlarmUrl");
|
||||
_viewModel.EquipStatusUrl = IniFileHelper.ReadIniData("MES配置", "EquipStatusUrl");
|
||||
int.TryParse(IniFileHelper.ReadIniData("MES配置", "TaskInterval"), out int taskInterval);
|
||||
_viewModel.TaskInterval = taskInterval;
|
||||
|
||||
LoginTime.Text = IniFileHelper.ReadIniData("MES配置", "LoginTime");
|
||||
txtMesRequestTime.Text = IniFileHelper.ReadIniData("MES配置", "MesRequestTime");
|
||||
@@ -90,6 +94,7 @@ namespace JY.Inspection.Frm
|
||||
IniFileHelper.WriteIniData("MES配置", "LoginMesUrl", _viewModel.LoginMesUrl.Trim());
|
||||
IniFileHelper.WriteIniData("MES配置", "EquipAlarmUrl", _viewModel.EquipAlarmUrl.Trim());
|
||||
IniFileHelper.WriteIniData("MES配置", "EquipStatusUrl", _viewModel.EquipStatusUrl.Trim());
|
||||
IniFileHelper.WriteIniData("MES配置", "TaskInterval", _viewModel.TaskInterval.ToString());
|
||||
|
||||
IniFileHelper.WriteIniData("MES配置", "LoginTime", LoginTime.Text.Trim());
|
||||
LogManagerControl.AddLog($"用户[{Global.systemConfig.userName}]设置权限超时时间[{LoginTime.Text.Trim()}]", LogAddtype.local, Logtype.Warning);
|
||||
|
||||
+100
-38
@@ -48,6 +48,8 @@ namespace JY.Inspection.Frm
|
||||
this.metroLabel6 = new MetroFramework.Controls.MetroLabel();
|
||||
this.groupBox1 = new System.Windows.Forms.GroupBox();
|
||||
this.metroPanel_mid = new MetroFramework.Controls.MetroPanel();
|
||||
this.tb_euipStatus = new MetroFramework.Controls.MetroTextBox();
|
||||
this.metroLabel12 = new MetroFramework.Controls.MetroLabel();
|
||||
this.tb_euipAlarm = new MetroFramework.Controls.MetroTextBox();
|
||||
this.metroLabel11 = new MetroFramework.Controls.MetroLabel();
|
||||
this.tb_loginMes = new MetroFramework.Controls.MetroTextBox();
|
||||
@@ -69,8 +71,9 @@ namespace JY.Inspection.Frm
|
||||
this.linkLabel_editCollectItemCfg = new System.Windows.Forms.LinkLabel();
|
||||
this.chkIsMesUP = new System.Windows.Forms.CheckBox();
|
||||
this.bindingSource1 = new System.Windows.Forms.BindingSource(this.components);
|
||||
this.metroLabel12 = new MetroFramework.Controls.MetroLabel();
|
||||
this.tb_euipStatus = new MetroFramework.Controls.MetroTextBox();
|
||||
this.metroLabel13 = new MetroFramework.Controls.MetroLabel();
|
||||
this.num_taskInterval = new System.Windows.Forms.NumericUpDown();
|
||||
this.metroLabel14 = new MetroFramework.Controls.MetroLabel();
|
||||
this.groupBox1.SuspendLayout();
|
||||
this.metroPanel_mid.SuspendLayout();
|
||||
this.metroPanel_top.SuspendLayout();
|
||||
@@ -78,6 +81,7 @@ namespace JY.Inspection.Frm
|
||||
((System.ComponentModel.ISupportInitialize)(this.txtMesRequestTime)).BeginInit();
|
||||
this.metroPanel_bottom.SuspendLayout();
|
||||
((System.ComponentModel.ISupportInitialize)(this.bindingSource1)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.num_taskInterval)).BeginInit();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
// btnExit
|
||||
@@ -410,6 +414,48 @@ namespace JY.Inspection.Frm
|
||||
this.metroPanel_mid.VerticalScrollbarHighlightOnWheel = false;
|
||||
this.metroPanel_mid.VerticalScrollbarSize = 13;
|
||||
//
|
||||
// tb_euipStatus
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
this.tb_euipStatus.CustomButton.Image = null;
|
||||
this.tb_euipStatus.CustomButton.Location = new System.Drawing.Point(671, 1);
|
||||
this.tb_euipStatus.CustomButton.Margin = new System.Windows.Forms.Padding(4);
|
||||
this.tb_euipStatus.CustomButton.Name = "";
|
||||
this.tb_euipStatus.CustomButton.Size = new System.Drawing.Size(27, 27);
|
||||
this.tb_euipStatus.CustomButton.Style = MetroFramework.MetroColorStyle.Blue;
|
||||
this.tb_euipStatus.CustomButton.TabIndex = 1;
|
||||
this.tb_euipStatus.CustomButton.Theme = MetroFramework.MetroThemeStyle.Light;
|
||||
this.tb_euipStatus.CustomButton.UseSelectable = true;
|
||||
this.tb_euipStatus.CustomButton.Visible = false;
|
||||
this.tb_euipStatus.Lines = new string[0];
|
||||
this.tb_euipStatus.Location = new System.Drawing.Point(235, 260);
|
||||
this.tb_euipStatus.Margin = new System.Windows.Forms.Padding(4);
|
||||
this.tb_euipStatus.MaxLength = 32767;
|
||||
this.tb_euipStatus.Name = "tb_euipStatus";
|
||||
this.tb_euipStatus.PasswordChar = '\0';
|
||||
this.tb_euipStatus.ScrollBars = System.Windows.Forms.ScrollBars.None;
|
||||
this.tb_euipStatus.SelectedText = "";
|
||||
this.tb_euipStatus.SelectionLength = 0;
|
||||
this.tb_euipStatus.SelectionStart = 0;
|
||||
this.tb_euipStatus.ShortcutsEnabled = true;
|
||||
this.tb_euipStatus.Size = new System.Drawing.Size(699, 29);
|
||||
this.tb_euipStatus.TabIndex = 45;
|
||||
this.tb_euipStatus.UseSelectable = true;
|
||||
this.tb_euipStatus.WaterMarkColor = System.Drawing.Color.FromArgb(((int)(((byte)(109)))), ((int)(((byte)(109)))), ((int)(((byte)(109)))));
|
||||
this.tb_euipStatus.WaterMarkFont = new System.Drawing.Font("Segoe UI", 12F, System.Drawing.FontStyle.Italic, System.Drawing.GraphicsUnit.Pixel);
|
||||
//
|
||||
// metroLabel12
|
||||
//
|
||||
this.metroLabel12.AutoSize = true;
|
||||
this.metroLabel12.Location = new System.Drawing.Point(41, 269);
|
||||
this.metroLabel12.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
|
||||
this.metroLabel12.Name = "metroLabel12";
|
||||
this.metroLabel12.Size = new System.Drawing.Size(144, 20);
|
||||
this.metroLabel12.TabIndex = 44;
|
||||
this.metroLabel12.Text = "设备状态接口地址:";
|
||||
//
|
||||
// tb_euipAlarm
|
||||
//
|
||||
//
|
||||
@@ -580,6 +626,9 @@ namespace JY.Inspection.Frm
|
||||
//
|
||||
// metroPanel_top
|
||||
//
|
||||
this.metroPanel_top.Controls.Add(this.metroLabel14);
|
||||
this.metroPanel_top.Controls.Add(this.num_taskInterval);
|
||||
this.metroPanel_top.Controls.Add(this.metroLabel13);
|
||||
this.metroPanel_top.Controls.Add(this.tb_productType);
|
||||
this.metroPanel_top.Controls.Add(this.metroLabel18);
|
||||
this.metroPanel_top.Controls.Add(this.metroLabel21);
|
||||
@@ -786,47 +835,56 @@ namespace JY.Inspection.Frm
|
||||
this.chkIsMesUP.Text = "开启MES模式";
|
||||
this.chkIsMesUP.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// metroLabel12
|
||||
// metroLabel13
|
||||
//
|
||||
this.metroLabel12.AutoSize = true;
|
||||
this.metroLabel12.Location = new System.Drawing.Point(41, 269);
|
||||
this.metroLabel12.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
|
||||
this.metroLabel12.Name = "metroLabel12";
|
||||
this.metroLabel12.Size = new System.Drawing.Size(144, 20);
|
||||
this.metroLabel12.TabIndex = 44;
|
||||
this.metroLabel12.Text = "设备状态接口地址:";
|
||||
this.metroLabel13.AutoSize = true;
|
||||
this.metroLabel13.Location = new System.Drawing.Point(484, 110);
|
||||
this.metroLabel13.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
|
||||
this.metroLabel13.Name = "metroLabel13";
|
||||
this.metroLabel13.Size = new System.Drawing.Size(114, 20);
|
||||
this.metroLabel13.TabIndex = 185;
|
||||
this.metroLabel13.Text = "定时任务间隔:";
|
||||
//
|
||||
// tb_euipStatus
|
||||
// num_taskInterval
|
||||
//
|
||||
this.num_taskInterval.DecimalPlaces = 1;
|
||||
this.num_taskInterval.Increment = new decimal(new int[] {
|
||||
5,
|
||||
0,
|
||||
0,
|
||||
65536});
|
||||
this.num_taskInterval.Location = new System.Drawing.Point(655, 110);
|
||||
this.num_taskInterval.Margin = new System.Windows.Forms.Padding(4);
|
||||
this.num_taskInterval.Maximum = new decimal(new int[] {
|
||||
1000,
|
||||
0,
|
||||
0,
|
||||
0});
|
||||
this.num_taskInterval.Minimum = new decimal(new int[] {
|
||||
5,
|
||||
0,
|
||||
0,
|
||||
65536});
|
||||
this.num_taskInterval.Name = "num_taskInterval";
|
||||
this.num_taskInterval.Size = new System.Drawing.Size(101, 25);
|
||||
this.num_taskInterval.TabIndex = 186;
|
||||
this.num_taskInterval.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
|
||||
this.num_taskInterval.Value = new decimal(new int[] {
|
||||
1,
|
||||
0,
|
||||
0,
|
||||
0});
|
||||
//
|
||||
// metroLabel14
|
||||
//
|
||||
//
|
||||
this.tb_euipStatus.CustomButton.Image = null;
|
||||
this.tb_euipStatus.CustomButton.Location = new System.Drawing.Point(671, 1);
|
||||
this.tb_euipStatus.CustomButton.Margin = new System.Windows.Forms.Padding(4);
|
||||
this.tb_euipStatus.CustomButton.Name = "";
|
||||
this.tb_euipStatus.CustomButton.Size = new System.Drawing.Size(27, 27);
|
||||
this.tb_euipStatus.CustomButton.Style = MetroFramework.MetroColorStyle.Blue;
|
||||
this.tb_euipStatus.CustomButton.TabIndex = 1;
|
||||
this.tb_euipStatus.CustomButton.Theme = MetroFramework.MetroThemeStyle.Light;
|
||||
this.tb_euipStatus.CustomButton.UseSelectable = true;
|
||||
this.tb_euipStatus.CustomButton.Visible = false;
|
||||
this.tb_euipStatus.Lines = new string[0];
|
||||
this.tb_euipStatus.Location = new System.Drawing.Point(235, 260);
|
||||
this.tb_euipStatus.Margin = new System.Windows.Forms.Padding(4);
|
||||
this.tb_euipStatus.MaxLength = 32767;
|
||||
this.tb_euipStatus.Name = "tb_euipStatus";
|
||||
this.tb_euipStatus.PasswordChar = '\0';
|
||||
this.tb_euipStatus.ScrollBars = System.Windows.Forms.ScrollBars.None;
|
||||
this.tb_euipStatus.SelectedText = "";
|
||||
this.tb_euipStatus.SelectionLength = 0;
|
||||
this.tb_euipStatus.SelectionStart = 0;
|
||||
this.tb_euipStatus.ShortcutsEnabled = true;
|
||||
this.tb_euipStatus.Size = new System.Drawing.Size(699, 29);
|
||||
this.tb_euipStatus.TabIndex = 45;
|
||||
this.tb_euipStatus.UseSelectable = true;
|
||||
this.tb_euipStatus.WaterMarkColor = System.Drawing.Color.FromArgb(((int)(((byte)(109)))), ((int)(((byte)(109)))), ((int)(((byte)(109)))));
|
||||
this.tb_euipStatus.WaterMarkFont = new System.Drawing.Font("Segoe UI", 12F, System.Drawing.FontStyle.Italic, System.Drawing.GraphicsUnit.Pixel);
|
||||
this.metroLabel14.AutoSize = true;
|
||||
this.metroLabel14.Location = new System.Drawing.Point(764, 110);
|
||||
this.metroLabel14.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
|
||||
this.metroLabel14.Name = "metroLabel14";
|
||||
this.metroLabel14.Size = new System.Drawing.Size(32, 20);
|
||||
this.metroLabel14.TabIndex = 187;
|
||||
this.metroLabel14.Text = "min";
|
||||
this.metroLabel14.Visible = false;
|
||||
//
|
||||
// FormMesDataSet
|
||||
//
|
||||
@@ -853,6 +911,7 @@ namespace JY.Inspection.Frm
|
||||
this.metroPanel_bottom.ResumeLayout(false);
|
||||
this.metroPanel_bottom.PerformLayout();
|
||||
((System.ComponentModel.ISupportInitialize)(this.bindingSource1)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.num_taskInterval)).EndInit();
|
||||
this.ResumeLayout(false);
|
||||
|
||||
}
|
||||
@@ -898,5 +957,8 @@ namespace JY.Inspection.Frm
|
||||
private MetroFramework.Controls.MetroLabel metroLabel11;
|
||||
private MetroFramework.Controls.MetroTextBox tb_euipStatus;
|
||||
private MetroFramework.Controls.MetroLabel metroLabel12;
|
||||
private System.Windows.Forms.NumericUpDown num_taskInterval;
|
||||
private MetroFramework.Controls.MetroLabel metroLabel13;
|
||||
private MetroFramework.Controls.MetroLabel metroLabel14;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user