Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <script>
- $(document).ready(function () {
- $("#refresh").on("click", function () {
- $("#center").load("center.html");
- });
- });
- </script>
- <div id="refresh" align="center">
- <% ArrayList<PurchaseOrder> PurchaseOrder = (ArrayList<PurchaseOrder>) session.getAttribute("poList");
- %>
- <select name="selected" >
- <%
- for (int i = 0; i < PurchaseOrder.size(); i++) {
- %>
- <option value="<%=PurchaseOrder.get(i).getPoNumber()%>"> <%=PurchaseOrder.get(i).getPoNumber()%></option>
- <%
- }
- %>
- </select>
- </div>
- <form method="POST" action="ConsumptionReportServlet">
- <div align="center">
- <%
- int y = Integer.parseInt(request.getParameter("value"));
- %>
- <table id="dataTable" class="table table-hover" style= "width:800px">
- <tr>
- <th class = "edits">Purchase Order</th>
- <th class = "edits">Item Description</th>
- <th class = "edits">Quantity</th>
- <th class = "edits">Unit Measurement</th>
- <th class = "edits">Unit Price</th>
- <th class = "edits">Vat</th>
- <th class = "edits">Date Made</th>
- <th class = "edits">Prepared By</th>
- <th class = "edits">Approved By</th>
- </tr>
- <tr>
- <td><%=PurchaseOrder.get(y).getPoNumber()%></td>
- <td><%= PurchaseOrder.get(y).getItemDescription()%></td>
- <td><%= PurchaseOrder.get(y).getQty()%></td>
- <td><%= PurchaseOrder.get(y).getUnitMeasurement()%></td>
- <td><%= PurchaseOrder.get(y).getUnitprice()%></td>
- <td><%= PurchaseOrder.get(y).getVat()%></td>
- <td><%= PurchaseOrder.get(y).getDateMade()%></td>
- <td><%= PurchaseOrder.get(y).getPreparedBy()%></td>
- </tr>
- </table>....
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement