Subversion Repositories SmartDukaan

Rev

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

Rev 30655 Rev 30682
Line 372... Line 372...
372
		LocalDate lastOfPreviousMonth = firstDateOfCurrentMonth.minusDays(1);
372
		LocalDate lastOfPreviousMonth = firstDateOfCurrentMonth.minusDays(1);
373
		List<List<?>> rows = new ArrayList<>();
373
		List<List<?>> rows = new ArrayList<>();
374
 
374
 
375
		Map<String, String> params = new HashMap<>();
375
		Map<String, String> params = new HashMap<>();
376
 
376
 
377
		params.put("MANUAL_datesBetween_FROMDATE", firstDateOfCurrentMonth.toString());
377
		params.put("MANUAL_datesBetween_FROMDATE", startOfPreviousMonth.toString());
378
		params.put("MANUAL_datesBetween_TODATE", firstDateOfCurrentMonth.plusDays(9).toString());
378
		params.put("MANUAL_datesBetween_TODATE", lastOfPreviousMonth.toString());
379
 
379
 
380
		params.put("type", "INVESTMENT");
380
		params.put("type", "INVESTMENT");
381
 
381
 
382
		List<EvaluateSchemeInvestmentPayoutModel> evaluateSchemeInvestmentPayouts = reporticoService.getReports(
382
		List<EvaluateSchemeInvestmentPayoutModel> evaluateSchemeInvestmentPayouts = reporticoService.getReports(
383
				EvaluateSchemeInvestmentPayoutModel.class, ReporticoProject.FOCO, "schemepayout.xml", params);
383
				EvaluateSchemeInvestmentPayoutModel.class, ReporticoProject.FOCO, "schemepayout.xml", params);
Line 423... Line 423...
423
		headers.setContentLength(baos.toByteArray().length);
423
		headers.setContentLength(baos.toByteArray().length);
424
 
424
 
425
		final InputStream inputStream = new ByteArrayInputStream(baos.toByteArray());
425
		final InputStream inputStream = new ByteArrayInputStream(baos.toByteArray());
426
		final InputStreamResource inputStreamResource = new InputStreamResource(inputStream);
426
		final InputStreamResource inputStreamResource = new InputStreamResource(inputStream);
427
 
427
 
428
		return new ResponseEntity<InputStreamResource>(inputStreamResource, headers, HttpStatus.OK);
428
		return new ResponseEntity<>(inputStreamResource, headers, HttpStatus.OK);
429
 
429
 
430
	}
430
	}
431
 
431
 
432
	@RequestMapping(value = "/schemes/update", method = RequestMethod.POST)
432
	@RequestMapping(value = "/schemes/update", method = RequestMethod.POST)
433
	public String updateShcemes(HttpServletRequest request, @RequestBody SchemeItems schemeItems, Model model)
433
	public String updateShcemes(HttpServletRequest request, @RequestBody SchemeItems schemeItems, Model model)