123456789101112131415161718192021222324252627282930313233343536373839404142 |
- 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
- {
- class APCSettingDict
- {
- public Dictionary<string, string> PressureDict { get; set; } = new Dictionary<string, string>();
- public Dictionary<string, string> PositionDict { get; set; } = new Dictionary<string, string>();
- IEnumerable<string> Generate()
- {
- for (char c = 'A'; c <= 'Z'; c++)
- yield return new string(c, 1);
- }
- public APCSettingDict()
- {
- GetSCValue();
- }
- public void GetSCValue()
- {
- var temp = Generate();
- foreach (var item in temp)
- {
- PressureDict[item] = SystemConfigProvider.Instance.GetValueByName($"PM1.RecipeEditParameter.APCSetting.Pressure.{item}");
- }
- foreach (var item in temp)
- {
- PositionDict[item] = SystemConfigProvider.Instance.GetValueByName($"PM1.RecipeEditParameter.APCSetting.Position.{item}");
- }
- }
- }
- }
|