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
{
///
/// 模块编号:M13-1
/// 作 用:零件条码表
/// 作 者:王庆男
/// 编写日期:2015年05月29日
///
[DBTable(TableName = "T_AW_PRODUCT", TimeStampColumn = "UPDATEDATE")]
public class Product : BaseEntity
{
///
///主键
///
[DBColumn(ColumnName = "PID", DataType = DbType.String, IsKey = true)]
public string PID { get; set; }
//T_AW_MAIN表PID
public string MID { 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; }
///
///零件条码
///
[DBColumn(ColumnName = "PRODUCTCODE", DataType = DbType.String)]
public string PRODUCTCODE { get; set; }
public string PRODUCTCODELIKE { get; set; }
/////
/////零件条码(字符串反转)
/////
//[DBColumn(ColumnName = "PRODUCTCODE_REV", DataType = DbType.String)]
//public string PRODUCTCODE_REV
//{
// get
// {
// if (string.IsNullOrWhiteSpace(PRODUCTCODE))
// {
// return PRODUCTCODE;
// }
// else
// {
// return new string(PRODUCTCODE.Reverse().ToArray());
// }
// }
// set { }
//}
//T_AW_MAIN表条码
public string MAINCODE { 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; }
//生产班次
public string SHIFT_CODE { 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; }
///
/// 关联计划号ID
///
[DBColumn(ColumnName = "PLAN_ID", DataType = DbType.String)]
public string PLAN_ID { get; set; }
///
/// 关联计划号
///
[DBColumn(ColumnName = "PLAN_NO", DataType = DbType.String)]
public string PLAN_NO { get; set; }
///
/// 关联计划号(字符串反转)
///
[DBColumn(ColumnName = "PLAN_NO_REV", DataType = DbType.String)]
public string PLAN_NO_REV
{
get
{
if (string.IsNullOrWhiteSpace(PLAN_NO))
{
return PLAN_NO;
}
else
{
return new string(PLAN_NO.Reverse().ToArray());
}
}
set { }
}
///
///底盘号
///
[DBColumn(ColumnName = "VIN", DataType = DbType.String)]
public string VIN { get; set; }
///
///底盘号(字符串反转)
///
[DBColumn(ColumnName = "VIN_REV", DataType = DbType.String)]
public string VIN_REV
{
get
{
if (string.IsNullOrWhiteSpace(VIN))
{
return VIN;
}
else
{
return new string(VIN.Reverse().ToArray());
}
}
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 MATERIAL_NAME { get; set; }
///
///物料类型名称
///
public string MATERIAL_TYPE_NAME { get; set; }
///
/// 父级物料类型
///
public string PARENT_MATERIAL_TYPE { get; set; }
///
/// 物料属性
/// 0:分总成/半成品/中间件 1:注塑件 2:总成 3:原材料 4:虚拟物料
///
public string MATERIAL_ATTRIBUTE { get; set; }
///
/// 属性信息
///
public ProductAttribute PRODUCTATTRIBUTE { get; set; }
///
/// 出库原因(WINFORM用)
///
public string OUTREASON { get; set; }
///
///条码属性表主键
///
public string PAPID { get; set; }
///
///
public string VAL1 { get; set; }
///
///
///
public string VAL2 { get; set; }
///
///
///
public string VAL3 { get; set; }
///
///
///
public string VAL4 { get; set; }
///
///
///
public string VAL5 { get; set; }
///
///
///
public string VAL6 { get; set; }
///
///
///
public string VAL7 { get; set; }
///
///
///
public string VAL8 { get; set; }
///
///
///
public string VAL9 { get; set; }
///
///
///
public string VAL10 { get; set; }
///
///
///
public string VAL11 { get; set; }
///
///
///
public string VAL12 { get; set; }
///
///
///
public string VAL13 { get; set; }
///
///
///
public string VAL14 { get; set; }
///
///
///
public string VAL15 { 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; }
public string CREATESTARTDATE { get; set; }
public string CREATEENDDATE { 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 MENDDUTY { get; set; }
///
///是否测试件
///
public string MENDTEST { get; set; }
///
///废品类别
///
public string ERP_MFGCODETYPE { get; set; }
///
///车型代码
///
public string ERP_CAR { get; set; }
///
///车型代码-T_MD_MATERIAL表里的字段
///
public string PROJECTCODE { get; set; }
///
///生产线代码
///
public string ERP_WORKLINE { get; set; }
///
///班组代码
///
public string ERP_SHIFT { get; set; }
///
///工序代码
///
public string ERP_WORKCELL { get; set; }
///
///缺陷归属
///
public string ERP_DEFECTTO { get; set; }
///
///产品类别代码
///
public string ERP_PRODUCTTYPE { get; set; }
///
///缺陷代码
///
public string ERP_DEFECTCODE { get; set; }
///
///处理方法
///
public string HANDLEMETHOD { get; set; }
///
///
///
public string WORKLOC_NAME { get; set; }
public string WORKCELL_NAME { get; set; }
public string MAIN_OR_PLAN
{
get
{
if (string.IsNullOrWhiteSpace(MAINCODE))
{
return PLAN_NO;
}
else
{
return MAINCODE;
}
}
}
}
}