Subversion Repositories SmartDukaan

Rev

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

Rev 20786 Rev 20787
Line 242... Line 242...
242
		return quantity;
242
		return quantity;
243
	}
243
	}
244
 
244
 
245
	public String download() throws Exception {
245
	public String download() throws Exception {
246
		InputStream is = getClass().getClassLoader().getResourceAsStream("orderformat.xlsx");
246
		InputStream is = getClass().getClassLoader().getResourceAsStream("orderformat.xlsx");
247
		logger.info("is stream is " + is==null?"null" : "not null");
247
		logger.info("is stream is " + (is==null?"null" : "not null"));
248
		XSSFWorkbook workbook = new XSSFWorkbook(is);
248
		XSSFWorkbook workbook = new XSSFWorkbook(is);
249
		Sheet sheet = workbook.getSheetAt(0);
249
		Sheet sheet = workbook.getSheetAt(0);
250
		workbook.setSheetName(0, this.getMy());
250
		workbook.setSheetName(0, this.getMy());
251
		DateFormat df = new SimpleDateFormat("MMM, yyyy");
251
		DateFormat df = new SimpleDateFormat("MMM, yyyy");
252
		Date fromDate = df.parse(this.getMy());
252
		Date fromDate = df.parse(this.getMy());