using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.Mvc.Html; using QMFrameWork.WebUI.Attribute; using QMFrameWork.WebUI; using System.Data; namespace QMAPP.FJC.Web.Models.ProductPetrospect { /// /// 模块编号: /// 作 用:加工记录页面模型(用于加工记录查询) /// 作 者:王丹丹 /// 编写日期:2015年06月30日 /// public class MainOperationModel : QDGModel { public MainOperationModel() { this.propertyParameter = new Dictionary(); this.propertyParameter.Add("fitColumns", "false"); } /// /// 加工记录ID /// public string ids { get; set; } /// ///表皮条码 /// [Description("条码信息")] [HTMLInput(UpdateRead = false, required = true, MaxLength = 30)] [InputType(inputType.text)] public string PRODUCTCODE { get; set; } /// ///产品条码 /// [Description("产品条码")] [HTMLInput(UpdateRead = false, required = true, MaxLength = 30)] [InputType(inputType.text)] public string PRODUCTCODETXT { get; set; } /// /// 工序类别 /// [Description("工序类别X")] [HTMLInput(UpdateRead = false, required = true, MaxLength = 2, JsonUtl = "/Dict/GetFixedComboxSource?kind=PROCESSTYPE")] [InputType(inputType.combobox)] public string PROCESSTYPE { get; set; } /// /// 工序类别(注塑,用于设备加工记录查询) /// [Description("工序类别")] public string PROCESSTYPES { get; set; } /// ///设备名称 /// [Description("设备名称")] [HTMLInput(UpdateRead = false, required = true, MaxLength = 50)] [InputType(inputType.text)] public string MACHINENAME { get; set; } /// ///设备编码 /// [Description("设备编码")] [HTMLInput(UpdateRead = false, required = true, Height=50, MaxLength = 50, JsonUtl = "/InJectionRecorder/GetMachineInfoComboxSource")] [InputType(inputType.combobox)] public string MACHINECODDE { get; set; } /// ///班次信息名称 /// [Description("班次信息名称")] [HTMLInput(UpdateRead = false, required = true, MaxLength = 50)] [InputType(inputType.text)] public string PRODUCESHIFTNAME { get; set; } /// ///班次信息编号 /// [Description("班次信息编号")] [HTMLInput(UpdateRead = false, required = true, MaxLength = 50, JsonUtl = "/InJectionRecorder/GetProductShiftComboxSource")] [InputType(inputType.combobox)] public string PRODUCESHIFTTCODE { get; set; } /// ///物料号, JsonUtl = "/Dict/GetNewMaterialComboxSource" /// [Description("物料号")] [HTMLInput(UpdateRead = false, required = true, MaxLength = 20)] [InputType(inputType.combobox)] public string MATERIAL_CODE { get; set; } /// ///物料名称 /// [Description("物料名称")] [HTMLInput(UpdateRead = false, required = true, MaxLength = 20)] [InputType(inputType.combobox)] public string MATERIAL_NAME { get; set; } /// ///物料类别 /// [Description("物料类别")] [HTMLInput(UpdateRead = false, required = true, MaxLength = 20)] [InputType(inputType.combotree)] public string MATERIAL_TYPE_CODE { get; set; } /// ///工作中心 /// [Description("工作中心")] [HTMLInput(UpdateRead = false, required = true, MaxLength = 20, JsonUtl = "/Dict/GetAllWorkCenterComboxSource")] [InputType(inputType.combobox)] public string WORKCENTER_CODE { get; set; } /// ///工艺路线 /// [Description("工艺路线")] [HTMLInput(UpdateRead = false, required = true, MaxLength = 20, JsonUtl = "/Dict/GetProcessRouteComboxSource")] [InputType(inputType.combobox)] public string ROUTE_CODE { get; set; } /// ///工序 /// [Description("工序")] [HTMLInput(UpdateRead = false, required = true, MaxLength = 20)] [InputType(inputType.combobox)] public string WORKCELL_CODE { get; set; } /// ///产品状态(0:合格 1:返修 2:作废) /// [Description("产品状态")] [HTMLInput(UpdateRead = false, required = true, MaxLength = 1, JsonUtl = "/Dict/GetFixedComboxSource?kind=PRODUCTSTATUS")] [InputType(inputType.combobox)] public string STATUS { get; set; } /// ///操作时间 /// [Description("操作时间")] [HTMLInput(UpdateRead = false, required = true, MaxLength = 8)] [InputType(inputType.dateTimeBox)] public string CREATEDATESTART { get; set; } /// ///至 /// [Description("至")] [HTMLInput(UpdateRead = false, required = true, MaxLength = 8)] [InputType(inputType.dateTimeBox)] public string CREATEDATEEND { get; set; } public string json { get; set; } /// /// DataGrid列头 /// public DataTable dt { get; set; } } }