using Microsoft.EntityFrameworkCore;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Business.Domain
{
///
/// 月度产能共识主表
///
[Comment("月度产能共识主表")]
[Index(nameof(Year), nameof(Month),nameof(PlanMonth), nameof(ProdLine), nameof(tenant_id),nameof(company_id), nameof(factory_id), IsUnique = true)]
public class MonthlyProdCapacity:BaseEntity
{
///
/// 年
///
[Comment("年")]
public int? Year { get; set; }
///
/// 月
///
[Comment("月")]
public int? Month { get; set; }
///
/// 计划年月
///
[Comment("计划年月")]
public string PlanMonth { get; set; }
///
/// 生产线
///
[Comment("生产线")]
public string ProdLine { get; set; }
///
/// 日工作时间(小时)
///
[Comment("日工作时间(小时)")]
public decimal DailyWorks { get; set; }
///
/// 月工作天数(天)
///
[Comment("月工作天数(天)")]
public decimal MonthWorks { get; set; }
///
/// 班次数
///
[Comment("班次数")]
public int FlightQty { get; set; }
///
/// 月度可利用工作时间(小时)
///
[Comment("月度可利用工作时间(小时)")]
public decimal AvailableTimes { get; set; }
///
/// 月度需求工作时间(小时)
///
[Comment("月度需求工作时间(小时)")]
public decimal NeedWorks { get; set; }
///
/// 排产效率
///
[Comment("排产效率")]
public decimal ProdRate { get; set; }
///
/// 产线标准产能符合率
///
[Comment("产线标准产能符合率")]
public decimal Rate { get; set; }
///
/// 是否加班:是,否
///
[Comment("是否加班")]
public string IsOverTime { get; set; }
///
/// 加班工时
///
[Comment("加班工时")]
public decimal OverTimes { get; set; }
}
}