Subversion Repositories SmartDukaan

Rev

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

Rev 20870 Rev 21087
Line 72... Line 72...
72
	private double maxOrderAmount;
72
	private double maxOrderAmount;
73
	private double minOrderAmount;
73
	private double minOrderAmount;
74
	private double maxPaymentAmount;
74
	private double maxPaymentAmount;
75
	private double minPaymentAmount;
75
	private double minPaymentAmount;
76
	private List<Double> paymentAmountRange;
76
	private List<Double> paymentAmountRange;
77
	private List<Double> orderAmountRange;
-
 
78
	private List<Order> validOrders;
77
	private List<Order> validOrders;
79
 
78
 
80
	private String my;
79
	private String my;
81
 
80
 
82
	private UserClient usc;
-
 
83
	private in.shop2020.model.v1.user.UserContextService.Client uclient;
-
 
84
 
-
 
85
	private TransactionClient tsc;
81
	private TransactionClient tsc;
86
	private in.shop2020.model.v1.order.TransactionService.Client tClient;
82
	private in.shop2020.model.v1.order.TransactionService.Client tClient;
87
 
83
 
88
	private PaymentClient psc;
84
	private PaymentClient psc;
89
	private in.shop2020.payments.PaymentService.Client pClient;
85
	private in.shop2020.payments.PaymentService.Client pClient;
Line 91... Line 87...
91
	private final DateFormat formatter = new SimpleDateFormat(
87
	private final DateFormat formatter = new SimpleDateFormat(
92
			"EEE, dd-MMM-yyyy hh:mm a");
88
			"EEE, dd-MMM-yyyy hh:mm a");
93
 
89
 
94
	public StatisticsController() {
90
	public StatisticsController() {
95
		try {
91
		try {
96
			usc = new UserClient();
-
 
97
			uclient = usc.getClient();
-
 
98
 
92
 
99
			tsc = new TransactionClient();
93
			tsc = new TransactionClient();
100
			tClient = tsc.getClient();
94
			tClient = tsc.getClient();
101
 
95
 
102
			psc = new PaymentClient();
96
			psc = new PaymentClient();
Line 299... Line 293...
299
			}
293
			}
300
			row.createCell(i++).setCellValue(o.getStatus().getDescription());
294
			row.createCell(i++).setCellValue(o.getStatus().getDescription());
301
			row.createCell(i++).setCellValue(o.getCustomer_id());
295
			row.createCell(i++).setCellValue(o.getCustomer_id());
302
			row.createCell(i++).setCellValue(o.getCustomer_name());
296
			row.createCell(i++).setCellValue(o.getCustomer_name());
303
			row.createCell(i++).setCellValue(o.getCustomer_city());
297
			row.createCell(i++).setCellValue(o.getCustomer_city());
-
 
298
			row.createCell(i++).setCellValue(o.getCustomer_pincode());
-
 
299
			row.createCell(i++).setCellValue(o.getCustomer_state());
304
			row.createCell(i++).setCellValue(o.getLineitems().get(0).getItem_id());
300
			row.createCell(i++).setCellValue(o.getLineitems().get(0).getItem_id());
-
 
301
			LineItem lineItem = o.getLineitems().get(0);
305
			row.createCell(i++).setCellValue((o.getLineitems().get(0).getBrand() +  " " + getValidName(o.getLineitems().get(0).getModel_name()) +" " + getValidName(o.getLineitems().get(0).getModel_number()).replaceAll("  ", " ")));
302
			row.createCell(i++).setCellValue((lineItem.getBrand() +  " " + getValidName(lineItem.getModel_name()) +" " + getValidName(lineItem.getModel_number()).replaceAll("  ", " ")));
-
 
303
			row.createCell(i++).setCellValue(lineItem.getColor());
306
			row.createCell(i++).setCellValue(o.getLogisticsTransactionId());
304
			row.createCell(i++).setCellValue(o.getLogisticsTransactionId());
307
			rowNum++;
305
			rowNum++;
308
		}
306
		}
309
		ServletOutputStream os = response.getOutputStream();
307
		ServletOutputStream os = response.getOutputStream();
310
		workBook.write(bos);
308
		workBook.write(bos);