Subversion Repositories SmartDukaan

Rev

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

Rev 30391 Rev 30601
Line 338... Line 338...
338
                        </div>
338
                        </div>
339
 
339
 
340
                        <div style="float: right">
340
                        <div style="float: right">
341
							<span style="margin-right: 10px">Last Fetch :-
341
							<span style="margin-right: 10px">Last Fetch :-
342
                                $rctPartneStat.getLastCreatedTimestamp().format($dateTimeFormatter)</span>
342
                                $rctPartneStat.getLastCreatedTimestamp().format($dateTimeFormatter)</span>
343
                         <!--   <button class="btn btn-primary fetchPartnersData"
343
                            <!--   <button class="btn btn-primary fetchPartnersData"
344
                                    onclick="getPartnersStat()" type="button">Fetch
344
                                       onclick="getPartnersStat()" type="button">Fetch
345
                            </button> -->
345
                               </button> -->
346
                        </div>
346
                        </div>
347
                        <table class="table table-striped table-advance table-hover">
347
                        <table class="table table-striped table-advance table-hover">
348
                            <tbody>
348
                            <tbody>
349
                            <tr>
349
                            <tr>
350
                                <th>W/H Location</th>
350
                                <th>W/H Location</th>
Line 709... Line 709...
709
            }
709
            }
710
        });
710
        });
711
 
711
 
712
 
712
 
713
        $(function () {
713
        $(function () {
714
            dateRangeCallback(moment(), moment());
-
 
715
            loaderDialogObj = bootbox.dialog({
714
            loaderDialogObj = bootbox.dialog({
716
                message: '<div class="container text-center"><i class="fa fa-spin fa-spinner"></i>Loading...</div>',
715
                message: '<div class="container text-center"><i class="fa fa-spin fa-spinner"></i>Loading...</div>',
717
                show: false
716
                show: false
718
            });
717
            });
719
        });
718
        });
Line 809... Line 808...
809
                        $('.reportContainer').html(response);
808
                        $('.reportContainer').html(response);
810
                    });
809
                    });
811
                });
810
                });
812
 
811
 
813
 
812
 
814
	            doGetAjaxRequestHandler(context + "/getMobileLMSFilter", function (response) {
813
        doGetAjaxRequestHandler(context + "/getMobileLMSFilter", function (response) {
815
                    $('.chartfilterlmsContainer').html(response);
814
            $('.chartfilterlmsContainer').html(response);
816
                });
-
 
817
 
-
 
818
 
-
 
819
 
-
 
820
        $(document).on(
-
 
821
                'click',
-
 
822
                ".brand_month_sales",
-
 
823
                function () {
-
 
824
 
-
 
825
                    $(".bms").css("color", "blue");
-
 
826
                    $(".bms").css("background-color", "white");
-
 
827
                    $(".bmp").css("color", "white");
-
 
828
                    $(".bmp").css("background-color", "#C0C0C0");
-
 
829
 
-
 
830
                    var warehouseId = $('#warehouseMap').val();
-
 
831
                  	var filterType = $('#monthDateFilter').val();
-
 
832
	
-
 
833
                    var fofoIds = $('#fofo-users').val();
-
 
834
 
-
 
835
                  doGetAjaxRequestHandler(context
-
 
836
						+ "/getMobileLMSGraph?warehouseId=" + warehouseId
-
 
837
						+ "&date=" + startDate  + "&endDate=" + endDate  + "&fofoIds=" + fofoIds + "&filterType=" + filterType, function(
-
 
838
						response) {
-
 
839
 
-
 
840
                        $('.chartLmsContainer').html(response);
-
 
841
                    });
-
 
842
                });
815
        });
843
 
816
 
844
 
817
 
-
 
818
        $(document).on('click', ".brand_month_sales", function () {
845
        /*$(function(){
819
            $(".bms").css("color", "blue");
846
            messageType = $(this).data("messagetype");
820
            $(".bms").css("background-color", "white");
847
            if($(this).hasClass('btn-pressed')) {
821
            $(".bmp").css("color", "white");
-
 
822
            $(".bmp").css("background-color", "#C0C0C0");
848
                messageType="";
823
            var warehouseId = $('#warehouseMap').val();
849
                $('div.message-filter').find('button').removeClass('btn-pressed').addClass('btn-default');
824
            var filterType = $('#monthDateFilter').val();
-
 
825
 
-
 
826
            var fofoIds = $('#fofo-users').val();
-
 
827
 
850
            } else {
828
            doGetAjaxRequestHandler(context
-
 
829
                    + "/getMobileLMSGraph?warehouseId=" + warehouseId
-
 
830
                    + "&date=" + getDatesFromPicker($('input[name="dateRange"]')).startDate
851
                $('div.message-filter').find('button').removeClass('btn-pressed').addClass('btn-default');
831
                    + "&endDate=" + getDatesFromPicker($('input[name="dateRange"]')).endDate
-
 
832
                    + "&fofoIds=" + fofoIds + "&filterType=" + filterType, function (response) {
852
                $(this).addClass('btn-pressed').removeClass('btn-default');
833
                $('.chartLmsContainer').html(response);
853
            }
834
            });
854
            notifyTypeChange(messageType);
-
 
855
        });*/
835
        });
856
 
836
 
857
        $('#fofo-users').multiselect({
837
        $('#fofo-users').multiselect({
858
            includeSelectAllOption: true,
838
            includeSelectAllOption: true,
859
            multiple: true,
839
            multiple: true,
860
            maxHeight: 200,
840
            maxHeight: 200,
Line 885... Line 865...
885
                    </button>
865
                    </button>
886
                </div>
866
                </div>
887
            </div>
867
            </div>
888
        </div>
868
        </div>
889
    </div>
869
    </div>
-
 
870
</section>
890
</body>
871
</body>
891
</html>
872
</html>
892
873