/// <summary> /// 读取送货单所有货物数据 /// </summary> /// <param name="nDeliverBillId"></param> /// <param name="nOpStaffId"></param> /// <param name="strOpStaffName"></param> /// <param name="strErrText"></param> /// <returns></returns> public List <DeliverBillGoods> LoadDeliverBillAllGoods(long nDeliverBillId, long nOpStaffId, string strOpStaffName, out string strErrText) { try { List <DeliverBillGoods> dataResult = null; strErrText = String.Empty; using (TransactionScope transScope = new TransactionScope(TransactionScopeOption.Required, new TimeSpan(2, 0, 0))) { using (DeliverDAO dao = new DeliverDAO()) { dataResult = dao.LoadDeliverBillAllGoods(nDeliverBillId, nOpStaffId, strOpStaffName, out strErrText); } transScope.Complete(); } return(dataResult); } catch (Exception e) { strErrText = e.Message; return(null); } }