|
@@ -8,6 +8,8 @@ using Aitex.Core.RT.Event;
|
|
|
using Aitex.Core.RT.Log;
|
|
|
using Aitex.Core.RT.OperationCenter;
|
|
|
using Aitex.Core.Util;
|
|
|
+using DocumentFormat.OpenXml.Vml;
|
|
|
+using DocumentFormat.OpenXml.Wordprocessing;
|
|
|
using MECF.Framework.Common.CommonData.EnumData;
|
|
|
using MECF.Framework.Common.DBCore;
|
|
|
using MECF.Framework.Common.Equipment;
|
|
@@ -128,7 +130,7 @@ namespace MECF.Framework.Common.DataCenter
|
|
|
|
|
|
OP.Subscribe("System.ScheduleMaintenance.SetAdditionInformationDisplayName", (method, args) =>
|
|
|
{
|
|
|
- SetAdditionInformationDisplayName((string)args[0], args[1].ToString(), args.Length > 2 ? args[2].ToString(): "");
|
|
|
+ SetAdditionInformationDisplayName((string)args[0], args[1].ToString(), args.Length > 2 ? args[2].ToString() : "");
|
|
|
return true;
|
|
|
});
|
|
|
|
|
@@ -157,7 +159,7 @@ namespace MECF.Framework.Common.DataCenter
|
|
|
}
|
|
|
|
|
|
InitScheduleMaintenance();
|
|
|
- UpdateSEDWafer();
|
|
|
+ InitAllData();
|
|
|
}
|
|
|
catch (Exception ex)
|
|
|
{
|
|
@@ -417,7 +419,7 @@ namespace MECF.Framework.Common.DataCenter
|
|
|
|
|
|
private Dictionary<MaintenanceItemEnum, ScheduleMaintenanceData> _scheduleMaintenanceDataDictionary;
|
|
|
|
|
|
- public void InitScheduleMaintenance()
|
|
|
+ private void InitScheduleMaintenance()
|
|
|
{
|
|
|
|
|
|
_scheduleMaintenanceDataDictionary = new Dictionary<MaintenanceItemEnum, ScheduleMaintenanceData>
|
|
@@ -526,7 +528,15 @@ namespace MECF.Framework.Common.DataCenter
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- public void UpdateSEDWafer()
|
|
|
+
|
|
|
+ public void InitAllData()
|
|
|
+ {
|
|
|
+ InitScheduleMaintenance();
|
|
|
+ InitReatorRecipeTotal();
|
|
|
+ InitSEDWafer();
|
|
|
+ }
|
|
|
+
|
|
|
+ private void InitSEDWafer()
|
|
|
{
|
|
|
if (_scheduleMaintenanceDataDictionary == null)
|
|
|
{
|
|
@@ -572,7 +582,44 @@ namespace MECF.Framework.Common.DataCenter
|
|
|
SDWaferUserTime.SetValue(maxSDUseTime);
|
|
|
}
|
|
|
|
|
|
- // var data = ccc.Select(a => a.Value.Select(e=>e.Value)).ToList();
|
|
|
+ }
|
|
|
+ }
|
|
|
+ public void UpdateSEDWafer()
|
|
|
+ {
|
|
|
+ InitSEDWafer();
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+ #endregion
|
|
|
+
|
|
|
+ #region ReatorRecipe
|
|
|
+ private void InitReatorRecipeTotal()
|
|
|
+ {
|
|
|
+ var dbItem = GetScheduleMaintenanceData(MaintenanceItemEnum.RecipeExecuteFreq);
|
|
|
+ if (dbItem == null)
|
|
|
+ return;
|
|
|
+
|
|
|
+
|
|
|
+ float total = 0;
|
|
|
+
|
|
|
+ string sql = $"SELECT guid FROM pj_data WHERE pj_data.recipe_name= (SELECT schedule_maintenance.addition_information_display FROM schedule_maintenance WHERE maintenance_item='{MaintenanceItemEnum.RecipeExecuteFreq}')";
|
|
|
+
|
|
|
+ var ds = DB.ExecuteDataset(sql);
|
|
|
+ if (ds != null && ds.Tables != null && ds.Tables.Count > 0 && ds.Tables[0].Rows != null)
|
|
|
+ {
|
|
|
+ total= ds.Tables[0].Rows.Count;
|
|
|
+ }
|
|
|
+
|
|
|
+ dbItem.SetValue(total);
|
|
|
+ }
|
|
|
+ public void ReatorRecipeTotalByRecipeName(string processRecipeName)
|
|
|
+ {
|
|
|
+ if (string.IsNullOrEmpty(processRecipeName))
|
|
|
+ return;
|
|
|
+ var dbItem = GetScheduleMaintenanceData(MaintenanceItemEnum.RecipeExecuteFreq);
|
|
|
+ if (dbItem.DataItem.AdditionInformationDisplay == processRecipeName)
|
|
|
+ {
|
|
|
+ dbItem.Increase();
|
|
|
}
|
|
|
}
|
|
|
#endregion
|