Subversion Repositories SmartDukaan

Rev

Rev 6783 | 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>
            Supplier Inventory
        </title>
        <link rel="stylesheet" href="/inventory/css/common.css" type="text/css" />
    </head>
    <body>
        <div >
            <a href="/inventory">Go to Home page</a>
            <br />
                <label >Supplier Inventory</label>
            <br />
            #set($messages = $action.getActionErrors())
            #if($messages && $messages.size() != 0)
                #foreach($message in $messages)
                    $message <br/>
                #end
            #end
            <br />
            <table >
                <thead >
                    <tr >
                        <th >Supplier Warehouse</th>
                        <th >Format</th>
                        <th >Last successful inventory update</th>
                        <th ></th>
                </thead>
                <tbody >
                    #foreach($warehouseId in $action.getConfig().keySet())
                        <tr >
                            <td >$action.getWarehouse($warehouseId).getDisplayName()</td>
                            <td >$action.getFormat($warehouseId)</td>
                            <td >$action.getWarehouse($warehouseId).getVendorString()</td>
                            <td >
                                <form enctype="multipart/form-data" method="post" action="/inventory/supplier-inventory">
                                    <div >
                                        <input type="hidden" name="warehouseId" value="$warehouseId"/>
                                        <input type="radio" name="uploadVendorItemMapping" value="true"/>Item mapping
                                        <input type="radio" name="uploadVendorItemMapping" value="false" checked />Inventory
                                        <input type="file"  name="file"/>
                                        <input type="submit" value="Upload"/>
                                    </div>
                                </form>
                            </td>
                        </tr>
                    #end
                </tbody>
            </table>
        </div>
                
                <br/>
                <br/>
                <div id = "generic-vendor-inventory-uploader">
            <h3>Upload Inventory/Vendor-Item Mapping for Any Vendor in A-B format</h3>
                        <form id ="inventory-uploader" enctype="multipart/form-data" method="post" action="/inventory/supplier-inventory!genericUpload">
                <span>Select Vendor : </span>
                                <select name = "warehouseId">
                                        #foreach($warehouse in $action.getThirdPartyWarehouses())
                                                #if (!$warehouse.isIsAvailabilityMonitored())
                                                        <option value = $warehouse.getId()>$warehouse.getDisplayName()</option>
                                                #end
                                        #end
                </select>
                                <br />
                                <span>Upload Type :</span>
                <input type = "radio" name = "uploadVendorItemMapping" value = "true">Item Mapping</input>
                                <input type = "radio" name = "uploadVendorItemMapping" value = "false">Inventory</input>
                                <br />
                <input type = "file" name = "file"></input>
                                <br/>
                                <input type = "submit" value = "Upload">
            </form>
                        
        </div>
    </body>
</html>