using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using QMFrameWork.Data.Attributes;
using System.Data;
using QMAPP.Entity;
namespace QMAPP.FJC.Entity.FIS
{
///
/// 工单计划
///
[DBTable(TableName = "T_PP_ORDERPLAN", TimeStampColumn = "UPDATEDATE")]
public class OrderPlan : BaseEntity
{
///
///
///
[DBColumn(ColumnName = "PID", DataType = DbType.String, IsKey = true)]
public string PID { get; set; }
public string PIDList { get; set; }
///
///工厂编号
///
[DBColumn(ColumnName = "FACTORY_CODE", DataType = DbType.String)]
public string FACTORY_CODE { get; set; }
///
///计划单号
///
[DBColumn(ColumnName = "PLAN_NO", DataType = DbType.String)]
public string PLAN_NO { get; set; }
///
///计划顺序号
///
[DBColumn(ColumnName = "PLAN_SEQ", DataType = DbType.String)]
public String PLAN_SEQ { get; set; }
///
///计划状态
///
[DBColumn(ColumnName = "PLAN_STATE", DataType = DbType.String)]
public string PLAN_STATE { get; set; }
public string PLAN_STATES { get; set; }
///
///物料号
///
[DBColumn(ColumnName = "MATERIAL_CODE", DataType = DbType.String)]
public string MATERIAL_CODE { get; set; }
///
///设备编号
///
[DBColumn(ColumnName = "MACHINECODDE", DataType = DbType.String)]
public string MACHINECODDE { get; set; }
///
///PBOM编号
///
[DBColumn(ColumnName = "PBOM_CODE", DataType = DbType.String)]
public string PBOM_CODE { get; set; }
///
///工艺路线
///
[DBColumn(ColumnName = "ROUTE_CODE", DataType = DbType.String)]
public string ROUTE_CODE { get; set; }
///
///描述
///
[DBColumn(ColumnName = "REMARK", DataType = DbType.String)]
public string REMARK { get; set; }
///
///计划数量
///
[DBColumn(ColumnName = "QTY", DataType = DbType.String)]
public int QTY { get; set; }
///
///完成数量
///
[DBColumn(ColumnName = "COMPLETE_QTY", DataType = DbType.String)]
public int COMPLETE_QTY { get; set; }
///
///计划日期
///
[DBColumn(ColumnName = "PLAN_DATE", DataType = DbType.DateTime)]
public DateTime PLAN_DATE { get; set; }
///
///班次编码
///
[DBColumn(ColumnName = "SHIFT_CODE", DataType = DbType.String)]
public string SHIFT_CODE { get; set; }
///
///计划来源
///0:FIS 1:建储 2:插单
///
[DBColumn(ColumnName = "PLANSOURCE", DataType = DbType.String)]
public string PLANSOURCE { get; set; }
///
///工作中心
///
[DBColumn(ColumnName = "WORKCENTER_CODE", DataType = DbType.String)]
public string WORKCENTER_CODE { get; set; }
///
///生产要求
///
[DBColumn(ColumnName = "PRODUCEREQUIRE", DataType = DbType.String)]
public string PRODUCEREQUIRE { get; set; }
public string FACTORY_NAME { get; set; }
public string MATERIAL_NAME { get; set; }
public string SHIFT_NAME { get; set; }
///
/// 创建用户
///
[DBColumn(ColumnName = "CREATEUSER", DataType = DbType.String)]
public string CREATEUSER { get; set; }
public string CREATEUSERNAME { get; set; }
///
/// 创建时间
///
[DBColumn(ColumnName = "CREATEDATE", DataType = DbType.DateTime, DefaultValue = DataDefaultValue.SysDate)]
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; }
///
/// 忽略FIS断号
///
[DBColumn(ColumnName = "IGNORE_FISBREAK", DataType = DbType.String)]
public string IGNORE_FISBREAK { get; set; }
///
/// FIS短语字典代码
///
[DBColumn(ColumnName = "FIS_ASMSETCODE", DataType = DbType.String)]
public string FIS_ASMSETCODE { get; set; }
///// 错误信息
/////
//public string InfoError { get; set; }
/////
///// 导入时判断添加修改
/////
//public bool IsNewInfo { get; set; }
public string ORDER_TYPE { get; set; }
public DateTime PLANTIMESTART { get; set; }
public DateTime PLANTIMEEND { get; set; }
[DBColumn(ColumnName = "STARTTIME", DataType = DbType.DateTime)]
public DateTime STARTTIME { get; set; }
[DBColumn(ColumnName = "ENDTIME", DataType = DbType.DateTime)]
public DateTime ENDTIME { get; set; }
public string STARTTIMEVIEW { get; set; }
public string ENDTIMEVIEW { get; set; }
public string STARTTIMEIN { get; set; }
public string ENDTIMEIN { get; set; }
public string PLAN_DATEIN { get; set; }
public string AsmSetCode { get; set; }
}
}