Subversion Repositories SmartDukaan

Rev

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

Rev 34507 Rev 34508
Line 275... Line 275...
275
    doGetAjaxRequestHandler(endPoint,
275
    doGetAjaxRequestHandler(endPoint,
276
        function (response) {
276
        function (response) {
277
            $('#' + 'main-content').html(response);
277
            $('#' + 'main-content').html(response);
278
        });
278
        });
279
});
279
});
-
 
280
 
-
 
281
// price drop ....................price drop ....................
-
 
282
// price drop ....................price drop ....................
-
 
283
// price drop ....................price drop ....................
-
 
284
 
-
 
285
$(document).on('click', ".analysis-price-drop-report", function () {
-
 
286
    var fofoId = $(this).data("fofoid");
-
 
287
    doGetAjaxRequestHandler(context + "/analysis-priceDropFetchReportByDate?fofoId=" + fofoId,
-
 
288
        function (response) {
-
 
289
            $('#' + 'main-content').html(response);
-
 
290
        });
-
 
291
});
-
 
292
 
-
 
293
 
-
 
294
$(document).on('click', '.analysis-price-drop-fetch-report', function () {
-
 
295
    var fofoId = $(this).data("fofoid");
-
 
296
    var startDate = $("#analysis-startDate-price-drop-report").val();
-
 
297
 
-
 
298
    var endDate = $("#analysis-endDate-price-drop-report").val();
-
 
299
 
-
 
300
    if (startDate == "" || startDate == undefined) {
-
 
301
 
-
 
302
        alert("start date is not be empty!!");
-
 
303
        return;
-
 
304
    }
-
 
305
    if (endDate == "" || endDate == undefined) {
-
 
306
 
-
 
307
        alert("end date is not be empty!!");
-
 
308
        return;
-
 
309
    }
-
 
310
    let endPoint = `${context}/analysis-priceDropFetchReportByDate?startDate=${startDate}&endDate=${endDate}&fofoId=${fofoId}`;
-
 
311
 
-
 
312
 
-
 
313
    doGetAjaxRequestHandler(endPoint,
-
 
314
        function (response) {
-
 
315
            $('#' + 'main-content').html(response);
-
 
316
        });
-
 
317
 
-
 
318
});
-
 
319
 
-
 
320
$(document).on('click', '.analysis-download-price-drop-report', function () {
-
 
321
    var fofoId = $(this).data("fofoid");
-
 
322
 
-
 
323
    var startDate = $("#analysis-startDate-price-drop-report").val();
-
 
324
 
-
 
325
    var endDate = $("#analysis-endDate-price-drop-report").val();
-
 
326
 
-
 
327
    if (startDate == "" || startDate == undefined) {
-
 
328
 
-
 
329
        alert("start date is not be empty!!");
-
 
330
        return;
-
 
331
    }
-
 
332
    if (endDate == "" || endDate == undefined) {
-
 
333
 
-
 
334
        alert("end date is not be empty!!");
-
 
335
        return;
-
 
336
    }
-
 
337
    let endPoint = `${context}/analysis-downloadPriceDropReport?startDate=${startDate}&endDate=${endDate}&fofoId=${fofoId}`;
-
 
338
 
-
 
339
 
-
 
340
    window.location.href = endPoint;
-
 
341
 
-
 
342
 
-
 
343
});