Subversion Repositories SmartDukaan

Rev

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

Rev 29707 Rev 29721
Line 804... Line 804...
804
                                             class="target-slide">
804
                                             class="target-slide">
805
                                    </div>
805
                                    </div>
806
                                </div>
806
                                </div>
807
                            </div>
807
                            </div>
808
                        </div>
808
                        </div>
809
                        <div class="col-lg-8">
809
                        <div class="col-lg-7">
810
                            <div class="info-box purple-bg">
810
                            <div class="info-box purple-bg">
811
                                <div class="col-lg-12 row">
811
                                <div class="col-lg-12 row">
812
                                    <i class="fa fa-coins"></i>
812
                                    <i class="fa fa-coins"></i>
813
                                    <h3 style="margin-top:-2px;margin-bottom:12px"><strong>Investments</strong></h3>
813
                                    <h3 style="margin-top:-2px;margin-bottom:12px"><strong>Investments</strong></h3>
814
                                    <div class="row">
814
                                    <div class="row">
Line 845... Line 845...
845
                            		<div class="row investmentContainer" style="margin:5px">
845
                            		<div class="row investmentContainer" style="margin:5px">
846
	                            	</div>
846
	                            	</div>
847
                                </div>
847
                                </div>
848
                            </div>
848
                            </div>
849
                        </div>
849
                        </div>
850
                        <div class="col-lg-4">
-
 
851
                            <div class="info-box green-bg">
-
 
852
                                <i class="fa fa-cubes"></i>
-
 
853
                                <div class="count currency">$investments.get("inStock")</div>
-
 
854
                                <div class="title">Total Stock</div>
-
 
855
                            </div>
-
 
856
                        </div>
-
 
857
                        
850
                       
858
                        <div class="col-lg-7">
851
                        <div class="col-lg-5">
859
                            <div class="info-box orange-bg" style="background-image: linear-gradient(#ff7f50 ,orange); box-shadow: 6px 5px 6px #ff7f50;">
852
                            <div class="info-box orange-bg" style="background-image: linear-gradient(#ff7f50 ,orange); box-shadow: 6px 5px 6px #ff7f50;">
860
                                <i class="fa fa-chart-line"></i>
853
                                <i class="fa fa-chart-line"></i>
861
                                <h3 style="margin-top:-2px;margin-bottom:12px"><strong>Online Sales</strong></h3>
854
                                <h3 style="margin-top:-2px;margin-bottom:12px"><strong>Online Sales</strong></h3>
862
                                <div class="row">
855
                                <div class="row">
863
                                    <div class="col-lg-3 row" style="margin:5px">
856
                                    <div class="col-lg-3 row" style="margin:5px">
Line 883... Line 876...
883
                                    </div>
876
                                    </div>
884
                              </div>
877
                              </div>
885
                            </div>
878
                            </div>
886
                        </div>
879
                        </div>
887
                    </div>
880
                    </div>
-
 
881
            
-
 
882
                        
-
 
883
                        <div class="row">
-
 
884
                    <div class="col-lg-9">
-
 
885
                            <div class="info-box pink-bg" style="height: 160px;" >
-
 
886
                             <h3 style="margin-top:-2px;margin-bottom:12px"><strong>ORDER SUMMARY</strong></h3>
-
 
887
                             
-
 
888
                              <div class="col-lg-3 row">
-
 
889
                               <h3 style="margin-top:-2px;margin-bottom:12px;overflow: hidden;text-overflow:ellipsis;white-space: nowrap;"><strong style="font-size: 16px; cursor:pointer;" class="pndg-status">In Process</strong></h3>
-
 
890
                                  #if($submittedCount && $submittedValue)
-
 
891
                                 <div class="col-lg-3">
-
 
892
                                    <div style="margin-top:0px" class="count currency">$submittedCount</div>
-
 
893
                                    <div class="title">Qty</div>
-
 
894
                                </div>
-
 
895
                                 <div class="col-lg-4">
-
 
896
                                    <div style="margin-top:0px" class="count currency">$submittedValue</div>
-
 
897
                                    <div class="title" style="margin-left:20px;">val</div>
-
 
898
                                </div>
-
 
899
                                #else
-
 
900
                                 <div class="col-lg-3">
-
 
901
                                    <div style="margin-top:0px" class="count currency">0</div>
-
 
902
                                    <div class="title">Qty</div>
-
 
903
                                </div>
-
 
904
                                <div class="col-lg-4">
-
 
905
                                    <div style="margin-top:0px" class="count currency">0</div>
-
 
906
                                    <div class="title" style="margin-left:20px;">val</div>
-
 
907
                                </div>
-
 
908
                                
-
 
909
                                #end
-
 
910
								   
-
 
911
                                   
-
 
912
                                </div>  
-
 
913
                                
-
 
914
                              <div class="col-lg-3">
-
 
915
                                <h3 style="margin-top:-2px;margin-bottom:12px"><strong style="font-size: 19px; cursor:pointer;" class="billed-status">Billed</strong></h3>
-
 
916
                              
-
 
917
                                   #if($billedCount && $billedValue)
-
 
918
                                 <div class="col-lg-3">
-
 
919
                                    <div style="margin-top:0px" class="count currency">$billedCount</div>
-
 
920
                                    <div class="title">Qty</div>
-
 
921
                                </div>
-
 
922
                                 <div class="col-lg-4">
-
 
923
                                    <div style="margin-top:0px" class="count currency">$billedValue</div>
-
 
924
                                    <div class="title" style="margin-left:20px;">val</div>
-
 
925
                                </div>
-
 
926
                                #else
-
 
927
                                 <div class="col-lg-3">
-
 
928
                                    <div style="margin-top:0px" class="count currency">22</div>
-
 
929
                                    <div class="title">Qty</div>
-
 
930
                                </div>
-
 
931
                                <div class="col-lg-4">
-
 
932
                                    <div style="margin-top:0px" class="count currency">22222</div>
-
 
933
                                    <div class="title" style="margin-left:20px;">val</div>
-
 
934
                                </div>
-
 
935
                                
-
 
936
                                #end
-
 
937
                           </div> 
-
 
938
                           
-
 
939
                           <div class="col-lg-3">
-
 
940
                                <h3 style="margin-top:-2px;margin-bottom:12px"><strong style="font-size: 19px;  cursor:pointer;" class="shipped-status">Shipped</strong></h3>
-
 
941
                              
-
 
942
                               #if($shippedCount && $shippedValue)
-
 
943
                                 <div class="col-lg-3">
-
 
944
                                    <div style="margin-top:0px" class="count currency">$shippedCount</div>
-
 
945
                                    <div class="title">Qty</div>
-
 
946
                                </div>
-
 
947
                                 <div class="col-lg-4">
-
 
948
                                    <div style="margin-top:0px" class="count currency">$shippedValue</div>
-
 
949
                                    <div class="title" style="margin-left:20px;">val</div>
-
 
950
                                </div>
-
 
951
                                #else
-
 
952
                                 <div class="col-lg-3">
-
 
953
                                    <div style="margin-top:0px" class="count">0</div>
-
 
954
                                    <div class="title">Qty</div>
-
 
955
                                </div>
-
 
956
                                <div class="col-lg-4">
-
 
957
                                    <div style="margin-top:0px" class="count">0</div>
-
 
958
                                    <div class="title" style="margin-left:20px;">val</div>
-
 
959
                                </div>
-
 
960
                                
-
 
961
                                #end
-
 
962
                           </div>  
-
 
963
                                
-
 
964
                             <div class="col-lg-3">
-
 
965
                                <h3 style="margin-top:-2px;margin-bottom:12px"><strong style="font-size: 19px;overflow: hidden;text-overflow:ellipsis;white-space: nowrap;  cursor:pointer;" class="grn-status">GRN Pending</strong></h3>
-
 
966
                              
-
 
967
                                  #if($grnPendingCount &&  $grnPendingValue )
-
 
968
                                 <div class="col-lg-3">
-
 
969
                                    <div style="margin-top:0px" class="count currency">$grnPendingCount</div>
-
 
970
                                    <div class="title">Qty</div>
-
 
971
                                </div>
-
 
972
                                 <div class="col-lg-4"> 
-
 
973
                                    <div style="margin-top:0px" class="count currency">$grnPendingValue</div>
-
 
974
                                    <div class="title" style="margin-left:20px;">val</div>
-
 
975
                                </div>
-
 
976
                                #else
-
 
977
                                 <div class="col-lg-3">
-
 
978
                                    <div style="margin-top:0px" class="count currency">0</div>
-
 
979
                                    <div class="title">Qty</div>
-
 
980
                                </div>
-
 
981
                                <div class="col-lg-4">
-
 
982
                                    <div style="margin-top:0px" class="count currency">0</div>
-
 
983
                                    <div class="title" style="margin-left:20px;">val</div>
-
 
984
                                </div>
-
 
985
                                
-
 
986
                                #end
-
 
987
                           </div>                  
-
 
988
                         </div>
-
 
989
                    </div>
-
 
990
                                         <div class="col-lg-3" style="height: 190px;">
-
 
991
                            <div class="info-box green-bg">
-
 
992
                                <i class="fa fa-cubes"></i>
-
 
993
                                <div class="count currency">$investments.get("inStock")</div>
-
 
994
                                <div class="title">Total Stock</div>
-
 
995
                            </div>
-
 
996
                        </div>   
-
 
997
                    </div>
888
                    
998
                    
889
                    <div class="row">
999
                    <div class="row">
890
                        <div class="Mobile">
1000
                        <div class="Mobile">
891
                            #foreach($brandStockPrice in $brandStockPrices)
1001
                            #foreach($brandStockPrice in $brandStockPrices)
892
 
1002
 
Line 1097... Line 1207...
1097
                
1207
                
1098
                
1208
                
1099
                
1209
                
1100
                   $(".puo").css("color", "white"); 
1210
                   $(".puo").css("color", "white"); 
1101
                $(".puo").css("background-color", "#C0C0C0");
1211
                $(".puo").css("background-color", "#C0C0C0");
1102
             
1212
                
1103
             
1213
             
1104
                 sleep(500);
1214
                 sleep(500);
1105
                 doGetAjaxRequestHandler(context + "/getMonthlyPriceDrop", function (response) {
1215
                 doGetAjaxRequestHandler(context + "/getMonthlyPriceDrop", function (response) {
1106
             
1216
             
1107
                        $('.ChartContainer').html(response);
1217
                        $('.ChartContainer').html(response);
Line 1148... Line 1258...
1148
                $(".pac").css("background-color", "#C0C0C0");
1258
                $(".pac").css("background-color", "#C0C0C0");
1149
             
1259
             
1150
               $(".puo").css("color", "white"); 
1260
               $(".puo").css("color", "white"); 
1151
                $(".puo").css("background-color", "#C0C0C0");
1261
                $(".puo").css("background-color", "#C0C0C0");
1152
             
1262
             
1153
             
-
 
1154
                 doGetAjaxRequestHandler(context + "/getMonthlyPurchaseLineChart", function (response) {
1263
                 doGetAjaxRequestHandler(context + "/getMonthlyPurchaseLineChart", function (response) {
1155
                        $('.ChartContainer').html(response);
1264
                        $('.ChartContainer').html(response);
1156
                    });    
1265
                    });    
1157
       });
1266
       });
1158
         
1267
         
Line 1172... Line 1281...
1172
                $(".pac").css("background-color", "#C0C0C0");
1281
                $(".pac").css("background-color", "#C0C0C0");
1173
                
1282
                
1174
                  $(".puo").css("color", "white"); 
1283
                  $(".puo").css("color", "white"); 
1175
                $(".puo").css("background-color", "#C0C0C0");
1284
                $(".puo").css("background-color", "#C0C0C0");
1176
             
1285
             
1177
             
-
 
1178
                 doGetAjaxRequestHandler(context + "/getlmsLineChart", function (response) {
1286
                 doGetAjaxRequestHandler(context + "/getlmsLineChart", function (response) {
1179
                        $('.ChartContainer').html(response);
1287
                        $('.ChartContainer').html(response);
1180
                    });    
1288
                    });    
1181
       });       
1289
       });       
1182
             
1290
             
Line 1263... Line 1371...
1263
       $(document).on('change', "#performance-months", function() {
1371
       $(document).on('change', "#performance-months", function() {
1264
       
1372
       
1265
            var month = 	$("#performance-months").val();
1373
            var month = 	$("#performance-months").val();
1266
             console.log(month);   
1374
             console.log(month);   
1267
          
1375
          
1268
           doGetAjaxRequestHandler(context + "/getMonthsInvestment?month=" + month ,function (response) {
1376
           doGetAjaxRequestHandler(context + "/getMonthsInvestment",function (response) {
1269
                   console.log(response);
1377
                   console.log(response);
1270
                  $("#performanceContainer").html(response);
1378
                  $("#performanceContainer").html(response);
1271
        
1379
        
1272
        });
1380
        });
1273
              	});
1381
              	});
1274
 
-
 
1275
       
1382
              	
1276
       $(document).on('change', "#offer-months", function() {
1383
              	 $(document).on('change', "#offer-months", function() {
1277
       	var month = 	$(this).val();
1384
       	var month = 	$(this).val();
1278
       	doGetAjaxRequestHandler(context + "/published-offers/" + month ,function (response) {
1385
       	doGetAjaxRequestHandler(context + "/published-offers/" + month ,function (response) {
1279
       		console.log(response);
1386
       		console.log(response);
1280
       		$("#offer-container").html(response);
1387
       		$("#offer-container").html(response);
1281
       	});
1388
       	});
1282
              	});
1389
              	});
-
 
1390
              	
-
 
1391
              	
-
 
1392
         $(document).on("click", ".pndg-status", function() {
-
 
1393
             console.log("Hello");   
-
 
1394
             pendingOrderStatus("main-content");
-
 
1395
              	});
-
 
1396
        
-
 
1397
        function pendingOrderStatus(domId) {
-
 
1398
	        doGetAjaxRequestHandler(context + "/getPendingOrderStatus",function (response) {
-
 
1399
                   console.log(response);
-
 
1400
                   $('#' + domId).html(response);
-
 
1401
	          });
-
 
1402
                        }
-
 
1403
                        
-
 
1404
         $(document).on("click", ".billed-status", function() {
-
 
1405
             console.log("Hello");   
-
 
1406
             billedOrderStatus("main-content");
-
 
1407
              	});
1283
        
1408
        
-
 
1409
        function billedOrderStatus(domId) {
-
 
1410
	        doGetAjaxRequestHandler(context + "/getBilledOrderStatus",function (response) {
-
 
1411
                   console.log(response);
-
 
1412
                   $('#' + domId).html(response);
-
 
1413
	          });
-
 
1414
                        }
-
 
1415
          $(document).on("click", ".shipped-status", function() {
-
 
1416
              console.log("Hello");   
-
 
1417
                shippedOrderStatus("main-content");
-
 
1418
              	});
-
 
1419
        
-
 
1420
        function shippedOrderStatus(domId) {
-
 
1421
	        doGetAjaxRequestHandler(context + "/getShippedOrderStatus",function (response) {
-
 
1422
                   console.log(response);
-
 
1423
                   $('#' + domId).html(response);
-
 
1424
	          });
-
 
1425
           }
-
 
1426
           
-
 
1427
           $(document).on("click", ".grn-status", function() {
-
 
1428
              console.log("Hello");   
-
 
1429
                grnOrderStatus("main-content");
-
 
1430
              	});
-
 
1431
        
-
 
1432
        function grnOrderStatus(domId) {
-
 
1433
	        doGetAjaxRequestHandler(context + "/getGrnPendingOrderStatus",function (response) {
-
 
1434
                   console.log(response);
-
 
1435
                   $('#' + domId).html(response);
-
 
1436
	          });
-
 
1437
           }
1284
 
1438
 
1285
    </script>
1439
    </script>
1286
    <script>
1440
    <script>
1287
 
1441
 
1288
        //knob
1442
        //knob