using System; using System.Collections.Generic; using System.Linq; using System.Web; using QMFrameWork.WebUI.Attribute; using QMFrameWork.WebUI; using System.Web.Mvc.Html; using QMAPP.MD.Entity; namespace QMAPP.MD.Web.Models { /// /// 模块名称:Bom详细信息 /// 作 者:郭兆福 /// 编写日期:2017年05月10日 /// public class PbomItemModel : QDGModel { /// ///BOM项目主键 /// [Description("BOM主键")] [HTMLInput(UpdateRead = false, required = true, MaxLength = 36)] [InputType(inputType.hidden)] [DGColumn(Hidden = true, PrimaryKey = true)] public string PID { get; set; } /// /// 工厂 /// [Description("工厂")] [HTMLInput(UpdateRead = true, required = true, JsonUtl = "/Dict/GetFactoryComboxSource", MaxLength = 15, Width = 244)] [InputType(inputType.combobox)] public string FACTORY_CODE { get; set; } /// /// 工厂 /// [Description("工厂")] [DGColumn(Sortable = true, Width = 300, DataAlign = DataAlign.left)] public string FACTORY_NAME { get; set; } /// ///PBOM编号 /// [Description("PBOM编号")] [HTMLInput(UpdateRead = false, required = true, MaxLength = 20)] [InputType(inputType.text)] [DGColumn(Hidden = true, PrimaryKey = true)] public string PBOM_CODE { get; set; } /// ///工艺路线 /// public string ROUTE_CODE { get; set; } /// ///物料号 /// [Description("物料号")] [HTMLInput(UpdateRead = false, required = true, MaxLength = 20, Width = 345, JsonUtl = "/Dict/GetMaterialTree")] [InputType(inputType.combotree)] [DGColumn(frozenColumns = true, Sortable = true, Width = 150, DataAlign = DataAlign.left)] public string MATERIAL_CODE { get; set; } /// ///物料名称 /// [Description("物料名称")] [DGColumn(frozenColumns = true, Sortable = true, Width = 150, DataAlign = DataAlign.left)] public string MATERIAL_NAME { get; set; } /// ///特征码 /// [Description("特征码")] [HTMLInput(UpdateRead = false, required = true, MaxLength = 10, Width = 340)] [InputType(inputType.text)] [DGColumn(frozenColumns = true, Sortable = true, Width = 80, DataAlign = DataAlign.left)] public string PROPERTY_CODE { get; set; } /// ///序号 /// [Description("序号")] [HTMLInput(UpdateRead = true, required = true, MaxLength = 4, DataType = QDataType.number,NumberMax=9999,NumberMin=1, Width = 341)] [InputType(inputType.text)] [DGColumn(frozenColumns = false, Sortable = true, Width = 60, DataAlign = DataAlign.center)] public int SEQ_NUM { get; set; } /// ///上级行项目序号 /// [Description("上级项目序号")] [HTMLInput(UpdateRead = false, required = true, MaxLength = 4, Width = 345)] [InputType(inputType.combobox)] [DGColumn(frozenColumns = true, Sortable = true, Width = 150, DataAlign = DataAlign.center)] public int UP_SQ_NUM { get; set; } /// ///数量 /// [Description("数量")] [HTMLInput(UpdateRead = false, required = false, MaxLength = 4, DataType = QDataType.number, NumberMax = 9999, NumberMin = 1, Width = 341)] [InputType(inputType.text)] [DGColumn(frozenColumns = false, Sortable = true, Width = 100, DataAlign = DataAlign.center)] public decimal UNIT_SUM { get; set; } /// ///发料工序 /// [Description("工序")] [HTMLInput(UpdateRead = false, required = true, MaxLength = 20, Width = 345)] [InputType(inputType.combobox)] public string GMP { get; set; } /// ///发料工序 /// [Description("发料工序")] [DGColumn(frozenColumns = false, Sortable = true, Width = 100, DataAlign = DataAlign.left)] public string GMP_NAME { get; set; } /// ///客供品标记 /// [Description("客供品标记")] [HTMLInput(UpdateRead = true, required = true, MaxLength = 1, Width = 345 ,JsonUtl = "/Dict/GetFixedComboxSource?kind=CspFlag&WithEmpty=false")] [InputType(inputType.combobox)] public string FLAG_CSP { get; set; } /// ///客供品标记 /// [Description("客供品标记")] [DGColumn(frozenColumns = false, Sortable = true, Width = 100, DataAlign = DataAlign.center)] public string FLAG_CSP_NAME { get; set; } /// ///制造厂商 /// [Description("制造厂商")] [HTMLInput(UpdateRead = false, MaxLength = 20, Width = 340)] [InputType(inputType.text)] [DGColumn(Sortable = true, Width = 120, DataAlign = DataAlign.left)] public string MFRS { get; set; } /// ///描述 /// [Description("描  述")] [HTMLInput(UpdateRead = false, MaxLength = 100, Width = 340, Height = 50)] [InputType(inputType.textArea)] [DGColumn(Sortable = true, Width = 240, DataAlign = DataAlign.left)] public string REMARK { get; set; } /// ///删除标识 /// [Description("删除标识")] [HTMLInput(UpdateRead = false, required = true, MaxLength = 1)] [InputType(inputType.hidden)] public string FLGDEL { get; set; } /// /// 创建用户 /// [Description("创建用户")] public string CREATEUSER { get; set; } /// /// 创建时间 /// [Description("创建时间")] [HTMLInput(UpdateRead = true, MaxLength = 20)] [InputType(inputType.hidden)] public DateTime CREATEDATE { get; set; } /// /// 更新用户 /// [Description("更新用户")] public string UPDATEUSER { get; set; } /// /// 更新时间 /// [Description("更新时间")] [HTMLInput(UpdateRead = true, MaxLength = 20)] [InputType(inputType.hidden)] public DateTime UPDATEDATE { get; set; } /// /// 菜单树集合 /// public List PbomItems { get; set; } /// /// 删除标识 /// public string DelFlag { get; set; } /// /// 是否编辑画面 /// public string isEdit { get; set; } /// /// 菜单树集合 /// public List children { get; set; } public string Id { get; set; } public string Text { get; set; } } }