◆ getByResolution()
Definition at line 231 of file DatawarehouseVM.java.
232 SimplePieModel cm =
new SimplePieModel();
233 WhereClause wc =
new WhereClause();
234 wc.addClause(
"select resolution, count(distinct issueId)");
235 wc.addClause(
"from DWIssue");
236 wc.addClause(
"where 1=1");
237 addFilter(wc,
"startDate", role);
238 wc.addClause(
"group by resolution");
239 List<Object[]> results = getDao().getResultList(wc);
240 for(Object o[] : results) {
241 IssueResolution resolution = (IssueResolution) o[0];
242 cm.setValue(resolution.toString(), (Number) o[1]);
244 DWChart chart =
new DWChart();
245 chart.setTitle(
"Resolutions");
247 chart.setType(
"pie");
248 chart.setHeight(
"300");
249 chart.setWidth(
"500");
◆ getByStatus()
Definition at line 187 of file DatawarehouseVM.java.
188 SimplePieModel cm =
new SimplePieModel();
189 WhereClause wc =
new WhereClause();
190 wc.addClause(
"select status, count(distinct issueId)");
191 wc.addClause(
"from DWIssue");
192 wc.addClause(
"where 1=1");
193 addFilter(wc,
"startDate", role);
194 wc.addClause(
"group by status");
195 List<Object[]> results = getDao().getResultList(wc);
196 for(Object o[] : results) {
197 IssueStatus status = (IssueStatus) o[0];
198 cm.setValue(status.toString(), (Number) o[1]);
200 DWChart chart =
new DWChart();
201 chart.setTitle(
"Status");
203 chart.setType(
"pie");
204 chart.setHeight(
"300");
205 chart.setWidth(
"500");
◆ getByType()
Definition at line 209 of file DatawarehouseVM.java.
210 SimplePieModel cm =
new SimplePieModel();
211 WhereClause wc =
new WhereClause();
212 wc.addClause(
"select type, count(distinct issueId)");
213 wc.addClause(
"from DWIssue");
214 wc.addClause(
"where 1=1");
215 addFilter(wc,
"startDate", role);
216 wc.addClause(
"group by type");
217 List<Object[]> results = getDao().getResultList(wc);
218 for(Object o[] : results) {
219 IssueType type = (IssueType) o[0];
220 cm.setValue(type.toString(), (Number) o[1]);
222 DWChart chart =
new DWChart();
223 chart.setTitle(
"Type");
225 chart.setType(
"pie");
226 chart.setHeight(
"300");
227 chart.setWidth(
"500");
◆ getCategory()
Category org.turro.dossier.dw.DatawarehouseVM.getCategory |
( |
| ) |
|
◆ getContact()
IContact org.turro.dossier.dw.DatawarehouseVM.getContact |
( |
| ) |
|
◆ getDossier()
Dossier org.turro.dossier.dw.DatawarehouseVM.getDossier |
( |
| ) |
|
◆ getEnd()
Date org.turro.dossier.dw.DatawarehouseVM.getEnd |
( |
| ) |
|
◆ getEngine()
◆ getIssuesByParticipant()
Definition at line 157 of file DatawarehouseVM.java.
158 SimpleCategoryModel cm =
new SimpleCategoryModel();
159 WhereClause wc =
new WhereClause();
160 wc.addClause(
"select participantId, resolution, count(distinct issueId)");
161 wc.addClause(
"from DWIssue");
162 wc.addClause(
"where participantRole = :role");
163 wc.addNamedValue(
"role", role);
164 IContact temp = contact;
166 addFilter(wc,
"startDate",
null);
168 wc.addClause(
"group by participantId, resolution");
169 List<Object[]> results = getDao().getResultList(wc);
170 for(Object o[] : results) {
171 IContact participant = Contacts.getContactById((String) o[0]);
172 if(participant.isValid()) {
173 IssueResolution resolution = (IssueResolution) o[1];
174 cm.setValue(resolution.toString(), participant.getName(), (Number) o[2]);
177 DWChart chart =
new DWChart();
178 chart.setTitle(role.toString());
180 chart.setType(
"bar");
181 chart.setOrient(
"horizontal");
182 chart.setWidth(
"900");
183 chart.setHeight((results.size() * 90 + 40) +
"");
◆ getModel()
List<DWChart> org.turro.dossier.dw.DatawarehouseVM.getModel |
( |
| ) |
|
Definition at line 139 of file DatawarehouseVM.java.
141 if(report.equals(DWReportType.DW_TIMELINE)) {
145 }
else if(report.equals(DWReportType.DW_PARTICIPANTS)) {
149 }
else if(report.equals(DWReportType.DW_ISSUES)) {
DWChart getByType(IssueParticipantRole role)
DWChart getTimelineByStatus(IssueParticipantRole role)
DWChart getByStatus(IssueParticipantRole role)
DWChart getTimelineByResolution(IssueParticipantRole role)
DWChart getIssuesByParticipant(IssueParticipantRole role)
DWChart getTimelineByType(IssueParticipantRole role)
DWChart getByResolution(IssueParticipantRole role)
◆ getStart()
Date org.turro.dossier.dw.DatawarehouseVM.getStart |
( |
| ) |
|
◆ getTimelineByResolution()
Definition at line 253 of file DatawarehouseVM.java.
254 SimpleCategoryModel cm =
new SimpleCategoryModel();
255 WhereClause wc =
new WhereClause();
256 wc.addClause(
"select concat(year(solvedDate), '-', month(solvedDate)), resolution, count(distinct issueId)");
257 wc.addClause(
"from DWIssue");
258 wc.addClause(
"where 1=1");
259 addFilter(wc,
"solvedDate", role);
260 wc.addClause(
"group by concat(year(solvedDate), '-', month(solvedDate)), resolution");
261 wc.addClause(
"order by concat(year(solvedDate), '-', month(solvedDate))");
262 List<Object[]> results = getDao().getResultList(wc);
263 for(Object o[] : results) {
264 IssueResolution resolution = (IssueResolution) o[1];
265 String month = (String) o[0];
266 cm.setValue(resolution.toString(), month, (Number) o[2]);
268 DWChart chart =
new DWChart();
269 chart.setTitle(
"Resolution");
271 chart.setType(
"line");
272 chart.setHeight(
"300");
273 chart.setWidth((cm.getCategories().size() * 70 + 40) +
"");
◆ getTimelineByStatus()
Definition at line 277 of file DatawarehouseVM.java.
278 SimpleCategoryModel cm =
new SimpleCategoryModel();
279 WhereClause wc =
new WhereClause();
280 wc.addClause(
"select concat(year(startDate), '-', month(startDate)), status, count(distinct issueId)");
281 wc.addClause(
"from DWIssue");
282 wc.addClause(
"where 1=1");
283 addFilter(wc,
"startDate", role);
284 wc.addClause(
"group by concat(year(startDate), '-', month(startDate)), status");
285 wc.addClause(
"order by concat(year(startDate), '-', month(startDate))");
286 List<Object[]> results = getDao().getResultList(wc);
287 for(Object o[] : results) {
288 IssueStatus status = (IssueStatus) o[1];
289 String month = (String) o[0];
290 cm.setValue(status.toString(), month, (Number) o[2]);
292 DWChart chart =
new DWChart();
293 chart.setTitle(
"Status");
295 chart.setType(
"line");
296 chart.setHeight(
"300");
297 chart.setWidth((cm.getCategories().size() * 70 + 40) +
"");
◆ getTimelineByType()
Definition at line 301 of file DatawarehouseVM.java.
302 SimpleCategoryModel cm =
new SimpleCategoryModel();
303 WhereClause wc =
new WhereClause();
304 wc.addClause(
"select concat(year(startDate), '-', month(startDate)), type, count(distinct issueId)");
305 wc.addClause(
"from DWIssue");
306 wc.addClause(
"where 1=1");
307 addFilter(wc,
"startDate", role);
308 wc.addClause(
"group by concat(year(startDate), '-', month(startDate)), type");
309 wc.addClause(
"order by concat(year(startDate), '-', month(startDate))");
310 List<Object[]> results = getDao().getResultList(wc);
311 for(Object o[] : results) {
312 IssueType type = (IssueType) o[1];
313 String month = (String) o[0];
314 cm.setValue(type.toString(), month, (Number) o[2]);
316 DWChart chart =
new DWChart();
317 chart.setTitle(
"Type");
319 chart.setType(
"line");
320 chart.setHeight(
"300");
321 chart.setWidth((cm.getCategories().size() * 70 + 40) +
"");
◆ init()
void org.turro.dossier.dw.DatawarehouseVM.init |
( |
| ) |
|
Definition at line 100 of file DatawarehouseVM.java.
101 engine =
new DWChartEngine();
102 start =
new CheckDate().addYears(-5).setDay(1).getDate();
103 end =
new CheckDate().addMonths(1).setDay(31).getDate();
104 charts =
new ArrayList<>();
◆ selectContact()
void org.turro.dossier.dw.DatawarehouseVM.selectContact |
( |
@BindingParam("contact") IContact |
contact | ) |
|
◆ selectEntity()
void org.turro.dossier.dw.DatawarehouseVM.selectEntity |
( |
@BindingParam("entity") Object |
entity | ) |
|
Definition at line 114 of file DatawarehouseVM.java.
115 if(entity instanceof Category) {
116 this.category = (Category) entity;
118 }
else if(entity instanceof Dossier) {
119 this.dossier = (Dossier) entity;
120 this.category =
null;
123 this.category =
null;
◆ selectReport()
void org.turro.dossier.dw.DatawarehouseVM.selectReport |
( |
@BindingParam("type") DWReportType |
type | ) |
|
◆ setCategory()
void org.turro.dossier.dw.DatawarehouseVM.setCategory |
( |
Category |
category | ) |
|
◆ setContact()
void org.turro.dossier.dw.DatawarehouseVM.setContact |
( |
IContact |
contact | ) |
|
◆ setDossier()
void org.turro.dossier.dw.DatawarehouseVM.setDossier |
( |
Dossier |
dossier | ) |
|
◆ setEnd()
void org.turro.dossier.dw.DatawarehouseVM.setEnd |
( |
Date |
end | ) |
|
◆ setStart()
void org.turro.dossier.dw.DatawarehouseVM.setStart |
( |
Date |
start | ) |
|
◆ update()
void org.turro.dossier.dw.DatawarehouseVM.update |
( |
| ) |
|
The documentation for this class was generated from the following file: