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年06月04日
///
[DBTable(TableName = "T_AW_MAIN", TimeStampColumn = "UPDATEDATE")]
//[DBTable(TableName = "T_AW_MAIN")]
public class Main : BaseEntity
{
///
///主键
///
[DBColumn(ColumnName = "PID", DataType = DbType.String, IsKey = true)]
public string PID { get; set; }
///
///本体条码
///
[DBColumn(ColumnName = "MAINCODE", DataType = DbType.String)]
public string MAINCODE { get; set; }
/////
/////本体条码(字符串反转)
/////
//[DBColumn(ColumnName = "MAINCODE_REV", DataType = DbType.String)]
//public string MAINCODE_REV
//{
// get
// {
// if (string.IsNullOrWhiteSpace(MAINCODE))
// {
// return MAINCODE;
// }
// else
// {
// return new string(MAINCODE.Reverse().ToArray());
// }
// }
// set { }
//}
///
///骨架主键
///
[DBColumn(ColumnName = "SKID", DataType = DbType.String)]
public string SKID { get; set; }
///
///骨架条码
///
[DBColumn(ColumnName = "SKELETONCODE", DataType = DbType.String)]
public string SKELETONCODE { get; set; }
///
///表皮主键
///
[DBColumn(ColumnName = "EID", DataType = DbType.String)]
public string EID { get; set; }
///
///表皮条码
///
[DBColumn(ColumnName = "EPIDERMISCODE", DataType = DbType.String)]
public string EPIDERMISCODE { get; set; }
///
///高低配
///
[DBColumn(ColumnName = "HB", DataType = DbType.String)]
public string HB { get; set; }
///
///颜色
///
[DBColumn(ColumnName = "COLOR", DataType = DbType.String)]
public string COLOR { get; set; }
///
///设备编号
///
[DBColumn(ColumnName = "MACHINECODDE", DataType = DbType.String)]
public string MACHINECODDE { get; set; }
///
///0:加工中
//1:加工完成
///
[DBColumn(ColumnName = "PROCESSSTATE", DataType = DbType.String)]
public string PROCESSSTATE { 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 = "COMPLETEFLAG", DataType = DbType.String)]
public string COMPLETEFLAG { 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; }
///
///贴车单记录主键
///
[DBColumn(ColumnName = "SPID", DataType = DbType.String)]
public string SPID { get; set; }
///
///贴车单号
///
[DBColumn(ColumnName = "SENDCODE", DataType = DbType.String)]
public string SENDCODE { get; set; }
///
///完成时间
///
[DBColumn(ColumnName = "COMPLETETIME", DataType = DbType.DateTime)]
public DateTime COMPLETETIME { get; set; }
///
/// 完成时间字符串
///
public string COMPLETEDATE { 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; }
public string STARTCREATEDATE { get; set; }
public string ENDCREATEDATE { 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; }
///
///物料号
/// 20171007 zxd 物料号改为零件号
///
[DBColumn(ColumnName = "MATERIAL_CODE", DataType = DbType.String)]
public string MATERIAL_CODE { get; set; }
//[DBColumn(ColumnName = "MATERIAL_NAME", DataType = DbType.String)]
public string MATERIAL_NAME { 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; }
///
///物料类别
/// 20171007 zxd 物料类别改为零件类型号
///
[DBColumn(ColumnName = "MATERIAL_TYPE", DataType = DbType.String)]
public string MATERIAL_TYPE { get; set; }
//[DBColumn(ColumnName = "MATERIAL_TYPE_NAME", DataType = DbType.String)]
public string MATERIAL_TYPE_NAME { get; set; }
///
/// 用于适应任意码的查询
///
public string publicCode { get; set; }
#region 扩展字段
///
///工序类别
///
public string PROCESSTYPE { get; set; }
///
///滞留时长
///
public string DetentionTimeCount { get; set; }
///
///加工阶段
///
public string PROCESSSTATETXT { get; set; }
///
///是否合格
///
public string STATUSTXT { get; set; }
///
///高低配
///
public string HBTXT { get; set; }
///
///颜色
///
public string COLORTXT { get; set; }
///
///零件类别
///
public string PRODUCTTYPENAME { get; set; }
///
///当前工序
///
public ProcessSet processSet { get; set; }
///
///当前所有工序
///
public List processSets { get; set; }
///
/// 导出使用的TableName
///
public string TableName { get; set; }
#endregion
}
}