/// <summary> /// 根据综合条件读取送货单数据 /// </summary> /// <param name="strStartTime"></param> /// <param name="strEndTime"></param> /// <param name="strDeliverBillNo"></param> /// <param name="strCustomerName"></param> /// <param name="strPayerName"></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="strCarNo"></param> /// <param name="strDeliveryNo"></param> /// <param name="strOrganId"></param> /// <param name="strPrintState"></param> /// <param name="nOpStaffId"></param> /// <param name="strOpStaffName"></param> /// <param name="strErrText"></param> /// <returns></returns> public List <DeliverBill> LoadDeliverBillsByConditions(string strStartTime, string strEndTime, string strDeliverBillNo, string strCustomerName, string strPayerName, string strStartCountry, string strStartProvince, string strStartCity, string strDestCountry, string strDestProvince, string strDestCity, string strCarNo, string strDeliveryNo, string strOrganId, string strPrintState, 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.LoadDeliverBillsByConditions(strStartTime, strEndTime, strDeliverBillNo, strCustomerName, strPayerName, strStartCountry, strStartProvince, strStartCity, strDestCountry, strDestProvince, strDestCity, strCarNo, strDeliveryNo, strOrganId, strPrintState, nOpStaffId, strOpStaffName, out strErrText); } transScope.Complete(); } return(dataResult); } catch (Exception e) { strErrText = e.Message; return(null); } }