|
@@ -96,11 +96,15 @@ namespace SCADA_DAQ.Customer
|
|
|
|
|
|
public void OeeChart(string deviceName, IList<string> DeviceAisxX, IChartValues DeviceAxisY)
|
|
|
{
|
|
|
-
|
|
|
+ var dayCount = DateTime.Now.Day;
|
|
|
var listdouble = OeePercent(deviceName);
|
|
|
for (int i = 0; i < listdouble.Count; i++)
|
|
|
{
|
|
|
- DeviceAxisY.Add(listdouble[i]);
|
|
|
+ if ( i < dayCount)
|
|
|
+ {
|
|
|
+ DeviceAxisY.Add(listdouble[i]);
|
|
|
+ }
|
|
|
+
|
|
|
DeviceAisxX.Add(((i + 1).ToString() + "日"));
|
|
|
|
|
|
}
|