Esempio n. 1
0
        /// <summary>
        /// 读取合同冲帐记录数据
        /// </summary>
        /// <param name="nContractId"></param>
        /// <param name="nOpStaffId"></param>
        /// <param name="strOpStaffName"></param>
        /// <param name="strErrText"></param>
        /// <returns></returns>
        public List<ContractReverseDetail> LoadContractReverseDetails(long nContractId, 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.LoadContractReverseDetails(nContractId, nOpStaffId, strOpStaffName, out strErrText);
                    }
                    transScope.Complete();
                }
                return dataResult;
            }
            catch (Exception e)
            {
                strErrText = e.Message;
                return null;
            }
        }