Subversion Repositories SmartDukaan

Rev

Rev 33882 | Rev 33908 | 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();
33891 tejus.loha 387
 
388
            var aadharBack = $(row).find(".aadharBack input[type=hidden]").val();
389
 
33879 tejus.loha 390
            var pan = $(row).find(".pan input[type=hidden]").val();
391
            var gst = $(row).find(".gst input[type=hidden]").val();
392
            var cancheque = $(row).find(".cancheque input[type=hidden]").val();
393
            var rent = $(row).find(".rent input[type=hidden]").val();
394
            var loi = $(row).find(".loi input[type=hidden]").val();
33891 tejus.loha 395
            var docCompleted = $(row).find("td:eq(13) option:selected").val();
28885 manish 396
 
397
 
33879 tejus.loha 398
            var kycCompleted = $(row).find(".kyc input[type=hidden]").val();
28885 manish 399
 
33879 tejus.loha 400
            console.log(aadhar)
29213 tejbeer 401
 
33891 tejus.loha 402
            var anniversaryDate = $(row).find("td:eq(14) input[type='date']").val();
29213 tejbeer 403
 
33879 tejus.loha 404
            if (anniversaryDate != "") {
405
                anniversaryDate = anniversaryDate + "T00:00:00";
406
            }
33891 tejus.loha 407
            var dob = $(row).find("td:eq(15) input[type='date']").val();
29213 tejbeer 408
 
33879 tejus.loha 409
            if (dob != "") {
29213 tejbeer 410
 
33879 tejus.loha 411
                dob = dob + "T00:00:00";
412
            }
29213 tejbeer 413
 
33891 tejus.loha 414
            var phoneNumber = $(row).find("td:eq(17) input[type='number']").val();
33879 tejus.loha 415
            console.log(phoneNumber);
33891 tejus.loha 416
            var code = $(row).find("td:eq(16) input[type='text']").val();
29214 tejbeer 417
 
418
 
33891 tejus.loha 419
            var businessType = $(row).find("td:eq(18) option:selected").val();
29134 manish 420
 
29214 tejbeer 421
 
33879 tejus.loha 422
            var prebookingListingObject = {};
423
            prebookingListingObject['id'] = onboardingId
424
            prebookingListingObject['outletName'] = outletName
425
            prebookingListingObject['aadharDoc'] = aadhar
33891 tejus.loha 426
            prebookingListingObject['aadharDocBack'] = aadharBack
29214 tejbeer 427
 
33879 tejus.loha 428
            prebookingListingObject['panDoc'] = pan
429
            prebookingListingObject['gst'] = gst
430
            prebookingListingObject['cancelCheque'] = cancheque
431
            prebookingListingObject['rentAgreement'] = rent
432
            prebookingListingObject['loi'] = loi
433
            prebookingListingObject['docCompleted'] = docCompleted
434
            prebookingListingObject['code'] = code
435
            prebookingListingObject['anniversaryDate'] = anniversaryDate
436
            prebookingListingObject['dob'] = dob
437
            prebookingListingObject['phoneNumber'] = phoneNumber
29104 manish 438
 
29213 tejbeer 439
 
33879 tejus.loha 440
            prebookingListingObject['kyc'] = kycCompleted
29213 tejbeer 441
 
29104 manish 442
 
33879 tejus.loha 443
            prebookingListingObject['businessType'] = businessType
29763 tejbeer 444
 
445
 
33879 tejus.loha 446
            var jsonObject = JSON.stringify(prebookingListingObject);
447
            console.log("prebookingListingObject" + prebookingListingObject);
448
            console.log("jsonObject" + jsonObject);
449
            if (confirm("Are you sure you want to submit the request") == true) {
450
                doAjaxRequestWithJsonHandler(context
451
                    + "/partnerOnboardingLegalSubmit",
452
                    "POST", jsonObject, function (response) {
453
                        row.html(response);
454
                        row.css("background-color", "#F8F8FF");
29213 tejbeer 455
 
33879 tejus.loha 456
                    });
457
            }
29213 tejbeer 458
 
33879 tejus.loha 459
        });
29104 manish 460
 
29213 tejbeer 461
 
33879 tejus.loha 462
var table = $('#partnerVerification').DataTable();
463
$(document).on('dblclick', '#partnerVerification tbody tr', function () {
464
    console.log("dblclick");
465
    var data = table.row(this).data();
29763 tejbeer 466
 
33879 tejus.loha 467
    $(this).find(":selected").attr('disabled', false).show();
468
    $(this).find(":input").attr('disabled', false).show();
29104 manish 469
 
33879 tejus.loha 470
});
29213 tejbeer 471
 
33879 tejus.loha 472
$(document).on('input', 'table#requiredNoc input[type=file]', function () {
473
    if (confirm('Confirm file upload ?')) {
474
        var fileSelector = $(this)[0];
475
        if (fileSelector != undefined && fileSelector.files[0] != undefined) {
476
            var file = this.files[0];
477
            console.log("file", file);
478
            let fileInput = $(this);
479
            console.log("fileInput", file);
480
            uploadDocument(file, function (documentId) {
481
                fileInput.closest('td').find(".documentId").val(documentId);
482
                console.log("documentId", documentId);
483
            });
484
        }
485
    }
486
});
29763 tejbeer 487
 
33879 tejus.loha 488
function getNocUploadForm(onboardingId) {
489
    $('#nocUploadBody').html('');
490
    doGetAjaxRequestHandler(`${context}/brandNocUpdateForm?onboardingId=` + onboardingId, function (response) {
491
        $('#nocUploadBody').html(response);
492
    });
493
}
29763 tejbeer 494
 
33879 tejus.loha 495
var table = $('#onboardingLegal').DataTable();
496
$(document).on('dblclick', '#onboardingLegal tbody tr', function () {
497
    console.log("dblclick");
498
    var data = table.row(this).data();
29763 tejbeer 499
 
33879 tejus.loha 500
    $(this).find(":selected").attr('disabled', false).show();
501
    $(this).find(":input").attr('disabled', false).show();
29104 manish 502
 
33879 tejus.loha 503
    $(this).find("input[name=codeLegal]").attr('disabled', true);
504
    $(this).find("input[name=shead1]").attr('disabled', true);
505
    $(this).find("input[name=bdm1]").attr('disabled', true);
506
    $(this).find("input[name=abrand1]").attr('disabled', true);
507
    $(this).find("input[name=recbrand1]").attr('disabled', true);
508
});
29213 tejbeer 509
 
33879 tejus.loha 510
var table = $('#partnerDashboardTraining').DataTable();
511
$(document).on('dblclick', '#partnerDashboardTraining tbody tr',
512
    function () {
513
        console.log("dblclick");
514
        var data = table.row(this).data();
29104 manish 515
 
33879 tejus.loha 516
        $(this).find(":selected").attr('disabled', false).show();
517
        $(this).find(":input").attr('disabled', false).show();
30286 tejbeer 518
 
519
 
33879 tejus.loha 520
    });
30286 tejbeer 521
 
33879 tejus.loha 522
var table = $('#partnerDealerMapping').DataTable();
523
$(document).on('dblclick', '#partnerDealerMapping tbody tr', function () {
524
    console.log("dblclick");
525
    var data = table.row(this).data();
30286 tejbeer 526
 
33879 tejus.loha 527
    $(this).find(":input").attr('disabled', false).show();
29213 tejbeer 528
 
33879 tejus.loha 529
});
29213 tejbeer 530
 
29763 tejbeer 531
 
28848 manish 532
function partnerDealerMapping(domId) {
33879 tejus.loha 533
    doAjaxRequestHandler(context + "/partnerDealerMapping", "GET", function (
534
        response) {
535
        $('#' + domId).html(response);
536
    });
28848 manish 537
}
538
 
29104 manish 539
function partnerOnboardingLegal(domId) {
33879 tejus.loha 540
    doAjaxRequestHandler(context + "/partnerOnboardingLegal", "GET", function (
541
        response) {
542
        $('#' + domId).html(response);
543
    });
29104 manish 544
}
545
 
28848 manish 546
function partnerDashboardTraining(domId) {
33879 tejus.loha 547
    doAjaxRequestHandler(context + "/partnerDashboardTraining", "GET",
548
        function (response) {
549
            $('#' + domId).html(response);
550
        });
28848 manish 551
}
552
 
553
function partnerOnboardingVerification(domId) {
33879 tejus.loha 554
    doAjaxRequestHandler(`${context}/partnerOnboardingVerification`, "GET",
555
        function (response) {
556
            $('#' + domId).html(response);
557
        });
28848 manish 558
}
33879 tejus.loha 559
 
560
function nocUploadPanel(domId) {
561
    doAjaxRequestHandler(`${context}/uploadNocPanel`, "GET",
562
        function (response) {
563
            $('#' + domId).html(response);
564
        });
565
}