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 FlowSettingDict
- {
- public Dictionary<string, Dictionary<string, string>> FlowSettings { get; set; } = new Dictionary<string, Dictionary<string, string>>();
- IEnumerable<string> Generate()
- {
- for (char c = 'A'; c <= 'Z'; c++)
- yield return new string(c, 1);
- }
- public FlowSettingDict()
- {
- GetSCValue();
- }
- public void GetSCValue()
- {
- FlowSettings.Clear();
- var tempConfigs = SystemConfigProvider.Instance.GetValuesByNode($"PM1.RecipeEditParameter.FlowSetting");
- var temp = Generate();
- foreach (var item in tempConfigs)
- {
- Dictionary<string, string> mfcSetting = new Dictionary<string, string>();
- foreach (var subitem in temp)
- {
- mfcSetting[subitem] = SystemConfigProvider.Instance.GetValueByName($"PM1.RecipeEditParameter.FlowSetting.{item}.{subitem}");
- }
- FlowSettings[item] = mfcSetting;
- }
- }
- }
- }
|