/// <summary> /// 根据条件读取待接收回单送货单数据 /// </summary> /// <param name="strStartTime"></param> /// <param name="strEndTime"></param> /// <param name="strCustomerName"></param> /// <param name="strCarNo"></param> /// <param name="strDeliveryNo"></param> /// <param name="nOpStaffId"></param> /// <param name="strOpStaffName"></param> /// <param name="strErrText"></param> /// <returns></returns> public List<DeliverBill> LoadReceiptDeliverBillsByConditions(string strStartTime, string strEndTime, string strCustomerName, string strCarNo, string strDeliveryNo, long nOpStaffId, string strOpStaffName, out string strErrText) { try { List<DeliverBill> dataResult = null; strErrText = String.Empty; using (TransactionScope transScope = new TransactionScope(TransactionScopeOption.Required, new TimeSpan(2, 0, 0))) { using (DeliverDAO dao = new DeliverDAO()) { dataResult = dao.LoadReceiptDeliverBillsByConditions(strStartTime, strEndTime, strCustomerName, strCarNo, strDeliveryNo, nOpStaffId, strOpStaffName, out strErrText); } transScope.Complete(); } return dataResult; } catch (Exception e) { strErrText = e.Message; return null; } }