| 23069 |
amit.gupta |
1 |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
|
2 |
<html xmlns="http://www.w3.org/1999/xhtml">
|
|
|
3 |
<head>
|
|
|
4 |
<title>
|
|
|
5 |
Price Drop
|
|
|
6 |
</title>
|
|
|
7 |
<link rel="stylesheet" href="/inventory/css/common.css" type="text/css" />
|
|
|
8 |
</head>
|
|
|
9 |
<body>
|
|
|
10 |
<div>
|
|
|
11 |
<a href="/inventory">Go to Home page</a>
|
|
|
12 |
</div>
|
| 23081 |
amit.gupta |
13 |
<h3>Price Drop</h3>
|
| 23071 |
amit.gupta |
14 |
<h3>Download in-transit IMEIs</h3>
|
| 23069 |
amit.gupta |
15 |
<div>
|
|
|
16 |
<form action="price-drop!downloadImeis" method="POST">
|
|
|
17 |
<label for="closingDate">Closing Date(YYYY-MM-DD)</label> <input type="text" name="closingDate" id="closingDate"/>
|
| 23081 |
amit.gupta |
18 |
<label for="itemId">Item Id</label> <input type="text" name="itemId" id="itemId"/>
|
| 23069 |
amit.gupta |
19 |
<input type="submit" class="intransitOrders" value="Download IMEIs">
|
|
|
20 |
</form>
|
|
|
21 |
</div>
|
| 23081 |
amit.gupta |
22 |
|
|
|
23 |
<br />
|
|
|
24 |
<h3>Upload IMEIs Approved(.xls format)</h3>
|
|
|
25 |
<div>
|
|
|
26 |
<ul style="text-decoration:none">
|
|
|
27 |
#foreach($errorMsg in $action.getActionErrors())
|
|
|
28 |
<li style="color:red;text-decoration:none">$errorMsg</li>
|
|
|
29 |
#end
|
|
|
30 |
</ul>
|
|
|
31 |
#foreach($actionMsg in $action.getActionMessages())
|
|
|
32 |
<li style="text-color:red;text-decoration:none">$actionMsg</li>
|
|
|
33 |
#end
|
|
|
34 |
<form action="price-drop!uploadImeis" method="POST" enctype = "multipart/form-data">
|
|
|
35 |
<label for="itemId1">Item Id</label> <input type="text" name="itemId" id="itemId1" required/>
|
|
|
36 |
<label for="priceDrop">Price Drop</label> <input type="text" name="priceDrop" id="priceDrop" required/><br>
|
|
|
37 |
<label for="affectedDate">Affected On(YYYY-MM-DD)</label> <input type="text" name="affectedDate" id="affectedDate"/>
|
|
|
38 |
<br>
|
|
|
39 |
<br>
|
|
|
40 |
<label for="imeiFile">Upload</label> <input type="file" accept=".xls" name="imeiFile" id="imeiFile" required />
|
|
|
41 |
<input type="submit" class="intransitOrders" value="Upload IMEIs" id="submitIMEIs">
|
|
|
42 |
</form>
|
|
|
43 |
</div>
|
| 23069 |
amit.gupta |
44 |
</body>
|
| 23081 |
amit.gupta |
45 |
<script type="text/javascript" src="/inventory/js/jquery-1.4.2.js"></script>
|
|
|
46 |
<script type="text/javascript">
|
|
|
47 |
$(document).ready(function(){
|
|
|
48 |
$("#submitIMEIs").click(function(){
|
|
|
49 |
var itemId = $("#itemId1").val();
|
|
|
50 |
var priceDrop = $("#priceDrop").val();
|
|
|
51 |
if(itemId =="" || isNaN(itemId)) {
|
|
|
52 |
alert ("Please choose valid item Id");
|
|
|
53 |
return false;
|
|
|
54 |
} else if (document.getElementById("imeiFile").value == "") {
|
|
|
55 |
alert ("Please enter valid imei sheet");
|
|
|
56 |
return false;
|
|
|
57 |
} else if (priceDrop == "" || priceDrop == "0" || isNaN(priceDrop)){
|
|
|
58 |
alert ("Invalid price drop");
|
|
|
59 |
return false;
|
|
|
60 |
}
|
|
|
61 |
$(this).attr("disabled", true);
|
|
|
62 |
$(this).closest('form').submit();
|
|
|
63 |
});
|
|
|
64 |
});
|
|
|
65 |
</script>
|
| 23069 |
amit.gupta |
66 |
</html>
|