using PTMedicalInsurance.Common; using PTMedicalInsurance.Variables; using System; using System.Collections.Generic; using System.Linq; using System.Reflection; using System.Text; using System.Threading.Tasks; namespace PTMedicalInsurance.Entity.Local { /// /// 读卡初始化参数 /// public class ReadCardInitInfo { public string IP { set; get; } public string PORT { set; get; } public string TIMEOUT { set; get; } public string LOG_PATH { set; get; } public string EC_URL { set; get; } public string DRIVER { set; get; } public string API_NAME { set; get; } public string API_VERSION { set; get; } public string ACCESS_KEY { set; get; } public string SECRETKEY { set; get; } public string ORG_ID { set; get; } public string AREA_CODE { set; get; } public string EXT { set; get; } public ReadCardInitInfo() { string section = "CardParams"; IniFile iniFile = new IniFile(Global.curEvt.path + @"\INSUConfigure.ini"); PropertyInfo[] pi = this.GetType().GetProperties(); foreach(PropertyInfo p in pi) { string value = iniFile.ReadValue(section, p.Name); p.SetValue(this, value); } } } }