Subversion Repositories SmartDukaan

Rev

Rev 34505 | Rev 34508 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 34505 Rev 34507
Line 214... Line 214...
214
    }
214
    }
215
    let endPoint = `${context}/analysis-loan/download-partner-loan-statement-report?startDate=${startDate}&endDate=${endDate}&fofoId=${fofoId}`;
215
    let endPoint = `${context}/analysis-loan/download-partner-loan-statement-report?startDate=${startDate}&endDate=${endDate}&fofoId=${fofoId}`;
216
 
216
 
217
    window.location.href = endPoint;
217
    window.location.href = endPoint;
218
});
218
});
-
 
219
 
-
 
220
 
-
 
221
// scheme payout report--------------
-
 
222
// scheme payout report--------------
-
 
223
// scheme payout report--------------
-
 
224
// scheme payout report--------------
-
 
225
 
-
 
226
$(document).on('click', ".analysis-download-scheme-payout-report", function () {
-
 
227
    var fofoId = $(this).data("fofoid");
-
 
228
    var startDate = $("#analysis-startDate-scheme-payout").val();
-
 
229
 
-
 
230
    var endDate = $("#analysis-endDate-scheme-payout").val();
-
 
231
 
-
 
232
    if (startDate == "" || startDate == undefined) {
-
 
233
        alert("start date is not be empty!!");
-
 
234
        return;
-
 
235
    }
-
 
236
    if (endDate == "" || endDate == undefined) {
-
 
237
 
-
 
238
        alert("end date is not be empty!!");
-
 
239
        return;
-
 
240
    }
-
 
241
    let endPoint = `${context}/analysis-schemePayoutReportDownload?startDate=${startDate}&endDate=${endDate}&fofoId=${fofoId}`;
-
 
242
 
-
 
243
    window.location.href = endPoint;
-
 
244
});
-
 
245
 
-
 
246
$(document).on('click', ".analysis-scheme-payout-fetch-report", function () {
-
 
247
    var fofoId = $(this).data("fofoid");
-
 
248
    var startDate = $("#analysis-startDate-scheme-payout").val();
-
 
249
 
-
 
250
    var endDate = $("#analysis-endDate-scheme-payout").val();
-
 
251
 
-
 
252
    if (startDate == "" || startDate == undefined) {
-
 
253
        alert("start date is not be empty!!");
-
 
254
        return;
-
 
255
    }
-
 
256
    if (endDate == "" || endDate == undefined) {
-
 
257
 
-
 
258
        alert("end date is not be empty!!");
-
 
259
        return;
-
 
260
    }
-
 
261
 
-
 
262
    let endPoint = `${context}/analysis-schemePayoutReport?startDate=${startDate}&endDate=${endDate}&fofoId=${fofoId}`;
-
 
263
 
-
 
264
    doGetAjaxRequestHandler(endPoint,
-
 
265
        function (response) {
-
 
266
            $('#' + 'main-content').html(response);
-
 
267
        });
-
 
268
});
-
 
269
 
-
 
270
$(document).on('click', ".analysis-scheme-payout-report", function () {
-
 
271
    var fofoId = $(this).data("fofoid");
-
 
272
 
-
 
273
    let endPoint = `${context}/analysis-schemePayoutReport?fofoId=${fofoId}`;
-
 
274
 
-
 
275
    doGetAjaxRequestHandler(endPoint,
-
 
276
        function (response) {
-
 
277
            $('#' + 'main-content').html(response);
-
 
278
        });
-
 
279
});