| 27763 |
tejbeer |
1 |
$(function() {
|
| 27829 |
tejbeer |
2 |
$(document).on('click', '.submit1', function() {
|
|
|
3 |
var row = $(this).closest("tr");
|
|
|
4 |
console.log(row);
|
|
|
5 |
var rowIndex = $(this).closest('tr').prevAll().length;
|
| 28908 |
tejbeer |
6 |
|
| 27829 |
tejbeer |
7 |
var data0 = $(row).find("td:eq(0)").text();
|
| 28908 |
tejbeer |
8 |
|
| 27836 |
tejbeer |
9 |
var data1 = $(row).find("td:eq(1)").text();
|
| 27833 |
tejbeer |
10 |
var data2 = $(row).find("td:eq(2)").text();
|
| 27829 |
tejbeer |
11 |
if (data2 != "") {
|
|
|
12 |
data2 = data2 + "T00:00:00";
|
|
|
13 |
}
|
| 27833 |
tejbeer |
14 |
var data3 = $(row).find("td:eq(3) input[type='date']").val();
|
|
|
15 |
if (data3 != "") {
|
|
|
16 |
data3 = data3 + "T00:00:00";
|
|
|
17 |
}
|
|
|
18 |
var data4 = $(row).find("td:eq(4) input[type='text']").val();
|
| 28908 |
tejbeer |
19 |
|
| 27833 |
tejbeer |
20 |
var data5 = $(row).find("td:eq(5) input[type='number']").val();
|
| 28908 |
tejbeer |
21 |
|
|
|
22 |
|
|
|
23 |
|
|
|
24 |
var rbmAuthId = $(row).find("td:eq(6) input[type='hidden']").val();
|
|
|
25 |
|
|
|
26 |
console.log(rbmAuthId)
|
|
|
27 |
|
| 28881 |
manish |
28 |
var data6 = $(row).find("td:eq(7) input[type='text']").val();
|
|
|
29 |
var data7 = $(row).find("td:eq(8) input[type='text']").val();
|
|
|
30 |
var data8 = $(row).find("td:eq(9) input[type='text']").val();
|
| 27763 |
tejbeer |
31 |
|
| 28881 |
manish |
32 |
var data9 = $(row).find("td:eq(10) input[type='text']").val();
|
|
|
33 |
var data10 = $(row).find("td:eq(11) input[type='text']").val();
|
|
|
34 |
var data11 = $(row).find("td:eq(12) input[type='date']").val();
|
| 27884 |
tejbeer |
35 |
if (data11 != "") {
|
|
|
36 |
data11 = data11 + "T00:00:00";
|
|
|
37 |
}
|
| 27813 |
tejbeer |
38 |
|
| 28881 |
manish |
39 |
var data12 = $(row).find("td:eq(13) input[type='text']").val();
|
| 27833 |
tejbeer |
40 |
|
| 28881 |
manish |
41 |
var data13 = $(row).find("td:eq(14) input[type='date']").val();
|
| 27884 |
tejbeer |
42 |
if (data13 != "") {
|
|
|
43 |
data13 = data13 + "T00:00:00";
|
| 27829 |
tejbeer |
44 |
}
|
| 27884 |
tejbeer |
45 |
var data14 = $(row).find(".kyc input[type=hidden]").val();
|
|
|
46 |
var data15 = $(row).find(".aadhar input[type=hidden]").val();
|
|
|
47 |
var data16 = $(row).find(".pan input[type=hidden]").val();
|
|
|
48 |
var data17 = $(row).find(".gst input[type=hidden]").val();
|
|
|
49 |
var data18 = $(row).find(".cancheque input[type=hidden]").val();
|
|
|
50 |
var data19 = $(row).find(".rent input[type=hidden]").val();
|
|
|
51 |
console.log("data19" + data19);
|
|
|
52 |
var data20 = $(row).find(".loi input[type=hidden]").val();
|
| 27829 |
tejbeer |
53 |
console.log("data18" + data18);
|
| 28977 |
manish |
54 |
|
|
|
55 |
var docCompleted = $(row).find("td:eq(22) option:selected").val();
|
|
|
56 |
|
|
|
57 |
|
|
|
58 |
var data21 = $(row).find("td:eq(23) input[type='text']").val();
|
| 28908 |
tejbeer |
59 |
console.log(data21);
|
| 28977 |
manish |
60 |
var data22 = $(row).find("td:eq(24) input[type='date']").val();
|
| 27829 |
tejbeer |
61 |
if (data22 != "") {
|
|
|
62 |
data22 = data22 + "T00:00:00";
|
|
|
63 |
}
|
| 28977 |
manish |
64 |
var data23 = $(row).find("td:eq(25) input[type='date']").val();
|
| 27829 |
tejbeer |
65 |
if (data23 != "") {
|
|
|
66 |
data23 = data23 + "T00:00:00";
|
|
|
67 |
}
|
| 28977 |
manish |
68 |
var data24 = $(row).find("td:eq(26) input[type='date']").val();
|
| 27833 |
tejbeer |
69 |
if (data24 != "") {
|
|
|
70 |
data24 = data24 + "T00:00:00";
|
| 27829 |
tejbeer |
71 |
}
|
| 28977 |
manish |
72 |
var data25 = $(row).find("td:eq(27) input[type='date']").val();
|
| 27884 |
tejbeer |
73 |
if (data25 != "") {
|
|
|
74 |
data25 = data25 + "T00:00:00";
|
| 27829 |
tejbeer |
75 |
}
|
| 28977 |
manish |
76 |
var data26 = $(row).find("td:eq(28) input[type='text']").val();
|
| 27813 |
tejbeer |
77 |
|
| 28977 |
manish |
78 |
var data27 = $(row).find("td:eq(29) input[type='date']").val();
|
| 27833 |
tejbeer |
79 |
if (data27 != "") {
|
|
|
80 |
data27 = data27 + "T00:00:00";
|
|
|
81 |
}
|
| 27829 |
tejbeer |
82 |
|
| 28977 |
manish |
83 |
var data28 = $(row).find("td:eq(30) input[type='date']").val();
|
| 27833 |
tejbeer |
84 |
|
| 27884 |
tejbeer |
85 |
if (data28 != "") {
|
|
|
86 |
data28 = data28 + "T00:00:00";
|
|
|
87 |
}
|
| 28977 |
manish |
88 |
var data29 = $(row).find("td:eq(31) input[type='date']").val();
|
| 27833 |
tejbeer |
89 |
|
| 28848 |
manish |
90 |
if (data29 != "") {
|
|
|
91 |
data29 = data29 + "T00:00:00";
|
|
|
92 |
}
|
| 27884 |
tejbeer |
93 |
|
| 28977 |
manish |
94 |
var data30 = $(row).find("td:eq(32) input[type='checkbox']").is(":checked") ? 1 : 0;
|
| 27884 |
tejbeer |
95 |
|
| 27829 |
tejbeer |
96 |
var prebookingListingObject = {};
|
|
|
97 |
prebookingListingObject['id'] = data0
|
| 28908 |
tejbeer |
98 |
|
|
|
99 |
|
| 27833 |
tejbeer |
100 |
prebookingListingObject['createdTimestamp'] = data2
|
|
|
101 |
prebookingListingObject['acquiredDate'] = data3
|
|
|
102 |
prebookingListingObject['outletName'] = data4
|
|
|
103 |
prebookingListingObject['phoneNumber'] = data5
|
| 28908 |
tejbeer |
104 |
|
|
|
105 |
prebookingListingObject['authId'] = rbmAuthId
|
| 27833 |
tejbeer |
106 |
prebookingListingObject['city'] = data6
|
|
|
107 |
prebookingListingObject['stateHead'] = data7
|
|
|
108 |
prebookingListingObject['bdm'] = data8
|
| 27829 |
tejbeer |
109 |
|
| 27833 |
tejbeer |
110 |
prebookingListingObject['agreedBrandFees'] = data9
|
| 28908 |
tejbeer |
111 |
prebookingListingObject['receivedBrandFees'] = data10
|
|
|
112 |
prebookingListingObject['finalBrandFees'] = data11
|
| 27884 |
tejbeer |
113 |
prebookingListingObject['agreedWallet'] = data12
|
|
|
114 |
prebookingListingObject['investmentDate'] = data13
|
|
|
115 |
prebookingListingObject['kyc'] = data14
|
|
|
116 |
prebookingListingObject['aadharDoc'] = data15
|
|
|
117 |
prebookingListingObject['panDoc'] = data16
|
|
|
118 |
prebookingListingObject['gst'] = data17
|
|
|
119 |
prebookingListingObject['cancelCheque'] = data18
|
|
|
120 |
prebookingListingObject['rentAgreement'] = data19
|
|
|
121 |
prebookingListingObject['loi'] = data20
|
| 28977 |
manish |
122 |
prebookingListingObject['docCompleted'] = docCompleted
|
| 27884 |
tejbeer |
123 |
prebookingListingObject['code'] = data21
|
|
|
124 |
prebookingListingObject['receePlaned'] = data22
|
|
|
125 |
prebookingListingObject['receeActual'] = data23
|
| 28900 |
manish |
126 |
prebookingListingObject['deploymentPlanedDate'] = data24
|
|
|
127 |
prebookingListingObject['deploymentDate'] = data25
|
| 27884 |
tejbeer |
128 |
prebookingListingObject['stockPayment'] = data26
|
|
|
129 |
prebookingListingObject['expectedDate'] = data27
|
|
|
130 |
prebookingListingObject['payDate'] = data28
|
| 28848 |
manish |
131 |
prebookingListingObject['inaugrationDate'] = data29
|
|
|
132 |
prebookingListingObject['billingStatus'] = data30
|
| 27829 |
tejbeer |
133 |
|
|
|
134 |
var jsonObject = JSON.stringify(prebookingListingObject);
|
|
|
135 |
|
|
|
136 |
console.log(jsonObject);
|
|
|
137 |
|
|
|
138 |
if (confirm("Are you sure you want to submit the request") == true) {
|
| 28908 |
tejbeer |
139 |
doAjaxRequestWithJsonHandler(context + "/partnerOnBoardingListing", "POST", jsonObject, function(response) {
|
|
|
140 |
row.html(response);
|
|
|
141 |
row.css("background-color", "#F8F8FF");
|
| 27858 |
tejbeer |
142 |
|
| 27842 |
tejbeer |
143 |
});
|
| 27829 |
tejbeer |
144 |
}
|
|
|
145 |
|
|
|
146 |
});
|
| 28908 |
tejbeer |
147 |
|
| 28600 |
amit.gupta |
148 |
$(document).on('click', '.submit-design', function() {
|
|
|
149 |
var row = $(this).closest("tr");
|
|
|
150 |
console.log(row);
|
|
|
151 |
var rowIndex = $(this).closest('tr').prevAll().length;
|
| 28908 |
tejbeer |
152 |
|
| 28600 |
amit.gupta |
153 |
var id = $(row).find("td:eq(0)").text();
|
| 28908 |
tejbeer |
154 |
|
| 28648 |
amit.gupta |
155 |
var outletName = $(row).find("td:eq(1) input[type='text']").val();
|
| 28600 |
amit.gupta |
156 |
var createdTimestamp = $(row).find("td:eq(2)").text();
|
|
|
157 |
if (createdTimestamp != "") {
|
|
|
158 |
createdTimestamp = createdTimestamp + "T00:00:00";
|
|
|
159 |
}
|
|
|
160 |
var acquiredDate = $(row).find("td:eq(3) input[type='date']").val();
|
|
|
161 |
if (acquiredDate != "") {
|
|
|
162 |
acquiredDate = acquiredDate + "T00:00:00";
|
|
|
163 |
}
|
| 28908 |
tejbeer |
164 |
|
| 28600 |
amit.gupta |
165 |
var phoneNumber = $(row).find("td:eq(4) input[type='number']").val();
|
| 28908 |
tejbeer |
166 |
|
|
|
167 |
|
|
|
168 |
|
| 28610 |
amit.gupta |
169 |
var city = $(row).find("td:eq(5) input[type='text']").val();
|
|
|
170 |
var stateHead = $(row).find("td:eq(6) input[type='text']").val();
|
|
|
171 |
var bdm = $(row).find("td:eq(7) input[type='text']").val();
|
| 27829 |
tejbeer |
172 |
|
| 28610 |
amit.gupta |
173 |
var agreedBrandFees = $(row).find("td:eq(8) input[type='text']").val();
|
| 27829 |
tejbeer |
174 |
|
| 28908 |
tejbeer |
175 |
console.log("agreedBrandFees" + agreedBrandFees);
|
|
|
176 |
|
|
|
177 |
|
| 28610 |
amit.gupta |
178 |
var investmentDate = $(row).find("td:eq(9) input[type='date']").val();
|
| 28600 |
amit.gupta |
179 |
if (investmentDate != "") {
|
|
|
180 |
investmentDate = investmentDate + "T00:00:00";
|
|
|
181 |
}
|
| 28908 |
tejbeer |
182 |
console.log("investmentDate" + investmentDate);
|
|
|
183 |
|
|
|
184 |
var loi = $(row).find(".loiDesign input[type=hidden]").val();
|
| 28600 |
amit.gupta |
185 |
console.log("loi" + loi);
|
| 28908 |
tejbeer |
186 |
|
| 28610 |
amit.gupta |
187 |
var kycDesign = $(row).find(".kycDesign input[type=hidden]").val();
|
| 28908 |
tejbeer |
188 |
|
| 28600 |
amit.gupta |
189 |
var code = $(row).find("td:eq(12) input[type='text']").val();
|
| 28908 |
tejbeer |
190 |
console.log("code" + code);
|
|
|
191 |
|
|
|
192 |
|
| 28600 |
amit.gupta |
193 |
var receePlaned = $(row).find("td:eq(13) input[type='date']").val();
|
|
|
194 |
if (receePlaned != "") {
|
|
|
195 |
receePlaned = receePlaned + "T00:00:00";
|
|
|
196 |
}
|
|
|
197 |
var receeActual = $(row).find("td:eq(14) input[type='date']").val();
|
|
|
198 |
if (receeActual != "") {
|
|
|
199 |
receeActual = receeActual + "T00:00:00";
|
|
|
200 |
}
|
| 28908 |
tejbeer |
201 |
console.log("receeActual" + receeActual);
|
|
|
202 |
|
|
|
203 |
|
|
|
204 |
|
| 28848 |
manish |
205 |
var twoDBoqPlanedDate = $(row).find("td:eq(16) input[type='date']").val();
|
| 28600 |
amit.gupta |
206 |
if (twoDBoqPlanedDate != "") {
|
|
|
207 |
twoDBoqPlanedDate = twoDBoqPlanedDate + "T00:00:00";
|
|
|
208 |
}
|
| 28908 |
tejbeer |
209 |
|
| 28848 |
manish |
210 |
var twoDBoqdate = $(row).find("td:eq(17) input[type='date']").val();
|
| 28600 |
amit.gupta |
211 |
if (twoDBoqdate != "") {
|
|
|
212 |
twoDBoqdate = twoDBoqdate + "T00:00:00";
|
|
|
213 |
}
|
|
|
214 |
var twodBOQ = $(row).find(".twoDBoq input[type=hidden]").val();
|
| 28908 |
tejbeer |
215 |
|
| 28848 |
manish |
216 |
var threeDBoqPlanedDate = $(row).find("td:eq(19) input[type='date']").val();
|
| 28600 |
amit.gupta |
217 |
if (threeDBoqPlanedDate != "") {
|
|
|
218 |
threeDBoqPlanedDate = threeDBoqPlanedDate + "T00:00:00";
|
|
|
219 |
}
|
| 28908 |
tejbeer |
220 |
|
| 28848 |
manish |
221 |
var threeDBoqdate = $(row).find("td:eq(20) input[type='date']").val();
|
| 28600 |
amit.gupta |
222 |
if (threeDBoqdate != "") {
|
|
|
223 |
threeDBoqdate = threeDBoqdate + "T00:00:00";
|
|
|
224 |
}
|
| 28908 |
tejbeer |
225 |
|
| 28600 |
amit.gupta |
226 |
var threeDBoq = $(row).find(".threeDBoq input[type=hidden]").val();
|
| 28908 |
tejbeer |
227 |
|
| 28848 |
manish |
228 |
var poVenderPlanedDate = $(row).find("td:eq(22) input[type='date']").val();
|
| 28600 |
amit.gupta |
229 |
if (poVenderPlanedDate != "") {
|
|
|
230 |
poVenderPlanedDate = poVenderPlanedDate + "T00:00:00";
|
|
|
231 |
}
|
| 28848 |
manish |
232 |
var poVenderDate = $(row).find("td:eq(23) input[type='date']").val();
|
| 28600 |
amit.gupta |
233 |
if (poVenderDate != "") {
|
|
|
234 |
poVenderDate = poVenderDate + "T00:00:00";
|
|
|
235 |
}
|
| 28908 |
tejbeer |
236 |
|
|
|
237 |
|
| 28848 |
manish |
238 |
var briefingPartnerPlaned = $(row).find("td:eq(24) input[type='date']").val();
|
| 28600 |
amit.gupta |
239 |
if (briefingPartnerPlaned != "") {
|
|
|
240 |
briefingPartnerPlaned = briefingPartnerPlaned + "T00:00:00";
|
|
|
241 |
}
|
| 28848 |
manish |
242 |
var briefingPartner = $(row).find("td:eq(25) input[type='date']").val();
|
| 28600 |
amit.gupta |
243 |
if (briefingPartner != "") {
|
|
|
244 |
briefingPartner = briefingPartner + "T00:00:00";
|
|
|
245 |
}
|
| 28848 |
manish |
246 |
var deploymentPlanedDate = $(row).find("td:eq(26) input[type='date']").val();
|
| 28600 |
amit.gupta |
247 |
if (deploymentPlanedDate != "") {
|
|
|
248 |
deploymentPlanedDate = deploymentPlanedDate + "T00:00:00";
|
|
|
249 |
}
|
| 28848 |
manish |
250 |
var deploymentDate = $(row).find("td:eq(27) input[type='date']").val();
|
| 28600 |
amit.gupta |
251 |
if (deploymentDate != "") {
|
|
|
252 |
deploymentDate = deploymentDate + "T00:00:00";
|
|
|
253 |
}
|
| 28908 |
tejbeer |
254 |
|
|
|
255 |
|
| 28848 |
manish |
256 |
var finalPicsOutletPlanedDate = $(row).find("td:eq(28) input[type='date']").val();
|
| 28600 |
amit.gupta |
257 |
if (finalPicsOutletPlanedDate != "") {
|
|
|
258 |
finalPicsOutletPlanedDate = finalPicsOutletPlanedDate + "T00:00:00";
|
|
|
259 |
}
|
| 28908 |
tejbeer |
260 |
|
| 28848 |
manish |
261 |
var finalPicsOutletDate = $(row).find("td:eq(29) input[type='date']").val();
|
| 28600 |
amit.gupta |
262 |
if (finalPicsOutletDate != "") {
|
|
|
263 |
finalPicsOutletDate = finalPicsOutletDate + "T00:00:00";
|
|
|
264 |
}
|
|
|
265 |
var finalPicsOutlet = $(row).find(".finalPics input[type=hidden]").val();
|
| 27829 |
tejbeer |
266 |
|
| 28848 |
manish |
267 |
var nocDate = $(row).find("td:eq(31) input[type='date']").val();
|
| 28600 |
amit.gupta |
268 |
if (nocDate != "") {
|
|
|
269 |
nocDate = nocDate + "T00:00:00";
|
|
|
270 |
}
|
|
|
271 |
var noc = $(row).find(".noc input[type=hidden]").val();
|
|
|
272 |
var prebookingListingObject = {};
|
|
|
273 |
prebookingListingObject['id'] = id
|
| 28908 |
tejbeer |
274 |
prebookingListingObject['outletName'] = outletName
|
|
|
275 |
|
| 28600 |
amit.gupta |
276 |
prebookingListingObject['createdTimestamp'] = createdTimestamp
|
|
|
277 |
prebookingListingObject['acquiredDate'] = acquiredDate
|
| 28908 |
tejbeer |
278 |
|
| 28600 |
amit.gupta |
279 |
prebookingListingObject['phoneNumber'] = phoneNumber
|
| 28908 |
tejbeer |
280 |
|
| 28600 |
amit.gupta |
281 |
prebookingListingObject['city'] = city
|
|
|
282 |
prebookingListingObject['stateHead'] = stateHead
|
|
|
283 |
prebookingListingObject['bdm'] = bdm
|
|
|
284 |
|
|
|
285 |
prebookingListingObject['agreedBrandFees'] = agreedBrandFees
|
| 28908 |
tejbeer |
286 |
|
| 28600 |
amit.gupta |
287 |
prebookingListingObject['investmentDate'] = investmentDate
|
|
|
288 |
prebookingListingObject['loi'] = loi
|
| 28610 |
amit.gupta |
289 |
prebookingListingObject['kycDesign'] = kycDesign
|
| 28600 |
amit.gupta |
290 |
prebookingListingObject['code'] = code
|
|
|
291 |
prebookingListingObject['receePlaned'] = receePlaned
|
|
|
292 |
prebookingListingObject['receeActual'] = receeActual
|
|
|
293 |
prebookingListingObject['twoDBoqPlanedDate'] = twoDBoqPlanedDate
|
|
|
294 |
prebookingListingObject['twoDBoqdate'] = twoDBoqdate
|
|
|
295 |
prebookingListingObject['twodBOQ'] = twodBOQ
|
|
|
296 |
prebookingListingObject['threeDBoqPlanedDate'] = threeDBoqPlanedDate
|
|
|
297 |
prebookingListingObject['threeDBoqdate'] = threeDBoqdate
|
|
|
298 |
prebookingListingObject['threeDBoq'] = threeDBoq
|
|
|
299 |
prebookingListingObject['poVenderPlanedDate'] = poVenderPlanedDate
|
|
|
300 |
prebookingListingObject['poVenderDate'] = poVenderDate
|
| 28908 |
tejbeer |
301 |
|
| 28600 |
amit.gupta |
302 |
prebookingListingObject['briefingPartnerPlaned'] = briefingPartnerPlaned
|
|
|
303 |
prebookingListingObject['briefingPartner'] = briefingPartner
|
|
|
304 |
prebookingListingObject['deploymentPlanedDate'] = deploymentPlanedDate
|
|
|
305 |
prebookingListingObject['deploymentDate'] = deploymentDate
|
|
|
306 |
prebookingListingObject['finalPicsOutletPlanedDate'] = finalPicsOutletPlanedDate
|
|
|
307 |
prebookingListingObject['finalPicsOutletDate'] = finalPicsOutletDate
|
|
|
308 |
prebookingListingObject['finalPicsOutlet'] = finalPicsOutlet
|
|
|
309 |
prebookingListingObject['nocDate'] = nocDate
|
|
|
310 |
prebookingListingObject['noc'] = noc
|
|
|
311 |
|
| 28908 |
tejbeer |
312 |
|
|
|
313 |
|
| 28600 |
amit.gupta |
314 |
var jsonObject = JSON.stringify(prebookingListingObject);
|
|
|
315 |
|
|
|
316 |
console.log(jsonObject);
|
|
|
317 |
|
|
|
318 |
if (confirm("Are you sure you want to submit the request") == true) {
|
| 28908 |
tejbeer |
319 |
doAjaxRequestWithJsonHandler(context + "/partnerOnboardingDesignaTatPanel", "POST", jsonObject, function(response) {
|
|
|
320 |
row.html(response);
|
|
|
321 |
row.css("background-color", "#F8F8FF");
|
| 28600 |
amit.gupta |
322 |
|
|
|
323 |
});
|
|
|
324 |
}
|
|
|
325 |
|
|
|
326 |
});
|
|
|
327 |
|
|
|
328 |
|
| 28940 |
manish |
329 |
$(document).on('click', ".noticPartneronboarding", function() {
|
|
|
330 |
var id = $(this).data('id');
|
|
|
331 |
console.log(id);
|
|
|
332 |
if (confirm("Are you sure you want to Notice Isssue this Partner") == true) {
|
|
|
333 |
doPostAjaxRequestHandler(context + "/partnerOnboardingNotice?id=" + id,
|
|
|
334 |
function(response) {
|
|
|
335 |
|
|
|
336 |
console.log("reponse" + response);
|
|
|
337 |
if (response == 'true') {
|
|
|
338 |
alert("successfully Done");
|
|
|
339 |
|
|
|
340 |
|
|
|
341 |
panelListing("main-content");
|
|
|
342 |
}
|
|
|
343 |
});
|
|
|
344 |
}
|
|
|
345 |
});
|
| 28900 |
manish |
346 |
|
| 28940 |
manish |
347 |
|
|
|
348 |
|
| 28900 |
manish |
349 |
$(document).on('click', ".holdPartnerOnboarding", function() {
|
|
|
350 |
var id = $(this).data('id');
|
|
|
351 |
console.log(id);
|
|
|
352 |
if (confirm("Are you sure you want to hold this Partner") == true) {
|
|
|
353 |
doPostAjaxRequestHandler(context + "/partnerOnboardingHold?id=" + id,
|
|
|
354 |
function(response) {
|
| 28600 |
amit.gupta |
355 |
|
| 28900 |
manish |
356 |
console.log("reponse" + response);
|
|
|
357 |
if (response == 'true') {
|
|
|
358 |
alert("successfully Done");
|
|
|
359 |
|
|
|
360 |
|
|
|
361 |
panelListing("main-content");
|
|
|
362 |
}
|
|
|
363 |
});
|
|
|
364 |
}
|
|
|
365 |
});
|
|
|
366 |
|
|
|
367 |
|
|
|
368 |
$(document).on('click', ".unHoldPartnerOnboarding", function() {
|
|
|
369 |
var id = $(this).data('id');
|
|
|
370 |
console.log(id);
|
|
|
371 |
if (confirm("Are you sure you want to Unhold this Partner") == true) {
|
|
|
372 |
doPostAjaxRequestHandler(context + "/partnerOnboardingUnhold?id=" + id,
|
|
|
373 |
function(response) {
|
|
|
374 |
|
|
|
375 |
console.log("reponse" + response);
|
|
|
376 |
if (response == 'true') {
|
|
|
377 |
alert("successfully Done");
|
|
|
378 |
panelListing("main-content");
|
|
|
379 |
}
|
|
|
380 |
});
|
|
|
381 |
}
|
|
|
382 |
});
|
|
|
383 |
|
| 27829 |
tejbeer |
384 |
$(document).on('click', ".partner-onboarding-index", function() {
|
| 27763 |
tejbeer |
385 |
panelListing("main-content");
|
|
|
386 |
});
|
| 27813 |
tejbeer |
387 |
|
|
|
388 |
|
|
|
389 |
$(document).on('click', ".partner-onboarding-open", function() {
|
|
|
390 |
console.log("yes");
|
| 27799 |
tejbeer |
391 |
partnerOnboardingOpen("main-content");
|
|
|
392 |
});
|
| 28908 |
tejbeer |
393 |
|
| 28600 |
amit.gupta |
394 |
$(document).on('click', ".design-completed", function() {
|
|
|
395 |
console.log("yes");
|
|
|
396 |
partnerOnboardinDesignCompleted("main-content");
|
|
|
397 |
});
|
| 28908 |
tejbeer |
398 |
|
| 28600 |
amit.gupta |
399 |
$(document).on('click', ".design_tat", function() {
|
|
|
400 |
console.log("yes");
|
|
|
401 |
partnerOnboardingDesign("main-content");
|
|
|
402 |
});
|
| 27813 |
tejbeer |
403 |
|
| 27829 |
tejbeer |
404 |
$(document).on('click', ".partner-onboarding-reject", function() {
|
| 27799 |
tejbeer |
405 |
console.log("helo");
|
| 27763 |
tejbeer |
406 |
|
| 27799 |
tejbeer |
407 |
partnerOnboardingReject("main-content");
|
|
|
408 |
});
|
|
|
409 |
|
| 27813 |
tejbeer |
410 |
$(document).on('input', 'table#example input[type=file]', function() {
|
|
|
411 |
if (confirm('Confirm upload ?')) {
|
|
|
412 |
var fileSelector = $(this)[0];
|
|
|
413 |
if (fileSelector != undefined
|
|
|
414 |
&& fileSelector.files[0] != undefined) {
|
|
|
415 |
var url = `${context}/document-upload`;
|
|
|
416 |
console.log(url);
|
|
|
417 |
var file = this.files[0];
|
| 28908 |
tejbeer |
418 |
console.log("file" + file);
|
| 27813 |
tejbeer |
419 |
let fileInput = $(this);
|
| 28908 |
tejbeer |
420 |
console.log("fileInput" + file);
|
| 27813 |
tejbeer |
421 |
doAjaxUploadRequestHandler(
|
|
|
422 |
url,
|
|
|
423 |
'POST',
|
|
|
424 |
file,
|
|
|
425 |
function(response) {
|
|
|
426 |
console.log(response);
|
|
|
427 |
var documentId = response.response.document_id;
|
|
|
428 |
console.log("documentId : " + documentId);
|
|
|
429 |
fileInput.closest('td').find("input[type=hidden]").val(documentId);
|
|
|
430 |
});
|
|
|
431 |
// alert("Retailer Shop Document
|
|
|
432 |
// is required");
|
|
|
433 |
}
|
|
|
434 |
} else {
|
|
|
435 |
// Do nothing!
|
|
|
436 |
}
|
|
|
437 |
});
|
| 28977 |
manish |
438 |
|
|
|
439 |
|
|
|
440 |
$(document).on('input', 'table#partnerVerification input[type=file]', function() {
|
|
|
441 |
if (confirm('Confirm upload ?')) {
|
|
|
442 |
var fileSelector = $(this)[0];
|
|
|
443 |
if (fileSelector != undefined
|
|
|
444 |
&& fileSelector.files[0] != undefined) {
|
|
|
445 |
var url = `${context}/document-upload`;
|
|
|
446 |
console.log(url);
|
|
|
447 |
var file = this.files[0];
|
|
|
448 |
console.log("file" + file);
|
|
|
449 |
let fileInput = $(this);
|
|
|
450 |
console.log("fileInput" + file);
|
|
|
451 |
doAjaxUploadRequestHandler(
|
|
|
452 |
url,
|
|
|
453 |
'POST',
|
|
|
454 |
file,
|
|
|
455 |
function(response) {
|
|
|
456 |
console.log(response);
|
|
|
457 |
var documentId = response.response.document_id;
|
|
|
458 |
console.log("documentId : " + documentId);
|
|
|
459 |
fileInput.closest('td').find("input[type=hidden]").val(documentId);
|
|
|
460 |
});
|
|
|
461 |
// alert("Retailer Shop Document
|
|
|
462 |
// is required");
|
|
|
463 |
}
|
|
|
464 |
} else {
|
|
|
465 |
// Do nothing!
|
|
|
466 |
}
|
|
|
467 |
});
|
|
|
468 |
|
|
|
469 |
|
|
|
470 |
|
| 28600 |
amit.gupta |
471 |
$(document).on('input', 'table#OnboardingDesign input[type=file]', function() {
|
|
|
472 |
if (confirm('Confirm upload ?')) {
|
|
|
473 |
var fileSelector = $(this)[0];
|
|
|
474 |
if (fileSelector != undefined
|
|
|
475 |
&& fileSelector.files[0] != undefined) {
|
|
|
476 |
var url = `${context}/document-upload`;
|
|
|
477 |
console.log(url);
|
|
|
478 |
var file = this.files[0];
|
| 28908 |
tejbeer |
479 |
console.log("file" + file);
|
| 28600 |
amit.gupta |
480 |
let fileInput = $(this);
|
| 28908 |
tejbeer |
481 |
console.log("fileInput" + file);
|
| 28600 |
amit.gupta |
482 |
doAjaxUploadRequestHandler(
|
|
|
483 |
url,
|
|
|
484 |
'POST',
|
|
|
485 |
file,
|
|
|
486 |
function(response) {
|
|
|
487 |
console.log(response);
|
|
|
488 |
var documentId = response.response.document_id;
|
|
|
489 |
console.log("documentId : " + documentId);
|
|
|
490 |
fileInput.closest('td').find("input[type=hidden]").val(documentId);
|
|
|
491 |
});
|
|
|
492 |
// alert("Retailer Shop Document
|
|
|
493 |
// is required");
|
|
|
494 |
}
|
|
|
495 |
} else {
|
|
|
496 |
// Do nothing!
|
|
|
497 |
}
|
|
|
498 |
});
|
| 27799 |
tejbeer |
499 |
|
| 27829 |
tejbeer |
500 |
$(document).on('click', '#newmodal', function() {
|
| 28977 |
manish |
501 |
|
|
|
502 |
|
|
|
503 |
var prebookingListingObject = {};
|
|
|
504 |
var outletName = $('#outLetName1').val();
|
|
|
505 |
var phoneNumber =$('#number1').val();
|
|
|
506 |
|
|
|
507 |
if (outletName == "") {
|
|
|
508 |
|
|
|
509 |
alert("outletName is required ");
|
|
|
510 |
return;
|
|
|
511 |
}
|
|
|
512 |
prebookingListingObject['outletName'] = $('#outLetName1').val();
|
|
|
513 |
|
|
|
514 |
if (phoneNumber == "") {
|
|
|
515 |
alert("Phone Number is required ");
|
|
|
516 |
return false;
|
|
|
517 |
|
|
|
518 |
}
|
|
|
519 |
if(phoneNumber.length > 6 && phoneNumber.length < 11) {
|
|
|
520 |
|
|
|
521 |
prebookingListingObject['phoneNumber'] = $('#number1').val();
|
|
|
522 |
|
|
|
523 |
}
|
|
|
524 |
else
|
|
|
525 |
{
|
|
|
526 |
alert("Number should be greater then 6 and less then 11");
|
|
|
527 |
return false;
|
|
|
528 |
|
|
|
529 |
}
|
|
|
530 |
|
|
|
531 |
acquireddate1 = $('#acquireddate1').val();
|
|
|
532 |
if (acquireddate1 != "") {
|
|
|
533 |
acquireddate1 = acquireddate1 + "T00:00:00";
|
|
|
534 |
}
|
|
|
535 |
prebookingListingObject['authId'] = $('#authUserOnboarding').val();
|
| 27813 |
tejbeer |
536 |
|
| 28977 |
manish |
537 |
prebookingListingObject['acquiredDate'] = acquireddate1
|
|
|
538 |
|
| 27813 |
tejbeer |
539 |
|
| 28977 |
manish |
540 |
var json = JSON.stringify(prebookingListingObject);
|
| 27829 |
tejbeer |
541 |
console.log(json);
|
|
|
542 |
doAjaxRequestWithJsonHandler(
|
|
|
543 |
context
|
|
|
544 |
+ "/partnerOnBoardingListing",
|
|
|
545 |
"POST",
|
|
|
546 |
json,
|
|
|
547 |
function(response) {
|
| 27813 |
tejbeer |
548 |
|
| 28908 |
tejbeer |
549 |
panelListing("main-content");
|
|
|
550 |
|
|
|
551 |
|
| 27829 |
tejbeer |
552 |
});
|
|
|
553 |
});
|
| 27813 |
tejbeer |
554 |
|
| 27829 |
tejbeer |
555 |
var table = $('#example').DataTable();
|
|
|
556 |
$(document).on('dblclick', '#example tbody tr', function() {
|
| 27813 |
tejbeer |
557 |
|
| 27829 |
tejbeer |
558 |
var data = table.row(this).data();
|
| 28977 |
manish |
559 |
var statusHold= $(this).find("td:eq(37) button[type='submit']").val();
|
| 28900 |
manish |
560 |
|
|
|
561 |
console.log("statusHold"+statusHold);
|
|
|
562 |
if(statusHold.localeCompare("hold") )
|
|
|
563 |
{
|
|
|
564 |
$(this).find(":input").attr('disabled', true);
|
| 28977 |
manish |
565 |
$(this).find("td:eq(37) button[type='submit']").attr('disabled', false);
|
| 28900 |
manish |
566 |
$(this).find("td:eq(36) button[type='submit']").attr('disabled', false);
|
|
|
567 |
}
|
|
|
568 |
else{
|
|
|
569 |
$(this).find(":input").attr('disabled', false).show();
|
| 28977 |
manish |
570 |
$(this).find(":selected").attr('disabled', false).show();
|
|
|
571 |
|
| 28900 |
manish |
572 |
}
|
| 28881 |
manish |
573 |
$(this).find("input[name=rbmAuthId]").attr('disabled', true);
|
| 28900 |
manish |
574 |
$(this).find("input[name=verificationStatusOnboarding]").attr('disabled', true);
|
|
|
575 |
|
|
|
576 |
$(this).find("input[name=code1]").attr('disabled', true);
|
| 27829 |
tejbeer |
577 |
$(this).css("background-color", "#87d3f8");
|
| 27884 |
tejbeer |
578 |
let a=12;
|
|
|
579 |
let b=12;
|
|
|
580 |
console.log("yes"+a==b);
|
|
|
581 |
|
| 27829 |
tejbeer |
582 |
});
|
| 28908 |
tejbeer |
583 |
|
| 28600 |
amit.gupta |
584 |
var table = $('#OnboardingDesign').DataTable();
|
|
|
585 |
$(document).on('dblclick', '#OnboardingDesign tbody tr', function() {
|
| 27813 |
tejbeer |
586 |
|
| 28600 |
amit.gupta |
587 |
var data = table.row(this).data();
|
| 28908 |
tejbeer |
588 |
|
|
|
589 |
$(this).find(":input").attr('disabled', false).show();
|
|
|
590 |
|
|
|
591 |
$(this).find("input[name=acquireddate]").attr('disabled', true);
|
|
|
592 |
$(this).find("input[name=outlateName]").attr('disabled', true);
|
|
|
593 |
$(this).find("input[name=phonenumber1]").attr('disabled', true);
|
|
|
594 |
$(this).find("input[name=kyc1]").attr('disabled', true);
|
|
|
595 |
$(this).find("input[name=city1]").attr('disabled', true);
|
|
|
596 |
$(this).find("input[name=shead1]").attr('disabled', true);
|
|
|
597 |
$(this).find("input[name=bdm1]").attr('disabled', true);
|
|
|
598 |
$(this).find("input[name=abrand1]").attr('disabled', true);
|
|
|
599 |
$(this).find("input[name=recbrand1]").attr('disabled', true);
|
|
|
600 |
$(this).find("input[name=BrandFeesdate1]").attr('disabled', true);
|
|
|
601 |
$(this).find("input[name=idate1]").attr('disabled', true);
|
|
|
602 |
$(this).find("input[name=loi1]").attr('disabled', true);
|
|
|
603 |
$(this).find("input[name=code1]").attr('disabled', true);
|
|
|
604 |
$(this).find("input[name=rplaned1]").attr('disabled', true);
|
|
|
605 |
$(this).find("input[name=stockPaymentDesign]").attr('disabled', true);
|
|
|
606 |
$(this).find("input[name=twoDBoq1]").attr('disabled', true);
|
|
|
607 |
$(this).find("input[name=threeBoqDate1]").attr('disabled', true);
|
|
|
608 |
$(this).find("input[name=poVenderDate1]").attr('disabled', true);
|
|
|
609 |
$(this).find("input[name=briefingPartnerPlanedDate1]").attr('disabled', true);
|
|
|
610 |
$(this).find("input[name=deploymentPlanedDate]").attr('disabled', true);
|
|
|
611 |
$(this).find("input[name=FinalPicsOutLets]").attr('disabled', true);
|
|
|
612 |
$(this).find("input[name=poVenderDate1]").attr('disabled', true);
|
| 28600 |
amit.gupta |
613 |
$(this).css("background-color", "#87d3f8");
|
| 28908 |
tejbeer |
614 |
let a = 12;
|
|
|
615 |
let b = 12;
|
|
|
616 |
console.log("yes" + a == b);
|
|
|
617 |
|
| 28600 |
amit.gupta |
618 |
});
|
|
|
619 |
|
|
|
620 |
|
| 27829 |
tejbeer |
621 |
$(document).on('click', ".delete", function() {
|
| 27813 |
tejbeer |
622 |
|
| 27829 |
tejbeer |
623 |
var id = $(this).data('id');
|
|
|
624 |
console.log('helo');
|
|
|
625 |
var id = $(this).data('id');
|
|
|
626 |
console.log(id);
|
|
|
627 |
if (confirm("Are you sure your outlet is open") == true) {
|
|
|
628 |
doPostAjaxRequestHandler(context + "/partnerOnBoardingOpen?id=" + id,
|
|
|
629 |
function(response) {
|
| 27813 |
tejbeer |
630 |
|
| 27829 |
tejbeer |
631 |
console.log("reponse" + response);
|
|
|
632 |
if (response == 'true') {
|
|
|
633 |
alert("congratulations your outlet is successfully open");
|
| 27813 |
tejbeer |
634 |
|
| 27829 |
tejbeer |
635 |
panelListing("main-content");
|
|
|
636 |
}
|
|
|
637 |
});
|
|
|
638 |
}
|
| 27813 |
tejbeer |
639 |
|
| 27829 |
tejbeer |
640 |
});
|
| 28600 |
amit.gupta |
641 |
$(document).on('click', ".design-complete", function() {
|
|
|
642 |
var id = $(this).data('id');
|
|
|
643 |
console.log('helo');
|
|
|
644 |
var id = $(this).data('id');
|
|
|
645 |
console.log(id);
|
|
|
646 |
if (confirm("Are you sure your Design TAT is Complete") == true) {
|
|
|
647 |
doPostAjaxRequestHandler(context + "/partnerDesignTatCompleted?id=" + id,
|
|
|
648 |
function(response) {
|
| 27813 |
tejbeer |
649 |
|
| 28600 |
amit.gupta |
650 |
console.log("reponse" + response);
|
|
|
651 |
if (response == 'true') {
|
|
|
652 |
alert("congratulations your Desiging is successfully Done");
|
| 28900 |
manish |
653 |
partnerOnboardingDesign("main-content");
|
| 28600 |
amit.gupta |
654 |
}
|
|
|
655 |
});
|
|
|
656 |
}
|
|
|
657 |
|
|
|
658 |
});
|
|
|
659 |
|
|
|
660 |
|
| 27829 |
tejbeer |
661 |
$(document).on('click', ".rejectpartneronboarding", function() {
|
|
|
662 |
var id = $(this).data('id');
|
|
|
663 |
console.log('helo');
|
|
|
664 |
var id = $(this).data('id');
|
|
|
665 |
console.log(id);
|
|
|
666 |
if (confirm("Are you sure you want to reject the request") == true) {
|
|
|
667 |
doPostAjaxRequestHandler(context + "/partnerOnBoardingReject?id=" + id,
|
|
|
668 |
function(response) {
|
|
|
669 |
|
|
|
670 |
console.log("reponse" + response);
|
|
|
671 |
if (response == 'true') {
|
|
|
672 |
alert("successfully rejected");
|
|
|
673 |
panelListing("main-content");
|
|
|
674 |
}
|
|
|
675 |
});
|
|
|
676 |
}
|
|
|
677 |
|
|
|
678 |
});
|
|
|
679 |
|
| 27763 |
tejbeer |
680 |
});
|
|
|
681 |
|
| 27855 |
tejbeer |
682 |
$(document).on('click', ".Del", function() {
|
| 28908 |
tejbeer |
683 |
var $td = $(this).closest("td");
|
|
|
684 |
//var delDoc= $(this).closest('td').find('.gst', "input[type=hidden]").val();
|
| 27855 |
tejbeer |
685 |
//var columnName= $(this).closest('td' , "input[type=hidden]").val();
|
| 28908 |
tejbeer |
686 |
var dataDel = $td.find("input[type=hidden]").val('0');
|
|
|
687 |
dataDel = 0;
|
| 27855 |
tejbeer |
688 |
console.log(dataDel);
|
| 28715 |
amit.gupta |
689 |
if (confirm("Are you sure you want to delete this doc") == true) {
|
| 27813 |
tejbeer |
690 |
|
| 28908 |
tejbeer |
691 |
if (dataDel == 0) {
|
|
|
692 |
$td.css({ 'background-color': 'pink' });
|
|
|
693 |
console.log("true");
|
|
|
694 |
$td.find('a', ".download").hide();
|
|
|
695 |
$td.find('a', ".Del").hide();
|
|
|
696 |
}
|
| 27855 |
tejbeer |
697 |
|
| 28908 |
tejbeer |
698 |
}
|
|
|
699 |
});
|
| 28600 |
amit.gupta |
700 |
|
| 28908 |
tejbeer |
701 |
|
|
|
702 |
|
| 27813 |
tejbeer |
703 |
|
|
|
704 |
|
| 27829 |
tejbeer |
705 |
function panelListing(domId) {
|
|
|
706 |
doAjaxRequestHandler(context + "/partnerOnBoardingPanel", "GET",
|
|
|
707 |
function(response) {
|
|
|
708 |
$('#' + domId).html(response);
|
|
|
709 |
});
|
|
|
710 |
}
|
| 27813 |
tejbeer |
711 |
|
|
|
712 |
|
|
|
713 |
|
| 27829 |
tejbeer |
714 |
|
| 27763 |
tejbeer |
715 |
function panelListing(domId) {
|
|
|
716 |
doAjaxRequestHandler(context + "/partnerOnBoardingPanel", "GET",
|
|
|
717 |
function(response) {
|
|
|
718 |
$('#' + domId).html(response);
|
|
|
719 |
});
|
|
|
720 |
}
|
| 27799 |
tejbeer |
721 |
function partnerOnboardingOpen(domId) {
|
|
|
722 |
doAjaxRequestHandler(context + "/partnerOnBoardingOpenShow", "GET",
|
|
|
723 |
function(response) {
|
|
|
724 |
$('#' + domId).html(response);
|
|
|
725 |
});
|
|
|
726 |
}
|
| 28600 |
amit.gupta |
727 |
|
|
|
728 |
function partnerOnboardinDesignCompleted(domId) {
|
|
|
729 |
doAjaxRequestHandler(context + "/DesignTatCompletedShow", "GET",
|
|
|
730 |
function(response) {
|
|
|
731 |
$('#' + domId).html(response);
|
|
|
732 |
});
|
|
|
733 |
}
|
|
|
734 |
|
|
|
735 |
function partnerOnboardingDesign(domId) {
|
|
|
736 |
doAjaxRequestHandler(context + "/partnerOnBoardingDesign", "GET",
|
|
|
737 |
function(response) {
|
|
|
738 |
$('#' + domId).html(response);
|
|
|
739 |
});
|
|
|
740 |
}
|
|
|
741 |
|
| 27799 |
tejbeer |
742 |
function partnerOnboardingReject(domId) {
|
|
|
743 |
doAjaxRequestHandler(context + "/partnerOnBoardingRejectShow", "GET",
|
|
|
744 |
function(response) {
|
|
|
745 |
$('#' + domId).html(response);
|
|
|
746 |
});
|
|
|
747 |
}
|
| 27763 |
tejbeer |
748 |
|
| 27813 |
tejbeer |
749 |
|
| 27763 |
tejbeer |
750 |
function panelOnBoardingListing(domId) {
|
|
|
751 |
doAjaxRequestHandler(context + "/partnerOnBoardingListing", "POST",
|
|
|
752 |
function(response) {
|
|
|
753 |
$('#' + domId).html(response);
|
|
|
754 |
});
|
|
|
755 |
|
|
|
756 |
}
|
|
|
757 |
|
|
|
758 |
|
| 28908 |
tejbeer |
759 |
function panelListing(domId) {
|
|
|
760 |
doAjaxRequestHandler(context + "/partnerOnBoardingPanel", "GET",
|
|
|
761 |
function(response) {
|
|
|
762 |
$('#' + domId).html(response);
|
|
|
763 |
});
|
|
|
764 |
}
|
| 27763 |
tejbeer |
765 |
|
|
|
766 |
|
| 27842 |
tejbeer |
767 |
|
| 28908 |
tejbeer |
768 |
|