/// <summary> /// 读取待罚款的合同数据 /// </summary> /// <param name="strContractNo"></param> /// <param name="strOriginalContractNo"></param> /// <param name="strCreatorId"></param> /// <param name="nOpStaffId"></param> /// <param name="strOpStaffName"></param> /// <param name="strErrText"></param> /// <returns></returns> public List <Contract> LoadFineContractsByConditions(string strContractNo, string strOriginalContractNo, string strCreatorId, long nOpStaffId, string strOpStaffName, out string strErrText) { try { List <Contract> dataResult = null; strErrText = String.Empty; using (TransactionScope transScope = new TransactionScope(TransactionScopeOption.Required, new TimeSpan(2, 0, 0))) { using (ContractDAO dao = new ContractDAO()) { dataResult = dao.LoadFineContractsByConditions(strContractNo, strOriginalContractNo, strCreatorId, nOpStaffId, strOpStaffName, out strErrText); } transScope.Complete(); } return(dataResult); } catch (Exception e) { strErrText = e.Message; return(null); } }