Feiyu/Model/SystemParameter.cs
2025-12-10 17:55:48 +08:00

188 lines
4.5 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>
/// 机台编号
/// </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 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");
}
}
/// <summary>
/// 机器人品牌 0:EPSON 1:Fanuc 2:QKM(李群)
/// </summary>
public int RobotBrand { get; set; }
private bool whereOnLine;
/// <summary>
/// 是否是在线打标机
/// </summary>
public bool WhereOnLine
{
get { return whereOnLine; }
set { whereOnLine = value;RaisePropertyChanged("WhereOnLine"); }
}
/// <summary>
/// 系统语言
/// </summary>
public string SystemLanguage { get; set; }
/// <summary>
/// 超级密码
/// </summary>
public string SuperCode { get; set; }
public SystemParameter()
{
//超级密码tang@0797 此密码不存入数据库
SuperCode = "5d9a18f7855b5733ad26484045d936b2";
//默认密码admin
SystemPwd = "21232f297a57a5a743894a0e4a801fc3";
}
}
}