root/trunk/RaportySQL/RankingAgentow2009.rdl @ 186

Wersja 186, 14.8 KB (wprowadzona przez dorota, 17 years temu)

dodany raport RankingAgentow?2009

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>d5cd74ea-0203-4897-b23b-608b6e7c9ee7</rd:DataSourceID>
6      <DataSourceReference>BAZA_REKLAM</DataSourceReference>
7    </DataSource>
8  </DataSources>
9  <InteractiveHeight>29.7cm</InteractiveHeight>
10  <rd:DrawGrid>true</rd:DrawGrid>
11  <InteractiveWidth>21cm</InteractiveWidth>
12  <rd:GridSpacing>0.25cm</rd:GridSpacing>
13  <rd:SnapToGrid>true</rd:SnapToGrid>
14  <RightMargin>1cm</RightMargin>
15  <LeftMargin>1cm</LeftMargin>
16  <BottomMargin>2.5cm</BottomMargin>
17  <rd:ReportID>b9375294-f8e7-4520-8f81-374698915f18</rd:ReportID>
18  <PageWidth>21cm</PageWidth>
19  <DataSets>
20    <DataSet Name="RankingAgentow">
21      <Fields>
22        <Field Name="symbol">
23          <DataField>symbol</DataField>
24          <rd:TypeName>System.String</rd:TypeName>
25        </Field>
26        <Field Name="WARTOSC">
27          <DataField>WARTOSC</DataField>
28          <rd:TypeName>System.Decimal</rd:TypeName>
29        </Field>
30        <Field Name="ILOSC">
31          <DataField>ILOSC</DataField>
32          <rd:TypeName>System.Int32</rd:TypeName>
33        </Field>
34        <Field Name="srednio">
35          <DataField>srednio</DataField>
36          <rd:TypeName>System.Decimal</rd:TypeName>
37        </Field>
38      </Fields>
39      <Query>
40        <DataSourceName>BAZA_REKLAM</DataSourceName>
41        <CommandText>SELECT A.symbol, CONVERT(money, SUM(FD.NETTO))
42    AS WARTOSC, COUNT(F.id_faktury) AS ILOSC, CONVERT(money,
43    SUM(FD.NETTO)) / COUNT(f.id_faktury) AS srednio
44FROM dbo.FAKTURY F left join
45    FAKTURA_DETAILS FD on F.id_faktury = FD.id_faktury left join
46        AGENCI A on F.numer_roz = A.f_roz
47WHERE F.numer_rok &gt;=2009 and (({ fn YEAR([zaplata_data]) } = { fn YEAR(GETDATE()) }))
48GROUP BY A.[symbol]
49order by 2 desc</CommandText>
50        <rd:UseGenericDesigner>true</rd:UseGenericDesigner>
51      </Query>
52    </DataSet>
53  </DataSets>
54  <Code />
55  <Width>19cm</Width>
56  <Body>
57    <ColumnSpacing>1cm</ColumnSpacing>
58    <ReportItems>
59      <Textbox Name="textbox6">
60        <rd:DefaultName>textbox6</rd:DefaultName>
61        <Top>1cm</Top>
62        <Width>18cm</Width>
63        <Style>
64          <Color>Red</Color>
65          <FontWeight>700</FontWeight>
66          <TextAlign>Center</TextAlign>
67          <PaddingLeft>2pt</PaddingLeft>
68          <PaddingRight>2pt</PaddingRight>
69          <PaddingTop>2pt</PaddingTop>
70          <PaddingBottom>2pt</PaddingBottom>
71        </Style>
72        <ZIndex>2</ZIndex>
73        <CanGrow>true</CanGrow>
74        <Left>0.5cm</Left>
75        <Height>0.63492cm</Height>
76        <Value>Ranking na podstawie zapłaconych faktur od 2009.</Value>
77      </Textbox>
78      <Textbox Name="textbox5">
79        <Top>0.25cm</Top>
80        <Width>18cm</Width>
81        <Style>
82          <FontSize>12pt</FontSize>
83          <FontWeight>700</FontWeight>
84          <TextAlign>Center</TextAlign>
85          <PaddingLeft>2pt</PaddingLeft>
86          <PaddingRight>2pt</PaddingRight>
87          <PaddingTop>2pt</PaddingTop>
88          <PaddingBottom>2pt</PaddingBottom>
89        </Style>
90        <ZIndex>1</ZIndex>
91        <CanGrow>true</CanGrow>
92        <Left>0.5cm</Left>
93        <Height>0.63492cm</Height>
94        <Value>RANKING AGENTÓW</Value>
95      </Textbox>
96      <Table Name="table1">
97        <DataSetName>RankingAgentow</DataSetName>
98        <Top>2cm</Top>
99        <Width>18cm</Width>
100        <Details>
101          <TableRows>
102            <TableRow>
103              <TableCells>
104                <TableCell>
105                  <ReportItems>
106                    <Textbox Name="SYMBOL_AKWIZYTORA">
107                      <rd:DefaultName>SYMBOL_AKWIZYTORA</rd:DefaultName>
108                      <Style>
109                        <BorderColor>
110                          <Default>LightGrey</Default>
111                        </BorderColor>
112                        <BorderStyle>
113                          <Default>Solid</Default>
114                        </BorderStyle>
115                        <BorderWidth>
116                          <Default>0.5pt</Default>
117                        </BorderWidth>
118                        <TextAlign>Center</TextAlign>
119                        <VerticalAlign>Middle</VerticalAlign>
120                        <PaddingLeft>2pt</PaddingLeft>
121                        <PaddingRight>2pt</PaddingRight>
122                        <PaddingTop>2pt</PaddingTop>
123                        <PaddingBottom>2pt</PaddingBottom>
124                      </Style>
125                      <ZIndex>3</ZIndex>
126                      <CanGrow>true</CanGrow>
127                      <Value>=Fields!symbol.Value</Value>
128                    </Textbox>
129                  </ReportItems>
130                </TableCell>
131                <TableCell>
132                  <ReportItems>
133                    <Textbox Name="WARTOSC">
134                      <rd:DefaultName>WARTOSC</rd:DefaultName>
135                      <Style>
136                        <BorderColor>
137                          <Default>LightGrey</Default>
138                        </BorderColor>
139                        <BorderStyle>
140                          <Default>Solid</Default>
141                        </BorderStyle>
142                        <BorderWidth>
143                          <Default>0.5pt</Default>
144                        </BorderWidth>
145                        <Format>C</Format>
146                        <TextAlign>Center</TextAlign>
147                        <VerticalAlign>Middle</VerticalAlign>
148                        <PaddingLeft>2pt</PaddingLeft>
149                        <PaddingRight>2pt</PaddingRight>
150                        <PaddingTop>2pt</PaddingTop>
151                        <PaddingBottom>2pt</PaddingBottom>
152                        <Language>pl</Language>
153                      </Style>
154                      <ZIndex>2</ZIndex>
155                      <CanGrow>true</CanGrow>
156                      <Value>=Fields!WARTOSC.Value</Value>
157                    </Textbox>
158                  </ReportItems>
159                </TableCell>
160                <TableCell>
161                  <ReportItems>
162                    <Textbox Name="ILOSC">
163                      <rd:DefaultName>ILOSC</rd:DefaultName>
164                      <Style>
165                        <BorderColor>
166                          <Default>LightGrey</Default>
167                        </BorderColor>
168                        <BorderStyle>
169                          <Default>Solid</Default>
170                        </BorderStyle>
171                        <BorderWidth>
172                          <Default>0.5pt</Default>
173                        </BorderWidth>
174                        <TextAlign>Center</TextAlign>
175                        <VerticalAlign>Middle</VerticalAlign>
176                        <PaddingLeft>2pt</PaddingLeft>
177                        <PaddingRight>2pt</PaddingRight>
178                        <PaddingTop>2pt</PaddingTop>
179                        <PaddingBottom>2pt</PaddingBottom>
180                      </Style>
181                      <ZIndex>1</ZIndex>
182                      <CanGrow>true</CanGrow>
183                      <Value>=Fields!ILOSC.Value</Value>
184                    </Textbox>
185                  </ReportItems>
186                </TableCell>
187                <TableCell>
188                  <ReportItems>
189                    <Textbox Name="srednio">
190                      <rd:DefaultName>srednio</rd:DefaultName>
191                      <Style>
192                        <BorderColor>
193                          <Default>LightGrey</Default>
194                        </BorderColor>
195                        <BorderStyle>
196                          <Default>Solid</Default>
197                        </BorderStyle>
198                        <BorderWidth>
199                          <Default>0.5pt</Default>
200                        </BorderWidth>
201                        <Format>C</Format>
202                        <TextAlign>Center</TextAlign>
203                        <VerticalAlign>Middle</VerticalAlign>
204                        <PaddingLeft>2pt</PaddingLeft>
205                        <PaddingRight>2pt</PaddingRight>
206                        <PaddingTop>2pt</PaddingTop>
207                        <PaddingBottom>2pt</PaddingBottom>
208                        <Language>pl</Language>
209                      </Style>
210                      <CanGrow>true</CanGrow>
211                      <Value>=Fields!srednio.Value</Value>
212                    </Textbox>
213                  </ReportItems>
214                </TableCell>
215              </TableCells>
216              <Height>0.75cm</Height>
217            </TableRow>
218          </TableRows>
219        </Details>
220        <Header>
221          <TableRows>
222            <TableRow>
223              <TableCells>
224                <TableCell>
225                  <ReportItems>
226                    <Textbox Name="textbox1">
227                      <rd:DefaultName>textbox1</rd:DefaultName>
228                      <Style>
229                        <BackgroundColor>WhiteSmoke</BackgroundColor>
230                        <BorderColor>
231                          <Default>LightGrey</Default>
232                        </BorderColor>
233                        <BorderStyle>
234                          <Default>Solid</Default>
235                        </BorderStyle>
236                        <BorderWidth>
237                          <Default>0.5pt</Default>
238                        </BorderWidth>
239                        <FontWeight>700</FontWeight>
240                        <TextAlign>Center</TextAlign>
241                        <VerticalAlign>Middle</VerticalAlign>
242                        <PaddingLeft>2pt</PaddingLeft>
243                        <PaddingRight>2pt</PaddingRight>
244                        <PaddingTop>2pt</PaddingTop>
245                        <PaddingBottom>2pt</PaddingBottom>
246                      </Style>
247                      <ZIndex>7</ZIndex>
248                      <CanGrow>true</CanGrow>
249                      <Value>Agent</Value>
250                    </Textbox>
251                  </ReportItems>
252                </TableCell>
253                <TableCell>
254                  <ReportItems>
255                    <Textbox Name="textbox2">
256                      <rd:DefaultName>textbox2</rd:DefaultName>
257                      <Style>
258                        <BackgroundColor>WhiteSmoke</BackgroundColor>
259                        <BorderColor>
260                          <Default>LightGrey</Default>
261                        </BorderColor>
262                        <BorderStyle>
263                          <Default>Solid</Default>
264                        </BorderStyle>
265                        <BorderWidth>
266                          <Default>0.5pt</Default>
267                        </BorderWidth>
268                        <FontWeight>700</FontWeight>
269                        <TextAlign>Center</TextAlign>
270                        <VerticalAlign>Middle</VerticalAlign>
271                        <PaddingLeft>2pt</PaddingLeft>
272                        <PaddingRight>2pt</PaddingRight>
273                        <PaddingTop>2pt</PaddingTop>
274                        <PaddingBottom>2pt</PaddingBottom>
275                      </Style>
276                      <ZIndex>6</ZIndex>
277                      <CanGrow>true</CanGrow>
278                      <Value>Wartość</Value>
279                    </Textbox>
280                  </ReportItems>
281                </TableCell>
282                <TableCell>
283                  <ReportItems>
284                    <Textbox Name="textbox3">
285                      <rd:DefaultName>textbox3</rd:DefaultName>
286                      <Style>
287                        <BackgroundColor>WhiteSmoke</BackgroundColor>
288                        <BorderColor>
289                          <Default>LightGrey</Default>
290                        </BorderColor>
291                        <BorderStyle>
292                          <Default>Solid</Default>
293                        </BorderStyle>
294                        <BorderWidth>
295                          <Default>0.5pt</Default>
296                        </BorderWidth>
297                        <FontWeight>700</FontWeight>
298                        <TextAlign>Center</TextAlign>
299                        <VerticalAlign>Middle</VerticalAlign>
300                        <PaddingLeft>2pt</PaddingLeft>
301                        <PaddingRight>2pt</PaddingRight>
302                        <PaddingTop>2pt</PaddingTop>
303                        <PaddingBottom>2pt</PaddingBottom>
304                      </Style>
305                      <ZIndex>5</ZIndex>
306                      <CanGrow>true</CanGrow>
307                      <Value>Ilość</Value>
308                    </Textbox>
309                  </ReportItems>
310                </TableCell>
311                <TableCell>
312                  <ReportItems>
313                    <Textbox Name="textbox4">
314                      <rd:DefaultName>textbox4</rd:DefaultName>
315                      <Style>
316                        <BackgroundColor>WhiteSmoke</BackgroundColor>
317                        <BorderColor>
318                          <Default>LightGrey</Default>
319                        </BorderColor>
320                        <BorderStyle>
321                          <Default>Solid</Default>
322                        </BorderStyle>
323                        <BorderWidth>
324                          <Default>0.5pt</Default>
325                        </BorderWidth>
326                        <FontWeight>700</FontWeight>
327                        <TextAlign>Center</TextAlign>
328                        <VerticalAlign>Middle</VerticalAlign>
329                        <PaddingLeft>2pt</PaddingLeft>
330                        <PaddingRight>2pt</PaddingRight>
331                        <PaddingTop>2pt</PaddingTop>
332                        <PaddingBottom>2pt</PaddingBottom>
333                      </Style>
334                      <ZIndex>4</ZIndex>
335                      <CanGrow>true</CanGrow>
336                      <Value>Średnio</Value>
337                    </Textbox>
338                  </ReportItems>
339                </TableCell>
340              </TableCells>
341              <Height>0.75cm</Height>
342            </TableRow>
343          </TableRows>
344        </Header>
345        <TableColumns>
346          <TableColumn>
347            <Width>5.25cm</Width>
348          </TableColumn>
349          <TableColumn>
350            <Width>5cm</Width>
351          </TableColumn>
352          <TableColumn>
353            <Width>3.25cm</Width>
354          </TableColumn>
355          <TableColumn>
356            <Width>4.5cm</Width>
357          </TableColumn>
358        </TableColumns>
359        <Left>0.5cm</Left>
360      </Table>
361    </ReportItems>
362    <Height>3.5cm</Height>
363  </Body>
364  <Language>en-US</Language>
365  <TopMargin>2.5cm</TopMargin>
366  <PageHeight>29.7cm</PageHeight>
367</Report>
Notatka: Zobacz TracBrowser aby uzyskać więcej informacji.