Subversion Repositories SmartDukaan

Rev

Rev 21624 | 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>
                <link rel="stylesheet" href="/inventory/css/common.css" type="text/css" />
                <link rel="stylesheet" href="/inventory/css/colorbox.css" type="text/css" />
        <script type="text/javascript" src="/inventory/js/jquery-1.4.2.js"></script>
                <script type="text/javascript" src="/inventory/js/jquery.colorbox-min.js"></script>
                <script type="text/javascript" src="/inventory/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);
            }
                        
                        function setFileName(){
                                $("#disablingDiv").show();
                                var fileN1 = $('#scanDataFile').val();
                                var fileName = fileN1.substring(fileN1.lastIndexOf('\\')+1);
                                $('#fileNameVal').val(fileName);
                                setTimeout(function(){
                                        $("#disablingDiv").hide();
                                        $("#success").html("");
                                        $("#error").html("Could not upload serialised items. Please check the sheet for errors")
                                }, 3000);
                                return true;
                        }
        </script>
        </head>
        <body >
                <div id="disablingDiv"></div>
                <a href="/inventory">Go to Home page</a>
        <br />  
                <h2>Scan Items in warehouse: $action.getWarehouse().getDisplayName()</h2>
                <span id="error" style="color:red">
                        $action.getErrorMessage()
                </span>
                <span id="success" style="color:blue">
                        $action.getSuccessMsg()
                </span>
                        <form id = 'bulkScanUploadForm' action="/inventory/bulk-purchase/$action.getId()" enctype="multipart/form-data" method="post" onsubmit="return setFileName()">
                                <span>Select Item Type:</span>
                <select name ="selectItemType" id ="selectItemType">
                                        <!--<option value="NON_SERIALIZED" >NON_SERIALIZED</option>-->
                                        <option value="SERIALIZED" >SERIALIZED</option>
                </select>
                                <div id="selectItem">
                <span>Select Item :</span>
                <select name ="bulkScanUploadItem" id ="bulkScanUploadItem">
                                        <option  selected="selected" value="-1">Select Item</option>
                                        #foreach ($item in $action.getItems())
                                                #if($item.getType().toString()=="SERIALIZED")
                                                <option value="$item.getId()" #if(!$action.isItemScannedIn($item.getId()))disabled#end>$action.getName($item)</option>
                                                #end
                                        #end
                                </select>
                </div>
                                <br>
                                <!--<span>Transfer on Scan-in to Warehouse </span>
                                <select name = "transferWarehouseId">
                                        #if($action.getTransferWarehouseId())
                                        #foreach($warehouse in $action.getAllowedDestinationWarehousesForTransfer($action.getWarehouseId()))
                                                #if($warehouse.getId()==$action.getTransferWarehouseId())
                                                        <option value = "$warehouse.getId()" selected>$warehouse.getDisplayName()</option>
                                                        #end
                                                #end
                                        #else
                                                <option value = "0" >Select...</option>
                                        #foreach($warehouse in $action.getAllowedDestinationWarehousesForTransfer($action.getWarehouseId()))
                                                <option value = "$warehouse.getId()">$warehouse.getDisplayName()</option>
                                                #end
                                        #end
                </select>
                                <br>-->
                                <span> Select File : </span>
                                <input type="file" id="scanDataFile" name="scanDataFile"/>
                                <br>
                                #if($action.getTransferLotId())
                                        <input type="hidden" name="transferLotId" value="$action.getTransferLotId()"/>
                                #end
                                <input type="hidden" name="warehouseId" value="$action.getWarehouseId()" />
                                <input type="hidden" name="poId" value="$action.getPoId()"/>
                                <input type="hidden" name="invoiceNumber" value="$action.getInvoiceNumber()"/>
                                <input type="hidden" name="freightCharges" value="$action.getFreightCharges()"/>
                                <input type="hidden" name="purchaseComments" value="$action.getPurchaseComments()"/>
                                <input type="hidden" id="fileNameVal" name="fileNameVal" value=""/>
                                <input type="hidden" name="_method" value="put"/>
                                <input type = "submit" value = "Submit" id = "bulkScanUploadSubmit"/>
                                <!-- <input id='cancelBulkScanUploadSubmit' type='button' value='Cancel'> -->
            </form>
                        <br>
                        <span style="color:blue">Please go through the Instructions First.</span>
                        <br>
                        <span id = "instructionsLink" class = "link"> Instructions</span> <br>
                                <div id = "instrctionsDiv" class = "hidden">
                    <p style="color:blue"> Only Text File is acceptable (.txt format)
                                        <br> First Use an excel sheet to create Data. 
                                        <br> There should be exact three columns in the excel sheet (Item Number, Serial Number, Quantity). 
                                        <br> Now insert data as per Column Headings, leave column blank in case of no data
                                        <br> Now copy all data to a text file and save it as Text File(.txt).
                                        <br> Now upload the txt file to scan in the item units.
                                        <br> One file is required as per one SKU.
                                        <br> Item is disabled in the Item List if unfulfilled quantity is zero.
                                        <br> If file format is other than txt then it will throw exception.
                                        <br> Please follow this procedure every time. 
                                        <br> Try to Remove Blank Lines to decrease scan time.
                                        </p>
                        </div><br>
                        <a href="/inventory/purchase/!create?poId=$action.getPoId()&warehouseId=$action.getWarehouseId()&invoiceNo=$action.getInvoiceNumber()&freightCharges=$action.getFreightCharges()">Back to Purchase</a>
                
    </body>
</html>