using Business.Core.Attributes;
using Microsoft.EntityFrameworkCore;
using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace Business.Domain
{
///
/// 委外订单表
///
[CollectionName("dopbase", "mes_oorder")]
[Comment("委外订单表")]
public class mes_oorder : BaseEntity
{
/////
///// 委外订单id
/////
//[Key]
//[Comment("委外订单id")]
//public long oorder_id { get; set; }
///
/// 生产工单编号
///
[StringLength(50)]
[Comment("生产工单编号")]
public string oorder_no { get; set; }
///
/// 生产工单类型
///
[StringLength(80)]
[Comment("生产工单类型")]
public string oorder_type { get; set; }
///
/// 委外订单日期
///
[Comment("委外订单日期")]
public DateTime? oorder_date { get; set; }
///
/// 订单状态
///
[StringLength(50)]
[Comment("订单状态")]
public string oorder_state { get; set; }
///
/// 生产组织
///
[Comment("生产组织")]
public long? ooentry_prd { get; set; }
///
/// 生产组织名称
///
[StringLength(50)]
[Comment("生产组织名称")]
public string ooentry_prdname { get; set; }
///
/// 工作中心id
///
[Comment("工作中心id")]
public long? ooentry_wrkc { get; set; }
///
/// 工作中心名称
///
[StringLength(50)]
[Comment("工作中心名称")]
public string ooentry_wrkcname { get; set; }
///
/// 计划员工号
///
[StringLength(80)]
[Comment("计划员工号")]
public string planner_num { get; set; }
///
/// 计划员名称
///
[StringLength(80)]
[Comment("计划员名称")]
public string planner_name { get; set; }
///
/// 计划开工日期
///
[Comment("计划开工日期")]
public DateTime? ooentry_stime { get; set; }
///
/// 计划完工日期
///
[Comment("计划完工日期")]
public DateTime? ooentry_etime { get; set; }
///
/// 产品代码
///
[StringLength(80)]
[Comment("产品代码")]
public string product_code { get; set; }
///
/// fms旧料号
///
[StringLength(80)]
[Comment("fms旧料号")]
public string ffms_number { get; set; }
///
/// 产品名称
///
[StringLength(500)]
[Comment("产品名称")]
public string product_name { get; set; }
///
/// 规格型号
///
[StringLength(500)]
[Comment("规格型号")]
public string specification_model { get; set; }
///
/// bom编码
///
[StringLength(80)]
[Comment("bom编码")]
public string bom_number { get; set; }
///
/// 单位
///
[StringLength(80)]
[Comment("单位")]
public string unit { get; set; }
///
/// 工单进度
///
[StringLength(500)]
[Comment("工单进度")]
public string morder_progress { get; set; }
///
/// 工单生产数量(计划数量)
///
[Precision(20, 10)]
[Comment("工单生产数量(计划数量)")]
public decimal? morder_production_number { get; set; }
///
/// 需求数量
///
[Precision(20, 10)]
[Comment("需求数量")]
public decimal? need_number { get; set; }
///
/// 剩余可用数量
///
[Precision(20, 10)]
[Comment("剩余可用数量")]
public decimal? remaining_number { get; set; }
///
/// 报工数量
///
[Precision(23, 10)]
[Comment("报工数量")]
public decimal? work_number { get; set; }
///
/// 报检数量
///
[Precision(23, 10)]
[Comment("报检数量")]
public decimal? inspection_number { get; set; }
///
/// 合格数量
///
[Precision(23, 10)]
[Comment("合格数量")]
public decimal? qualified_number { get; set; }
///
/// 入库数量
///
[Precision(23, 10)]
[Comment("入库数量")]
public decimal? inventory_number { get; set; }
///
/// 已开通知单数量
///
[Precision(23, 10)]
[Comment("已开通知单数量")]
public decimal? notice_qty { get; set; }
///
/// 启动状态
///
[Comment("启动状态")]
public int? moentry_on { get; set; }
///
/// 开始时间
///
[Comment("开始时间")]
public DateTime? start_time { get; set; }
///
/// 最近暂停时间
///
[Comment("最近暂停时间")]
public DateTime? pause_time { get; set; }
///
/// 最近重启时间
///
[Comment("最近重启时间")]
public DateTime? restart_time { get; set; }
/////
///// 扩展
/////
//public string ext { get; set; }
///
/// 项目名称
///
[StringLength(255)]
[Comment("项目名称")]
public string project_name { get; set; }
///
/// 发料状态 1-待发料 2-已发料
///
[Comment("发料状态 1-待发料 2-已发料")]
public int? sent_status { get; set; }
///
/// 加工单位
///
[StringLength(100)]
[Comment("加工单位")]
public string production_unit { get; set; }
///
/// 加工单位编码
///
[StringLength(20)]
[Comment("加工单位编码")]
public string production_unit_code { get; set; }
///
/// 所需物料是否充足 1-充足 0-缺料
///
[Comment("所需物料是否充足 1-充足 0-缺料")]
public int? need_icitem_status { get; set; }
///
/// 计算ID
///
[Comment("计算id")]
[NotMapped]
public long? bang_id { get; set; }
///
/// 订单行id
///
[Comment("订单行id")]
public long? sentry_id { get; set; }
}
}