Bonjour;
j'essaye de génerer un rapport pdf avec jasper report depuis un bean mais j'obtient l'erreur suivante:
voilà mon bean
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184 mars 11, 2014 1:30:45 PM javax.faces.event.MethodExpressionActionListener processAction Grave: Réception de 'net.sf.jasperreports.engine.JRException' lors de l'invocation du listener d'action '#{consultationficheexcelBean.exportToPdf}' du composant 'j_idt56' mars 11, 2014 1:30:45 PM javax.faces.event.MethodExpressionActionListener processAction Grave: net.sf.jasperreports.engine.JRException: Error retrieving field value from bean : CODEFICHE at net.sf.jasperreports.engine.data.JRAbstractBeanDataSource.getBeanProperty(JRAbstractBeanDataSource.java:123) at net.sf.jasperreports.engine.data.JRAbstractBeanDataSource.getFieldValue(JRAbstractBeanDataSource.java:96) at net.sf.jasperreports.engine.data.JRBeanCollectionDataSource.getFieldValue(JRBeanCollectionDataSource.java:100) at net.sf.jasperreports.engine.fill.JRFillDataset.setOldValues(JRFillDataset.java:1330) at net.sf.jasperreports.engine.fill.JRFillDataset.next(JRFillDataset.java:1231) at net.sf.jasperreports.engine.fill.JRFillDataset.next(JRFillDataset.java:1207) at net.sf.jasperreports.engine.fill.JRBaseFiller.next(JRBaseFiller.java:1554) at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillReport(JRVerticalFiller.java:149) at net.sf.jasperreports.engine.fill.JRBaseFiller.fill(JRBaseFiller.java:909) at net.sf.jasperreports.engine.fill.JRBaseFiller.fill(JRBaseFiller.java:841) at net.sf.jasperreports.engine.fill.JRFiller.fill(JRFiller.java:88) at net.sf.jasperreports.engine.JasperFillManager.fill(JasperFillManager.java:653) at net.sf.jasperreports.engine.JasperFillManager.fillReport(JasperFillManager.java:969) at com.oc.web.ConsultationficheexcelBean.reportBuilder(ConsultationficheexcelBean.java:54) at com.oc.web.ConsultationficheexcelBean.exportToPdf(ConsultationficheexcelBean.java:57) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.apache.el.parser.AstValue.invoke(AstValue.java:278) at org.apache.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:274) at com.sun.faces.facelets.el.TagMethodExpression.invoke(TagMethodExpression.java:98) at javax.faces.event.MethodExpressionActionListener.processAction(MethodExpressionActionListener.java:148) at javax.faces.event.ActionEvent.processListener(ActionEvent.java:88) at javax.faces.component.UIComponentBase.broadcast(UIComponentBase.java:772) at javax.faces.component.UICommand.broadcast(UICommand.java:300) at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:774) at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:1266) at com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:82) at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101) at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118) at javax.faces.webapp.FacesServlet.service(FacesServlet.java:310) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:51) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:368) at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:109) at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:83) at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:380) at org.springframework.security.web.access.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:97) at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:380) at org.springframework.security.web.session.SessionManagementFilter.doFilter(SessionManagementFilter.java:100) at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:380) at org.springframework.security.web.authentication.AnonymousAuthenticationFilter.doFilter(AnonymousAuthenticationFilter.java:78) at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:380) at org.springframework.security.web.servletapi.SecurityContextHolderAwareRequestFilter.doFilter(SecurityContextHolderAwareRequestFilter.java:54) at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:380) at org.springframework.security.web.savedrequest.RequestCacheAwareFilter.doFilter(RequestCacheAwareFilter.java:35) at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:380) at org.springframework.security.web.authentication.www.BasicAuthenticationFilter.doFilter(BasicAuthenticationFilter.java:177) at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:380) at org.springframework.security.web.authentication.AbstractAuthenticationProcessingFilter.doFilter(AbstractAuthenticationProcessingFilter.java:187) at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:380) at org.springframework.security.web.authentication.logout.LogoutFilter.doFilter(LogoutFilter.java:105) at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:380) at org.springframework.security.web.context.SecurityContextPersistenceFilter.doFilter(SecurityContextPersistenceFilter.java:79) at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:380) at org.springframework.security.web.FilterChainProxy.doFilter(FilterChainProxy.java:169) at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:237) at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:167) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:502) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:100) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:953) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408) at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1041) at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:603) at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:312) at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source) Caused by: java.lang.NoSuchMethodException: Unknown property 'CODEFICHE' on class 'class com.oc.classes.Consultationficheexcel' at org.apache.commons.beanutils.PropertyUtilsBean.getSimpleProperty(PropertyUtilsBean.java:1322) at org.apache.commons.beanutils.PropertyUtilsBean.getNestedProperty(PropertyUtilsBean.java:770) at org.apache.commons.beanutils.PropertyUtilsBean.getProperty(PropertyUtilsBean.java:846) at org.apache.commons.beanutils.PropertyUtils.getProperty(PropertyUtils.java:426) at net.sf.jasperreports.engine.data.JRAbstractBeanDataSource.getBeanProperty(JRAbstractBeanDataSource.java:111) ... 77 more mars 11, 2014 1:30:45 PM com.sun.faces.context.ExceptionHandlerImpl log Grave: JSF1073 : javax.faces.event.AbortProcessingException intercepté durant le traitement de INVOKE_APPLICATION 5 : UIComponent-ClientId=j_idt10:j_idt14:j_idt56, Message=/consultation.xhtml @187,118 actionListener="#{consultationficheexcelBean.exportToPdf}": net.sf.jasperreports.engine.JRException: Error retrieving field value from bean : CODEFICHE mars 11, 2014 1:30:45 PM com.sun.faces.context.ExceptionHandlerImpl log Grave: /consultation.xhtml @187,118 actionListener="#{consultationficheexcelBean.exportToPdf}": net.sf.jasperreports.engine.JRException: Error retrieving field value from bean : CODEFICHE javax.faces.event.AbortProcessingException: /consultation.xhtml @187,118 actionListener="#{consultationficheexcelBean.exportToPdf}": net.sf.jasperreports.engine.JRException: Error retrieving field value from bean : CODEFICHE at javax.faces.event.MethodExpressionActionListener.processAction(MethodExpressionActionListener.java:182) at javax.faces.event.ActionEvent.processListener(ActionEvent.java:88) at javax.faces.component.UIComponentBase.broadcast(UIComponentBase.java:772) at javax.faces.component.UICommand.broadcast(UICommand.java:300) at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:774) at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:1266) at com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:82) at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101) at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118) at javax.faces.webapp.FacesServlet.service(FacesServlet.java:310) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:51) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:368) at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:109) at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:83) at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:380) at org.springframework.security.web.access.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:97) at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:380) at org.springframework.security.web.session.SessionManagementFilter.doFilter(SessionManagementFilter.java:100) at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:380) at org.springframework.security.web.authentication.AnonymousAuthenticationFilter.doFilter(AnonymousAuthenticationFilter.java:78) at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:380) at org.springframework.security.web.servletapi.SecurityContextHolderAwareRequestFilter.doFilter(SecurityContextHolderAwareRequestFilter.java:54) at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:380) at org.springframework.security.web.savedrequest.RequestCacheAwareFilter.doFilter(RequestCacheAwareFilter.java:35) at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:380) at org.springframework.security.web.authentication.www.BasicAuthenticationFilter.doFilter(BasicAuthenticationFilter.java:177) at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:380) at org.springframework.security.web.authentication.AbstractAuthenticationProcessingFilter.doFilter(AbstractAuthenticationProcessingFilter.java:187) at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:380) at org.springframework.security.web.authentication.logout.LogoutFilter.doFilter(LogoutFilter.java:105) at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:380) at org.springframework.security.web.context.SecurityContextPersistenceFilter.doFilter(SecurityContextPersistenceFilter.java:79) at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:380) at org.springframework.security.web.FilterChainProxy.doFilter(FilterChainProxy.java:169) at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:237) at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:167) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:502) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:100) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:953) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408) at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1041) at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:603) at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:312) at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source) Caused by: net.sf.jasperreports.engine.JRException: Error retrieving field value from bean : CODEFICHE at net.sf.jasperreports.engine.data.JRAbstractBeanDataSource.getBeanProperty(JRAbstractBeanDataSource.java:123) at net.sf.jasperreports.engine.data.JRAbstractBeanDataSource.getFieldValue(JRAbstractBeanDataSource.java:96) at net.sf.jasperreports.engine.data.JRBeanCollectionDataSource.getFieldValue(JRBeanCollectionDataSource.java:100) at net.sf.jasperreports.engine.fill.JRFillDataset.setOldValues(JRFillDataset.java:1330) at net.sf.jasperreports.engine.fill.JRFillDataset.next(JRFillDataset.java:1231) at net.sf.jasperreports.engine.fill.JRFillDataset.next(JRFillDataset.java:1207) at net.sf.jasperreports.engine.fill.JRBaseFiller.next(JRBaseFiller.java:1554) at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillReport(JRVerticalFiller.java:149) at net.sf.jasperreports.engine.fill.JRBaseFiller.fill(JRBaseFiller.java:909) at net.sf.jasperreports.engine.fill.JRBaseFiller.fill(JRBaseFiller.java:841) at net.sf.jasperreports.engine.fill.JRFiller.fill(JRFiller.java:88) at net.sf.jasperreports.engine.JasperFillManager.fill(JasperFillManager.java:653) at net.sf.jasperreports.engine.JasperFillManager.fillReport(JasperFillManager.java:969) at com.oc.web.ConsultationficheexcelBean.reportBuilder(ConsultationficheexcelBean.java:54) at com.oc.web.ConsultationficheexcelBean.exportToPdf(ConsultationficheexcelBean.java:57) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.apache.el.parser.AstValue.invoke(AstValue.java:278) at org.apache.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:274) at com.sun.faces.facelets.el.TagMethodExpression.invoke(TagMethodExpression.java:98) at javax.faces.event.MethodExpressionActionListener.processAction(MethodExpressionActionListener.java:148) ... 55 more Caused by: java.lang.NoSuchMethodException: Unknown property 'CODEFICHE' on class 'class com.oc.classes.Consultationficheexcel' at org.apache.commons.beanutils.PropertyUtilsBean.getSimpleProperty(PropertyUtilsBean.java:1322) at org.apache.commons.beanutils.PropertyUtilsBean.getNestedProperty(PropertyUtilsBean.java:770) at org.apache.commons.beanutils.PropertyUtilsBean.getProperty(PropertyUtilsBean.java:846) at org.apache.commons.beanutils.PropertyUtils.getProperty(PropertyUtils.java:426) at net.sf.jasperreports.engine.data.JRAbstractBeanDataSource.getBeanProperty(JRAbstractBeanDataSource.java:111) ... 77 more
et voilà mon fichier report1.jrxml
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95 package com.oc.web; import java.io.IOException; import java.io.Serializable; import java.util.HashMap; import java.util.List; import javax.annotation.PostConstruct; import javax.faces.context.FacesContext; import javax.faces.event.ActionEvent; import javax.servlet.ServletOutputStream; import javax.servlet.http.HttpServletResponse; import net.sf.jasperreports.engine.JRException; import net.sf.jasperreports.engine.JasperCompileManager; import net.sf.jasperreports.engine.JasperExportManager; import net.sf.jasperreports.engine.JasperFillManager; import net.sf.jasperreports.engine.JasperPrint; import net.sf.jasperreports.engine.JasperReport; import net.sf.jasperreports.engine.data.JRBeanCollectionDataSource; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.context.annotation.Scope; import org.springframework.stereotype.Component; import com.oc.classes.Consultationficheexcel; import com.oc.services.ConsultationficheexcelService; @SuppressWarnings("serial") @Component("consultationficheexcelBean") @Scope("session") public class ConsultationficheexcelBean implements Serializable { JasperPrint jasperPrint=new JasperPrint(); @Autowired private transient ConsultationficheexcelService consultationficheexcelService; private List<Consultationficheexcel> consultationficheexcelList; @PostConstruct public void init(){ consultationficheexcelList=consultationficheexcelService.findAll(); } public void reportBuilder() throws JRException { HashMap parametre = new HashMap(); jasperPrint=new JasperPrint(); System.out.println("u"); System.out.println("la taille de consultation fiche excel :"+consultationficheexcelList.size()); System.out.println("consultation fiche excel :"+consultationficheexcelList.get(0)); System.out.println("consultation fiche excel :"+consultationficheexcelList.get(0)); System.out.println("consultation fiche excel :"+consultationficheexcelList.get(0).getNom()); JasperReport jasperReport = JasperCompileManager.compileReport("C:\\Users\\ighachane\\Desktop\\report1.jrxml"); JRBeanCollectionDataSource beanCollectionDataSource=new JRBeanCollectionDataSource(consultationficheexcelList); jasperPrint=JasperFillManager.fillReport(jasperReport, new HashMap(),beanCollectionDataSource); } public void exportToPdf(ActionEvent actionEvent) throws JRException, IOException { reportBuilder(); HttpServletResponse httpServletResponse = (HttpServletResponse) FacesContext.getCurrentInstance().getExternalContext().getResponse(); ServletOutputStream servletStream = httpServletResponse.getOutputStream(); JasperExportManager.exportReportToPdfStream(jasperPrint, servletStream); } /** * @return the consultationficheexcelService */ public ConsultationficheexcelService getConsultationficheexcelService() { return consultationficheexcelService; } /** * @param consultationficheexcelService the consultationficheexcelService to set */ public void setConsultationficheexcelService( ConsultationficheexcelService consultationficheexcelService) { this.consultationficheexcelService = consultationficheexcelService; } /** * @return the consultationficheexcelList */ public List<Consultationficheexcel> getConsultationficheexcelList() { return consultationficheexcelList; } /** * @param consultationficheexcelList the consultationficheexcelList to set */ public void setConsultationficheexcelList( List<Consultationficheexcel> consultationficheexcelList) { this.consultationficheexcelList = consultationficheexcelList; } }
et ci dessous la classe Consultationficheexcel
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237 <?xml version="1.0" encoding="UTF-8"?> <jasperReport xmlns="http://jasperreports.sourceforge.net/jasperreports" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://jasperreports.sourceforge.net/jasperreports http://jasperreports.sourceforge.net/xsd/jasperreport.xsd" name="report1" language="groovy" pageWidth="842" pageHeight="595" orientation="Landscape" columnWidth="802" leftMargin="20" rightMargin="20" topMargin="20" bottomMargin="20" uuid="6866ea9b-94a9-4235-bb65-3fd0660649a9"> <property name="ireport.zoom" value="1.0"/> <property name="ireport.x" value="0"/> <property name="ireport.y" value="0"/> <style name="table"> <box> <pen lineWidth="1.0" lineColor="#000000"/> </box> </style> <style name="table_TH" mode="Opaque" backcolor="#8599BE"> <box> <pen lineWidth="0.5" lineColor="#000000"/> </box> </style> <style name="table_CH" mode="Opaque" backcolor="#CFD7E6"> <box> <pen lineWidth="0.5" lineColor="#000000"/> </box> </style> <style name="table_TD" mode="Opaque" backcolor="#FFFFFF"> <box> <pen lineWidth="0.5" lineColor="#000000"/> </box> <conditionalStyle> <conditionExpression><![CDATA[new Boolean($V{REPORT_COUNT}.intValue()%2==0)]]></conditionExpression> <style backcolor="#F3F5F8"/> </conditionalStyle> </style> <subDataset name="Table Dataset 1" uuid="bada19de-8814-41de-97bf-4eea1e38d974"/> <queryString language="SQL"> <![CDATA[SELECT * FROM CONSULTATIONFICHEEXCEL]]> </queryString> <field name="CODEFICHE" class="java.lang.String"/> <field name="MATRICULE" class="java.lang.String"/> <field name="NOM" class="java.lang.String"/> <field name="GRADE" class="java.lang.String"/> <field name="DEPARTEMENT" class="java.lang.String"/> <field name="FORMATION" class="java.lang.String"/> <field name="AVISDELAPRRECIE" class="java.lang.String"/> <field name="AVISDELAPPRECIATEUR" class="java.lang.String"/> <field name="FONCTION" class="java.lang.String"/> <field name="COMMENTAIREFONCTION" class="java.lang.String"/> <field name="CONDITIONSDETRAVAIL" class="java.lang.String"/> <field name="COMMENTAIRECONDITIONSDETRAVAIL" class="java.lang.String"/> <field name="DEROULEMENTDELENTR" class="java.lang.String"/> <field name="COMMENTAIREDEROULEMENTDELENTR" class="java.lang.String"/> <field name="AVISN2" class="java.lang.String"/> <field name="NOTE" class="java.math.BigDecimal"/> <background> <band splitType="Stretch"/> </background> <title> <band height="79" splitType="Stretch"/> </title> <pageHeader> <band height="37" splitType="Stretch"/> </pageHeader> <columnHeader> <band height="61" splitType="Stretch"> <staticText> <reportElement uuid="cd05f89b-ea74-440a-9a3f-744bf575be07" x="4" y="2" width="29" height="37"/> <textElement/> <text><![CDATA[CODEFICHE]]></text> </staticText> <staticText> <reportElement uuid="1c1cd376-4b4e-4507-bc4d-170bac6925f4" x="33" y="2" width="30" height="37"/> <textElement/> <text><![CDATA[MATRICULE]]></text> </staticText> <staticText> <reportElement uuid="911a0d49-8484-438a-94d7-63fea9daecd1" x="63" y="2" width="62" height="37"/> <textElement/> <text><![CDATA[NOM]]></text> </staticText> <staticText> <reportElement uuid="bf69bf86-95ac-4fde-a88c-23101a5e4845" x="125" y="2" width="65" height="37"/> <textElement/> <text><![CDATA[GRADE]]></text> </staticText> <staticText> <reportElement uuid="b469da2b-8256-4865-89bb-c4a6c6c042dd" x="190" y="2" width="81" height="37"/> <textElement/> <text><![CDATA[DEPARTEMENT]]></text> </staticText> <staticText> <reportElement uuid="0b8400a7-4d86-4864-a3bc-b798ce6af32e" x="271" y="2" width="75" height="37"/> <textElement/> <text><![CDATA[FORMATION]]></text> </staticText> <staticText> <reportElement uuid="513b156b-c152-451f-bbf4-30935b76b5a4" x="346" y="2" width="59" height="37"/> <textElement/> <text><![CDATA[AVISDELAPRRECIE]]></text> </staticText> <staticText> <reportElement uuid="35c3606f-658d-4c59-87c0-e130851790aa" x="405" y="2" width="64" height="37"/> <textElement/> <text><![CDATA[AVISDELAPPRECIATEUR]]></text> </staticText> <staticText> <reportElement uuid="da9092bc-9c61-41b2-bbee-44c517dd555f" x="469" y="2" width="54" height="37"/> <textElement/> <text><![CDATA[FONCTION]]></text> </staticText> <staticText> <reportElement uuid="286332b0-7318-4628-8e2e-8c56ca93393d" x="523" y="2" width="50" height="37"/> <textElement/> <text><![CDATA[COMMENTAIREFONCTION]]></text> </staticText> <staticText> <reportElement uuid="90e5fab6-602e-4a78-afd0-5c48e825d2c2" x="571" y="2" width="42" height="37"/> <textElement/> <text><![CDATA[CONDITIONSDETRAVAIL]]></text> </staticText> <staticText> <reportElement uuid="12976bd5-cbcb-42a7-bdfc-3a6a5f781d52" x="613" y="2" width="33" height="37"/> <textElement/> <text><![CDATA[COMMENTAIRECONDITIONSDETRAVAIL]]></text> </staticText> <staticText> <reportElement uuid="c7880b4e-1234-47bf-a2e7-c523ede8003e" x="646" y="2" width="35" height="37"/> <textElement/> <text><![CDATA[DEROULEMENTDELENTR]]></text> </staticText> <staticText> <reportElement uuid="e94d6845-7cab-43cd-9cf7-2c4c7f95573d" x="681" y="2" width="35" height="37"/> <textElement/> <text><![CDATA[COMMENTAIREDEROULEMENTDELENTR]]></text> </staticText> <staticText> <reportElement uuid="53ce3cb8-be46-4963-8b2a-7f0ff3f007e4" x="716" y="2" width="36" height="37"/> <textElement/> <text><![CDATA[AVISN2]]></text> </staticText> <staticText> <reportElement uuid="a9c3600a-90b3-4738-8924-f0a047b0a32c" x="752" y="2" width="41" height="37"/> <textElement/> <text><![CDATA[NOTE]]></text> </staticText> </band> </columnHeader> <detail> <band height="125" splitType="Stretch"> <textField> <reportElement uuid="38b83a4a-2da2-47dd-bcc1-2d7028f4e7be" x="4" y="7" width="29" height="20"/> <textElement/> <textFieldExpression><![CDATA[$F{CODEFICHE}]]></textFieldExpression> </textField> <textField> <reportElement uuid="b8b7f6d7-42e8-4932-a8d4-e5a9b85040b7" x="33" y="7" width="30" height="20"/> <textElement/> <textFieldExpression><![CDATA[$F{MATRICULE}]]></textFieldExpression> </textField> <textField> <reportElement uuid="01e10a17-b8a2-4d77-b9bb-421479e2afb5" x="63" y="7" width="62" height="20"/> <textElement/> <textFieldExpression><![CDATA[$F{NOM}]]></textFieldExpression> </textField> <textField> <reportElement uuid="fd7f3def-dca6-4595-bb7c-0ce86ec2c397" x="125" y="7" width="65" height="20"/> <textElement/> <textFieldExpression><![CDATA[$F{GRADE}]]></textFieldExpression> </textField> <textField> <reportElement uuid="0112fc47-77a6-4a6e-a912-d7cc99154937" x="190" y="7" width="81" height="20"/> <textElement/> <textFieldExpression><![CDATA[$F{DEPARTEMENT}]]></textFieldExpression> </textField> <textField> <reportElement uuid="8c65d39c-6f1b-4344-a7c1-771726348bac" x="271" y="7" width="75" height="20"/> <textElement/> <textFieldExpression><![CDATA[$F{FORMATION}]]></textFieldExpression> </textField> <textField> <reportElement uuid="afd5bb3a-dd12-4133-9546-ac925a2cc32b" x="346" y="7" width="59" height="20"/> <textElement/> <textFieldExpression><![CDATA[$F{AVISDELAPRRECIE}]]></textFieldExpression> </textField> <textField> <reportElement uuid="1524ee61-42d9-4988-b191-34e4e9be8387" x="405" y="7" width="64" height="20"/> <textElement/> <textFieldExpression><![CDATA[$F{AVISDELAPPRECIATEUR}]]></textFieldExpression> </textField> <textField> <reportElement uuid="2e4b7604-74cb-47c9-8c21-647b1545cae4" x="469" y="7" width="54" height="20"/> <textElement/> <textFieldExpression><![CDATA[$F{FONCTION}]]></textFieldExpression> </textField> <textField> <reportElement uuid="4f70cb7f-cc40-4baa-a761-891ceed08819" x="523" y="7" width="50" height="20"/> <textElement/> <textFieldExpression><![CDATA[$F{COMMENTAIREFONCTION}]]></textFieldExpression> </textField> <textField> <reportElement uuid="4b372e9b-9326-4c89-a654-3e244fed04d7" x="573" y="7" width="42" height="20"/> <textElement/> <textFieldExpression><![CDATA[$F{CONDITIONSDETRAVAIL}]]></textFieldExpression> </textField> <textField> <reportElement uuid="252c72ce-6100-409d-87a7-d142b29b7281" x="615" y="7" width="33" height="20"/> <textElement/> <textFieldExpression><![CDATA[$F{COMMENTAIRECONDITIONSDETRAVAIL}]]></textFieldExpression> </textField> <textField> <reportElement uuid="e0a2a39d-ce94-4c6a-a100-1bed13dff3c2" x="648" y="7" width="35" height="20"/> <textElement/> <textFieldExpression><![CDATA[$F{DEROULEMENTDELENTR}]]></textFieldExpression> </textField> <textField> <reportElement uuid="0afe002c-6089-429b-8732-0570940d0884" x="683" y="7" width="33" height="20"/> <textElement/> <textFieldExpression><![CDATA[$F{COMMENTAIREDEROULEMENTDELENTR}]]></textFieldExpression> </textField> <textField> <reportElement uuid="cf142d09-688b-42c2-97c7-69f2acc3fc80" x="716" y="7" width="36" height="20"/> <textElement/> <textFieldExpression><![CDATA[$F{AVISN2}]]></textFieldExpression> </textField> <textField> <reportElement uuid="6b1be14d-e29d-47ac-bebc-2b17c3b112b5" x="752" y="7" width="41" height="22"/> <textElement/> <textFieldExpression><![CDATA[$F{NOTE}]]></textFieldExpression> </textField> </band> </detail> <columnFooter> <band height="45" splitType="Stretch"/> </columnFooter> <pageFooter> <band height="54" splitType="Stretch"/> </pageFooter> <summary> <band height="42" splitType="Stretch"/> </summary> </jasperReport>
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359 package com.oc.classes; // Generated 11 mars 2014 10:18:28 by Hibernate Tools 3.4.0.CR1 import java.math.BigDecimal; import javax.persistence.AttributeOverride; import javax.persistence.AttributeOverrides; import javax.persistence.Column; import javax.persistence.EmbeddedId; import javax.persistence.Entity; import javax.persistence.Id; import javax.persistence.Table; /** * Consultationficheexcel generated by hbm2java */ @Entity @Table(name = "CONSULTATIONFICHEEXCEL") public class Consultationficheexcel implements java.io.Serializable { private String codefiche; private String matricule; private String nom; private String grade; private String departement; private String formation; private String avisdelaprrecie; private String avisdelappreciateur; private String fonction; private String commentairefonction; private String conditionsdetravail; private String commentaireconditionsdetravail; private String deroulementdelentr; private String commentairederoulementdelentr; private String avisn2; private BigDecimal note; public Consultationficheexcel() { } public Consultationficheexcel(String codefiche, String matricule, String nom, String departement) { this.codefiche = codefiche; this.matricule = matricule; this.nom = nom; this.departement = departement; } public Consultationficheexcel(String codefiche, String matricule, String nom, String grade, String departement, String formation, String avisdelaprrecie, String avisdelappreciateur, String fonction, String commentairefonction, String conditionsdetravail, String commentaireconditionsdetravail, String deroulementdelentr, String commentairederoulementdelentr, String avisn2, BigDecimal note) { this.codefiche = codefiche; this.matricule = matricule; this.nom = nom; this.grade = grade; this.departement = departement; this.formation = formation; this.avisdelaprrecie = avisdelaprrecie; this.avisdelappreciateur = avisdelappreciateur; this.fonction = fonction; this.commentairefonction = commentairefonction; this.conditionsdetravail = conditionsdetravail; this.commentaireconditionsdetravail = commentaireconditionsdetravail; this.deroulementdelentr = deroulementdelentr; this.commentairederoulementdelentr = commentairederoulementdelentr; this.avisn2 = avisn2; this.note = note; } @Id @Column(name = "CODEFICHE", nullable = false, length = 500) public String getCodefiche() { return this.codefiche; } public void setCodefiche(String codefiche) { this.codefiche = codefiche; } @Column(name = "MATRICULE", nullable = false, length = 500) public String getMatricule() { return this.matricule; } public void setMatricule(String matricule) { this.matricule = matricule; } @Column(name = "NOM", nullable = false, length = 500) public String getNom() { return this.nom; } public void setNom(String nom) { this.nom = nom; } @Column(name = "GRADE", length = 500) public String getGrade() { return this.grade; } public void setGrade(String grade) { this.grade = grade; } @Column(name = "DEPARTEMENT", nullable = false, length = 500) public String getDepartement() { return this.departement; } public void setDepartement(String departement) { this.departement = departement; } @Column(name = "FORMATION", length = 500) public String getFormation() { return this.formation; } public void setFormation(String formation) { this.formation = formation; } @Column(name = "AVISDELAPRRECIE", length = 500) public String getAvisdelaprrecie() { return this.avisdelaprrecie; } public void setAvisdelaprrecie(String avisdelaprrecie) { this.avisdelaprrecie = avisdelaprrecie; } @Column(name = "AVISDELAPPRECIATEUR", length = 500) public String getAvisdelappreciateur() { return this.avisdelappreciateur; } public void setAvisdelappreciateur(String avisdelappreciateur) { this.avisdelappreciateur = avisdelappreciateur; } @Column(name = "FONCTION", length = 500) public String getFonction() { return this.fonction; } public void setFonction(String fonction) { this.fonction = fonction; } @Column(name = "COMMENTAIREFONCTION", length = 500) public String getCommentairefonction() { return this.commentairefonction; } public void setCommentairefonction(String commentairefonction) { this.commentairefonction = commentairefonction; } @Column(name = "CONDITIONSDETRAVAIL", length = 500) public String getConditionsdetravail() { return this.conditionsdetravail; } public void setConditionsdetravail(String conditionsdetravail) { this.conditionsdetravail = conditionsdetravail; } @Column(name = "COMMENTAIRECONDITIONSDETRAVAIL", length = 500) public String getCommentaireconditionsdetravail() { return this.commentaireconditionsdetravail; } public void setCommentaireconditionsdetravail( String commentaireconditionsdetravail) { this.commentaireconditionsdetravail = commentaireconditionsdetravail; } @Column(name = "DEROULEMENTDELENTR", length = 500) public String getDeroulementdelentr() { return this.deroulementdelentr; } public void setDeroulementdelentr(String deroulementdelentr) { this.deroulementdelentr = deroulementdelentr; } @Column(name = "COMMENTAIREDEROULEMENTDELENTR", length = 500) public String getCommentairederoulementdelentr() { return this.commentairederoulementdelentr; } public void setCommentairederoulementdelentr( String commentairederoulementdelentr) { this.commentairederoulementdelentr = commentairederoulementdelentr; } @Column(name = "AVISN2", length = 500) public String getAvisn2() { return this.avisn2; } public void setAvisn2(String avisn2) { this.avisn2 = avisn2; } @Column(name = "NOTE", precision = 4) public BigDecimal getNote() { return this.note; } public void setNote(BigDecimal note) { this.note = note; } public boolean equals(Object other) { if ((this == other)) return true; if ((other == null)) return false; if (!(other instanceof ConsultationficheexcelId)) return false; ConsultationficheexcelId castOther = (ConsultationficheexcelId) other; return ((this.getCodefiche() == castOther.getCodefiche()) || (this .getCodefiche() != null && castOther.getCodefiche() != null && this .getCodefiche().equals(castOther.getCodefiche()))) && ((this.getMatricule() == castOther.getMatricule()) || (this .getMatricule() != null && castOther.getMatricule() != null && this .getMatricule().equals(castOther.getMatricule()))) && ((this.getNom() == castOther.getNom()) || (this.getNom() != null && castOther.getNom() != null && this.getNom().equals( castOther.getNom()))) && ((this.getGrade() == castOther.getGrade()) || (this .getGrade() != null && castOther.getGrade() != null && this .getGrade().equals(castOther.getGrade()))) && ((this.getDepartement() == castOther.getDepartement()) || (this .getDepartement() != null && castOther.getDepartement() != null && this .getDepartement().equals(castOther.getDepartement()))) && ((this.getFormation() == castOther.getFormation()) || (this .getFormation() != null && castOther.getFormation() != null && this .getFormation().equals(castOther.getFormation()))) && ((this.getAvisdelaprrecie() == castOther .getAvisdelaprrecie()) || (this.getAvisdelaprrecie() != null && castOther.getAvisdelaprrecie() != null && this .getAvisdelaprrecie().equals( castOther.getAvisdelaprrecie()))) && ((this.getAvisdelappreciateur() == castOther .getAvisdelappreciateur()) || (this .getAvisdelappreciateur() != null && castOther.getAvisdelappreciateur() != null && this .getAvisdelappreciateur().equals( castOther.getAvisdelappreciateur()))) && ((this.getFonction() == castOther.getFonction()) || (this .getFonction() != null && castOther.getFonction() != null && this .getFonction().equals(castOther.getFonction()))) && ((this.getCommentairefonction() == castOther .getCommentairefonction()) || (this .getCommentairefonction() != null && castOther.getCommentairefonction() != null && this .getCommentairefonction().equals( castOther.getCommentairefonction()))) && ((this.getConditionsdetravail() == castOther .getConditionsdetravail()) || (this .getConditionsdetravail() != null && castOther.getConditionsdetravail() != null && this .getConditionsdetravail().equals( castOther.getConditionsdetravail()))) && ((this.getCommentaireconditionsdetravail() == castOther .getCommentaireconditionsdetravail()) || (this .getCommentaireconditionsdetravail() != null && castOther.getCommentaireconditionsdetravail() != null && this .getCommentaireconditionsdetravail().equals( castOther.getCommentaireconditionsdetravail()))) && ((this.getDeroulementdelentr() == castOther .getDeroulementdelentr()) || (this .getDeroulementdelentr() != null && castOther.getDeroulementdelentr() != null && this .getDeroulementdelentr().equals( castOther.getDeroulementdelentr()))) && ((this.getCommentairederoulementdelentr() == castOther .getCommentairederoulementdelentr()) || (this .getCommentairederoulementdelentr() != null && castOther.getCommentairederoulementdelentr() != null && this .getCommentairederoulementdelentr().equals( castOther.getCommentairederoulementdelentr()))) && ((this.getAvisn2() == castOther.getAvisn2()) || (this .getAvisn2() != null && castOther.getAvisn2() != null && this .getAvisn2().equals(castOther.getAvisn2()))) && ((this.getNote() == castOther.getNote()) || (this.getNote() != null && castOther.getNote() != null && this.getNote() .equals(castOther.getNote()))); } public int hashCode() { int result = 17; result = 37 * result + (getCodefiche() == null ? 0 : this.getCodefiche().hashCode()); result = 37 * result + (getMatricule() == null ? 0 : this.getMatricule().hashCode()); result = 37 * result + (getNom() == null ? 0 : this.getNom().hashCode()); result = 37 * result + (getGrade() == null ? 0 : this.getGrade().hashCode()); result = 37 * result + (getDepartement() == null ? 0 : this.getDepartement() .hashCode()); result = 37 * result + (getFormation() == null ? 0 : this.getFormation().hashCode()); result = 37 * result + (getAvisdelaprrecie() == null ? 0 : this.getAvisdelaprrecie() .hashCode()); result = 37 * result + (getAvisdelappreciateur() == null ? 0 : this .getAvisdelappreciateur().hashCode()); result = 37 * result + (getFonction() == null ? 0 : this.getFonction().hashCode()); result = 37 * result + (getCommentairefonction() == null ? 0 : this .getCommentairefonction().hashCode()); result = 37 * result + (getConditionsdetravail() == null ? 0 : this .getConditionsdetravail().hashCode()); result = 37 * result + (getCommentaireconditionsdetravail() == null ? 0 : this .getCommentaireconditionsdetravail().hashCode()); result = 37 * result + (getDeroulementdelentr() == null ? 0 : this .getDeroulementdelentr().hashCode()); result = 37 * result + (getCommentairederoulementdelentr() == null ? 0 : this .getCommentairederoulementdelentr().hashCode()); result = 37 * result + (getAvisn2() == null ? 0 : this.getAvisn2().hashCode()); result = 37 * result + (getNote() == null ? 0 : this.getNote().hashCode()); return result; } }
Partager