root/trunk/RaportySQL/RozliczenieProwizjiZaReklame2009.rdl

Wersja 1000, 50.1 KB (wprowadzona przez Sylwek, 16 years temu)

Re #241

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>0d388776-a05b-43ef-93c5-227770426a94</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="rok">
18      <DataType>String</DataType>
19      <DefaultValue>
20        <Values>
21          <Value>=Year(Today)</Value>
22        </Values>
23      </DefaultValue>
24      <Prompt>rok</Prompt>
25      <ValidValues>
26        <DataSetReference>
27          <DataSetName>ListaLat</DataSetName>
28          <ValueField>rok</ValueField>
29          <LabelField>rok</LabelField>
30        </DataSetReference>
31      </ValidValues>
32    </ReportParameter>
33    <ReportParameter Name="miesiac">
34      <DataType>String</DataType>
35      <DefaultValue>
36        <Values>
37          <Value>=Month(Today)-1</Value>
38        </Values>
39      </DefaultValue>
40      <Prompt>Miesiąc:</Prompt>
41      <ValidValues>
42        <ParameterValues>
43          <ParameterValue>
44            <Value>1</Value>
45          </ParameterValue>
46          <ParameterValue>
47            <Value>2</Value>
48          </ParameterValue>
49          <ParameterValue>
50            <Value>3</Value>
51          </ParameterValue>
52          <ParameterValue>
53            <Value>4</Value>
54          </ParameterValue>
55          <ParameterValue>
56            <Value>5</Value>
57          </ParameterValue>
58          <ParameterValue>
59            <Value>6</Value>
60          </ParameterValue>
61          <ParameterValue>
62            <Value>7</Value>
63          </ParameterValue>
64          <ParameterValue>
65            <Value>8</Value>
66          </ParameterValue>
67          <ParameterValue>
68            <Value>9</Value>
69          </ParameterValue>
70          <ParameterValue>
71            <Value>10</Value>
72          </ParameterValue>
73          <ParameterValue>
74            <Value>11</Value>
75          </ParameterValue>
76          <ParameterValue>
77            <Value>12</Value>
78          </ParameterValue>
79        </ParameterValues>
80      </ValidValues>
81    </ReportParameter>
82    <ReportParameter Name="agencja">
83      <DataType>String</DataType>
84      <DefaultValue>
85        <DataSetReference>
86          <DataSetName>ListaAgencji</DataSetName>
87          <ValueField>Symbol</ValueField>
88        </DataSetReference>
89      </DefaultValue>
90      <Prompt>agencja</Prompt>
91      <ValidValues>
92        <DataSetReference>
93          <DataSetName>ListaAgencji</DataSetName>
94          <ValueField>Symbol</ValueField>
95          <LabelField>Symbol</LabelField>
96        </DataSetReference>
97      </ValidValues>
98      <MultiValue>true</MultiValue>
99    </ReportParameter>
100    <ReportParameter Name="prawa_agent">
101      <DataType>String</DataType>
102      <Nullable>true</Nullable>
103      <Prompt>prawa_agent</Prompt>
104      <Hidden>true</Hidden>
105    </ReportParameter>
106    <ReportParameter Name="pracownik">
107      <DataType>String</DataType>
108      <Nullable>true</Nullable>
109      <AllowBlank>true</AllowBlank>
110      <Prompt>Pracownicy:</Prompt>
111      <ValidValues>
112        <ParameterValues>
113          <ParameterValue>
114            <Value>1</Value>
115            <Label>Pracownicy AACT</Label>
116          </ParameterValue>
117          <ParameterValue>
118            <Value>0</Value>
119            <Label>Pracownicy Sam Press</Label>
120          </ParameterValue>
121          <ParameterValue>
122            <Label>Wszyscy</Label>
123          </ParameterValue>
124        </ParameterValues>
125      </ValidValues>
126    </ReportParameter>
127  </ReportParameters>
128  <rd:DrawGrid>true</rd:DrawGrid>
129  <InteractiveWidth>21cm</InteractiveWidth>
130  <rd:GridSpacing>0.25cm</rd:GridSpacing>
131  <rd:SnapToGrid>true</rd:SnapToGrid>
132  <RightMargin>1cm</RightMargin>
133  <LeftMargin>1cm</LeftMargin>
134  <PageHeader>
135    <PrintOnFirstPage>true</PrintOnFirstPage>
136    <ReportItems>
137      <Textbox Name="textbox5">
138        <Width>10.75cm</Width>
139        <Style>
140          <TextAlign>Left</TextAlign>
141          <PaddingLeft>2pt</PaddingLeft>
142          <PaddingRight>2pt</PaddingRight>
143          <PaddingTop>2pt</PaddingTop>
144          <PaddingBottom>2pt</PaddingBottom>
145        </Style>
146        <CanGrow>true</CanGrow>
147        <Value>="Data wydruku: " + Now</Value>
148      </Textbox>
149    </ReportItems>
150    <Height>0.63492cm</Height>
151    <PrintOnLastPage>true</PrintOnLastPage>
152  </PageHeader>
153  <BottomMargin>1cm</BottomMargin>
154  <rd:ReportID>1a908918-1fb3-45fd-8bdd-e3ccd2cf8500</rd:ReportID>
155  <PageWidth>21cm</PageWidth>
156  <DataSets>
157    <DataSet Name="Prowizje">
158      <Fields>
159        <Field Name="idFaktury">
160          <DataField>idFaktury</DataField>
161          <rd:TypeName>System.Int32</rd:TypeName>
162        </Field>
163        <Field Name="NrFaktury">
164          <DataField>NrFaktury</DataField>
165          <rd:TypeName>System.String</rd:TypeName>
166        </Field>
167        <Field Name="agencja">
168          <DataField>Agencja</DataField>
169          <rd:TypeName>System.String</rd:TypeName>
170        </Field>
171        <Field Name="Agent">
172          <DataField>Agent</DataField>
173          <rd:TypeName>System.String</rd:TypeName>
174        </Field>
175        <Field Name="Imie">
176          <DataField>Imie</DataField>
177          <rd:TypeName>System.String</rd:TypeName>
178        </Field>
179        <Field Name="Nazwisko">
180          <DataField>Nazwisko</DataField>
181          <rd:TypeName>System.String</rd:TypeName>
182        </Field>
183        <Field Name="Netto">
184          <DataField>Netto</DataField>
185          <rd:TypeName>System.Decimal</rd:TypeName>
186        </Field>
187        <Field Name="procentProwizji">
188          <DataField>procentProwizji</DataField>
189          <rd:TypeName>System.Double</rd:TypeName>
190        </Field>
191        <Field Name="Prowizja">
192          <DataField>Prowizja</DataField>
193          <rd:TypeName>System.Double</rd:TypeName>
194        </Field>
195        <Field Name="Pracownicy">
196          <DataField>Pracownicy</DataField>
197          <rd:TypeName>System.Boolean</rd:TypeName>
198        </Field>
199      </Fields>
200      <Filters>
201        <Filter>
202          <FilterExpression>=Fields!agencja.Value</FilterExpression>
203          <Operator>In</Operator>
204          <FilterValues>
205            <FilterValue>=Parameters!agencja.Value</FilterValue>
206          </FilterValues>
207        </Filter>
208      </Filters>
209      <Query>
210        <DataSourceName>BAZA_REKLAM</DataSourceName>
211        <CommandText>SELECT P.idFaktury, P.NrFaktury, P.Agencja, P.Agent, A.[Imię] As Imie, A.Nazwisko, Netto, procentProwizji, Netto*procentProwizji AS Prowizja, A.Pracownicy 
212FROM Prowizje P
213INNER JOIN Agenci A ON A.Symbol=P.Agent
214INNER JOIN FAKTURY F ON P.idFaktury=F.ID_FAKTURY
215WHERE Rok=@rok AND Ms=@miesiac
216AND (@prawa_agent IS NULL OR P.Agent=@prawa_agent)
217AND (@pracownik IS NULL OR A.Pracownicy=@pracownik)
218-- ORDER BY P.Agencja, A.[Imię], A.Nazwisko, P.idFaktury
219ORDER BY P.Agencja, A.[Imię], A.Nazwisko, F.NUMER_ROZ, F.NUMER, P.idFaktury</CommandText>
220        <QueryParameters>
221          <QueryParameter Name="@rok">
222            <Value>=Parameters!rok.Value</Value>
223          </QueryParameter>
224          <QueryParameter Name="@miesiac">
225            <Value>=Parameters!miesiac.Value</Value>
226          </QueryParameter>
227          <QueryParameter Name="@prawa_agent">
228            <Value>=Parameters!prawa_agent.Value</Value>
229          </QueryParameter>
230          <QueryParameter Name="@pracownik">
231            <Value>=Parameters!pracownik.Value</Value>
232          </QueryParameter>
233        </QueryParameters>
234        <rd:UseGenericDesigner>true</rd:UseGenericDesigner>
235      </Query>
236    </DataSet>
237    <DataSet Name="ListaAgentow">
238      <Fields>
239        <Field Name="ID_AGENTA">
240          <DataField>ID_AGENTA</DataField>
241          <rd:TypeName>System.Int32</rd:TypeName>
242        </Field>
243        <Field Name="Symbol">
244          <DataField>Symbol</DataField>
245          <rd:TypeName>System.String</rd:TypeName>
246        </Field>
247        <Field Name="agencja">
248          <DataField>agencja</DataField>
249          <rd:TypeName>System.String</rd:TypeName>
250        </Field>
251      </Fields>
252      <Query>
253        <DataSourceName>BAZA_REKLAM</DataSourceName>
254        <CommandText>SELECT        A.ID_AGENTA, A.Symbol, A2.Symbol agencja
255FROM            AGENCI A left join Agencje A2
256on A.ID_AGENCJI = A2.ID_Agencji
257 where aktywny=1 AND  (A2.Symbol in (@agencja) OR A2.Symbol is null) AND (@prawa_agent is null OR A.Symbol=@prawa_agent)
258order by A.Symbol</CommandText>
259        <QueryParameters>
260          <QueryParameter Name="@agencja">
261            <Value>=Parameters!agencja.Value</Value>
262          </QueryParameter>
263          <QueryParameter Name="@prawa_agent">
264            <Value>=Parameters!prawa_agent.Value</Value>
265          </QueryParameter>
266        </QueryParameters>
267        <rd:UseGenericDesigner>true</rd:UseGenericDesigner>
268      </Query>
269    </DataSet>
270    <DataSet Name="ListaAgencji">
271      <Fields>
272        <Field Name="Id_agencji">
273          <DataField>Id_agencji</DataField>
274          <rd:TypeName>System.Int32</rd:TypeName>
275        </Field>
276        <Field Name="Symbol">
277          <DataField>Symbol</DataField>
278          <rd:TypeName>System.String</rd:TypeName>
279        </Field>
280      </Fields>
281      <Query>
282        <DataSourceName>BAZA_REKLAM</DataSourceName>
283        <CommandText>SELECT        Id_agencji, Symbol
284FROM            AGENCJE where aktywna=1 and (@prawa_agencje is null or @prawa_agencje= Id_agencji)</CommandText>
285        <QueryParameters>
286          <QueryParameter Name="@prawa_agencje">
287            <Value>=Parameters!prawa_agencje.Value</Value>
288          </QueryParameter>
289        </QueryParameters>
290        <rd:UseGenericDesigner>true</rd:UseGenericDesigner>
291      </Query>
292    </DataSet>
293    <DataSet Name="ListaLat">
294      <Fields>
295        <Field Name="rok">
296          <DataField>rok</DataField>
297          <rd:TypeName>System.Int32</rd:TypeName>
298        </Field>
299      </Fields>
300      <Query>
301        <DataSourceName>BAZA_REKLAM</DataSourceName>
302        <CommandText>select distinct year(DATA_W) as rok from dbo.NR where DATA_W is not null and year( DATA_W) &gt;2008 order by year(DATA_W)desc</CommandText>
303        <rd:UseGenericDesigner>true</rd:UseGenericDesigner>
304      </Query>
305    </DataSet>
306  </DataSets>
307  <Code>Public Function GetMonths(P as Parameter) as String
308  Dim i As Integer
309  Dim s As String
310  s = p.value(0)               
311  For i = 1 to Ubound(P.Value)
312    s = s &amp; "," &amp; p.Value(i) 
313  Next i
314  Return s
315End Function</Code>
316  <Width>18.75cm</Width>
317  <Body>
318    <ColumnSpacing>1cm</ColumnSpacing>
319    <ReportItems>
320      <Textbox Name="textbox6">
321        <rd:DefaultName>textbox6</rd:DefaultName>
322        <Top>0.25cm</Top>
323        <Width>17cm</Width>
324        <Style>
325          <FontSize>14pt</FontSize>
326          <FontWeight>700</FontWeight>
327          <TextAlign>Center</TextAlign>
328          <PaddingLeft>2pt</PaddingLeft>
329          <PaddingRight>2pt</PaddingRight>
330          <PaddingTop>2pt</PaddingTop>
331          <PaddingBottom>2pt</PaddingBottom>
332        </Style>
333        <ZIndex>1</ZIndex>
334        <CanGrow>true</CanGrow>
335        <Left>1cm</Left>
336        <Height>0.75cm</Height>
337        <Value>="Rozliczenie prowizji za reklamę za rok: " &amp; Parameters!rok.Value &amp; "  miesiąc: " &amp; CStr(Parameters!miesiac.Value)</Value>
338      </Textbox>
339      <Table Name="table1">
340        <DataSetName>Prowizje</DataSetName>
341        <Top>1.75cm</Top>
342        <TableGroups>
343          <TableGroup>
344            <Grouping Name="table1_Group1">
345              <GroupExpressions>
346                <GroupExpression>=Fields!Agent.Value</GroupExpression>
347              </GroupExpressions>
348            </Grouping>
349            <Header>
350              <TableRows>
351                <TableRow>
352                  <TableCells>
353                    <TableCell>
354                      <ReportItems>
355                        <Textbox Name="textbox30">
356                          <Style>
357                            <BorderColor>
358                              <Default>LightGrey</Default>
359                            </BorderColor>
360                            <BorderStyle>
361                              <Default>Solid</Default>
362                            </BorderStyle>
363                            <BorderWidth>
364                              <Default>0.5pt</Default>
365                            </BorderWidth>
366                            <FontSize>9pt</FontSize>
367                            <TextAlign>Center</TextAlign>
368                            <VerticalAlign>Middle</VerticalAlign>
369                            <PaddingLeft>2pt</PaddingLeft>
370                            <PaddingRight>2pt</PaddingRight>
371                            <PaddingTop>2pt</PaddingTop>
372                            <PaddingBottom>2pt</PaddingBottom>
373                          </Style>
374                          <ZIndex>20</ZIndex>
375                          <CanGrow>true</CanGrow>
376                          <Value>=Fields!agencja.Value</Value>
377                        </Textbox>
378                      </ReportItems>
379                    </TableCell>
380                    <TableCell>
381                      <ReportItems>
382                        <Textbox Name="Imię">
383                          <rd:DefaultName>Imię</rd:DefaultName>
384                          <Style>
385                            <BorderColor>
386                              <Default>LightGrey</Default>
387                            </BorderColor>
388                            <BorderStyle>
389                              <Default>Solid</Default>
390                            </BorderStyle>
391                            <BorderWidth>
392                              <Default>0.5pt</Default>
393                            </BorderWidth>
394                            <FontSize>9pt</FontSize>
395                            <TextAlign>Center</TextAlign>
396                            <VerticalAlign>Middle</VerticalAlign>
397                            <PaddingLeft>2pt</PaddingLeft>
398                            <PaddingRight>2pt</PaddingRight>
399                            <PaddingTop>2pt</PaddingTop>
400                            <PaddingBottom>2pt</PaddingBottom>
401                          </Style>
402                          <ZIndex>19</ZIndex>
403                          <CanGrow>true</CanGrow>
404                          <Value>=Fields!Imie.Value</Value>
405                        </Textbox>
406                      </ReportItems>
407                    </TableCell>
408                    <TableCell>
409                      <ReportItems>
410                        <Textbox Name="textbox16">
411                          <Style>
412                            <BorderColor>
413                              <Default>LightGrey</Default>
414                            </BorderColor>
415                            <BorderStyle>
416                              <Default>Solid</Default>
417                            </BorderStyle>
418                            <BorderWidth>
419                              <Default>0.5pt</Default>
420                            </BorderWidth>
421                            <FontSize>9pt</FontSize>
422                            <TextAlign>Center</TextAlign>
423                            <VerticalAlign>Middle</VerticalAlign>
424                            <PaddingLeft>2pt</PaddingLeft>
425                            <PaddingRight>2pt</PaddingRight>
426                            <PaddingTop>2pt</PaddingTop>
427                            <PaddingBottom>2pt</PaddingBottom>
428                          </Style>
429                          <ZIndex>18</ZIndex>
430                          <CanGrow>true</CanGrow>
431                          <Value>=Fields!Nazwisko.Value</Value>
432                        </Textbox>
433                      </ReportItems>
434                    </TableCell>
435                    <TableCell>
436                      <ReportItems>
437                        <Textbox Name="textbox2">
438                          <Style>
439                            <BorderColor>
440                              <Default>LightGrey</Default>
441                            </BorderColor>
442                            <BorderStyle>
443                              <Default>Solid</Default>
444                            </BorderStyle>
445                            <BorderWidth>
446                              <Default>0.5pt</Default>
447                            </BorderWidth>
448                            <FontSize>9pt</FontSize>
449                            <Format>g</Format>
450                            <TextAlign>Center</TextAlign>
451                            <VerticalAlign>Middle</VerticalAlign>
452                            <PaddingLeft>2pt</PaddingLeft>
453                            <PaddingRight>2pt</PaddingRight>
454                            <PaddingTop>2pt</PaddingTop>
455                            <PaddingBottom>2pt</PaddingBottom>
456                            <Language>pl</Language>
457                          </Style>
458                          <ZIndex>17</ZIndex>
459                          <CanGrow>true</CanGrow>
460                          <Value>=CountDistinct(Fields!idFaktury.Value, "table1_Group1")</Value>
461                        </Textbox>
462                      </ReportItems>
463                    </TableCell>
464                    <TableCell>
465                      <ReportItems>
466                        <Textbox Name="textbox10">
467                          <Style>
468                            <BorderColor>
469                              <Default>LightGrey</Default>
470                            </BorderColor>
471                            <BorderStyle>
472                              <Default>Solid</Default>
473                            </BorderStyle>
474                            <BorderWidth>
475                              <Default>0.5pt</Default>
476                            </BorderWidth>
477                            <FontSize>9pt</FontSize>
478                            <Format>C</Format>
479                            <TextAlign>Center</TextAlign>
480                            <VerticalAlign>Middle</VerticalAlign>
481                            <PaddingLeft>2pt</PaddingLeft>
482                            <PaddingRight>2pt</PaddingRight>
483                            <PaddingTop>2pt</PaddingTop>
484                            <PaddingBottom>2pt</PaddingBottom>
485                            <Language>pl</Language>
486                          </Style>
487                          <ZIndex>16</ZIndex>
488                          <CanGrow>true</CanGrow>
489                          <Value>=Sum(Fields!Netto.Value)</Value>
490                        </Textbox>
491                      </ReportItems>
492                    </TableCell>
493                    <TableCell>
494                      <ReportItems>
495                        <Textbox Name="textbox8">
496                          <Style>
497                            <BorderColor>
498                              <Default>LightGrey</Default>
499                            </BorderColor>
500                            <BorderStyle>
501                              <Default>Solid</Default>
502                            </BorderStyle>
503                            <BorderWidth>
504                              <Default>0.5pt</Default>
505                            </BorderWidth>
506                            <FontSize>9pt</FontSize>
507                            <Format>C</Format>
508                            <TextAlign>Center</TextAlign>
509                            <VerticalAlign>Middle</VerticalAlign>
510                            <PaddingLeft>2pt</PaddingLeft>
511                            <PaddingRight>2pt</PaddingRight>
512                            <PaddingTop>2pt</PaddingTop>
513                            <PaddingBottom>2pt</PaddingBottom>
514                            <Language>pl</Language>
515                          </Style>
516                          <ZIndex>15</ZIndex>
517                          <CanGrow>true</CanGrow>
518                          <Value>=Sum(Fields!Prowizja.Value)</Value>
519                        </Textbox>
520                      </ReportItems>
521                    </TableCell>
522                    <TableCell>
523                      <ReportItems>
524                        <Textbox Name="textbox33">
525                          <Style>
526                            <BorderColor>
527                              <Default>LightGrey</Default>
528                            </BorderColor>
529                            <BorderWidth>
530                              <Default>0.5pt</Default>
531                            </BorderWidth>
532                            <FontSize>9pt</FontSize>
533                            <Format>C</Format>
534                            <TextAlign>Center</TextAlign>
535                            <VerticalAlign>Middle</VerticalAlign>
536                            <PaddingLeft>2pt</PaddingLeft>
537                            <PaddingRight>2pt</PaddingRight>
538                            <PaddingTop>2pt</PaddingTop>
539                            <PaddingBottom>2pt</PaddingBottom>
540                          </Style>
541                          <ZIndex>14</ZIndex>
542                          <CanGrow>true</CanGrow>
543                          <Value />
544                        </Textbox>
545                      </ReportItems>
546                    </TableCell>
547                    <TableCell>
548                      <ReportItems>
549                        <Textbox Name="textbox28">
550                          <Style>
551                            <PaddingLeft>2pt</PaddingLeft>
552                            <PaddingRight>2pt</PaddingRight>
553                            <PaddingTop>2pt</PaddingTop>
554                            <PaddingBottom>2pt</PaddingBottom>
555                          </Style>
556                          <ZIndex>13</ZIndex>
557                          <CanGrow>true</CanGrow>
558                          <Value />
559                        </Textbox>
560                      </ReportItems>
561                    </TableCell>
562                  </TableCells>
563                  <Height>0.63492cm</Height>
564                </TableRow>
565              </TableRows>
566            </Header>
567          </TableGroup>
568        </TableGroups>
569        <Details>
570          <TableRows>
571            <TableRow>
572              <TableCells>
573                <TableCell>
574                  <ColSpan>4</ColSpan>
575                  <ReportItems>
576                    <Textbox Name="textbox11">
577                      <rd:DefaultName>textbox11</rd:DefaultName>
578                      <Style>
579                        <BorderColor>
580                          <Default>LightGrey</Default>
581                        </BorderColor>
582                        <BorderWidth>
583                          <Default>0.5pt</Default>
584                        </BorderWidth>
585                        <PaddingLeft>2pt</PaddingLeft>
586                        <PaddingRight>2pt</PaddingRight>
587                        <PaddingTop>2pt</PaddingTop>
588                        <PaddingBottom>2pt</PaddingBottom>
589                      </Style>
590                      <ZIndex>4</ZIndex>
591                      <CanGrow>true</CanGrow>
592                      <Value />
593                    </Textbox>
594                  </ReportItems>
595                </TableCell>
596                <TableCell>
597                  <ReportItems>
598                    <Textbox Name="nn">
599                      <rd:DefaultName>nn</rd:DefaultName>
600                      <Style>
601                        <BorderColor>
602                          <Default>LightGrey</Default>
603                        </BorderColor>
604                        <BorderStyle>
605                          <Default>Solid</Default>
606                        </BorderStyle>
607                        <BorderWidth>
608                          <Default>0.5pt</Default>
609                        </BorderWidth>
610                        <FontSize>9pt</FontSize>
611                        <Format>C</Format>
612                        <TextAlign>Center</TextAlign>
613                        <VerticalAlign>Middle</VerticalAlign>
614                        <PaddingLeft>2pt</PaddingLeft>
615                        <PaddingRight>2pt</PaddingRight>
616                        <PaddingTop>2pt</PaddingTop>
617                        <PaddingBottom>2pt</PaddingBottom>
618                        <Language>pl</Language>
619                      </Style>
620                      <ZIndex>3</ZIndex>
621                      <CanGrow>true</CanGrow>
622                      <Value>=Fields!Netto.Value</Value>
623                    </Textbox>
624                  </ReportItems>
625                </TableCell>
626                <TableCell>
627                  <ReportItems>
628                    <Textbox Name="pp">
629                      <rd:DefaultName>pp</rd:DefaultName>
630                      <Style>
631                        <BorderColor>
632                          <Default>LightGrey</Default>
633                        </BorderColor>
634                        <BorderStyle>
635                          <Default>Solid</Default>
636                        </BorderStyle>
637                        <BorderWidth>
638                          <Default>0.5pt</Default>
639                        </BorderWidth>
640                        <FontSize>9pt</FontSize>
641                        <Format>C</Format>
642                        <TextAlign>Center</TextAlign>
643                        <VerticalAlign>Middle</VerticalAlign>
644                        <PaddingLeft>2pt</PaddingLeft>
645                        <PaddingRight>2pt</PaddingRight>
646                        <PaddingTop>2pt</PaddingTop>
647                        <PaddingBottom>2pt</PaddingBottom>
648                        <Language>pl</Language>
649                      </Style>
650                      <ZIndex>2</ZIndex>
651                      <CanGrow>true</CanGrow>
652                      <Value>=Fields!Prowizja.Value</Value>
653                    </Textbox>
654                  </ReportItems>
655                </TableCell>
656                <TableCell>
657                  <ReportItems>
658                    <Textbox Name="textbox34">
659                      <Style>
660                        <BorderColor>
661                          <Default>LightGrey</Default>
662                        </BorderColor>
663                        <BorderStyle>
664                          <Default>Solid</Default>
665                        </BorderStyle>
666                        <BorderWidth>
667                          <Default>0.5pt</Default>
668                        </BorderWidth>
669                        <FontSize>9pt</FontSize>
670                        <Format>P</Format>
671                        <TextAlign>Center</TextAlign>
672                        <VerticalAlign>Middle</VerticalAlign>
673                        <PaddingLeft>2pt</PaddingLeft>
674                        <PaddingRight>2pt</PaddingRight>
675                        <PaddingTop>2pt</PaddingTop>
676                        <PaddingBottom>2pt</PaddingBottom>
677                        <Language>pl</Language>
678                      </Style>
679                      <ZIndex>1</ZIndex>
680                      <CanGrow>true</CanGrow>
681                      <Value>=Fields!procentProwizji.Value</Value>
682                    </Textbox>
683                  </ReportItems>
684                </TableCell>
685                <TableCell>
686                  <ReportItems>
687                    <Textbox Name="textbox29">
688                      <Style>
689                        <BorderColor>
690                          <Default>LightGrey</Default>
691                        </BorderColor>
692                        <BorderStyle>
693                          <Default>Solid</Default>
694                        </BorderStyle>
695                        <BorderWidth>
696                          <Default>0.5pt</Default>
697                        </BorderWidth>
698                        <FontSize>9pt</FontSize>
699                        <TextAlign>Center</TextAlign>
700                        <VerticalAlign>Middle</VerticalAlign>
701                        <PaddingLeft>2pt</PaddingLeft>
702                        <PaddingRight>2pt</PaddingRight>
703                        <PaddingTop>2pt</PaddingTop>
704                        <PaddingBottom>2pt</PaddingBottom>
705                      </Style>
706                      <CanGrow>true</CanGrow>
707                      <Value>=Fields!NrFaktury.Value</Value>
708                    </Textbox>
709                  </ReportItems>
710                </TableCell>
711              </TableCells>
712              <Height>0.63492cm</Height>
713            </TableRow>
714          </TableRows>
715          <Visibility>
716            <Hidden>true</Hidden>
717            <ToggleItem>textbox30</ToggleItem>
718          </Visibility>
719        </Details>
720        <Header>
721          <TableRows>
722            <TableRow>
723              <TableCells>
724                <TableCell>
725                  <ReportItems>
726                    <Textbox Name="textbox1">
727                      <rd:DefaultName>textbox1</rd:DefaultName>
728                      <Style>
729                        <BackgroundColor>WhiteSmoke</BackgroundColor>
730                        <BorderColor>
731                          <Default>LightGrey</Default>
732                        </BorderColor>
733                        <BorderStyle>
734                          <Default>Solid</Default>
735                        </BorderStyle>
736                        <BorderWidth>
737                          <Default>0.5pt</Default>
738                        </BorderWidth>
739                        <FontSize>9pt</FontSize>
740                        <FontWeight>700</FontWeight>
741                        <TextAlign>Center</TextAlign>
742                        <VerticalAlign>Middle</VerticalAlign>
743                        <PaddingLeft>2pt</PaddingLeft>
744                        <PaddingRight>2pt</PaddingRight>
745                        <PaddingTop>2pt</PaddingTop>
746                        <PaddingBottom>2pt</PaddingBottom>
747                      </Style>
748                      <ZIndex>28</ZIndex>
749                      <CanGrow>true</CanGrow>
750                      <Value>Agencja</Value>
751                    </Textbox>
752                  </ReportItems>
753                </TableCell>
754                <TableCell>
755                  <ReportItems>
756                    <Textbox Name="textbox18">
757                      <rd:DefaultName>textbox18</rd:DefaultName>
758                      <Style>
759                        <BackgroundColor>WhiteSmoke</BackgroundColor>
760                        <BorderColor>
761                          <Default>LightGrey</Default>
762                        </BorderColor>
763                        <BorderStyle>
764                          <Default>Solid</Default>
765                        </BorderStyle>
766                        <BorderWidth>
767                          <Default>0.5pt</Default>
768                        </BorderWidth>
769                        <FontSize>9pt</FontSize>
770                        <FontWeight>700</FontWeight>
771                        <TextAlign>Center</TextAlign>
772                        <VerticalAlign>Middle</VerticalAlign>
773                        <PaddingLeft>2pt</PaddingLeft>
774                        <PaddingRight>2pt</PaddingRight>
775                        <PaddingTop>2pt</PaddingTop>
776                        <PaddingBottom>2pt</PaddingBottom>
777                      </Style>
778                      <ZIndex>27</ZIndex>
779                      <CanGrow>true</CanGrow>
780                      <Value>Imię</Value>
781                    </Textbox>
782                  </ReportItems>
783                </TableCell>
784                <TableCell>
785                  <ReportItems>
786                    <Textbox Name="textbox37">
787                      <Style>
788                        <BackgroundColor>WhiteSmoke</BackgroundColor>
789                        <BorderColor>
790                          <Default>LightGrey</Default>
791                        </BorderColor>
792                        <BorderStyle>
793                          <Default>Solid</Default>
794                        </BorderStyle>
795                        <BorderWidth>
796                          <Default>0.5pt</Default>
797                        </BorderWidth>
798                        <FontSize>9pt</FontSize>
799                        <FontWeight>700</FontWeight>
800                        <TextAlign>Center</TextAlign>
801                        <VerticalAlign>Middle</VerticalAlign>
802                        <PaddingLeft>2pt</PaddingLeft>
803                        <PaddingRight>2pt</PaddingRight>
804                        <PaddingTop>2pt</PaddingTop>
805                        <PaddingBottom>2pt</PaddingBottom>
806                      </Style>
807                      <ZIndex>26</ZIndex>
808                      <CanGrow>true</CanGrow>
809                      <Value>Nazwisko</Value>
810                    </Textbox>
811                  </ReportItems>
812                </TableCell>
813                <TableCell>
814                  <ReportItems>
815                    <Textbox Name="textbox3">
816                      <rd:DefaultName>textbox3</rd:DefaultName>
817                      <Style>
818                        <BackgroundColor>WhiteSmoke</BackgroundColor>
819                        <BorderColor>
820                          <Default>LightGrey</Default>
821                        </BorderColor>
822                        <BorderStyle>
823                          <Default>Solid</Default>
824                        </BorderStyle>
825                        <BorderWidth>
826                          <Default>0.5pt</Default>
827                        </BorderWidth>
828                        <FontSize>9pt</FontSize>
829                        <FontWeight>700</FontWeight>
830                        <TextAlign>Center</TextAlign>
831                        <VerticalAlign>Middle</VerticalAlign>
832                        <PaddingLeft>2pt</PaddingLeft>
833                        <PaddingRight>2pt</PaddingRight>
834                        <PaddingTop>2pt</PaddingTop>
835                        <PaddingBottom>2pt</PaddingBottom>
836                      </Style>
837                      <ZIndex>25</ZIndex>
838                      <CanGrow>true</CanGrow>
839                      <Value>Ilość faktur</Value>
840                    </Textbox>
841                  </ReportItems>
842                </TableCell>
843                <TableCell>
844                  <ReportItems>
845                    <Textbox Name="textbox12">
846                      <rd:DefaultName>textbox12</rd:DefaultName>
847                      <Style>
848                        <BackgroundColor>WhiteSmoke</BackgroundColor>
849                        <BorderColor>
850                          <Default>LightGrey</Default>
851                        </BorderColor>
852                        <BorderStyle>
853                          <Default>Solid</Default>
854                        </BorderStyle>
855                        <BorderWidth>
856                          <Default>0.5pt</Default>
857                        </BorderWidth>
858                        <FontSize>9pt</FontSize>
859                        <FontWeight>700</FontWeight>
860                        <TextAlign>Center</TextAlign>
861                        <VerticalAlign>Middle</VerticalAlign>
862                        <PaddingLeft>2pt</PaddingLeft>
863                        <PaddingRight>2pt</PaddingRight>
864                        <PaddingTop>2pt</PaddingTop>
865                        <PaddingBottom>2pt</PaddingBottom>
866                      </Style>
867                      <ZIndex>24</ZIndex>
868                      <CanGrow>true</CanGrow>
869                      <Value>Wpływy netto</Value>
870                    </Textbox>
871                  </ReportItems>
872                </TableCell>
873                <TableCell>
874                  <ReportItems>
875                    <Textbox Name="textbox19">
876                      <rd:DefaultName>textbox19</rd:DefaultName>
877                      <Style>
878                        <BackgroundColor>WhiteSmoke</BackgroundColor>
879                        <BorderColor>
880                          <Default>LightGrey</Default>
881                        </BorderColor>
882                        <BorderStyle>
883                          <Default>Solid</Default>
884                        </BorderStyle>
885                        <BorderWidth>
886                          <Default>0.5pt</Default>
887                        </BorderWidth>
888                        <FontSize>9pt</FontSize>
889                        <FontWeight>700</FontWeight>
890                        <TextAlign>Center</TextAlign>
891                        <VerticalAlign>Middle</VerticalAlign>
892                        <PaddingLeft>2pt</PaddingLeft>
893                        <PaddingRight>2pt</PaddingRight>
894                        <PaddingTop>2pt</PaddingTop>
895                        <PaddingBottom>2pt</PaddingBottom>
896                      </Style>
897                      <ZIndex>23</ZIndex>
898                      <CanGrow>true</CanGrow>
899                      <Value>Prowizja od wpływów</Value>
900                    </Textbox>
901                  </ReportItems>
902                </TableCell>
903                <TableCell>
904                  <ReportItems>
905                    <Textbox Name="textbox32">
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>9pt</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>22</ZIndex>
927                      <CanGrow>true</CanGrow>
928                      <Value>Procent prowizji</Value>
929                    </Textbox>
930                  </ReportItems>
931                </TableCell>
932                <TableCell>
933                  <ReportItems>
934                    <Textbox Name="textbox27">
935                      <Style>
936                        <BackgroundColor>WhiteSmoke</BackgroundColor>
937                        <BorderColor>
938                          <Default>LightGrey</Default>
939                        </BorderColor>
940                        <BorderStyle>
941                          <Default>Solid</Default>
942                        </BorderStyle>
943                        <BorderWidth>
944                          <Default>0.5pt</Default>
945                        </BorderWidth>
946                        <FontSize>9pt</FontSize>
947                        <FontWeight>700</FontWeight>
948                        <TextAlign>Center</TextAlign>
949                        <VerticalAlign>Middle</VerticalAlign>
950                        <PaddingLeft>2pt</PaddingLeft>
951                        <PaddingRight>2pt</PaddingRight>
952                        <PaddingTop>2pt</PaddingTop>
953                        <PaddingBottom>2pt</PaddingBottom>
954                      </Style>
955                      <ZIndex>21</ZIndex>
956                      <CanGrow>true</CanGrow>
957                      <Value>Faktura</Value>
958                    </Textbox>
959                  </ReportItems>
960                </TableCell>
961              </TableCells>
962              <Height>1cm</Height>
963            </TableRow>
964          </TableRows>
965        </Header>
966        <TableColumns>
967          <TableColumn>
968            <Width>3.5cm</Width>
969          </TableColumn>
970          <TableColumn>
971            <Width>2.5cm</Width>
972          </TableColumn>
973          <TableColumn>
974            <Width>2.5cm</Width>
975          </TableColumn>
976          <TableColumn>
977            <Width>1.25cm</Width>
978          </TableColumn>
979          <TableColumn>
980            <Width>2.25cm</Width>
981          </TableColumn>
982          <TableColumn>
983            <Width>2.5cm</Width>
984          </TableColumn>
985          <TableColumn>
986            <Width>1.75cm</Width>
987          </TableColumn>
988          <TableColumn>
989            <Width>2.5cm</Width>
990          </TableColumn>
991        </TableColumns>
992        <Footer>
993          <TableRows>
994            <TableRow>
995              <TableCells>
996                <TableCell>
997                  <ReportItems>
998                    <Textbox Name="textbox7">
999                      <rd:DefaultName>textbox7</rd:DefaultName>
1000                      <Style>
1001                        <BorderColor>
1002                          <Default>LightGrey</Default>
1003                        </BorderColor>
1004                        <BorderWidth>
1005                          <Default>0.5pt</Default>
1006                        </BorderWidth>
1007                        <FontSize>9pt</FontSize>
1008                        <TextAlign>Center</TextAlign>
1009                        <VerticalAlign>Middle</VerticalAlign>
1010                        <PaddingLeft>2pt</PaddingLeft>
1011                        <PaddingRight>2pt</PaddingRight>
1012                        <PaddingTop>2pt</PaddingTop>
1013                        <PaddingBottom>2pt</PaddingBottom>
1014                      </Style>
1015                      <ZIndex>12</ZIndex>
1016                      <CanGrow>true</CanGrow>
1017                      <Value />
1018                    </Textbox>
1019                  </ReportItems>
1020                </TableCell>
1021                <TableCell>
1022                  <ReportItems>
1023                    <Textbox Name="textbox20">
1024                      <rd:DefaultName>textbox20</rd:DefaultName>
1025                      <Style>
1026                        <BorderColor>
1027                          <Default>LightGrey</Default>
1028                        </BorderColor>
1029                        <BorderWidth>
1030                          <Default>0.5pt</Default>
1031                        </BorderWidth>
1032                        <FontSize>9pt</FontSize>
1033                        <TextAlign>Center</TextAlign>
1034                        <VerticalAlign>Middle</VerticalAlign>
1035                        <PaddingLeft>2pt</PaddingLeft>
1036                        <PaddingRight>2pt</PaddingRight>
1037                        <PaddingTop>2pt</PaddingTop>
1038                        <PaddingBottom>2pt</PaddingBottom>
1039                      </Style>
1040                      <ZIndex>11</ZIndex>
1041                      <CanGrow>true</CanGrow>
1042                      <Value />
1043                    </Textbox>
1044                  </ReportItems>
1045                </TableCell>
1046                <TableCell>
1047                  <ReportItems>
1048                    <Textbox Name="textbox36">
1049                      <Style>
1050                        <BorderColor>
1051                          <Default>LightGrey</Default>
1052                        </BorderColor>
1053                        <BorderWidth>
1054                          <Default>0.5pt</Default>
1055                        </BorderWidth>
1056                        <FontSize>9pt</FontSize>
1057                        <TextAlign>Center</TextAlign>
1058                        <VerticalAlign>Middle</VerticalAlign>
1059                        <PaddingLeft>2pt</PaddingLeft>
1060                        <PaddingRight>2pt</PaddingRight>
1061                        <PaddingTop>2pt</PaddingTop>
1062                        <PaddingBottom>2pt</PaddingBottom>
1063                      </Style>
1064                      <ZIndex>10</ZIndex>
1065                      <CanGrow>true</CanGrow>
1066                      <Value />
1067                    </Textbox>
1068                  </ReportItems>
1069                </TableCell>
1070                <TableCell>
1071                  <ReportItems>
1072                    <Textbox Name="textbox4">
1073                      <Style>
1074                        <BackgroundColor>WhiteSmoke</BackgroundColor>
1075                        <BorderColor>
1076                          <Default>LightGrey</Default>
1077                        </BorderColor>
1078                        <BorderStyle>
1079                          <Default>Solid</Default>
1080                        </BorderStyle>
1081                        <BorderWidth>
1082                          <Default>0.5pt</Default>
1083                        </BorderWidth>
1084                        <FontSize>9pt</FontSize>
1085                        <FontWeight>700</FontWeight>
1086                        <TextAlign>Center</TextAlign>
1087                        <VerticalAlign>Middle</VerticalAlign>
1088                        <PaddingLeft>2pt</PaddingLeft>
1089                        <PaddingRight>2pt</PaddingRight>
1090                        <PaddingTop>2pt</PaddingTop>
1091                        <PaddingBottom>2pt</PaddingBottom>
1092                      </Style>
1093                      <ZIndex>9</ZIndex>
1094                      <CanGrow>true</CanGrow>
1095                      <Value>Suma:</Value>
1096                    </Textbox>
1097                  </ReportItems>
1098                </TableCell>
1099                <TableCell>
1100                  <ReportItems>
1101                    <Textbox Name="nn_1">
1102                      <rd:DefaultName>nn_1</rd:DefaultName>
1103                      <Style>
1104                        <BackgroundColor>WhiteSmoke</BackgroundColor>
1105                        <BorderColor>
1106                          <Default>LightGrey</Default>
1107                        </BorderColor>
1108                        <BorderStyle>
1109                          <Default>Solid</Default>
1110                        </BorderStyle>
1111                        <BorderWidth>
1112                          <Default>0.5pt</Default>
1113                        </BorderWidth>
1114                        <FontSize>9pt</FontSize>
1115                        <FontWeight>700</FontWeight>
1116                        <Format>C</Format>
1117                        <TextAlign>Center</TextAlign>
1118                        <VerticalAlign>Middle</VerticalAlign>
1119                        <PaddingLeft>2pt</PaddingLeft>
1120                        <PaddingRight>2pt</PaddingRight>
1121                        <PaddingTop>2pt</PaddingTop>
1122                        <PaddingBottom>2pt</PaddingBottom>
1123                        <Language>pl</Language>
1124                      </Style>
1125                      <ZIndex>8</ZIndex>
1126                      <CanGrow>true</CanGrow>
1127                      <Value>=Sum(Fields!Netto.Value)</Value>
1128                    </Textbox>
1129                  </ReportItems>
1130                </TableCell>
1131                <TableCell>
1132                  <ReportItems>
1133                    <Textbox Name="pp_1">
1134                      <rd:DefaultName>pp_1</rd:DefaultName>
1135                      <Style>
1136                        <BackgroundColor>WhiteSmoke</BackgroundColor>
1137                        <BorderColor>
1138                          <Default>LightGrey</Default>
1139                        </BorderColor>
1140                        <BorderStyle>
1141                          <Default>Solid</Default>
1142                        </BorderStyle>
1143                        <BorderWidth>
1144                          <Default>0.5pt</Default>
1145                        </BorderWidth>
1146                        <FontSize>9pt</FontSize>
1147                        <FontWeight>700</FontWeight>
1148                        <Format>C</Format>
1149                        <TextAlign>Center</TextAlign>
1150                        <VerticalAlign>Middle</VerticalAlign>
1151                        <PaddingLeft>2pt</PaddingLeft>
1152                        <PaddingRight>2pt</PaddingRight>
1153                        <PaddingTop>2pt</PaddingTop>
1154                        <PaddingBottom>2pt</PaddingBottom>
1155                        <Language>pl</Language>
1156                      </Style>
1157                      <ZIndex>7</ZIndex>
1158                      <CanGrow>true</CanGrow>
1159                      <Value>=Sum(Fields!Prowizja.Value)</Value>
1160                    </Textbox>
1161                  </ReportItems>
1162                </TableCell>
1163                <TableCell>
1164                  <ReportItems>
1165                    <Textbox Name="textbox9">
1166                      <rd:DefaultName>textbox9</rd:DefaultName>
1167                      <Style>
1168                        <BorderColor>
1169                          <Default>LightGrey</Default>
1170                        </BorderColor>
1171                        <BorderWidth>
1172                          <Default>0.5pt</Default>
1173                        </BorderWidth>
1174                        <PaddingLeft>2pt</PaddingLeft>
1175                        <PaddingRight>2pt</PaddingRight>
1176                        <PaddingTop>2pt</PaddingTop>
1177                        <PaddingBottom>2pt</PaddingBottom>
1178                      </Style>
1179                      <ZIndex>6</ZIndex>
1180                      <CanGrow>true</CanGrow>
1181                      <Value />
1182                    </Textbox>
1183                  </ReportItems>
1184                </TableCell>
1185                <TableCell>
1186                  <ReportItems>
1187                    <Textbox Name="textbox31">
1188                      <Style>
1189                        <BorderColor>
1190                          <Default>LightGrey</Default>
1191                        </BorderColor>
1192                        <BorderWidth>
1193                          <Default>0.5pt</Default>
1194                        </BorderWidth>
1195                        <FontSize>9pt</FontSize>
1196                        <TextAlign>Center</TextAlign>
1197                        <VerticalAlign>Middle</VerticalAlign>
1198                        <PaddingLeft>2pt</PaddingLeft>
1199                        <PaddingRight>2pt</PaddingRight>
1200                        <PaddingTop>2pt</PaddingTop>
1201                        <PaddingBottom>2pt</PaddingBottom>
1202                      </Style>
1203                      <ZIndex>5</ZIndex>
1204                      <CanGrow>true</CanGrow>
1205                      <Value />
1206                    </Textbox>
1207                  </ReportItems>
1208                </TableCell>
1209              </TableCells>
1210              <Height>0.63492cm</Height>
1211            </TableRow>
1212          </TableRows>
1213        </Footer>
1214      </Table>
1215    </ReportItems>
1216    <Height>4.65476cm</Height>
1217  </Body>
1218  <Language>pl-PL</Language>
1219  <TopMargin>1cm</TopMargin>
1220  <PageHeight>29.7cm</PageHeight>
1221</Report>
Notatka: Zobacz TracBrowser aby uzyskać więcej informacji.