12345678910111213141516171819202122232425262728293031323334353637383940414243 |
- 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()
- {
- }
- /// <summary>
- /// 产能
- /// </summary>
- 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<OverviewProductionPlanDto> OverviewProductionPlans { get; set; }
- = new List<OverviewProductionPlanDto>();
- }
- }
|