/// <summary> /// 读取指定冲帐记录编码的冲帐记录明细数据 /// </summary> /// <param name="nReverseId"></param> /// <param name="nOpStaffId"></param> /// <param name="strOpStaffName"></param> /// <param name="strErrText"></param> /// <returns></returns> public List<ContractReverseDetail> LoadContractReverseDetailsByReverseId(long nReverseId, long nOpStaffId, string strOpStaffName, out string strErrText) { try { List<ContractReverseDetail> dataResult = null; strErrText = String.Empty; using (TransactionScope transScope = new TransactionScope(TransactionScopeOption.Required, new TimeSpan(2, 0, 0))) { using (ContractDAO dao = new ContractDAO()) { dataResult = dao.LoadContractReverseDetailsByReverseId(nReverseId, nOpStaffId, strOpStaffName, out strErrText); } transScope.Complete(); } return dataResult; } catch (Exception e) { strErrText = e.Message; return null; } }