Changeset 1335


Ignore:
Timestamp:
Apr 5, 2011, 3:34:00 PM (10 years ago)
Author:
Nicklas Nordborg
Message:

References #303: Automatic attachment of files to sample (Case) items

The functionality is more or less in place. Just need some more polishing up in the gui and error handling.

Location:
extensions/net.sf.basedb.reggie/trunk
Files:
2 added
3 edited

Legend:

Unmodified
Added
Removed
  • extensions/net.sf.basedb.reggie/trunk/META-INF/servlets.xml

    r1286 r1335  
    99    <servlet-class>net.sf.basedb.reggie.servlet.InstallServlet</servlet-class>
    1010  </servlet>
     11  <servlet>
     12    <servlet-name>ReferralForm</servlet-name>
     13    <servlet-class>net.sf.basedb.reggie.servlet.ReferralFormServlet</servlet-class>
     14  </servlet>
    1115
    1216</servlets>
  • extensions/net.sf.basedb.reggie/trunk/resources/index.jsp

    r1333 r1335  
    114114        <%
    115115      }
     116      if (isPatientCurator || isAdmin)
     117      {
     118        %>
     119        <dt>
     120          <table border="0" cellspacing="0" cellpadding="0">
     121          <tr>
     122            <td><base:icon image="file.gif" style="padding-right: 4px;"/></td>
     123            <td><a href="refform.jsp?ID=<%=ID%>">Referral form registration wizard</a></td>
     124          </tr>
     125          </table>
     126        </dt>
     127        <dd>
     128          <ul>
     129          <li>Link scanned referral forms to cases.
     130          </ul>
     131        </dd>
     132        <%
     133      }
    116134      %>
    117135      </dl>
  • extensions/net.sf.basedb.reggie/trunk/src/net/sf/basedb/reggie/dao/Case.java

    r1326 r1335  
    139139  }
    140140 
     141  public static Case getById(DbControl dc, int caseId)
     142  {
     143    Sample s = Sample.getById(dc, caseId);
     144    return s == null ? null : new Case(s);
     145  }
    141146 
    142147  private final String originalName;
Note: See TracChangeset for help on using the changeset viewer.