Subversion Repositories SmartDukaan

Rev

Rev 33879 | Rev 33891 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
33879 tejus.loha 1
$(document).on('click', ".partner_dealer_mapping", function () {
28848 manish 2
 
33879 tejus.loha 3
    console.log("Hello");
4
    partnerDealerMapping("main-content");
28848 manish 5
 
33879 tejus.loha 6
});
28848 manish 7
 
33879 tejus.loha 8
$(document).on('click', ".partner-onboarding-legal-index", function () {
29214 tejbeer 9
 
33879 tejus.loha 10
    console.log("Hello");
11
    partnerOnboardingLegal("main-content");
28885 manish 12
 
33879 tejus.loha 13
});
29104 manish 14
 
33879 tejus.loha 15
$(document).on('click', ".partner_onboarding_verification", function () {
29104 manish 16
 
33879 tejus.loha 17
    partnerOnboardingVerification("main-content");
28848 manish 18
 
33879 tejus.loha 19
});
20
$(document).on('click', ".noc_upload_verification", function () {
21
    nocUploadPanel("main-content");
22
});
28885 manish 23
 
33879 tejus.loha 24
$(document).on('click', ".partner-dashboard-training", function () {
28885 manish 25
 
33879 tejus.loha 26
    console.log("Hello");
27
    partnerDashboardTraining("main-content");
28848 manish 28
 
33879 tejus.loha 29
});
28848 manish 30
 
33879 tejus.loha 31
$(document).on(
32
    'click',
33
    ".partner-dealer-submit",
34
    function () {
28848 manish 35
 
33879 tejus.loha 36
        var row = $(this).closest("tr");
37
        console.log(row);
38
        var brandlength = $(this).data("brandlength");
39
        var onboardingId = $(row).find("td:eq(0)").text();
40
        var partnerCode = $(row).find("td:eq(4)").text();
28848 manish 41
 
33879 tejus.loha 42
        console.log("brandlength" + brandlength)
43
        var brandCodes = []
44
        for (let i = 5; i < 5 + brandlength; i++) {
28848 manish 45
 
33879 tejus.loha 46
            brandCodes.push($(row).find(
47
                "td:eq(" + i + ") input[type='text']").val());
48
        }
28848 manish 49
 
33879 tejus.loha 50
        console.log("bands" + brandCodes);
28848 manish 51
 
33879 tejus.loha 52
        dmsCode = {
53
            "onboardingId": onboardingId,
54
            "partnerCode": partnerCode,
28848 manish 55
 
33879 tejus.loha 56
            "brands": brandCodes,
57
        }
28848 manish 58
 
33879 tejus.loha 59
        var jsonObject = JSON.stringify(dmsCode)
28848 manish 60
 
33879 tejus.loha 61
        console.log("jsonObject" + jsonObject);
62
        if (confirm("Are you sure you want to submit") == true) {
63
            doAjaxRequestWithJsonHandler(context + "/partnerDealerSubmit",
64
                "POST", jsonObject, function (response) {
28848 manish 65
 
33879 tejus.loha 66
                    row.html(response);
28848 manish 67
 
33879 tejus.loha 68
                });
69
        }
70
    });
28848 manish 71
 
33879 tejus.loha 72
$(document)
73
    .on(
74
        'click',
75
        ".partner-verification-resend",
76
        function () {
28848 manish 77
 
33879 tejus.loha 78
            var row = $(this).closest("tr");
79
            console.log(row);
28848 manish 80
 
33879 tejus.loha 81
            var onboardingId = $(row).find("td:eq(0)").text();
28848 manish 82
 
33879 tejus.loha 83
            if (confirm("Are you sure you want to Resend this verification") == true) {
84
                doPostAjaxRequestHandler(
85
                    context
86
                    + "/partnerVerificationResend?onboardingId="
87
                    + onboardingId, function (response) {
88
                        if (response == 'true') {
89
                            alert("Successfully Resend");
90
                            panelListing("main-content");
91
                        }
28848 manish 92
 
33879 tejus.loha 93
                    });
94
            }
28848 manish 95
 
33879 tejus.loha 96
        });
28848 manish 97
 
29213 tejbeer 98
 
33879 tejus.loha 99
$(document).on('click', ".partner-verifi-update-checkbox", function () {
100
    var row = $(this).closest("tr");
101
    console.log(row);
102
    var onboardingId = $(row).find("td:eq(0)").text();
29213 tejbeer 103
 
33879 tejus.loha 104
    doAjaxRequestHandler(context + "/partnerVerifiUpdateCheckbox?onboardingId=" + onboardingId, "GET", function (
105
        response) {
106
        $('.myVerificationCheckboxUpdate').html(response);
29213 tejbeer 107
 
33879 tejus.loha 108
    });
29213 tejbeer 109
 
110
 
33879 tejus.loha 111
});
29213 tejbeer 112
 
28848 manish 113
 
33879 tejus.loha 114
$(document).on('click', ".verification-checkbox-submit", function () {
29007 manish 115
 
116
 
33879 tejus.loha 117
    console.log("Hello");
118
    var row = $(this).closest("tr");
119
    console.log(row);
120
    var onboardingId = $(this).data('id');
29213 tejbeer 121
 
33879 tejus.loha 122
    var trainingVerifi = $('input[name="trainingVerifi"]').is(":checked") ? 1 : 0;
123
    var recceVerifi = $('input[name="recceVerifi"]').is(":checked") ? 1 : 0;
124
    var advStockPayment = $('input[name="advStockPayment"]').is(":checked") ? 1 : 0;
125
    var brandingVerifi = $('input[name="brandingVerifi"]').is(":checked") ? 1 : 0;
126
    var stockPay = $('input[name="stockPay"]').is(":checked") ? 1 : 0;
127
    var billingVerifi = $('input[name="billingVerifi"]').is(":checked") ? 1 : 0;
128
    var inaugrationVerifi = $('input[name="inaugrationVerifi"]').is(":checked") ? 1 : 0;
129
    var financialServices = $('input[name="financialServices"]').is(":checked") ? 1 : 0;
130
    var promotorVerifi = $('input[name="promotorVerifi"]').is(":checked") ? 1 : 0;
131
    var verifiComments = $('input[name="verifiCommentCheckbox"]').val();
29213 tejbeer 132
 
133
 
33879 tejus.loha 134
    var partnerVerficationCheckBoxObject = {};
135
    partnerVerficationCheckBoxObject['onboardingId'] = onboardingId
136
    partnerVerficationCheckBoxObject['trainingVerifi'] = trainingVerifi
137
    partnerVerficationCheckBoxObject['recceVerifi'] = recceVerifi
138
    partnerVerficationCheckBoxObject['advStockPayment'] = advStockPayment
139
    partnerVerficationCheckBoxObject['brandingVerifi'] = brandingVerifi
29213 tejbeer 140
 
33879 tejus.loha 141
    partnerVerficationCheckBoxObject['stockPay'] = stockPay
29213 tejbeer 142
 
33879 tejus.loha 143
    partnerVerficationCheckBoxObject['billingVerifi'] = billingVerifi
144
    partnerVerficationCheckBoxObject['inaugrationVerifi'] = inaugrationVerifi
145
    partnerVerficationCheckBoxObject['financialServices'] = financialServices
29213 tejbeer 146
 
33879 tejus.loha 147
    partnerVerficationCheckBoxObject['promotorVerifi'] = promotorVerifi
29213 tejbeer 148
 
33879 tejus.loha 149
    partnerVerficationCheckBoxObject['verifiCheckboxComment'] = verifiComments
29213 tejbeer 150
 
151
 
33879 tejus.loha 152
    var jsonObject = JSON
153
        .stringify(partnerVerficationCheckBoxObject);
29213 tejbeer 154
 
29007 manish 155
 
33879 tejus.loha 156
    console.log(jsonObject);
29213 tejbeer 157
 
158
 
33879 tejus.loha 159
    if (confirm("Are you sure you want to submit the request") == true) {
160
        doAjaxRequestWithJsonHandler(context
161
            + "/partnerVerificationCheckBoxSubmit", "POST",
162
            jsonObject, function (response) {
163
                alert("successfully Submitted");
164
                $('.myVerificationCheckboxUpdate').html(response);
29213 tejbeer 165
 
33879 tejus.loha 166
            });
167
    }
29007 manish 168
 
29213 tejbeer 169
 
33879 tejus.loha 170
});
29213 tejbeer 171
 
172
 
33879 tejus.loha 173
$(document)
174
    .on(
175
        'click',
176
        ".partner-verification-submit",
177
        function () {
29007 manish 178
 
33879 tejus.loha 179
            var row = $(this).closest("tr");
180
            console.log(row);
29213 tejbeer 181
 
33879 tejus.loha 182
            var onboardingId = $(row).find("td:eq(0)").text();
183
            var comment = $(row).find("td:eq(7) input[type='text']").val();
184
            var language = $(row).find("td:eq(8) option:selected").val();
185
            var approval = $(row).find("td:eq(10) option:selected").val();
29213 tejbeer 186
 
33879 tejus.loha 187
            console.log("onboardingId" + onboardingId);
188
            console.log("language" + language);
189
            console.log("approval" + approval);
190
            console.log("comment" + comment);
29213 tejbeer 191
 
33879 tejus.loha 192
            if (approval === "NO") {
193
                alert("You Can Not Approved Approval Status Without Received NOC From GT");
194
                return;
195
            }
29213 tejbeer 196
 
33879 tejus.loha 197
            var partnerVerficationObject = {};
198
            partnerVerficationObject.onboardingId = onboardingId;
199
            partnerVerficationObject.comment = comment;
200
            partnerVerficationObject.language = language;
201
            partnerVerficationObject.approval = approval;
29213 tejbeer 202
 
203
 
33879 tejus.loha 204
            var jsonObject = JSON.stringify(partnerVerficationObject);
205
            console.log(jsonObject);
28848 manish 206
 
33879 tejus.loha 207
            if (confirm("Are you sure you want to submit the request")) {
208
                doAjaxRequestWithJsonHandler(`${context}/partnerVerificationSubmit`, "POST", jsonObject, function (response) {
209
                    if (response === 'true') {
210
                        alert("Request submited");
211
                        var dataTable = $('#partnerVerification').DataTable();
212
                        dataTable.row(row).remove().draw(false);
213
                    } else {
214
                        alert("Request not submit");
215
                    }
216
                });
217
            }
28848 manish 218
 
33879 tejus.loha 219
        });
220
$(document).on('click', '.uploadNocDoc', function () {
221
    console.log("uploadNocDoc clicked");
222
    let data = [];
223
    let isValid = true;  // To track if all validations pass
224
    $('#requiredNoc tbody tr').each(function () {
225
        let brandId = $(this).find('.brandId').val();
226
        let documentId = $(this).find('.documentId').val();
33882 tejus.loha 227
        let commitAmount = $(this).find('.commitAmount').val();
228
        let isActive = $(this).find('.mk_LoiBrandCommit-isActive').val();
33879 tejus.loha 229
        let nocRequiredSelect = $(this).find('.noc-required');
230
        let nocRequired = nocRequiredSelect.val();
231
        console.log("nocRequired - ", nocRequired);
232
        console.log("documentId - ", documentId);
33882 tejus.loha 233
        console.log("commitAmount - ", commitAmount);
234
        console.log("isActive - ", isActive);
29763 tejbeer 235
 
33879 tejus.loha 236
        // Validate: If document is not uploaded, user must select "Not Required"
33882 tejus.loha 237
        if (parseInt(documentId) === 0 && nocRequired.trim() === "" && isActive === 'true') {
33879 tejus.loha 238
            alert("Please select 'Received' or 'Not Required' for brands without an uploaded NOC.");
239
            isValid = false;  // Mark validation as failed
240
            return;  // Exit loop early
241
        }
33882 tejus.loha 242
 
33879 tejus.loha 243
        data.push({
244
            brandId: brandId,
33882 tejus.loha 245
            amount: commitAmount,
246
            active: isActive,
33879 tejus.loha 247
            nocDocId: documentId || 0,  // Use null if no document uploaded
248
            nocGt: nocRequired
249
        });
28848 manish 250
 
33879 tejus.loha 251
    });
28885 manish 252
 
33879 tejus.loha 253
    // Stop if validation failed
254
    if (!isValid) {
255
        return;
256
    }
28885 manish 257
 
33879 tejus.loha 258
    // Get loiId from the button value
259
    let loiId = $(this).val();
29300 manish 260
 
33879 tejus.loha 261
    console.log("loiId - ", loiId);
262
    console.log("data - ", data);
263
    // Check if data is available to send
264
    if (data.length === 0) {
265
        alert("Please select a value for NOC in at least one row then try to click Upload all ");
266
        return;
267
    }
268
    let payload = JSON.stringify(data);
269
    console.log("data - ", data);
270
    if (confirm("Are you sure to upload")) {
33882 tejus.loha 271
        //updateLoiBrandCommintment
33879 tejus.loha 272
        doPostAjaxRequestWithJsonHandler(`${context}/uploadNoc?loiId=${loiId}`, payload, function (response) {
273
            if (response) {
274
                $('#nocUploadModal').modal('hide');
275
                alert("NOC uploaded successfully");
276
            }
277
        });
278
    } else {
279
        $('#nocUploadModal').modal('hide');
280
        return;
281
    }
282
});
28885 manish 283
 
33879 tejus.loha 284
$(document)
285
    .on(
286
        'click',
287
        ".partner-training-submit",
288
        function () {
28885 manish 289
 
33879 tejus.loha 290
            var row = $(this).closest("tr");
291
            console.log(row);
28885 manish 292
 
33879 tejus.loha 293
            var onboardingId = $(row).find("td:eq(0)").text();
28932 manish 294
 
33879 tejus.loha 295
            var datePlaned = $(row).find(
296
                "td:eq(8) input[type='date']").val();
29213 tejbeer 297
 
33879 tejus.loha 298
            if (datePlaned != "") {
299
                datePlaned = datePlaned + "T00:00:00";
300
            }
29213 tejbeer 301
 
33879 tejus.loha 302
            var dateCompleted = $(row).find(
303
                "td:eq(9) input[type='date']").val();
304
            if (dateCompleted != "") {
305
                dateCompleted = dateCompleted + "T00:00:00";
306
            }
29213 tejbeer 307
 
33879 tejus.loha 308
            var dashboardTraining = $(row).find(
309
                "td:eq(6) option:selected").val();
310
            var appTraining = $(row).find(
311
                "td:eq(7) option:selected").val();
29213 tejbeer 312
 
33879 tejus.loha 313
            console.log("onboardingId" + onboardingId);
314
            console.log("dateCompleted" + dateCompleted);
315
            console.log("dashboardTraining" + dashboardTraining);
316
            console.log("appTraining" + appTraining);
29213 tejbeer 317
 
33879 tejus.loha 318
            var partnerDashboardTraining = {};
319
            partnerDashboardTraining['onboardingId'] = onboardingId
320
            partnerDashboardTraining['datePlaned'] = datePlaned
321
            partnerDashboardTraining['dateCompleted'] = dateCompleted
322
            partnerDashboardTraining['dashboardTraining'] = dashboardTraining
323
            partnerDashboardTraining['appTraining'] = appTraining
29213 tejbeer 324
 
33879 tejus.loha 325
            var jsonObject = JSON
326
                .stringify(partnerDashboardTraining);
29213 tejbeer 327
 
33879 tejus.loha 328
            console.log(jsonObject);
28885 manish 329
 
33879 tejus.loha 330
            if (confirm("Are you sure you want to submit the request") == true) {
331
                doAjaxRequestWithJsonHandler(context
332
                    + "/partnerDashboardTrainingSubmit",
333
                    "POST", jsonObject, function (response) {
334
                        row.html(response);
335
                        row.css("background-color", "#F8F8FF");
28885 manish 336
 
33879 tejus.loha 337
                    });
338
            }
28885 manish 339
 
33879 tejus.loha 340
        });
28885 manish 341
 
342
 
33879 tejus.loha 343
$(document).on('input', 'table#onboardingLegal input[type=file]', function () {
344
    if (confirm('Confirm upload ?')) {
345
        var fileSelector = $(this)[0];
346
        if (fileSelector != undefined
347
            && fileSelector.files[0] != undefined) {
348
            var url = `${context}/document-upload`;
349
            console.log(url);
350
            var file = this.files[0];
351
            console.log("file" + file);
352
            let fileInput = $(this);
353
            console.log("fileInput" + file);
354
            doAjaxUploadRequestHandler(
355
                url,
356
                'POST',
357
                file,
358
                function (response) {
359
                    console.log(response);
360
                    var documentId = response.response.document_id;
361
                    console.log("documentId : " + documentId);
362
                    fileInput.closest('td').find("input[type=hidden]").val(documentId);
363
                });
364
            // alert("Retailer Shop Document
365
            // is required");
366
        }
367
    } else {
368
        // Do nothing!
369
    }
370
});
28885 manish 371
 
372
 
33879 tejus.loha 373
$(document)
374
    .on(
375
        'click',
376
        ".submit-legal",
377
        function () {
28885 manish 378
 
33879 tejus.loha 379
            var row = $(this).closest("tr");
380
            console.log(row);
28885 manish 381
 
33879 tejus.loha 382
            var onboardingId = $(row).find("td:eq(0)").text();
28885 manish 383
 
33879 tejus.loha 384
            var outletName = $(row).find("td:eq(1) input[type='text']").val();
28885 manish 385
 
33879 tejus.loha 386
            var aadhar = $(row).find(".aadhar input[type=hidden]").val();
387
            var pan = $(row).find(".pan input[type=hidden]").val();
388
            var gst = $(row).find(".gst input[type=hidden]").val();
389
            var cancheque = $(row).find(".cancheque input[type=hidden]").val();
390
            var rent = $(row).find(".rent input[type=hidden]").val();
391
            var loi = $(row).find(".loi input[type=hidden]").val();
392
            var docCompleted = $(row).find("td:eq(12) option:selected").val();
28885 manish 393
 
394
 
33879 tejus.loha 395
            var kycCompleted = $(row).find(".kyc input[type=hidden]").val();
28885 manish 396
 
33879 tejus.loha 397
            console.log(aadhar)
29213 tejbeer 398
 
33879 tejus.loha 399
            var anniversaryDate = $(row).find("td:eq(13) input[type='date']").val();
29213 tejbeer 400
 
33879 tejus.loha 401
            if (anniversaryDate != "") {
402
                anniversaryDate = anniversaryDate + "T00:00:00";
403
            }
404
            var dob = $(row).find("td:eq(14) input[type='date']").val();
29213 tejbeer 405
 
33879 tejus.loha 406
            if (dob != "") {
29213 tejbeer 407
 
33879 tejus.loha 408
                dob = dob + "T00:00:00";
409
            }
29213 tejbeer 410
 
33879 tejus.loha 411
            var phoneNumber = $(row).find("td:eq(16) input[type='number']").val();
412
            console.log(phoneNumber);
413
            var code = $(row).find("td:eq(11) input[type='text']").val();
29214 tejbeer 414
 
415
 
33879 tejus.loha 416
            var businessType = $(row).find("td:eq(17) option:selected").val();
29134 manish 417
 
29214 tejbeer 418
 
33879 tejus.loha 419
            var prebookingListingObject = {};
420
            prebookingListingObject['id'] = onboardingId
421
            prebookingListingObject['outletName'] = outletName
422
            prebookingListingObject['aadharDoc'] = aadhar
29214 tejbeer 423
 
28885 manish 424
 
33879 tejus.loha 425
            prebookingListingObject['panDoc'] = pan
426
            prebookingListingObject['gst'] = gst
427
            prebookingListingObject['cancelCheque'] = cancheque
428
            prebookingListingObject['rentAgreement'] = rent
429
            prebookingListingObject['loi'] = loi
430
            prebookingListingObject['docCompleted'] = docCompleted
431
            prebookingListingObject['code'] = code
432
            prebookingListingObject['anniversaryDate'] = anniversaryDate
433
            prebookingListingObject['dob'] = dob
434
            prebookingListingObject['phoneNumber'] = phoneNumber
29104 manish 435
 
29213 tejbeer 436
 
33879 tejus.loha 437
            prebookingListingObject['kyc'] = kycCompleted
29213 tejbeer 438
 
29104 manish 439
 
33879 tejus.loha 440
            prebookingListingObject['businessType'] = businessType
29763 tejbeer 441
 
442
 
33879 tejus.loha 443
            var jsonObject = JSON.stringify(prebookingListingObject);
444
            console.log("prebookingListingObject" + prebookingListingObject);
445
            console.log("jsonObject" + jsonObject);
446
            if (confirm("Are you sure you want to submit the request") == true) {
447
                doAjaxRequestWithJsonHandler(context
448
                    + "/partnerOnboardingLegalSubmit",
449
                    "POST", jsonObject, function (response) {
450
                        row.html(response);
451
                        row.css("background-color", "#F8F8FF");
29213 tejbeer 452
 
33879 tejus.loha 453
                    });
454
            }
29213 tejbeer 455
 
33879 tejus.loha 456
        });
29104 manish 457
 
29213 tejbeer 458
 
33879 tejus.loha 459
var table = $('#partnerVerification').DataTable();
460
$(document).on('dblclick', '#partnerVerification tbody tr', function () {
461
    console.log("dblclick");
462
    var data = table.row(this).data();
29763 tejbeer 463
 
33879 tejus.loha 464
    $(this).find(":selected").attr('disabled', false).show();
465
    $(this).find(":input").attr('disabled', false).show();
29104 manish 466
 
33879 tejus.loha 467
});
29213 tejbeer 468
 
33879 tejus.loha 469
$(document).on('input', 'table#requiredNoc input[type=file]', function () {
470
    if (confirm('Confirm file upload ?')) {
471
        var fileSelector = $(this)[0];
472
        if (fileSelector != undefined && fileSelector.files[0] != undefined) {
473
            var file = this.files[0];
474
            console.log("file", file);
475
            let fileInput = $(this);
476
            console.log("fileInput", file);
477
            uploadDocument(file, function (documentId) {
478
                fileInput.closest('td').find(".documentId").val(documentId);
479
                console.log("documentId", documentId);
480
            });
481
        }
482
    }
483
});
29763 tejbeer 484
 
33879 tejus.loha 485
function getNocUploadForm(onboardingId) {
486
    $('#nocUploadBody').html('');
487
    doGetAjaxRequestHandler(`${context}/brandNocUpdateForm?onboardingId=` + onboardingId, function (response) {
488
        $('#nocUploadBody').html(response);
489
    });
490
}
29763 tejbeer 491
 
33879 tejus.loha 492
var table = $('#onboardingLegal').DataTable();
493
$(document).on('dblclick', '#onboardingLegal tbody tr', function () {
494
    console.log("dblclick");
495
    var data = table.row(this).data();
29763 tejbeer 496
 
33879 tejus.loha 497
    $(this).find(":selected").attr('disabled', false).show();
498
    $(this).find(":input").attr('disabled', false).show();
29104 manish 499
 
33879 tejus.loha 500
    $(this).find("input[name=codeLegal]").attr('disabled', true);
501
    $(this).find("input[name=shead1]").attr('disabled', true);
502
    $(this).find("input[name=bdm1]").attr('disabled', true);
503
    $(this).find("input[name=abrand1]").attr('disabled', true);
504
    $(this).find("input[name=recbrand1]").attr('disabled', true);
505
});
29213 tejbeer 506
 
33879 tejus.loha 507
var table = $('#partnerDashboardTraining').DataTable();
508
$(document).on('dblclick', '#partnerDashboardTraining tbody tr',
509
    function () {
510
        console.log("dblclick");
511
        var data = table.row(this).data();
29104 manish 512
 
33879 tejus.loha 513
        $(this).find(":selected").attr('disabled', false).show();
514
        $(this).find(":input").attr('disabled', false).show();
30286 tejbeer 515
 
516
 
33879 tejus.loha 517
    });
30286 tejbeer 518
 
33879 tejus.loha 519
var table = $('#partnerDealerMapping').DataTable();
520
$(document).on('dblclick', '#partnerDealerMapping tbody tr', function () {
521
    console.log("dblclick");
522
    var data = table.row(this).data();
30286 tejbeer 523
 
33879 tejus.loha 524
    $(this).find(":input").attr('disabled', false).show();
29213 tejbeer 525
 
33879 tejus.loha 526
});
29213 tejbeer 527
 
29763 tejbeer 528
 
28848 manish 529
function partnerDealerMapping(domId) {
33879 tejus.loha 530
    doAjaxRequestHandler(context + "/partnerDealerMapping", "GET", function (
531
        response) {
532
        $('#' + domId).html(response);
533
    });
28848 manish 534
}
535
 
29104 manish 536
function partnerOnboardingLegal(domId) {
33879 tejus.loha 537
    doAjaxRequestHandler(context + "/partnerOnboardingLegal", "GET", function (
538
        response) {
539
        $('#' + domId).html(response);
540
    });
29104 manish 541
}
542
 
28848 manish 543
function partnerDashboardTraining(domId) {
33879 tejus.loha 544
    doAjaxRequestHandler(context + "/partnerDashboardTraining", "GET",
545
        function (response) {
546
            $('#' + domId).html(response);
547
        });
28848 manish 548
}
549
 
550
function partnerOnboardingVerification(domId) {
33879 tejus.loha 551
    doAjaxRequestHandler(`${context}/partnerOnboardingVerification`, "GET",
552
        function (response) {
553
            $('#' + domId).html(response);
554
        });
28848 manish 555
}
33879 tejus.loha 556
 
557
function nocUploadPanel(domId) {
558
    doAjaxRequestHandler(`${context}/uploadNocPanel`, "GET",
559
        function (response) {
560
            $('#' + domId).html(response);
561
        });
562
}