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.MD.Web.Models { /// /// 20180117 /// public class MaterialClassModel : QDGModel { /// /// 物料分类主键 /// [Description("物料分类主键")] [DGColumn(Hidden = true, PrimaryKey = true)] public string PID { get; set; } /// /// 物料分类编号 /// [Description("物料分类编号")] [HTMLInput(UpdateRead = true, required = true, MaxLength = 200)] [InputType(inputType.text)] //[DGColumn(frozenColumns = true, Sortable = true, Width = 100)] public string MATERIAL_TYPE_CODE { get; set; } /// /// 物料分类名称 /// [Description("物料分类名称")] [HTMLInput(UpdateRead = true, required = true, MaxLength = 20)] [InputType(inputType.text)] public string MATERIAL_TYPE_NAME { get; set; } /// /// 物料属性 /// [Description("物料属性")] [HTMLInput(UpdateRead = true, required = true, MaxLength = 20)] [InputType(inputType.text)] public string MATERIAL_ATTRIBUTE { get; set; } /// /// 层级 /// [Description("层级")] [HTMLInput(UpdateRead = true, required = true, MaxLength = 20)] [InputType(inputType.text)] public int LAYER_NUM { get; set; } /// /// 序号 /// [Description("序号")] public int SEQ_NUM { get; set; } /// /// 上级物料编码 /// [Description("上级物料编码")] public string UP_MATERIAL_TYPE_CODE { get; set; } /// /// 规格描述 /// [Description("规格描述")] [HTMLInput(UpdateRead = false, required = false, MaxLength = 100, Width = 150, Height = 50)] [InputType(inputType.textArea)] public string REMARK { get; set; } /// /// 创建用户 /// [Description("创建用户")] public string CREATEUSER { get; set; } /// /// 创建时间 /// [Description("创建时间")] public DateTime CREATEDATE { get; set; } /// /// 更新用户 /// [Description("更新用户")] public string UPDATEUSER { get; set; } /// /// 更新时间 /// [Description("更新时间")] public DateTime UPDATEDATE { get; set; } /// /// 删除标识 /// [Description("删除标识")] public string FLGDEL { get; set; } /// /// 物料号 /// [Description("物料号")] [HTMLInput(UpdateRead = true, required = true, MaxLength = 20)] [InputType(inputType.text)] [DGColumn(frozenColumns = true, Sortable = true, Width = 180, DataAlign = DataAlign.left)] public string MATERIAL_CODE { get; set; } /// /// 物料名称 /// [Description("物料名称")] [HTMLInput(UpdateRead = false, required = true, MaxLength = 30)] [InputType(inputType.text)] [DGColumn(Sortable = true, Width = 220, DataAlign = DataAlign.left)] public string MATERIAL_NAME { get; set; } /// /// 工厂名称 /// [Description("工厂名称")] [DGColumn(frozenColumns = true, Sortable = true, Width = 320, DataAlign = DataAlign.left)] public string FACTORY_NAME { get; set; } /// /// 工厂编号 /// [Description("工厂")] [HTMLInput(UpdateRead = true, required = true, JsonUtl = "/Dict/GetFactoryComboxSource", MaxLength = 20, Width = 150)] [InputType(inputType.combobox)] public string FACTORY_CODE { get; set; } /// /// 项目号 /// [Description("项目号")] [HTMLInput(UpdateRead = false, required = true, MaxLength = 50)] [InputType(inputType.combobox)] //[DGColumn(Sortable = true, Width = 90, DataAlign = DataAlign.left)] public string PROJECTCODE { get; set; } [Description("项目号")] [DGColumn(frozenColumns = true, Sortable = true, Width = 90, DataAlign = DataAlign.left)] public string PROJECT_NAME { get; set; } /// /// 颜色 /// [Description("颜色")] [HTMLInput(UpdateRead = false, required = true, MaxLength = 100, JsonUtl = "/Dict/GetFixedComboxSource?kind=COLOR")] [InputType(inputType.combobox)] public string COLOR { get; set; } /// /// 配置 /// [Description("配置")] [HTMLInput(UpdateRead = false, required = false, MaxLength = 100, JsonUtl = "/Dict/GetFixedComboxSource?kind=HBTYPE")] [InputType(inputType.combobox)] public string HBTYPE { get; set; } //选择全部 public string isSelectAll { get; set; } } }