Subversion Repositories SmartDukaan

Rev

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

Rev 27520 Rev 27529
Line 157... Line 157...
157
			function(response) {
157
			function(response) {
158
				$('#' + "main-content").html(response);
158
				$('#' + "main-content").html(response);
159
				console.log(response)
159
				console.log(response)
160
			});
160
			});
161
	}
161
	}
-
 
162
	
-
 
163
	
162
	</script>
164
</script>
-
 
165
	
-
 
166
	
-
 
167
<script type="text/javascript">
-
 
168
	function getWarehouseWiseData(){
-
 
169
	console.log("Hello")
-
 
170
		doGetAjaxRequestHandler(context + "/getWarehouseWiseData",
-
 
171
			function(response) {
-
 
172
				$('#' + "main-content").html(response);
-
 
173
				console.log(response)
-
 
174
				if(response == 'true'){
-
 
175
				console.log("hello 2")
-
 
176
				
-
 
177
				  window.location.href = $('.dashboardload').attr('href');
-
 
178
				 }
-
 
179
			});
-
 
180
	}
-
 
181
	
-
 
182
 
-
 
183
</script>
-
 
184
 
-
 
185
	
163
 
186
 
164
  </head>
187
  </head>
165
 
188
 
166
  <body style="zoom:90%;background-color:#f7f7f7">
189
  <body style="zoom:90%;background-color:#f7f7f7">
167
  <!--<div class="loading"><img src="resources/images/icons/loading.gif"></div>-->
190
  <!--<div class="loading"><img src="resources/images/icons/loading.gif"></div>-->
Line 206... Line 229...
206
      <aside>
229
      <aside>
207
          <div id="sidebar"  class="nav-collapse ">
230
          <div id="sidebar"  class="nav-collapse ">
208
              <!-- sidebar menu start-->
231
              <!-- sidebar menu start-->
209
              <ul class="sidebar-menu">                
232
              <ul class="sidebar-menu">                
210
              	  <li class="active">
233
              	  <li class="active">
211
                      <a class="" href="${rc.contextPath}/dashboard">
234
                      <a class="dashboardload" href="${rc.contextPath}/dashboard">
212
                          <i class="icon_house_alt"></i>
235
                          <i class="icon_house_alt"></i>
213
                          <span>Dashboard</span>
236
                          <span>Dashboard</span>
214
                      </a>
237
                      </a>
215
                  </li>
238
                  </li>
216
                  <li><a class="product-compare-info" href="javascript:void(0);">Product Compare</a></li>
239
                  <li><a class="product-compare-info" href="javascript:void(0);">Product Compare</a></li>
Line 287... Line 310...
287
	    				
310
	    				
288
	    		    </tbody>
311
	    		    </tbody>
289
	    		</table>
312
	    		</table>
290
						</div>
313
						</div>
291
						
314
						
292
						<div class="col-lg-4">
315
				<div class="col-lg-4">
-
 
316
			
-
 
317
				<div style="float:right"> <span style="margin-right:10px">Last Fetch :- $reporticoDate.getLastCreatedTimestamp().format($dateTimeFormatter)</span><button class="btn btn-primary fetchWarehouseData"  onclick="getWarehouseWiseData()" type="button">Fetch</button>
-
 
318
						     </div>
293
						 <table class="table table-striped table-advance table-hover">
319
				<table class="table table-striped table-advance table-hover">
294
	    			<tbody>
320
	    			<tbody>
295
	    				<tr>
321
	    				<tr>
296
	    				<th>W/H Location</th>
322
	    				<th>W/H Location</th>
297
	    				<th>Total Stock</th>
323
	    				<th>Total Stock</th>
298
	    				<th>Total Value</th>
324
	    				<th>Total Value</th>
-
 
325
	    				<th>Pending Indent</th>
299
	    				</tr>
326
	    				</tr>
300
	    				#foreach($key in $warehouseMap.keySet())
327
	    				#foreach($key in $warehouseMap.keySet())
301
	    			
328
	    			
302
	    				<tr onclick="getWarehouseBrandStock($warehouseStockMap.get($key).getWarehouseId())">
329
	    				<tr onclick="getWarehouseBrandStock($warehouseStockMap.get($key).getWarehouseId())">
303
	    					<td>$warehouseMap.get($key)</td>
330
	    					<td>$warehouseMap.get($key)</td>
Line 306... Line 333...
306
	    					<td class="currency">$warehouseStockMap.get($key).getStockValue()</td>
333
	    					<td class="currency">$warehouseStockMap.get($key).getStockValue()</td>
307
	    					#else
334
	    					#else
308
	    					<td>0</td>
335
	    					<td>0</td>
309
	    					<td>0</td>
336
	    					<td>0</td>
310
	    					#end
337
	    					#end
-
 
338
	    					#if($warehouseStockMap.get($key).getPendingIndent())
-
 
339
	    				    <td>$warehouseStockMap.get($key).getPendingIndent()</td>
-
 
340
	    				    #else
-
 
341
	    				    <td>0</td>
-
 
342
	    					#end
311
	    					
343
	    					
312
	    					
344
	    					
313
	    					
345
	    					
314
		                  </tr>
346
		                  </tr>
315
		              
347