Subversion Repositories SmartDukaan

Rev

Rev 7716 | Go to most recent revision | 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>
        <script type="text/javascript" src="/js/jquery-1.4.2.js"></script>
        <script type="text/javascript" src="/js/jquery.validate.js"></script>        
                <title>
                        Warehouse Management::New Transfer-Lot
                </title>
        </head>
        <body>
                <script language="JavaScript">
            function disableEnterKey(e)
            {
                 var key;     
                 if(window.event)
                      key = window.event.keyCode; //IE
                 else
                      key = e.which; //firefox     
            
                 return (key != 13);
            }
                        function disableStringValues(e)
                        {
                                var a = [];
                var k = e.which;
            
                for (i = 46; i < 58; i++){
                        if(i == 47){
                                continue;
                        }
                        else{
                        a.push(i);
                        }
                }
            
                if (!(a.indexOf(k)>=0)){
                    e.preventDefault();
                        alert('Shipment Quantity in Numeric Value Only');
                }
                                
                                disableEnterKey(e)
                        }
        </script>
        <script>
            $(document).ready(function() {
                $("form#newPurchase").validate();
            });
        </script>
        <a href="/inventory">Go to Home page</a>
        <br />                
                <h2>New Lot Receive from Our Third Party</h2>
                <span style="color:red">
                        $action.getErrorMessage()
                </span>
                <form id = "newTransferReceive" name="newTransfer" action="/inventory/transfer-lot-receive" method="post">
                        <table>
                                <tr>
                                        <td>Origin Warehouse:</td>
                                        <td>
                        <select name="originWarehouseId" class="required"> 
                            #foreach($warehouse in $action.getOursThirdPartyWarehouses())
                                <option value="$warehouse.getId()" >$warehouse.getDisplayName()</option>
                            #end
                        </select>
                                </td>
                                </tr>
                                <tr>
                                        <td>Destination Warehouse:</td>
                                        <td>
                        <select name="destinationWarehouseId" class="required"> 
                            #foreach($warehouseId in $action.getAuthorizedWarehousesForCurrentUser())
                                <option value="$warehouseId" >$warehouseId</option>
                            #end
                        </select>
                                        </td>
                                </tr>
                                <tr>
                                        <td>Transfer Date:</td>
                                        <td>
                        <input type = 'text' name = "transferDate"/>
                                        </td>
                                </tr>
                                <tr><td>
                                <span>Shipment Reference: </span>
                                </td>
                                <td>
                        <input id="shipmentRef" name="shipmentRef" type="text" onkeypress="return disableEnterKey(event)"/>
                </td>
                                </tr>
                                <tr><td>
                        <span>Shipment Quantity: </span></td>
                                <td>
                        <input id="shipmentQuantity" name="shipmentQuantity" type="text" onkeypress="return disableStringValues(event)"/>
                                </td>
                        </tr>
                                <tr>
                                <td>
                                <span>Select Shipment Inventory Type: </span></td>
                                <td>
                        <select id="shipmentInventoryType" name="shipmentInventoryType">
                                <option value="GOOD" selected="selected">GOOD</option>
                                <option value="BAD">BAD</option>
                </select>
                                </td>
                                </tr>
                                <tr>
                                        <td colspan="2" align="right">
                                                <input name="submit" type="submit" value="Receive Items"/>
                                        </td>
                                </tr>
                        </table>
                </form>
    </body>
</html>