天津投入产出系统后端
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

412 lines
14 KiB

using System;
using System.Web.Mvc.Html;
using QMFrameWork.WebUI;
using QMFrameWork.WebUI.Attribute;
using System.Collections.Generic;
using System.Web.Mvc;
namespace QMAPP.FJC.Web.Models.Operation
{
///</summary>
/// 模块编号:
/// 作 用:本体
/// 作 者:王庆男
/// 编写日期:2015年08月31日
///</summary>
public class MainModel : QDGModel
{
public MainModel()
{
this.ActiveTab = false;
this.propertyParameter = new Dictionary<string, string>();
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 = @"/Main/GetProductList?PID=";
GETINJECTDETAILINFO = @"/Main/GetProductInfectionList?PID=";
SAVEURL = @"/Main/SaveInjection";
}
[InputType(inputType.hidden)]
public string GETDETAILINFO { get; set; }
[InputType(inputType.hidden)]
public string GETINJECTDETAILINFO { get; set; }
///<summary>
///
///</summary>
[Description("本体主键")]
[HTMLInput(UpdateRead = false, required = true, MaxLength = 36)]
[InputType(inputType.text)]
[DGColumn(Hidden = true, PrimaryKey = true)]
public string PID { get; set; }
///<summary>
///
///</summary>
[Description("表皮条码")]
[HTMLInput(UpdateRead = false, required = true, MaxLength = 36)]
[InputType(inputType.text)]
//[DGColumn(frozenColumns = true, Sortable = true, Width = 120, DataAlign = DataAlign.center)]
public string EPIDERMISCODE { get; set; }
///<summary>
///
///</summary>
[Description("骨架条码")]
[HTMLInput(UpdateRead = false, required = true, MaxLength = 36)]
[InputType(inputType.text)]
//[DGColumn(frozenColumns = false, Sortable = true, Width = 130, DataAlign = DataAlign.center)]
public string SKELETONCODE { get; set; }
///<summary>
///
///</summary>
[Description("成品条码")]
[HTMLInput(UpdateRead = false, required = true, MaxLength = 30)]
[InputType(inputType.text)]
[DGColumn(frozenColumns = false, Sortable = true, Width = 180, DataAlign = DataAlign.center)]
public string MAINCODE { get; set; }
///<summary>
///物料号
///</summary>
[Description("物料号")]
[HTMLInput(UpdateRead = false, required = true, MaxLength = 30, JsonUtl = "/Dict/GetPbomMaterialComboxSource")]
[InputType(inputType.combobox)]
[DGColumn(frozenColumns = false, Sortable = true, Width = 120, DataAlign = DataAlign.center)]
public string MATERIAL_CODE { get; set; }
[Description("物料名称")]
[HTMLInput(UpdateRead = false, required = true, MaxLength = 30)]
[InputType(inputType.combobox)]
[DGColumn(frozenColumns = false, Sortable = true, Width = 250, DataAlign = DataAlign.center)]
public string MATERIAL_NAME { get; set; }
[Description("物料类型号")]
[HTMLInput(UpdateRead = false, required = true, MaxLength = 30)]
[InputType(inputType.combobox)]
[DGColumn(frozenColumns = false, Sortable = true, Width = 120, DataAlign = DataAlign.center)]
public string MATERIAL_TYPE { get; set; }
[Description("物料类型名称")]
[HTMLInput(UpdateRead = false, required = true, MaxLength = 30)]
[InputType(inputType.combobox)]
[DGColumn(frozenColumns = false, Sortable = true, Width = 120, DataAlign = DataAlign.center)]
public string MATERIAL_TYPE_NAME { get; set; }
///<summary>
///
///</summary>
[Description("")]
[HTMLInput(UpdateRead = false, required = true, MaxLength = 36)]
[InputType(inputType.text)]
[DGColumn(frozenColumns = true, Sortable = true, Width = 100, DataAlign = DataAlign.center, Hidden=true)]
public string SKID { get; set; }
///<summary>
///
///</summary>
[Description("")]
[HTMLInput(UpdateRead = false, required = true, MaxLength = 36)]
[InputType(inputType.text)]
[DGColumn(frozenColumns = true, Sortable = true, Width = 100, DataAlign = DataAlign.center, Hidden = true)]
public string EID { get; set; }
///<summary>
///
///</summary>
[Description("高低配")]
[HTMLInput(UpdateRead = false, required = true, MaxLength = 1, JsonUtl = "/Dict/GetFixedComboxSource?kind=HAndL")]
[InputType(inputType.combobox)]
[DGColumn(frozenColumns = false, Sortable = true, Width = 60, DataAlign = DataAlign.center)]
public string HB { get; set; }
///<summary>
///
///</summary>
[Description("颜色")]
[HTMLInput(UpdateRead = false, required = true, MaxLength = 1, JsonUtl = "/Dict/GetFixedComboxSource?kind=COLOR")]
[InputType(inputType.combobox)]
[DGColumn(frozenColumns = false, Sortable = true, Width = 60, DataAlign = DataAlign.center)]
public string COLOR { get; set; }
///<summary>
///
///</summary>
[Description("")]
[HTMLInput(UpdateRead = false, required = true, MaxLength = 50)]
[InputType(inputType.text)]
[DGColumn(frozenColumns = false, Sortable = true, Width = 100, DataAlign = DataAlign.center, Hidden=true)]
public string MACHINECODDE { get; set; }
///<summary>
///0:加工中
//1:加工完成
///</summary>
[Description("加工状态")]
[HTMLInput(UpdateRead = false, required = true, MaxLength = 1)]
[InputType(inputType.text)]
[DGColumn(frozenColumns = false, Sortable = true, Width = 100, DataAlign = DataAlign.center,Hidden=true)]
public string PROCESSSTATE { get; set; }
///<summary>
///0:合格
//1:返修
//2:作废
///</summary>
[Description("成品状态")]
[HTMLInput(UpdateRead = false, required = true, MaxLength = 1, JsonUtl = "/Dict/GetFixedComboxSource?kind=LJSTATUS")]
[InputType(inputType.combobox)]
[DGColumn(frozenColumns = false, Sortable = true, Width = 70, DataAlign = DataAlign.center)]
public string STATUS { get; set; }
///<summary>
///0:搪塑
//1:骨架注塑
//2:气囊支架注塑
//3:风道注塑
//4:中控之间注塑
//5:HUD风道注塑
//5:冷刀弱化
//6:火焰加工
//7:预热
//8:浇注
//9:红外扫描
//10:冲切
//11:铣削
//12:铆接
//13:超时波焊接
//14:红外焊接
//15:总成装配
///</summary>
[Description("当前工序")]
[HTMLInput(UpdateRead = false, required = true, MaxLength = 2, JsonUtl = "/Dict/GetFixedComboxSource?kind=PROCESSTYPE")]
[InputType(inputType.combobox)]
//[DGColumn(frozenColumns = false, Sortable = true, Width = 80, DataAlign = DataAlign.center)]
public string CURRENTPROCESS { get; set; }
///<summary>
///0:未完成
///</summary>
[Description("是否完成")]
[HTMLInput(UpdateRead = false, required = true, MaxLength = 1, JsonUtl = "/Dict/GetFixedComboxSource?kind=ValidFlg")]
[InputType(inputType.combobox)]
//[DGColumn(frozenColumns = false, Sortable = true, Width = 80, DataAlign = DataAlign.center)]
public string COMPLETEFLAG { get; set; }
///<summary>
///
///</summary>
[Description("")]
[HTMLInput(UpdateRead = false, required = true, MaxLength = 20)]
[InputType(inputType.text)]
[DGColumn(frozenColumns = false, Sortable = true, Width = 100, DataAlign = DataAlign.center,Hidden = true)]
public string PRODUCELINE { get; set; }
///<summary>
///
///</summary>
[Description("班组")]
[HTMLInput(UpdateRead = false, required = true, MaxLength = 100)]
[InputType(inputType.text)]
[DGColumn(frozenColumns = false, Sortable = true, Width = 100, DataAlign = DataAlign.center)]
public string PRODUCESHIFTNAME { get; set; }
///<summary>
///
///</summary>
[Description("")]
[HTMLInput(UpdateRead = false, required = true, MaxLength = 50)]
[InputType(inputType.text)]
[DGColumn(frozenColumns = false, Sortable = true, Width = 100, DataAlign = DataAlign.center, Hidden=true)]
public string PRODUCESHIFTTCODE { get; set; }
///<summary>
///0:在库
//1:发货
//2.异常出库
///</summary>
[Description("出库标识")]
[HTMLInput(UpdateRead = false, required = true, MaxLength = 1, JsonUtl = "/Dict/GetFixedComboxSource?kind=OUTFLAG")]
[InputType(inputType.combobox)]
[DGColumn(frozenColumns = false, Sortable = true, Width = 80, DataAlign = DataAlign.center)]
public string OUTFLAG { get; set; }
///<summary>
///
///</summary>
[Description("")]
[HTMLInput(UpdateRead = false, required = true, MaxLength = 36)]
[InputType(inputType.text)]
[DGColumn(frozenColumns = false, Sortable = true, Width = 100, DataAlign = DataAlign.center, Hidden = true)]
public string SPID { get; set; }
///<summary>
///
///</summary>
[Description("贴车单码")]
[HTMLInput(UpdateRead = false, required = true, MaxLength = 30)]
[InputType(inputType.text)]
//[DGColumn(frozenColumns = false, Sortable = true, Width = 100, DataAlign = DataAlign.center)]
public string SENDCODE { get; set; }
///<summary>
///
///</summary>
//[Description("完成时间")]
//[HTMLInput(UpdateRead = false, required = true, MaxLength = 8)]
//[InputType(inputType.datebox)]
//[DGColumn(frozenColumns = false, Sortable = true, Width = 130, DataAlign = DataAlign.center, FormatDate = "yyyy-MM-dd hh:mm:ss")]
public DateTime COMPLETETIME { get; set; }
[Description("完成时间")]
[DGColumn(frozenColumns = false, Sortable = true, Width = 130, DataAlign = DataAlign.center)]
public string COMPLETEDATE { get; set; }
///<summary>
///
///</summary>
[Description("操作人")]
public string CREATEUSER { get; set; }
/// <summary>
/// 创建用户
/// </summary>
[Description("创建用户")]
[DGColumn(Sortable = true, Width = 100, DataAlign = DataAlign.left)]
public string CREATEUSERNAME { get; set; }
///<summary>
///
///</summary>
[Description("创建时间")]
[HTMLInput(UpdateRead = false, required = true, MaxLength = 8)]
[InputType(inputType.datebox)]
[DGColumn(frozenColumns = false, Sortable = true, Width = 130, DataAlign = DataAlign.center)]
public DateTime CREATEDATE { get; set; }
[Description("创建日期")]
[HTMLInput(UpdateRead = false, required = true, MaxLength = 7, Width = 151)]
[InputType(inputType.dateTimeBox)]
public string STARTCREATEDATE { get; set; }
[Description("至")]
[HTMLInput(UpdateRead = false, required = true, MaxLength = 7, Width = 151, FormatDate = "yyyy-MM-dd HH:mm:ss")]
[InputType(inputType.dateTimeBox)]
public string ENDCREATEDATE { get; set; }
///<summary>
///
///</summary>
[Description("")]
public string UPDATEUSER { get; set; }
/// <summary>
/// 更新用户
/// </summary>
[Description("更新用户")]
[DGColumn(Sortable = true, Width = 100, DataAlign = DataAlign.left, Hidden=true)]
public string UPDATEUSERNAME { get; set; }
///<summary>
///
///</summary>
[Description("")]
[HTMLInput(UpdateRead = false, required = true, MaxLength = 8)]
[InputType(inputType.datebox)]
[DGColumn(frozenColumns = false, Sortable = true, Width = 100, DataAlign = DataAlign.center, FormatDate = "yyyy-MM-dd", Hidden = true)]
public DateTime UPDATEDATE { get; set; }
/// <summary>
/// 用于适应任意码的查询
/// </summary>
[Description("条码")]
[HTMLInput(UpdateRead = false, required = false, MaxLength = 50)]
[InputType(inputType.text)]
public string publicCode { get; set; }
///<summary>
///批次号
///</summary>
[Description("批次号")]
[HTMLInput(UpdateRead = false, required = true, MaxLength = 20)]
[InputType(inputType.text)]
public string MATERIALBATCH { get; set; }
[InputType(inputType.hidden)]
public string PRODUCTINID { get; set; }
[InputType(inputType.hidden)]
public string MAINID { get; set; }
[InputType(inputType.hidden)]
public string SAVEURL { get; set; }
[InputType(inputType.hidden)]
public string ROWINDEX { get; set; }
///<summary>
///工作中心
///</summary>
public string WORKCENTER_CODE { get; set; }
///<summary>
///工位信息
///</summary>
public string WORKLOC_CODE { get; set; }
///<summary>
///工序
///</summary>
public string WORKCELL_CODE { get; set; }
}
}