天津投入产出系统后端
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.
 
 
 
 
 
 

399 lines
11 KiB

using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Text;
using QMFrameWork.Data.Attributes;
using QMAPP.Entity;
using QMAPP.FJC.Entity.Basic;
namespace QMAPP.FJC.Entity.Operation
{
///<summary>
/// 模块编号:
/// 作 用:零件条码表
/// 作 者:郭兆福
/// 编写日期:2018年03月156日
///</summary>
[DBTable(TableName = "T_AW_PRODUCT", TimeStampColumn = "UPDATEDATE")]
public class ProductEnd : BaseEntity
{
private string _MAINCODE;
///<summary>
///主键
///</summary>
[DBColumn(ColumnName = "PID", DataType = DbType.String, IsKey = true)]
public string PID { get; set; }
///<summary>
///零件条码
///</summary>
[DBColumn(ColumnName = "PRODUCTCODE", DataType = DbType.String)]
public string PRODUCTCODE { get; set; }
///<summary>
///总成条码
///</summary>
[DBColumn(ColumnName = "MAINCODE", DataType = DbType.String)]
public string MAINCODE { get; set; }
///<summary>
///零件分类
///0:表皮
///1:骨架
///3:气囊支架
///4:开关支架
///5:风道
///6:HUD风道
///7:格栅
///8:中控支架
///</summary>
[DBColumn(ColumnName = "PRODUCTTYPE", DataType = DbType.String)]
public string PRODUCTTYPE { get; set; }
public string PRODUCTTYPENAME { get; set; }
///<summary>
///零件来源
///0 自制
///1 外购
///</summary>
[DBColumn(ColumnName = "PRODUCTSOURCE", DataType = DbType.String)]
public string PRODUCTSOURCE { get; set; }
///<summary>
///设备名称
///</summary>
[DBColumn(ColumnName = "MACHINENAME", DataType = DbType.String)]
public string MACHINENAME { get; set; }
///<summary>
///设备编码
///</summary>
[DBColumn(ColumnName = "MACHINECODDE", DataType = DbType.String)]
public string MACHINECODDE { get; set; }
///<summary>
///物料类别
///</summary>
[DBColumn(ColumnName = "MATERIAL_TYPE", DataType = DbType.String)]
public string MATERIAL_TYPE { get; set; }
///<summary>
///物料号
///</summary>
[DBColumn(ColumnName = "MATERIAL_CODE", DataType = DbType.String)]
public string MATERIAL_CODE { get; set; }
///<summary>
///零件状态
///0:合格
///1:返修
///2:作废
///</summary>
[DBColumn(ColumnName = "STATUS", DataType = DbType.String)]
public string STATUS { get; set; }
public string STATUSNAME { get; set; }
///<summary>
///当前工序
///0:搪塑
///1:骨架注塑
///2:气囊支架注塑
///3:风道注塑
///4:中控之间注塑
///5:HUD风道注塑
///5:冷刀弱化
///6:火焰加工
///7:预热
///8:浇注
///9:红外扫描
///10:冲切
///11:铣削
///12:铆接
///13:超时波焊接
///14:红外焊接
///15:总成装配
///</summary>
[DBColumn(ColumnName = "CURRENTPROCESS", DataType = DbType.String)]
public string CURRENTPROCESS { get; set; }
public string CURRENTPROCESSNAME { get; set; }
///<summary>
///生产线
///</summary>
[DBColumn(ColumnName = "PRODUCELINE", DataType = DbType.String)]
public string PRODUCELINE { get; set; }
///<summary>
///班次信息名称
///</summary>
[DBColumn(ColumnName = "PRODUCESHIFTNAME", DataType = DbType.String)]
public string PRODUCESHIFTNAME { get; set; }
///<summary>
///班次信息编号
///</summary>
[DBColumn(ColumnName = "PRODUCESHIFTTCODE", DataType = DbType.String)]
public string PRODUCESHIFTTCODE { get; set; }
///<summary>
///出库标记
///0:在库
///1:发货
///2.异常出库
///</summary>
[DBColumn(ColumnName = "OUTFLAG", DataType = DbType.String)]
public string OUTFLAG { get; set; }
public string OUTFLAGNAME { get; set; }
///<summary>
///使用状态
///0:未使用
///1:使用中
///2:使用完成
///</summary>
[DBColumn(ColumnName = "USINGSTATE", DataType = DbType.String)]
public string USINGSTATE { get; set; }
public string USINGSTATENAME { get; set; }
///<summary>
///实际容量
///</summary>
[DBColumn(ColumnName = "CAPACITY", DataType = DbType.Int32)]
public int CAPACITY { get; set; }
///<summary>
///使用数量
///</summary>
[DBColumn(ColumnName = "USINGCOUNT", DataType = DbType.Int32)]
public int USINGCOUNT { get; set; }
///<summary>
///报废数量
///</summary>
//[DBColumn(ColumnName = "MENDNUMBER", DataType = DbType.Int32)]
public int MENDNUMBER { get; set; }
///<summary>
///创建用户
///</summary>
[DBColumn(ColumnName = "CREATEUSER", DataType = DbType.String)]
public string CREATEUSER { get; set; }
public string CREATEUSERNAME { get; set; }
///<summary>
///操作时间
///</summary>
[DBColumn(ColumnName = "CREATEDATE", DataType = DbType.DateTime)]
public DateTime CREATEDATE { get; set; }
///<summary>
///更新用户
///</summary>
[DBColumn(ColumnName = "UPDATEUSER", DataType = DbType.String)]
public string UPDATEUSER { get; set; }
public string UPDATEUSERNAME { get; set; }
///<summary>
///更新时间
///</summary>
[DBColumn(ColumnName = "UPDATEDATE", DataType = DbType.DateTime)]
public DateTime UPDATEDATE { get; set; }
///<summary>
///加工结束标记
///</summary>
[DBColumn(ColumnName = "ENDOFLINE", DataType = DbType.String)]
public string ENDOFLINE { get; set; }
///<summary>
///
///</summary>
[DBColumn(ColumnName = "TEAM_CODE", DataType = DbType.String)]
public string TEAM_CODE { get; set; }
///<summary>
///工作中心
///</summary>
[DBColumn(ColumnName = "WORKCENTER_CODE", DataType = DbType.String)]
public string WORKCENTER_CODE { get; set; }
///<summary>
///工位信息
///</summary>
[DBColumn(ColumnName = "WORKLOC_CODE", DataType = DbType.String)]
public string WORKLOC_CODE { get; set; }
///<summary>
///工序
///</summary>
[DBColumn(ColumnName = "WORKCELL_CODE", DataType = DbType.String)]
public string WORKCELL_CODE { get; set; }
///<summary>
///底盘号
///</summary>
[DBColumn(ColumnName = "VIN", DataType = DbType.String)]
public string VIN { get; set; }
///<summary>
///车身号
///</summary>
[DBColumn(ColumnName = "KIN", DataType = DbType.String)]
public string KIN { get; set; }
///<summary>
///顺序号
///</summary>
[DBColumn(ColumnName = "VWSEQ", DataType = DbType.String)]
public string VWSEQ { get; set; }
///<summary>
///工作中心名称
///</summary>
public string WORKCENTER_NAME { get; set; }
///<summary>
///物料号名称
///</summary>
public string MATERIAL_NAME { get; set; }
///<summary>
///物料类型名称
///</summary>
public string MATERIAL_TYPE_NAME { get; set; }
/// <summary>
/// 父级物料类型
/// </summary>
public string PARENT_MATERIAL_TYPE { get; set; }
/// <summary>
/// 属性信息
/// </summary>
public ProductAttribute PRODUCTATTRIBUTE { get; set; }
///<summary>
///条码属性表主键
///</summary>
public string PAPID { get; set; }
/// <summary>
/// 错误信息
/// </summary>
public string InfoError { get; set; }
///// <summary>
///// 导入时判断添加修改
///// </summary>
//public bool IsNewInfo { get; set; }
/// <summary>
/// 用于查询零件类别数组
/// </summary>
public string PRODUCTTYPES { get; set; }
/// <summary>
/// 用于存储零件基本类别信息
/// </summary>
public ProductBasic productBasic { get; set; }
/// <summary>
/// 用于存储零件对应工序设置内容
/// </summary>
public ProcessSet processSet { get; set; }
/// <summary>
/// 用于存储零件对应工序设置内容
/// </summary>
public List<ProcessSet> processSets { get; set; }
/// <summary>
/// 用于存储零件与本体结合数量
/// </summary>
public int useCount { get; set; }
/// <summary>
/// 用于判断当前零件是否代表本体
/// </summary>
public bool IsMain { get; set; }
/// <summary>
/// 是否成品
/// </summary>
public int isOk { get; set; }
/// <summary>
/// 用于判断补码的时候是否扣除材料
/// </summary>
public bool AddM { get; set; }
/// <summary>
/// 导出使用的TableName
/// </summary>
public string TableName { get; set; }
/// <summary>
/// 高低配
/// </summary>
public string HB { get; set; }
/// <summary>
/// 表皮颜色
/// </summary>
public string COLOR { get; set; }
///<summary>
///批次号
///</summary>
public string BATCH_NO { get; set; }
/// <summary>
/// 用于适应任意码的查询
/// </summary>
public string publicCode { get; set; }
public string STARTCREATEDATE { get; set; }
public string ENDCREATEDATE { get; set; }
public string PLAN_NO { get; set; }
public string MAIN_OR_PLAN
{
get
{
if (string.IsNullOrWhiteSpace(MAINCODE))
{
return PLAN_NO;
}
else
{
return MAINCODE;
}
}
}
}
}