using System; using System.Web.Mvc; using System.Web.Mvc.Html; using QMAPP.Web; using QMFrameWork.WebUI; using QMFrameWork.WebUI.Attribute; namespace QMAPP.MD.Web.Models { /// /// 模块名称:采集数据借口-状态码配置 /// 作 者:周晓东 /// 编写日期:2010514 /// public class WorkCellStateModel : QDGModel { /// ///主键 /// [Description("主键")] [HTMLInput(UpdateRead = false, required = false, MaxLength = 36)] [InputType(inputType.text)] [DGColumn(Hidden = true, PrimaryKey = true)] public string PID { get; set; } /// /// 工厂编号 /// [Description("工厂")] [HTMLInput(UpdateRead = true, required = true, JsonUtl = "/Dict/GetFactoryComboxSource", MaxLength = 20, Width = 160)] [InputType(inputType.combobox)] [DGColumn(frozenColumns = true, Sortable = true, Width = 100, DataAlign = DataAlign.left)] public string FACTORY_CODE { get; set; } /// /// 工厂名称 /// [Description("工厂名称")] [DGColumn(frozenColumns = true, Sortable = true, Width = 300, DataAlign = DataAlign.left)] public string FACTORY_NAME { get; set; } /// ///工序编码 /// [Description("工序编码")] [HTMLInput(UpdateRead = false, required = true, Width = 160)] [InputType(inputType.combobox)] [DGColumn(frozenColumns = true, Sortable = true, Width = 100, DataAlign = DataAlign.center)] public string WORKCELL_CODE { get; set; } [Description("工序名称")] //[DGColumn(frozenColumns = true, Sortable = true, Width = 100, DataAlign = DataAlign.center)] public string WORKCELL_NAME { get; set; } /// ///状态码 /// [Description("状态码")] [HTMLInput(UpdateRead = false, required = true, Width = 160)] [InputType(inputType.text)] [DGColumn(frozenColumns = false, Sortable = true, Width = 100, DataAlign = DataAlign.center)] public string STATE_CODE { get; set; } [Description("状态码名称")] [HTMLInput(UpdateRead = false, required = true, Width = 160)] [InputType(inputType.text)] [DGColumn(frozenColumns = false, Sortable = true, Width = 100, DataAlign = DataAlign.center)] public string STATE_NAME { get; set; } /// ///顺序 /// [Description("顺序")] [HTMLInput(UpdateRead = false, required = true, Width = 160)] [InputType(inputType.text)] [DGColumn(frozenColumns = false, Sortable = true, Width = 100, DataAlign = DataAlign.center)] public int STATE_SEQ { get; set; } [Description("录入选择")] [HTMLInput(UpdateRead = false, required = false, Width = 160, JsonUtl = "/Dict/GetEntryExitActionComboxSource")] [InputType(inputType.combobox)] public string ENTRY_ACTIONS { get; set; } [Description("录入")] [HTMLInput(UpdateRead = false, required = true, Width = 160)] [InputType(inputType.text)] [DGColumn(frozenColumns = false, Sortable = true, Width = 300, DataAlign = DataAlign.center)] public string ENTRY_ACTION { get; set; } [Description("退出选择")] [HTMLInput(UpdateRead = false, required = false, Width = 160, JsonUtl = "/Dict/GetEntryExitActionComboxSource")] [InputType(inputType.combobox)] public string EXIT_ACTIONS { get; set; } [Description("退出")] [HTMLInput(UpdateRead = false, required = true, Width = 160)] [InputType(inputType.text)] [DGColumn(frozenColumns = false, Sortable = true, Width = 300, DataAlign = DataAlign.center)] public string EXIT_ACTION { get; set; } /// ///描述 /// [Description("描述")] [HTMLInput(UpdateRead = false, required = false, MaxLength = 200)] [InputType(inputType.textArea)] //[DGColumn(frozenColumns = false, Sortable = true, Width = 100, DataAlign = DataAlign.center)] public string REMARK { get; set; } //T_QT_STATEACTION里的字段用于添加ENTRY_ACTION、EXIT_ACTION字段 public string ACTION_CODE { get; set; } public string ACTION_NAME { get; set; } /// ///创建用户 /// //[Description("创建用户")] //[HTMLInput(UpdateRead = false, required = false, MaxLength = 36)] //[InputType(inputType.text)] //public string CREATEUSER { get; set; } //[Description("创建用户")] //[DGColumn(frozenColumns = false, Sortable = true, Width = 100, DataAlign = DataAlign.center)] //public string CREATEUSER_NAME { get; set; } ///// /////创建时间 ///// //[Description("创建时间")] //[HTMLInput(UpdateRead = false,required = false, MaxLength = 8)] //[InputType(inputType.datebox)] //[DGColumn(frozenColumns = false, Sortable = true, Width = 100, DataAlign = DataAlign.center, FormatDate = "yyyy-MM-dd")] //public DateTime CREATEDATE { get; set; } ///// /////更新用户 ///// //[Description("更新用户")] //[HTMLInput(UpdateRead = false, required = false, MaxLength = 36)] //[InputType(inputType.text)] //public string UPDATEUSER { get; set; } //[Description("更新用户")] //[DGColumn(frozenColumns = false, Sortable = true, Width = 100, DataAlign = DataAlign.center)] //public string UPDATEUSER_NAME { get; set; } ///// /////更新时间 ///// //[Description("更新时间")] //[HTMLInput(UpdateRead = false, required = false, MaxLength = 8)] //[InputType(inputType.datebox)] //[DGColumn(frozenColumns = false, Sortable = true, Width = 100, DataAlign = DataAlign.center, FormatDate = "yyyy-MM-dd")] //public DateTime UPDATEDATE { get; set; } } }