root/trunk/RaportySQL/WykresNettoIlosc2_2009.rdl @ 809

Wersja 525, 41.2 KB (wprowadzona przez marek, 17 years temu)

re #129

Line 
1<?xml version="1.0" encoding="utf-8"?>
2<Report xmlns="http://schemas.microsoft.com/sqlserver/reporting/2005/01/reportdefinition" xmlns:rd="http://schemas.microsoft.com/SQLServer/reporting/reportdesigner">
3  <DataSources>
4    <DataSource Name="BAZA_REKLAM">
5      <rd:DataSourceID>6a2bec57-03d9-4f28-a49c-65e1805de702</rd:DataSourceID>
6      <DataSourceReference>BAZA_REKLAM</DataSourceReference>
7    </DataSource>
8  </DataSources>
9  <InteractiveHeight>29.7cm</InteractiveHeight>
10  <ReportParameters>
11    <ReportParameter Name="okres">
12      <DataType>String</DataType>
13      <DefaultValue>
14        <Values>
15          <Value>=Year(Today)-2</Value>
16        </Values>
17      </DefaultValue>
18      <AllowBlank>true</AllowBlank>
19      <Prompt>okres</Prompt>
20      <ValidValues>
21        <ParameterValues>
22          <ParameterValue>
23            <Value>2002</Value>
24            <Label>ROK</Label>
25          </ParameterValue>
26          <ParameterValue>
27            <Value>=Year(Today)-4</Value>
28            <Label>PÓŁROCZE</Label>
29          </ParameterValue>
30          <ParameterValue>
31            <Value>=Year(Today)-3</Value>
32            <Label>KWARTAŁ</Label>
33          </ParameterValue>
34          <ParameterValue>
35            <Value>=Year(Today)-2</Value>
36            <Label>MS</Label>
37          </ParameterValue>
38        </ParameterValues>
39      </ValidValues>
40    </ReportParameter>
41    <ReportParameter Name="tytul">
42      <DataType>String</DataType>
43      <Nullable>true</Nullable>
44      <Prompt>tytuł:</Prompt>
45      <ValidValues>
46        <DataSetReference>
47          <DataSetName>ListaTytulow</DataSetName>
48          <ValueField>value</ValueField>
49          <LabelField>label</LabelField>
50        </DataSetReference>
51      </ValidValues>
52    </ReportParameter>
53    <ReportParameter Name="agencja">
54      <DataType>String</DataType>
55      <Nullable>true</Nullable>
56      <Prompt>agencja</Prompt>
57      <ValidValues>
58        <DataSetReference>
59          <DataSetName>ListaAgencji</DataSetName>
60          <ValueField>Id_agencji</ValueField>
61          <LabelField>Symbol</LabelField>
62        </DataSetReference>
63      </ValidValues>
64    </ReportParameter>
65    <ReportParameter Name="agent">
66      <DataType>String</DataType>
67      <Nullable>true</Nullable>
68      <Prompt>agent</Prompt>
69      <ValidValues>
70        <DataSetReference>
71          <DataSetName>ListaAgentow</DataSetName>
72          <ValueField>ID_AGENTA</ValueField>
73          <LabelField>Symbol</LabelField>
74        </DataSetReference>
75      </ValidValues>
76    </ReportParameter>
77  </ReportParameters>
78  <rd:DrawGrid>true</rd:DrawGrid>
79  <InteractiveWidth>21cm</InteractiveWidth>
80  <rd:GridSpacing>0.25cm</rd:GridSpacing>
81  <rd:SnapToGrid>true</rd:SnapToGrid>
82  <RightMargin>1cm</RightMargin>
83  <LeftMargin>1cm</LeftMargin>
84  <BottomMargin>1cm</BottomMargin>
85  <rd:ReportID>58bc7198-b2fa-4939-89e9-e74e3118e4d0</rd:ReportID>
86  <PageWidth>29.7cm</PageWidth>
87  <DataSets>
88    <DataSet Name="wgDatyFaktury_ZatwierdzoneDoDruku">
89      <Fields>
90        <Field Name="rok">
91          <DataField>ROK</DataField>
92          <rd:TypeName>System.Int32</rd:TypeName>
93        </Field>
94        <Field Name="rok_po">
95          <DataField>ROK_PO</DataField>
96          <rd:TypeName>System.Int32</rd:TypeName>
97        </Field>
98        <Field Name="kw">
99          <DataField>KW</DataField>
100          <rd:TypeName>System.Int32</rd:TypeName>
101        </Field>
102        <Field Name="ms">
103          <DataField>MS</DataField>
104          <rd:TypeName>System.Int32</rd:TypeName>
105        </Field>
106        <Field Name="netto">
107          <DataField>netto</DataField>
108          <rd:TypeName>System.Decimal</rd:TypeName>
109        </Field>
110        <Field Name="ilosc">
111          <DataField>ilosc</DataField>
112          <rd:TypeName>System.Int32</rd:TypeName>
113        </Field>
114        <Field Name="tytul">
115          <DataField>tytul</DataField>
116          <rd:TypeName>System.Int16</rd:TypeName>
117        </Field>
118        <Field Name="agencja">
119          <DataField>agencja</DataField>
120          <rd:TypeName>System.String</rd:TypeName>
121        </Field>
122        <Field Name="agent">
123          <DataField>agent</DataField>
124          <rd:TypeName>System.String</rd:TypeName>
125        </Field>
126      </Fields>
127      <Query>
128        <DataSourceName>BAZA_REKLAM</DataSourceName>
129        <CommandText>SELECT ROK, ROK_PO, KW, MS, SUM(NETTO) AS netto, COUNT(distinct reklamaId) AS ilosc, tytul, agencja, agent
130FROM         (SELECT ROUND(FD.NETTO, 0) AS NETTO,
131fd.reklamaId,
132year(faktury.data_wystawienia) AS ROK,
133DATEPART(QUARTER, faktury.data_wystawienia) AS KW,
134CONVERT(INTEGER,(1.0+DATEPART(QUARTER, faktury.data_wystawienia))/2) AS ROK_PO,
135month(faktury.data_wystawienia) AS MS,
136DATEPART(Week, faktury.data_wystawienia) AS WW,
137faktury.data_wystawienia, FD.tytul,  Agencje.Symbol as agencja, Agenci.Symbol as agent
138FROM
139dbo.AGENCJE INNER JOIN dbo.AGENCI ON dbo.AGENCJE.Id_agencji = dbo.AGENCI.ID_AGENCJI
140INNER JOIN dbo.FAKTURY ON dbo.AGENCI.F_ROZ = dbo.FAKTURY.[NUMER_ROZ]
141left join dbo.FAktura_details FD on FAKTURY.id_faktury= FD.id_faktury
142INNER JOIN dbo.Klienci on dbo.Klienci.CustomerId = dbo.Faktury.id_nabywcy
143WHERE  (DATEPART(YEAR, faktury.data_wystawienia) &gt;= @od)
144AND faktury.Numer_Roz &lt;&gt; 'POZ' AND faktury.Numer_Roz &lt;&gt; 'KAT'
145AND (@tytul is null OR  FD.tytul = @tytul)
146AND (@agencja is null OR Agencje.id_agencji = @agencja)
147AND (@agent is null OR  Agenci.ID_AGENTA = @agent)) AS R
148GROUP BY ROK, ROK_PO, KW, MS, tytul, agencja, agent
149ORDER BY ROK DESC, KW DESC, MS DESC</CommandText>
150        <QueryParameters>
151          <QueryParameter Name="@od">
152            <Value>=Parameters!okres.Value</Value>
153          </QueryParameter>
154          <QueryParameter Name="@tytul">
155            <Value>=Parameters!tytul.Value</Value>
156          </QueryParameter>
157          <QueryParameter Name="@agencja">
158            <Value>=Parameters!agencja.Value</Value>
159          </QueryParameter>
160          <QueryParameter Name="@agent">
161            <Value>=Parameters!agent.Value</Value>
162          </QueryParameter>
163        </QueryParameters>
164        <rd:UseGenericDesigner>true</rd:UseGenericDesigner>
165      </Query>
166    </DataSet>
167    <DataSet Name="ListaAgencji">
168      <Fields>
169        <Field Name="Id_agencji">
170          <DataField>Id_agencji</DataField>
171          <rd:TypeName>System.Int32</rd:TypeName>
172        </Field>
173        <Field Name="Symbol">
174          <DataField>Symbol</DataField>
175          <rd:TypeName>System.String</rd:TypeName>
176        </Field>
177      </Fields>
178      <Query>
179        <DataSourceName>BAZA_REKLAM</DataSourceName>
180        <CommandText>SELECT Id_agencji, Symbol
181FROM AGENCJE where aktywna=1
182union
183select NULL ,'Wszystkie'
184order by Symbol</CommandText>
185        <rd:UseGenericDesigner>true</rd:UseGenericDesigner>
186      </Query>
187    </DataSet>
188    <DataSet Name="ListaAgentow">
189      <Fields>
190        <Field Name="ID_AGENTA">
191          <DataField>ID_AGENTA</DataField>
192          <rd:TypeName>System.Int32</rd:TypeName>
193        </Field>
194        <Field Name="Symbol">
195          <DataField>Symbol</DataField>
196          <rd:TypeName>System.String</rd:TypeName>
197        </Field>
198        <Field Name="agencja">
199          <DataField>agencja</DataField>
200          <rd:TypeName>System.String</rd:TypeName>
201        </Field>
202      </Fields>
203      <Query>
204        <DataSourceName>BAZA_REKLAM</DataSourceName>
205        <CommandText>SELECT A.ID_AGENTA, A.Symbol, A2.Symbol agencja
206FROM AGENCI A left join Agencje A2
207on A.ID_AGENCJI = A2.ID_Agencji
208where  (A2.ID_Agencji in (@agencja)) and a.aktywny=1
209union
210select NULL,'Wszyscy','costam'
211order by A.Symbol</CommandText>
212        <QueryParameters>
213          <QueryParameter Name="@agencja">
214            <Value>=Parameters!agencja.Value</Value>
215          </QueryParameter>
216        </QueryParameters>
217        <rd:UseGenericDesigner>true</rd:UseGenericDesigner>
218      </Query>
219    </DataSet>
220    <DataSet Name="ListaTytulow">
221      <Fields>
222        <Field Name="label">
223          <DataField>label</DataField>
224          <rd:TypeName>System.String</rd:TypeName>
225        </Field>
226        <Field Name="value">
227          <DataField>value</DataField>
228          <rd:TypeName>System.Int32</rd:TypeName>
229        </Field>
230      </Fields>
231      <Query>
232        <DataSourceName>BAZA_REKLAM</DataSourceName>
233        <CommandText>SELECT     SYMB AS label, id AS value
234FROM         [LISTA TYTUŁÓW]
235WHERE     (st_aktywny = - 1)
236UNION
237SELECT     'Wszystkie' AS Expr1, NULL AS Expr2</CommandText>
238      </Query>
239    </DataSet>
240  </DataSets>
241  <Code>Public Shared Function Formatuj(ByVal Value As Integer) As String
242        Formatuj = Format(Value, "### ### ##0.## zł")
243End Function</Code>
244  <Width>27.25cm</Width>
245  <Body>
246    <ColumnSpacing>1cm</ColumnSpacing>
247    <ReportItems>
248      <Table Name="table1">
249        <ZIndex>2</ZIndex>
250        <DataSetName>wgDatyFaktury_ZatwierdzoneDoDruku</DataSetName>
251        <PageBreakAtStart>true</PageBreakAtStart>
252        <Filters>
253          <Filter>
254            <FilterExpression>=Fields!rok.Value</FilterExpression>
255            <Operator>Equal</Operator>
256            <FilterValues>
257              <FilterValue>=CInt(2007)</FilterValue>
258            </FilterValues>
259          </Filter>
260        </Filters>
261        <Top>19cm</Top>
262        <TableGroups>
263          <TableGroup>
264            <Grouping Name="table1_Group3">
265              <GroupExpressions>
266                <GroupExpression>=Fields!agencja.Value</GroupExpression>
267              </GroupExpressions>
268            </Grouping>
269            <Header>
270              <TableRows>
271                <TableRow>
272                  <TableCells>
273                    <TableCell>
274                      <ReportItems>
275                        <Textbox Name="textbox5">
276                          <rd:DefaultName>textbox5</rd:DefaultName>
277                          <Style>
278                            <PaddingLeft>2pt</PaddingLeft>
279                            <PaddingRight>2pt</PaddingRight>
280                            <PaddingTop>2pt</PaddingTop>
281                            <PaddingBottom>2pt</PaddingBottom>
282                          </Style>
283                          <ZIndex>14</ZIndex>
284                          <CanGrow>true</CanGrow>
285                          <Value />
286                        </Textbox>
287                      </ReportItems>
288                    </TableCell>
289                    <TableCell>
290                      <ReportItems>
291                        <Textbox Name="textbox11">
292                          <rd:DefaultName>textbox11</rd:DefaultName>
293                          <Style>
294                            <PaddingLeft>2pt</PaddingLeft>
295                            <PaddingRight>2pt</PaddingRight>
296                            <PaddingTop>2pt</PaddingTop>
297                            <PaddingBottom>2pt</PaddingBottom>
298                          </Style>
299                          <ZIndex>13</ZIndex>
300                          <CanGrow>true</CanGrow>
301                          <Value />
302                        </Textbox>
303                      </ReportItems>
304                    </TableCell>
305                    <TableCell>
306                      <ReportItems>
307                        <Textbox Name="textbox13">
308                          <rd:DefaultName>textbox13</rd:DefaultName>
309                          <Style>
310                            <PaddingLeft>2pt</PaddingLeft>
311                            <PaddingRight>2pt</PaddingRight>
312                            <PaddingTop>2pt</PaddingTop>
313                            <PaddingBottom>2pt</PaddingBottom>
314                          </Style>
315                          <ZIndex>12</ZIndex>
316                          <CanGrow>true</CanGrow>
317                          <Value />
318                        </Textbox>
319                      </ReportItems>
320                    </TableCell>
321                    <TableCell>
322                      <ReportItems>
323                        <Textbox Name="textbox14">
324                          <rd:DefaultName>textbox14</rd:DefaultName>
325                          <Style>
326                            <PaddingLeft>2pt</PaddingLeft>
327                            <PaddingRight>2pt</PaddingRight>
328                            <PaddingTop>2pt</PaddingTop>
329                            <PaddingBottom>2pt</PaddingBottom>
330                          </Style>
331                          <ZIndex>11</ZIndex>
332                          <CanGrow>true</CanGrow>
333                          <Value />
334                        </Textbox>
335                      </ReportItems>
336                    </TableCell>
337                    <TableCell>
338                      <ReportItems>
339                        <Textbox Name="textbox15">
340                          <rd:DefaultName>textbox15</rd:DefaultName>
341                          <Style>
342                            <PaddingLeft>2pt</PaddingLeft>
343                            <PaddingRight>2pt</PaddingRight>
344                            <PaddingTop>2pt</PaddingTop>
345                            <PaddingBottom>2pt</PaddingBottom>
346                          </Style>
347                          <ZIndex>10</ZIndex>
348                          <CanGrow>true</CanGrow>
349                          <Value />
350                        </Textbox>
351                      </ReportItems>
352                    </TableCell>
353                  </TableCells>
354                  <Height>0.5cm</Height>
355                </TableRow>
356              </TableRows>
357            </Header>
358            <Footer>
359              <TableRows>
360                <TableRow>
361                  <TableCells>
362                    <TableCell>
363                      <ReportItems>
364                        <Textbox Name="textbox16">
365                          <rd:DefaultName>textbox16</rd:DefaultName>
366                          <Style>
367                            <BorderColor>
368                              <Default>LightGrey</Default>
369                            </BorderColor>
370                            <BorderStyle>
371                              <Default>Solid</Default>
372                            </BorderStyle>
373                            <BorderWidth>
374                              <Default>0.5pt</Default>
375                            </BorderWidth>
376                            <PaddingLeft>2pt</PaddingLeft>
377                            <PaddingRight>2pt</PaddingRight>
378                            <PaddingTop>2pt</PaddingTop>
379                            <PaddingBottom>2pt</PaddingBottom>
380                          </Style>
381                          <ZIndex>4</ZIndex>
382                          <CanGrow>true</CanGrow>
383                          <Value />
384                        </Textbox>
385                      </ReportItems>
386                    </TableCell>
387                    <TableCell>
388                      <ReportItems>
389                        <Textbox Name="textbox17">
390                          <rd:DefaultName>textbox17</rd:DefaultName>
391                          <Style>
392                            <BorderColor>
393                              <Default>LightGrey</Default>
394                            </BorderColor>
395                            <BorderStyle>
396                              <Default>Solid</Default>
397                            </BorderStyle>
398                            <BorderWidth>
399                              <Default>0.5pt</Default>
400                            </BorderWidth>
401                            <PaddingLeft>2pt</PaddingLeft>
402                            <PaddingRight>2pt</PaddingRight>
403                            <PaddingTop>2pt</PaddingTop>
404                            <PaddingBottom>2pt</PaddingBottom>
405                          </Style>
406                          <ZIndex>3</ZIndex>
407                          <CanGrow>true</CanGrow>
408                          <Value />
409                        </Textbox>
410                      </ReportItems>
411                    </TableCell>
412                    <TableCell>
413                      <ReportItems>
414                        <Textbox Name="textbox18">
415                          <rd:DefaultName>textbox18</rd:DefaultName>
416                          <Style>
417                            <BorderColor>
418                              <Default>LightGrey</Default>
419                            </BorderColor>
420                            <BorderStyle>
421                              <Default>Solid</Default>
422                            </BorderStyle>
423                            <BorderWidth>
424                              <Default>0.5pt</Default>
425                            </BorderWidth>
426                            <PaddingLeft>2pt</PaddingLeft>
427                            <PaddingRight>2pt</PaddingRight>
428                            <PaddingTop>2pt</PaddingTop>
429                            <PaddingBottom>2pt</PaddingBottom>
430                          </Style>
431                          <ZIndex>2</ZIndex>
432                          <CanGrow>true</CanGrow>
433                          <Value />
434                        </Textbox>
435                      </ReportItems>
436                    </TableCell>
437                    <TableCell>
438                      <ReportItems>
439                        <Textbox Name="textbox31">
440                          <Style>
441                            <BorderColor>
442                              <Default>LightGrey</Default>
443                            </BorderColor>
444                            <BorderStyle>
445                              <Default>Solid</Default>
446                            </BorderStyle>
447                            <BorderWidth>
448                              <Default>0.5pt</Default>
449                            </BorderWidth>
450                            <TextAlign>Right</TextAlign>
451                            <PaddingLeft>2pt</PaddingLeft>
452                            <PaddingRight>2pt</PaddingRight>
453                            <PaddingTop>2pt</PaddingTop>
454                            <PaddingBottom>2pt</PaddingBottom>
455                          </Style>
456                          <ZIndex>1</ZIndex>
457                          <CanGrow>true</CanGrow>
458                          <Value>=Sum(Fields!netto.Value)</Value>
459                        </Textbox>
460                      </ReportItems>
461                    </TableCell>
462                    <TableCell>
463                      <ReportItems>
464                        <Textbox Name="textbox32">
465                          <Style>
466                            <BorderColor>
467                              <Default>LightGrey</Default>
468                            </BorderColor>
469                            <BorderStyle>
470                              <Default>Solid</Default>
471                            </BorderStyle>
472                            <BorderWidth>
473                              <Default>0.5pt</Default>
474                            </BorderWidth>
475                            <TextAlign>Right</TextAlign>
476                            <PaddingLeft>2pt</PaddingLeft>
477                            <PaddingRight>2pt</PaddingRight>
478                            <PaddingTop>2pt</PaddingTop>
479                            <PaddingBottom>2pt</PaddingBottom>
480                          </Style>
481                          <CanGrow>true</CanGrow>
482                          <Value>=Sum(Fields!ilosc.Value)</Value>
483                        </Textbox>
484                      </ReportItems>
485                    </TableCell>
486                  </TableCells>
487                  <Height>0.63492cm</Height>
488                </TableRow>
489              </TableRows>
490            </Footer>
491          </TableGroup>
492          <TableGroup>
493            <Grouping Name="table1_Group4">
494              <GroupExpressions>
495                <GroupExpression>=Fields!rok.Value</GroupExpression>
496                <GroupExpression>=Fields!agent.Value</GroupExpression>
497              </GroupExpressions>
498            </Grouping>
499            <Header>
500              <TableRows>
501                <TableRow>
502                  <TableCells>
503                    <TableCell>
504                      <ReportItems>
505                        <Textbox Name="textbox26">
506                          <Style>
507                            <BorderColor>
508                              <Default>LightGrey</Default>
509                            </BorderColor>
510                            <BorderStyle>
511                              <Default>Solid</Default>
512                            </BorderStyle>
513                            <BorderWidth>
514                              <Default>0.5pt</Default>
515                            </BorderWidth>
516                            <TextAlign>Right</TextAlign>
517                            <PaddingLeft>2pt</PaddingLeft>
518                            <PaddingRight>2pt</PaddingRight>
519                            <PaddingTop>2pt</PaddingTop>
520                            <PaddingBottom>2pt</PaddingBottom>
521                          </Style>
522                          <ZIndex>9</ZIndex>
523                          <CanGrow>true</CanGrow>
524                          <Value>=Fields!rok.Value</Value>
525                        </Textbox>
526                      </ReportItems>
527                    </TableCell>
528                    <TableCell>
529                      <ReportItems>
530                        <Textbox Name="textbox27">
531                          <Style>
532                            <BorderColor>
533                              <Default>LightGrey</Default>
534                            </BorderColor>
535                            <BorderStyle>
536                              <Default>Solid</Default>
537                            </BorderStyle>
538                            <BorderWidth>
539                              <Default>0.5pt</Default>
540                            </BorderWidth>
541                            <PaddingLeft>2pt</PaddingLeft>
542                            <PaddingRight>2pt</PaddingRight>
543                            <PaddingTop>2pt</PaddingTop>
544                            <PaddingBottom>2pt</PaddingBottom>
545                          </Style>
546                          <ZIndex>8</ZIndex>
547                          <CanGrow>true</CanGrow>
548                          <Value>=Fields!agencja.Value</Value>
549                        </Textbox>
550                      </ReportItems>
551                    </TableCell>
552                    <TableCell>
553                      <ReportItems>
554                        <Textbox Name="textbox28">
555                          <Style>
556                            <BorderColor>
557                              <Default>LightGrey</Default>
558                            </BorderColor>
559                            <BorderStyle>
560                              <Default>Solid</Default>
561                            </BorderStyle>
562                            <BorderWidth>
563                              <Default>0.5pt</Default>
564                            </BorderWidth>
565                            <PaddingLeft>2pt</PaddingLeft>
566                            <PaddingRight>2pt</PaddingRight>
567                            <PaddingTop>2pt</PaddingTop>
568                            <PaddingBottom>2pt</PaddingBottom>
569                          </Style>
570                          <ZIndex>7</ZIndex>
571                          <CanGrow>true</CanGrow>
572                          <Value>=Fields!agent.Value</Value>
573                        </Textbox>
574                      </ReportItems>
575                    </TableCell>
576                    <TableCell>
577                      <ReportItems>
578                        <Textbox Name="textbox29">
579                          <Style>
580                            <BorderColor>
581                              <Default>LightGrey</Default>
582                            </BorderColor>
583                            <BorderStyle>
584                              <Default>Solid</Default>
585                            </BorderStyle>
586                            <BorderWidth>
587                              <Default>0.5pt</Default>
588                            </BorderWidth>
589                            <TextAlign>Right</TextAlign>
590                            <PaddingLeft>2pt</PaddingLeft>
591                            <PaddingRight>2pt</PaddingRight>
592                            <PaddingTop>2pt</PaddingTop>
593                            <PaddingBottom>2pt</PaddingBottom>
594                          </Style>
595                          <ZIndex>6</ZIndex>
596                          <CanGrow>true</CanGrow>
597                          <Value>=Sum(Fields!netto.Value)</Value>
598                        </Textbox>
599                      </ReportItems>
600                    </TableCell>
601                    <TableCell>
602                      <ReportItems>
603                        <Textbox Name="textbox30">
604                          <Style>
605                            <BorderColor>
606                              <Default>LightGrey</Default>
607                            </BorderColor>
608                            <BorderStyle>
609                              <Default>Solid</Default>
610                            </BorderStyle>
611                            <BorderWidth>
612                              <Default>0.5pt</Default>
613                            </BorderWidth>
614                            <TextAlign>Right</TextAlign>
615                            <PaddingLeft>2pt</PaddingLeft>
616                            <PaddingRight>2pt</PaddingRight>
617                            <PaddingTop>2pt</PaddingTop>
618                            <PaddingBottom>2pt</PaddingBottom>
619                          </Style>
620                          <ZIndex>5</ZIndex>
621                          <CanGrow>true</CanGrow>
622                          <Value>=Sum(Fields!ilosc.Value)</Value>
623                        </Textbox>
624                      </ReportItems>
625                    </TableCell>
626                  </TableCells>
627                  <Height>0.75cm</Height>
628                </TableRow>
629              </TableRows>
630            </Header>
631          </TableGroup>
632          <TableGroup>
633            <Grouping Name="table1_Group1">
634              <GroupExpressions>
635                <GroupExpression>=Fields!agent.Value</GroupExpression>
636              </GroupExpressions>
637            </Grouping>
638          </TableGroup>
639          <TableGroup>
640            <Grouping Name="table1_Group2">
641              <GroupExpressions>
642                <GroupExpression>=Fields!agencja.Value</GroupExpression>
643              </GroupExpressions>
644            </Grouping>
645          </TableGroup>
646        </TableGroups>
647        <Width>21.75cm</Width>
648        <Header>
649          <TableRows>
650            <TableRow>
651              <TableCells>
652                <TableCell>
653                  <ReportItems>
654                    <Textbox Name="textbox1">
655                      <rd:DefaultName>textbox1</rd:DefaultName>
656                      <Style>
657                        <FontWeight>700</FontWeight>
658                        <TextAlign>Center</TextAlign>
659                        <PaddingLeft>2pt</PaddingLeft>
660                        <PaddingRight>2pt</PaddingRight>
661                        <PaddingTop>2pt</PaddingTop>
662                        <PaddingBottom>2pt</PaddingBottom>
663                      </Style>
664                      <ZIndex>19</ZIndex>
665                      <CanGrow>true</CanGrow>
666                      <Value>rok</Value>
667                    </Textbox>
668                  </ReportItems>
669                </TableCell>
670                <TableCell>
671                  <ReportItems>
672                    <Textbox Name="textbox10">
673                      <rd:DefaultName>textbox10</rd:DefaultName>
674                      <Style>
675                        <FontWeight>700</FontWeight>
676                        <TextAlign>Center</TextAlign>
677                        <PaddingLeft>2pt</PaddingLeft>
678                        <PaddingRight>2pt</PaddingRight>
679                        <PaddingTop>2pt</PaddingTop>
680                        <PaddingBottom>2pt</PaddingBottom>
681                      </Style>
682                      <ZIndex>18</ZIndex>
683                      <CanGrow>true</CanGrow>
684                      <Value>agencja</Value>
685                    </Textbox>
686                  </ReportItems>
687                </TableCell>
688                <TableCell>
689                  <ReportItems>
690                    <Textbox Name="textbox4">
691                      <rd:DefaultName>textbox4</rd:DefaultName>
692                      <Style>
693                        <FontWeight>700</FontWeight>
694                        <TextAlign>Center</TextAlign>
695                        <PaddingLeft>2pt</PaddingLeft>
696                        <PaddingRight>2pt</PaddingRight>
697                        <PaddingTop>2pt</PaddingTop>
698                        <PaddingBottom>2pt</PaddingBottom>
699                      </Style>
700                      <ZIndex>17</ZIndex>
701                      <CanGrow>true</CanGrow>
702                      <Value>agent</Value>
703                    </Textbox>
704                  </ReportItems>
705                </TableCell>
706                <TableCell>
707                  <ReportItems>
708                    <Textbox Name="textbox2">
709                      <rd:DefaultName>textbox2</rd:DefaultName>
710                      <Style>
711                        <FontWeight>700</FontWeight>
712                        <TextAlign>Center</TextAlign>
713                        <PaddingLeft>2pt</PaddingLeft>
714                        <PaddingRight>2pt</PaddingRight>
715                        <PaddingTop>2pt</PaddingTop>
716                        <PaddingBottom>2pt</PaddingBottom>
717                      </Style>
718                      <ZIndex>16</ZIndex>
719                      <CanGrow>true</CanGrow>
720                      <Value>netto</Value>
721                    </Textbox>
722                  </ReportItems>
723                </TableCell>
724                <TableCell>
725                  <ReportItems>
726                    <Textbox Name="textbox3">
727                      <rd:DefaultName>textbox3</rd:DefaultName>
728                      <Style>
729                        <FontWeight>700</FontWeight>
730                        <TextAlign>Center</TextAlign>
731                        <PaddingLeft>2pt</PaddingLeft>
732                        <PaddingRight>2pt</PaddingRight>
733                        <PaddingTop>2pt</PaddingTop>
734                        <PaddingBottom>2pt</PaddingBottom>
735                      </Style>
736                      <ZIndex>15</ZIndex>
737                      <CanGrow>true</CanGrow>
738                      <Value>ilosc</Value>
739                    </Textbox>
740                  </ReportItems>
741                </TableCell>
742              </TableCells>
743              <Height>0.75cm</Height>
744            </TableRow>
745          </TableRows>
746        </Header>
747        <TableColumns>
748          <TableColumn>
749            <Width>3.5cm</Width>
750          </TableColumn>
751          <TableColumn>
752            <Width>4.75cm</Width>
753          </TableColumn>
754          <TableColumn>
755            <Width>4.75cm</Width>
756          </TableColumn>
757          <TableColumn>
758            <Width>4.75cm</Width>
759          </TableColumn>
760          <TableColumn>
761            <Width>4cm</Width>
762          </TableColumn>
763        </TableColumns>
764        <Height>2.63492cm</Height>
765      </Table>
766      <Chart Name="chart7">
767        <Legend>
768          <Style>
769            <BorderStyle>
770              <Default>Solid</Default>
771            </BorderStyle>
772          </Style>
773          <Position>RightCenter</Position>
774        </Legend>
775        <CategoryAxis>
776          <Axis>
777            <Title />
778            <MajorGridLines>
779              <Style>
780                <BorderStyle>
781                  <Default>Solid</Default>
782                </BorderStyle>
783              </Style>
784            </MajorGridLines>
785            <MinorGridLines>
786              <Style>
787                <BorderStyle>
788                  <Default>Solid</Default>
789                </BorderStyle>
790              </Style>
791            </MinorGridLines>
792            <MajorTickMarks>Outside</MajorTickMarks>
793            <Min>0</Min>
794            <Margin>true</Margin>
795            <Visible>true</Visible>
796          </Axis>
797        </CategoryAxis>
798        <ZIndex>1</ZIndex>
799        <DataSetName>wgDatyFaktury_ZatwierdzoneDoDruku</DataSetName>
800        <PlotArea>
801          <Style>
802            <BackgroundColor>White</BackgroundColor>
803          </Style>
804        </PlotArea>
805        <ThreeDProperties>
806          <Enabled>true</Enabled>
807          <ProjectionMode>Orthographic</ProjectionMode>
808          <Shading>Real</Shading>
809          <DrawingStyle>Cylinder</DrawingStyle>
810        </ThreeDProperties>
811        <PointWidth>0</PointWidth>
812        <SeriesGroupings>
813          <SeriesGrouping>
814            <StaticSeries>
815              <StaticMember>
816                <Label>Value1</Label>
817              </StaticMember>
818            </StaticSeries>
819          </SeriesGrouping>
820        </SeriesGroupings>
821        <Subtype>Plain</Subtype>
822        <ValueAxis>
823          <Axis>
824            <Title />
825            <MajorGridLines>
826              <Style>
827                <BorderStyle>
828                  <Default>Solid</Default>
829                </BorderStyle>
830              </Style>
831            </MajorGridLines>
832            <MinorGridLines>
833              <Style>
834                <BorderStyle>
835                  <Default>Solid</Default>
836                </BorderStyle>
837              </Style>
838            </MinorGridLines>
839            <MajorTickMarks>Inside</MajorTickMarks>
840            <MinorTickMarks>Inside</MinorTickMarks>
841            <Min>0</Min>
842            <Margin>true</Margin>
843            <Visible>true</Visible>
844            <Scalar>true</Scalar>
845          </Axis>
846        </ValueAxis>
847        <Type>Column</Type>
848        <CategoryGroupings>
849          <CategoryGrouping>
850            <DynamicCategories>
851              <Grouping Name="chart7_CategoryGroup1">
852                <GroupExpressions>
853                  <GroupExpression>=Fields!rok.Value</GroupExpression>
854                  <GroupExpression>=switch(Parameters!okres.Label="ROK","",Parameters!okres.Label="PÓŁROCZE",Fields!rok_po.Value,Parameters!okres.Label="KWARTAŁ",Fields!rok_po.Value,Parameters!okres.Label="MS",Fields!rok_po.Value)</GroupExpression>
855                  <GroupExpression>=switch(Parameters!okres.Label="ROK","",Parameters!okres.Label="PÓŁROCZE","",Parameters!okres.Label="KWARTAŁ",Fields!kw.Value,Parameters!okres.Label="MS",Fields!kw.Value)</GroupExpression>
856                  <GroupExpression>=switch(Parameters!okres.Label="ROK","",Parameters!okres.Label="PÓŁROCZE","",Parameters!okres.Label="KWARTAŁ","",Parameters!okres.Label="MS",Fields!ms.Value)</GroupExpression>
857                </GroupExpressions>
858              </Grouping>
859              <Label>=switch(Parameters!okres.Label="ROK",Fields!rok.Value,Parameters!okres.Label="PÓŁROCZE",Fields!rok.Value &amp; "/" &amp; Fields!rok_po.Value,Parameters!okres.Label="KWARTAŁ",Fields!rok.Value &amp; "/" &amp; Fields!kw.Value,Parameters!okres.Label="MS",iif(Fields!ms.Value.ToString().Length = 1, Fields!rok.Value &amp; "/0" &amp;  Fields!ms.Value,Fields!rok.Value &amp; "/" &amp;  Fields!ms.Value))</Label>
860            </DynamicCategories>
861          </CategoryGrouping>
862        </CategoryGroupings>
863        <Palette>Excel</Palette>
864        <ChartData>
865          <ChartSeries>
866            <DataPoints>
867              <DataPoint>
868                <DataValues>
869                  <DataValue>
870                    <Value>=Sum(Fields!netto.Value)</Value>
871                  </DataValue>
872                </DataValues>
873                <DataLabel>
874                  <Style>
875                    <FontSize>8pt</FontSize>
876                  </Style>
877                  <Value>=Code.Formatuj(Sum(Fields!netto.Value))</Value>
878                  <Position>Top</Position>
879                  <Rotation>-90</Rotation>
880                  <Visible>true</Visible>
881                </DataLabel>
882                <Marker>
883                  <Size>6pt</Size>
884                </Marker>
885              </DataPoint>
886            </DataPoints>
887          </ChartSeries>
888        </ChartData>
889        <Style>
890          <BackgroundColor>White</BackgroundColor>
891        </Style>
892        <Title>
893          <Caption>NETTO - z faktur</Caption>
894        </Title>
895        <Height>9.25cm</Height>
896      </Chart>
897      <Chart Name="chart8">
898        <Legend>
899          <Style>
900            <BorderStyle>
901              <Default>Solid</Default>
902            </BorderStyle>
903          </Style>
904          <Position>RightCenter</Position>
905        </Legend>
906        <CategoryAxis>
907          <Axis>
908            <Title />
909            <MajorGridLines>
910              <Style>
911                <BorderStyle>
912                  <Default>Solid</Default>
913                </BorderStyle>
914              </Style>
915            </MajorGridLines>
916            <MinorGridLines>
917              <Style>
918                <BorderStyle>
919                  <Default>Solid</Default>
920                </BorderStyle>
921              </Style>
922            </MinorGridLines>
923            <MajorTickMarks>Outside</MajorTickMarks>
924            <Min>0</Min>
925            <Margin>true</Margin>
926            <Visible>true</Visible>
927          </Axis>
928        </CategoryAxis>
929        <DataSetName>wgDatyFaktury_ZatwierdzoneDoDruku</DataSetName>
930        <PlotArea>
931          <Style>
932            <BackgroundColor>White</BackgroundColor>
933          </Style>
934        </PlotArea>
935        <ThreeDProperties>
936          <Enabled>true</Enabled>
937          <Shading>Real</Shading>
938          <DrawingStyle>Cylinder</DrawingStyle>
939        </ThreeDProperties>
940        <PointWidth>0</PointWidth>
941        <SeriesGroupings>
942          <SeriesGrouping>
943            <StaticSeries>
944              <StaticMember>
945                <Label>Value1</Label>
946              </StaticMember>
947            </StaticSeries>
948          </SeriesGrouping>
949        </SeriesGroupings>
950        <Top>9.5cm</Top>
951        <Subtype>Plain</Subtype>
952        <ValueAxis>
953          <Axis>
954            <Title />
955            <MajorGridLines>
956              <Style>
957                <BorderStyle>
958                  <Default>Solid</Default>
959                </BorderStyle>
960              </Style>
961            </MajorGridLines>
962            <MinorGridLines>
963              <Style>
964                <BorderStyle>
965                  <Default>Solid</Default>
966                </BorderStyle>
967              </Style>
968            </MinorGridLines>
969            <MajorTickMarks>Outside</MajorTickMarks>
970            <Min>0</Min>
971            <Margin>true</Margin>
972            <Visible>true</Visible>
973            <Scalar>true</Scalar>
974          </Axis>
975        </ValueAxis>
976        <Type>Column</Type>
977        <CategoryGroupings>
978          <CategoryGrouping>
979            <DynamicCategories>
980              <Grouping Name="chart8_CategoryGroup1">
981                <GroupExpressions>
982                  <GroupExpression>=Fields!rok.Value</GroupExpression>
983                  <GroupExpression>=switch(Parameters!okres.Label="ROK","",Parameters!okres.Label="PÓŁROCZE",Fields!rok_po.Value,Parameters!okres.Label="KWARTAŁ",Fields!rok_po.Value,Parameters!okres.Label="MS",Fields!rok_po.Value)</GroupExpression>
984                  <GroupExpression>=switch(Parameters!okres.Label="ROK","",Parameters!okres.Label="PÓŁROCZE","",Parameters!okres.Label="KWARTAŁ",Fields!kw.Value,Parameters!okres.Label="MS",Fields!kw.Value)</GroupExpression>
985                  <GroupExpression>=switch(Parameters!okres.Label="ROK","",Parameters!okres.Label="PÓŁROCZE","",Parameters!okres.Label="KWARTAŁ","",Parameters!okres.Label="MS",Fields!ms.Value)</GroupExpression>
986                </GroupExpressions>
987              </Grouping>
988              <Label>=switch(Parameters!okres.Label="ROK",Fields!rok.Value,Parameters!okres.Label="PÓŁROCZE",Fields!rok.Value &amp; "/" &amp; Fields!rok_po.Value,Parameters!okres.Label="KWARTAŁ",Fields!rok.Value &amp; "/" &amp; Fields!kw.Value,Parameters!okres.Label="MS",iif(Fields!ms.Value.ToString().Length = 1, Fields!rok.Value &amp; "/0" &amp;  Fields!ms.Value,Fields!rok.Value &amp; "/" &amp;  Fields!ms.Value))</Label>
989            </DynamicCategories>
990          </CategoryGrouping>
991        </CategoryGroupings>
992        <Palette>Default</Palette>
993        <ChartData>
994          <ChartSeries>
995            <DataPoints>
996              <DataPoint>
997                <DataValues>
998                  <DataValue>
999                    <Value>=Sum(Fields!ilosc.Value)</Value>
1000                  </DataValue>
1001                </DataValues>
1002                <DataLabel>
1003                  <Style />
1004                  <Value>=Sum(Fields!ilosc.Value)</Value>
1005                  <Position>Top</Position>
1006                  <Rotation>-90</Rotation>
1007                  <Visible>true</Visible>
1008                </DataLabel>
1009                <Style>
1010                  <BackgroundColor>Gold</BackgroundColor>
1011                </Style>
1012                <Marker>
1013                  <Size>6pt</Size>
1014                </Marker>
1015              </DataPoint>
1016            </DataPoints>
1017          </ChartSeries>
1018        </ChartData>
1019        <Style>
1020          <BackgroundColor>White</BackgroundColor>
1021        </Style>
1022        <Title>
1023          <Caption>ILOŚĆ - z faktur</Caption>
1024        </Title>
1025        <Height>9.25cm</Height>
1026      </Chart>
1027    </ReportItems>
1028    <Height>21.75cm</Height>
1029  </Body>
1030  <Language>en-US</Language>
1031  <TopMargin>1cm</TopMargin>
1032  <PageHeight>21cm</PageHeight>
1033</Report>
Notatka: Zobacz TracBrowser aby uzyskać więcej informacji.