| 27763 |
tejbeer |
1 |
<section class="wrapper">
|
|
|
2 |
<div class="row">
|
|
|
3 |
<div class="col-lg-12">
|
|
|
4 |
<h3 class="page-header"><i class="icon_document_alt"></i>panel Listing</h3>
|
|
|
5 |
<ol class="breadcrumb">
|
|
|
6 |
<li><i class="fa fa-home"></i><a href="${rc.contextPath}/dashboard">Home</a></li>
|
|
|
7 |
<li><i class="icon_document_alt"></i>panel Listing</li>
|
|
|
8 |
</ol>
|
|
|
9 |
</div>
|
|
|
10 |
</div>
|
|
|
11 |
<div class="col-lg-6">
|
|
|
12 |
<button type="button" class="btn btn-info btn-lg" data-toggle="modal" data-target="#myModal" style="font-size:12px; background:#696969;">New</button>
|
|
|
13 |
<div id="myModal" class="modal fade" role="dialog">
|
|
|
14 |
<div class="modal-dialog">
|
|
|
15 |
<!-- Modal content-->
|
|
|
16 |
<div class="modal-content">
|
|
|
17 |
<div class="modal-header">
|
|
|
18 |
<button type="button" class="close" data-dismiss="modal">×</button>
|
|
|
19 |
<h4 class="modal-title">Modal Header</h4>
|
|
|
20 |
</div>
|
|
|
21 |
<div class="modal-body">
|
|
|
22 |
<form>
|
|
|
23 |
<div class="form-row">
|
|
|
24 |
<div class="form-group col-md-6">
|
|
|
25 |
<label for="outLateName1">OutLate Name</label>
|
|
|
26 |
<input type="text" class="form-control" id="outLateName1" placeholder="OutLate Name">
|
|
|
27 |
</div>
|
|
|
28 |
<div class="form-group col-md-6">
|
|
|
29 |
<label for="number1">Mobile Number</label>
|
|
|
30 |
<input type="number" class="form-control" id="number1" placeholder="Mobile Number">
|
|
|
31 |
</div>
|
|
|
32 |
</div>
|
|
|
33 |
|
|
|
34 |
<button type="button" class="btn btn-primary" id="newmodal" data-dismiss="modal" data-backdrop='static' data-keyboard='false'>submit</button>
|
|
|
35 |
</form>
|
|
|
36 |
</div>
|
|
|
37 |
<div class="modal-footer">
|
|
|
38 |
<button type="submit" class="btn btn-default" data-dismiss="modal">Close</button>
|
|
|
39 |
</div>
|
|
|
40 |
</div>
|
|
|
41 |
</div>
|
|
|
42 |
</div>
|
|
|
43 |
</div>
|
|
|
44 |
<div class="col-lg-12">
|
|
|
45 |
<table class="table table-border table-condensed table-bordered" id="example" style="width:100%">
|
|
|
46 |
|
|
|
47 |
<thead class="row htable">
|
|
|
48 |
|
|
|
49 |
<tr style="color:black;">
|
|
|
50 |
<th>Id</th>
|
|
|
51 |
<th>Outlet Name(SM)</th>
|
|
|
52 |
<th>Phone Number(SM)</th>
|
|
|
53 |
<th>City (SM)</th>
|
|
|
54 |
<th>State Head(SM)</th>
|
|
|
55 |
<th>BDM (SM)</th>
|
|
|
56 |
<th>Store Pics(SM)</th>
|
|
|
57 |
<th>Agreed Brand fees(SM)</th>
|
|
|
58 |
<th>Received Brand fees</th>
|
|
|
59 |
<th>pending Pics(SM)</th>
|
|
|
60 |
<th>Agreed Wallet(SM)</th>
|
|
|
61 |
<th>Investment Date(SM)</th>
|
|
|
62 |
<th>KYC (SM)</th>
|
|
|
63 |
<th>Addhar(SM)</th>
|
|
|
64 |
<th>pan(SM)</th>
|
|
|
65 |
<th>GST(SM)</th>
|
|
|
66 |
<th>Cancel cheque(SM)</th>
|
|
|
67 |
<th>Rent agreement/Owner ship proof(SM)</th>
|
|
|
68 |
<th>LOI(SM)</th>
|
|
|
69 |
<th>Code(SM)</th>
|
|
|
70 |
<th>Recee Planed(Kamini)</th>
|
|
|
71 |
<th>Recee Actual(Kamini)</th>
|
|
|
72 |
<th>Designing Planed(Kamini)</th>
|
|
|
73 |
<th>Designing Actual(Kamini)</th>
|
|
|
74 |
<th>Stock payment(kamini)</th>
|
|
|
75 |
<th>Billing Status(Niranjan)</th>
|
|
|
76 |
<th>Submit</th>
|
|
|
77 |
<th>Delete</th>
|
|
|
78 |
</tr>
|
|
|
79 |
</div>
|
|
|
80 |
</thead>
|
|
|
81 |
<tbody>
|
|
|
82 |
#foreach($pob in $partnerOnBoardingPanel )
|
|
|
83 |
<tr id="trow2">
|
|
|
84 |
#if($pob.getId())
|
|
|
85 |
<td style="background:#7abbf8;">$pob.getId()</td>
|
|
|
86 |
#else
|
|
|
87 |
<td>$pob.getId()</td>
|
|
|
88 |
#end
|
|
|
89 |
#if($pob.getOutLetName())
|
|
|
90 |
<td> <input type="text" placeholder="OutLet Name" value="$pob.getOutLetName()" name="outlateName"disabled style="background:pink;"></td>
|
|
|
91 |
#else
|
|
|
92 |
<td> <input type="text" placeholder="OutLet Name" name="outlateName"disabled></td>
|
|
|
93 |
#end
|
|
|
94 |
#if($pob.getPhoneNumber())
|
|
|
95 |
<td> <input type="number" placeholder="9999999999" value="$pob.getPhoneNumber()" name="phonenumber1" disabled style="background:pink;"></td>
|
|
|
96 |
#else
|
|
|
97 |
<td> <input type="number" placeholder="9999999999" name="phonenumber1"disabled></td>
|
|
|
98 |
#end
|
|
|
99 |
|
|
|
100 |
#if($pob.getCity() && $pob.getCity() != "")
|
|
|
101 |
<td><input type="text" placeholder="City (SM)" disabled name="city1" value="$pob.getCity()" style="background:pink;"></td>
|
|
|
102 |
#else
|
|
|
103 |
<td><input type="text" placeholder="City (SM)" disabled name="city1" ></td>
|
|
|
104 |
#end
|
|
|
105 |
#if($pob.getStateHead() && $pob.getStateHead() != "")
|
|
|
106 |
<td><input type="text" placeholder="State Head(SM)" disabled name="shead1" value="$pob.getStateHead()" style="background:pink;"></td>
|
|
|
107 |
#else
|
|
|
108 |
<td><input type="text" placeholder="State Head(SM)" disabled name="shead1"></td>
|
|
|
109 |
#end
|
|
|
110 |
#if($pob.getBDM() && $pob.getBDM() != "")
|
|
|
111 |
<td><input type="text" placeholder="BDM (SM)" disabled name="bdm1" value="$pob.getBDM()" style="background:pink;" ></td>
|
|
|
112 |
#else
|
|
|
113 |
<td><input type="text" placeholder="BDM (SM)" disabled name="bdm1"></td>
|
|
|
114 |
#end
|
|
|
115 |
#if($pob.getStorePics() && $pob.getStorePics() != 0)
|
| 27772 |
tejbeer |
116 |
<td><input type="file" id="storepics" placeholder="Store Pics(SM)" disabled name="storepics1" value="$pob.getStorePics()" style="background:pink;"> <button type="button" class="btn btn-primary download-store-file" data-docid="$pob.getStorePics()" data-id="$pob.getId()">download</button></td>
|
| 27763 |
tejbeer |
117 |
#else
|
|
|
118 |
<td><input type="file" id="storepics" placeholder="Store Pics(SM)" disabled name="storepics1" ></td>
|
|
|
119 |
#end
|
|
|
120 |
#if($pob.getAgreedBrandFees() != 0)
|
|
|
121 |
<td><input type="text" placeholder="Agreed Brand fees(SM)" disabled name="abrand1" value="$pob.getAgreedBrandFees()" style="background:pink;"></td>
|
|
|
122 |
#else
|
|
|
123 |
<td><input type="text" placeholder="Agreed Brand fees(SM)" disabled name="abrand1"></td>
|
|
|
124 |
#end
|
|
|
125 |
#if($pob.getReceivedBrandFees()!= 0)
|
|
|
126 |
|
|
|
127 |
<td><input type="text" placeholder="Received Brand fees" disabled name="recbrand1" value="$pob.getReceivedBrandFees()" style="background:pink;"</td>
|
|
|
128 |
#else
|
|
|
129 |
<td><input type="text" placeholder="Received Brand fees" disabled name="recbrand1"></td>
|
|
|
130 |
#end
|
|
|
131 |
#if($pob.getPendingPics() && $pob.getPendingPics() != 0)
|
| 27773 |
tejbeer |
132 |
<td><input type="file" id="pendpics" placeholder="pending Pics(SM)" disabled name="pendpics1" value="$pob.getPendingPics()" style="background:pink;"> <button type="button" class="btn btn-primary download-pending-file" data-docpid="$pob.getPendingPics()" data-id="$pob.getId()">download</button>
|
| 27771 |
tejbeer |
133 |
</td>
|
| 27763 |
tejbeer |
134 |
#else
|
|
|
135 |
<td><input type="file" id="pendpics" placeholder="pending Pics(SM)" disabled name="pendpics1"></td>
|
|
|
136 |
#end
|
|
|
137 |
#if($pob.getAgreedWallet()!= 0)
|
|
|
138 |
<td><input type="text" placeholder="Agreed Wallet(SM)" disabled name="awallet" value="$pob.getAgreedWallet()" style="background:pink;"></td>
|
|
|
139 |
#else
|
|
|
140 |
<td><input type="text" placeholder="Agreed Wallet(SM)" disabled name="awallet" ></td>
|
|
|
141 |
#end
|
|
|
142 |
|
|
|
143 |
#if($pob.getInvestmentDate())
|
|
|
144 |
|
|
|
145 |
<td><input type="date" placeholder="Investment Date(SM)" disabled name="idate1" id="idate" value="$pob.getInvestmentDate().format($datehiphenFormatter)" style="background:pink;"></td>
|
|
|
146 |
#else
|
|
|
147 |
<td><input type="date" placeholder="Investment Date(SM)" disabled name="idate1" ></td>
|
|
|
148 |
#end
|
|
|
149 |
#if($pob.getKyc())
|
|
|
150 |
|
|
|
151 |
<td><input type="file" id="kyc" placeholder="KYC (SM)" disabled name="kyc1" value="$pob.getKyc()" ></td>
|
|
|
152 |
#else
|
|
|
153 |
<td><input type="file" id="kyc" placeholder="KYC (SM)" disabled name="kyc1" ></td>
|
|
|
154 |
#end
|
|
|
155 |
|
|
|
156 |
#if($pob.getAadharDoc() && $pob.getAadharDoc() != 0)
|
|
|
157 |
<td><input type="file" id="aadhar" placeholder="aadhar" disabled name="aadhar1" value="$pob.getAadharDoc()" style="background:pink;"></td>
|
|
|
158 |
#else
|
|
|
159 |
<td><input type="file" id="aadhar" placeholder="aadhar" disabled name="aadhar1"></td>
|
|
|
160 |
#end
|
|
|
161 |
#if($pob.getPanDoc())
|
|
|
162 |
<td><input type="file" id="pan" placeholder="pan(SM)" disabled name="pan1" value="$pob.getPanDoc()" ></td>
|
|
|
163 |
#else
|
|
|
164 |
<td><input type="file" id="pan: placeholder="pan(SM)" disabled name="pan1"></td>
|
|
|
165 |
#end
|
|
|
166 |
#if($pob.getGst() && $pob.getGst() != "")
|
|
|
167 |
<td><input type="file" id="gst" placeholder="GST(SM)" disabled name="gst1" value="$pob.getGst()" style="background:pink;" ></td>
|
|
|
168 |
#else
|
|
|
169 |
<td><input type="file" id="gst" placeholder="GST(SM)" disabled name="gst1" ></td>
|
|
|
170 |
#end
|
|
|
171 |
#if($pob.getCancelCheque() && $pob.getCancelCheque() != 0)
|
|
|
172 |
<td><input type="file" id="cancheque" placeholder="Cancel cheque(SM)" disabled name="cancheque1" value="$pob.getCancelCheque()" style="background:pink;"></td>
|
|
|
173 |
#else
|
|
|
174 |
<td><input type="file" id="cancheque" placeholder="Cancel cheque(SM)" disabled name="cancheque1" ></td>
|
|
|
175 |
#end
|
|
|
176 |
#if($pob.getRentAgreement() != 0)
|
|
|
177 |
|
|
|
178 |
<td><input type="text" placeholder="Rent agreement/Owner ship proof(SM)" disabled name="ragreement1" value="$pob.getRentAgreement()" style="background:pink;"></td>
|
|
|
179 |
#else
|
|
|
180 |
<td><input type="text" placeholder="Rent agreement/Owner ship proof(SM)" disabled name="ragreement1" ></td>
|
|
|
181 |
#end
|
|
|
182 |
#if($pob.getLOI() != 0)
|
|
|
183 |
<td><input type="text" placeholder="LOI(SM)" disabled name="loi1" value="$pob.getLOI()" style="background:pink;"></td>
|
|
|
184 |
#else
|
|
|
185 |
<td><input type="text" placeholder="LOI(SM)" disabled name="loi1" ></td>
|
|
|
186 |
#end
|
|
|
187 |
#if($pob.getCode() && $pob.getCode() != "")
|
|
|
188 |
<td><input type="text" placeholder="Code(SM)" disabled name="code1" value="$pob.getCode()" style="background:pink;"></td>
|
|
|
189 |
#else
|
|
|
190 |
<td><input type="text" placeholder="Code(SM)" disabled name="code1"></td>
|
|
|
191 |
#end
|
|
|
192 |
#if($pob.getReceePlaned())
|
|
|
193 |
<td><input type="date" id="rplaned" placeholder="Recee Planed(Kamini)" disabled name="rplaned1" value="$pob.getReceePlaned().format($datehiphenFormatter)" style="background:pink;"></td>
|
|
|
194 |
#else
|
|
|
195 |
<td><input type="date" id="rplaned" placeholder="Recee Planed(Kamini)" disabled name="rplaned1" ></td>
|
|
|
196 |
#end
|
|
|
197 |
#if($pob.getReceeActual())
|
|
|
198 |
<td><input type="date" id="ractual" placeholder="Recee Actual(Kamini)" disabled name="ractual1" value="$pob.getReceeActual().format($datehiphenFormatter)" style="background:pink;"></td>
|
|
|
199 |
#else
|
|
|
200 |
<td><input type="date" id="ractual"placeholder="Recee Actual(Kamini)" disabled name="ractual1" ></td>
|
|
|
201 |
#end
|
|
|
202 |
|
|
|
203 |
#if($pob.getDesigningPlaned())
|
|
|
204 |
<td><input type="date" id="dplaned" placeholder="Designing Planed(Kamini)" disabled name="dplaned1" value="$pob.getDesigningPlaned().format($datehiphenFormatter)" style="background:pink;"></td>
|
|
|
205 |
#else
|
|
|
206 |
<td><input type="date" id="dplaned" placeholder="Designing Planed(Kamini)" disabled name="dplaned1" ></td>
|
|
|
207 |
#end
|
|
|
208 |
#if($pob.getDesigningActual())
|
|
|
209 |
<td><input type="date" id="dactual" placeholder="Designing Actual(Kamini)" disabled name="dactual1" value="$pob.getDesigningActual().format($datehiphenFormatter)" style="background:pink;"></td>
|
|
|
210 |
#else
|
|
|
211 |
<td><input type="date" id="dactual" placeholder="Designing Actual(Kamini)" disabled name="dactual1"></td>
|
|
|
212 |
#end
|
|
|
213 |
#if($pob.getStockPayment()!= 0)
|
|
|
214 |
<td><input type="text" placeholder="Stock payment(kamini)" disabled name="spayment1" value="$pob.getStockPayment()" style="background:pink;"></td>
|
|
|
215 |
#else
|
|
|
216 |
<td><input type="text" placeholder="Stock payment(kamini)" disabled name="spayment1""></td>
|
|
|
217 |
#end
|
|
|
218 |
|
|
|
219 |
#if($pob.getBillingStatus() && $pob.getBillingStatus() != "")
|
|
|
220 |
<td><input type="text" placeholder="Billing Status(Niranjan)" disabled name="bstatus1" value="$pob.getBillingStatus()" style="background:pink;"></td>
|
|
|
221 |
#else
|
|
|
222 |
<td><input type="text" placeholder="Billing Status(Niranjan)" disabled name="bstatus1"></td>
|
|
|
223 |
#end
|
|
|
224 |
|
|
|
225 |
<td><button type="submit" form="form1" value="Submit" style="background:blue; color:black;" class="submit1">Submit</button></td>
|
|
|
226 |
|
|
|
227 |
<td><button type="submit" form="form2" value="Submit1" data-id="$pob.getId()" style="background:#f18681;" class="delete">delete</button></td>
|
|
|
228 |
|
|
|
229 |
</tr>
|
|
|
230 |
#end
|
|
|
231 |
|
|
|
232 |
|
|
|
233 |
</tbody>
|
|
|
234 |
|
|
|
235 |
</table>
|
|
|
236 |
</div>
|
|
|
237 |
</section>
|
|
|
238 |
|
|
|
239 |
|
|
|
240 |
<script type="text/javascript">
|
|
|
241 |
|
|
|
242 |
|
|
|
243 |
|
|
|
244 |
$(document).ready(function() {
|
|
|
245 |
|
|
|
246 |
|
|
|
247 |
var dtable = $('#example').DataTable(
|
|
|
248 |
{
|
|
|
249 |
|
|
|
250 |
"bPaginate": true,
|
|
|
251 |
"bLengthChange": true,
|
|
|
252 |
"bFilter": true,
|
|
|
253 |
"bInfo": false,
|
|
|
254 |
"bAutoWidth": false ,
|
|
|
255 |
"scrollX": true,
|
|
|
256 |
|
|
|
257 |
});
|
|
|
258 |
|
|
|
259 |
$('.submit1').on('click',function(){
|
|
|
260 |
var row = $(this).closest("tr");
|
|
|
261 |
console.log(row);
|
|
|
262 |
var data0=$(row).find("td:eq(0)").text();
|
|
|
263 |
var data1=$(row).find("td:eq(1) input[type='text']").val();
|
|
|
264 |
var data2=$(row).find("td:eq(2) input[type='number']").val();
|
|
|
265 |
var data3=$(row).find("td:eq(3) input[type='text']").val();
|
|
|
266 |
var data4=$(row).find("td:eq(4) input[type='text']").val();
|
|
|
267 |
var data5=$(row).find("td:eq(5) input[type='text']").val();
|
|
|
268 |
var data6=localStorage.getItem("storePics");
|
|
|
269 |
var data7=$(row).find("td:eq(7) input[type='text']").val();
|
|
|
270 |
var data8=$(row).find("td:eq(8) input[type='text']").val();
|
|
|
271 |
var data9=localStorage.getItem("pendPics");
|
|
|
272 |
var data10=$(row).find("td:eq(10) input[type='text']").val();
|
|
|
273 |
|
|
|
274 |
var data11=$(row).find("td:eq(11) input[type='date']").val();
|
|
|
275 |
if(data11 != ""){
|
|
|
276 |
data11 = data11+ "T00:00:00";
|
|
|
277 |
}
|
|
|
278 |
var data12=localStorage.getItem("kyc");
|
|
|
279 |
var data13=localStorage.getItem("aadhar");
|
|
|
280 |
var data14=localStorage.getItem("pan");
|
|
|
281 |
var data15=localStorage.getItem("gst");
|
|
|
282 |
var data16=localStorage.getItem("cancheque");
|
|
|
283 |
var data17=$(row).find("td:eq(17) input[type='text']").val();
|
|
|
284 |
var data18=$(row).find("td:eq(18) input[type='text']").val();
|
|
|
285 |
var data19=$(row).find("td:eq(19) input[type='text']").val();
|
|
|
286 |
var data20=$(row).find("td:eq(20) input[type='date']").val();
|
|
|
287 |
if(data20!= "")
|
|
|
288 |
{ data20= data20+ "T00:00:00";}
|
|
|
289 |
var data21=$(row).find("td:eq(21) input[type='date']").val();
|
|
|
290 |
if(data21!= "")
|
|
|
291 |
{ data21= data21 + "T00:00:00";}
|
|
|
292 |
var data22=$(row).find("td:eq(22) input[type='date']").val();
|
|
|
293 |
if(data22!= "")
|
|
|
294 |
{ data22= data22+ "T00:00:00";}
|
|
|
295 |
var data23=$(row).find("td:eq(23) input[type='date']").val();
|
|
|
296 |
if(data23!= "")
|
|
|
297 |
{ data23= data23+ "T00:00:00";}
|
|
|
298 |
var data24=$(row).find("td:eq(24) input[type='text']").val();
|
|
|
299 |
var data25=$(row).find("td:eq(25) input[type='text']").val();
|
|
|
300 |
|
|
|
301 |
var prebookingListingObject = {};
|
|
|
302 |
prebookingListingObject['id'] =data0
|
|
|
303 |
prebookingListingObject['outletName'] =data1
|
|
|
304 |
prebookingListingObject['phoneNumber'] =data2
|
|
|
305 |
prebookingListingObject['city'] = data3
|
|
|
306 |
prebookingListingObject['stateHead'] = data4
|
|
|
307 |
prebookingListingObject['bdm'] =data5
|
|
|
308 |
prebookingListingObject['storePics'] =data6
|
|
|
309 |
prebookingListingObject['agreedBrandFees'] =data7
|
|
|
310 |
prebookingListingObject['receiveBrandFees'] = data8
|
|
|
311 |
prebookingListingObject['pendingPics'] = data9
|
|
|
312 |
prebookingListingObject['agreedWallet'] = data10
|
|
|
313 |
prebookingListingObject['investmentDate'] = data11
|
|
|
314 |
prebookingListingObject['kyc'] = data12
|
|
|
315 |
prebookingListingObject['aadhar'] = data13
|
|
|
316 |
prebookingListingObject['panDoc'] = data14
|
|
|
317 |
prebookingListingObject['gst'] = data15
|
|
|
318 |
prebookingListingObject['cancelCheque'] =data16
|
|
|
319 |
prebookingListingObject['rentAgreement'] =data17
|
|
|
320 |
prebookingListingObject['loi'] =data18
|
|
|
321 |
prebookingListingObject['code'] = data19
|
|
|
322 |
prebookingListingObject['receePlaned'] =data20
|
|
|
323 |
prebookingListingObject['receeActual'] =data21
|
|
|
324 |
prebookingListingObject['designingPlaned'] = data22
|
|
|
325 |
prebookingListingObject['designingActual'] =data23
|
|
|
326 |
prebookingListingObject['stockPayment'] =data24
|
|
|
327 |
prebookingListingObject['billingStatus'] = data25
|
|
|
328 |
|
|
|
329 |
var jsonObject = JSON.stringify(prebookingListingObject);
|
|
|
330 |
|
|
|
331 |
console.log(jsonObject);
|
|
|
332 |
|
|
|
333 |
doAjaxRequestWithJsonHandler(
|
|
|
334 |
context
|
|
|
335 |
+ "/partnerOnBoardingListing",
|
|
|
336 |
"POST",
|
|
|
337 |
jsonObject,
|
|
|
338 |
function(response) {
|
|
|
339 |
|
|
|
340 |
console.log("reponse"+response);
|
|
|
341 |
if(response == 'true'){
|
|
|
342 |
alert("successfully submit");
|
|
|
343 |
panelListing("main-content");
|
|
|
344 |
localStorage.removeItem("storePics");
|
|
|
345 |
localStorage.removeItem("pendPics");
|
|
|
346 |
localStorage.removeItem("kyc");
|
|
|
347 |
localStorage.removeItem("aadhar");
|
|
|
348 |
localStorage.removeItem("pan");
|
|
|
349 |
localStorage.removeItem("gst");
|
|
|
350 |
localStorage.removeItem("cancheque");
|
|
|
351 |
|
|
|
352 |
}
|
|
|
353 |
});
|
|
|
354 |
|
|
|
355 |
});
|
|
|
356 |
|
|
|
357 |
$('#newmodal').on('click', function() {
|
|
|
358 |
|
|
|
359 |
|
|
|
360 |
var json = partnerOnBoardingListingJson();
|
|
|
361 |
console.log(json);
|
|
|
362 |
doAjaxRequestWithJsonHandler(
|
|
|
363 |
context
|
|
|
364 |
+ "/partnerOnBoardingListing",
|
|
|
365 |
"POST",
|
|
|
366 |
json,
|
|
|
367 |
function(response) {
|
|
|
368 |
|
|
|
369 |
console.log("reponse"+response);
|
|
|
370 |
if(response == 'true'){
|
|
|
371 |
alert("successfully submit");
|
|
|
372 |
panelListing("main-content");
|
|
|
373 |
}
|
|
|
374 |
|
|
|
375 |
});
|
|
|
376 |
});
|
|
|
377 |
|
|
|
378 |
$(document).ready(function () {
|
|
|
379 |
var table = $('#example').DataTable();
|
|
|
380 |
$('#example tbody').on('dblclick', 'tr', function () {
|
|
|
381 |
var data = table.row( this ).data();
|
|
|
382 |
|
|
|
383 |
$(this).closest('tr').find(":input").attr('disabled', false);
|
|
|
384 |
$(this).closest('tr').css("background-color","#87d3f8");
|
|
|
385 |
} );
|
|
|
386 |
});
|
|
|
387 |
|
|
|
388 |
$(document)
|
|
|
389 |
.on(
|
|
|
390 |
'input',
|
|
|
391 |
'#storepics',
|
|
|
392 |
function() {
|
|
|
393 |
if (confirm('Document has been selected, Do you want to upload ?')) {
|
|
|
394 |
var fileSelector = $('#storepics')[0];
|
|
|
395 |
if (fileSelector != undefined
|
|
|
396 |
&& fileSelector.files[0] != undefined) {
|
|
|
397 |
var url = context + '/document-upload';
|
|
|
398 |
|
|
|
399 |
console.log(url);
|
|
|
400 |
var file = this.files[0];
|
|
|
401 |
doAjaxUploadRequestHandler(
|
|
|
402 |
url,
|
|
|
403 |
'POST',
|
|
|
404 |
file,
|
|
|
405 |
function(response) {
|
|
|
406 |
console.log(response);
|
|
|
407 |
var documentId = response.response.document_id;
|
|
|
408 |
console.log("documentId : "
|
|
|
409 |
+ documentId);
|
|
|
410 |
localStorage.setItem("storePics",
|
|
|
411 |
documentId);
|
|
|
412 |
});
|
|
|
413 |
// alert("Retailer Shop Document
|
|
|
414 |
// is required");
|
|
|
415 |
}
|
|
|
416 |
} else {
|
|
|
417 |
// Do nothing!
|
|
|
418 |
}
|
|
|
419 |
});
|
|
|
420 |
|
|
|
421 |
$(document)
|
|
|
422 |
.on(
|
|
|
423 |
'input',
|
|
|
424 |
'#pendpics',
|
|
|
425 |
function() {
|
|
|
426 |
if (confirm('Document has been selected, Do you want to upload ?')) {
|
|
|
427 |
var fileSelector = $('#pendpics')[0];
|
|
|
428 |
if (fileSelector != undefined
|
|
|
429 |
&& fileSelector.files[0] != undefined) {
|
|
|
430 |
var url = context + '/document-upload';
|
|
|
431 |
|
|
|
432 |
console.log(url);
|
|
|
433 |
var file = this.files[0];
|
|
|
434 |
doAjaxUploadRequestHandler(
|
|
|
435 |
url,
|
|
|
436 |
'POST',
|
|
|
437 |
file,
|
|
|
438 |
function(response) {
|
|
|
439 |
console.log(response);
|
|
|
440 |
var documentId = response.response.document_id;
|
|
|
441 |
console.log("documentId : "
|
|
|
442 |
+ documentId);
|
|
|
443 |
localStorage.setItem("pendPics",
|
|
|
444 |
documentId);
|
|
|
445 |
});
|
|
|
446 |
// alert("Retailer Shop Document
|
|
|
447 |
// is required");
|
|
|
448 |
}
|
|
|
449 |
} else {
|
|
|
450 |
// Do nothing!
|
|
|
451 |
}
|
|
|
452 |
});
|
|
|
453 |
|
|
|
454 |
$(document)
|
|
|
455 |
.on(
|
|
|
456 |
'input',
|
|
|
457 |
'#pan',
|
|
|
458 |
function() {
|
|
|
459 |
if (confirm('Document has been selected, Do you want to upload ?')) {
|
|
|
460 |
var fileSelector = $('#pan')[0];
|
|
|
461 |
if (fileSelector != undefined
|
|
|
462 |
&& fileSelector.files[0] != undefined) {
|
|
|
463 |
var url = context + '/document-upload';
|
|
|
464 |
|
|
|
465 |
console.log(url);
|
|
|
466 |
var file = this.files[0];
|
|
|
467 |
doAjaxUploadRequestHandler(
|
|
|
468 |
url,
|
|
|
469 |
'POST',
|
|
|
470 |
file,
|
|
|
471 |
function(response) {
|
|
|
472 |
console.log(response);
|
|
|
473 |
var documentId = response.response.document_id;
|
|
|
474 |
console.log("documentId : "
|
|
|
475 |
+ documentId);
|
|
|
476 |
localStorage.setItem("pan",
|
|
|
477 |
documentId);
|
|
|
478 |
});
|
|
|
479 |
// alert("Retailer Shop Document
|
|
|
480 |
// is required");
|
|
|
481 |
}
|
|
|
482 |
} else {
|
|
|
483 |
// Do nothing!
|
|
|
484 |
}
|
|
|
485 |
});
|
|
|
486 |
|
|
|
487 |
|
|
|
488 |
|
|
|
489 |
$(document)
|
|
|
490 |
.on(
|
|
|
491 |
'input',
|
|
|
492 |
'#gst',
|
|
|
493 |
function() {
|
|
|
494 |
if (confirm('Document has been selected, Do you want to upload ?')) {
|
|
|
495 |
var fileSelector = $('#gst')[0];
|
|
|
496 |
if (fileSelector != undefined
|
|
|
497 |
&& fileSelector.files[0] != undefined) {
|
|
|
498 |
var url = context + '/document-upload';
|
|
|
499 |
|
|
|
500 |
console.log(url);
|
|
|
501 |
var file = this.files[0];
|
|
|
502 |
doAjaxUploadRequestHandler(
|
|
|
503 |
url,
|
|
|
504 |
'POST',
|
|
|
505 |
file,
|
|
|
506 |
function(response) {
|
|
|
507 |
console.log(response);
|
|
|
508 |
var documentId = response.response.document_id;
|
|
|
509 |
console.log("documentId : "
|
|
|
510 |
+ documentId);
|
|
|
511 |
localStorage.setItem("gst",
|
|
|
512 |
documentId);
|
|
|
513 |
});
|
|
|
514 |
// alert("Retailer Shop Document
|
|
|
515 |
// is required");
|
|
|
516 |
}
|
|
|
517 |
} else {
|
|
|
518 |
// Do nothing!
|
|
|
519 |
}
|
|
|
520 |
});
|
|
|
521 |
|
|
|
522 |
$(document)
|
|
|
523 |
.on(
|
|
|
524 |
'input',
|
|
|
525 |
'#aadhar',
|
|
|
526 |
function() {
|
|
|
527 |
if (confirm('Document has been selected, Do you want to upload ?')) {
|
|
|
528 |
var fileSelector = $('#aadhar')[0];
|
|
|
529 |
if (fileSelector != undefined
|
|
|
530 |
&& fileSelector.files[0] != undefined) {
|
|
|
531 |
var url = context + '/document-upload';
|
|
|
532 |
|
|
|
533 |
console.log(url);
|
|
|
534 |
var file = this.files[0];
|
|
|
535 |
doAjaxUploadRequestHandler(
|
|
|
536 |
url,
|
|
|
537 |
'POST',
|
|
|
538 |
file,
|
|
|
539 |
function(response) {
|
|
|
540 |
console.log(response);
|
|
|
541 |
var documentId = response.response.document_id;
|
|
|
542 |
console.log("documentId : "
|
|
|
543 |
+ documentId);
|
|
|
544 |
localStorage.setItem("aadhar",
|
|
|
545 |
documentId);
|
|
|
546 |
});
|
|
|
547 |
// alert("Retailer Shop Document
|
|
|
548 |
// is required");
|
|
|
549 |
}
|
|
|
550 |
} else {
|
|
|
551 |
// Do nothing!
|
|
|
552 |
}
|
|
|
553 |
});
|
|
|
554 |
|
|
|
555 |
|
|
|
556 |
$(document)
|
|
|
557 |
.on(
|
|
|
558 |
'input',
|
|
|
559 |
'#kyc',
|
|
|
560 |
function() {
|
|
|
561 |
if (confirm('Document has been selected, Do you want to upload ?')) {
|
|
|
562 |
var fileSelector = $('#kyc')[0];
|
|
|
563 |
if (fileSelector != undefined
|
|
|
564 |
&& fileSelector.files[0] != undefined) {
|
|
|
565 |
var url = context + '/document-upload';
|
|
|
566 |
|
|
|
567 |
console.log(url);
|
|
|
568 |
var file = this.files[0];
|
|
|
569 |
doAjaxUploadRequestHandler(
|
|
|
570 |
url,
|
|
|
571 |
'POST',
|
|
|
572 |
file,
|
|
|
573 |
function(response) {
|
|
|
574 |
console.log(response);
|
|
|
575 |
var documentId = response.response.document_id;
|
|
|
576 |
console.log("documentId : "
|
|
|
577 |
+ documentId);
|
|
|
578 |
localStorage.setItem("kyc",
|
|
|
579 |
documentId);
|
|
|
580 |
});
|
|
|
581 |
// alert("Retailer Shop Document
|
|
|
582 |
// is required");
|
|
|
583 |
}
|
|
|
584 |
} else {
|
|
|
585 |
// Do nothing!
|
|
|
586 |
}
|
|
|
587 |
});
|
|
|
588 |
|
|
|
589 |
|
|
|
590 |
$(document)
|
|
|
591 |
.on(
|
|
|
592 |
'input',
|
|
|
593 |
'#cancheque',
|
|
|
594 |
function() {
|
|
|
595 |
if (confirm('Document has been selected, Do you want to upload ?')) {
|
|
|
596 |
var fileSelector = $('#cancheque')[0];
|
|
|
597 |
if (fileSelector != undefined
|
|
|
598 |
&& fileSelector.files[0] != undefined) {
|
|
|
599 |
var url = context + '/document-upload';
|
|
|
600 |
|
|
|
601 |
console.log(url);
|
|
|
602 |
var file = this.files[0];
|
|
|
603 |
doAjaxUploadRequestHandler(
|
|
|
604 |
url,
|
|
|
605 |
'POST',
|
|
|
606 |
file,
|
|
|
607 |
function(response) {
|
|
|
608 |
console.log(response);
|
|
|
609 |
var documentId = response.response.document_id;
|
|
|
610 |
console.log("cancheque : "
|
|
|
611 |
+ documentId);
|
|
|
612 |
localStorage.setItem("cancheque",
|
|
|
613 |
documentId);
|
|
|
614 |
});
|
|
|
615 |
// alert("Retailer Shop Document
|
|
|
616 |
// is required");
|
|
|
617 |
}
|
|
|
618 |
} else {
|
|
|
619 |
// Do nothing!
|
|
|
620 |
}
|
|
|
621 |
});
|
|
|
622 |
|
|
|
623 |
|
|
|
624 |
|
|
|
625 |
|
|
|
626 |
$('.delete').on('click',function(){
|
|
|
627 |
var id = $(this).data('id');
|
|
|
628 |
console.log('helo');
|
|
|
629 |
var id = $(this).data('id');
|
|
|
630 |
console.log(id);
|
|
|
631 |
doPostAjaxRequestHandler(context + "/partnerOnBoardingDelete?id=" + id,
|
|
|
632 |
function(response) {
|
|
|
633 |
|
|
|
634 |
console.log("reponse"+response);
|
|
|
635 |
if(response == 'true'){
|
|
|
636 |
alert("successfully delete");
|
|
|
637 |
panelListing("main-content");
|
|
|
638 |
}
|
|
|
639 |
});
|
|
|
640 |
|
|
|
641 |
});
|
| 27766 |
tejbeer |
642 |
$('.download-store-file').on('click',function(){
|
|
|
643 |
var documentId = $(this).data('docid');
|
|
|
644 |
var id= $(this).data('id');
|
|
|
645 |
console.log(id);
|
|
|
646 |
doAjaxRequestHandler(context + "/panelDocument?documentId="
|
|
|
647 |
+ documentId + "&id=" + id, "GET", function(
|
|
|
648 |
response) {
|
|
|
649 |
var name = response.response.name;
|
|
|
650 |
console.log("documentName : " + name);
|
| 27767 |
tejbeer |
651 |
doAjaxGetDownload(context + "/shopDocument/download?id="
|
| 27766 |
tejbeer |
652 |
+ id, name);
|
|
|
653 |
});
|
|
|
654 |
});
|
| 27771 |
tejbeer |
655 |
$('.download-pending-file').on('click',function(){
|
| 27773 |
tejbeer |
656 |
var documentId = $(this).data('docpid');
|
| 27771 |
tejbeer |
657 |
var id= $(this).data('id');
|
|
|
658 |
console.log(id);
|
|
|
659 |
doAjaxRequestHandler(context + "/partnerPendingDocument?documentId="
|
|
|
660 |
+ documentId + "&id=" + id, "GET", function(
|
|
|
661 |
response) {
|
|
|
662 |
var name = response.response.name;
|
|
|
663 |
console.log("documentName : " + name);
|
|
|
664 |
doAjaxGetDownload(context + "/shopPendingDocument/download?id="
|
|
|
665 |
+ id, name);
|
|
|
666 |
});
|
|
|
667 |
});
|
| 27763 |
tejbeer |
668 |
|
|
|
669 |
function partnerOnBoardingListingJson() {
|
|
|
670 |
var prebookingListingObject = {};
|
|
|
671 |
prebookingListingObject['outletName'] =$('#outLateName1').val();
|
|
|
672 |
prebookingListingObject['phoneNumber'] =$('#number1').val();
|
|
|
673 |
return JSON.stringify(prebookingListingObject);
|
|
|
674 |
}
|
|
|
675 |
|
|
|
676 |
|
|
|
677 |
function panelListing(domId) {
|
|
|
678 |
doAjaxRequestHandler(context + "/partnerOnBoardingPanel", "GET",
|
|
|
679 |
function(response) {
|
|
|
680 |
$('#' + domId).html(response);
|
|
|
681 |
});
|
|
|
682 |
}
|
|
|
683 |
|
|
|
684 |
|
|
|
685 |
|
|
|
686 |
});
|
|
|
687 |
</script>
|
|
|
688 |
|
|
|
689 |
|