Subversion Repositories SmartDukaan

Rev

Rev 4754 | Rev 5361 | 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>
                <title>
                        Warehouse Management::Scan In
                </title>
        <script type="text/javascript" src="/Support/js/jquery-1.4.2.js"></script>
        <script type="text/javascript" src="/Support/js/purchase.js"></script>
                <script language="JavaScript">

            function disableEnterKey(e)
            {
                 var key;     
                 if(window.event)
                      key = window.event.keyCode; //IE
                 else
                      key = e.which; //firefox     
            
                 return (key != 13);
            }
        </script>
        </head>
        <body>
        <a href="/inventory">Go to Home page</a>
        <br />        
        
                <h2>Scan In Item</h2>
                <span style="color:red">
                        $action.getErrorMessage()
                </span>
                
                <form id="scanItem" name="newPurchase" action="/inventory/purchase/$action.getId()" method="post">
                        <input type="hidden" name="_method" value="put"/>
                        <table>
                                <tr>
                                        <td>Item No:</td>
                                        <td>
                                                <input type="text" name="itemNo" onkeypress="return disableEnterKey(event)"/>
                                        </td>
                    <a href="#" id="createItemNumberMapping">Create item number mapping</a>
                                </tr>
                #if ($action.getItems())
                    <tr >
                        <td >
                            <label >Choose item: </label>
                        </td>
                        <td >
                            <select name="itemId">
                                #foreach ($item in $action.getItems())
                                    <option value="$item.getId()">$action.getName($item)</option>
                                #end
                            </select>
                        </td>
                    </tr>
                #end
                                <tr>
                                        <td>IMEI No:</td>
                                        <td>
                                                <input type="text" name="imeiNo" onkeypress="return disableEnterKey(event)"/>
                                        </td>
                                </tr>
                                <tr>
                                        <td align="left">
                                                <a href="/inventory/purchase/$action.getId()?_method=delete">Close Purchase</a>                                         
                                        </td>
                                        <td align="right" >
                                                <input name="submit" type="submit" value="Scan In"/>
                                        </td>
                                </tr>
                        </table>
                </form>
        <form id="createItemNumberMapping" method="post" action="/inventory/purchase!createItemNumberMapping?id=$action.getId()" >
            <table >
                <tr >
                    <td >Item No:</td>
                    <td >
                        <input type="text" name="itemNo" onkeypress="return disableEnterKey(event)"/>
                    </td>
                </tr>
                <tr >
                    <td >Item Id:</td>
                    <td >
                        <input type="text" name="itemId"/>
                    </td>
                </tr>
                <tr >
                    <td>
                        <input type="submit" value="Create mapping"/>
                    </td>
                    <td >
                        <input id="cancelButton" type="button" value="Cancel"/>
                    </td>
                </tr>
            </table>
        </form>
    </body>
</html>