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