using MadRunFabric.Common; using MongoDB.Bson.Serialization.Attributes; using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.IO; using System.Linq; using System.Text; namespace MadRunFabric.Model.EquipmentApi.Model { /// /// 超时工单表 /// [BsonIgnoreExtraElements] public class Wo_TimeOut : IBaseModel { /// /// id /// [Key] [BsonRepresentation(MongoDB.Bson.BsonType.ObjectId)] public string id { get; set; } /// /// 工单类型 1报修,2保养,3巡检 /// public int wotype { get; set; } = 0; /// /// 工单id /// public string woid { get; set; } = ""; /// /// 工单编号 /// public string wocode { get; set; } = ""; /// /// 超时原因 /// public string timeoutreason { get; set; } = ""; /// /// 主管确认是否超时 /// 0 未确认,1超时,2不超时 /// public int istimeout { get; set; } = 0; /// /// 运维员工 /// //public string touser { get; set; } = ""; public List touser { get; set; } public List tousername { get; set; } /// /// 确认主管 /// public string manager { get; set; } = ""; /// /// 工单是否完结 /// public bool isover { get; set; } = false; /// /// 超时时长 /// public int times { get; set; } = 0; /// /// 超时等级:自动识别=1,主管=2,总监=3,甲方=4 /// public int grade { get; set; } = 0; /// /// 提交时间 /// public DateTime createtime { get; set; } /// /// 是否删除 /// public bool isdelete { get; set; } = false; } /// /// 工单类型:1报修,2保养,3巡检 /// public enum EnumWoType { repair = 1, maintain = 2, inspection = 3 } /// /// 等级:自动识别=1,主管=2,总监=3,甲方=4 /// public enum EnumWoGrade { auto = 1, manager = 2, director = 3, party = 4 } }