extensions/net.sf.basedb.reggie/trunk/resources/outtake/delivery_export.jsp

Code
Comments
Other
Rev Date Author Line
4173 24 Oct 16 nicklas 1 <%@ page
4173 24 Oct 16 nicklas 2   pageEncoding="UTF-8"
4173 24 Oct 16 nicklas 3   session="false"
4173 24 Oct 16 nicklas 4   import="net.sf.basedb.core.User"
4173 24 Oct 16 nicklas 5   import="net.sf.basedb.core.DbControl"
4173 24 Oct 16 nicklas 6   import="net.sf.basedb.core.SessionControl"
4173 24 Oct 16 nicklas 7   import="net.sf.basedb.core.Application"
4173 24 Oct 16 nicklas 8   import="net.sf.basedb.util.formatter.DateFormatter"
4173 24 Oct 16 nicklas 9   import="net.sf.basedb.util.formatter.Formatter"
4173 24 Oct 16 nicklas 10   import="net.sf.basedb.clients.web.Base"  
4173 24 Oct 16 nicklas 11   import="net.sf.basedb.clients.web.extensions.ExtensionsControl"
4173 24 Oct 16 nicklas 12   import="java.util.Date"
4173 24 Oct 16 nicklas 13 %>
4173 24 Oct 16 nicklas 14 <%@ taglib prefix="base" uri="/WEB-INF/base.tld" %>
4173 24 Oct 16 nicklas 15 <%@ taglib prefix="p" uri="/WEB-INF/path.tld" %>
4173 24 Oct 16 nicklas 16 <%
4173 24 Oct 16 nicklas 17 final SessionControl sc = Base.getExistingSessionControl(request, "net.sf.basedb.reggie", true);
4173 24 Oct 16 nicklas 18 final String ID = sc.getId();
4173 24 Oct 16 nicklas 19 final float scale = Base.getScale(sc);
4173 24 Oct 16 nicklas 20 final String home = ExtensionsControl.getHomeUrl("net.sf.basedb.reggie");
4173 24 Oct 16 nicklas 21 final Formatter dateFormat = new DateFormatter("yyyyMMdd");
4173 24 Oct 16 nicklas 22 DbControl dc = null;
4173 24 Oct 16 nicklas 23 try
4173 24 Oct 16 nicklas 24 {
4173 24 Oct 16 nicklas 25   dc = sc.newDbControl();
4173 24 Oct 16 nicklas 26   final User user = User.getById(dc, sc.getLoggedInUserId());
4173 24 Oct 16 nicklas 27 %>
4173 24 Oct 16 nicklas 28 <base:page type="default" >
4173 24 Oct 16 nicklas 29 <base:head 
4173 24 Oct 16 nicklas 30   scripts="~../reggie-2.js,~delivery_export.js" 
4173 24 Oct 16 nicklas 31   styles="path.css,~../css/reggie-2.css"
4173 24 Oct 16 nicklas 32 />
4173 24 Oct 16 nicklas 33 <base:body>
4173 24 Oct 16 nicklas 34
4173 24 Oct 16 nicklas 35   <p:path><p:pathelement 
4173 24 Oct 16 nicklas 36     title="Reggie" href="<%="../index.jsp?ID="+ID%>" 
4173 24 Oct 16 nicklas 37     /><p:pathelement title="Export delivery data file" 
4173 24 Oct 16 nicklas 38     /></p:path>
4173 24 Oct 16 nicklas 39
4173 24 Oct 16 nicklas 40   <div class="content">
4173 24 Oct 16 nicklas 41
4173 24 Oct 16 nicklas 42   <form name="reggie" id="wizard" class="wizard">
4173 24 Oct 16 nicklas 43   <input type="hidden" name="ID" value="<%=ID%>">
4173 24 Oct 16 nicklas 44   
4173 24 Oct 16 nicklas 45   <div class="step" id="step-1">
4173 24 Oct 16 nicklas 46     <div class="step-no">1</div>
4173 24 Oct 16 nicklas 47     <div class="step-title">Select an outtake work list</div>
4173 24 Oct 16 nicklas 48     <div class="step-content">
4173 24 Oct 16 nicklas 49
4173 24 Oct 16 nicklas 50       <table class="step-form">
4173 24 Oct 16 nicklas 51       <tr>
4173 24 Oct 16 nicklas 52         <td class="prompt">Outtake work list</td>
4173 24 Oct 16 nicklas 53         <td class="input">
4173 24 Oct 16 nicklas 54           <select name="workList" id="workList" class="required"></select>
4173 24 Oct 16 nicklas 55         </td>
4173 24 Oct 16 nicklas 56         <td class="status" id="workList.status"></td>
4173 24 Oct 16 nicklas 57         <td class="help">
4173 24 Oct 16 nicklas 58           <span id="workList.message" class="message"></span>
4173 24 Oct 16 nicklas 59           Select an outtake work list that is ready for delivery.
4173 24 Oct 16 nicklas 60         </td>
4173 24 Oct 16 nicklas 61       </tr>
4173 24 Oct 16 nicklas 62       <tr>
4173 24 Oct 16 nicklas 63         <td class="prompt">Use External ID</td>
4173 24 Oct 16 nicklas 64         <td class="input">
4173 24 Oct 16 nicklas 65           <label><input type="checkbox" checked name="useExternalId" id="useExternalId" value="1">
4173 24 Oct 16 nicklas 66           Yes</label>
4173 24 Oct 16 nicklas 67         </td>
4173 24 Oct 16 nicklas 68         <td class="status" id="useExternalId.status"></td>
4173 24 Oct 16 nicklas 69         <td class="help">
4173 24 Oct 16 nicklas 70           <span id="useExternalId.message" class="message"></span>
4173 24 Oct 16 nicklas 71           If checked, the file will use the External ID instead of the SCAN-B ID.
4173 24 Oct 16 nicklas 72         </td>
4173 24 Oct 16 nicklas 73       </tr>
4173 24 Oct 16 nicklas 74       <tr>
4173 24 Oct 16 nicklas 75         <td class="prompt">Delivered date</td>
4173 24 Oct 16 nicklas 76         <td class="input">
4173 24 Oct 16 nicklas 77           <input type="text" name="deliveredDate" id="deliveredDate"
4173 24 Oct 16 nicklas 78             value="<%=dateFormat.format(new Date()) %>" 
4173 24 Oct 16 nicklas 79             class="required auto-init" data-auto-init="focus-on-enter" data-next-focus="bloody.0"
4173 24 Oct 16 nicklas 80             style="width: 8em;" maxlength="10">
4173 24 Oct 16 nicklas 81             <base:icon 
4173 24 Oct 16 nicklas 82               id="deliveredDateCalendar"
4173 24 Oct 16 nicklas 83               subclass="auto-init"
4173 24 Oct 16 nicklas 84               data-auto-init="calendar"
4173 24 Oct 16 nicklas 85               data-textarea-id="deliveredDate"
4173 24 Oct 16 nicklas 86               data-date-format="yyyyMMdd"
4173 24 Oct 16 nicklas 87               data-title="Delivered date"
4173 24 Oct 16 nicklas 88               image="calendar.png" 
4173 24 Oct 16 nicklas 89               tooltip="Select a date from a calendar" 
4173 24 Oct 16 nicklas 90               tabindex="-1"
4173 24 Oct 16 nicklas 91             />
4173 24 Oct 16 nicklas 92         </td>
4173 24 Oct 16 nicklas 93         <td class="status" id="deliveredDate.status"></td>
4173 24 Oct 16 nicklas 94         <td class="help">
4173 24 Oct 16 nicklas 95           <span id="deliveredDate.message" class="message"></span>
4173 24 Oct 16 nicklas 96           (YYYYMMDD or MMDD) The date when the outtake was delivered.
4173 24 Oct 16 nicklas 97         </td>
4173 24 Oct 16 nicklas 98       </tr>
4173 24 Oct 16 nicklas 99       <tr class="align-top">
4173 24 Oct 16 nicklas 100         <td class="prompt">Comments</td>
4173 24 Oct 16 nicklas 101         <td class="input"><textarea name="comments" id="comments" rows="6"></textarea></td>
4173 24 Oct 16 nicklas 102         <td class="status" id="comments.status"></td>
4173 24 Oct 16 nicklas 103         <td class="help">
4173 24 Oct 16 nicklas 104           <span id="comments.message" class="message"></span>
4173 24 Oct 16 nicklas 105           Comments about the outtake.
4173 24 Oct 16 nicklas 106         </td>
4173 24 Oct 16 nicklas 107       </tr>
4173 24 Oct 16 nicklas 108       </table>
4173 24 Oct 16 nicklas 109     </div>
4173 24 Oct 16 nicklas 110   </div>
4173 24 Oct 16 nicklas 111   
4173 24 Oct 16 nicklas 112   <div id="wizard-status"></div>
4173 24 Oct 16 nicklas 113   
4173 24 Oct 16 nicklas 114   <table class="navigation" id="navigation">
4173 24 Oct 16 nicklas 115   <tr>
4173 24 Oct 16 nicklas 116     <td><base:button id="gocancel" title="Cancel" /></td>
4173 24 Oct 16 nicklas 117     <td><base:button id="godownload" title="Download" image="<%=home+"/images/file.png"%>" /></td>
4173 24 Oct 16 nicklas 118     <td><base:button id="goregister" title="Register" image="<%=home+"/images/import.png"%>"  /></td>
4173 24 Oct 16 nicklas 119     <td><base:button id="gorestart" title="Restart" image="<%=home+"/images/goback.png"%>" /></td>
4173 24 Oct 16 nicklas 120     <td id="gonext-message" class="message"></td>
4173 24 Oct 16 nicklas 121   </tr>
4173 24 Oct 16 nicklas 122   </table>
4173 24 Oct 16 nicklas 123   </form>
4173 24 Oct 16 nicklas 124   </div>
4173 24 Oct 16 nicklas 125   
4173 24 Oct 16 nicklas 126 </base:body>
4173 24 Oct 16 nicklas 127 </base:page>
4173 24 Oct 16 nicklas 128 <%
4173 24 Oct 16 nicklas 129 }
4173 24 Oct 16 nicklas 130 finally
4173 24 Oct 16 nicklas 131 {
4173 24 Oct 16 nicklas 132   if (dc != null) dc.close();
4173 24 Oct 16 nicklas 133 }
4173 24 Oct 16 nicklas 134 %>