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