using Admin.Core.Wpf.Model;
using CommunityToolkit.Mvvm.ComponentModel;
/*
* 首页信息
* */
namespace Admin.Core.Wpf.ViewModel
{
public class IndexPageViewModel : ObservableObject
{
public IndexPageViewModel()
{
}
#region 更新Plc信息
public void UpdatePlc(PointsInfo point)
{
///
/// 一体机A转速
///
if (!string.IsNullOrEmpty(point.ASpeed)) ASpeed = point.ASpeed;
///
/// 一体机A电流
///
if (!string.IsNullOrEmpty(point.ACurrent)) ACurrent = point.ACurrent;
///
/// 一体机切刀A转速
///
if (!string.IsNullOrEmpty(point.AlicerASpeed)) AlicerASpeed = point.AlicerASpeed;
///
/// 一体机切刀A电流
///
if (!string.IsNullOrEmpty(point.AlicerACurrent)) AlicerACurrent = point.AlicerACurrent;
///
/// 一体机B转速
///
if (!string.IsNullOrEmpty(point.BSpeed)) BSpeed = point.BSpeed;
///
/// 一体机B电流
///
if (!string.IsNullOrEmpty(point.BCurrent)) BCurrent = point.BCurrent;
///
/// 一体机切刀B转速
///
if (!string.IsNullOrEmpty(point.AlicerBSpeed)) AlicerBSpeed = point.AlicerBSpeed;
///
/// 一体机切刀B电流
///
if (!string.IsNullOrEmpty(point.AlicerBCurrent)) AlicerBCurrent = point.AlicerBCurrent;
///
/// 一体机A机头压力
///
if (!string.IsNullOrEmpty(point.APressure)) APressure = point.APressure;
///
/// 一体机A机头温度
///
if (!string.IsNullOrEmpty(point.ATemperature)) ATemperature = point.ATemperature;
///
/// 一体机B机头压力
///
if (!string.IsNullOrEmpty(point.BPressure)) BPressure = point.BPressure;
///
/// 一体机B机头温度
///
if (!string.IsNullOrEmpty(point.BTemperature)) BTemperature = point.BTemperature;
/////
///// 一体机A转速高设定
/////
//if (!string.IsNullOrEmpty(point.ASpeedHighSet)) ASpeedHighSet = point.ASpeedHighSet;
/////
///// 一体机A转速低设定
/////
//if (!string.IsNullOrEmpty(point.ASpeedLowSet)) ASpeedLowSet = point.ASpeedLowSet;
/////
///// 一体机A电流高设定
/////
//if (!string.IsNullOrEmpty(point.ACurrentHighSet)) ACurrentHighSet = point.ACurrentHighSet;
/////
///// 一体机A电流低设定
/////
//if (!string.IsNullOrEmpty(point.ACurrentLowSet)) ACurrentLowSet = point.ACurrentLowSet;
/////
///// 一体机切刀A转速高设定
/////
//if (!string.IsNullOrEmpty(point.AlicerSlicerASpeedHighSet)) AlicerSlicerASpeedHighSet = point.AlicerSlicerASpeedHighSet;
/////
///// 一体机切刀A转速低设定
/////
//if (!string.IsNullOrEmpty(point.AlicerSlicerASpeedLowSet)) AlicerSlicerASpeedLowSet = point.AlicerSlicerASpeedLowSet;
/////
///// 一体机切刀A电流高设定
/////
//if (!string.IsNullOrEmpty(point.AlicerSlicerACurrentHighSet)) AlicerSlicerACurrentHighSet = point.AlicerSlicerACurrentHighSet;
/////
///// 一体机切刀A电流低设定
/////
//if (!string.IsNullOrEmpty(point.AlicerSlicerACurrentLowSet)) AlicerSlicerACurrentLowSet = point.AlicerSlicerACurrentLowSet;
/////
///// 一体机B转速高设定
/////
//if (!string.IsNullOrEmpty(point.AlicerBSpeedHighSet)) AlicerBSpeedHighSet = point.AlicerBSpeedHighSet;
/////
///// 一体机B转速低设定
/////
//if (!string.IsNullOrEmpty(point.AlicerBSpeedLowSet)) AlicerBSpeedLowSet = point.AlicerBSpeedLowSet;
/////
///// 一体机B电流高设定
/////
//if (!string.IsNullOrEmpty(point.AlicerBCurrentHighSet)) AlicerBCurrentHighSet = point.AlicerBCurrentHighSet;
/////
///// 一体机B电流低设定
/////
//if (!string.IsNullOrEmpty(point.AlicerBCurrentLowSet)) AlicerBCurrentLowSet = point.AlicerBCurrentLowSet;
/////
///// 一体机切刀B转速高设定
/////
//if (!string.IsNullOrEmpty(point.AlicerSlicerBSpeedHighSet)) AlicerSlicerBSpeedHighSet = point.AlicerSlicerBSpeedHighSet;
/////
///// 一体机切刀B转速低设定
/////
//if (!string.IsNullOrEmpty(point.AlicerSlicerBSpeedLowSet)) AlicerSlicerBSpeedLowSet = point.AlicerSlicerBSpeedLowSet;
/////
///// 一体机切刀B电流高设定
/////
//if (!string.IsNullOrEmpty(point.AlicerSlicerBCurrentHighSet)) AlicerSlicerBCurrentHighSet = point.AlicerSlicerBCurrentHighSet;
/////
///// 一体机切刀B电流低设定
/////
//if (!string.IsNullOrEmpty(point.AlicerSlicerBCurrentLowSet)) AlicerSlicerBCurrentLowSet = point.AlicerSlicerBCurrentLowSet;
/////
///// 一体机A机头压力高设定
/////
//if (!string.IsNullOrEmpty(point.AlicerAPressureHighSet)) AlicerAPressureHighSet = point.AlicerAPressureHighSet;
/////
///// 一体机A机头压力低设定
/////
//if (!string.IsNullOrEmpty(point.AlicerAPressureLowSet)) AlicerAPressureLowSet = point.AlicerAPressureLowSet;
/////
///// 一体机A机头温度高设定
/////
//if (!string.IsNullOrEmpty(point.AlicerATemperatureHighSet)) AlicerATemperatureHighSet = point.AlicerATemperatureHighSet;
/////
///// 一体机A机头温度低设定
/////
//if (!string.IsNullOrEmpty(point.AlicerATemperatureLowSet)) AlicerATemperatureLowSet = point.AlicerATemperatureLowSet;
/////
///// 一体机B机头压力高设定
/////
//if (!string.IsNullOrEmpty(point.AlicerBPressureHighSet)) AlicerBPressureHighSet = point.AlicerBPressureHighSet;
/////
///// 一体机B机头压力低设定
/////
//if (!string.IsNullOrEmpty(point.AlicerBPressureLowSet)) AlicerBPressureLowSet = point.AlicerBPressureLowSet;
/////
///// 一体机B机头温度高设定
/////
//if (!string.IsNullOrEmpty(point.AlicerBTemperatureHighSet)) AlicerBTemperatureHighSet = point.AlicerBTemperatureHighSet;
/////
///// 一体机B机头温度低设定
/////
//if (!string.IsNullOrEmpty(point.AlicerBTemperatureLowSet)) AlicerBTemperatureLowSet = point.AlicerBTemperatureLowSet;
///
/// 一体机A运行
///
if (!string.IsNullOrEmpty(point.AlicerARun)) AlicerARun = (point.AlicerARun == "False") ? "停止" : "运行";
///
/// 一体机A故障
///
if (!string.IsNullOrEmpty(point.AlicerAHitch)) AlicerAHitch = (point.AlicerAHitch == "False") ? "故障" : "正常";
///
/// 一体机切刀A运行
///
if (!string.IsNullOrEmpty(point.AlicerSlicerARun)) AlicerSlicerARun = (point.AlicerSlicerARun == "False") ? "停止" : "运行";
///
/// 一体机切刀A故障
///
if (!string.IsNullOrEmpty(point.AlicerSlicerAHitch)) AlicerSlicerAHitch = (point.AlicerSlicerAHitch == "False") ? "故障" : "正常";
///
/// 一体机油泵A运行
///
if (!string.IsNullOrEmpty(point.AlicerOilPumpARun)) AlicerOilPumpARun = (point.AlicerOilPumpARun == "False") ? "停止" : "运行";
///
/// 一体机油泵A故障
///
if (!string.IsNullOrEmpty(point.AlicerOilPumpAHitch)) AlicerOilPumpAHitch = (point.AlicerOilPumpAHitch == "False") ? "故障" : "正常";
///
/// 一体机B运行
///
if (!string.IsNullOrEmpty(point.AlicerBRun)) AlicerBRun = (point.AlicerBRun == "False") ? "停止" : "运行";
///
/// 一体机B故障
///
if (!string.IsNullOrEmpty(point.AlicerBHitch)) AlicerBHitch = (point.AlicerBHitch == "False") ? "故障" : "正常";
///
/// 一体机切刀B运行
///
if (!string.IsNullOrEmpty(point.AlicerSlicerBRun)) AlicerSlicerBRun = (point.AlicerSlicerBRun == "False") ? "停止" : "运行";
///
/// 一体机切刀B故障
///
if (!string.IsNullOrEmpty(point.AlicerSlicerBHitch)) AlicerSlicerBHitch = (point.AlicerSlicerBHitch == "False") ? "故障" : "正常";
}
#endregion
#region 更新字段
///
/// 一体机A转速
///
public string aSpeed;
public string ASpeed
{
get => aSpeed;
set=>SetProperty(ref aSpeed, value);
}
///
/// 一体机A电流
///
public string aCurrent;
public string ACurrent
{
get => aCurrent;
set=>SetProperty(ref aCurrent, value);
}
///
/// 一体机切刀A转速
///
public string alicerASpeed;
public string AlicerASpeed
{
get => alicerASpeed;
set => SetProperty(ref alicerASpeed, value);
}
///
/// 一体机切刀A电流
///
public string alicerACurrent;
public string AlicerACurrent
{
get => alicerACurrent;
set => SetProperty(ref alicerACurrent, value);
}
///
/// 一体机B转速
///
public string bSpeed;
public string BSpeed
{
get => bSpeed;
set => SetProperty(ref bSpeed, value);
}
///
/// 一体机B电流
///
public string bCurrent;
public string BCurrent
{
get => bCurrent;
set => SetProperty(ref bCurrent, value);
}
///
/// 一体机切刀B转速
///
public string alicerBSpeed;
public string AlicerBSpeed
{
get => alicerBSpeed;
set => SetProperty(ref alicerBSpeed, value);
}
///
/// 一体机切刀B电流
///
public string alicerBCurrent;
public string AlicerBCurrent
{
get => alicerBCurrent;
set => SetProperty(ref alicerBCurrent, value);
}
///
/// 一体机A机头压力
///
public string aPressure;
public string APressure
{
get => aPressure;
set => SetProperty(ref aPressure, value);
}
///
/// 一体机A机头温度
///
public string aTemperature;
public string ATemperature
{
get => aTemperature;
set => SetProperty(ref aTemperature, value);
}
///
/// 一体机B机头压力
///
public string bPressure;
public string BPressure
{
get => bPressure;
set => SetProperty(ref bPressure, value);
}
///
/// 一体机B机头温度
///
public string bTemperature;
public string BTemperature
{
get => bTemperature;
set => SetProperty(ref bTemperature, value);
}
///
/// 一体机A转速高设定
///
public string bSpeedHighSet;
public string ASpeedHighSet
{
get => bSpeedHighSet;
set => SetProperty(ref bSpeedHighSet, value);
}
///
/// 一体机A转速低设定
///
public string bSpeedLowSet;
public string ASpeedLowSet
{
get => bSpeedLowSet;
set => SetProperty(ref bSpeedLowSet, value);
}
///
/// 一体机A电流高设定
///
public string aCurrentHighSet;
public string ACurrentHighSet
{
get => aCurrentHighSet;
set => SetProperty(ref aCurrentHighSet, value);
}
///
/// 一体机A电流低设定
///
public string aCurrentLowSet;
public string ACurrentLowSet
{
get => aCurrentLowSet;
set => SetProperty(ref aCurrentLowSet, value);
}
///
/// 一体机切刀A转速高设定
///
public string alicerSlicerASpeedHighSet;
public string AlicerSlicerASpeedHighSet
{
get => alicerSlicerASpeedHighSet;
set => SetProperty(ref alicerSlicerASpeedHighSet, value);
}
///
/// 一体机切刀A转速低设定
///
public string alicerSlicerASpeedLowSet;
public string AlicerSlicerASpeedLowSet
{
get => alicerSlicerASpeedLowSet;
set => SetProperty(ref alicerSlicerASpeedLowSet, value);
}
///
/// 一体机切刀A电流高设定
///
public string alicerSlicerACurrentHighSet;
public string AlicerSlicerACurrentHighSet
{
get => alicerSlicerACurrentHighSet;
set => SetProperty(ref alicerSlicerACurrentHighSet, value);
}
///
/// 一体机切刀A电流低设定
///
public string alicerSlicerACurrentLowSet;
public string AlicerSlicerACurrentLowSet
{
get => alicerSlicerACurrentLowSet;
set => SetProperty(ref alicerSlicerACurrentLowSet, value);
}
///
/// 一体机B转速高设定
///
public string alicerBSpeedHighSet;
public string AlicerBSpeedHighSet
{
get => alicerBSpeedHighSet;
set => SetProperty(ref alicerBSpeedHighSet, value);
}
///
/// 一体机B转速低设定
///
public string alicerBSpeedLowSet;
public string AlicerBSpeedLowSet
{
get => alicerBSpeedLowSet;
set => SetProperty(ref alicerBSpeedLowSet, value);
}
///
/// 一体机B电流高设定
///
public string alicerBCurrentHighSet;
public string AlicerBCurrentHighSet
{
get => alicerBCurrentHighSet;
set => SetProperty(ref alicerBCurrentHighSet, value);
}
///
/// 一体机B电流低设定
///
public string alicerBCurrentLowSet;
public string AlicerBCurrentLowSet
{
get => alicerBCurrentLowSet;
set => SetProperty(ref alicerBCurrentLowSet, value);
}
///
/// 一体机切刀B转速高设定
///
public string alicerSlicerBSpeedHighSet;
public string AlicerSlicerBSpeedHighSet
{
get => alicerSlicerBSpeedHighSet;
set => SetProperty(ref alicerSlicerBSpeedHighSet, value);
}
///
/// 一体机切刀B转速低设定
///
public string alicerSlicerBSpeedLowSet;
public string AlicerSlicerBSpeedLowSet
{
get => alicerBCurrentLowSet;
set => SetProperty(ref alicerSlicerBSpeedLowSet, value);
}
///
/// 一体机切刀B电流高设定
///
public string alicerSlicerBCurrentHighSet;
public string AlicerSlicerBCurrentHighSet
{
get => alicerSlicerBCurrentHighSet;
set => SetProperty(ref alicerSlicerBCurrentHighSet, value);
}
///
/// 一体机切刀B电流低设定
///
public string alicerSlicerBCurrentLowSet;
public string AlicerSlicerBCurrentLowSet
{
get => alicerSlicerBCurrentLowSet;
set => SetProperty(ref alicerSlicerBCurrentLowSet, value);
}
///
/// 一体机A机头压力高设定
///
public string alicerAPressureHighSet;
public string AlicerAPressureHighSet
{
get => alicerAPressureHighSet;
set => SetProperty(ref alicerAPressureHighSet, value);
}
///
/// 一体机A机头压力低设定
///
public string alicerAPressureLowSet;
public string AlicerAPressureLowSet
{
get => alicerAPressureLowSet;
set => SetProperty(ref alicerAPressureLowSet, value);
}
///
/// 一体机A机头温度高设定
///
public string alicerATemperatureHighSet;
public string AlicerATemperatureHighSet
{
get => alicerATemperatureHighSet;
set => SetProperty(ref alicerATemperatureHighSet, value);
}
///
/// 一体机A机头温度低设定
///
public string alicerATemperatureLowSet;
public string AlicerATemperatureLowSet
{
get => alicerATemperatureLowSet;
set => SetProperty(ref alicerATemperatureLowSet, value);
}
///
/// 一体机B机头压力高设定
///
public string alicerBPressureHighSet;
public string AlicerBPressureHighSet
{
get => alicerBPressureHighSet;
set => SetProperty(ref alicerBPressureHighSet, value);
}
///
/// 一体机B机头压力低设定
///
public string alicerBPressureLowSet;
public string AlicerBPressureLowSet
{
get => alicerBPressureLowSet;
set => SetProperty(ref alicerBPressureLowSet, value);
}
///
/// 一体机B机头温度高设定
///
public string alicerBTemperatureHighSet;
public string AlicerBTemperatureHighSet
{
get => alicerBTemperatureHighSet;
set => SetProperty(ref alicerBTemperatureHighSet, value);
}
///
/// 一体机B机头温度低设定
///
public string alicerBTemperatureLowSet;
public string AlicerBTemperatureLowSet
{
get => alicerBTemperatureLowSet;
set => SetProperty(ref alicerBTemperatureLowSet, value);
}
///
/// 一体机A运行
///
public string alicerARun;
public string AlicerARun
{
get => alicerARun;
set => SetProperty(ref alicerARun, value);
}
///
/// 一体机A故障
///
public string alicerAHitch;
public string AlicerAHitch
{
get => alicerAHitch;
set => SetProperty(ref alicerAHitch, value);
}
///
/// 一体机切刀A运行
///
public string alicerSlicerARun;
public string AlicerSlicerARun
{
get => alicerSlicerARun;
set => SetProperty(ref alicerSlicerARun, value);
}
///
/// 一体机切刀A故障
///
public string alicerSlicerAHitch;
public string AlicerSlicerAHitch
{
get => alicerSlicerAHitch;
set => SetProperty(ref alicerSlicerAHitch, value);
}
///
/// 一体机油泵A运行
///
public string alicerOilPumpARun;
public string AlicerOilPumpARun
{
get => alicerOilPumpARun;
set => SetProperty(ref alicerOilPumpARun, value);
}
///
/// 一体机油泵A故障
///
public string alicerOilPumpAHitch;
public string AlicerOilPumpAHitch
{
get => alicerOilPumpAHitch;
set => SetProperty(ref alicerOilPumpAHitch, value);
}
///
/// 一体机B运行
///
public string alicerBRun;
public string AlicerBRun
{
get => alicerBRun;
set => SetProperty(ref alicerBRun, value);
}
///
/// 一体机B故障
///
public string alicerBHitch;
public string AlicerBHitch
{
get => alicerBHitch;
set => SetProperty(ref alicerBHitch, value);
}
///
/// 一体机切刀B运行
///
public string alicerSlicerBRun;
public string AlicerSlicerBRun
{
get => alicerSlicerBRun;
set => SetProperty(ref alicerSlicerBRun, value);
}
///
/// 一体机切刀B故障
///
public string alicerSlicerBHitch;
public string AlicerSlicerBHitch
{
get => alicerSlicerBHitch;
set => SetProperty(ref alicerSlicerBHitch, value);
}
#endregion
}
}