| 24317 |
govind |
1 |
<script>
|
|
|
2 |
configureAllPartnerName();
|
|
|
3 |
function partnerServiceDetailsforPartner()
|
|
|
4 |
{
|
|
|
5 |
fofoId=$("#partnerName").val();
|
|
|
6 |
serviceId=$("#serviceName").val();
|
|
|
7 |
console.log(fofoId);
|
|
|
8 |
console.log(serviceId)
|
|
|
9 |
if(!(fofoId==null || serviceId==null) )
|
|
|
10 |
{
|
|
|
11 |
doGetAjaxRequestHandler(context+"/getPartnerServicesDetails/"+serviceId+"/"+fofoId, function(response){
|
|
|
12 |
response = JSON.parse(response);
|
|
|
13 |
if(response)
|
|
|
14 |
{
|
|
|
15 |
console.log(response.applicableType);
|
|
|
16 |
$("#applicableService").val(response.applicableType);
|
|
|
17 |
if(response.active ==true){
|
|
|
18 |
$("#activeService").val("true");
|
|
|
19 |
}
|
|
|
20 |
else{
|
|
|
21 |
$("#activeService").val("false");
|
|
|
22 |
}
|
|
|
23 |
$("#na_comment_services").val(response.na_Comment);
|
|
|
24 |
}
|
|
|
25 |
else
|
|
|
26 |
{
|
|
|
27 |
$("#applicableService").val("");
|
|
|
28 |
$("#activeService").val("");
|
|
|
29 |
$("#na_comment_services").val("");
|
|
|
30 |
}
|
|
|
31 |
});
|
|
|
32 |
}
|
|
|
33 |
|
|
|
34 |
}
|
|
|
35 |
</script>
|
|
|
36 |
<section class="wrapper">
|
|
|
37 |
<div class="row">
|
|
|
38 |
<div class="col-lg-12">
|
|
|
39 |
<h3 class="page-header"><i class="icon_document_alt"></i>Service</h3>
|
|
|
40 |
<ol class="breadcrumb">
|
|
|
41 |
<li><i class="fa fa-home"></i><a href="${rc.contextPath}/dashboard">Home</a></li>
|
|
|
42 |
<li><i class="icon_document_alt"></i>ADD PARTNER SERVICE DETAILS</li>
|
|
|
43 |
</ol>
|
|
|
44 |
</div>
|
|
|
45 |
</div>
|
|
|
46 |
<div class = "row">
|
|
|
47 |
<div class="col-lg-2 form-group">
|
|
|
48 |
<select class="form-control input-sm" id ="partnerName" placeholder="partnerName" onchange="partnerServiceDetailsforPartner()">
|
|
|
49 |
<option value="" selected disabled>Partner</option>
|
|
|
50 |
#foreach($fofoId in $fofoIdsAndCustomRetailer.keySet())
|
|
|
51 |
#if($selectedFofoId == $fofoId)
|
|
|
52 |
<option value="$fofoId" selected>$fofoIdsAndCustomRetailer.get($fofoId).getBusinessName()</option>
|
|
|
53 |
#else
|
|
|
54 |
<option value="$fofoId">$fofoIdsAndCustomRetailer.get($fofoId).getBusinessName()</option>
|
|
|
55 |
#end
|
|
|
56 |
#end
|
|
|
57 |
</select>
|
|
|
58 |
</div>
|
|
|
59 |
<div class="col-lg-2 form-group">
|
|
|
60 |
<select class="form-control input-sm" id ="serviceName" placeholder="serviceName" onchange="partnerServiceDetailsforPartner()">
|
|
|
61 |
<option value="" selected disabled>ServiceName</option>
|
|
|
62 |
#foreach($service in $services)
|
|
|
63 |
<option value="$service.getId()">$service.getName()</option>
|
|
|
64 |
#end
|
|
|
65 |
</select>
|
|
|
66 |
</div>
|
|
|
67 |
<div class="col-lg-2 form-group">
|
|
|
68 |
<select class="form-control input-sm" id ="applicableService" placeholder="applicableService">
|
|
|
69 |
<option value="" selected disabled>Applicable</option>
|
|
|
70 |
#foreach($applicableType in $applicableTypes)
|
|
|
71 |
<option value="$applicableType">$applicableType</option>
|
|
|
72 |
#end
|
|
|
73 |
</select>
|
|
|
74 |
</div>
|
|
|
75 |
<div class="col-lg-3 form-group">
|
|
|
76 |
<input type="text" class="form-control" id="code" value="" placeholder="enter code">
|
|
|
77 |
</div>
|
|
|
78 |
</div>
|
|
|
79 |
<br>
|
|
|
80 |
<div class="row">
|
|
|
81 |
<div class="col-lg-3 form-group">
|
|
|
82 |
<textarea rows="3" cols="35" placeholder="NA_COMMENT" id="na_comment_services"></textarea>
|
|
|
83 |
</div>
|
|
|
84 |
<div class="col-lg-2 form-group">
|
|
|
85 |
<button class="btn btn-primary add-service-details-for-partner" type="button" style="width:100%;border-radius:0px;">Add</button>
|
|
|
86 |
</div>
|
|
|
87 |
</div>
|
|
|
88 |
</section>
|