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