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.Operation { public class ProductCheckModel : QDGModel { public ProductCheckModel() { this.ActiveTab = false; this.propertyParameter = new Dictionary(); this.propertyParameter.Add("view", "detailview"); this.propertyParameter.Add("detailFormatter", "function (index, row) { return TableStyle(index, row); } "); this.propertyParameter.Add("onExpandRow", "function (rowIndex,rowData){ BindExpandRow(rowIndex, rowData); }"); //获取详细信息 GETDETAILINFO = @"/ProductCheck/GetProductCheckItemList?PID="; } [InputType(inputType.hidden)] public string GETDETAILINFO { get; set; } /// /// /// [Description("主键")] [HTMLInput(UpdateRead = false, required = true, MaxLength = 36)] [DGColumn(Hidden = true, PrimaryKey = true)] public string PID { get; set; } /// ///条码号 /// [Description("条码号")] [HTMLInput(UpdateRead = false, required = true, MaxLength = 30)] [InputType(inputType.text)] [DGColumn(frozenColumns = false, Sortable = true, Width = 200, DataAlign = DataAlign.center)] public string PRODUCTCODE { get; set; } /// ///物料号 /// [Description("物料号")] [HTMLInput(UpdateRead = false, required = true, MaxLength = 30)] [InputType(inputType.combotree)] [DGColumn(frozenColumns = false, Sortable = true, Width = 180, DataAlign = DataAlign.center)] public string MATERIAL_CODE { get; set; } [Description("物料名称")] [HTMLInput(UpdateRead = false, required = true, MaxLength = 30)] [InputType(inputType.text)] [DGColumn(frozenColumns = false, Sortable = true, Width = 180, DataAlign = DataAlign.center)] public string MATERIAL_NAME { get; set; } /// ///抽检结果 /// [Description("抽检结果")] [HTMLInput(UpdateRead = false, required = true, MaxLength = 30, JsonUtl = "/Dict/GetFixedComboxSource?kind=CHECKRESULT")] [InputType(inputType.combobox)] [DGColumn(frozenColumns = false, Sortable = true, Width = 120, DataAlign = DataAlign.center)] public string CHECKRESULT { get; set; } /// ///抽检类型 /// [Description("抽检类型")] [HTMLInput(UpdateRead = false, required = true, MaxLength = 30, JsonUtl = "/Dict/GetFixedComboxSource?kind=PRODUCTCHECKTYPE")] [InputType(inputType.combobox)] [DGColumn(frozenColumns = false, Sortable = true, Width = 120, DataAlign = DataAlign.center)] public string PRODUCTCHECKTYPE { get; set; } /// ///抽检员 /// [Description("抽检员")] [HTMLInput(UpdateRead = false, required = true, MaxLength = 30)] [InputType(inputType.text)] public string CREATEUSER { get; set; } /// /// 抽检员 /// [Description("抽检员")] [HTMLInput(UpdateRead = false, required = true, MaxLength = 30)] [InputType(inputType.text)] [DGColumn(frozenColumns = false, Sortable = true, Width = 120, DataAlign = DataAlign.center)] public string CREATEUSERNAME { get; set; } /// ///抽检时间 /// [Description("抽检时间")] [HTMLInput(UpdateRead = false, required = true, MaxLength = 30)] [InputType(inputType.text)] [DGColumn(frozenColumns = false, Sortable = true, Width = 180, DataAlign = DataAlign.center)] public DateTime CREATEDATE { get; set; } [Description("抽检时间")] [HTMLInput(UpdateRead = false, required = true, MaxLength = 7, Width = 151, FormatDate = "yyyy-MM-dd HH:mm:ss")] [InputType(inputType.dateTimeBox)] public string CREATEDATESTART { get; set; } [Description("至")] [HTMLInput(UpdateRead = false, required = true, MaxLength = 7, Width = 151, FormatDate = "yyyy-MM-dd HH:mm:ss")] [InputType(inputType.dateTimeBox)] public string CREATEDATEEND { get; set; } //public string PRODUCEDATE { get; set; } } }