ProductionPlanEntity.cs
3.23 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
using System;
using System.Collections.Generic;
using System.Linq;
namespace Hh.Mes.POJO.ApiEntity
{
/// <summary>
/// 生产订单 报工/计划
/// </summary>
public class ProductionPlanEntity
{
/// <summary>
/// 当天生产量
/// </summary>
public OrderCount orderCountDay { get; set; }
/// <summary>
/// 当月生产量
/// </summary>
public OrderCount orderCountMonth { get; set; }
/// <summary>
/// 订单产品
/// </summary>
public Chart productWorkReportMonth { get; set; }
/// <summary>
/// 线体产品
/// </summary>
public Chart lineWorkReportMonth { get; set; }
/// <summary>
/// 生产订单
/// </summary>
public List<OrderList> orderList { get; set; } = new List<OrderList>();
/// <summary>
/// 订单物料消耗
/// </summary>
public List<OrderUseLoglist> orderUseLogList { get; set; } = new List<OrderUseLoglist>();
}
/// <summary>
/// 生产量
/// </summary>
public class OrderCount
{
/// <summary>
/// 接收
/// </summary>
public int receive { get; set; }
/// <summary>
/// 已报
/// </summary>
public int receiveComplete { get; set; }
/// <summary>
/// 百分比
/// </summary>
public string rate => receive == 0 ? "0" : $"{receiveComplete * 100 / receive}";
}
public class Chart
{
/// <summary>
/// X轴名称集合
/// </summary>
public List<string> xAxisData { get; set; } = new List<string>();
/// <summary>
/// Y轴数值集合
/// </summary>
public List<int> yAxisQty { get; set; } = new List<int>();
/// <summary>
/// 总计
/// </summary>
public int yAxisQtyCount => yAxisQty.Sum();
}
/// <summary>
/// 生产订单
/// </summary>
public class OrderList
{
public string workOrderCode { get; set; }
public string lineName { get; set; }
public string nowOprSequenceCode { get; set; }
public string nowStationName { get; set; }
public string state { get; set; }
/// <summary>
/// 计划/实际 开始时间
/// </summary>
public DateTime? startTime { get; set; }
/// <summary>
/// 计划/时间 结束时间
/// </summary>
public DateTime? endTime { get; set; }
/// <summary>
/// 订单创建时间
/// </summary>
public DateTime? createTime { get; set; }
}
/// <summary>
/// 订单物料消耗
/// </summary>
public class OrderUseLoglist
{
public string workOrderCode { get; set; }
public string lineName { get; set; }
public string nowOprSequenceCode { get; set; }
public string nowStationName { get; set; }
public string productName { get; set; }
public string materialCode { get; set; }
public string materialName { get; set; }
public string state { get; set; }
public decimal? specifications { get; set; }
public string unit { get; set; }
}
}