103 lines
2.6 KiB
C#
103 lines
2.6 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Collections.Specialized;
|
|
using System.ComponentModel;
|
|
using System.Linq;
|
|
using System.Runtime.CompilerServices;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace JY.Inspection.ViewModel
|
|
{
|
|
public class ObservableObject : INotifyPropertyChanged
|
|
{
|
|
public event PropertyChangedEventHandler PropertyChanged;
|
|
|
|
protected void OnPropertyChanged([CallerMemberName] string propertyName = null)
|
|
{
|
|
if (PropertyChanged != null)
|
|
{
|
|
PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
|
|
}
|
|
}
|
|
}
|
|
|
|
public class FrmMesSettingVM : ObservableObject
|
|
{
|
|
private string stationArrivalUrl;
|
|
|
|
/// <summary>
|
|
/// Mes电池进站接口地址
|
|
/// </summary>
|
|
public string StationArrivalUrl
|
|
{
|
|
get { return stationArrivalUrl; }
|
|
set { stationArrivalUrl = value; OnPropertyChanged(); }
|
|
}
|
|
|
|
private string stationExitUrl;
|
|
|
|
/// <summary>
|
|
/// Mes电池出站接口地址
|
|
/// </summary>
|
|
public string StationExitUrl
|
|
{
|
|
get { return stationExitUrl; }
|
|
set { stationExitUrl = value; OnPropertyChanged(); }
|
|
}
|
|
|
|
private string loginMesUrl;
|
|
|
|
/// <summary>
|
|
/// Mes登录接口地址
|
|
/// </summary>
|
|
public string LoginMesUrl
|
|
{
|
|
get { return loginMesUrl; }
|
|
set { loginMesUrl = value; OnPropertyChanged(); }
|
|
}
|
|
|
|
private string equipAlarmUrl;
|
|
|
|
/// <summary>
|
|
/// 设备报警接口地址
|
|
/// </summary>
|
|
public string EquipAlarmUrl
|
|
{
|
|
get { return equipAlarmUrl; }
|
|
set { equipAlarmUrl = value; OnPropertyChanged(); }
|
|
}
|
|
|
|
private string equipStatusUrl;
|
|
|
|
/// <summary>
|
|
/// 设备状态接口地址
|
|
/// </summary>
|
|
public string EquipStatusUrl
|
|
{
|
|
get { return equipStatusUrl; }
|
|
set { equipStatusUrl = value; OnPropertyChanged(); }
|
|
}
|
|
|
|
private string productType;
|
|
|
|
/// <summary>
|
|
/// 产品型号
|
|
/// </summary>
|
|
public string ProductType
|
|
{
|
|
get { return productType; }
|
|
set { productType = value; OnPropertyChanged(); }
|
|
}
|
|
|
|
private int taskInterval;
|
|
|
|
public int TaskInterval
|
|
{
|
|
get { return taskInterval; }
|
|
set { taskInterval = value; OnPropertyChanged(); }
|
|
}
|
|
|
|
}
|
|
}
|