using Business.Core.Attributes;
using Bussiness.MongoModel;
using Microsoft.EntityFrameworkCore;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
namespace Bussiness.MongoModel.Tech
{
///
/// 工艺关联工序表
///
[CollectionName("dopbase", "mo_mes_tech_process")]
[Comment("工艺关联工序表")]
public class mo_mes_tech_process : MoBaseEntity
{
/////
///// 工艺工序主键
/////
//[Key]
//[Comment("工艺工序主键")]
//public long tech_proc_id { get; set; }
///
/// 工艺主键
///
[Required]
[Comment("工艺主键")]
public long tech_id { get; set; }
///
/// 工序主键
///
[Required]
[Comment("工序主键")]
public long? proc_id { get; set; }
///
/// 组合层级
///
[Required]
[Comment("组合层级")]
public int? level { get; set; }
///
/// 是否需要排产:1-是;0-否
///
[Required]
[Comment("是否需要排产:1-是;0-否")]
public int? is_schedule { get; set; }
///
/// 前置准备时间
///
[Precision(20,8)]
[Comment("前置准备时间")]
public decimal? readytime { get; set; }
///
/// 工作中心类型WorkCenterType:1-人工型;2-流水线型;3-设备型
///
[Comment("工作中心类型")]
public int? wctype { get; set; }
///
/// 前置最小数量LeadQuantity to Start Next
///
[Precision(20, 8)]
[Comment("前置最小数量")]
public decimal? lq { get; set; }
///
/// 前置等待时间
///
[Precision(20, 8)]
[Comment("前置等待时间")]
public decimal? lqt { get; set; }
///
/// 子工序加工数量UnitPerParent
///
[Precision(20, 8)]
[Comment("子工序加工数量")]
public decimal? upp { get; set; }
///
/// 一次可加工数量UnitPerEquipment
///
[Precision(20, 8)]
[Comment("一次可加工数量")]
public decimal? upe { get; set; }
///
/// 实际运行工位数WorkshopInUse
///
[Comment("实际运行工位数")]
public int? wsinuse { get; set; }
/////
///// 效率计算类型 1-节拍时间;2-UPH
/////
//[Required]
//[Description("效率计算类型 1-节拍时间;2-UPH")]
//public int? type { get; set; }
///
/// UPH
///
[Precision(20, 8)]
[Comment("UPH")]
public decimal? uph { get; set; }
///
/// 节拍时间
///
[Precision(20, 8)]
[Comment("节拍时间")]
public decimal? ct { get; set; }
///
/// 效率系数
///
[Precision(10, 4)]
[Comment("效率系数")]
public decimal? effect_ratio { get; set; }
///
/// 是否需要跟踪工序
///
[Comment("是否需要跟踪工序")]
public int? mototrack { get; set; }
///
/// 下一工序id
///
[Comment("下一工序id")]
public long? nextprocid { get; set; }
///
/// 父级工序id
///
[Comment("父级工序id")]
public long? parentprocid { get; set; }
///
/// 是否需要质检
///
[Comment("是否需要质检")]
public int? needqc { get; set; }
///
/// 最大并行工位数
///
[Comment("最大并行工位数")]
public int? maxworkshop { get; set; }
}
}