Esempio n. 1
0
        /// <summary>
        /// 读取所有运费限价数据
        /// </summary>
        /// <param name="strPlanType"></param>
        /// <param name="strStartCountry"></param>
        /// <param name="strStartProvince"></param>
        /// <param name="strStartCity"></param>
        /// <param name="strDestCountry"></param>
        /// <param name="strDestProvince"></param>
        /// <param name="strDestCity"></param>
        /// <param name="nOpStaffId"></param>
        /// <param name="strOpStaffName"></param>
        /// <param name="strErrText"></param>
        /// <returns></returns>
        public List<TransportLimitedPrice> LoadTransportLimitedPricesByConditions(string strPlanType, string strStartCountry, string strStartProvince, string strStartCity, string strDestCountry, string strDestProvince, string strDestCity, long nOpStaffId, string strOpStaffName, out string strErrText)
        {
            try
            {
                List<TransportLimitedPrice> dataResult = null;

                using (TransactionScope transScope = new TransactionScope(TransactionScopeOption.Required, new TimeSpan(2, 0, 0)))
                {
                    using (DDDAO dao = new DDDAO())
                    {
                        dataResult = dao.LoadTransportLimitedPricesByConditions(strPlanType, strStartCountry, strStartProvince, strStartCity, strDestCountry, strDestProvince, strDestCity, nOpStaffId, strOpStaffName, out strErrText);
                    }
                    transScope.Complete();
                }
                return dataResult;
            }
            catch (Exception e)
            {
                strErrText = e.Message;
                return null;
            }
        }