using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.Mvc.Html; using QMFrameWork.WebUI.Attribute; using QMFrameWork.WebUI; namespace QMAPP.FJC.Web.Models.Basic { public class ProductBasicModel : QDGModel { /// ///主键 /// [Description("主键")] [HTMLInput(UpdateRead = false, required = true, MaxLength = 36)] [InputType(inputType.hidden)] [DGColumn(Hidden = true, PrimaryKey = true)] public string PID { get; set; } /// ///零件类别值 /// [Description("零件类别值")] [HTMLInput(UpdateRead = false, required = true, MaxLength = 2)] [InputType(inputType.hidden)] [DGColumn(Hidden = true, PrimaryKey = true)] public string PRODUCTTYPE { get; set; } /// ///零件类别编码 /// [Description("零件类别编码")] [HTMLInput(UpdateRead = false, required = true, MaxLength = 20)] [InputType(inputType.text)] [DGColumn(frozenColumns = true, Sortable = true, Width = 100, DataAlign = DataAlign.center)] public string PRODUCTTYPECODE { get; set; } /// ///零件类别名称 /// [Description("零件类别名称")] [HTMLInput(UpdateRead = false, required = true, MaxLength = 200)] [InputType(inputType.text)] [DGColumn(frozenColumns = true, Sortable = true, Width = 100, DataAlign = DataAlign.center)] public string PRODUCTNAME { get; set; } /// ///产品单位 /// [Description("产品单位")] [HTMLInput(UpdateRead = false, required = true, MaxLength = 1, JsonUtl = "/Dict/GetFixedComboxSource?kind=PRODUCTUNIT")] [InputType(inputType.combobox)] [DGColumn(frozenColumns = false, Sortable = true, Width = 100, DataAlign = DataAlign.center)] public string PRODUCTUNIT { get; set; } /// ///零件来源 /// [Description("零件来源")] [HTMLInput(UpdateRead = false, required = true, MaxLength = 1, JsonUtl = "/Dict/GetFixedComboxSource?kind=PRODUCTSOURCE")] [InputType(inputType.combobox)] [DGColumn(frozenColumns = false, Sortable = true, Width = 100, DataAlign = DataAlign.center)] public string PRODUCTSOURCE { get; set; } /// ///是否为父级别 /// [Description("是否为父级别")] [HTMLInput(UpdateRead = false, required = true, MaxLength = 1, JsonUtl = "/Dict/GetFixedComboxSource?kind=ISPARENT")] [InputType(inputType.combobox)] [DGColumn(Hidden = true, PrimaryKey = true)] public string ISPARENT { get; set; } /// ///容量 /// [Description("容量")] [HTMLInput(UpdateRead = false, required = true, MaxLength = 4)] [InputType(inputType.text)] [DGColumn(frozenColumns = false, Sortable = true, Width = 100, DataAlign = DataAlign.center)] public int CAPATITY { get; set; } /// ///删除标识 /// [Description("删除标识")] [HTMLInput(UpdateRead = false, required = true, MaxLength = 1)] [InputType(inputType.hidden)] public string DELFLAG { get; set; } /// /// 创建用户 /// [Description("创建用户")] public string CREATEUSER { get; set; } /// /// 创建用户 /// [Description("创建用户")] [DGColumn(Sortable = true, Width = 100, DataAlign = DataAlign.left)] public string CREATEUSERNAME { get; set; } /// /// 创建时间 /// [Description("创建时间")] [HTMLInput(UpdateRead = true, MaxLength = 20)] [InputType(inputType.hidden)] [DGColumn(frozenColumns = false, Sortable = true, Width = 150, DataAlign = DataAlign.center, FormatDate = "yyyy-MM-dd hh:mm:ss")] public DateTime CREATEDATE { get; set; } /// /// 更新用户 /// [Description("更新用户")] public string UPDATEUSER { get; set; } /// /// 更新用户 /// [Description("更新用户")] [DGColumn(Sortable = true, Width = 100, DataAlign = DataAlign.left)] public string UPDATEUSERNAME { get; set; } /// /// 更新时间 /// [Description("更新时间")] [HTMLInput(UpdateRead = true, MaxLength = 20)] [InputType(inputType.hidden)] [DGColumn(Sortable = true, Width = 150, DataAlign = DataAlign.center, FormatDate = "yyyy-MM-dd hh:mm:ss")] public DateTime UPDATEDATE { get; set; } } }