using System;
using System.Web.Mvc.Html;
using QMFrameWork.WebUI;
using QMFrameWork.WebUI.Attribute;
namespace QMAPP.FJC.Web.Models.ProduceManage
{
///
/// 模块编号:M4-1
/// 作 用:生产记录维护页面模型
/// 作 者:张敬贺
/// 编写日期:2015年06月04日
///
public class ProducePlanModel : QDGModel
{
///
///主键
///
[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 = 20)]
[InputType(inputType.text)]
[DGColumn(frozenColumns = false, Sortable = true, Width = 100, DataAlign = DataAlign.center)]
public string PLANCODE { get; set; }
///
///零件类别(0:表皮 1:骨架 3:气囊支架 4:开关支架 5:风道 6:HUD风道 7:格栅 8:中控支架)
///
[Description("零件类别")]
[HTMLInput(UpdateRead = false, required = true, MaxLength = 2, Width = 155)]
[InputType(inputType.combobox)]
[DGColumn(frozenColumns = true, Sortable = true, Width = 100, DataAlign = DataAlign.left)]
public string PRODUCTTYPE { get; set; }
///
///工序类别(0:搪塑 1:骨架注塑 2:气囊支架注塑 3:风道注塑 4:中控之间注塑 5:HUD风道注塑 6:冷刀弱化 7:火焰加工 8:预热 9:浇注 10:红外扫描 11:冲切 12:铣削 13:铆接 14:超时波焊接 15:红外焊接 16:总成装配)
///
[Description("工序类别")]
[HTMLInput(UpdateRead = false, required = true, MaxLength = 2, JsonUtl = "/Dict/GetFixedComboxSource?kind=PROCESSTYPE", multiple = false, Width = 155)]
[InputType(inputType.combobox)]
[DGColumn(frozenColumns = true, Sortable = true, Width = 100, DataAlign = DataAlign.left)]
public string PROCESSTYPE { get; set; }
///
///颜色
///
[Description("颜色")]
[HTMLInput(UpdateRead = false, required = true, MaxLength = 2, JsonUtl = "/Dict/GetFixedComboxSource?kind=COLOR", multiple = false, Width = 155)]
[InputType(inputType.combobox)]
[DGColumn(frozenColumns = false, Sortable = true, Width = 70, DataAlign = DataAlign.left)]
public string COLOR { get; set; }
///
///高低配
///
[Description("高低配")]
[HTMLInput(UpdateRead = false, required = true, MaxLength = 2, JsonUtl = "/Dict/GetFixedComboxSource?kind=HAndL", multiple = false, Width = 155)]
[InputType(inputType.combobox)]
[DGColumn(frozenColumns = false, Sortable = true, Width = 60, DataAlign = DataAlign.center)]
public string HB { get; set; }
///
///设备码
///
[Description("设备编号")]
[HTMLInput(UpdateRead = false, required = true, MaxLength = 20, Width = 155)]
[InputType(inputType.combobox)]
[DGColumn(frozenColumns = false, Sortable = true, Width = 100, DataAlign = DataAlign.left)]
public string MACHINECODE { get; set; }
///
///设备名称
///
[Description("设备名称")]
[HTMLInput(UpdateRead = false, required = true, MaxLength = 20)]
[InputType(inputType.text)]
[DGColumn(frozenColumns = false, Sortable = true, Width = 100, DataAlign = DataAlign.left)]
public string MACHINENAME { get; set; }
///
///班次信息编号
///
[Description("班次信息编号")]
[HTMLInput(UpdateRead = false, required = true, MaxLength = 50, Width = 155, JsonUtl = "/InJectionRecorder/GetProductShiftComboxSource")]
[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 = 20)]
[InputType(inputType.text)]
public string PRODUCELINE { get; set; }
///
///生产批次最小值
///
[Description("生产批次最小值")]
[HTMLInput(UpdateRead = false, required = true, MaxLength = 4)]
[InputType(inputType.text)]
[DGColumn(frozenColumns = false, Sortable = true, Width = 100, DataAlign = DataAlign.right)]
public int MINPRODUCECOUNT { get; set; }
///
///生产数量
///
[Description("生产数量")]
[HTMLInput(UpdateRead = false, required = true, MaxLength = 9, NumberMin = 1, DataType = QDataType.number)]
[InputType(inputType.text)]
[DGColumn(frozenColumns = false, Sortable = true, Width = 70, DataAlign = DataAlign.right)]
public int PRODUCECOUNT { get; set; }
///
///完成数量
///
[Description("完成数量")]
[HTMLInput(UpdateRead = false, required = true, MaxLength = 9)]
[InputType(inputType.text)]
[DGColumn(frozenColumns = false, Sortable = true, Width = 70, DataAlign = DataAlign.right)]
public int COMPLETECOUNT { get; set; }
///
///计划状态(0:初始化 1:)
///
[Description("计划状态")]
[HTMLInput(UpdateRead = false, required = true, MaxLength = 1, JsonUtl = "/Dict/GetFixedComboxSource?kind=PLANSTATUS")]
[InputType(inputType.combobox)]
[DGColumn(frozenColumns = false, Sortable = true, Width = 80, DataAlign = DataAlign.right)]
public string PLANSTATUS { get; set; }
///
///备注
///
[Description("备注")]
[HTMLInput(UpdateRead = false, required = false, MaxLength = 100, Width = 153, Height = 70)]
[InputType(inputType.textArea)]
[DGColumn(frozenColumns = false, Sortable = true, Width = 120, DataAlign = DataAlign.left)]
public string MEMO { get; set; }
///
///生成方式(0:自动生成 1:人工生成)
///
[Description("生成方式")]
[HTMLInput(UpdateRead = false, required = true, MaxLength = 1)]
[InputType(inputType.text)]
[DGColumn(frozenColumns = false, Sortable = true, Width = 70, DataAlign = DataAlign.right)]
public string CREATETYPE { get; set; }
///
/// 计划时间
///
[Description("计划时间")]
[HTMLInput(UpdateRead = true, MaxLength = 20,required = true)]
[InputType(inputType.datebox)]
[DGColumn(Sortable = true, Width = 150, DataAlign = DataAlign.center)]
public DateTime PLANDATE { get; set; }
///
/// 创建用户
///
[Description("创建用户")]
public string CREATEUSER { get; set; }
///
/// 创建用户
///
[Description("创建用户")]
[DGColumn(Sortable = true, Width = 100, DataAlign = DataAlign.left)]
public string CREATEUSERNAME { get; set; }
///
/// 创建时间
///
[Description("创建时间")]
[HTMLInput(UpdateRead = true, MaxLength = 20)]
[InputType(inputType.hidden)]
[DGColumn(Sortable = true, Width = 150, DataAlign = DataAlign.center, FormatDate = "yyyy-MM-dd hh:mm:ss")]
public DateTime CREATEDATE { get; set; }
[Description("创建日期")]
[HTMLInput(UpdateRead = false, required = true, MaxLength = 7, Width = 151, FormatDate = "yyyy-MM-dd")]
[InputType(inputType.datebox)]
public string STARTCREATEDATE { get; set; }
[Description("至")]
[HTMLInput(UpdateRead = false, required = true, MaxLength = 7, Width = 151, FormatDate = "yyyy-MM-dd")]
[InputType(inputType.datebox)]
public string ENDCREATEDATE { get; set; }
///
/// 更新用户
///
[Description("更新用户")]
public string UPDATEUSER { get; set; }
///
/// 更新用户
///
[Description("更新用户")]
[DGColumn(Sortable = true, Width = 100, DataAlign = DataAlign.left)]
public string UPDATEUSERNAME { get; set; }
///
/// 更新时间
///
[Description("更新时间")]
[HTMLInput(UpdateRead = true, MaxLength = 20)]
[InputType(inputType.hidden)]
[DGColumn(Sortable = true, Width = 150, DataAlign = DataAlign.center, FormatDate = "yyyy-MM-dd hh:mm:ss")]
public DateTime UPDATEDATE { get; set; }
}
}