Subversion Repositories SmartDukaan

Rev

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