893127e7-8b81-4d0c-b3a0-62f6e68d3b2b BAZA_REKLAM 11in Integer =Year(Today) Rok: ListaLat Rok Rok String =Month(Today) Miesiąc(e): 1 2 3 4 5 6 7 8 9 10 11 12 true true 8.5in 0.25cm true 2.5cm 2.5cm 2.5cm d657e215-97e8-4e12-9b89-3d580817eec0 21cm Agencja System.String Agent System.String Modul System.String SumaNetto System.Decimal IloscReklam System.Int32 IloscEmisji System.Int32 Sprzedano System.Decimal Cennik System.Decimal BAZA_REKLAM SELECT Ag.Symbol AS Agencja, LOWER(A.Symbol) AS Agent, M.Mod_Typ AS Modul, CAST(SUM(U.netto) AS DECIMAL(9,2)) AS SumaNetto, COUNT(DISTINCT R.ReklamaId) AS IloscReklam, COUNT(U.ID) AS IloscEmisji, CAST(SUM(((R.[Cena Jedn] - R.[Rabat Wartość]) * R.[Krotność]) / (R.Szer * R.Wys * R.[Krotność]))/Count(R.ReklamaId) AS DECIMAL(9,2)) AS Sprzedano, CAST(SUM(M.Cena)/Count(R.ReklamaId) AS DECIMAL(9,2)) AS Cennik FROM [ukaże się w nr] U INNER JOIN Reklama R ON R.ReklamaID = U.ReklamaID INNER JOIN [Nazwy Modułów] M ON M.Mod_Typ=R.Mod_Typ INNER JOIN [Nr] N ON N.TYT=R.[TYTUŁ] AND N.NRW=U.[Nr Wydania] INNER JOIN Faktury F ON F.ID_Faktury = U.idFaktury INNER JOIN Agenci A ON F.Numer_Roz=A.F_Roz INNER JOIN Agencje Ag ON Ag.Id_Agencji=A.Id_Agencji WHERE R.[TYTUŁ] IN ('AMT') AND R.Typ='PŁATNA' AND YEAR(F.[DATA_SPRZEDAZY])=@year AND MONTH(F.[DATA_SPRZEDAZY]) IN (@months) AND U.idFaktury IS NOT NULL AND U.status = 0 AND M.Mod_Typ IN ('AWEB', 'AWEF', 'AWES') GROUP BY Ag.Symbol, A.Symbol, M.Mod_Typ ORDER BY Ag.Symbol, A.Symbol, M.Mod_Typ =Parameters!year.Value =Parameters!months.Value true Rok System.Int32 BAZA_REKLAM SELECT DISTINCT YEAR(DATA_W) AS Rok FROM dbo.NR WHERE DATA_W IS NOT NULL AND YEAR(DATA_W)>2008 ORDER BY year(DATA_W) DESC true Public Function GetMonths(P as Parameter) as String Dim i As Integer Dim s As String s = p.value(0) For i = 1 to Ubound(P.Value) s = s & ", " & p.Value(i) Next i Return s End Function 19.73808cm 1cm textbox1 19.5cm 1 true 0.75cm ="Średnia cena modułów wewnętrznych dla AMT sprzedanych w roku: " + CStr(Parameters!year.Value) + " miesiąc(e): " + Code.GetMonths(Parameters!months) Moduly1cm =Fields!Agencja.Value =Fields!Agencja.Value Ascending
Agencja 20 true =Fields!Agencja.Value textbox9 19 true 18 true =Sum(Fields!SumaNetto.Value) textbox10 17 true textbox14 16 true textbox11 15 true textbox13 14 true 0.53333cm
textbox3 6 true Agent 5 true =Fields!Agent.Value 4 true =Fields!SumaNetto.Value Modul 3 true =Fields!Modul.Value Sprzedano 2 true =Fields!Sprzedano.Value Cennik 1 true =Fields!Cennik.Value true =1- (Fields!Sprzedano.Value / Fields!Cennik.Value) 0.53333cm true Agencja
textbox2 27 true Agencja textbox4 26 true Agent 25 true Suma Netto textbox5 24 true Moduł textbox6 23 true Cena sprzedaży textbox7 22 true Cena z cennika textbox8 21 true Rabat 0.53333cm true
4.5cm 2.53968cm 2.53968cm 2.53968cm 2.53968cm 2.53968cm 2.53968cm
textbox17 13 true textbox19 12 true 11 true =Sum(Fields!SumaNetto.Value) textbox21 10 true textbox22 9 true textbox23 8 true textbox24 7 true 0.63492cm
3.23491cm pl-PL 2.5cm 29.7cm