Subversion Repositories SmartDukaan

Rev

Rev 6388 | Blame | Compare with Previous | Last modification | View Log | RSS feed

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <title>
            Scan Records Retrieval
        </title>
                <script src="/inventory/js/jquery-1.4.2.js" type="text/javascript"></script>
                <script src="/inventory/js/jquery.dataTables.min.js" type="text/javascript"></script>
                <script type="text/javascript" src="/inventory/js/TableTools.min.js"></script>
                <link rel="stylesheet" href="/inventory/css/TableTools.css" type="text/css" />
        <link rel="stylesheet" href="/inventory/css/common.css" type="text/css" />
    </head>
    <body>
                <div id="server-messages">
                        #set($messages = $action.getActionErrors())
            #if($messages && $messages.size() != 0)
                #foreach($message in $messages)
                    $message <br/>
                #end
            #else
                        #set($messages = $action.getActionMessages())
                #if($messages && $messages.size() != 0)
                    #foreach($message in $messages)
                        $message <br />
                    #end
                                #end
                        #end
                </div>
                <a href="/inventory">Go to Home page</a>
        <br />
                
                <div id = "search-filters-div">
                        <form id = "search-filters-form" action = "scan-record">
                <input type = "radio" name = "filterTypeSelector" value = "itemId">ItemId</input>
                        <input type = "radio" name = "filterTypeSelector" value = "serialNumber">Serial Number</input>
                        <br />
                <span>From Date : </span>
                <input type = "date" name = "fromDate"></input>
                        <span>To Date : </span>
                                <input type = "date" name = "toDate"></input>
                                <br />
                                <span>ItemId/Serial Number</span>
                <input type = "text" name = "searchNumber"></input>
                <button type = "submit">Submit</input> 
            </form>
        </div>  
                <br />
        <div id = "scan-records">
                <table id = "scan-records-table">
                        <thead>
                        <tr>
                                <th>ScanId</th>
                                <th>InventoryItemId</th>
                                <th>Type</th>
                                <th>Scan Time</th>
                                <th>Warehouse Id</th>
                                <th>OrderId</th>
                                <th>Quantity</th>
                </tr>
            </thead>
                        <tbody>
                        #foreach($scan in $action.getScans())
                        <tr>
                    <td>$scan.getId()</td>
                                <td>$scan.getInventoryItemId()</td>
                                <td>$scan.getType()</td>
                                <td>$action.getDateTime($scan.getScannedAt())</td>
                                <td>$scan.getWarehouseId()</td>
                                <td>$scan.getOrderId()</td>
                                <td>$scan.getQuantity()</td>
                </tr>
                        #end
                        </tbody>
                </table>
                </div>
                <script>
                $(function() {
                scanTable = $('#scan-records-table').dataTable({
                                "sPaginationType": "full_numbers",
                "aaSorting" : [ [ 4, 'asc' ] ],
                "bAutoWidth": true,
                "iDisplayLength" : 25,
                "sDom" : 'T<"clear">lfrtip',
                "oTableTools" : {
                    "sSwfPath" : "swf/copy_cvs_xls_pdf.swf"
                },
            });
                });
        </script>
    </body>
</html>