/// <summary> /// 读取指定国家省份自定义数据 /// </summary> /// <param name="strCountryName">国家名称</param> /// <param name="nOpStaffId">操作员工编码</param> /// <param name="strOpStaffName">操作员工姓名</param> /// <param name="strErrText">出错信息</param> /// <returns></returns> public List<Province> LoadProvincesByCountry(string strCountryName, long nOpStaffId, string strOpStaffName, out string strErrText) { try { List<Province> dataResult = null; strErrText = String.Empty; using (TransactionScope transScope = new TransactionScope(TransactionScopeOption.Required, new TimeSpan(2, 0, 0))) { using (DDDAO dao = new DDDAO()) { dataResult = dao.LoadProvincesByCountry(strCountryName, nOpStaffId, strOpStaffName, out strErrText); } transScope.Complete(); } return dataResult; } catch (Exception e) { strErrText = e.Message; return null; } }