/// <summary> /// 读取指定发货计划的客户结算价格数据 /// </summary> /// <param name="nPlanId"></param> /// <param name="strCarType"></param> /// <param name="nOpStaffId"></param> /// <param name="strOpStaffName"></param> /// <param name="strErrText"></param> /// <returns></returns> public CustomerTransportPrice LoadCustomerTransportPriceByPlanId(long nPlanId, string strCarType, long nOpStaffId, string strOpStaffName, out string strErrText) { try { CustomerTransportPrice dataResult = null; strErrText = String.Empty; using (TransactionScope transScope = new TransactionScope(TransactionScopeOption.Required, new TimeSpan(2, 0, 0))) { using (CustomerDAO dao = new CustomerDAO()) { dataResult = dao.LoadCustomerTransportPriceByPlanId(nPlanId, strCarType, nOpStaffId, strOpStaffName, out strErrText); } transScope.Complete(); } return dataResult; } catch (Exception e) { strErrText = e.Message; return null; } }