using System; using System.Data; using System.Web.Mvc.Html; using QMFrameWork.Data.Attributes; using QMFrameWork.WebUI; using QMFrameWork.WebUI.Attribute; namespace QMAPP.FJC.Web.Models.Andon { /// /// 模块编号: /// 作 用:呼叫记录 /// 作 者:周晓东 /// 编写日期:2017年11月03日 /// public class CallLogModel : QDGModel { /// ///主键 /// [Description("主键")] [HTMLInput(UpdateRead = false, required = true, MaxLength = 36)] [InputType(inputType.text)] [DGColumn(Hidden = true, PrimaryKey = true)] public string PID { get; set; } [Description("工作中心")] [HTMLInput(UpdateRead = false, required = true, MaxLength = 100, JsonUtl = "/Dict/GetAllWorkCenterComboxSource?kind=CENTERTYPE")] [InputType(inputType.combobox)] //[DGColumn(frozenColumns = true, Sortable = true, Width = 100, DataAlign = DataAlign.left)] public string WORKCENTER_CODE { get; set; } [Description("工作中心")] [DGColumn(frozenColumns = true, Sortable = false, Width = 180, DataAlign = DataAlign.left)] public string WORKCENTER_NAME { get; set; } //[Description("工序")] //[HTMLInput(UpdateRead = false, required = true, MaxLength = 100)] //[InputType(inputType.combobox)] //[DGColumn(frozenColumns = true, Sortable = true, Width = 100, DataAlign = DataAlign.left)] //public string WORKCELL_CODE { get; set; } [Description("工位")] [HTMLInput(UpdateRead = false, required = true, MaxLength = 100)] [InputType(inputType.combobox)] //[DGColumn(frozenColumns = true, Sortable = true, Width = 100, DataAlign = DataAlign.left)] public string WORKLOC_CODE { get; set; } [Description("工位")] [DGColumn(frozenColumns = true, Sortable = false, Width = 100, DataAlign = DataAlign.left)] public string WORKLOC_NAME { get; set; } [Description("设备")] //[DGColumn(frozenColumns = true, Sortable = true, Width = 100, DataAlign = DataAlign.left)] public string MACHINECODDE { get; set; } [Description("设备")] [DGColumn(frozenColumns = true, Sortable = false, Width = 180, DataAlign = DataAlign.left)] public string MACHINECODDE_NAME { get; set; } /// ///维修呼叫 ///质量呼叫 ///物料呼叫 /// [Description("呼叫类型")] [HTMLInput(UpdateRead = false, required = true, JsonUtl = "/Dict/GetConfigDetailComboxSource?kind=CALL_TYPE", MaxLength = 1)] [InputType(inputType.combobox)] public string CALL_TYPE { get; set; } [Description("呼叫类型")] [DGColumn(frozenColumns = true, Sortable = false, Width = 100, DataAlign = DataAlign.center)] public string CALL_TYPE_TXT { get; set; } /// ///0:正在呼叫 ///1:已应答 ///2:开始处理 ///3:处理完成 ///4:呼叫取消 ///5:呼叫升级 /// [Description("呼叫状态")] [HTMLInput(UpdateRead = false, required = true, JsonUtl = "/Dict/GetFixedComboxSource?kind=CALL_STATE", MaxLength = 1)] [InputType(inputType.combobox)] public string CALL_STATE { get; set; } [Description("呼叫状态")] [DGColumn(frozenColumns = true, Sortable = false, Width = 100, DataAlign = DataAlign.center)] public string CALL_STATE_TXT { get; set; } /// ///呼叫原因 /// [Description("呼叫原因")] [DGColumn(frozenColumns = true, Sortable = true, Width = 100, DataAlign = DataAlign.left)] public string CALL_REASION { get; set; } /// ///问题类型 /// [Description("问题类型")] [DGColumn(frozenColumns = true, Sortable = true, Width = 100, DataAlign = DataAlign.left)] public string CALL_PROBLEM { get; set; } [Description("呼叫时间")] [DGColumn(frozenColumns = false, Sortable = true, Width = 150, DataAlign = DataAlign.center)] public DateTime CALL_TIME { get; set; } [Description("呼叫时间")] [HTMLInput(UpdateRead = false, required = true, MaxLength = 7, Width = 151, FormatDate = "yyyy-MM-dd HH:mm:ss")] [InputType(inputType.dateTimeBox)] public string STARTDATE { get; set; } [Description("至")] [HTMLInput(UpdateRead = false, required = true, MaxLength = 7, Width = 151, FormatDate = "yyyy-MM-dd HH:mm:ss")] [InputType(inputType.dateTimeBox)] public string ENDDATE { get; set; } /// ///应答超时分钟数 /// public int ANSWER_TIMEOUT { get; set; } [Description("应答时间")] //[DGColumn(frozenColumns = false, Sortable = true, Width = 150, DataAlign = DataAlign.center)] public DateTime? ANSWER_TIME { get; set; } [Description("开始时间")] [DGColumn(frozenColumns = false, Sortable = true, Width = 150, DataAlign = DataAlign.center)] public DateTime? START_TIME { get; set; } [Description("完成时间")] [DGColumn(frozenColumns = false, Sortable = true, Width = 150, DataAlign = DataAlign.center)] public DateTime? COMPLETE_TIME { get; set; } //处理时间=START_TIME-COMPLETE_TIME [Description("处理时间")] [DGColumn(frozenColumns = false, Sortable = false, Width = 150, DataAlign = DataAlign.center)] public string HANDLER_TIME { get; set; } [Description("等级")] [DGColumn(frozenColumns = false, Sortable = true, Width = 50, DataAlign = DataAlign.left)] public int CALL_LEVEL { get; set; } /// /// /// //[DBColumn(ColumnName="HANDLER",DataType=DbType.String)] public string HANDLER { get; set; } [Description("处理人")] [DGColumn(frozenColumns = false, Sortable = false, Width = 100, DataAlign = DataAlign.left)] public string HANDLER_NAME { get; set; } public string SHIFT_CODE { get; set; } [Description("班次")] [DGColumn(frozenColumns = false, Sortable = false, Width = 100, DataAlign = DataAlign.left)] public string SHIFT_CODE_TXT { get; set; } public string TEAM_CODE { get; set; } [Description("班组")] [DGColumn(frozenColumns = false, Sortable = false, Width = 100, DataAlign = DataAlign.left)] public string TEAM_CODE_TXT { get; set; } [Description("备注")] [DGColumn(frozenColumns = false, Sortable = true, Width = 200, DataAlign = DataAlign.left)] public string REMARK { get; set; } [Description("工厂")] [DGColumn(frozenColumns = false, Sortable = true, Width = 100, DataAlign = DataAlign.left)] public string FACTORY_CODE { get; set; } [Description("创建人")] //[DGColumn(frozenColumns = false, Sortable = true, Width = 100, DataAlign = DataAlign.left)] public string CREATEUSER { get; set; } [Description("创建时间")] //[DGColumn(frozenColumns = false, Sortable = true, Width = 150, DataAlign = DataAlign.left)] public DateTime CREATEDATE { get; set; } /// /// /// //[DGColumn(frozenColumns = true, Sortable = true, Width = 100, DataAlign = DataAlign.left)] public string UPDATEUSER { get; set; } /// /// /// //[DGColumn(frozenColumns = true, Sortable = true, Width = 100, DataAlign = DataAlign.left)] public DateTime UPDATEDATE { get; set; } /// /// 收件人 /// public string RECIPIENT { get; set; } /// /// 消息 /// public string MESSAGE { get; set; } /// /// 语言类型 /// public string LANGUAGE { get; set; } /// /// 消息类型 /// public string MESSAGE_TYPE { get; set; } } }