|
|
@ -125,6 +125,17 @@ namespace DyeingComputer.ViewModel |
|
|
|
OnPropertyChanged("Link_bool"); |
|
|
|
} |
|
|
|
} |
|
|
|
public static bool _AUTO_bool; |
|
|
|
Visibility AUTO_bool_xml; //显示手自动状态
|
|
|
|
public Visibility AUTO_bool //
|
|
|
|
{ |
|
|
|
get => AUTO_bool_xml; |
|
|
|
set |
|
|
|
{ |
|
|
|
AUTO_bool_xml = value; |
|
|
|
OnPropertyChanged("AUTO_bool"); |
|
|
|
} |
|
|
|
} |
|
|
|
System.Windows.Media.Brush Status_str_coloer; |
|
|
|
public System.Windows.Media.Brush Status_Str_coloer |
|
|
|
{ |
|
|
@ -134,7 +145,7 @@ namespace DyeingComputer.ViewModel |
|
|
|
Status_str_coloer = value; |
|
|
|
OnPropertyChanged("Status_Str_coloer"); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
public int wORK_run; //显示状态
|
|
|
|
public int WORK_run //通知UI控件参数改变
|
|
|
|
{ |
|
|
@ -239,6 +250,7 @@ namespace DyeingComputer.ViewModel |
|
|
|
UserButton = false; |
|
|
|
_Lock_bool = false; |
|
|
|
_Link_bool = false; |
|
|
|
_AUTO_bool = false; |
|
|
|
ProgramgroupView_run = new RelayCommand( |
|
|
|
execute:ProgramgroupView_run_ );//开始/暂停事件
|
|
|
|
ProgramgroupView_stop = new RelayCommand( |
|
|
@ -428,7 +440,7 @@ namespace DyeingComputer.ViewModel |
|
|
|
Work_Numder = WorkNumder.ToString(); |
|
|
|
StatusStr = Status_Str; |
|
|
|
Program_Name = ProgramName; |
|
|
|
if (dt_TP != null) Process_step = dt_TP.Select("Step=" + RUN_STEPID).First().Field<string>("ParameterName"); |
|
|
|
if (dt_TP.Rows.Count>0) Process_step = dt_TP.Select("Step=" + RUN_STEPID).First().Field<string>("ParameterName"); |
|
|
|
if (set_) { set_ = false; SYS_SET(); }//设置更新
|
|
|
|
if (!SETP_runtime) DIDETime++; |
|
|
|
|
|
|
@ -449,8 +461,12 @@ namespace DyeingComputer.ViewModel |
|
|
|
Updata_dtd("3003", Alert_yellow); |
|
|
|
Updata_dtd("3004", Alert_bell); |
|
|
|
|
|
|
|
if (_Lock_bool) { Lock_bool = Visibility.Visible; } else { Lock_bool = Visibility.Collapsed; }//锁图标
|
|
|
|
if (_Link_bool) { Link_bool = Visibility.Visible; } else { Link_bool = Visibility.Collapsed; }//连线图标
|
|
|
|
if (_Lock_bool) { Lock_bool = Visibility.Visible; } |
|
|
|
else { Lock_bool = Visibility.Collapsed; }//锁图标
|
|
|
|
if (_Link_bool) { Link_bool = Visibility.Visible; } |
|
|
|
else { Link_bool = Visibility.Collapsed; }//连线图标
|
|
|
|
if (_AUTO_bool) { AUTO_bool = Visibility.Visible; Updata_dtd("3005",true); } |
|
|
|
else { AUTO_bool = Visibility.Collapsed; }//手自动图标
|
|
|
|
|
|
|
|
if ((Selet_dtm("1010") < 1) || (Selet_dtm("1010") > 160)) |
|
|
|
{ ERRinf.ERRinf_w(errTabler, Resources.Temperature + Resources.Sensor + Resources.Malfunction, "ERR101"); } //温度故障提示
|
|
|
|