修改真空度曲线图

main
xiaoguo 1 year ago
parent a8a283169d
commit 7efb03336f

@ -47,11 +47,11 @@ namespace GuideScreen.UI.ControlUI
{
return;
}
//if (!plcMonitorService.IsRun)
//{
// ShowErrorNotifier("PLC连接失败");
// return;
//}
if (!plcMonitorService.IsRun)
{
ShowErrorNotifier("PLC连接失败");
return;
}
var list = plcPointService.GetControllerTimeParametersList();
if (list.Count == 0 && !cmbToilet.Text.IsNullOrEmpty())
{
@ -91,11 +91,11 @@ namespace GuideScreen.UI.ControlUI
private void Setting(int index, Int16 value)
{
//if (!plcMonitorService.IsRun)
//{
// ShowErrorNotifier("PLC连接失败");
// return;
//}
if (!plcMonitorService.IsRun)
{
ShowErrorNotifier("PLC连接失败");
return;
}
if (models == null || models.Count != 4)
{
ShowErrorNotifier("查询参数不正确!");

@ -585,7 +585,7 @@ namespace GuideScreen.UI
this.lblEnviAmmoniaGas.Font = new System.Drawing.Font("微软雅黑", 14.25F, System.Drawing.FontStyle.Bold);
this.lblEnviAmmoniaGas.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(192)))));
this.lblEnviAmmoniaGas.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;
this.lblEnviAmmoniaGas.Location = new System.Drawing.Point(293, 157);
this.lblEnviAmmoniaGas.Location = new System.Drawing.Point(286, 157);
this.lblEnviAmmoniaGas.Name = "lblEnviAmmoniaGas";
this.lblEnviAmmoniaGas.Size = new System.Drawing.Size(31, 41);
this.lblEnviAmmoniaGas.Style = Sunny.UI.UIStyle.Custom;
@ -1282,7 +1282,7 @@ namespace GuideScreen.UI
this.chartPassengerFlowTotal.Font = new System.Drawing.Font("微软雅黑", 18F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.chartPassengerFlowTotal.ForeColor = System.Drawing.Color.Silver;
this.chartPassengerFlowTotal.LegendFont = new System.Drawing.Font("微软雅黑", 15.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.chartPassengerFlowTotal.Location = new System.Drawing.Point(612, 638);
this.chartPassengerFlowTotal.Location = new System.Drawing.Point(612, 635);
this.chartPassengerFlowTotal.Margin = new System.Windows.Forms.Padding(0);
this.chartPassengerFlowTotal.MinimumSize = new System.Drawing.Size(1, 1);
this.chartPassengerFlowTotal.Name = "chartPassengerFlowTotal";

@ -51,8 +51,6 @@ namespace GuideScreen.UI
//真空度x坐标
private int vacuumIndex = 0;
//真空度x坐标时间
private DateTime vacuumDateTime = DateTime.Now;
//今日气象
private WeatherController weatherController;
@ -769,7 +767,7 @@ namespace GuideScreen.UI
{
if (!chartVacuum.Option.ExistsSeries("vacuumLine"))
{
UILineOption option = new UILineOption();
var option = new UILineOption();
option.ToolTip.Visible = true;
option.Title = new UITitle();
option.Title.Text = string.Empty;
@ -840,12 +838,9 @@ namespace GuideScreen.UI
//更新厕位使用情况
toilets = plcController.ToiletPositionRecordTotalByToday();
ToileUseChartByDay();
}
//真空度过期时间
if ((dateTime - vacuumDateTime).TotalSeconds > 30)
{
//真空度过期时间
vacuumIndex = 0;
vacuumDateTime = dateTime;
chartVacuum.Option.Clear();
}
}

Loading…
Cancel
Save