using Siger.Middlelayer.Common.ModuleEnum;

namespace Siger.Middlelayer.Repository.Entities
{
    /// <summary>
    /// siger_project_product_report Entity Model
    /// </summary>   
    public class siger_project_product_report : ConfigEntityBase
    {
       
        /// <summary>
        /// _product_plan_id
        /// </summary>
        public int plan_id { get; set; }
   
        /// <summary>
        /// 
        /// </summary>
        public int projectid { get; set; }
   
        /// <summary>
        /// 
        /// </summary>
        public int machineid { get; set; }
   
        /// <summary>
        /// product_plan_code
        /// </summary>
        public string code { get; set; }
   
        /// <summary>
        /// 生产程序号
        /// </summary>
        public string produced_program_number { get; set; }
   
        /// <summary>
        /// 开始时间
        /// </summary>
        public int start_time { get; set; }
   
        /// <summary>
        /// 结束时间
        /// </summary>
        public int end_time { get; set; }
   
        /// <summary>
        /// 实际产量
        /// </summary>
        public int actual_output { get; set; }

        /// <summary>
        /// 产量
        /// </summary>
        public int output { get; set; } = 0;

        /// <summary>
        /// 报工时间
        /// </summary>
        public int time { get; set; } = 0;

        /// <summary>
        /// 
        /// </summary>
        public int nok_number { get; set; } = 0;
   
        /// <summary>
        /// 生产执行人工号
        /// </summary>
        public string worker_code { get; set; } = string.Empty;

        /// <summary>
        /// 生产执行人姓名
        /// </summary>
        public string worker_name { get; set; } = string.Empty;

        /// <summary>
        /// 图纸号
        /// </summary>
        public string draw_number { get; set; } = string.Empty;

        /// <summary>
        /// 产品名称
        /// </summary>
        public string product_name { get; set; } = string.Empty;

        public string product_code { get; set; } = string.Empty;
        public int station { get; set; } = 0;
        public int processid { get; set; } = 0;
        public int uid { get; set; } = 0;
        /// <summary>
        /// 工废
        /// </summary>
        public int industrial_waste { get; set; } = 0;

        /// <summary>
        /// 料废
        /// </summary>
        public int material_waste { get; set; } = 0;

        public int approval_usermid { get; set; } = 0;

        public OrderReportApprovalStatus approval_status { get; set; } = OrderReportApprovalStatus.WaitingForApproval;

        public int approval_time { get; set; } = 0;

        public string route_name { get; set; } = string.Empty;

        public double rest_minutes { get; set; } = 0;
        /// <summary>
        /// 工序id
        /// </summary>
        public int route_id { get; set; }
        public int shift_id { get; set; }
    }
}
