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 { /// /// 模块名称:物料信息绑定关系 /// 作 者:周晓东 /// 编写日期:20180508 /// public class MaterialBindingModel : QDGModel { /// ///设备信息主键 /// [Description("设备信息主键")] [HTMLInput(UpdateRead = false, required = true, MaxLength = 36)] [InputType(inputType.text)] [DGColumn(Hidden = true, PrimaryKey = true)] public string PID { get; set; } /// /// 绑定类型 /// MOULD 模具 /// EQUIP 设备 /// [Description("绑定类型")] [HTMLInput(UpdateRead = false, required = true, Width = 200, JsonUtl = "/Dict/GetBingingTypeComboxSource")] //[DGColumn(frozenColumns = true, Sortable = true, Width = 100, DataAlign = DataAlign.center)] [InputType(inputType.combobox)] public string BINDING_TYPE { get; set; } [Description("绑定类型")] [DGColumn(frozenColumns = true, Sortable = true, Width = 100, DataAlign = DataAlign.center)] public string BINDING_TYPE_NAME { get; set; } /// /// 绑定对象编码 /// [Description("绑定编码")] [HTMLInput(UpdateRead = false, required = false, Width = 200, JsonUtl = "/Dict/GetTestComboxSource")] [InputType(inputType.combobox)] [DGColumn(frozenColumns = true, Sortable = true, Width = 150, DataAlign = DataAlign.center)] public string TARGET_CODE { get; set; } [Description("绑定名称")] [DGColumn(frozenColumns = true, Sortable = true, Width = 200, DataAlign = DataAlign.center)] public string TARGET_CODE_NAME { get; set; } /// /// 绑定-模具 /// [Description("模具")] [HTMLInput(UpdateRead = false, required = false, Width = 200, JsonUtl = "/Dict/GetMouldsComboxSource")] [InputType(inputType.combobox)] public string TARGET_MOULD { get; set; } /// /// 绑定-设备 /// [Description("设备")] [HTMLInput(UpdateRead = false, required = false, Width = 200, JsonUtl = "/Dict/GetAllMachineInfoListComboxSource")] [InputType(inputType.combobox)] public string TARGET_EQUIP { get; set; } /// /// 物料类型-物料号 0:物料类型 1:物料号 /// [Description("绑定物料")] [HTMLInput(UpdateRead = false, required = true, Width = 200, JsonUtl = "/Dict/GetIsMaterialCodeComboxSource")] [InputType(inputType.combobox)] public string IS_MATERIAL_CODE { get; set; } [Description("绑定物料")] [DGColumn(frozenColumns = true, Sortable = true, Width = 100, DataAlign = DataAlign.center)] public string IS_MATERIAL_NAME { get; set; } /// /// 绑定对象编码 /// [Description("物料编码")] [HTMLInput(UpdateRead = false, required = false, Width = 200, JsonUtl = "/Dict/GetTestComboxSource")] [InputType(inputType.combobox)] [DGColumn(frozenColumns = true, Sortable = true, Width = 150, DataAlign = DataAlign.center)] public string MATERIAL_CODE { get; set; } [Description("物料名称")] [DGColumn(frozenColumns = true, Sortable = true, Width = 240, DataAlign = DataAlign.center)] public string MATERIAL_CODE_NAME { get; set; } /// /// 绑定-物料号 /// [Description("物料号")] [HTMLInput(UpdateRead = false, required = false, Width = 200, JsonUtl = "/Dict/GetMaterialTree")] [InputType(inputType.combotree)] public string TARGET_MATERIAL_CODE { get; set; } /// /// 绑定-物料类型 /// [Description("物料类型")] [HTMLInput(UpdateRead = false, required = false, Width = 200, JsonUtl = "/Dict/GetMaterialClassTree")] [InputType(inputType.combotree)] public string TARGET_MATERIAL_CLASS { get; set; } } }