IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)
Navigation

Inscrivez-vous gratuitement
pour pouvoir participer, suivre les réponses en temps réel, voter pour les messages, poser vos propres questions et recevoir la newsletter

Jasper Discussion :

Raport complex avec JasperReport/iReport 3.0.0


Sujet :

Jasper

  1. #1
    Futur Membre du Club
    Inscrit en
    Septembre 2008
    Messages
    6
    Détails du profil
    Informations forums :
    Inscription : Septembre 2008
    Messages : 6
    Points : 7
    Points
    7
    Par défaut Raport complex avec JasperReport/iReport 3.0.0
    Bonjour,

    J'essai de réaliser un raport un peu complex avec JasperReport / iReport 3.0.0
    connecté sur une BD Oracle.
    Chaque enregistrement donne les informations suivantes:

    SERVICE DATE IQty AQty Status
    My Service stocks 20090701 201 101 U
    My Service stocks 20090702 202 102 I
    My Service stocks 20090703 203 103 X
    My Service stocks 20090801 301 401 U
    My Service stocks 20090802 302 402 I
    My Service stocks 20090803 303 403 X
    Your Service stocks 20090701 201 101 U
    Your Service stocks 20090702 202 102 I
    Your Service stocks 20090703 203 103 X
    Your Service stocks 20090801 201 101 U
    Your Service stocks 20090802 202 102 I
    Your Service stocks 20090803 203 103 X

    La date est au format année (4) mois (2) jours (2)
    Première ruptures : Service/Date (avec changement de page)
    Deuxième ruptures : Année/Mois
    Troisième rupture : Jours (avec changement de colonne)

    Le rapport devrais répartir les informations sur plusieurs colonne.

    My Service stocks:
    200907 1 2 3 4 5 ...
    Initial Qty 201 202 203 204 205 ...
    Actual Qty 101 102 103 104 105 ...
    Status U I X X X ...

    200908 1 2 3 4 5 ...
    Initial Qty 301 302 303 304 305 ...
    Actual Qty 401 402 403 404 405 ...
    Status U I X X X ...

    Your Service stocks:
    200907 1 2 3 4 5 ...
    Initial Qty 201 202 203 204 205 ...
    Actual Qty 101 102 103 104 105 ...
    Status U I X X X ...

    200908 1 2 3 4 5 ...
    Initial Qty 201 202 203 204 205 ...
    Actual Qty 101 102 103 104 105 ...
    Status U I X X X ...

    ...

    Lors que j'essai avec 3 groups 1 par rupture le résultat n'est pas celui désiré a cause qu'il y a plusieurs lignes. Les groups fonctionne pour une ligne d'information seulement par exemple "Initial Qty" mais le rapport a plusieur lignes ("Initial Qty", "Actual Qty" et "Status").


    Merci de votre aide et suggestion.

  2. #2
    Futur Membre du Club
    Inscrit en
    Septembre 2008
    Messages
    6
    Détails du profil
    Informations forums :
    Inscription : Septembre 2008
    Messages : 6
    Points : 7
    Points
    7
    Par défaut Solutions
    Merci.
    Pour votre information
    Cela fonctionne de la façons suivante:


    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
    360
    361
    362
    363
    364
    365
    366
    367
    368
    369
    370
    371
    372
    373
    374
    375
    376
    377
    378
    379
    380
    381
    382
    383
    384
    385
    386
    387
    388
    389
    390
    391
    392
    393
    394
    395
    396
    397
    398
    399
    400
    401
    402
    403
    404
    405
    406
    407
    408
    409
    410
    411
    412
    413
    414
    415
    416
    417
    418
    419
    420
    421
    422
    423
    424
    425
    426
    427
    428
    429
    430
    431
    432
    433
    434
    435
    436
    437
    438
    439
    440
    441
    442
    443
    444
    445
    446
    447
    448
    449
    450
    451
    452
    453
    454
    455
    456
    457
    458
    459
    460
    461
    462
    463
    464
    465
    466
    467
    468
    469
    470
    471
    472
    473
    474
    475
    476
    477
    478
    479
    480
    481
    482
    483
    484
    485
    486
    487
    488
    489
    490
    491
    492
    493
    494
    495
    496
    497
    498
    499
    500
    501
    502
    503
    504
    505
    506
    507
    508
    509
    510
    511
    512
    513
    514
    515
    516
    517
    518
    519
    520
    521
    522
    523
    524
    525
    526
    527
    528
    529
    530
    531
    532
    533
    534
    535
    536
    537
    538
    539
    540
    541
    542
    543
    544
    545
    546
    547
    548
    549
    550
    551
    552
    553
    554
    555
    556
    557
    558
    559
    560
    561
    562
    563
    564
    565
    566
    567
    568
    569
    570
    571
    572
    573
    574
    575
    576
    577
    578
    579
    580
    581
    582
    583
    584
    585
    586
    587
    588
    589
    590
    591
    592
    593
    594
    595
    596
    597
    598
    599
    600
    601
    602
    603
    604
    605
    606
    607
    608
    609
    610
    611
    612
    613
    614
    615
    616
    617
    618
    619
    620
    621
    622
    623
    624
    625
    626
    627
    628
    629
    630
    631
    632
    633
    634
    635
    636
    637
    638
    639
    640
    641
    642
    643
    644
    645
    646
    647
    648
    649
    650
    651
    652
    653
    654
    655
    656
    657
    658
    659
    660
    661
    662
    663
    664
    665
    666
    667
    668
    669
    670
    671
    672
    673
    674
    675
    676
    677
    678
    679
    680
    681
    682
    683
    684
    685
    686
    687
    688
    689
    690
    691
     
    <?xml version="1.0" encoding="UTF-8"  ?>
    <!-- Created with iReport - A designer for JasperReports -->
    <!DOCTYPE jasperReport PUBLIC "//JasperReports//DTD Report Design//EN" "http://jasperreports.sourceforge.net/dtds/jasperreport.dtd">
    <jasperReport
    		 name="ComplexReport"
    		 columnCount="32"
    		 printOrder="Vertical"
    		 orientation="Landscape"
    		 pageWidth="1008"
    		 pageHeight="612"
    		 columnWidth="26"
    		 columnSpacing="3"
    		 leftMargin="30"
    		 rightMargin="30"
    		 topMargin="20"
    		 bottomMargin="20"
    		 whenNoDataType="AllSectionsNoDetail"
    		 isTitleNewPage="false"
    		 isSummaryNewPage="false"
    		 resourceBundle="ComplexReport">
    	<property name="ireport.scriptlethandling" value="0" />
    	<property name="ireport.encoding" value="UTF-8" />
    	<import value="java.util.*" />
    	<import value="net.sf.jasperreports.engine.*" />
    	<import value="net.sf.jasperreports.engine.data.*" />
     
    	<parameter name="LANGUE" isForPrompting="true" class="java.lang.String">
    		<defaultValueExpression ><![CDATA["fr_FR"]]></defaultValueExpression>
    	</parameter>
    	<parameter name="IMAGES_PATH" isForPrompting="false" class="java.lang.String">
    		<defaultValueExpression ><![CDATA["images"]]></defaultValueExpression>
    	</parameter>
    	<parameter name="SUBREPORTS_PATH" isForPrompting="true" class="java.lang.String">
    		<defaultValueExpression ><![CDATA["jasper"]]></defaultValueExpression>
    	</parameter>
    	<parameter name="NAME_OF_REQUESTER" isForPrompting="true" class="java.lang.String"/>
    	<parameter name="BUSINESS_UNIT" isForPrompting="true" class="java.lang.String"/>
    	<parameter name="VERSION" isForPrompting="true" class="java.lang.String"/>
    	<parameter name="REPORT_TITLE1" isForPrompting="false" class="java.lang.String">
    		<defaultValueExpression ><![CDATA[$R{TITRE}]]></defaultValueExpression>
    	</parameter>
    	<parameter name="REPORT_TITLE2" isForPrompting="false" class="java.lang.String">
    		<defaultValueExpression ><![CDATA[""]]></defaultValueExpression>
    	</parameter>
    	<parameter name="LOADING_DATE" isForPrompting="true" class="java.lang.String"/>
    	<parameter name="LOCATION_CODE" isForPrompting="true" class="java.lang.String"/>
    	<parameter name="SERVICE_CODE_FROM" isForPrompting="true" class="java.lang.String"/>
    	<parameter name="SERVICE_CODE_TO" isForPrompting="true" class="java.lang.String"/>
    	<queryString><![CDATA[SELECT scif_stock.status,
       pllc_loc.loc_cd AS LOCATION_CODE,
       pllc_locd1.locd_sdes AS LOCATION_DESC,
       scif_stock.srv_cd AS SERVICE_CODE,
       srdf_srvd1.srvd_sdes AS SERVICE_DESC,
       TO_CHAR(scif_stock.dt, 'YYYYMMDD') AS INV_DATE,
       TO_CHAR(scif_stock.dt, 'YYYYMM') AS INV_DATE_YYYYMM,
       TO_CHAR(scif_stock.dt, 'DD') AS INV_DATE_DD,
       srin_inv.inv_init_qty AS INIT_QTY,
       srin_inv.inv_act_qty AS ACT_QTY
    FROM scif_stock,
         srin_inv,
         srdf_srv,
         srdf_srvd,
         srdf_srvd1,
         pllc_loc,
         pllc_locd1
    WHERE (scif_stock.status = 'I'
          OR scif_stock.status = 'U'
          OR (scif_stock.status = 'R'
              AND scif_stock.status_reason = 'X'))
     AND scif_stock.srv_cd >= $P{SERVICE_CODE_FROM}
     AND scif_stock.srv_cd <= $P{SERVICE_CODE_TO}
     AND scif_stock.srv_nri = srin_inv.srv_nri
     AND TO_CHAR(scif_stock.dt, 'YYYYMMDD') >= TO_CHAR(srin_inv.inv_from_dt, 'YYYYMMDD')
     AND TO_CHAR(scif_stock.dt, 'YYYYMMDD') <= TO_CHAR(srin_inv.inv_to_dt, 'YYYYMMDD')
     AND srin_inv.invt_id = 1
     AND srin_inv.srv_nri = srdf_srv.srv_nri
     AND srin_inv.srv_nri = srdf_srvd.srv_nri
     AND srdf_srvd.srvd_f_def = 1
     AND srdf_srvd.srv_nri = srdf_srvd1.srv_nri
     AND srdf_srvd.srvd_from_dt = srdf_srvd1.srvd_from_dt
     AND srdf_srvd1.lng_cd = $P{LANGUE}
     AND srdf_srv.loc_nri_dest = pllc_loc.loc_nri
     AND pllc_loc.loc_cd = $P{LOCATION_CODE}
     AND pllc_loc.loc_nri = pllc_locd1.loc_nri
     AND pllc_locd1.lng_cd = $P{LANGUE}
     AND ROWNUM <= 100
    ORDER BY pllc_loc.loc_cd,scif_stock.srv_cd,TO_CHAR(scif_stock.dt, 'YYYYMMDD')]]></queryString>
     
    	<field name="STATUS" class="java.lang.String"/>
    	<field name="LOCATION_CODE" class="java.lang.String"/>
    	<field name="LOCATION_DESC" class="java.lang.String"/>
    	<field name="SERVICE_CODE" class="java.lang.String"/>
    	<field name="SERVICE_DESC" class="java.lang.String"/>
    	<field name="INV_DATE" class="java.lang.String"/>
    	<field name="INV_DATE_YYYYMM" class="java.lang.String"/>
    	<field name="INV_DATE_DD" class="java.lang.String"/>
    	<field name="INIT_QTY" class="java.math.BigDecimal"/>
    	<field name="ACT_QTY" class="java.math.BigDecimal"/>
     
    	<variable name="DAYS_GROUP" class="java.lang.String" resetType="Report" calculation="Nothing">
    		<variableExpression><![CDATA[$F{LOCATION_CODE} + $F{SERVICE_CODE} + $F{INV_DATE}]]></variableExpression>
    	</variable>
    	<variable name="YYYYMM_GROUP" class="java.lang.String" resetType="Report" calculation="Nothing">
    		<variableExpression><![CDATA[$F{LOCATION_CODE} + $F{SERVICE_CODE} + $F{INV_DATE_YYYYMM}]]></variableExpression>
    	</variable>
    	<variable name="LOC_SRV_GROUP" class="java.lang.String" resetType="Report" calculation="Nothing">
    		<variableExpression><![CDATA[$F{LOCATION_CODE} + $F{SERVICE_CODE}]]></variableExpression>
    	</variable>
    	<variable name="NUMBER_OF_ROWS_INSERTED" class="java.lang.Integer" resetType="Report" calculation="Count">
    		<variableExpression><![CDATA[$F{STATUS}.equals( "I" ) ? "I" : null]]></variableExpression>
    	</variable>
    	<variable name="NUMBER_OF_ROWS_UPDATED" class="java.lang.Integer" resetType="Report" calculation="Count">
    		<variableExpression><![CDATA[$F{STATUS}.equals( "U" ) ? "U" : null]]></variableExpression>
    	</variable>
    	<variable name="NUMBER_OF_ROWS_UNCHANGED" class="java.lang.Integer" resetType="Report" calculation="Count">
    		<variableExpression><![CDATA[$F{STATUS}.equals( "R" ) ? "R" : null]]></variableExpression>
    	</variable>
    	<variable name="EXECUTION_DATE_TIME" class="java.util.Date" resetType="Report" calculation="Nothing">
    		<variableExpression><![CDATA[new java.util.Date()]]></variableExpression>
    	</variable>
     
    		<group  name="LOC_SRV_GRP" isStartNewPage="true" >
    			<groupExpression><![CDATA[$V{LOC_SRV_GROUP}]]></groupExpression>
    			<groupHeader>
    			<band height="0"  isSplitAllowed="true" >
    			</band>
    			</groupHeader>
    			<groupFooter>
    			<band height="0"  isSplitAllowed="true" >
    			</band>
    			</groupFooter>
    		</group>
    		<group  name="YYYYMM_GRP" isStartNewPage="true" >
    			<groupExpression><![CDATA[$V{YYYYMM_GROUP}]]></groupExpression>
    			<groupHeader>
    			<band height="90"  isSplitAllowed="true" >
    				<textField isStretchWithOverflow="false" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None"  hyperlinkTarget="Self" >
    					<reportElement
    						x="0"
    						y="5"
    						width="26"
    						height="18"
    						key="textField-37"/>
    					<box></box>
    					<textElement>
    						<font size="7"/>
    					</textElement>
    				<textFieldExpression   class="java.lang.String"><![CDATA[$F{INV_DATE_YYYYMM}]]></textFieldExpression>
    				</textField>
    				<textField isStretchWithOverflow="false" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None"  hyperlinkTarget="Self" >
    					<reportElement
    						x="0"
    						y="26"
    						width="26"
    						height="18"
    						key="textField-39"/>
    					<box></box>
    					<textElement>
    						<font size="7"/>
    					</textElement>
    				<textFieldExpression   class="java.lang.String"><![CDATA[$R{INITIAL_QTY}]]></textFieldExpression>
    				</textField>
    				<textField isStretchWithOverflow="false" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None"  hyperlinkTarget="Self" >
    					<reportElement
    						x="0"
    						y="47"
    						width="26"
    						height="18"
    						key="textField-41"/>
    					<box></box>
    					<textElement>
    						<font size="7"/>
    					</textElement>
    				<textFieldExpression   class="java.lang.String"><![CDATA[$R{ACTUAL_QTY}]]></textFieldExpression>
    				</textField>
    				<textField isStretchWithOverflow="false" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None"  hyperlinkTarget="Self" >
    					<reportElement
    						x="0"
    						y="70"
    						width="26"
    						height="18"
    						key="textField-43"/>
    					<box></box>
    					<textElement>
    						<font size="7"/>
    					</textElement>
    				<textFieldExpression   class="java.lang.String"><![CDATA[$R{STATUS}]]></textFieldExpression>
    				</textField>
    				<textField isStretchWithOverflow="false" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None"  hyperlinkTarget="Self" >
    					<reportElement
    						x="29"
    						y="5"
    						width="26"
    						height="18"
    						key="textField-49"/>
    					<box></box>
    					<textElement textAlignment="Right">
    						<font size="7"/>
    					</textElement>
    				<textFieldExpression   class="java.lang.String"><![CDATA[$F{INV_DATE_DD}]]></textFieldExpression>
    				</textField>
    				<textField isStretchWithOverflow="false" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None"  hyperlinkTarget="Self" >
    					<reportElement
    						x="29"
    						y="26"
    						width="26"
    						height="18"
    						key="textField-50"/>
    					<box></box>
    					<textElement textAlignment="Right">
    						<font size="7"/>
    					</textElement>
    				<textFieldExpression   class="java.lang.String"><![CDATA[$F{INIT_QTY}.toString()]]></textFieldExpression>
    				</textField>
    				<textField isStretchWithOverflow="false" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None"  hyperlinkTarget="Self" >
    					<reportElement
    						x="29"
    						y="47"
    						width="26"
    						height="18"
    						key="textField-51"/>
    					<box></box>
    					<textElement textAlignment="Right">
    						<font size="7"/>
    					</textElement>
    				<textFieldExpression   class="java.lang.String"><![CDATA[$F{ACT_QTY}.toString()]]></textFieldExpression>
    				</textField>
    				<textField isStretchWithOverflow="false" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None"  hyperlinkTarget="Self" >
    					<reportElement
    						x="29"
    						y="70"
    						width="26"
    						height="18"
    						key="textField-52"/>
    					<box></box>
    					<textElement textAlignment="Right">
    						<font size="7"/>
    					</textElement>
    				<textFieldExpression   class="java.lang.String"><![CDATA[($F{STATUS}.equals("R")) ? "X" : $F{STATUS}]]></textFieldExpression>
    				</textField>
    			</band>
    			</groupHeader>
    			<groupFooter>
    			<band height="0"  isSplitAllowed="true" >
    			</band>
    			</groupFooter>
    		</group>
    		<group  name="DAYS_GRP" isStartNewColumn="true" minHeightToStartNewPage="200" >
    			<groupExpression><![CDATA[$V{DAYS_GROUP}]]></groupExpression>
    			<groupHeader>
    			<band height="90"  isSplitAllowed="true" >
    				<textField isStretchWithOverflow="false" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None"  hyperlinkTarget="Self" >
    					<reportElement
    						x="29"
    						y="5"
    						width="26"
    						height="18"
    						key="textField-38">
    							<printWhenExpression><![CDATA[new Boolean($V{COLUMN_NUMBER}.intValue() > 1)]]></printWhenExpression>
    						</reportElement>
    					<box></box>
    					<textElement textAlignment="Right">
    						<font size="7"/>
    					</textElement>
    				<textFieldExpression   class="java.lang.String"><![CDATA[$F{INV_DATE_DD}]]></textFieldExpression>
    				</textField>
    				<textField isStretchWithOverflow="false" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None"  hyperlinkTarget="Self" >
    					<reportElement
    						x="29"
    						y="26"
    						width="26"
    						height="18"
    						key="textField-40">
    							<printWhenExpression><![CDATA[new Boolean($V{COLUMN_NUMBER}.intValue() > 1)]]></printWhenExpression>
    						</reportElement>
    					<box></box>
    					<textElement textAlignment="Right">
    						<font size="7"/>
    					</textElement>
    				<textFieldExpression   class="java.lang.String"><![CDATA[$F{INIT_QTY}.toString()]]></textFieldExpression>
    				</textField>
    				<textField isStretchWithOverflow="false" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None"  hyperlinkTarget="Self" >
    					<reportElement
    						x="29"
    						y="47"
    						width="26"
    						height="18"
    						key="textField-42">
    							<printWhenExpression><![CDATA[new Boolean($V{COLUMN_NUMBER}.intValue() > 1)]]></printWhenExpression>
    						</reportElement>
    					<box></box>
    					<textElement textAlignment="Right">
    						<font size="7"/>
    					</textElement>
    				<textFieldExpression   class="java.lang.String"><![CDATA[$F{ACT_QTY}.toString()]]></textFieldExpression>
    				</textField>
    				<textField isStretchWithOverflow="false" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None"  hyperlinkTarget="Self" >
    					<reportElement
    						x="29"
    						y="70"
    						width="26"
    						height="18"
    						key="textField-44">
    							<printWhenExpression><![CDATA[new Boolean($V{COLUMN_NUMBER}.intValue() > 1)]]></printWhenExpression>
    						</reportElement>
    					<box></box>
    					<textElement textAlignment="Right">
    						<font size="7"/>
    					</textElement>
    				<textFieldExpression   class="java.lang.String"><![CDATA[($F{STATUS}.equals("R")) ? "X" : $F{STATUS}]]></textFieldExpression>
    				</textField>
    			</band>
    			</groupHeader>
    			<groupFooter>
    			<band height="0"  isSplitAllowed="true" >
    			</band>
    			</groupFooter>
    		</group>
    		<background>
    			<band height="0"  isSplitAllowed="true" >
    			</band>
    		</background>
    		<title>
    			<band height="0"  isSplitAllowed="true" >
    			</band>
    		</title>
    		<pageHeader>
    			<band height="210"  isSplitAllowed="true" >
    				<textField isStretchWithOverflow="false" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None"  hyperlinkTarget="Self" >
    					<reportElement
    						x="0"
    						y="74"
    						width="275"
    						height="13"
    						key="textField-6"/>
    					<box></box>
    					<textElement>
    						<font size="8"/>
    					</textElement>
    				<textFieldExpression   class="java.lang.String"><![CDATA[$R{LOADING_DATE} + " " + $P{LOADING_DATE}]]></textFieldExpression>
    				</textField>
    				<textField isStretchWithOverflow="false" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None"  hyperlinkTarget="Self" >
    					<reportElement
    						x="0"
    						y="92"
    						width="275"
    						height="13"
    						key="textField-9"/>
    					<box></box>
    					<textElement>
    						<font size="8"/>
    					</textElement>
    				<textFieldExpression   class="java.lang.String"><![CDATA[$R{LOCATION_CODE} + " " + $P{LOCATION_CODE}]]></textFieldExpression>
    				</textField>
    				<textField isStretchWithOverflow="false" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None"  hyperlinkTarget="Self" >
    					<reportElement
    						x="0"
    						y="114"
    						width="275"
    						height="13"
    						key="textField-10"/>
    					<box></box>
    					<textElement>
    						<font size="8"/>
    					</textElement>
    				<textFieldExpression   class="java.lang.String"><![CDATA[$R{SERVICE_CODE_FROM} + " " + $P{SERVICE_CODE_FROM}]]></textFieldExpression>
    				</textField>
    				<textField isStretchWithOverflow="false" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None"  hyperlinkTarget="Self" >
    					<reportElement
    						x="287"
    						y="114"
    						width="275"
    						height="13"
    						key="textField-12"/>
    					<box></box>
    					<textElement>
    						<font size="8"/>
    					</textElement>
    				<textFieldExpression   class="java.lang.String"><![CDATA[$R{SERVICE_CODE_TO} + " " + $P{SERVICE_CODE_TO}]]></textFieldExpression>
    				</textField>
    				<line direction="TopDown">
    					<reportElement
    						x="1"
    						y="139"
    						width="946"
    						height="0"
    						key="line-2"/>
    					<graphicElement stretchType="NoStretch"/>
    				</line>
    				<textField isStretchWithOverflow="false" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None"  hyperlinkTarget="Self" >
    					<reportElement
    						x="0"
    						y="145"
    						width="365"
    						height="21"
    						key="textField-4"/>
    					<box></box>
    					<textElement>
    						<font size="10"/>
    					</textElement>
    				<textFieldExpression   class="java.lang.String"><![CDATA[$F{LOCATION_DESC}]]></textFieldExpression>
    				</textField>
    				<textField isStretchWithOverflow="false" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None"  hyperlinkTarget="Self" >
    					<reportElement
    						x="143"
    						y="175"
    						width="365"
    						height="21"
    						key="textField-5"/>
    					<box></box>
    					<textElement>
    						<font size="10"/>
    					</textElement>
    				<textFieldExpression   class="java.lang.String"><![CDATA[$F{SERVICE_DESC}]]></textFieldExpression>
    				</textField>
    				<textField isStretchWithOverflow="false" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None"  hyperlinkTarget="Self" >
    					<reportElement
    						x="0"
    						y="175"
    						width="134"
    						height="21"
    						key="textField-17"/>
    					<box></box>
    					<textElement>
    						<font size="10"/>
    					</textElement>
    				<textFieldExpression   class="java.lang.String"><![CDATA[$F{SERVICE_CODE}]]></textFieldExpression>
    				</textField>
    				<line direction="TopDown">
    					<reportElement
    						x="0"
    						y="204"
    						width="946"
    						height="0"
    						key="line-3"/>
    					<graphicElement stretchType="NoStretch"/>
    				</line>
    				<textField isStretchWithOverflow="false" isBlankWhenNull="false" evaluationTime="Report" hyperlinkType="None"  hyperlinkTarget="Self" >
    					<reportElement
    						x="0"
    						y="0"
    						width="223"
    						height="20"
    						key="textField-53"/>
    					<box></box>
    					<textElement>
    						<font/>
    					</textElement>
    				<textFieldExpression   class="java.lang.String"><![CDATA[$P{NAME_OF_REQUESTER}]]></textFieldExpression>
    				</textField>
    				<textField isStretchWithOverflow="false" isBlankWhenNull="false" evaluationTime="Report" hyperlinkType="None"  hyperlinkTarget="Self" >
    					<reportElement
    						x="0"
    						y="20"
    						width="223"
    						height="20"
    						key="textField-54"/>
    					<box></box>
    					<textElement>
    						<font/>
    					</textElement>
    				<textFieldExpression   class="java.lang.String"><![CDATA[$P{VERSION}]]></textFieldExpression>
    				</textField>
    				<textField isStretchWithOverflow="false" isBlankWhenNull="false" evaluationTime="Report" hyperlinkType="None"  hyperlinkTarget="Self" >
    					<reportElement
    						x="359"
    						y="0"
    						width="350"
    						height="20"
    						key="textField-55"/>
    					<box></box>
    					<textElement textAlignment="Center">
    						<font/>
    					</textElement>
    				<textFieldExpression   class="java.lang.String"><![CDATA[$P{BUSINESS_UNIT}]]></textFieldExpression>
    				</textField>
    				<textField isStretchWithOverflow="false" isBlankWhenNull="false" evaluationTime="Report" hyperlinkType="None"  hyperlinkTarget="Self" >
    					<reportElement
    						x="359"
    						y="20"
    						width="350"
    						height="20"
    						key="textField-56"/>
    					<box></box>
    					<textElement textAlignment="Center">
    						<font/>
    					</textElement>
    				<textFieldExpression   class="java.lang.String"><![CDATA[$P{REPORT_TITLE1}]]></textFieldExpression>
    				</textField>
    				<textField isStretchWithOverflow="false" isBlankWhenNull="false" evaluationTime="Report" hyperlinkType="None"  hyperlinkTarget="Self" >
    					<reportElement
    						x="359"
    						y="40"
    						width="350"
    						height="20"
    						key="textField-57"/>
    					<box></box>
    					<textElement textAlignment="Center">
    						<font/>
    					</textElement>
    				<textFieldExpression   class="java.lang.String"><![CDATA[$P{REPORT_TITLE2}]]></textFieldExpression>
    				</textField>
    				<textField isStretchWithOverflow="false" pattern="yyyy/MM/dd" isBlankWhenNull="false" evaluationTime="Report" hyperlinkType="None"  hyperlinkTarget="Self" >
    					<reportElement
    						x="880"
    						y="1"
    						width="66"
    						height="20"
    						key="textField-58"/>
    					<box></box>
    					<textElement textAlignment="Right">
    						<font/>
    					</textElement>
    				<textFieldExpression   class="java.lang.String"><![CDATA[new SimpleDateFormat("yyyy-mm-dd").format($V{EXECUTION_DATE_TIME})]]></textFieldExpression>
    				</textField>
    				<textField isStretchWithOverflow="false" pattern="HH.mm.ss" isBlankWhenNull="false" evaluationTime="Report" hyperlinkType="None"  hyperlinkTarget="Self" >
    					<reportElement
    						x="907"
    						y="22"
    						width="39"
    						height="20"
    						key="textField-59"/>
    					<box></box>
    					<textElement textAlignment="Right">
    						<font/>
    					</textElement>
    				<textFieldExpression   class="java.lang.String"><![CDATA[new SimpleDateFormat("HH:mm:ss").format($V{EXECUTION_DATE_TIME})]]></textFieldExpression>
    				</textField>
    				<line direction="TopDown">
    					<reportElement
    						x="0"
    						y="67"
    						width="948"
    						height="1"
    						key="line-4"/>
    					<graphicElement stretchType="NoStretch"/>
    				</line>
    			</band>
    		</pageHeader>
    		<columnHeader>
    			<band height="0"  isSplitAllowed="true" >
    			</band>
    		</columnHeader>
    		<detail>
    			<band height="0"  isSplitAllowed="true" >
    			</band>
    		</detail>
    		<columnFooter>
    			<band height="0"  isSplitAllowed="true" >
    			</band>
    		</columnFooter>
    		<pageFooter>
    			<band height="22"  isSplitAllowed="true" >
    				<textField isStretchWithOverflow="false" pattern="" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None"  hyperlinkTarget="Self" >
    					<reportElement
    						x="835"
    						y="2"
    						width="60"
    						height="20"
    						forecolor="#000000"
    						key="textField-45"/>
    					<box>					<topPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
    					<leftPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
    					<bottomPen lineWidth="0.0" lineColor="#000000"/>
    					<rightPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
    </box>
    					<textElement textAlignment="Right" verticalAlignment="Middle">
    						<font/>
    					</textElement>
    				<textFieldExpression   class="java.lang.String"><![CDATA["Page " + $V{PAGE_NUMBER}]]></textFieldExpression>
    				</textField>
    				<textField isStretchWithOverflow="false" pattern="" isBlankWhenNull="false" evaluationTime="Report" hyperlinkType="None"  hyperlinkTarget="Self" >
    					<reportElement
    						x="898"
    						y="2"
    						width="50"
    						height="20"
    						forecolor="#000000"
    						key="textField-46"/>
    					<box>					<topPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
    					<leftPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
    					<bottomPen lineWidth="0.0" lineColor="#000000"/>
    					<rightPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
    </box>
    					<textElement textAlignment="Left" verticalAlignment="Middle">
    						<font/>
    					</textElement>
    				<textFieldExpression   class="java.lang.String"><![CDATA["/" + $V{PAGE_NUMBER}]]></textFieldExpression>
    				</textField>
    			</band>
    		</pageFooter>
    		<lastPageFooter>
    			<band height="64"  isSplitAllowed="true" >
    				<textField isStretchWithOverflow="false" pattern="" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None"  hyperlinkTarget="Self" >
    					<reportElement
    						x="1"
    						y="0"
    						width="287"
    						height="19"
    						forecolor="#000000"
    						key="textField-14"/>
    					<box>					<topPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
    					<leftPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
    					<bottomPen lineWidth="0.0" lineColor="#000000"/>
    					<rightPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
    </box>
    					<textElement textAlignment="Left" verticalAlignment="Middle">
    						<font/>
    					</textElement>
    				<textFieldExpression   class="java.lang.String"><![CDATA[$R{NUMBER_OF_ROWS_INSERTED} + " " + $V{NUMBER_OF_ROWS_INSERTED}.toString()]]></textFieldExpression>
    				</textField>
    				<textField isStretchWithOverflow="false" pattern="" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None"  hyperlinkTarget="Self" >
    					<reportElement
    						x="0"
    						y="19"
    						width="287"
    						height="19"
    						forecolor="#000000"
    						key="textField-15"/>
    					<box>					<topPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
    					<leftPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
    					<bottomPen lineWidth="0.0" lineColor="#000000"/>
    					<rightPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
    </box>
    					<textElement textAlignment="Left" verticalAlignment="Middle">
    						<font/>
    					</textElement>
    				<textFieldExpression   class="java.lang.String"><![CDATA[$R{NUMBER_OF_ROWS_UPDATED} + " " + $V{NUMBER_OF_ROWS_UPDATED}.toString()]]></textFieldExpression>
    				</textField>
    				<textField isStretchWithOverflow="false" pattern="" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None"  hyperlinkTarget="Self" >
    					<reportElement
    						x="0"
    						y="38"
    						width="287"
    						height="19"
    						forecolor="#000000"
    						key="textField-16"/>
    					<box>					<topPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
    					<leftPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
    					<bottomPen lineWidth="0.0" lineColor="#000000"/>
    					<rightPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
    </box>
    					<textElement textAlignment="Left" verticalAlignment="Middle">
    						<font/>
    					</textElement>
    				<textFieldExpression   class="java.lang.String"><![CDATA[$R{NUMBER_OF_ROWS_UNCHANGED} + " " + $V{NUMBER_OF_ROWS_UNCHANGED}.toString()]]></textFieldExpression>
    				</textField>
    				<textField isStretchWithOverflow="false" pattern="" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None"  hyperlinkTarget="Self" >
    					<reportElement
    						x="835"
    						y="38"
    						width="60"
    						height="20"
    						forecolor="#000000"
    						key="textField-47"/>
    					<box>					<topPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
    					<leftPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
    					<bottomPen lineWidth="0.0" lineColor="#000000"/>
    					<rightPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
    </box>
    					<textElement textAlignment="Right" verticalAlignment="Middle">
    						<font/>
    					</textElement>
    				<textFieldExpression   class="java.lang.String"><![CDATA["Page " + $V{PAGE_NUMBER}]]></textFieldExpression>
    				</textField>
    				<textField isStretchWithOverflow="false" pattern="" isBlankWhenNull="false" evaluationTime="Report" hyperlinkType="None"  hyperlinkTarget="Self" >
    					<reportElement
    						x="898"
    						y="38"
    						width="50"
    						height="20"
    						forecolor="#000000"
    						key="textField-48"/>
    					<box>					<topPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
    					<leftPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
    					<bottomPen lineWidth="0.0" lineColor="#000000"/>
    					<rightPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
    </box>
    					<textElement textAlignment="Left" verticalAlignment="Middle">
    						<font/>
    					</textElement>
    				<textFieldExpression   class="java.lang.String"><![CDATA["/" + $V{PAGE_NUMBER}]]></textFieldExpression>
    				</textField>
    			</band>
    		</lastPageFooter>
    		<summary>
    			<band height="0"  isSplitAllowed="true" >
    			</band>
    		</summary>
    </jasperReport>

+ Répondre à la discussion
Cette discussion est résolue.

Discussions similaires

  1. Rapport complexe avec ireport 5.0.1
    Par junior222 dans le forum iReport
    Réponses: 2
    Dernier message: 30/05/2013, 10h40
  2. Tableau complexe avec liste d'objet sur iReport 4.7.0
    Par Mcfly3412 dans le forum iReport
    Réponses: 1
    Dernier message: 03/10/2012, 12h57
  3. fiche RDV avec jasperReport/ireport
    Par yacine.dev dans le forum Jasper
    Réponses: 0
    Dernier message: 01/03/2010, 11h09
  4. Document complexe avec iReport
    Par habibreda dans le forum iReport
    Réponses: 3
    Dernier message: 11/11/2009, 15h42
  5. Réponses: 1
    Dernier message: 24/08/2009, 11h16

Partager

Partager
  • Envoyer la discussion sur Viadeo
  • Envoyer la discussion sur Twitter
  • Envoyer la discussion sur Google
  • Envoyer la discussion sur Facebook
  • Envoyer la discussion sur Digg
  • Envoyer la discussion sur Delicious
  • Envoyer la discussion sur MySpace
  • Envoyer la discussion sur Yahoo