//模板信息:{"Template":{"Language":"C#"}} //输出信息:{"Extension":".cs","FileName":"Model\\BAS\\Warning"} using System; using System.Text; using System.Linq; using System.Collections.Generic; namespace CleanMachine.Model.BAS { /// /// /// public class Warning { private int warningId; private string warningCode; private string warningName; private string plcItemCode; private string warningType; private string warningMessage; private int usedFlag; private int delFlag; private int createBy; private DateTime createTime; private int updateBy; private DateTime updateTime; private int dataVersion; private string remarks1; private string remarks2; private string remarks3; private string remarks4; private string remarks5; public ushort bitCode { get { int index = int.Parse(this.warningCode.Replace("bit", "")); ushort num = 1; num = (ushort)(num << index); return num; } } /// /// /// public int WarningId { get { return this.warningId; } set { this.warningId = value; } } /// /// /// public string WarningCode { get { return this.warningCode; } set { this.warningCode = value; } } /// /// /// public string WarningName { get { return this.warningName; } set { this.warningName = value; } } /// /// /// public string PlcItemCode { get { return this.plcItemCode; } set { this.plcItemCode = value; } } /// /// /// public string WarningType { get { return this.warningType; } set { this.warningType = value; } } /// /// /// public string WarningMessage { get { return this.warningMessage; } set { this.warningMessage = value; } } /// /// /// public int UsedFlag { get { return this.usedFlag; } set { this.usedFlag = value; } } /// /// /// public int DelFlag { get { return this.delFlag; } set { this.delFlag = value; } } /// /// /// public int CreateBy { get { return this.createBy; } set { this.createBy = value; } } /// /// /// public DateTime CreateTime { get { return this.createTime; } set { this.createTime = value; } } /// /// /// public int UpdateBy { get { return this.updateBy; } set { this.updateBy = value; } } /// /// /// public DateTime UpdateTime { get { return this.updateTime; } set { this.updateTime = value; } } /// /// /// public int DataVersion { get { return this.dataVersion; } set { this.dataVersion = value; } } /// /// /// public string Remarks1 { get { return this.remarks1; } set { this.remarks1 = value; } } /// /// /// public string Remarks2 { get { return this.remarks2; } set { this.remarks2 = value; } } /// /// /// public string Remarks3 { get { return this.remarks3; } set { this.remarks3 = value; } } /// /// /// public string Remarks4 { get { return this.remarks4; } set { this.remarks4 = value; } } /// /// /// public string Remarks5 { get { return this.remarks5; } set { this.remarks5 = value; } } } }