using ProductionLineMonitor.Web.Services.LineService; using System; using System.Collections.Generic; using System.Text; namespace ProductionLineMonitor.Application.Services.LineService.Dtos { public class OverviewProductionPlanDto : ProductionPlan { public OverviewProductionPlanDto() { } /// /// 产能 /// public int Capacity { get; set; } public double AchievementRate { get { if (PlanCapacity == 0) { return 0; } return Math.Round((float)Capacity / PlanCapacity * 100, 0); } } } public class LineOverviewDto { public string Id { get; set; } = string.Empty; public int Floor { get; set; } public int Line { get; set; } public string LineName { get; set; } = string.Empty; public string Name { get; set; } = string.Empty; public IList OverviewProductionPlans { get; set; } = new List(); } }