123456789101112131415161718192021222324252627282930313233343536373839404142 |
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- using WUtilitiesV01.Services;
- namespace Ips.Cfq.QfCard.Cli
- {
- public class SettingService:BaseSettingService<SettingModel>
- {
- public static SettingService Instance = new SettingService();
- [Obsolete]
- protected override string _configFileName
- {
- get { return "Config.BPC.xml"; }
- }
- }
- public class SettingModel
- {
- public string CardType { get; set; }
- public string Gain { get; set; }
- public string GetGain(string ch)
- {
- var arr = Gain.Split(';');
- foreach (var s in arr)
- {
- var arrch=s.Split('-');
- if (ch == arrch[0])
- {
- return arrch[1];
- }
- }
- return "0";
- }
- }
- }
|