using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel;
namespace ICSSoft.Frame.Data.Entity
{
#region 界面类
public class WorkReportFrmUI
{
public string MoCode { get; set; }
public int MoSeq { get; set; }
public decimal MoPlanQty { get; set; }
public string MOVER { get; set; }
public string ItemCode { get; set; }
public string ItemName { get; set; }
public string ItemLvl { get; set; }
public string CTItemCode { get; set; }
public string LifeCycle { get; set; }
public string LotNo { get; set; }
public int LotSeq { get; set; }
public decimal LotQty { get; set; }
public decimal LotOKQty { get; set; }
public decimal LotNGQty { get; set; }
public decimal RcvNGQty { get; set; }
public LotNoState StateLot { get; set; }
public string RouteCode { get; set; }
public string RouteDesc { get; set; }
public bool IsFirstOP { get; set; }
public int OpSeq { get; set; }
public string OpCode { get; set; }
public string OpName { get; set; }
public string CtrlType { get; set; }
public OPType Optype { get; set; }
public OPState StateOP { get; set; }
public string CostCenter { get; set; }
public decimal TranQty { get; set; }
public decimal RealTimeQty { get; set; }
public int OpSeq_Pre { get; set; }
public string OpCode_Pre { get; set; }
public string OpName_Pre { get; set; }
public string CtrlType_Pre { get; set; }
public string SEGCode { get; set; }
public string SGroup { get; set; }
public string UserCode { get; set; }
public string UserName { get; set; }
public string UserLvl { get; set; }
public RunType StateOPUser { get; set; }
public string SuspendReason { get; set; }
public string EQPCode { get; set; }
public string EQPName { get; set; }
public string ID_ONWIP { get; set; }
public string ID_ONWIPDetail { get; set; }
public string ID_SuspendDetail { get; set; }
public string TiaoJiUserCode { get; set; }
public string TiaoJiUserName { get; set; }
public TiaoJiState StateTiaoJi { get; set; }
public string TiaoJiReason { get; set; }
public ICSLOTPAUSE lotPauseInfo { get; set; }
public decimal Pass { get; set; }
public decimal NG_Make { get; set; }
public decimal NG_Material { get; set; }
public decimal NG_ShakedownTest { get; set; }
}
#endregion
#region 用于枚举的特性类
public class AttrDescription : Attribute
{
private string _showName;
public AttrDescription(string desc)
{
_showName = desc;
}
public string Description
{
get
{
return _showName;
}
}
}
public class DBValue : AttrDescription
{
public DBValue(string desc)
: base(desc)
{
}
}
public class ShowOnButton : AttrDescription
{
public ShowOnButton(string desc)
: base(desc)
{
}
}
public class DescriptionEn : AttrDescription
{
public DescriptionEn(string desc)
: base(desc)
{
}
}
#endregion
#region 枚举
/////
///// 图纸类型
/////
//public enum DrawingType
//{
// [Description("总图")]
// [DescriptionEn("General Drawing")]
// General,
// [Description("工序图")]
// [DescriptionEn("Process Diagram")]
// OP,
// [Description("刀具单")]
// [DescriptionEn("Cutters")]
// Cutters,
// [Description("作业指导书")]
// [DescriptionEn("Standard Operation Procedure")]
// SOP,
// [Description("检验指导书")]
// [DescriptionEn("Standard Inspection Procedure")]
// SIP
//};
///
/// 输入状态
///
public enum InputState
{
[Description("首次")]
[ShowOnButton("开始")]
Frist,
[Description("完成")]
[ShowOnButton("完成")]
Finish,
[Description("重置")]
[ShowOnButton("解锁")]
Reset
};
///
/// 跟踪单状态
///
public enum LotNoState
{
[Description("未开工")]
[DBValue("-1")]
Init,
[Description("开工")]
[DBValue("0")]
Begin,
[Description("完工")]
[DBValue("1")]
End
}
///
/// 工序状态
///
public enum OPState
{
[Description("首次")]
[DBValue("NULL")]
Init,
[Description("进行中")]
[DBValue("COLLECT_BEGIN")]
Begin,
[Description("结束")]
[DBValue("COLLECT_END")]
End
}
///
/// 运行状态
///
public enum RunType
{
[Description("首次")]
[ShowOnButton("开始")]
[DBValue("NULL")]
Init,
[Description("运行")]
[ShowOnButton("暂停")]
[DBValue("COLLECT_BEGIN")]
Run,
[Description("暂停")]
[ShowOnButton("继续")]
[DBValue("COLLECT_SUSPEND")]
Suspend,
[Description("结束")]
[ShowOnButton("开工")]
[DBValue("COLLECT_END")]
Stop
}
///
/// 调机状态
///
public enum TiaoJiState
{
[Description("进行中")]
[ShowOnButton("结束")]
[DBValue("BEGIN")]
Begin,
[Description("结束")]
[ShowOnButton("开始")]
[DBValue("END")]
End
}
///
/// 工序类型
///
public enum OPType
{
[Description("委外")]
[DBValue("1")]
Outsourcing,
[Description("自制")]
[DBValue("0")]
Self,
[Description("检验")]
[DBValue("0")]
Inspect,
[Description("检验")]
[DBValue("0")]
Check
}
#endregion
}