6a2bec57-03d9-4f28-a49c-65e1805de702 BAZA_REKLAM 29.7cm String =Year(Today)-2 true okres 2002 =Year(Today)-4 =Year(Today)-3 =Year(Today)-2 String true tytuł: ListaTytulow value label String true agencja ListaAgencji Id_agencji Symbol String true agent ListaAgentow ID_AGENTA Symbol true 21cm 0.25cm true 1cm 1cm 1cm 58bc7198-b2fa-4939-89e9-e74e3118e4d0 29.7cm ROK System.Int32 ROK_PO System.Int32 KW System.Int32 MS System.Int32 netto System.Double ilosc System.Int32 tytul System.String agencja System.String agent System.String BAZA_REKLAM SELECT ROK, ROK_PO, KW, MS, SUM(NETTO) AS netto, COUNT(ILOSC) AS ilosc, tytul, agencja, agent FROM ( SELECT ROUND(NETTO, 0) AS NETTO, 1 AS ILOSC, DATEPART(YEAR, dbo.REKLAMA.[FAKTURA DATA WYSTAWIENIA]) AS ROK, DATEPART(QUARTER, dbo.REKLAMA.[FAKTURA DATA WYSTAWIENIA]) AS KW, CONVERT(INTEGER,(1.0+DATEPART(QUARTER, dbo.REKLAMA.[FAKTURA DATA WYSTAWIENIA]))/2) AS ROK_PO, DATEPART(MONTH, dbo.REKLAMA.[FAKTURA DATA WYSTAWIENIA]) AS MS, DATEPART(Week, dbo.REKLAMA.[FAKTURA DATA WYSTAWIENIA]) AS WW, dbo.REKLAMA.[FAKTURA DATA WYSTAWIENIA], REKLAMA.TYTUŁ AS tytul, Agencje.Symbol as agencja, Agenci.Symbol as agent, dbo.REKLAMA.ZAPŁACONO FROM dbo.AGENCJE INNER JOIN dbo.AGENCI ON dbo.AGENCJE.Id_agencji = dbo.AGENCI.ID_AGENCJI INNER JOIN dbo.REKLAMA ON dbo.AGENCI.Symbol = dbo.REKLAMA.[SYMBOL AKWIZYTORA] INNER JOIN dbo.Klienci on dbo.Klienci.CustomerId = dbo.Reklama.CustomerId WHERE (dbo.REKLAMA.TYP = 'PŁATNA' OR dbo.REKLAMA.TYP = 'BARTER') AND (abs(dbo.REKLAMA.[ZATWIERDZONO DO DRUKU]) = 1) AND (dbo.REKLAMA.[FAKTURA WYSTAWIONO] = 1) AND (DATEPART(YEAR, dbo.REKLAMA.[FAKTURA DATA WYSTAWIENIA]) >= @od) AND (@tytul is null OR REKLAMA.TYTUŁ = @tytul) AND (@agencja is null OR Agencje.id_agencji = @agencja) AND (@agent is null OR Agenci.ID_AGENTA = @agent) ) AS R GROUP BY ROK, ROK_PO, KW, MS, tytul, agencja, agent ORDER BY ROK desc, KW desc, MS desc =Parameters!okres.Value =Parameters!tytul.Value =Parameters!agencja.Value =Parameters!agent.Value true Id_agencji System.Int32 Symbol System.String BAZA_REKLAM SELECT Id_agencji, Symbol FROM AGENCJE where aktywna=1 union select NULL ,'Wszystkie' order by Symbol true ID_AGENTA System.Int32 Symbol System.String agencja System.String BAZA_REKLAM SELECT A.ID_AGENTA, A.Symbol, A2.Symbol agencja FROM AGENCI A left join Agencje A2 on A.ID_AGENCJI = A2.ID_Agencji where (A2.ID_Agencji in (@agencja)) and a.aktywny=1 union select NULL,'Wszyscy','costam' order by A.Symbol =Parameters!agencja.Value true label System.String value System.String BAZA_REKLAM SELECT SYMB as label, SYMB as value FROM [LISTA TYTUŁÓW] where st_aktywny = -1 union select 'Wszystkie',NULL true Public Shared Function Formatuj(ByVal Value As Integer) As String Formatuj = Format(Value, "### ### ##0.## zł") End Function 27.25cm 1cm 2wgDatyFaktury_ZatwierdzoneDoDrukutrue =Fields!rok.Value Equal =CInt(2007) 19cm =Fields!agencja.Value
textbox5 14 true textbox11 13 true textbox13 12 true textbox14 11 true textbox15 10 true 0.5cm
textbox16 4 true textbox17 3 true textbox18 2 true 1 true =Sum(Fields!netto.Value) true =Sum(Fields!ilosc.Value) 0.63492cm
=Fields!rok.Value =Fields!agent.Value
9 true =Fields!rok.Value 8 true =Fields!agencja.Value 7 true =Fields!agent.Value 6 true =Sum(Fields!netto.Value) 5 true =Sum(Fields!ilosc.Value) 0.75cm
=Fields!agent.Value =Fields!agencja.Value
21.75cm
textbox1 19 true rok textbox10 18 true agencja textbox4 17 true agent textbox2 16 true netto textbox3 15 true ilosc 0.75cm
3.5cm 4.75cm 4.75cm 4.75cm 4cm 2.63492cm
RightCenter <MajorGridLines> <Style> <BorderStyle> <Default>Solid</Default> </BorderStyle> </Style> </MajorGridLines> <MinorGridLines> <Style> <BorderStyle> <Default>Solid</Default> </BorderStyle> </Style> </MinorGridLines> <MajorTickMarks>Outside</MajorTickMarks> <Min>0</Min> <Margin>true</Margin> <Visible>true</Visible> </Axis> </CategoryAxis> <ZIndex>1</ZIndex> <DataSetName>wgDatyFaktury_ZatwierdzoneDoDruku</DataSetName> <PlotArea> <Style> <BackgroundColor>White</BackgroundColor> </Style> </PlotArea> <ThreeDProperties> <Enabled>true</Enabled> <ProjectionMode>Orthographic</ProjectionMode> <Shading>Real</Shading> <DrawingStyle>Cylinder</DrawingStyle> </ThreeDProperties> <PointWidth>0</PointWidth> <SeriesGroupings> <SeriesGrouping> <StaticSeries> <StaticMember> <Label>Value1</Label> </StaticMember> </StaticSeries> </SeriesGrouping> </SeriesGroupings> <Subtype>Plain</Subtype> <ValueAxis> <Axis> <Title /> <MajorGridLines> <Style> <BorderStyle> <Default>Solid</Default> </BorderStyle> </Style> </MajorGridLines> <MinorGridLines> <Style> <BorderStyle> <Default>Solid</Default> </BorderStyle> </Style> </MinorGridLines> <MajorTickMarks>Inside</MajorTickMarks> <MinorTickMarks>Inside</MinorTickMarks> <Min>0</Min> <Margin>true</Margin> <Visible>true</Visible> <Scalar>true</Scalar> </Axis> </ValueAxis> <Type>Column</Type> <CategoryGroupings> <CategoryGrouping> <DynamicCategories> <Grouping Name="chart7_CategoryGroup1"> <GroupExpressions> <GroupExpression>=Fields!rok.Value</GroupExpression> <GroupExpression>=switch(Parameters!okres.Label="ROK","",Parameters!okres.Label="PÓŁROCZE",Fields!rok_po.Value,Parameters!okres.Label="KWARTAŁ",Fields!rok_po.Value,Parameters!okres.Label="MS",Fields!rok_po.Value)</GroupExpression> <GroupExpression>=switch(Parameters!okres.Label="ROK","",Parameters!okres.Label="PÓŁROCZE","",Parameters!okres.Label="KWARTAŁ",Fields!kw.Value,Parameters!okres.Label="MS",Fields!kw.Value)</GroupExpression> <GroupExpression>=switch(Parameters!okres.Label="ROK","",Parameters!okres.Label="PÓŁROCZE","",Parameters!okres.Label="KWARTAŁ","",Parameters!okres.Label="MS",Fields!ms.Value)</GroupExpression> </GroupExpressions> </Grouping> <Label>=switch(Parameters!okres.Label="ROK",Fields!rok.Value,Parameters!okres.Label="PÓŁROCZE",Fields!rok.Value & "/" & Fields!rok_po.Value,Parameters!okres.Label="KWARTAŁ",Fields!rok.Value & "/" & Fields!kw.Value,Parameters!okres.Label="MS",iif(Fields!ms.Value.ToString().Length = 1, Fields!rok.Value & "/0" & Fields!ms.Value,Fields!rok.Value & "/" & Fields!ms.Value))</Label> </DynamicCategories> </CategoryGrouping> </CategoryGroupings> <Palette>Excel</Palette> <ChartData> <ChartSeries> <DataPoints> <DataPoint> <DataValues> <DataValue> <Value>=Sum(Fields!netto.Value)</Value> </DataValue> </DataValues> <DataLabel> <Style> <FontSize>8pt</FontSize> </Style> <Value>=Code.Formatuj(Sum(Fields!netto.Value))</Value> <Position>Top</Position> <Rotation>-90</Rotation> <Visible>true</Visible> </DataLabel> <Marker> <Size>6pt</Size> </Marker> </DataPoint> </DataPoints> </ChartSeries> </ChartData> <Style> <BackgroundColor>White</BackgroundColor> </Style> <Title> <Caption>NETTO - zafakturowane (wg daty wystawienia faktury)</Caption> 9.25cm RightCenter <MajorGridLines> <Style> <BorderStyle> <Default>Solid</Default> </BorderStyle> </Style> </MajorGridLines> <MinorGridLines> <Style> <BorderStyle> <Default>Solid</Default> </BorderStyle> </Style> </MinorGridLines> <MajorTickMarks>Outside</MajorTickMarks> <Min>0</Min> <Margin>true</Margin> <Visible>true</Visible> </Axis> </CategoryAxis> <DataSetName>wgDatyFaktury_ZatwierdzoneDoDruku</DataSetName> <PlotArea> <Style> <BackgroundColor>White</BackgroundColor> </Style> </PlotArea> <ThreeDProperties> <Enabled>true</Enabled> <Shading>Real</Shading> <DrawingStyle>Cylinder</DrawingStyle> </ThreeDProperties> <PointWidth>0</PointWidth> <SeriesGroupings> <SeriesGrouping> <StaticSeries> <StaticMember> <Label>Value1</Label> </StaticMember> </StaticSeries> </SeriesGrouping> </SeriesGroupings> <Top>9.5cm</Top> <Subtype>Plain</Subtype> <ValueAxis> <Axis> <Title /> <MajorGridLines> <Style> <BorderStyle> <Default>Solid</Default> </BorderStyle> </Style> </MajorGridLines> <MinorGridLines> <Style> <BorderStyle> <Default>Solid</Default> </BorderStyle> </Style> </MinorGridLines> <MajorTickMarks>Outside</MajorTickMarks> <Min>0</Min> <Margin>true</Margin> <Visible>true</Visible> <Scalar>true</Scalar> </Axis> </ValueAxis> <Type>Column</Type> <CategoryGroupings> <CategoryGrouping> <DynamicCategories> <Grouping Name="chart8_CategoryGroup1"> <GroupExpressions> <GroupExpression>=Fields!rok.Value</GroupExpression> <GroupExpression>=switch(Parameters!okres.Label="ROK","",Parameters!okres.Label="PÓŁROCZE",Fields!rok_po.Value,Parameters!okres.Label="KWARTAŁ",Fields!rok_po.Value,Parameters!okres.Label="MS",Fields!rok_po.Value)</GroupExpression> <GroupExpression>=switch(Parameters!okres.Label="ROK","",Parameters!okres.Label="PÓŁROCZE","",Parameters!okres.Label="KWARTAŁ",Fields!kw.Value,Parameters!okres.Label="MS",Fields!kw.Value)</GroupExpression> <GroupExpression>=switch(Parameters!okres.Label="ROK","",Parameters!okres.Label="PÓŁROCZE","",Parameters!okres.Label="KWARTAŁ","",Parameters!okres.Label="MS",Fields!ms.Value)</GroupExpression> </GroupExpressions> </Grouping> <Label>=switch(Parameters!okres.Label="ROK",Fields!rok.Value,Parameters!okres.Label="PÓŁROCZE",Fields!rok.Value & "/" & Fields!rok_po.Value,Parameters!okres.Label="KWARTAŁ",Fields!rok.Value & "/" & Fields!kw.Value,Parameters!okres.Label="MS",iif(Fields!ms.Value.ToString().Length = 1, Fields!rok.Value & "/0" & Fields!ms.Value,Fields!rok.Value & "/" & Fields!ms.Value))</Label> </DynamicCategories> </CategoryGrouping> </CategoryGroupings> <Palette>Default</Palette> <ChartData> <ChartSeries> <DataPoints> <DataPoint> <DataValues> <DataValue> <Value>=Sum(Fields!ilosc.Value)</Value> </DataValue> </DataValues> <DataLabel> <Style /> <Value>=Sum(Fields!ilosc.Value)</Value> <Position>Top</Position> <Rotation>-90</Rotation> <Visible>true</Visible> </DataLabel> <Style> <BackgroundColor>Gold</BackgroundColor> </Style> <Marker> <Size>6pt</Size> </Marker> </DataPoint> </DataPoints> </ChartSeries> </ChartData> <Style> <BackgroundColor>White</BackgroundColor> </Style> <Title> <Caption>ILOŚĆ -zafakturowane (wg daty wystawienia faktury)</Caption> 9.25cm
21.75cm en-US 1cm 21cm