Subversion Repositories SmartDukaan

Rev

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

Rev 29335 Rev 29427
Line 91... Line 91...
91
					<div class="col-lg-2">
91
					<div class="col-lg-2">
92
						<button class="btn btn-primary show-lead" type="button"
92
						<button class="btn btn-primary show-lead" type="button"
93
							>Submit</button>
93
							>Submit</button>
94
					</div>
94
					</div>
95
					
95
					
-
 
96
				 <div class="row" style="margin-top:15px">	
-
 
97
					<div class="col-lg-4">
-
 
98
			    	<div class="input-group">
-
 
99
			    		<input type="file" class="form-control fileLeadGenerate" name="fileLeadGenerate" value="Upload CSv">
-
 
100
			    		<span class="input-group-btn">
-
 
101
				    		<button  type = "button" class="btn btn-default submitLeadGenerate">
-
 
102
							    Uplaod
-
 
103
							</button>
-
 
104
						</span>
-
 
105
					</div>
-
 
106
			       </div> 
-
 
107
			       
-
 
108
			       <div class= "row"> 	
-
 
109
 
-
 
110
		       <form class="form-horizontal">			
-
 
111
			     <div class="col-lg-4" form-group>
-
 
112
				<a class="btn btn-default" id="uploadIvoryLead">
-
 
113
				    Download Tempate
-
 
114
				</a>
-
 
115
		       </div>
-
 
116
		     </form> 
-
 
117
              </div>
-
 
118
			    </div>
-
 
119
					
96
				</div>
120
				</div>
97
			</td>
121
			</td>
98
		</tr>
122
		</tr>
99
 
123
 
100
		<tr>
124
		<tr>
101
			<td align="left" style="Width: 20%">
125
			<td align="left" style="Width: 20%">
102
				<div class="row">
126
				<div class="row">
103
					<div class="col-lg-2 form-group" style="width: 12%;">
127
					<div class="col-lg-2 form-group" style="width: 12%;">
104
						<select id="colorFilter" name="colorFilter" placeholder="Status"
128
						<select id="colorFilter" name="colorFilter" placeholder="Status"
105
							class="form-control input-sm">
129
							class="form-control input-sm">
106
							<option value="" disabled selected>Status</option>
130
								<option value="" disabled selected>Status</option>
107
							<option value="All">All</option>
131
			         		<option value="All">All</option>
108
							<option value="yellow">yellow</option>
132
							<option value="yellow">yellow</option>
109
							<option value="green">green</option>
133
							<option value="green">green</option>
110
 
-
 
111
						</select>
134
						</select>
112
					</div>
135
					</div>
113
 
136
 
114
					<div class="col-lg-1">
137
					<div class="col-lg-1">
115
						<button class="btn btn-primary show-colowise-lead" type="button"
138
						<button class="btn btn-primary show-colowise-lead" type="button"
Line 253... Line 276...
253
							<th>ScheduleTimestamp</th>
276
							<th>ScheduleTimestamp</th>
254
							<th>Closure Timestamp</th>
277
							<th>Closure Timestamp</th>
255
							<th>Assign To</th>
278
							<th>Assign To</th>
256
							<th>view</th>
279
							<th>view</th>
257
							<th>Action</th>
280
							<th>Action</th>
-
 
281
							<th></th>
258
						</tr>
282
						</tr>
259
					</thead>
283
					</thead>
260
					<tbody>
284
					<tbody>
261
						#if(!$lead.isEmpty()) #foreach( $request in $lead )
285
						#if(!$lead.isEmpty()) #foreach( $request in $lead )
262
						#if($request.getColor() == "Green")
286
						#if($request.getColor() == "Green")
Line 293... Line 317...
293
									data-requestid="$request.getId()" data-toggle="modal"
317
									data-requestid="$request.getId()" data-toggle="modal"
294
									data-target="#fetchLeadActivityData" type="button">View</button></td>
318
									data-target="#fetchLeadActivityData" type="button">View</button></td>
295
							<td><button class="btn btn-primary editLead"
319
							<td><button class="btn btn-primary editLead"
296
									data-leadid="$request.getId()" data-toggle="modal"
320
									data-leadid="$request.getId()" data-toggle="modal"
297
									data-target="#editLeadData" type="button">Edit</button></td>
321
									data-target="#editLeadData" type="button">Edit</button></td>
-
 
322
						    <td>$request.getColor()</td>
-
 
323
								
298
						</tr>
324
						</tr>
299
						#end #else
325
						#end #else
300
						<tr>
326
						<tr>
301
							<td colspan="12" style="text-align: center;">NO MATCHING
327
							<td colspan="12" style="text-align: center;">NO MATCHING
302
								DATA FOUND FOR CRITERIA</td>
328
								DATA FOUND FOR CRITERIA</td>
Line 594... Line 620...
594
   
620
   
595
		let count = 0;
621
		let count = 0;
596
		let ni =0;
622
		let ni =0;
597
		
623
		
598
		let fwup = 0;
624
		let fwup = 0;
-
 
625
		let htld = 0;
599
		let pend = 0;
626
		let pend = 0;
600
		let final = 0;
627
		let final = 0;
601
		
628
		
602
		table.rows({
629
		table.rows({
603
			"search" : "applied"
630
			"search" : "applied"
Line 605... Line 632...
605
			
632
			
606
			var data = this.data();
633
			var data = this.data();
607
			
634
			
608
			console.log("data"+data);
635
			console.log("data"+data);
609
			var status = data[8];
636
			var status = data[8];
-
 
637
			var hotLeads = data[16];
610
			
638
			
611
			console.log("status"+status);
639
			console.log("status"+status);
612
			
640
			
-
 
641
			if(hotLeads =="Green"){
-
 
642
			htld++;
-
 
643
			}
-
 
644
			
613
			if(status=="notInterested"){
645
			if(status=="notInterested"){
614
			ni++;
646
			ni++;
615
			}
647
			}
616
			else if(status=="followUp"){
648
			else if(status=="followUp"){
617
			
-
 
618
			fwup++;
649
			fwup++;
619
			}
650
			}
620
			else if(status=="pending"){
651
			else if(status=="pending"){
621
			
652
			
622
			pend++;
653
			pend++;
Line 624... Line 655...
624
			else if(status=="finalized"){
655
			else if(status=="finalized"){
625
			
656
			
626
			final++;
657
			final++;
627
			}
658
			}
628
			
659
			
629
			console.log("All"+ni + fwup + pend+ final);
660
			console.log("All"+ni + fwup + pend+ final+htld);
630
 
661
 
631
                 var count= table.rows( {search:'applied'} ).count();
662
                 var count= table.rows( {search:'applied'} ).count();
632
 
663
 
633
                console.log("count"+count);
664
                console.log("count"+count);
634
 
665
 
Line 644... Line 675...
644
       
675
       
645
         "labels":[
676
         "labels":[
646
            "notInterested",
677
            "notInterested",
647
            "followUp",
678
            "followUp",
648
            "pending",
679
            "pending",
649
            "finalized"
680
            "finalized",
-
 
681
            "HotLeads"
650
                  ],
682
                  ],
651
       "datasets":[
683
       "datasets":[
652
           {
684
           {
653
            "data":[
685
            "data":[
654
                ni,fwup,pend,final
686
                ni,fwup,pend,final,htld
655
               ],
687
               ],
656
         "backgroundColor":["red","#9ACD32","pink","blue"],
688
         "backgroundColor":["red","#9ACD32","pink","blue","green"],
657
         "label":"DataSet 1"
689
         "label":"DataSet 1"
658
           }
690
           }
659
                 ]
691
                 ]
660
              },
692
              },
661
        "options":{
693
        "options":{
Line 680... Line 712...
680
         }
712
         }
681
         if(final <= 0){
713
         if(final <= 0){
682
         myPieChart.getDatasetMeta(0).data[3].hidden=true;
714
         myPieChart.getDatasetMeta(0).data[3].hidden=true;
683
         }
715
         }
684
         
716
         
-
 
717
          if(htld <= 0){
-
 
718
         myPieChart.getDatasetMeta(0).data[4].hidden=true;
-
 
719
         }
-
 
720
        
685
         myPieChart.update();
721
         myPieChart.update();
686
 
722
 
687
	}
723
	}
688
 
724
 
689
 
725