123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390 |
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.ComponentModel;
- using System.Windows.Controls;
- namespace AGV_WPF_DisMember
- {
- public class AGV_DisMember : INotifyPropertyChanged
- {
- public string txtAGVNum { get; set; }
- public string txtWL { get; set; }
- public string txtTrafficNum { get; set; }
- public string txtTrafficNumList { get; set; }
- public string txtTrafficState { get; set; }
- public string txtStatus { get; set; }
- public string txtWorkLine { get; set; }
- public string txtLineNum { get; set; }
- public string txtMarkNum { get; set; }
- public string txtMarkFunction { get; set; }
- public string txtSpeed { get; set; }
- public string txtDockNum { get; set; }
- public string txtAgvAlias { get; set; }//AGV别名
- public string txtVoltage { get; set; }//电压
- public string txtCurrent { get; set; }//温度
- public string txtTemperature { get; set; }
- public string txtLoadingStatus { get; set; }
- public string txtAlerts { get; set; }
- public Label AgvLabel;
- public Image AgvImage;
- public string txtElectricity { get; set; }//电流
- public string txtPower { get; set; }//电量
- /************************************************************************/
- /* 修改日期2014.11.24
- * 增加管制区的管制AGV*/
- /************************************************************************/
- public string txtTrafficAgv { get; set; }
- public string txtTrafficAgvList { get; set; }
- public string txtOffLineCount { get; set; }//掉线计数
- public string txtIsMainAgv { get; set; }
- public event PropertyChangedEventHandler PropertyChanged;
- public AGV_DisMember()
- {
- txtAGVNum = "AGV?";
- txtAgvAlias = "AGV?";
- txtWL = "失败";
- txtTrafficNum = "0";
- txtTrafficNumList = "0";
- txtTrafficState = "初始化...";
- txtTrafficAgv = "无";
- txtTrafficAgvList = "无";
- txtStatus = "初始化...";
- txtWorkLine = "0";
- txtLineNum = "0";
- txtMarkNum = "0";
- txtMarkFunction = "初始化...";
- txtSpeed = "初始化...";
- txtDockNum = "0";
- txtOffLineCount = "0";
- txtVoltage = "0";
- txtPower=txtElectricity = txtCurrent = "0";
- txtTemperature = "0";
- txtLoadingStatus = "空车";
- txtIsMainAgv = "无效";
- txtAlerts = "无效";
- }
- public string txtElectricityValue
- {
- get { return this.txtElectricity; }
- set
- {
- if (value != this.txtElectricity)
- {
- this.txtElectricity = value;
- NotifyPropertyChanged("txtElectricity");
- }
- }
- }
- public string txtPowerValue
- {
- get { return this.txtPower; }
- set
- {
- if (value != this.txtPower)
- {
- this.txtPower = value;
- NotifyPropertyChanged("txtPower");
- }
- }
- }
- public string txtAgvAliasValue
- {
- get { return txtAgvAlias; }
- set
- {
- if (value != this.txtAgvAlias)
- {
- txtAgvAlias = value;
- NotifyPropertyChanged("txtAgvAlias");
- }
- }
- }
-
- public string txtTrafficAgvValue
- {
- get { return txtTrafficAgv; }
- set
- {
- if (value != this.txtTrafficAgv)
- {
- txtTrafficAgv = value;
- NotifyPropertyChanged("txtTrafficAgv");
- }
- }
- }
- public string txtTrafficAgvListValue
- {
- get { return txtTrafficAgvList; }
- set
- {
- if (value != this.txtTrafficAgvList)
- {
- txtTrafficAgvList = value;
- NotifyPropertyChanged("txtTrafficAgvList");
- }
- }
- }
- public string txtOffLineCountValue
- {
- get { return txtOffLineCount; }
- set
- {
- if (value != this.txtOffLineCount)
- {
- txtOffLineCount = value;
- NotifyPropertyChanged("txtOffLineCount");
- }
- }
- }
- public string txtAGVNumValue
- {
- get { return this.txtAGVNum; }
- set
- {
- if (value != this.txtAGVNum)
- {
- this.txtAGVNum = value;
- NotifyPropertyChanged("txtAGVNum");
- }
- }
- }
- public string txtWLValue
- {
- get { return this.txtWL; }
- set
- {
- if (value != this.txtWL)
- {
- this.txtWL = value;
- NotifyPropertyChanged("txtWL");
- }
- }
- }
- public string txtTrafficNumValue
- {
- get { return this.txtTrafficNum; }
- set
- {
- if (value != this.txtTrafficNum)
- {
- this.txtTrafficNum = value;
- NotifyPropertyChanged("txtTrafficNum");
- }
- }
- }
- public string txtTrafficNumListValue
- {
- get { return this.txtTrafficNumList; }
- set
- {
- if (value != this.txtTrafficNumList)
- {
- this.txtTrafficNumList = value;
- NotifyPropertyChanged("txtTrafficNumList");
- }
- }
- }
- public string txtTrafficStateValue
- {
- get { return this.txtTrafficState; }
- set
- {
- if (value != this.txtTrafficState)
- {
- this.txtTrafficState = value;
- NotifyPropertyChanged("txtTrafficState");
- }
- }
- }
- public string txtStatusValue
- {
- get { return this.txtStatus; }
- set
- {
- if (value != this.txtStatus)
- {
- this.txtStatus = value;
- NotifyPropertyChanged("txtStatus");
- }
- }
- }
- public string txtAlertsValue
- {
- get { return this.txtAlerts; }
- set
- {
- if (value != this.txtAlerts)
- {
- this.txtAlerts = value;
- NotifyPropertyChanged("txtAlerts");
- }
- }
- }
- public string txtWorkLineValue
- {
- get { return this.txtWorkLine; }
- set
- {
- if (value != this.txtWorkLine)
- {
- this.txtWorkLine = value;
- NotifyPropertyChanged("txtWorkLine");
- }
- }
- }
- public string txtLineNumValue
- {
- get { return this.txtLineNum; }
- set
- {
- if (value != this.txtLineNum)
- {
- this.txtLineNum = value;
- NotifyPropertyChanged("txtLineNum");
- }
- }
- }
- public string txtMarkNumValue
- {
- get { return this.txtMarkNum; }
- set
- {
- if (value != this.txtMarkNum)
- {
- this.txtMarkNum = value;
- NotifyPropertyChanged("txtMarkNum");
- }
- }
- }
- public string txtMarkFunctionValue
- {
- get { return this.txtMarkFunction; }
- set
- {
- if (value != this.txtMarkFunction)
- {
- this.txtMarkFunction = value;
- NotifyPropertyChanged("txtMarkFunction");
- }
- }
- }
- public string txtSpeedValue
- {
- get { return this.txtSpeed; }
- set
- {
- if (value != this.txtSpeed)
- {
- this.txtSpeed = value;
- NotifyPropertyChanged("txtSpeed");
- }
- }
- }
- public string txtDockNumValue
- {
- get { return this.txtDockNum; }
- set
- {
- if (value != this.txtDockNum)
- {
- this.txtDockNum = value;
- NotifyPropertyChanged("txtDockNum");
- }
- }
- }
- public string txtVoltageValue
- {
- get { return this.txtVoltage; }
- set
- {
- if (value != this.txtVoltage)
- {
- this.txtVoltage = value;
- NotifyPropertyChanged("txtVoltage");
- }
- }
- }
- public string txtCurrentValue
- {
- get { return this.txtCurrent; }
- set
- {
- if (value != this.txtCurrent)
- {
- this.txtCurrent = value;
- NotifyPropertyChanged("txtCurrent");
- }
- }
- }
- public string txtTemperatureValue
- {
- get { return this.txtTemperature; }
- set
- {
- if (value != this.txtTemperature)
- {
- this.txtTemperature = value;
- NotifyPropertyChanged("txtTemperature");
- }
- }
- }
- public string oldtrafficnum;
- public string txtLoadingStatusValue
- {
- get { return this.txtLoadingStatus; }
- set
- {
- if (value != this.txtLoadingStatus)
- {
- this.oldtrafficnum = this.txtLoadingStatus;
-
- NotifyPropertyChanged("txtLoadingStatus");
- }
- }
- }
- public string txtIsMainAgvValue
- {
- get { return this.txtIsMainAgv; }
- set
- {
- if (value != this.txtIsMainAgv)
- {
- this.txtIsMainAgv = value;
- }
- }
- }
- private void NotifyPropertyChanged(String info)
- {
- if (PropertyChanged != null)
- {
- PropertyChanged(this, new PropertyChangedEventArgs(info));
- }
- }
- /// <summary>
- /// Dispose resources
- /// </summary>
- public void Dispose()
- {
- // This object will be cleaned up by the Dispose method.
- GC.SuppressFinalize(this);
- }
- }
- }
|