root/trunk/RaportySQL/SredniaCenaModulow.rdl @ 809

Wersja 581, 42.1 KB (wprowadzona przez marek, 17 years temu)

re #152 - dodano rabat biura

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>893127e7-8b81-4d0c-b3a0-62f6e68d3b2b</rd:DataSourceID>
6      <DataSourceReference>BAZA_REKLAM</DataSourceReference>
7    </DataSource>
8  </DataSources>
9  <InteractiveHeight>29.7cm</InteractiveHeight>
10  <ReportParameters>
11    <ReportParameter Name="year">
12      <DataType>Integer</DataType>
13      <DefaultValue>
14        <Values>
15          <Value>=Year(Today)</Value>
16        </Values>
17      </DefaultValue>
18      <Prompt>Rok:</Prompt>
19      <ValidValues>
20        <DataSetReference>
21          <DataSetName>ListaLat</DataSetName>
22          <ValueField>Rok</ValueField>
23          <LabelField>Rok</LabelField>
24        </DataSetReference>
25      </ValidValues>
26    </ReportParameter>
27    <ReportParameter Name="months">
28      <DataType>String</DataType>
29      <DefaultValue>
30        <Values>
31          <Value>=Month(Today)</Value>
32        </Values>
33      </DefaultValue>
34      <Prompt>Miesiąc(e):</Prompt>
35      <ValidValues>
36        <ParameterValues>
37          <ParameterValue>
38            <Value>1</Value>
39          </ParameterValue>
40          <ParameterValue>
41            <Value>2</Value>
42          </ParameterValue>
43          <ParameterValue>
44            <Value>3</Value>
45          </ParameterValue>
46          <ParameterValue>
47            <Value>4</Value>
48          </ParameterValue>
49          <ParameterValue>
50            <Value>5</Value>
51          </ParameterValue>
52          <ParameterValue>
53            <Value>6</Value>
54          </ParameterValue>
55          <ParameterValue>
56            <Value>7</Value>
57          </ParameterValue>
58          <ParameterValue>
59            <Value>8</Value>
60          </ParameterValue>
61          <ParameterValue>
62            <Value>9</Value>
63          </ParameterValue>
64          <ParameterValue>
65            <Value>10</Value>
66          </ParameterValue>
67          <ParameterValue>
68            <Value>11</Value>
69          </ParameterValue>
70          <ParameterValue>
71            <Value>12</Value>
72          </ParameterValue>
73        </ParameterValues>
74      </ValidValues>
75      <MultiValue>true</MultiValue>
76    </ReportParameter>
77  </ReportParameters>
78  <rd:DrawGrid>true</rd:DrawGrid>
79  <InteractiveWidth>21cm</InteractiveWidth>
80  <rd:GridSpacing>0.25cm</rd:GridSpacing>
81  <rd:SnapToGrid>true</rd:SnapToGrid>
82  <RightMargin>2.5cm</RightMargin>
83  <LeftMargin>2.5cm</LeftMargin>
84  <BottomMargin>2.5cm</BottomMargin>
85  <rd:ReportID>d657e215-97e8-4e12-9b89-3d580817eec0</rd:ReportID>
86  <PageWidth>21cm</PageWidth>
87  <DataSets>
88    <DataSet Name="Moduly">
89      <Fields>
90        <Field Name="Agencja">
91          <DataField>Agencja</DataField>
92          <rd:TypeName>System.String</rd:TypeName>
93        </Field>
94        <Field Name="Agent">
95          <DataField>Agent</DataField>
96          <rd:TypeName>System.String</rd:TypeName>
97        </Field>
98        <Field Name="Modul">
99          <DataField>Modul</DataField>
100          <rd:TypeName>System.String</rd:TypeName>
101        </Field>
102        <Field Name="SumaNetto">
103          <DataField>SumaNetto</DataField>
104          <rd:TypeName>System.Decimal</rd:TypeName>
105        </Field>
106        <Field Name="IloscReklam">
107          <DataField>IloscReklam</DataField>
108          <rd:TypeName>System.Int32</rd:TypeName>
109        </Field>
110        <Field Name="IloscEmisji">
111          <DataField>IloscEmisji</DataField>
112          <rd:TypeName>System.Int32</rd:TypeName>
113        </Field>
114        <Field Name="Sprzedano">
115          <DataField>Sprzedano</DataField>
116          <rd:TypeName>System.Decimal</rd:TypeName>
117        </Field>
118        <Field Name="Cennik">
119          <DataField>Cennik</DataField>
120          <rd:TypeName>System.Decimal</rd:TypeName>
121        </Field>
122        <Field Name="SumaNettoCennik">
123          <DataField>SumaNettoCennik</DataField>
124          <rd:TypeName>System.Decimal</rd:TypeName>
125        </Field>
126      </Fields>
127      <Query>
128        <DataSourceName>BAZA_REKLAM</DataSourceName>
129        <CommandText>SELECT
130Ag.Symbol AS Agencja, 
131LOWER(A.Symbol) AS Agent,
132M.Mod_Typ AS Modul,
133CAST(SUM(U.netto) AS DECIMAL(9,2)) AS SumaNetto,
134COUNT(DISTINCT R.ReklamaId) AS IloscReklam,
135COUNT(U.ID) AS IloscEmisji,
136CAST(SUM(((R.[Cena Jedn] - R.[Rabat Wartość]) * R.[Krotność]) / (R.Szer * R.Wys * R.[Krotność]))/Count(R.ReklamaId) AS DECIMAL(9,2)) AS Sprzedano,
137CAST(SUM(M.Cena)/Count(R.ReklamaId) AS DECIMAL(9,2)) AS Cennik,
138CAST(SUM(M.Cena * R.Szer * R.Wys) AS DECIMAL(9,2)) AS SumaNettoCennik
139FROM [ukaże się w nr] U
140INNER JOIN Reklama R ON R.ReklamaID = U.ReklamaID
141INNER JOIN [Nazwy Modułów] M ON M.Mod_Typ=R.Mod_Typ
142INNER JOIN [Nr] N ON N.TYT=R.[TYTUŁ] AND N.NRW=U.[Nr Wydania]
143INNER JOIN Faktury F ON F.ID_Faktury = U.idFaktury
144INNER JOIN Agenci A ON F.Numer_Roz=A.F_Roz
145INNER JOIN Agencje Ag ON Ag.Id_Agencji=A.Id_Agencji
146WHERE R.[TYTUŁ] IN ('AMT')
147AND R.Typ='PŁATNA'
148AND YEAR(F.[DATA_SPRZEDAZY])=@year
149AND MONTH(F.[DATA_SPRZEDAZY]) IN (@months)
150AND U.idFaktury IS NOT NULL
151AND U.status = 0
152AND M.Mod_Typ IN ('AWEB', 'AWEF', 'AWES')
153GROUP BY Ag.Symbol, A.Symbol, M.Mod_Typ
154ORDER BY Ag.Symbol, A.Symbol, M.Mod_Typ</CommandText>
155        <QueryParameters>
156          <QueryParameter Name="@year">
157            <Value>=Parameters!year.Value</Value>
158          </QueryParameter>
159          <QueryParameter Name="@months">
160            <Value>=Parameters!months.Value</Value>
161          </QueryParameter>
162        </QueryParameters>
163        <rd:UseGenericDesigner>true</rd:UseGenericDesigner>
164      </Query>
165    </DataSet>
166    <DataSet Name="ListaLat">
167      <Fields>
168        <Field Name="Rok">
169          <DataField>Rok</DataField>
170          <rd:TypeName>System.Int32</rd:TypeName>
171        </Field>
172      </Fields>
173      <Query>
174        <DataSourceName>BAZA_REKLAM</DataSourceName>
175        <CommandText>SELECT DISTINCT YEAR(DATA_W) AS Rok
176FROM dbo.NR
177WHERE DATA_W IS NOT NULL
178AND YEAR(DATA_W)&gt;2008
179ORDER BY year(DATA_W) DESC</CommandText>
180        <rd:UseGenericDesigner>true</rd:UseGenericDesigner>
181      </Query>
182    </DataSet>
183  </DataSets>
184  <Code>Public Function GetMonths(P as Parameter) as String
185  Dim i As Integer
186  Dim s As String
187  s = p.value(0)               
188  For i = 1 to Ubound(P.Value)
189    s = s &amp; ", " &amp; p.Value(i) 
190  Next i
191  Return s
192End Function</Code>
193  <Width>20.32936cm</Width>
194  <Body>
195    <ColumnSpacing>1cm</ColumnSpacing>
196    <ReportItems>
197      <Textbox Name="textbox1">
198        <rd:DefaultName>textbox1</rd:DefaultName>
199        <Width>19.5cm</Width>
200        <Style>
201          <FontSize>14pt</FontSize>
202          <FontWeight>700</FontWeight>
203          <TextAlign>Center</TextAlign>
204          <PaddingLeft>2pt</PaddingLeft>
205          <PaddingRight>2pt</PaddingRight>
206          <PaddingTop>2pt</PaddingTop>
207          <PaddingBottom>2pt</PaddingBottom>
208        </Style>
209        <ZIndex>1</ZIndex>
210        <CanGrow>true</CanGrow>
211        <Height>0.75cm</Height>
212        <Value>="Średnia cena modułów wewnętrznych dla AMT sprzedanych w roku: " + CStr(Parameters!year.Value) + " miesiąc(e): " + Code.GetMonths(Parameters!months)</Value>
213      </Textbox>
214      <Table Name="table1">
215        <DataSetName>Moduly</DataSetName>
216        <Top>1cm</Top>
217        <TableGroups>
218          <TableGroup>
219            <Grouping Name="table1_Agencja">
220              <GroupExpressions>
221                <GroupExpression>=Fields!Agencja.Value</GroupExpression>
222              </GroupExpressions>
223            </Grouping>
224            <Sorting>
225              <SortBy>
226                <SortExpression>=Fields!Agencja.Value</SortExpression>
227                <Direction>Ascending</Direction>
228              </SortBy>
229            </Sorting>
230            <Header>
231              <TableRows>
232                <TableRow>
233                  <TableCells>
234                    <TableCell>
235                      <ReportItems>
236                        <Textbox Name="Agencja">
237                          <rd:DefaultName>Agencja</rd:DefaultName>
238                          <Style>
239                            <BorderColor>
240                              <Default>DarkGray</Default>
241                            </BorderColor>
242                            <BorderStyle>
243                              <Default>Solid</Default>
244                            </BorderStyle>
245                            <TextAlign>Left</TextAlign>
246                            <PaddingLeft>2pt</PaddingLeft>
247                            <PaddingRight>2pt</PaddingRight>
248                            <PaddingTop>2pt</PaddingTop>
249                            <PaddingBottom>2pt</PaddingBottom>
250                          </Style>
251                          <ZIndex>23</ZIndex>
252                          <CanGrow>true</CanGrow>
253                          <Value>=Fields!Agencja.Value</Value>
254                        </Textbox>
255                      </ReportItems>
256                    </TableCell>
257                    <TableCell>
258                      <ReportItems>
259                        <Textbox Name="textbox9">
260                          <rd:DefaultName>textbox9</rd:DefaultName>
261                          <Style>
262                            <BorderColor>
263                              <Default>DarkGray</Default>
264                            </BorderColor>
265                            <BorderStyle>
266                              <Default>Solid</Default>
267                            </BorderStyle>
268                            <TextAlign>Center</TextAlign>
269                            <PaddingLeft>2pt</PaddingLeft>
270                            <PaddingRight>2pt</PaddingRight>
271                            <PaddingTop>2pt</PaddingTop>
272                            <PaddingBottom>2pt</PaddingBottom>
273                          </Style>
274                          <ZIndex>22</ZIndex>
275                          <CanGrow>true</CanGrow>
276                          <Value>
277                          </Value>
278                        </Textbox>
279                      </ReportItems>
280                    </TableCell>
281                    <TableCell>
282                      <ReportItems>
283                        <Textbox Name="textbox15">
284                          <Style>
285                            <BorderColor>
286                              <Default>DarkGray</Default>
287                            </BorderColor>
288                            <BorderStyle>
289                              <Default>Solid</Default>
290                            </BorderStyle>
291                            <FontWeight>700</FontWeight>
292                            <Format>C</Format>
293                            <TextAlign>Center</TextAlign>
294                            <PaddingLeft>2pt</PaddingLeft>
295                            <PaddingRight>2pt</PaddingRight>
296                            <PaddingTop>2pt</PaddingTop>
297                            <PaddingBottom>2pt</PaddingBottom>
298                          </Style>
299                          <ZIndex>21</ZIndex>
300                          <CanGrow>true</CanGrow>
301                          <Value>=Sum(Fields!SumaNetto.Value)</Value>
302                        </Textbox>
303                      </ReportItems>
304                    </TableCell>
305                    <TableCell>
306                      <ReportItems>
307                        <Textbox Name="textbox29">
308                          <Style>
309                            <BorderColor>
310                              <Default>DarkGray</Default>
311                            </BorderColor>
312                            <BorderStyle>
313                              <Default>Solid</Default>
314                            </BorderStyle>
315                            <FontWeight>700</FontWeight>
316                            <Format>C</Format>
317                            <TextAlign>Center</TextAlign>
318                            <PaddingLeft>2pt</PaddingLeft>
319                            <PaddingRight>2pt</PaddingRight>
320                            <PaddingTop>2pt</PaddingTop>
321                            <PaddingBottom>2pt</PaddingBottom>
322                          </Style>
323                          <ZIndex>20</ZIndex>
324                          <CanGrow>true</CanGrow>
325                          <Value>=Sum(Fields!SumaNettoCennik.Value)</Value>
326                        </Textbox>
327                      </ReportItems>
328                    </TableCell>
329                    <TableCell>
330                      <ReportItems>
331                        <Textbox Name="textbox10">
332                          <rd:DefaultName>textbox10</rd:DefaultName>
333                          <Style>
334                            <BorderColor>
335                              <Default>DarkGray</Default>
336                            </BorderColor>
337                            <BorderStyle>
338                              <Default>Solid</Default>
339                            </BorderStyle>
340                            <TextAlign>Center</TextAlign>
341                            <PaddingLeft>2pt</PaddingLeft>
342                            <PaddingRight>2pt</PaddingRight>
343                            <PaddingTop>2pt</PaddingTop>
344                            <PaddingBottom>2pt</PaddingBottom>
345                          </Style>
346                          <ZIndex>19</ZIndex>
347                          <CanGrow>true</CanGrow>
348                          <Value>
349                          </Value>
350                        </Textbox>
351                      </ReportItems>
352                    </TableCell>
353                    <TableCell>
354                      <ReportItems>
355                        <Textbox Name="textbox14">
356                          <rd:DefaultName>textbox14</rd:DefaultName>
357                          <Style>
358                            <BorderColor>
359                              <Default>DarkGray</Default>
360                            </BorderColor>
361                            <BorderStyle>
362                              <Default>Solid</Default>
363                            </BorderStyle>
364                            <TextAlign>Center</TextAlign>
365                            <PaddingLeft>2pt</PaddingLeft>
366                            <PaddingRight>2pt</PaddingRight>
367                            <PaddingTop>2pt</PaddingTop>
368                            <PaddingBottom>2pt</PaddingBottom>
369                          </Style>
370                          <ZIndex>18</ZIndex>
371                          <CanGrow>true</CanGrow>
372                          <Value />
373                        </Textbox>
374                      </ReportItems>
375                    </TableCell>
376                    <TableCell>
377                      <ReportItems>
378                        <Textbox Name="textbox11">
379                          <rd:DefaultName>textbox11</rd:DefaultName>
380                          <Style>
381                            <BorderColor>
382                              <Default>DarkGray</Default>
383                            </BorderColor>
384                            <BorderStyle>
385                              <Default>Solid</Default>
386                            </BorderStyle>
387                            <TextAlign>Center</TextAlign>
388                            <PaddingLeft>2pt</PaddingLeft>
389                            <PaddingRight>2pt</PaddingRight>
390                            <PaddingTop>2pt</PaddingTop>
391                            <PaddingBottom>2pt</PaddingBottom>
392                          </Style>
393                          <ZIndex>17</ZIndex>
394                          <CanGrow>true</CanGrow>
395                          <Value />
396                        </Textbox>
397                      </ReportItems>
398                    </TableCell>
399                    <TableCell>
400                      <ReportItems>
401                        <Textbox Name="textbox13">
402                          <rd:DefaultName>textbox13</rd:DefaultName>
403                          <Style>
404                            <BorderColor>
405                              <Default>DarkGray</Default>
406                            </BorderColor>
407                            <BorderStyle>
408                              <Default>Solid</Default>
409                            </BorderStyle>
410                            <FontWeight>700</FontWeight>
411                            <Format>P</Format>
412                            <TextAlign>Center</TextAlign>
413                            <PaddingLeft>2pt</PaddingLeft>
414                            <PaddingRight>2pt</PaddingRight>
415                            <PaddingTop>2pt</PaddingTop>
416                            <PaddingBottom>2pt</PaddingBottom>
417                          </Style>
418                          <ZIndex>16</ZIndex>
419                          <CanGrow>true</CanGrow>
420                          <Value>=1- (Sum(Fields!SumaNetto.Value) / Sum(Fields!SumaNettoCennik.Value))</Value>
421                        </Textbox>
422                      </ReportItems>
423                    </TableCell>
424                  </TableCells>
425                  <Height>0.53333cm</Height>
426                </TableRow>
427              </TableRows>
428            </Header>
429          </TableGroup>
430        </TableGroups>
431        <Details>
432          <TableRows>
433            <TableRow>
434              <TableCells>
435                <TableCell>
436                  <ReportItems>
437                    <Textbox Name="textbox3">
438                      <rd:DefaultName>textbox3</rd:DefaultName>
439                      <Style>
440                        <PaddingLeft>2pt</PaddingLeft>
441                        <PaddingRight>2pt</PaddingRight>
442                        <PaddingTop>2pt</PaddingTop>
443                        <PaddingBottom>2pt</PaddingBottom>
444                      </Style>
445                      <ZIndex>7</ZIndex>
446                      <CanGrow>true</CanGrow>
447                      <Value>
448                      </Value>
449                    </Textbox>
450                  </ReportItems>
451                </TableCell>
452                <TableCell>
453                  <ReportItems>
454                    <Textbox Name="Agent">
455                      <rd:DefaultName>Agent</rd:DefaultName>
456                      <Style>
457                        <BorderColor>
458                          <Default>DarkGray</Default>
459                        </BorderColor>
460                        <BorderStyle>
461                          <Default>Solid</Default>
462                        </BorderStyle>
463                        <TextAlign>Left</TextAlign>
464                        <PaddingLeft>2pt</PaddingLeft>
465                        <PaddingRight>2pt</PaddingRight>
466                        <PaddingTop>2pt</PaddingTop>
467                        <PaddingBottom>2pt</PaddingBottom>
468                      </Style>
469                      <ZIndex>6</ZIndex>
470                      <CanGrow>true</CanGrow>
471                      <Value>=Fields!Agent.Value</Value>
472                    </Textbox>
473                  </ReportItems>
474                </TableCell>
475                <TableCell>
476                  <ReportItems>
477                    <Textbox Name="textbox16">
478                      <Style>
479                        <BorderColor>
480                          <Default>DarkGray</Default>
481                        </BorderColor>
482                        <BorderStyle>
483                          <Default>Solid</Default>
484                        </BorderStyle>
485                        <Format>C</Format>
486                        <TextAlign>Center</TextAlign>
487                        <PaddingLeft>2pt</PaddingLeft>
488                        <PaddingRight>2pt</PaddingRight>
489                        <PaddingTop>2pt</PaddingTop>
490                        <PaddingBottom>2pt</PaddingBottom>
491                      </Style>
492                      <ZIndex>5</ZIndex>
493                      <CanGrow>true</CanGrow>
494                      <Value>=Fields!SumaNetto.Value</Value>
495                    </Textbox>
496                  </ReportItems>
497                </TableCell>
498                <TableCell>
499                  <ReportItems>
500                    <Textbox Name="textbox26">
501                      <Style>
502                        <BorderColor>
503                          <Default>DarkGray</Default>
504                        </BorderColor>
505                        <BorderStyle>
506                          <Default>Solid</Default>
507                        </BorderStyle>
508                        <Format>C</Format>
509                        <TextAlign>Center</TextAlign>
510                        <PaddingLeft>2pt</PaddingLeft>
511                        <PaddingRight>2pt</PaddingRight>
512                        <PaddingTop>2pt</PaddingTop>
513                        <PaddingBottom>2pt</PaddingBottom>
514                      </Style>
515                      <ZIndex>4</ZIndex>
516                      <CanGrow>true</CanGrow>
517                      <Value>=Fields!SumaNettoCennik.Value</Value>
518                    </Textbox>
519                  </ReportItems>
520                </TableCell>
521                <TableCell>
522                  <ReportItems>
523                    <Textbox Name="Modul">
524                      <rd:DefaultName>Modul</rd:DefaultName>
525                      <Style>
526                        <BorderColor>
527                          <Default>DarkGray</Default>
528                        </BorderColor>
529                        <BorderStyle>
530                          <Default>Solid</Default>
531                        </BorderStyle>
532                        <TextAlign>Center</TextAlign>
533                        <PaddingLeft>2pt</PaddingLeft>
534                        <PaddingRight>2pt</PaddingRight>
535                        <PaddingTop>2pt</PaddingTop>
536                        <PaddingBottom>2pt</PaddingBottom>
537                      </Style>
538                      <ZIndex>3</ZIndex>
539                      <CanGrow>true</CanGrow>
540                      <Value>=Fields!Modul.Value</Value>
541                    </Textbox>
542                  </ReportItems>
543                </TableCell>
544                <TableCell>
545                  <ReportItems>
546                    <Textbox Name="Sprzedano">
547                      <rd:DefaultName>Sprzedano</rd:DefaultName>
548                      <Style>
549                        <BorderColor>
550                          <Default>DarkGray</Default>
551                        </BorderColor>
552                        <BorderStyle>
553                          <Default>Solid</Default>
554                        </BorderStyle>
555                        <Format>C</Format>
556                        <TextAlign>Center</TextAlign>
557                        <PaddingLeft>2pt</PaddingLeft>
558                        <PaddingRight>2pt</PaddingRight>
559                        <PaddingTop>2pt</PaddingTop>
560                        <PaddingBottom>2pt</PaddingBottom>
561                      </Style>
562                      <ZIndex>2</ZIndex>
563                      <CanGrow>true</CanGrow>
564                      <Value>=Fields!Sprzedano.Value</Value>
565                    </Textbox>
566                  </ReportItems>
567                </TableCell>
568                <TableCell>
569                  <ReportItems>
570                    <Textbox Name="Cennik">
571                      <rd:DefaultName>Cennik</rd:DefaultName>
572                      <Style>
573                        <BorderColor>
574                          <Default>DarkGray</Default>
575                        </BorderColor>
576                        <BorderStyle>
577                          <Default>Solid</Default>
578                        </BorderStyle>
579                        <Format>C</Format>
580                        <TextAlign>Center</TextAlign>
581                        <PaddingLeft>2pt</PaddingLeft>
582                        <PaddingRight>2pt</PaddingRight>
583                        <PaddingTop>2pt</PaddingTop>
584                        <PaddingBottom>2pt</PaddingBottom>
585                      </Style>
586                      <ZIndex>1</ZIndex>
587                      <CanGrow>true</CanGrow>
588                      <Value>=Fields!Cennik.Value</Value>
589                    </Textbox>
590                  </ReportItems>
591                </TableCell>
592                <TableCell>
593                  <ReportItems>
594                    <Textbox Name="textbox18">
595                      <Style>
596                        <BorderColor>
597                          <Default>DarkGray</Default>
598                        </BorderColor>
599                        <BorderStyle>
600                          <Default>Solid</Default>
601                        </BorderStyle>
602                        <Format>P</Format>
603                        <TextAlign>Center</TextAlign>
604                        <PaddingLeft>2pt</PaddingLeft>
605                        <PaddingRight>2pt</PaddingRight>
606                        <PaddingTop>2pt</PaddingTop>
607                        <PaddingBottom>2pt</PaddingBottom>
608                      </Style>
609                      <CanGrow>true</CanGrow>
610                      <Value>=1- (Fields!Sprzedano.Value / Fields!Cennik.Value)</Value>
611                    </Textbox>
612                  </ReportItems>
613                </TableCell>
614              </TableCells>
615              <Height>0.53333cm</Height>
616            </TableRow>
617          </TableRows>
618          <Visibility>
619            <Hidden>true</Hidden>
620            <ToggleItem>Agencja</ToggleItem>
621          </Visibility>
622        </Details>
623        <Header>
624          <TableRows>
625            <TableRow>
626              <TableCells>
627                <TableCell>
628                  <ReportItems>
629                    <Textbox Name="textbox2">
630                      <rd:DefaultName>textbox2</rd:DefaultName>
631                      <Style>
632                        <BackgroundColor>WhiteSmoke</BackgroundColor>
633                        <BorderColor>
634                          <Default>DarkGray</Default>
635                        </BorderColor>
636                        <BorderStyle>
637                          <Default>Solid</Default>
638                        </BorderStyle>
639                        <FontWeight>700</FontWeight>
640                        <TextAlign>Center</TextAlign>
641                        <PaddingLeft>2pt</PaddingLeft>
642                        <PaddingRight>2pt</PaddingRight>
643                        <PaddingTop>2pt</PaddingTop>
644                        <PaddingBottom>2pt</PaddingBottom>
645                      </Style>
646                      <ZIndex>31</ZIndex>
647                      <CanGrow>true</CanGrow>
648                      <Value>Agencja</Value>
649                    </Textbox>
650                  </ReportItems>
651                </TableCell>
652                <TableCell>
653                  <ReportItems>
654                    <Textbox Name="textbox4">
655                      <rd:DefaultName>textbox4</rd:DefaultName>
656                      <Style>
657                        <BackgroundColor>WhiteSmoke</BackgroundColor>
658                        <BorderColor>
659                          <Default>DarkGray</Default>
660                        </BorderColor>
661                        <BorderStyle>
662                          <Default>Solid</Default>
663                        </BorderStyle>
664                        <FontWeight>700</FontWeight>
665                        <TextAlign>Center</TextAlign>
666                        <PaddingLeft>2pt</PaddingLeft>
667                        <PaddingRight>2pt</PaddingRight>
668                        <PaddingTop>2pt</PaddingTop>
669                        <PaddingBottom>2pt</PaddingBottom>
670                      </Style>
671                      <ZIndex>30</ZIndex>
672                      <CanGrow>true</CanGrow>
673                      <Value>Agent</Value>
674                    </Textbox>
675                  </ReportItems>
676                </TableCell>
677                <TableCell>
678                  <ReportItems>
679                    <Textbox Name="textbox12">
680                      <Style>
681                        <BackgroundColor>WhiteSmoke</BackgroundColor>
682                        <BorderColor>
683                          <Default>DarkGray</Default>
684                        </BorderColor>
685                        <BorderStyle>
686                          <Default>Solid</Default>
687                        </BorderStyle>
688                        <FontWeight>700</FontWeight>
689                        <TextAlign>Center</TextAlign>
690                        <PaddingLeft>2pt</PaddingLeft>
691                        <PaddingRight>2pt</PaddingRight>
692                        <PaddingTop>2pt</PaddingTop>
693                        <PaddingBottom>2pt</PaddingBottom>
694                      </Style>
695                      <ZIndex>29</ZIndex>
696                      <CanGrow>true</CanGrow>
697                      <Value>Sprzedaż Netto</Value>
698                    </Textbox>
699                  </ReportItems>
700                </TableCell>
701                <TableCell>
702                  <ReportItems>
703                    <Textbox Name="textbox20">
704                      <rd:DefaultName>textbox20</rd:DefaultName>
705                      <Style>
706                        <BackgroundColor>WhiteSmoke</BackgroundColor>
707                        <BorderColor>
708                          <Default>DarkGray</Default>
709                        </BorderColor>
710                        <BorderStyle>
711                          <Default>Solid</Default>
712                        </BorderStyle>
713                        <FontWeight>700</FontWeight>
714                        <TextAlign>Center</TextAlign>
715                        <PaddingLeft>2pt</PaddingLeft>
716                        <PaddingRight>2pt</PaddingRight>
717                        <PaddingTop>2pt</PaddingTop>
718                        <PaddingBottom>2pt</PaddingBottom>
719                      </Style>
720                      <ZIndex>28</ZIndex>
721                      <CanGrow>true</CanGrow>
722                      <Value>Sprzedaż wg cennika</Value>
723                    </Textbox>
724                  </ReportItems>
725                </TableCell>
726                <TableCell>
727                  <ReportItems>
728                    <Textbox Name="textbox5">
729                      <rd:DefaultName>textbox5</rd:DefaultName>
730                      <Style>
731                        <BackgroundColor>WhiteSmoke</BackgroundColor>
732                        <BorderColor>
733                          <Default>DarkGray</Default>
734                        </BorderColor>
735                        <BorderStyle>
736                          <Default>Solid</Default>
737                        </BorderStyle>
738                        <FontWeight>700</FontWeight>
739                        <TextAlign>Center</TextAlign>
740                        <PaddingLeft>2pt</PaddingLeft>
741                        <PaddingRight>2pt</PaddingRight>
742                        <PaddingTop>2pt</PaddingTop>
743                        <PaddingBottom>2pt</PaddingBottom>
744                      </Style>
745                      <ZIndex>27</ZIndex>
746                      <CanGrow>true</CanGrow>
747                      <Value>Moduł</Value>
748                    </Textbox>
749                  </ReportItems>
750                </TableCell>
751                <TableCell>
752                  <ReportItems>
753                    <Textbox Name="textbox6">
754                      <rd:DefaultName>textbox6</rd:DefaultName>
755                      <Style>
756                        <BackgroundColor>WhiteSmoke</BackgroundColor>
757                        <BorderColor>
758                          <Default>DarkGray</Default>
759                        </BorderColor>
760                        <BorderStyle>
761                          <Default>Solid</Default>
762                        </BorderStyle>
763                        <FontWeight>700</FontWeight>
764                        <TextAlign>Center</TextAlign>
765                        <PaddingLeft>2pt</PaddingLeft>
766                        <PaddingRight>2pt</PaddingRight>
767                        <PaddingTop>2pt</PaddingTop>
768                        <PaddingBottom>2pt</PaddingBottom>
769                      </Style>
770                      <ZIndex>26</ZIndex>
771                      <CanGrow>true</CanGrow>
772                      <Value>Średnia cena modułu</Value>
773                    </Textbox>
774                  </ReportItems>
775                </TableCell>
776                <TableCell>
777                  <ReportItems>
778                    <Textbox Name="textbox7">
779                      <rd:DefaultName>textbox7</rd:DefaultName>
780                      <Style>
781                        <BackgroundColor>WhiteSmoke</BackgroundColor>
782                        <BorderColor>
783                          <Default>DarkGray</Default>
784                        </BorderColor>
785                        <BorderStyle>
786                          <Default>Solid</Default>
787                        </BorderStyle>
788                        <FontWeight>700</FontWeight>
789                        <TextAlign>Center</TextAlign>
790                        <PaddingLeft>2pt</PaddingLeft>
791                        <PaddingRight>2pt</PaddingRight>
792                        <PaddingTop>2pt</PaddingTop>
793                        <PaddingBottom>2pt</PaddingBottom>
794                      </Style>
795                      <ZIndex>25</ZIndex>
796                      <CanGrow>true</CanGrow>
797                      <Value>Cena modułu z cennika</Value>
798                    </Textbox>
799                  </ReportItems>
800                </TableCell>
801                <TableCell>
802                  <ReportItems>
803                    <Textbox Name="textbox8">
804                      <rd:DefaultName>textbox8</rd:DefaultName>
805                      <Style>
806                        <BackgroundColor>WhiteSmoke</BackgroundColor>
807                        <BorderColor>
808                          <Default>DarkGray</Default>
809                        </BorderColor>
810                        <BorderStyle>
811                          <Default>Solid</Default>
812                        </BorderStyle>
813                        <FontWeight>700</FontWeight>
814                        <TextAlign>Center</TextAlign>
815                        <PaddingLeft>2pt</PaddingLeft>
816                        <PaddingRight>2pt</PaddingRight>
817                        <PaddingTop>2pt</PaddingTop>
818                        <PaddingBottom>2pt</PaddingBottom>
819                      </Style>
820                      <ZIndex>24</ZIndex>
821                      <CanGrow>true</CanGrow>
822                      <Value>Rabat</Value>
823                    </Textbox>
824                  </ReportItems>
825                </TableCell>
826              </TableCells>
827              <Height>0.53333cm</Height>
828            </TableRow>
829          </TableRows>
830          <RepeatOnNewPage>true</RepeatOnNewPage>
831        </Header>
832        <TableColumns>
833          <TableColumn>
834            <Width>4cm</Width>
835          </TableColumn>
836          <TableColumn>
837            <Width>2.5cm</Width>
838          </TableColumn>
839          <TableColumn>
840            <Width>2.5cm</Width>
841          </TableColumn>
842          <TableColumn>
843            <Width>2.5cm</Width>
844          </TableColumn>
845          <TableColumn>
846            <Width>2cm</Width>
847          </TableColumn>
848          <TableColumn>
849            <Width>2.53968cm</Width>
850          </TableColumn>
851          <TableColumn>
852            <Width>2.53968cm</Width>
853          </TableColumn>
854          <TableColumn>
855            <Width>1.75cm</Width>
856          </TableColumn>
857        </TableColumns>
858        <Footer>
859          <TableRows>
860            <TableRow>
861              <TableCells>
862                <TableCell>
863                  <ReportItems>
864                    <Textbox Name="textbox17">
865                      <rd:DefaultName>textbox17</rd:DefaultName>
866                      <Style>
867                        <PaddingLeft>2pt</PaddingLeft>
868                        <PaddingRight>2pt</PaddingRight>
869                        <PaddingTop>2pt</PaddingTop>
870                        <PaddingBottom>2pt</PaddingBottom>
871                      </Style>
872                      <ZIndex>15</ZIndex>
873                      <CanGrow>true</CanGrow>
874                      <Value />
875                    </Textbox>
876                  </ReportItems>
877                </TableCell>
878                <TableCell>
879                  <ReportItems>
880                    <Textbox Name="textbox19">
881                      <rd:DefaultName>textbox19</rd:DefaultName>
882                      <Style>
883                        <PaddingLeft>2pt</PaddingLeft>
884                        <PaddingRight>2pt</PaddingRight>
885                        <PaddingTop>2pt</PaddingTop>
886                        <PaddingBottom>2pt</PaddingBottom>
887                      </Style>
888                      <ZIndex>14</ZIndex>
889                      <CanGrow>true</CanGrow>
890                      <Value />
891                    </Textbox>
892                  </ReportItems>
893                </TableCell>
894                <TableCell>
895                  <ReportItems>
896                    <Textbox Name="textbox25">
897                      <Style>
898                        <BorderColor>
899                          <Default>DarkGray</Default>
900                        </BorderColor>
901                        <BorderStyle>
902                          <Default>Solid</Default>
903                        </BorderStyle>
904                        <FontWeight>700</FontWeight>
905                        <Format>C</Format>
906                        <TextAlign>Center</TextAlign>
907                        <PaddingLeft>2pt</PaddingLeft>
908                        <PaddingRight>2pt</PaddingRight>
909                        <PaddingTop>2pt</PaddingTop>
910                        <PaddingBottom>2pt</PaddingBottom>
911                      </Style>
912                      <ZIndex>13</ZIndex>
913                      <CanGrow>true</CanGrow>
914                      <Value>=Sum(Fields!SumaNetto.Value)</Value>
915                    </Textbox>
916                  </ReportItems>
917                </TableCell>
918                <TableCell>
919                  <ReportItems>
920                    <Textbox Name="textbox27">
921                      <Style>
922                        <BorderColor>
923                          <Default>DarkGray</Default>
924                        </BorderColor>
925                        <BorderStyle>
926                          <Default>Solid</Default>
927                        </BorderStyle>
928                        <FontWeight>700</FontWeight>
929                        <Format>C</Format>
930                        <TextAlign>Center</TextAlign>
931                        <PaddingLeft>2pt</PaddingLeft>
932                        <PaddingRight>2pt</PaddingRight>
933                        <PaddingTop>2pt</PaddingTop>
934                        <PaddingBottom>2pt</PaddingBottom>
935                      </Style>
936                      <ZIndex>12</ZIndex>
937                      <CanGrow>true</CanGrow>
938                      <Value>=Sum(Fields!SumaNettoCennik.Value)</Value>
939                    </Textbox>
940                  </ReportItems>
941                </TableCell>
942                <TableCell>
943                  <ReportItems>
944                    <Textbox Name="textbox21">
945                      <rd:DefaultName>textbox21</rd:DefaultName>
946                      <Style>
947                        <PaddingLeft>2pt</PaddingLeft>
948                        <PaddingRight>2pt</PaddingRight>
949                        <PaddingTop>2pt</PaddingTop>
950                        <PaddingBottom>2pt</PaddingBottom>
951                      </Style>
952                      <ZIndex>11</ZIndex>
953                      <CanGrow>true</CanGrow>
954                      <Value />
955                    </Textbox>
956                  </ReportItems>
957                </TableCell>
958                <TableCell>
959                  <ReportItems>
960                    <Textbox Name="textbox22">
961                      <rd:DefaultName>textbox22</rd:DefaultName>
962                      <Style>
963                        <PaddingLeft>2pt</PaddingLeft>
964                        <PaddingRight>2pt</PaddingRight>
965                        <PaddingTop>2pt</PaddingTop>
966                        <PaddingBottom>2pt</PaddingBottom>
967                      </Style>
968                      <ZIndex>10</ZIndex>
969                      <CanGrow>true</CanGrow>
970                      <Value />
971                    </Textbox>
972                  </ReportItems>
973                </TableCell>
974                <TableCell>
975                  <ReportItems>
976                    <Textbox Name="textbox23">
977                      <rd:DefaultName>textbox23</rd:DefaultName>
978                      <Style>
979                        <PaddingLeft>2pt</PaddingLeft>
980                        <PaddingRight>2pt</PaddingRight>
981                        <PaddingTop>2pt</PaddingTop>
982                        <PaddingBottom>2pt</PaddingBottom>
983                      </Style>
984                      <ZIndex>9</ZIndex>
985                      <CanGrow>true</CanGrow>
986                      <Value />
987                    </Textbox>
988                  </ReportItems>
989                </TableCell>
990                <TableCell>
991                  <ReportItems>
992                    <Textbox Name="textbox28">
993                      <Style>
994                        <BorderColor>
995                          <Default>DarkGray</Default>
996                        </BorderColor>
997                        <BorderStyle>
998                          <Default>Solid</Default>
999                        </BorderStyle>
1000                        <FontWeight>700</FontWeight>
1001                        <Format>P</Format>
1002                        <TextAlign>Center</TextAlign>
1003                        <PaddingLeft>2pt</PaddingLeft>
1004                        <PaddingRight>2pt</PaddingRight>
1005                        <PaddingTop>2pt</PaddingTop>
1006                        <PaddingBottom>2pt</PaddingBottom>
1007                      </Style>
1008                      <ZIndex>8</ZIndex>
1009                      <CanGrow>true</CanGrow>
1010                      <Value>=1- (Sum(Fields!SumaNetto.Value) / Sum(Fields!SumaNettoCennik.Value))</Value>
1011                    </Textbox>
1012                  </ReportItems>
1013                </TableCell>
1014              </TableCells>
1015              <Height>0.63492cm</Height>
1016            </TableRow>
1017          </TableRows>
1018        </Footer>
1019      </Table>
1020    </ReportItems>
1021    <Height>3.23491cm</Height>
1022  </Body>
1023  <Language>pl-PL</Language>
1024  <TopMargin>2.5cm</TopMargin>
1025  <PageHeight>29.7cm</PageHeight>
1026</Report>
Notatka: Zobacz TracBrowser aby uzyskać więcej informacji.