Changes between Initial Version and Version 1 of Ticket #430, comment 3


Ignore:
Timestamp:
Dec 13, 2012, 10:26:11 AM (11 years ago)
Author:
olle

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #430, comment 3

    initial v1  
    22
    33 * Unlike the sample count report, the consent count report will at present not display data in smaller time units for the selected time period (e.g. by year, quarter, month, week), so there is no need for a "View type" input. Even so, the similarities in input between the sample count  and consent count report are now so great, as to warrant use of the same HTML code base. In order for this to be possible, the code in JSP script `samplereportgenerator.jsp` in `reggie/resources/` should be refactored, and elements not present in all cases, should be placed inside `<div id="..."></div>` tags, that can be used to hide and show the element as needed. Similarly, portions of text that should be replaced, should be placed inside `<text id="...">items</text>` tags.
    4  * JSP script `samplereportgenerator.jsp` in `reggie/resources/` should be updated to show the new consent table data, and insert a new table for items with unknown date. In order to simplify the latter, a new convenience funtion `addDataRowsToConsentTableUnknownDate(report, reportTable, numDecimals)` should be added.
     4 * JSP script `samplereportgenerator.jsp` in `reggie/resources/` should be updated to show the new consent table data, and insert a new table for items with unknown date. In order to simplify the latter, a new convenience function `addDataRowsToConsentTableUnknownDate(report, reportTable, numDecimals)` should be added.
    55 * Servlet class/file `SampleReportServlet` in `reggie/src/net/sf/basedb/reggie/servlet/` should be updated in private method `JSONObject createConsentCountReport(...)` to take start and end date as new arguments, and only update site counters if a consent with date lies in the selected time period.