123456789101112131415161718192021222324252627282930313233343536373839404142434445 |
- using MECF.Framework.UI.Client.CenterViews.Configs.SystemConfig;
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- namespace FurnaceUI.Views.ParameterSC
- {
- public class TimeDict
- {
- public Dictionary<string, string> StepTimeDict { get; set; } = new Dictionary<string, string>();
- public Dictionary<string, string> CoolTimeDict { get; set; } = new Dictionary<string, string>();
- IEnumerable<string> Generate()
- {
- for (char c = 'A'; c <= 'Z'; c++)
- yield return new string(c, 1);
- }
- public TimeDict()
- {
- GetSCValue();
- }
- public void GetSCValue()
- {
- var temp = Generate();
- StepTimeDict.Clear();
- foreach (var item in temp)
- {
- StepTimeDict[item] = SystemConfigProvider.Instance.GetValueByName($"PM1.RecipeEditParameter.StepTime.{item}");
- }
- CoolTimeDict.Clear();
- foreach (var item in temp)
- {
- CoolTimeDict[item] = SystemConfigProvider.Instance.GetValueByName($"PM1.RecipeEditParameter.CoolTime.{item}");
- }
- }
- }
- }
|