| Line 20... |
Line 20... |
| 20 |
|
20 |
|
| 21 |
return (key != 13);
|
21 |
return (key != 13);
|
| 22 |
}
|
22 |
}
|
| 23 |
|
23 |
|
| 24 |
function setFileName(){
|
24 |
function setFileName(){
|
| - |
|
25 |
$("#disablingDiv").show();
|
| 25 |
var fileN1 = $('#scanDataFile').val();
|
26 |
var fileN1 = $('#scanDataFile').val();
|
| 26 |
var fileName = fileN1.substring(fileN1.lastIndexOf('\\')+1);
|
27 |
var fileName = fileN1.substring(fileN1.lastIndexOf('\\')+1);
|
| 27 |
$('#fileNameVal').val(fileName);
|
28 |
$('#fileNameVal').val(fileName);
|
| - |
|
29 |
setTimeout(function(){$("#disablingDiv").hide();$("#error").html("Could not upload serialised items. Please check the sheet for errors")}, 3000);
|
| 28 |
return true;
|
30 |
return true;
|
| 29 |
}
|
31 |
}
|
| 30 |
</script>
|
32 |
</script>
|
| 31 |
</head>
|
33 |
</head>
|
| 32 |
<body >
|
34 |
<body >
|
| - |
|
35 |
<div id="disablingDiv"></div>
|
| 33 |
<a href="/inventory">Go to Home page</a>
|
36 |
<a href="/inventory">Go to Home page</a>
|
| 34 |
<br />
|
37 |
<br />
|
| 35 |
<h2>Scan Items in warehouse: $action.getWarehouse().getDisplayName()</h2>
|
38 |
<h2>Scan Items in warehouse: $action.getWarehouse().getDisplayName()</h2>
|
| 36 |
<span style="color:red">
|
39 |
<span id="error" style="color:red">
|
| 37 |
$action.getErrorMessage()
|
40 |
$action.getErrorMessage()
|
| 38 |
</span>
|
41 |
</span>
|
| 39 |
<span style="color:blue">
|
42 |
<span style="color:blue">
|
| 40 |
$action.getSuccessMsg()
|
43 |
$action.getSuccessMsg()
|
| 41 |
</span>
|
44 |
</span>
|
| 42 |
<form id = 'bulkScanUploadForm' action="/inventory/bulk-purchase/$action.getId()" enctype="multipart/form-data" method="post" onsubmit="return setFileName()">
|
45 |
<form id = 'bulkScanUploadForm' action="/inventory/bulk-purchase/$action.getId()" enctype="multipart/form-data" method="post" onsubmit="return setFileName()">
|
| 43 |
<span>Select Item Type:</span>
|
46 |
<span>Select Item Type:</span>
|
| 44 |
<select name ="selectItemType" id ="selectItemType">
|
47 |
<select name ="selectItemType" id ="selectItemType">
|
| 45 |
<option value="NON_SERIALIZED" >NON_SERIALIZED</option>
|
48 |
<!--<option value="NON_SERIALIZED" >NON_SERIALIZED</option>-->
|
| 46 |
<option value="SERIALIZED" >SERIALIZED</option>
|
49 |
<option value="SERIALIZED" >SERIALIZED</option>
|
| 47 |
</select>
|
50 |
</select>
|
| 48 |
<div id="selectItem" hidden>
|
51 |
<div id="selectItem">
|
| 49 |
<span>Select Item :</span>
|
52 |
<span>Select Item :</span>
|
| 50 |
<select name ="bulkScanUploadItem" id ="bulkScanUploadItem">
|
53 |
<select name ="bulkScanUploadItem" id ="bulkScanUploadItem">
|
| 51 |
<option selected="selected" value="-1">Select Item</option>
|
54 |
<option selected="selected" value="-1">Select Item</option>
|
| 52 |
#foreach ($item in $action.getItems())
|
55 |
#foreach ($item in $action.getItems())
|
| 53 |
#if($item.getType().toString()=="SERIALIZED")
|
56 |
#if($item.getType().toString()=="SERIALIZED")
|
| 54 |
#if($action.isItemScannedIn($item.getId()))
|
- |
|
| 55 |
<option value="$item.getId()" >$action.getName($item)</option>
|
- |
|
| 56 |
#else
|
- |
|
| 57 |
<option value="$item.getId()" disabled="disabled" >$action.getName($item)</option>
|
57 |
<option value="$item.getId()" #if(!$action.isItemScannedIn($item.getId()))disabled#end>$action.getName($item)</option>
|
| 58 |
#end
|
- |
|
| 59 |
#end
|
58 |
#end
|
| 60 |
#end
|
59 |
#end
|
| 61 |
</select>
|
60 |
</select>
|
| 62 |
</div>
|
61 |
</div>
|
| 63 |
<br>
|
62 |
<br>
|
| 64 |
<span>Transfer on Scan-in to Warehouse </span>
|
63 |
<!--<span>Transfer on Scan-in to Warehouse </span>
|
| 65 |
<select name = "transferWarehouseId">
|
64 |
<select name = "transferWarehouseId">
|
| 66 |
#if($action.getTransferWarehouseId())
|
65 |
#if($action.getTransferWarehouseId())
|
| 67 |
#foreach($warehouse in $action.getAllowedDestinationWarehousesForTransfer($action.getWarehouseId()))
|
66 |
#foreach($warehouse in $action.getAllowedDestinationWarehousesForTransfer($action.getWarehouseId()))
|
| 68 |
#if($warehouse.getId()==$action.getTransferWarehouseId())
|
67 |
#if($warehouse.getId()==$action.getTransferWarehouseId())
|
| 69 |
<option value = "$warehouse.getId()" selected>$warehouse.getDisplayName()</option>
|
68 |
<option value = "$warehouse.getId()" selected>$warehouse.getDisplayName()</option>
|
| Line 74... |
Line 73... |
| 74 |
#foreach($warehouse in $action.getAllowedDestinationWarehousesForTransfer($action.getWarehouseId()))
|
73 |
#foreach($warehouse in $action.getAllowedDestinationWarehousesForTransfer($action.getWarehouseId()))
|
| 75 |
<option value = "$warehouse.getId()">$warehouse.getDisplayName()</option>
|
74 |
<option value = "$warehouse.getId()">$warehouse.getDisplayName()</option>
|
| 76 |
#end
|
75 |
#end
|
| 77 |
#end
|
76 |
#end
|
| 78 |
</select>
|
77 |
</select>
|
| 79 |
<br>
|
78 |
<br>-->
|
| 80 |
<span> Select File : </span>
|
79 |
<span> Select File : </span>
|
| 81 |
<input type="file" id="scanDataFile" name="scanDataFile"/>
|
80 |
<input type="file" id="scanDataFile" name="scanDataFile"/>
|
| 82 |
<br>
|
81 |
<br>
|
| 83 |
#if($action.getTransferLotId())
|
82 |
#if($action.getTransferLotId())
|
| 84 |
<input type="hidden" name="transferLotId" value="$action.getTransferLotId()"/>
|
83 |
<input type="hidden" name="transferLotId" value="$action.getTransferLotId()"/>
|