root/trunk/RaportySQL/RozliczenieWplywowWgDatyWplaty2009.rdl @ 160

Wersja 153, 47.5 KB (wprowadzona przez dorota, 17 years temu)

1.0.0.65 - raport

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>bbcc12ab-5eed-4510-b210-1b3b99539ad1</rd:DataSourceID>
6      <DataSourceReference>BAZA_REKLAM</DataSourceReference>
7    </DataSource>
8  </DataSources>
9  <InteractiveHeight>29.7cm</InteractiveHeight>
10  <ReportParameters>
11    <ReportParameter Name="prawa_agencje">
12      <DataType>String</DataType>
13      <Nullable>true</Nullable>
14      <Prompt>prawa_agencje</Prompt>
15      <Hidden>true</Hidden>
16    </ReportParameter>
17    <ReportParameter Name="prawa_agent">
18      <DataType>String</DataType>
19      <Nullable>true</Nullable>
20      <Prompt>prawa_agent</Prompt>
21      <Hidden>true</Hidden>
22    </ReportParameter>
23    <ReportParameter Name="rok">
24      <DataType>String</DataType>
25      <DefaultValue>
26        <Values>
27          <Value>=Year(Today)</Value>
28        </Values>
29      </DefaultValue>
30      <Prompt>rok</Prompt>
31      <ValidValues>
32        <DataSetReference>
33          <DataSetName>ListaLat</DataSetName>
34          <ValueField>rok</ValueField>
35          <LabelField>rok</LabelField>
36        </DataSetReference>
37      </ValidValues>
38    </ReportParameter>
39    <ReportParameter Name="miesiac">
40      <DataType>String</DataType>
41      <DefaultValue>
42        <Values>
43          <Value>=Month(Today)</Value>
44        </Values>
45      </DefaultValue>
46      <Prompt>miesiac</Prompt>
47      <ValidValues>
48        <ParameterValues>
49          <ParameterValue>
50            <Value>1</Value>
51          </ParameterValue>
52          <ParameterValue>
53            <Value>2</Value>
54          </ParameterValue>
55          <ParameterValue>
56            <Value>3</Value>
57          </ParameterValue>
58          <ParameterValue>
59            <Value>4</Value>
60          </ParameterValue>
61          <ParameterValue>
62            <Value>5</Value>
63          </ParameterValue>
64          <ParameterValue>
65            <Value>6</Value>
66          </ParameterValue>
67          <ParameterValue>
68            <Value>7</Value>
69          </ParameterValue>
70          <ParameterValue>
71            <Value>8</Value>
72          </ParameterValue>
73          <ParameterValue>
74            <Value>9</Value>
75          </ParameterValue>
76          <ParameterValue>
77            <Value>10</Value>
78          </ParameterValue>
79          <ParameterValue>
80            <Value>11</Value>
81          </ParameterValue>
82          <ParameterValue>
83            <Value>12</Value>
84          </ParameterValue>
85        </ParameterValues>
86      </ValidValues>
87    </ReportParameter>
88    <ReportParameter Name="agencja">
89      <DataType>String</DataType>
90      <DefaultValue>
91        <DataSetReference>
92          <DataSetName>ListaAgencji</DataSetName>
93          <ValueField>Symbol</ValueField>
94        </DataSetReference>
95      </DefaultValue>
96      <Prompt>agencja</Prompt>
97      <ValidValues>
98        <DataSetReference>
99          <DataSetName>ListaAgencji</DataSetName>
100          <ValueField>Symbol</ValueField>
101          <LabelField>Symbol</LabelField>
102        </DataSetReference>
103      </ValidValues>
104      <MultiValue>true</MultiValue>
105    </ReportParameter>
106    <ReportParameter Name="agent">
107      <DataType>String</DataType>
108      <DefaultValue>
109        <DataSetReference>
110          <DataSetName>ListaAgentow</DataSetName>
111          <ValueField>Symbol</ValueField>
112        </DataSetReference>
113      </DefaultValue>
114      <Prompt>agent</Prompt>
115      <ValidValues>
116        <DataSetReference>
117          <DataSetName>ListaAgentow</DataSetName>
118          <ValueField>Symbol</ValueField>
119          <LabelField>Symbol</LabelField>
120        </DataSetReference>
121      </ValidValues>
122      <MultiValue>true</MultiValue>
123    </ReportParameter>
124    <ReportParameter Name="sortuj">
125      <DataType>String</DataType>
126      <DefaultValue>
127        <Values>
128          <Value>2</Value>
129        </Values>
130      </DefaultValue>
131      <Prompt>sortuj wg: </Prompt>
132      <ValidValues>
133        <ParameterValues>
134          <ParameterValue>
135            <Value>0</Value>
136            <Label>data zapłaty</Label>
137          </ParameterValue>
138          <ParameterValue>
139            <Value>1</Value>
140            <Label>termin zapłaty (faktura)</Label>
141          </ParameterValue>
142          <ParameterValue>
143            <Value>2</Value>
144            <Label>agent,nr faktury</Label>
145          </ParameterValue>
146          <ParameterValue>
147            <Value>3</Value>
148            <Label>forma zapłaty</Label>
149          </ParameterValue>
150        </ParameterValues>
151      </ValidValues>
152    </ReportParameter>
153  </ReportParameters>
154  <rd:DrawGrid>true</rd:DrawGrid>
155  <InteractiveWidth>21cm</InteractiveWidth>
156  <rd:GridSpacing>0.25cm</rd:GridSpacing>
157  <rd:SnapToGrid>true</rd:SnapToGrid>
158  <RightMargin>1cm</RightMargin>
159  <LeftMargin>1cm</LeftMargin>
160  <BottomMargin>1cm</BottomMargin>
161  <rd:ReportID>9353c331-a24b-4f88-bbef-a42cfe8acfb2</rd:ReportID>
162  <PageWidth>29.7cm</PageWidth>
163  <DataSets>
164    <DataSet Name="ListaFaktur">
165      <Fields>
166        <Field Name="ID_FAKTURY">
167          <DataField>ID_FAKTURY</DataField>
168          <rd:TypeName>System.Int32</rd:TypeName>
169        </Field>
170        <Field Name="Symbol">
171          <DataField>Symbol</DataField>
172          <rd:TypeName>System.String</rd:TypeName>
173        </Field>
174        <Field Name="NR_FK">
175          <DataField>NR_FK</DataField>
176          <rd:TypeName>System.String</rd:TypeName>
177        </Field>
178        <Field Name="kodKlienta">
179          <DataField>kodKlienta</DataField>
180          <rd:TypeName>System.String</rd:TypeName>
181        </Field>
182        <Field Name="symbolPotwierdzenia">
183          <DataField>symbolPotwierdzenia</DataField>
184          <rd:TypeName>System.String</rd:TypeName>
185        </Field>
186        <Field Name="rodzajPotwierdzenia">
187          <DataField>rodzajPotwierdzenia</DataField>
188          <rd:TypeName>System.String</rd:TypeName>
189        </Field>
190        <Field Name="NETTO">
191          <DataField>NETTO</DataField>
192          <rd:TypeName>System.Decimal</rd:TypeName>
193        </Field>
194        <Field Name="VAT">
195          <DataField>VAT</DataField>
196          <rd:TypeName>System.Decimal</rd:TypeName>
197        </Field>
198        <Field Name="BRUTTO">
199          <DataField>BRUTTO</DataField>
200          <rd:TypeName>System.Decimal</rd:TypeName>
201        </Field>
202        <Field Name="DATA_WYSTAWIENIA">
203          <DataField>DATA_WYSTAWIENIA</DataField>
204          <rd:TypeName>System.DateTime</rd:TypeName>
205        </Field>
206        <Field Name="TERMIN_ZAPLATY">
207          <DataField>TERMIN_ZAPLATY</DataField>
208          <rd:TypeName>System.DateTime</rd:TypeName>
209        </Field>
210        <Field Name="SPOSOB_ZAPLATY">
211          <DataField>SPOSOB_ZAPLATY</DataField>
212          <rd:TypeName>System.String</rd:TypeName>
213        </Field>
214        <Field Name="agencja">
215          <DataField>Agencja</DataField>
216          <rd:TypeName>System.String</rd:TypeName>
217        </Field>
218        <Field Name="dataWplaty">
219          <DataField>dataWplaty</DataField>
220          <rd:TypeName>System.DateTime</rd:TypeName>
221        </Field>
222        <Field Name="roznica_nowa">
223          <DataField>roznica_nowa</DataField>
224          <rd:TypeName>System.Int32</rd:TypeName>
225        </Field>
226        <Field Name="suma_zaplat">
227          <DataField>suma_zaplat</DataField>
228          <rd:TypeName>System.Decimal</rd:TypeName>
229        </Field>
230        <Field Name="zaplata_data">
231          <DataField>zaplata_data</DataField>
232          <rd:TypeName>System.DateTime</rd:TypeName>
233        </Field>
234        <Field Name="roznica_stara">
235          <DataField>roznica_stara</DataField>
236          <rd:TypeName>System.Int32</rd:TypeName>
237        </Field>
238      </Fields>
239      <Filters>
240        <Filter>
241          <FilterExpression>=Fields!agencja.Value</FilterExpression>
242          <Operator>In</Operator>
243          <FilterValues>
244            <FilterValue>=Parameters!agencja.Value</FilterValue>
245          </FilterValues>
246        </Filter>
247        <Filter>
248          <FilterExpression>=Fields!Symbol.Value</FilterExpression>
249          <Operator>In</Operator>
250          <FilterValues>
251            <FilterValue>=Parameters!agent.Value</FilterValue>
252          </FilterValues>
253        </Filter>
254      </Filters>
255      <Query>
256        <DataSourceName>BAZA_REKLAM</DataSourceName>
257        <CommandText>SELECT     FAKTURY.ID_FAKTURY, AGENCI.Symbol, CONVERT(VARCHAR, FAKTURY.NUMER) + '/' + CONVERT(VARCHAR, FAKTURY.NUMER_ROZ)
258                      + '/' + CONVERT(VARCHAR, FAKTURY.NUMER_ROK) AS NR_FK, KLIENCI.kodKlienta, Wplaty.symbolPotwierdzenia, Wplaty.rodzajPotwierdzenia,
259                      SUM(FAKTURA_DETAILS.NETTO) AS NETTO, SUM(FAKTURA_DETAILS.VAT) AS VAT, SUM(FAKTURA_DETAILS.BRUTTO) AS BRUTTO,
260                      FAKTURY.DATA_WYSTAWIENIA, FAKTURY.TERMIN_ZAPLATY, FAKTURY.SPOSOB_ZAPLATY, AGENCJE.Symbol AS Agencja, Wplaty.dataWplaty,
261                      DATEDIFF(day, FAKTURY.TERMIN_ZAPLATY, Wplaty.dataWplaty) AS roznica_nowa, FAKTURY.suma_zaplat, FAKTURY.zaplata_data, DATEDIFF(day,
262                      FAKTURY.TERMIN_ZAPLATY, FAKTURY.zaplata_data) AS roznica_stara
263FROM         FAKTURY LEFT OUTER JOIN
264                      FAKTURA_DETAILS ON FAKTURY.ID_FAKTURY = FAKTURA_DETAILS.ID_FAKTURY LEFT OUTER JOIN
265                      AGENCI ON FAKTURY.NUMER_ROZ = AGENCI.F_ROZ LEFT OUTER JOIN
266                      AGENCJE ON AGENCI.ID_AGENCJI = AGENCJE.Id_agencji LEFT OUTER JOIN
267                      Wplaty ON FAKTURY.ID_FAKTURY = Wplaty.idFaktury LEFT OUTER JOIN
268                      KLIENCI ON FAKTURY.ID_NABYWCY = KLIENCI.CustomerID
269WHERE     (FAKTURY.KOREKTA &lt;&gt; 1) AND (YEAR(Wplaty.dataWplaty) = @rok) AND (MONTH(Wplaty.dataWplaty) = @miesiac)
270GROUP BY FAKTURY.DATA_WYSTAWIENIA, FAKTURY.ID_FAKTURY, AGENCI.Symbol, CONVERT(VARCHAR, FAKTURY.NUMER) + '/' + CONVERT(VARCHAR,
271                      FAKTURY.NUMER_ROZ) + '/' + CONVERT(VARCHAR, FAKTURY.NUMER_ROK), KLIENCI.kodKlienta, Wplaty.symbolPotwierdzenia,
272                      Wplaty.rodzajPotwierdzenia, FAKTURY.DATA_WYSTAWIENIA, FAKTURY.TERMIN_ZAPLATY, FAKTURY.SPOSOB_ZAPLATY, AGENCJE.Symbol,
273                      Wplaty.dataWplaty, DATEDIFF(day, FAKTURY.TERMIN_ZAPLATY, Wplaty.dataWplaty), FAKTURY.suma_zaplat, FAKTURY.zaplata_data, DATEDIFF(day,
274                      FAKTURY.TERMIN_ZAPLATY, FAKTURY.zaplata_data)</CommandText>
275        <QueryParameters>
276          <QueryParameter Name="@rok">
277            <Value>=Parameters!rok.Value</Value>
278          </QueryParameter>
279          <QueryParameter Name="@miesiac">
280            <Value>=Parameters!miesiac.Value</Value>
281          </QueryParameter>
282        </QueryParameters>
283      </Query>
284    </DataSet>
285    <DataSet Name="ListaAgencji">
286      <Fields>
287        <Field Name="Id_agencji">
288          <DataField>Id_agencji</DataField>
289          <rd:TypeName>System.Int32</rd:TypeName>
290        </Field>
291        <Field Name="Symbol">
292          <DataField>Symbol</DataField>
293          <rd:TypeName>System.String</rd:TypeName>
294        </Field>
295      </Fields>
296      <Query>
297        <DataSourceName>BAZA_REKLAM</DataSourceName>
298        <CommandText>SELECT        Id_agencji, Symbol
299FROM            AGENCJE where aktywna=1 and (@prawa_agencje is null or @prawa_agencje= Id_agencji)</CommandText>
300        <QueryParameters>
301          <QueryParameter Name="@prawa_agencje">
302            <Value>=Parameters!prawa_agencje.Value</Value>
303          </QueryParameter>
304        </QueryParameters>
305        <rd:UseGenericDesigner>true</rd:UseGenericDesigner>
306      </Query>
307    </DataSet>
308    <DataSet Name="ListaAgentow">
309      <Fields>
310        <Field Name="ID_AGENTA">
311          <DataField>ID_AGENTA</DataField>
312          <rd:TypeName>System.Int32</rd:TypeName>
313        </Field>
314        <Field Name="Symbol">
315          <DataField>Symbol</DataField>
316          <rd:TypeName>System.String</rd:TypeName>
317        </Field>
318        <Field Name="agencja">
319          <DataField>agencja</DataField>
320          <rd:TypeName>System.String</rd:TypeName>
321        </Field>
322      </Fields>
323      <Query>
324        <DataSourceName>BAZA_REKLAM</DataSourceName>
325        <CommandText>SELECT        A.ID_AGENTA, A.Symbol, A2.Symbol agencja
326FROM            AGENCI A left join Agencje A2
327on A.ID_AGENCJI = A2.ID_Agencji
328 where (A2.Symbol in (@agencja) OR A2.Symbol is null) AND (@prawa_agent is null OR A.Symbol=@prawa_agent)
329order by A.Symbol</CommandText>
330        <QueryParameters>
331          <QueryParameter Name="@agencja">
332            <Value>=Parameters!agencja.Value</Value>
333          </QueryParameter>
334          <QueryParameter Name="@prawa_agent">
335            <Value>=Parameters!prawa_agent.Value</Value>
336          </QueryParameter>
337        </QueryParameters>
338        <rd:UseGenericDesigner>true</rd:UseGenericDesigner>
339      </Query>
340    </DataSet>
341    <DataSet Name="ListaLat">
342      <Fields>
343        <Field Name="rok">
344          <DataField>rok</DataField>
345          <rd:TypeName>System.Int32</rd:TypeName>
346        </Field>
347      </Fields>
348      <Query>
349        <DataSourceName>BAZA_REKLAM</DataSourceName>
350        <CommandText>select distinct year(DATA_W) as rok from dbo.NR where DATA_W is not null and year(DATA_W) &gt;=2009 order by year(DATA_W)desc</CommandText>
351        <rd:UseGenericDesigner>true</rd:UseGenericDesigner>
352      </Query>
353    </DataSet>
354  </DataSets>
355  <Code>Public Shared Function Formatuj(ByVal Value As Integer) As String
356        Formatuj = Format(Value, "### ### ##0.00 zł")
357End Function</Code>
358  <Width>22.07937cm</Width>
359  <Body>
360    <ColumnSpacing>1cm</ColumnSpacing>
361    <ReportItems>
362      <Textbox Name="textbox10">
363        <rd:DefaultName>textbox10</rd:DefaultName>
364        <Width>18.75cm</Width>
365        <Style>
366          <FontSize>16pt</FontSize>
367          <FontWeight>700</FontWeight>
368          <TextAlign>Center</TextAlign>
369          <PaddingLeft>2pt</PaddingLeft>
370          <PaddingRight>2pt</PaddingRight>
371          <PaddingTop>2pt</PaddingTop>
372          <PaddingBottom>2pt</PaddingBottom>
373        </Style>
374        <ZIndex>1</ZIndex>
375        <CanGrow>true</CanGrow>
376        <Height>0.75cm</Height>
377        <Value>ROZLICZENIE WPŁYWÓW WG DATY WPŁATY</Value>
378      </Textbox>
379      <Table Name="table1">
380        <DataSetName>ListaFaktur</DataSetName>
381        <Top>1cm</Top>
382        <Details>
383          <TableRows>
384            <TableRow>
385              <TableCells>
386                <TableCell>
387                  <ReportItems>
388                    <Textbox Name="ID_REKLAMY">
389                      <rd:DefaultName>ID_REKLAMY</rd:DefaultName>
390                      <Style>
391                        <BorderColor>
392                          <Default>LightGrey</Default>
393                        </BorderColor>
394                        <BorderStyle>
395                          <Default>Solid</Default>
396                        </BorderStyle>
397                        <BorderWidth>
398                          <Default>0.5pt</Default>
399                        </BorderWidth>
400                        <FontSize>8pt</FontSize>
401                        <TextAlign>Center</TextAlign>
402                        <VerticalAlign>Middle</VerticalAlign>
403                        <PaddingLeft>2pt</PaddingLeft>
404                        <PaddingRight>2pt</PaddingRight>
405                        <PaddingTop>2pt</PaddingTop>
406                        <PaddingBottom>2pt</PaddingBottom>
407                      </Style>
408                      <ZIndex>10</ZIndex>
409                      <CanGrow>true</CanGrow>
410                      <Value>=Fields!NR_FK.Value</Value>
411                    </Textbox>
412                  </ReportItems>
413                </TableCell>
414                <TableCell>
415                  <ReportItems>
416                    <Textbox Name="NICK_NAME">
417                      <rd:DefaultName>NICK_NAME</rd:DefaultName>
418                      <Style>
419                        <BorderColor>
420                          <Default>LightGrey</Default>
421                        </BorderColor>
422                        <BorderStyle>
423                          <Default>Solid</Default>
424                        </BorderStyle>
425                        <BorderWidth>
426                          <Default>0.5pt</Default>
427                        </BorderWidth>
428                        <FontSize>8pt</FontSize>
429                        <TextAlign>Center</TextAlign>
430                        <VerticalAlign>Middle</VerticalAlign>
431                        <PaddingLeft>2pt</PaddingLeft>
432                        <PaddingRight>2pt</PaddingRight>
433                        <PaddingTop>2pt</PaddingTop>
434                        <PaddingBottom>2pt</PaddingBottom>
435                      </Style>
436                      <ZIndex>9</ZIndex>
437                      <CanGrow>true</CanGrow>
438                      <Value>=Fields!kodKlienta.Value</Value>
439                    </Textbox>
440                  </ReportItems>
441                </TableCell>
442                <TableCell>
443                  <ReportItems>
444                    <Textbox Name="SYMBOL_AKWIZYTORA">
445                      <rd:DefaultName>SYMBOL_AKWIZYTORA</rd:DefaultName>
446                      <Style>
447                        <BorderColor>
448                          <Default>LightGrey</Default>
449                        </BorderColor>
450                        <BorderStyle>
451                          <Default>Solid</Default>
452                        </BorderStyle>
453                        <BorderWidth>
454                          <Default>0.5pt</Default>
455                        </BorderWidth>
456                        <FontSize>8pt</FontSize>
457                        <TextAlign>Center</TextAlign>
458                        <VerticalAlign>Middle</VerticalAlign>
459                        <PaddingLeft>2pt</PaddingLeft>
460                        <PaddingRight>2pt</PaddingRight>
461                        <PaddingTop>2pt</PaddingTop>
462                        <PaddingBottom>2pt</PaddingBottom>
463                      </Style>
464                      <ZIndex>8</ZIndex>
465                      <CanGrow>true</CanGrow>
466                      <Value>=Fields!Symbol.Value</Value>
467                    </Textbox>
468                  </ReportItems>
469                </TableCell>
470                <TableCell>
471                  <ReportItems>
472                    <Textbox Name="FAKTURA_DATA_WYSTAWIENIA">
473                      <rd:DefaultName>FAKTURA_DATA_WYSTAWIENIA</rd:DefaultName>
474                      <Style>
475                        <BorderColor>
476                          <Default>LightGrey</Default>
477                        </BorderColor>
478                        <BorderStyle>
479                          <Default>Solid</Default>
480                        </BorderStyle>
481                        <BorderWidth>
482                          <Default>0.5pt</Default>
483                        </BorderWidth>
484                        <FontSize>8pt</FontSize>
485                        <Format>d</Format>
486                        <TextAlign>Center</TextAlign>
487                        <VerticalAlign>Middle</VerticalAlign>
488                        <PaddingLeft>2pt</PaddingLeft>
489                        <PaddingRight>2pt</PaddingRight>
490                        <PaddingTop>2pt</PaddingTop>
491                        <PaddingBottom>2pt</PaddingBottom>
492                        <Language>pl</Language>
493                      </Style>
494                      <ZIndex>7</ZIndex>
495                      <CanGrow>true</CanGrow>
496                      <Value>=Fields!TERMIN_ZAPLATY.Value</Value>
497                    </Textbox>
498                  </ReportItems>
499                </TableCell>
500                <TableCell>
501                  <ReportItems>
502                    <Textbox Name="FAKTURA_FORMA_PŁATNOŚCI">
503                      <rd:DefaultName>FAKTURA_FORMA_PŁATNOŚCI</rd:DefaultName>
504                      <Style>
505                        <BorderColor>
506                          <Default>LightGrey</Default>
507                        </BorderColor>
508                        <BorderStyle>
509                          <Default>Solid</Default>
510                        </BorderStyle>
511                        <BorderWidth>
512                          <Default>0.5pt</Default>
513                        </BorderWidth>
514                        <FontSize>8pt</FontSize>
515                        <TextAlign>Center</TextAlign>
516                        <VerticalAlign>Middle</VerticalAlign>
517                        <PaddingLeft>2pt</PaddingLeft>
518                        <PaddingRight>2pt</PaddingRight>
519                        <PaddingTop>2pt</PaddingTop>
520                        <PaddingBottom>2pt</PaddingBottom>
521                      </Style>
522                      <ZIndex>6</ZIndex>
523                      <CanGrow>true</CanGrow>
524                      <Value>=Fields!SPOSOB_ZAPLATY.Value</Value>
525                    </Textbox>
526                  </ReportItems>
527                </TableCell>
528                <TableCell>
529                  <ReportItems>
530                    <Textbox Name="NETTO">
531                      <rd:DefaultName>NETTO</rd:DefaultName>
532                      <Style>
533                        <BorderColor>
534                          <Default>LightGrey</Default>
535                        </BorderColor>
536                        <BorderStyle>
537                          <Default>Solid</Default>
538                        </BorderStyle>
539                        <BorderWidth>
540                          <Default>0.5pt</Default>
541                        </BorderWidth>
542                        <FontSize>8pt</FontSize>
543                        <Format>C</Format>
544                        <TextAlign>Center</TextAlign>
545                        <VerticalAlign>Middle</VerticalAlign>
546                        <PaddingLeft>2pt</PaddingLeft>
547                        <PaddingRight>2pt</PaddingRight>
548                        <PaddingTop>2pt</PaddingTop>
549                        <PaddingBottom>2pt</PaddingBottom>
550                        <Language>pl</Language>
551                      </Style>
552                      <ZIndex>5</ZIndex>
553                      <CanGrow>true</CanGrow>
554                      <Value>=Fields!NETTO.Value</Value>
555                    </Textbox>
556                  </ReportItems>
557                </TableCell>
558                <TableCell>
559                  <ReportItems>
560                    <Textbox Name="VAT">
561                      <rd:DefaultName>VAT</rd:DefaultName>
562                      <Style>
563                        <BorderColor>
564                          <Default>LightGrey</Default>
565                        </BorderColor>
566                        <BorderStyle>
567                          <Default>Solid</Default>
568                        </BorderStyle>
569                        <BorderWidth>
570                          <Default>0.5pt</Default>
571                        </BorderWidth>
572                        <FontSize>8pt</FontSize>
573                        <Format>C</Format>
574                        <TextAlign>Center</TextAlign>
575                        <VerticalAlign>Middle</VerticalAlign>
576                        <PaddingLeft>2pt</PaddingLeft>
577                        <PaddingRight>2pt</PaddingRight>
578                        <PaddingTop>2pt</PaddingTop>
579                        <PaddingBottom>2pt</PaddingBottom>
580                        <Language>pl</Language>
581                      </Style>
582                      <ZIndex>4</ZIndex>
583                      <CanGrow>true</CanGrow>
584                      <Value>=Fields!VAT.Value</Value>
585                    </Textbox>
586                  </ReportItems>
587                </TableCell>
588                <TableCell>
589                  <ReportItems>
590                    <Textbox Name="BRUTTO">
591                      <rd:DefaultName>BRUTTO</rd:DefaultName>
592                      <Style>
593                        <BorderColor>
594                          <Default>LightGrey</Default>
595                        </BorderColor>
596                        <BorderStyle>
597                          <Default>Solid</Default>
598                        </BorderStyle>
599                        <BorderWidth>
600                          <Default>0.5pt</Default>
601                        </BorderWidth>
602                        <FontSize>8pt</FontSize>
603                        <Format>C</Format>
604                        <TextAlign>Center</TextAlign>
605                        <VerticalAlign>Middle</VerticalAlign>
606                        <PaddingLeft>2pt</PaddingLeft>
607                        <PaddingRight>2pt</PaddingRight>
608                        <PaddingTop>2pt</PaddingTop>
609                        <PaddingBottom>2pt</PaddingBottom>
610                        <Language>pl</Language>
611                      </Style>
612                      <ZIndex>3</ZIndex>
613                      <CanGrow>true</CanGrow>
614                      <Value>=Fields!BRUTTO.Value</Value>
615                    </Textbox>
616                  </ReportItems>
617                </TableCell>
618                <TableCell>
619                  <ReportItems>
620                    <Textbox Name="RODZAJ_POTWIERDZENIA">
621                      <rd:DefaultName>RODZAJ_POTWIERDZENIA</rd:DefaultName>
622                      <Style>
623                        <BorderColor>
624                          <Default>LightGrey</Default>
625                        </BorderColor>
626                        <BorderStyle>
627                          <Default>Solid</Default>
628                        </BorderStyle>
629                        <BorderWidth>
630                          <Default>0.5pt</Default>
631                        </BorderWidth>
632                        <FontSize>8pt</FontSize>
633                        <TextAlign>Center</TextAlign>
634                        <VerticalAlign>Middle</VerticalAlign>
635                        <PaddingLeft>2pt</PaddingLeft>
636                        <PaddingRight>2pt</PaddingRight>
637                        <PaddingTop>2pt</PaddingTop>
638                        <PaddingBottom>2pt</PaddingBottom>
639                      </Style>
640                      <ZIndex>2</ZIndex>
641                      <CanGrow>true</CanGrow>
642                      <Value>=Fields!rodzajPotwierdzenia.Value</Value>
643                    </Textbox>
644                  </ReportItems>
645                </TableCell>
646                <TableCell>
647                  <ReportItems>
648                    <Textbox Name="SYMBOL_POTWIERDZENIA">
649                      <rd:DefaultName>SYMBOL_POTWIERDZENIA</rd:DefaultName>
650                      <Style>
651                        <BorderColor>
652                          <Default>LightGrey</Default>
653                        </BorderColor>
654                        <BorderStyle>
655                          <Default>Solid</Default>
656                        </BorderStyle>
657                        <BorderWidth>
658                          <Default>0.5pt</Default>
659                        </BorderWidth>
660                        <FontSize>8pt</FontSize>
661                        <TextAlign>Center</TextAlign>
662                        <VerticalAlign>Middle</VerticalAlign>
663                        <PaddingLeft>2pt</PaddingLeft>
664                        <PaddingRight>2pt</PaddingRight>
665                        <PaddingTop>2pt</PaddingTop>
666                        <PaddingBottom>2pt</PaddingBottom>
667                      </Style>
668                      <ZIndex>1</ZIndex>
669                      <CanGrow>true</CanGrow>
670                      <Value>=Fields!symbolPotwierdzenia.Value</Value>
671                    </Textbox>
672                  </ReportItems>
673                </TableCell>
674                <TableCell>
675                  <ReportItems>
676                    <Textbox Name="DATA_ZAPŁATY">
677                      <rd:DefaultName>DATA_ZAPŁATY</rd:DefaultName>
678                      <Style>
679                        <BorderColor>
680                          <Default>LightGrey</Default>
681                        </BorderColor>
682                        <BorderStyle>
683                          <Default>Solid</Default>
684                        </BorderStyle>
685                        <BorderWidth>
686                          <Default>0.5pt</Default>
687                        </BorderWidth>
688                        <FontSize>8pt</FontSize>
689                        <Format>d</Format>
690                        <TextAlign>Center</TextAlign>
691                        <VerticalAlign>Middle</VerticalAlign>
692                        <PaddingLeft>2pt</PaddingLeft>
693                        <PaddingRight>2pt</PaddingRight>
694                        <PaddingTop>2pt</PaddingTop>
695                        <PaddingBottom>2pt</PaddingBottom>
696                        <Language>pl</Language>
697                      </Style>
698                      <CanGrow>true</CanGrow>
699                      <Value>=Fields!dataWplaty.Value</Value>
700                    </Textbox>
701                  </ReportItems>
702                </TableCell>
703              </TableCells>
704              <Height>0.63492cm</Height>
705            </TableRow>
706          </TableRows>
707          <Sorting>
708            <SortBy>
709              <SortExpression>=switch(Parameters!sortuj.Value="0",Fields!dataWplaty.Value,Parameters!sortuj.Value="1",Fields!TERMIN_ZAPLATY.Value,Parameters!sortuj.Value="3",Fields!rodzajPotwierdzenia.Value,1=1,"")</SortExpression>
710              <Direction>Ascending</Direction>
711            </SortBy>
712          </Sorting>
713        </Details>
714        <Style>
715          <FontSize>8pt</FontSize>
716          <Language>pl</Language>
717        </Style>
718        <Header>
719          <TableRows>
720            <TableRow>
721              <TableCells>
722                <TableCell>
723                  <ReportItems>
724                    <Textbox Name="textbox1">
725                      <rd:DefaultName>textbox1</rd:DefaultName>
726                      <Style>
727                        <BackgroundColor>WhiteSmoke</BackgroundColor>
728                        <BorderColor>
729                          <Default>LightGrey</Default>
730                        </BorderColor>
731                        <BorderStyle>
732                          <Default>Solid</Default>
733                        </BorderStyle>
734                        <BorderWidth>
735                          <Default>0.5pt</Default>
736                        </BorderWidth>
737                        <FontSize>8pt</FontSize>
738                        <FontWeight>700</FontWeight>
739                        <TextAlign>Center</TextAlign>
740                        <VerticalAlign>Middle</VerticalAlign>
741                        <PaddingLeft>2pt</PaddingLeft>
742                        <PaddingRight>2pt</PaddingRight>
743                        <PaddingTop>2pt</PaddingTop>
744                        <PaddingBottom>2pt</PaddingBottom>
745                      </Style>
746                      <ZIndex>22</ZIndex>
747                      <CanGrow>true</CanGrow>
748                      <Value>Numer faktury</Value>
749                    </Textbox>
750                  </ReportItems>
751                </TableCell>
752                <TableCell>
753                  <ReportItems>
754                    <Textbox Name="textbox29">
755                      <rd:DefaultName>textbox29</rd:DefaultName>
756                      <Style>
757                        <BackgroundColor>WhiteSmoke</BackgroundColor>
758                        <BorderColor>
759                          <Default>LightGrey</Default>
760                        </BorderColor>
761                        <BorderStyle>
762                          <Default>Solid</Default>
763                        </BorderStyle>
764                        <BorderWidth>
765                          <Default>0.5pt</Default>
766                        </BorderWidth>
767                        <FontSize>8pt</FontSize>
768                        <FontWeight>700</FontWeight>
769                        <TextAlign>Center</TextAlign>
770                        <VerticalAlign>Middle</VerticalAlign>
771                        <PaddingLeft>2pt</PaddingLeft>
772                        <PaddingRight>2pt</PaddingRight>
773                        <PaddingTop>2pt</PaddingTop>
774                        <PaddingBottom>2pt</PaddingBottom>
775                      </Style>
776                      <ZIndex>21</ZIndex>
777                      <CanGrow>true</CanGrow>
778                      <Value>Kod klienta</Value>
779                    </Textbox>
780                  </ReportItems>
781                </TableCell>
782                <TableCell>
783                  <ReportItems>
784                    <Textbox Name="textbox26">
785                      <rd:DefaultName>textbox26</rd:DefaultName>
786                      <Style>
787                        <BackgroundColor>WhiteSmoke</BackgroundColor>
788                        <BorderColor>
789                          <Default>LightGrey</Default>
790                        </BorderColor>
791                        <BorderStyle>
792                          <Default>Solid</Default>
793                        </BorderStyle>
794                        <BorderWidth>
795                          <Default>0.5pt</Default>
796                        </BorderWidth>
797                        <FontSize>8pt</FontSize>
798                        <FontWeight>700</FontWeight>
799                        <TextAlign>Center</TextAlign>
800                        <VerticalAlign>Middle</VerticalAlign>
801                        <PaddingLeft>2pt</PaddingLeft>
802                        <PaddingRight>2pt</PaddingRight>
803                        <PaddingTop>2pt</PaddingTop>
804                        <PaddingBottom>2pt</PaddingBottom>
805                      </Style>
806                      <ZIndex>20</ZIndex>
807                      <CanGrow>true</CanGrow>
808                      <Value>Agent</Value>
809                    </Textbox>
810                  </ReportItems>
811                </TableCell>
812                <TableCell>
813                  <ReportItems>
814                    <Textbox Name="textbox23">
815                      <rd:DefaultName>textbox23</rd:DefaultName>
816                      <Style>
817                        <BackgroundColor>WhiteSmoke</BackgroundColor>
818                        <BorderColor>
819                          <Default>LightGrey</Default>
820                        </BorderColor>
821                        <BorderStyle>
822                          <Default>Solid</Default>
823                        </BorderStyle>
824                        <BorderWidth>
825                          <Default>0.5pt</Default>
826                        </BorderWidth>
827                        <FontSize>8pt</FontSize>
828                        <FontWeight>700</FontWeight>
829                        <TextAlign>Center</TextAlign>
830                        <VerticalAlign>Middle</VerticalAlign>
831                        <PaddingLeft>2pt</PaddingLeft>
832                        <PaddingRight>2pt</PaddingRight>
833                        <PaddingTop>2pt</PaddingTop>
834                        <PaddingBottom>2pt</PaddingBottom>
835                      </Style>
836                      <ZIndex>19</ZIndex>
837                      <CanGrow>true</CanGrow>
838                      <Value>Termin zapłaty</Value>
839                    </Textbox>
840                  </ReportItems>
841                </TableCell>
842                <TableCell>
843                  <ReportItems>
844                    <Textbox Name="textbox17">
845                      <rd:DefaultName>textbox17</rd:DefaultName>
846                      <Style>
847                        <BackgroundColor>WhiteSmoke</BackgroundColor>
848                        <BorderColor>
849                          <Default>LightGrey</Default>
850                        </BorderColor>
851                        <BorderStyle>
852                          <Default>Solid</Default>
853                        </BorderStyle>
854                        <BorderWidth>
855                          <Default>0.5pt</Default>
856                        </BorderWidth>
857                        <FontSize>8pt</FontSize>
858                        <FontWeight>700</FontWeight>
859                        <TextAlign>Center</TextAlign>
860                        <VerticalAlign>Middle</VerticalAlign>
861                        <PaddingLeft>2pt</PaddingLeft>
862                        <PaddingRight>2pt</PaddingRight>
863                        <PaddingTop>2pt</PaddingTop>
864                        <PaddingBottom>2pt</PaddingBottom>
865                      </Style>
866                      <ZIndex>18</ZIndex>
867                      <CanGrow>true</CanGrow>
868                      <Value>Rodzaj płatn.</Value>
869                    </Textbox>
870                  </ReportItems>
871                </TableCell>
872                <TableCell>
873                  <ReportItems>
874                    <Textbox Name="textbox14">
875                      <rd:DefaultName>textbox14</rd:DefaultName>
876                      <Style>
877                        <BackgroundColor>WhiteSmoke</BackgroundColor>
878                        <BorderColor>
879                          <Default>LightGrey</Default>
880                        </BorderColor>
881                        <BorderStyle>
882                          <Default>Solid</Default>
883                        </BorderStyle>
884                        <BorderWidth>
885                          <Default>0.5pt</Default>
886                        </BorderWidth>
887                        <FontSize>8pt</FontSize>
888                        <FontWeight>700</FontWeight>
889                        <TextAlign>Center</TextAlign>
890                        <VerticalAlign>Middle</VerticalAlign>
891                        <PaddingLeft>2pt</PaddingLeft>
892                        <PaddingRight>2pt</PaddingRight>
893                        <PaddingTop>2pt</PaddingTop>
894                        <PaddingBottom>2pt</PaddingBottom>
895                      </Style>
896                      <ZIndex>17</ZIndex>
897                      <CanGrow>true</CanGrow>
898                      <Value>Netto</Value>
899                    </Textbox>
900                  </ReportItems>
901                </TableCell>
902                <TableCell>
903                  <ReportItems>
904                    <Textbox Name="textbox11">
905                      <rd:DefaultName>textbox11</rd:DefaultName>
906                      <Style>
907                        <BackgroundColor>WhiteSmoke</BackgroundColor>
908                        <BorderColor>
909                          <Default>LightGrey</Default>
910                        </BorderColor>
911                        <BorderStyle>
912                          <Default>Solid</Default>
913                        </BorderStyle>
914                        <BorderWidth>
915                          <Default>0.5pt</Default>
916                        </BorderWidth>
917                        <FontSize>8pt</FontSize>
918                        <FontWeight>700</FontWeight>
919                        <TextAlign>Center</TextAlign>
920                        <VerticalAlign>Middle</VerticalAlign>
921                        <PaddingLeft>2pt</PaddingLeft>
922                        <PaddingRight>2pt</PaddingRight>
923                        <PaddingTop>2pt</PaddingTop>
924                        <PaddingBottom>2pt</PaddingBottom>
925                      </Style>
926                      <ZIndex>16</ZIndex>
927                      <CanGrow>true</CanGrow>
928                      <Value>VAT</Value>
929                    </Textbox>
930                  </ReportItems>
931                </TableCell>
932                <TableCell>
933                  <ReportItems>
934                    <Textbox Name="textbox2">
935                      <rd:DefaultName>textbox2</rd:DefaultName>
936                      <Style>
937                        <BackgroundColor>WhiteSmoke</BackgroundColor>
938                        <BorderColor>
939                          <Default>LightGrey</Default>
940                        </BorderColor>
941                        <BorderStyle>
942                          <Default>Solid</Default>
943                        </BorderStyle>
944                        <BorderWidth>
945                          <Default>0.5pt</Default>
946                        </BorderWidth>
947                        <FontSize>8pt</FontSize>
948                        <FontWeight>700</FontWeight>
949                        <TextAlign>Center</TextAlign>
950                        <VerticalAlign>Middle</VerticalAlign>
951                        <PaddingLeft>2pt</PaddingLeft>
952                        <PaddingRight>2pt</PaddingRight>
953                        <PaddingTop>2pt</PaddingTop>
954                        <PaddingBottom>2pt</PaddingBottom>
955                      </Style>
956                      <ZIndex>15</ZIndex>
957                      <CanGrow>true</CanGrow>
958                      <Value>Brutto</Value>
959                    </Textbox>
960                  </ReportItems>
961                </TableCell>
962                <TableCell>
963                  <ReportItems>
964                    <Textbox Name="textbox12">
965                      <rd:DefaultName>textbox12</rd:DefaultName>
966                      <Style>
967                        <BackgroundColor>WhiteSmoke</BackgroundColor>
968                        <BorderColor>
969                          <Default>LightGrey</Default>
970                        </BorderColor>
971                        <BorderStyle>
972                          <Default>Solid</Default>
973                        </BorderStyle>
974                        <BorderWidth>
975                          <Default>0.5pt</Default>
976                        </BorderWidth>
977                        <FontSize>8pt</FontSize>
978                        <FontWeight>700</FontWeight>
979                        <TextAlign>Center</TextAlign>
980                        <VerticalAlign>Middle</VerticalAlign>
981                        <PaddingLeft>2pt</PaddingLeft>
982                        <PaddingRight>2pt</PaddingRight>
983                        <PaddingTop>2pt</PaddingTop>
984                        <PaddingBottom>2pt</PaddingBottom>
985                      </Style>
986                      <ZIndex>14</ZIndex>
987                      <CanGrow>true</CanGrow>
988                      <Value>For. potw.</Value>
989                    </Textbox>
990                  </ReportItems>
991                </TableCell>
992                <TableCell>
993                  <ReportItems>
994                    <Textbox Name="textbox5">
995                      <rd:DefaultName>textbox5</rd:DefaultName>
996                      <Style>
997                        <BackgroundColor>WhiteSmoke</BackgroundColor>
998                        <BorderColor>
999                          <Default>LightGrey</Default>
1000                        </BorderColor>
1001                        <BorderStyle>
1002                          <Default>Solid</Default>
1003                        </BorderStyle>
1004                        <BorderWidth>
1005                          <Default>0.5pt</Default>
1006                        </BorderWidth>
1007                        <FontSize>8pt</FontSize>
1008                        <FontWeight>700</FontWeight>
1009                        <TextAlign>Center</TextAlign>
1010                        <VerticalAlign>Middle</VerticalAlign>
1011                        <PaddingLeft>2pt</PaddingLeft>
1012                        <PaddingRight>2pt</PaddingRight>
1013                        <PaddingTop>2pt</PaddingTop>
1014                        <PaddingBottom>2pt</PaddingBottom>
1015                      </Style>
1016                      <ZIndex>13</ZIndex>
1017                      <CanGrow>true</CanGrow>
1018                      <Value>Sym. potw.</Value>
1019                    </Textbox>
1020                  </ReportItems>
1021                </TableCell>
1022                <TableCell>
1023                  <ReportItems>
1024                    <Textbox Name="textbox24">
1025                      <rd:DefaultName>textbox24</rd:DefaultName>
1026                      <Style>
1027                        <BackgroundColor>WhiteSmoke</BackgroundColor>
1028                        <BorderColor>
1029                          <Default>LightGrey</Default>
1030                        </BorderColor>
1031                        <BorderStyle>
1032                          <Default>Solid</Default>
1033                        </BorderStyle>
1034                        <BorderWidth>
1035                          <Default>0.5pt</Default>
1036                        </BorderWidth>
1037                        <FontSize>8pt</FontSize>
1038                        <FontWeight>700</FontWeight>
1039                        <TextAlign>Center</TextAlign>
1040                        <VerticalAlign>Middle</VerticalAlign>
1041                        <PaddingLeft>2pt</PaddingLeft>
1042                        <PaddingRight>2pt</PaddingRight>
1043                        <PaddingTop>2pt</PaddingTop>
1044                        <PaddingBottom>2pt</PaddingBottom>
1045                      </Style>
1046                      <ZIndex>12</ZIndex>
1047                      <CanGrow>true</CanGrow>
1048                      <Value>Data zapłaty </Value>
1049                    </Textbox>
1050                  </ReportItems>
1051                </TableCell>
1052              </TableCells>
1053              <Height>1.25cm</Height>
1054            </TableRow>
1055          </TableRows>
1056          <RepeatOnNewPage>true</RepeatOnNewPage>
1057        </Header>
1058        <TableColumns>
1059          <TableColumn>
1060            <Width>2.25cm</Width>
1061          </TableColumn>
1062          <TableColumn>
1063            <Width>2.75cm</Width>
1064          </TableColumn>
1065          <TableColumn>
1066            <Width>2.05291cm</Width>
1067          </TableColumn>
1068          <TableColumn>
1069            <Width>2.25cm</Width>
1070          </TableColumn>
1071          <TableColumn>
1072            <Width>1.27646cm</Width>
1073          </TableColumn>
1074          <TableColumn>
1075            <Width>2cm</Width>
1076          </TableColumn>
1077          <TableColumn>
1078            <Width>1.75cm</Width>
1079          </TableColumn>
1080          <TableColumn>
1081            <Width>2cm</Width>
1082          </TableColumn>
1083          <TableColumn>
1084            <Width>1.5cm</Width>
1085          </TableColumn>
1086          <TableColumn>
1087            <Width>2.25cm</Width>
1088          </TableColumn>
1089          <TableColumn>
1090            <Width>2cm</Width>
1091          </TableColumn>
1092        </TableColumns>
1093        <Footer>
1094          <TableRows>
1095            <TableRow>
1096              <TableCells>
1097                <TableCell>
1098                  <ColSpan>11</ColSpan>
1099                  <ReportItems>
1100                    <Textbox Name="textbox7">
1101                      <rd:DefaultName>textbox7</rd:DefaultName>
1102                      <Style>
1103                        <BackgroundColor>WhiteSmoke</BackgroundColor>
1104                        <BorderColor>
1105                          <Default>LightGrey</Default>
1106                        </BorderColor>
1107                        <BorderStyle>
1108                          <Default>Solid</Default>
1109                        </BorderStyle>
1110                        <BorderWidth>
1111                          <Default>0.5pt</Default>
1112                        </BorderWidth>
1113                        <FontSize>8pt</FontSize>
1114                        <FontWeight>700</FontWeight>
1115                        <VerticalAlign>Middle</VerticalAlign>
1116                        <PaddingLeft>2pt</PaddingLeft>
1117                        <PaddingRight>2pt</PaddingRight>
1118                        <PaddingTop>2pt</PaddingTop>
1119                        <PaddingBottom>2pt</PaddingBottom>
1120                      </Style>
1121                      <ZIndex>11</ZIndex>
1122                      <CanGrow>true</CanGrow>
1123                      <Value>="LICZBA FAKTUR: " &amp; Count(Fields!ID_FAKTURY.Value) &amp; "   RAZEM NETTO: "&amp; Code.Formatuj(Sum(Fields!NETTO.Value)) &amp; " VAT:  " &amp; Code.Formatuj(Sum(Fields!VAT.Value)) &amp; " BRUTTO:  " &amp; Code.Formatuj(Sum(Fields!BRUTTO.Value))</Value>
1124                    </Textbox>
1125                  </ReportItems>
1126                </TableCell>
1127              </TableCells>
1128              <Height>0.63492cm</Height>
1129            </TableRow>
1130          </TableRows>
1131          <RepeatOnNewPage>true</RepeatOnNewPage>
1132        </Footer>
1133      </Table>
1134    </ReportItems>
1135    <Height>3.51984cm</Height>
1136  </Body>
1137  <Language>en-US</Language>
1138  <TopMargin>1cm</TopMargin>
1139  <PageHeight>21cm</PageHeight>
1140</Report>
Notatka: Zobacz TracBrowser aby uzyskać więcej informacji.