/// <summary> /// 初始化单位编号及行政编码对应字典 /// </summary> private void InitDicUnit() { IDataExchangeDataAccess Data = DataAccess.DataExchangeDataAccess(); List <TUnit> units = Data.GetAllUnitXZBM(); foreach (var item in units) { dicUnit.Add(item.UnitCode, item); } }