|
@@ -28,7 +28,7 @@ namespace SCADA_DAQ.Customer
|
|
|
/// <summary>
|
|
|
/// UctFrmDeviceOeeInformation.xaml 的交互逻辑
|
|
|
/// </summary>
|
|
|
- [UctMenu("设备OEE界面", Icon = "看板")]
|
|
|
+ [UctMenu("时间稼动率界面", Icon = "看板")]
|
|
|
public partial class UctFrmDeviceOeeInformation : BaseUctFrm
|
|
|
{
|
|
|
public OeeProperty DeviceOeePercenValue = new OeeProperty();
|
|
@@ -44,16 +44,16 @@ namespace SCADA_DAQ.Customer
|
|
|
GetOeeData();
|
|
|
TenOeeChart();
|
|
|
Env.Schedual.DateTimeChanged += Schedual_DateTimeChanged;
|
|
|
- LaserDevice.Title = new string[] { "单位:%", "激光机设备OEE" };
|
|
|
- simenDevice.Title = new string[] { "单位:%", "西门子数冲机设备OEE" };
|
|
|
- BeiFuDevice.Title = new string[] { "单位:%", "倍福数冲机设备OEE" };
|
|
|
- KimFangyuanDevice.Title = new string[] { "单位:%", "金方圆数控母线冲孔机设备OEE" };
|
|
|
- HighDevice.Title = new string[] { "单位:%", "高机母线冲剪机设备OEE" };
|
|
|
- OneBendingDevice.Title = new string[] { "单位:%", "1号YaWei折弯机设备OEE" };
|
|
|
- TwoBendingDevice.Title = new string[] { "单位:%", "2号YaWei折弯机设备OEE" };
|
|
|
- ThreeBendingDevice.Title = new string[] { "单位:%", "3号YaWei折弯机设备OEE" };
|
|
|
- YaWeiPBCDevice.Title = new string[] { "单位:%", "亚威PBC折弯机设备OEE" };
|
|
|
- BaiChaoDevice.Title = new string[] { "单位:%", "百超折弯机设备OEE" };
|
|
|
+ LaserDevice.Title = new string[] { "单位:%", "激光机"};
|
|
|
+ simenDevice.Title = new string[] { "单位:%", "西门子数冲机" };
|
|
|
+ BeiFuDevice.Title = new string[] { "单位:%", "倍福数冲机" };
|
|
|
+ KimFangyuanDevice.Title = new string[] { "单位:%", "金方圆数控母线冲孔机" };
|
|
|
+ HighDevice.Title = new string[] { "单位:%", "高机母线冲剪机" };
|
|
|
+ OneBendingDevice.Title = new string[] { "单位:%", "1号YaWei折弯机" };
|
|
|
+ TwoBendingDevice.Title = new string[] { "单位:%", "2号YaWei折弯机" };
|
|
|
+ ThreeBendingDevice.Title = new string[] { "单位:%", "3号YaWei折弯机" };
|
|
|
+ YaWeiPBCDevice.Title = new string[] { "单位:%", "亚威PBC折弯机" };
|
|
|
+ BaiChaoDevice.Title = new string[] { "单位:%", "百超折弯机" };
|
|
|
|
|
|
var LASER = OeePercentAVG("激光机");
|
|
|
}
|
|
@@ -149,6 +149,8 @@ namespace SCADA_DAQ.Customer
|
|
|
double dayRunTime = 0;
|
|
|
for (int i = 0; i < Days.Count; i++)
|
|
|
{
|
|
|
+ //var hourStartResult = Days[i].StartTime.Format();
|
|
|
+ //var hourEndResult = Days[i].EndTime.Format();
|
|
|
var hourStartResult = Days[i].StartTime.Format();
|
|
|
var hourEndResult = Days[i].EndTime.Format();
|
|
|
var OeePercentSting = OeeData.ToLookup(t => t.DeviceName)[deviceName]
|
|
@@ -165,7 +167,7 @@ namespace SCADA_DAQ.Customer
|
|
|
dayRunTime = double.Parse(OeePercentSting.First().OeePercentage.ToString());
|
|
|
}
|
|
|
}
|
|
|
- allOeePercentage.Add(dayRunTime);
|
|
|
+ allOeePercentage.Add(dayRunTime*100);
|
|
|
dayRunTime = 0;
|
|
|
}
|
|
|
return allOeePercentage;
|
|
@@ -185,7 +187,7 @@ namespace SCADA_DAQ.Customer
|
|
|
var allAVGValue = aVGValue / OeePercentStingAVG.Count();
|
|
|
for (int i = 0; i < Days.Count; i++)
|
|
|
{
|
|
|
- aVGOeePercentage.Add(allAVGValue);
|
|
|
+ aVGOeePercentage.Add(allAVGValue*100);
|
|
|
}
|
|
|
return aVGOeePercentage;
|
|
|
}
|