/// <summary> /// 根据客户名称读取提货单位数据 /// </summary> /// <param name="strCustomerName"></param> /// <param name="nOpStaffId"></param> /// <param name="strOpStaffName"></param> /// <param name="strErrText"></param> /// <returns></returns> public List<Receiver> LoadCustomerReceivers(string strCustomerName, long nOpStaffId, string strOpStaffName, out string strErrText) { try { List<Receiver> dataResult = null; using (TransactionScope transScope = new TransactionScope(TransactionScopeOption.Required, new TimeSpan(2, 0, 0))) { using (DDDAO dao = new DDDAO()) { dataResult = dao.LoadCustomerReceivers(strCustomerName, nOpStaffId, strOpStaffName, out strErrText); } transScope.Complete(); } return dataResult; } catch (Exception e) { strErrText = e.Message; return null; } }