Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

This method returns a list of production report summaries that meet the query conditions. These summaries do not include full production report record data. To get a full production report use the getProductionReport() web service.
This webservice method, in conjunction with findUserLandingReports(), is used by the eLandings Web page to allow users to query the database for production reports with given criteria.

<IMAGE>Image Added

The production report summaries found in the search are displayed at the top of the page

<IMAGE>Image Added

The findUserProductionReports() takes several arguments. Arguments left empty are not included in the database query. The arguments are:
1. String Userid – i.e ¿amarx¿
2. String password – i.e. ¿A_marx¿
3. String schemaVersionNumber – i.e. ¿2.1¿
4. String federalProcessorCode – i.e. ¿¿ or ¿¿
5. String adfgVesselNumber – i.e. ¿41444¿ or ¿¿
6. String portOfLanding – i.e. ¿JNU¿ or ¿¿
7. String gearCode – i.e. ¿3¿ or ¿¿
8. String processorCode – i.e. ¿F1234¿ or ¿¿
9. String managementProgram – i.e. ¿¿ or ¿¿
10. String reportType – i.e. ¿G¿ or ¿¿
11. Calendar fromDate – i.e. Calendar Object
12. Calendar toDate – i.e. Calandar Object

In the web service client we might auto generate a data structure by providing the web service url. In eLandings we use Java – JAX-WS and generated a structure called ReportManager.
ReportManagement ws;
¿
¿
String xml = ws. findUserProductionReports(userid, password, schemaVersionNumber, federalProcessorCode, adfgVesselNumber, portOfLanding, gearCode, processorCode, managementProgram, reportType, fromDate, toDate);
For example, if we wanted to search for all production reports with a date of landing between 01/10/2010 and 01/20/2010, we would run:

<IMAGE>Image Added

This query request would run code similar to:
SimpleDateFormat slashFmt = new SimpleDateFormat("MM/dd/yyyy");
Date calendarStartDate = slashFmt.parse(¿01/10/2010¿)
Calendar startDate = new GregorianCalendar();
startDate.setTimeInMillis(calendarStartDate.getTime());

...

The eLandings web page would display this information as:

<IMAGE>Image Added<IMAGE>

Image Added

If there was an error, you might get back a string containing an error message.
For example, if we were to ask for production reports with gear = 01 (purse seine) for the period between 1/10/2010 to 1/20/2010, the query will find no results. The web service will let us know that it found now results, by returing an error.

<IMAGE>Image Added

String xml = ws. findUserProductionReports (¿amarx¿, ¿A_marx¿, ¿2.1¿, ¿¿, ¿¿, ¿¿, ¿¿, ¿¿, ¿1¿, ¿¿, ¿¿, ¿¿, startDate, endDate);

...

The eLandings web page would display this to the user as:

<IMAGE>Image Added<IMAGE>

Image Added