Subversion Repositories SmartDukaan

Rev

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

Rev 23612 Rev 23637
Line 25... Line 25...
25
						{
25
						{
26
							put("project", ReporticoProject.FOCO.getValue());
26
							put("project", ReporticoProject.FOCO.getValue());
27
							put("project_password", "foco");
27
							put("project_password", "foco");
28
						}
28
						}
29
					});
29
					});
-
 
30
					put(ReporticoProject.FOCOR, new HashMap<String, String>() {
-
 
31
						{
-
 
32
							put("project", ReporticoProject.FOCOR.getValue());
-
 
33
							put("project_password", "focor");
-
 
34
						}
-
 
35
					});
30
				}
36
				}
31
			});
37
			});
32
	
38
	
33
	public HttpResponse getReportFile(ReporticoProject projectName, String reportName) throws HttpHostConnectException, ProfitMandiBusinessException {
39
	public HttpResponse getReportFile(ReporticoProject projectName, String reportName) throws HttpHostConnectException, ProfitMandiBusinessException {
34
		
40
		
Line 49... Line 55...
49
		
55
		
50
		Map<String, String> params = new HashMap<>(authMap);
56
		Map<String, String> params = new HashMap<>(authMap);
51
		params.put("xmlin", reportName);
57
		params.put("xmlin", reportName);
52
		params.put("target_format", "CSV");
58
		params.put("target_format", "CSV");
53
		params.put("execute_mode", "EXECUTE");
59
		params.put("execute_mode", "EXECUTE");
54
		params.put("fofoId", String.valueOf(fofoId));
60
		params.put("MANUAL_fofoId", String.valueOf(fofoId));
55
		return restClient.getResponse(reporticoUrl, params, new HashMap<>());
61
		return restClient.getResponse(reporticoUrl, params, new HashMap<>());
56
	}
62
	}
57
}
63
}