TFLH/Model/SystemParameter.cs
2026-08-06 09:50:46 +08:00

382 lines
8.9 KiB
C#
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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