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.ProduceManage { public class MendRecorderModel : QDGModel { public MendRecorderModel() { //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); }"); ////不可缺少 ////获取表皮产品下投料明细ACTION //GETDETAILINFO = @"/MendRecorder/GetMendReasonList?PID="; ; } /// ///返修记录主键 /// [Description("主键")] [HTMLInput(UpdateRead = false, required = true, MaxLength = 36)] [InputType(inputType.text)] [DGColumn(Hidden = true, PrimaryKey = true)] public string PID { get; set; } /// /// 返修结果 /// [Description("类型")] [HTMLInput(UpdateRead = false, required = true, MaxLength = 50, JsonUtl = "/Dict/GetFixedComboxSource?kind=MENDRESULT")] [InputType(inputType.combobox)] [DGColumn(frozenColumns = true, Sortable = true, Width = 60, DataAlign = DataAlign.center)] public string MENDRESULT { get; set; } /// /// 产品条码 /// [Description("产品条码")] [HTMLInput(UpdateRead = false, required = true, MaxLength = 50)] [InputType(inputType.text)] [DGColumn(frozenColumns = true, Sortable = true, Width = 150, DataAlign = DataAlign.center)] public string PRODUCTCODE { get; set; } /// /// 零件分类 /// //[Description("零件分类")] //[HTMLInput(UpdateRead = false, required = true, MaxLength = 2, JsonUtl = "/WIPInventory/GetProductSetDropDownList")] //[InputType(inputType.combobox)] //[DGColumn(frozenColumns = false, Sortable = true, Width = 100, DataAlign = DataAlign.center)] //public string PRODUCTTYPE { get; set; } /// /// 物料号 /// [Description("物料号")] [HTMLInput(UpdateRead = true, required = true, MaxLength = 20)] [InputType(inputType.combobox)] [DGColumn(frozenColumns = true, Sortable = true, Width = 130, DataAlign = DataAlign.center)] public string MATERIAL_CODE { get; set; } /// /// 物料名称 /// [Description("物料名称")] [HTMLInput(UpdateRead = false, required = true, MaxLength = 50)] [InputType(inputType.text)] [DGColumn(Sortable = true, Width = 200, DataAlign = DataAlign.center)] public string MATERIAL_NAME { get; set; } /// ///物料类别 /// [Description("物料类别")] [HTMLInput(UpdateRead = false, required = true, MaxLength = 20)] [InputType(inputType.combotree)] [DGColumn(frozenColumns = false, Sortable = true, Width = 120, DataAlign = DataAlign.center)] public string MATERIAL_TYPE_CODE { get; set; } /// ///物料类别名称 /// [Description("物料类别名称")] [HTMLInput(UpdateRead = false, required = true, MaxLength = 20)] [InputType(inputType.text)] [DGColumn(frozenColumns = false, Sortable = true, Width = 120, DataAlign = DataAlign.center)] public string MATERIAL_TYPE_NAME { get; set; } /// /// 零件分类 /// [Description("缺陷位置")] [HTMLInput(UpdateRead = false, required = true, Width = 74, MaxLength = 2, JsonUtl = "/Dict/GetFixedComboxSource?kind=HORIZONTAL")] [InputType(inputType.combobox)] public string HORIZONTAL { get; set; } /// /// 零件分类 /// [Description("纵向位置")] [HTMLInput(UpdateRead = false, required = true, Width = 74, MaxLength = 2, JsonUtl = "/Dict/GetFixedComboxSource?kind=VERTICAL")] [InputType(inputType.combobox)] public string VERTICAL { get; set; } /// /// 当前工序 /// [Description("当前工序")] [HTMLInput(UpdateRead = false, required = true, MaxLength = 2, JsonUtl = "/WIPInventory/GetProcessSetDropDownList")] [InputType(inputType.combobox)] //[DGColumn(frozenColumns = false, Sortable = true, Width = 100, DataAlign = DataAlign.center)] public string CURRENTPROCESS { get; set; } /// /// 班次信息名称 /// [Description("生产班次")] [HTMLInput(UpdateRead = false, required = true, MaxLength = 2, JsonUtl = "/Dict/GetFixedComboxSource?kind=PRODUCESHIFTTCODE")] [InputType(inputType.combobox)] [DGColumn(frozenColumns = false, Sortable = true, Width = 100, DataAlign = DataAlign.center)] public string PRODUCESHIFTTCODE { get; set; } /// /// 返修原因 /// [Description("缺陷")] [HTMLInput(UpdateRead = false, required = true, MaxLength = 50, JsonUtl = "/Dict/GetDefectDropDownList")] [InputType(inputType.combobox)] //[DGColumn(frozenColumns = false, Sortable = true, Width = 100, DataAlign = DataAlign.center)] public string MENDREASON { get; set; } /// /// 返修方式 /// [Description("返修方式")] [HTMLInput(UpdateRead = false, required = true, MaxLength = 50, JsonUtl = "/Dict/GetFixedComboxSource?kind=MENDTYPE")] [InputType(inputType.combobox)] //[DGColumn(frozenColumns = true, Sortable = true, Width = 100, DataAlign = DataAlign.center)] public string MENDTYPE { get; set; } /// /// 返修状态 /// [Description("返修状态")] [HTMLInput(UpdateRead = false, required = true, MaxLength = 50, JsonUtl = "/Dict/GetFixedComboxSource?kind=REGISTERSTATUS")] [InputType(inputType.combobox)] //[DGColumn(frozenColumns = true, Sortable = true, Width = 100, DataAlign = DataAlign.center)] public string REGISTERSTATUS { get; set; } /// /// 返修状态 /// [Description("模架号")] [HTMLInput(UpdateRead = false, required = true, MaxLength = 2, JsonUtl = "/Dict/GetFixedComboxSource?kind=MOLDNUMBER")] [InputType(inputType.combobox)] //[DGColumn(frozenColumns = false, Sortable = true, Width = 100, DataAlign = DataAlign.center)] public string MOLDNUMBER { get; set; } /// /// 创建时间 /// [Description("操作日期")] [HTMLInput(UpdateRead = true, MaxLength = 20)] [InputType(inputType.hidden)] [DGColumn(Sortable = true, Width = 150, DataAlign = DataAlign.center)] public DateTime CREATEDATE { get; set; } /// ///工序 /// [Description("工序")] //[DGColumn(frozenColumns = false, Sortable = true, Width = 100, DataAlign = DataAlign.center)] public string WORKCELL_CODE { get; set; } /// ///工位 /// [Description("工位")] [DGColumn(frozenColumns = false, Sortable = true, Width = 100, DataAlign = DataAlign.center)] public string MACHINENAME { get; set; } [Description("处理方法")] [DGColumn(frozenColumns = false, Sortable = false, Width = 100, DataAlign = DataAlign.center)] public string HANDLEMETHODTXT { get; set; } [Description("生产件/采购价")] [DGColumn(frozenColumns = false, Sortable = true, Width = 100, DataAlign = DataAlign.center)] public string OUTSOURCE { get; set; } /// ///责任方OUTSOURCE /// [Description("责任方")] [DGColumn(frozenColumns = false, Sortable = true, Width = 100, DataAlign = DataAlign.center)] public string MENDDUTY { get; set; } /// ///是否测试件 /// [Description("测试件")] [DGColumn(frozenColumns = false, Sortable = true, Width = 100, DataAlign = DataAlign.center)] public string MENDTEST { get; set; } /// /// 报废数量 /// [Description("报废数量")] [DGColumn(Hidden = false, frozenColumns = false, Sortable = false, Width = 50, DataAlign = DataAlign.center)] public int MENDNUMBER { get; set; } [Description("操作日期")] [HTMLInput(UpdateRead = false, required = true, MaxLength = 8, FormatDate = "yyyy-MM-dd HH:mm:ss")] [InputType(inputType.datebox)] public string CREATEDATESTART { get; set; } [Description("至")] [HTMLInput(UpdateRead = false, required = true, MaxLength = 8, FormatDate = "yyyy-MM-dd HH:mm:ss")] [InputType(inputType.datebox)] public string CREATEDATEEND { get; set; } [InputType(inputType.hidden)] public string GETDETAILINFO { get; set; } /// ///废品类别 /// [Description("废品类别")] [DGColumn(frozenColumns = false, Sortable = true, Width = 100, DataAlign = DataAlign.center)] public string ERP_MFGCODETYPE { get; set; } /// ///车型代码 /// [Description("车型代码")] [DGColumn(frozenColumns = false, Sortable = true, Width = 100, DataAlign = DataAlign.center)] public string ERP_CAR { get; set; } /// ///生产线代码 /// [Description("生产线代码")] [DGColumn(frozenColumns = false, Sortable = true, Width = 100, DataAlign = DataAlign.center)] public string ERP_WORKLINE { get; set; } /// ///班组代码 /// [Description("班组代码")] [DGColumn(frozenColumns = false, Sortable = true, Width = 100, DataAlign = DataAlign.center)] public string ERP_SHIFT { get; set; } /// ///工序代码 /// [Description("工序代码")] [DGColumn(frozenColumns = false, Sortable = true, Width = 100, DataAlign = DataAlign.center)] public string ERP_WORKCELL { get; set; } /// ///缺陷归属 /// [Description("缺陷归属")] [DGColumn(frozenColumns = false, Sortable = true, Width = 100, DataAlign = DataAlign.center)] public string ERP_DEFECTTO { get; set; } /// ///产品类别代码 /// [Description("产品类别代码")] [DGColumn(frozenColumns = false, Sortable = true, Width = 100, DataAlign = DataAlign.center)] public string ERP_PRODUCTTYPE { get; set; } /// ///缺陷代码 /// [Description("缺陷代码")] [DGColumn(frozenColumns = false, Sortable = true, Width = 100, DataAlign = DataAlign.center)] public string ERP_DEFECTCODE { get; set; } /// /// 创建用户 /// [Description("操作用户")] [HTMLInput(UpdateRead = false, required = true, MaxLength = 36)] [InputType(inputType.combobox)] public string CREATEUSER { get; set; } /// /// 创建用户 /// [Description("操作用户")] [HTMLInput(UpdateRead = false, required = true, MaxLength = 36)] [InputType(inputType.combobox)] [DGColumn(frozenColumns = false, Sortable = true, Width = 100, DataAlign = DataAlign.center)] public string CREATEUSERNAME { get; set; } } }