using Community;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Model
{
///
/// 系统参数类
///
public class SystemParameter : NotificationObject
{
public int ID { get; set; }
///
/// 默认生产机种ID
///
public int DefaultMachineID { get; set; }
///
/// 系统密码
///
public string SystemPwd { get; set; }
private string machineName;
///
/// 设备名称
///
public string MachineName
{
get { return machineName; }
set
{
machineName = value;
this.RaisePropertyChanged("MachineName");
}
}
private string machineNumber;
///
/// 机台编号 (这里用来记录Tray盘状态)
///
public string MachineNumber
{
get { return machineNumber; }
set
{
machineNumber = value;
this.RaisePropertyChanged("MachineNumber");
}
}
private string workNumber;
///
/// 员工工号
///
public string WorkNumber
{
get { return workNumber; }
set
{
workNumber = value;
this.RaisePropertyChanged("WorkNumber");
}
}
private string pn;
///
/// 生产料号
///
public string Pn
{
get { return pn; }
set
{
pn = value;
this.RaisePropertyChanged("Pn");
}
}
private string smtPn;
///
/// smt生产料号
///
public string SmtPn
{
get { return smtPn; }
set
{
smtPn = value;
this.RaisePropertyChanged("SmtPn");
}
}
private string serialProt;
///
/// 光源串口号
///
public string SerialProt
{
get { return serialProt; }
set
{
serialProt = value;
this.RaisePropertyChanged("SerialProt");
}
}
private int systemTheme;
///
/// 系统主题样式编号
///
public int SystemTheme
{
get { return systemTheme; }
set
{
systemTheme = value;
this.RaisePropertyChanged("SystemTheme");
}
}
private string systemBackgroundPath;
///
/// 系统背景图片路径
///
public string SystemBackgroundPath
{
get { return systemBackgroundPath; }
set
{
systemBackgroundPath = value;
this.RaisePropertyChanged("SystemBackgroundPath");
}
}
private bool visionBool;
///
/// 是否有视觉
///
public bool VisionBool
{
get { return visionBool; }
set
{
visionBool = value;
this.RaisePropertyChanged("VisionBool");
}
}
private bool motionControlBool;
///
/// 是否有运动控制
///
public bool MotionControlBool
{
get { return motionControlBool; }
set
{
motionControlBool = value;
this.RaisePropertyChanged("MotionControlBool");
}
}
private bool robotBool;
///
/// 是否有机器人
///
public bool RobotBool
{
get { return robotBool; }
set
{
robotBool = value;
this.RaisePropertyChanged("RobotBool");
}
}
private string standTAT;
///
/// TAT站别号
///
public string StandTAT
{
get { return standTAT; }
set
{
standTAT = value;
this.RaisePropertyChanged("StandTAT");
}
}
private string standFT2;
///
/// FT2站别号
///
public string StandFT2
{
get { return standFT2; }
set
{
standFT2 = value;
this.RaisePropertyChanged("StandFT2");
}
}
///
/// 机器人品牌 0:EPSON 1:Fanuc
///
public int RobotBrand { get; set; }
private int startBit;
///
/// 截取条码起始位
///
public int StartBit
{
get { return startBit; }
set
{
startBit = value;
this.RaisePropertyChanged("StartBit");
}
}
private int interceptBits;
///
/// 截取条码位数
///
public int InterceptBits
{
get { return interceptBits; }
set
{
interceptBits = value;
this.RaisePropertyChanged("InterceptBits");
}
}
private int packingQuantity;
///
/// 装箱数量
///
public int PackingQuantity
{
get { return packingQuantity; }
set
{
packingQuantity = value;
this.RaisePropertyChanged("PackingQuantity");
}
}
private int packingDisks;
///
/// 装箱盘数
///
public int PackingDisks
{
get { return packingDisks; }
set
{
packingDisks = value;
this.RaisePropertyChanged("PackingDisks");
}
}
private DateTime startupTime;
///
/// 软件开启时间
///
public DateTime StartupTime
{
get { return startupTime; }
set
{
startupTime = value;
this.RaisePropertyChanged("StartupTime");
}
}
private int restartTime;
///
/// 软件重启时间(几小时之后提示重启)
///
public int RestartTime
{
get { return restartTime; }
set
{
restartTime = value;
this.RaisePropertyChanged("RestartTime");
}
}
private int lockScreen;
///
/// 锁屏时间(几秒钟之后重启)
///
public int LockScreen
{
get { return lockScreen; }
set
{
if (value > 1000)
{
value = 1000;
}
lockScreen = value;
this.RaisePropertyChanged("LockScreen");
}
}
private double clearSocketUp;
///
/// 清Socket增加产品高度
///
public double ClearSocketUp
{
get { return clearSocketUp; }
set
{
clearSocketUp = value;
this.RaisePropertyChanged("ClearSocketUp");
}
}
private double planTray;
///
/// Tray检平容差值
///
public double PlanTray
{
get { return planTray; }
set
{
planTray = value;
this.RaisePropertyChanged("PlanTray");
}
}
private double planBox;
///
/// 测试盒检平容差值
///
public double PlanBox
{
get { return planBox; }
set
{
planBox = value;
this.RaisePropertyChanged("PlanBox");
}
}
///
/// 超级密码
///
public string SuperCode { get; set; }
public SystemParameter()
{
//超级密码tang@0797 此密码不存入数据库
SuperCode = "5d9a18f7855b5733ad26484045d936b2";
//默认密码admin
SystemPwd = "21232f297a57a5a743894a0e4a801fc3";
}
}
}