| | 138 | <RightMargin>1cm</RightMargin> |
| | 139 | <LeftMargin>1cm</LeftMargin> |
| | 140 | <BottomMargin>1cm</BottomMargin> |
| | 141 | <rd:ReportID>d9774932-63a7-4d5d-af93-0a6573d8785d</rd:ReportID> |
| | 142 | <PageWidth>21cm</PageWidth> |
| | 143 | <DataSets> |
| | 144 | <DataSet Name="Ocena"> |
| | 145 | <Fields> |
| | 146 | <Field Name="ID"> |
| | 147 | <DataField>ID</DataField> |
| | 148 | <rd:TypeName>System.Int32</rd:TypeName> |
| | 149 | </Field> |
| | 150 | <Field Name="SYMBOL"> |
| | 151 | <DataField>SYMBOL</DataField> |
| | 152 | <rd:TypeName>System.String</rd:TypeName> |
| | 153 | </Field> |
| | 154 | <Field Name="ROK"> |
| | 155 | <DataField>ROK</DataField> |
| | 156 | <rd:TypeName>System.Int16</rd:TypeName> |
| | 157 | </Field> |
| | 158 | <Field Name="MS"> |
| | 159 | <DataField>MS</DataField> |
| | 160 | <rd:TypeName>System.Int16</rd:TypeName> |
| | 161 | </Field> |
| | 162 | <Field Name="BUDZET"> |
| | 163 | <DataField>BUDZET</DataField> |
| | 164 | <rd:TypeName>System.Int32</rd:TypeName> |
| | 165 | </Field> |
| | 166 | <Field Name="W_BUDZET"> |
| | 167 | <DataField>W_BUDZET</DataField> |
| | 168 | <rd:TypeName>System.Int32</rd:TypeName> |
| | 169 | </Field> |
| | 170 | <Field Name="OCENA"> |
| | 171 | <DataField>Ocena</DataField> |
| | 172 | <rd:TypeName>System.Int32</rd:TypeName> |
| | 173 | </Field> |
| | 174 | <Field Name="PR_PROWIZJI"> |
| | 175 | <DataField>PR_PROWIZJI</DataField> |
| | 176 | <rd:TypeName>System.Single</rd:TypeName> |
| | 177 | </Field> |
| | 178 | </Fields> |
| | 179 | <Filters> |
| | 180 | <Filter> |
| | 181 | <FilterExpression>=Fields!MS.Value</FilterExpression> |
| | 182 | <Operator>In</Operator> |
| | 183 | <FilterValues> |
| | 184 | <FilterValue>=Parameters!miesiac.Value</FilterValue> |
| | 185 | </FilterValues> |
| | 186 | </Filter> |
| | 187 | </Filters> |
| | 188 | <Query> |
| | 189 | <DataSourceName>BAZA_REKLAM</DataSourceName> |
| | 190 | <CommandText>SELECT |
| | 191 | [PLAN].ID, |
| | 192 | [PLAN].SYMBOL, |
| | 193 | [PLAN].ROK, |
| | 194 | [PLAN].MS, |
| | 195 | [PLAN].BUDZET, |
| | 196 | [PLAN].W_BUDZET, |
| | 197 | Ocena = |
| | 198 | CASE |
| | 199 | WHEN [PLAN].OCENA=100 THEN 2 |
| | 200 | WHEN [PLAN].OCENA=50 THEN 1 |
| | 201 | ELSE 0 |
| | 202 | END, |
| | 203 | [PLAN].PR_PROWIZJI |
| | 204 | FROM AGENCJE |
| | 205 | INNER JOIN AGENCI ON AGENCJE.Id_agencji = AGENCI.ID_AGENCJI |
| | 206 | INNER JOIN [PLAN] ON AGENCI.Symbol = [PLAN].SYMBOL |
| | 207 | WHERE ([PLAN].ROK = @rok) AND (AGENCJE.Id_agencji = @agencja) AND (@agent is null OR AGENCI.ID_AGENTA = @agent)</CommandText> |
| | 208 | <QueryParameters> |
| | 209 | <QueryParameter Name="@rok"> |
| | 210 | <Value>=Parameters!rok.Value</Value> |
| | 211 | </QueryParameter> |
| | 212 | <QueryParameter Name="@agencja"> |
| | 213 | <Value>=Parameters!agencja.Value</Value> |
| | 214 | </QueryParameter> |
| | 215 | <QueryParameter Name="@agent"> |
| | 216 | <Value>=Parameters!agent.Value</Value> |
| | 217 | </QueryParameter> |
| | 218 | </QueryParameters> |
| | 219 | <rd:UseGenericDesigner>true</rd:UseGenericDesigner> |
| | 220 | </Query> |
| | 221 | </DataSet> |
| | 222 | <DataSet Name="ListaAgencji"> |
| | 223 | <Fields> |
| | 224 | <Field Name="Id_agencji"> |
| | 225 | <DataField>Id_agencji</DataField> |
| | 226 | <rd:TypeName>System.Int32</rd:TypeName> |
| | 227 | </Field> |
| | 228 | <Field Name="Symbol"> |
| | 229 | <DataField>Symbol</DataField> |
| | 230 | <rd:TypeName>System.String</rd:TypeName> |
| | 231 | </Field> |
| | 232 | </Fields> |
| | 233 | <Query> |
| | 234 | <DataSourceName>BAZA_REKLAM</DataSourceName> |
| | 235 | <CommandText>SELECT Id_agencji, Symbol |
| | 236 | FROM AGENCJE where aktywna=1 and (@prawa_agencje is null or @prawa_agencje= Id_agencji)</CommandText> |
| | 237 | <QueryParameters> |
| | 238 | <QueryParameter Name="@prawa_agencje"> |
| | 239 | <Value>=Parameters!prawa_agencje.Value</Value> |
| | 240 | </QueryParameter> |
| | 241 | </QueryParameters> |
| | 242 | <rd:UseGenericDesigner>true</rd:UseGenericDesigner> |
| | 243 | </Query> |
| | 244 | </DataSet> |
| | 245 | <DataSet Name="ListaLat"> |
| | 246 | <Fields> |
| | 247 | <Field Name="rok"> |
| | 248 | <DataField>rok</DataField> |
| | 249 | <rd:TypeName>System.Int32</rd:TypeName> |
| | 250 | </Field> |
| | 251 | </Fields> |
| | 252 | <Query> |
| | 253 | <DataSourceName>BAZA_REKLAM</DataSourceName> |
| | 254 | <CommandText>select distinct year(DATA_W) as rok from dbo.NR where DATA_W is not null order by year(DATA_W)desc</CommandText> |
| | 255 | <rd:UseGenericDesigner>true</rd:UseGenericDesigner> |
| | 256 | </Query> |
| | 257 | </DataSet> |
| | 258 | <DataSet Name="ListaAgentow"> |
| | 259 | <Fields> |
| | 260 | <Field Name="ID_AGENTA"> |
| | 261 | <DataField>ID_AGENTA</DataField> |
| | 262 | <rd:TypeName>System.Int32</rd:TypeName> |
| | 263 | </Field> |
| | 264 | <Field Name="Symbol"> |
| | 265 | <DataField>Symbol</DataField> |
| | 266 | <rd:TypeName>System.String</rd:TypeName> |
| | 267 | </Field> |
| | 268 | <Field Name="agencja"> |
| | 269 | <DataField>agencja</DataField> |
| | 270 | <rd:TypeName>System.String</rd:TypeName> |
| | 271 | </Field> |
| | 272 | </Fields> |
| | 273 | <Query> |
| | 274 | <DataSourceName>BAZA_REKLAM</DataSourceName> |
| | 275 | <CommandText>SELECT A.ID_AGENTA, A.Symbol, A2.Symbol agencja |
| | 276 | FROM AGENCI A left join Agencje A2 |
| | 277 | on A.ID_AGENCJI = A2.ID_Agencji |
| | 278 | where aktywny=1 AND (A2.ID_AGENCJI in (@agencja) OR A2.ID_AGENCJI is null) |
| | 279 | union |
| | 280 | select NULL,'Wszyscy','costam' |
| | 281 | order by A.Symbol</CommandText> |
| | 282 | <QueryParameters> |
| | 283 | <QueryParameter Name="@agencja"> |
| | 284 | <Value>=Parameters!agencja.Value</Value> |
| | 285 | </QueryParameter> |
| | 286 | </QueryParameters> |
| | 287 | <rd:UseGenericDesigner>true</rd:UseGenericDesigner> |
| | 288 | </Query> |
| | 289 | </DataSet> |
| | 290 | </DataSets> |
| | 291 | <Code /> |
| | 292 | <Width>19cm</Width> |
| 164 | | <Footer> |
| 165 | | <TableRows> |
| 166 | | <TableRow> |
| 167 | | <TableCells> |
| 168 | | <TableCell> |
| 169 | | <ReportItems> |
| 170 | | <Textbox Name="textbox5"> |
| 171 | | <rd:DefaultName>textbox5</rd:DefaultName> |
| 172 | | <ZIndex>13</ZIndex> |
| 173 | | <Style> |
| 174 | | <BorderStyle> |
| 175 | | <Default>Solid</Default> |
| 176 | | </BorderStyle> |
| 177 | | <TextAlign>Center</TextAlign> |
| 178 | | <PaddingLeft>2pt</PaddingLeft> |
| 179 | | <BorderWidth> |
| 180 | | <Default>0.5pt</Default> |
| 181 | | </BorderWidth> |
| 182 | | <PaddingBottom>2pt</PaddingBottom> |
| 183 | | <VerticalAlign>Middle</VerticalAlign> |
| 184 | | <BorderColor> |
| 185 | | <Default>LightGrey</Default> |
| 186 | | </BorderColor> |
| 187 | | <PaddingRight>2pt</PaddingRight> |
| 188 | | <PaddingTop>2pt</PaddingTop> |
| 189 | | </Style> |
| 190 | | <CanGrow>true</CanGrow> |
| 191 | | <Value /> |
| 192 | | </Textbox> |
| 193 | | </ReportItems> |
| 194 | | </TableCell> |
| 195 | | <TableCell> |
| 196 | | <ReportItems> |
| 197 | | <Textbox Name="textbox18"> |
| 198 | | <rd:DefaultName>textbox18</rd:DefaultName> |
| 199 | | <ZIndex>12</ZIndex> |
| 200 | | <Style> |
| 201 | | <BorderStyle> |
| 202 | | <Default>Solid</Default> |
| 203 | | </BorderStyle> |
| 204 | | <TextAlign>Center</TextAlign> |
| 205 | | <PaddingLeft>2pt</PaddingLeft> |
| 206 | | <BorderWidth> |
| 207 | | <Default>0.5pt</Default> |
| 208 | | </BorderWidth> |
| 209 | | <PaddingBottom>2pt</PaddingBottom> |
| 210 | | <VerticalAlign>Middle</VerticalAlign> |
| 211 | | <BorderColor> |
| 212 | | <Default>LightGrey</Default> |
| 213 | | </BorderColor> |
| 214 | | <PaddingRight>2pt</PaddingRight> |
| 215 | | <PaddingTop>2pt</PaddingTop> |
| 216 | | </Style> |
| 217 | | <CanGrow>true</CanGrow> |
| 218 | | <Value /> |
| 219 | | </Textbox> |
| 220 | | </ReportItems> |
| 221 | | </TableCell> |
| 222 | | <TableCell> |
| 223 | | <ReportItems> |
| 224 | | <Textbox Name="textbox15"> |
| 225 | | <rd:DefaultName>textbox15</rd:DefaultName> |
| 226 | | <ZIndex>11</ZIndex> |
| 227 | | <Style> |
| 228 | | <BorderStyle> |
| 229 | | <Default>Solid</Default> |
| 230 | | </BorderStyle> |
| 231 | | <TextAlign>Center</TextAlign> |
| 232 | | <PaddingLeft>2pt</PaddingLeft> |
| 233 | | <BorderWidth> |
| 234 | | <Default>0.5pt</Default> |
| 235 | | </BorderWidth> |
| 236 | | <PaddingBottom>2pt</PaddingBottom> |
| 237 | | <VerticalAlign>Middle</VerticalAlign> |
| 238 | | <BorderColor> |
| 239 | | <Default>LightGrey</Default> |
| 240 | | </BorderColor> |
| 241 | | <PaddingRight>2pt</PaddingRight> |
| 242 | | <PaddingTop>2pt</PaddingTop> |
| 243 | | </Style> |
| 244 | | <CanGrow>true</CanGrow> |
| 245 | | <Value /> |
| 246 | | </Textbox> |
| 247 | | </ReportItems> |
| 248 | | </TableCell> |
| 249 | | <TableCell> |
| 250 | | <ReportItems> |
| 251 | | <Textbox Name="textbox6"> |
| 252 | | <rd:DefaultName>textbox6</rd:DefaultName> |
| 253 | | <ZIndex>10</ZIndex> |
| 254 | | <Style> |
| 255 | | <BorderStyle> |
| 256 | | <Default>Solid</Default> |
| 257 | | </BorderStyle> |
| 258 | | <TextAlign>Center</TextAlign> |
| 259 | | <PaddingLeft>2pt</PaddingLeft> |
| 260 | | <BorderWidth> |
| 261 | | <Default>0.5pt</Default> |
| 262 | | </BorderWidth> |
| 263 | | <PaddingBottom>2pt</PaddingBottom> |
| 264 | | <VerticalAlign>Middle</VerticalAlign> |
| 265 | | <Format>C</Format> |
| 266 | | <BorderColor> |
| 267 | | <Default>LightGrey</Default> |
| 268 | | </BorderColor> |
| 269 | | <PaddingRight>2pt</PaddingRight> |
| 270 | | <PaddingTop>2pt</PaddingTop> |
| 271 | | <Language>pl</Language> |
| 272 | | </Style> |
| 273 | | <CanGrow>true</CanGrow> |
| 274 | | <Value>=Sum(Fields!BUDZET.Value)</Value> |
| 275 | | </Textbox> |
| 276 | | </ReportItems> |
| 277 | | </TableCell> |
| 278 | | <TableCell> |
| 279 | | <ReportItems> |
| 280 | | <Textbox Name="textbox7"> |
| 281 | | <rd:DefaultName>textbox7</rd:DefaultName> |
| 282 | | <ZIndex>9</ZIndex> |
| 283 | | <Style> |
| 284 | | <BorderStyle> |
| 285 | | <Default>Solid</Default> |
| 286 | | </BorderStyle> |
| 287 | | <TextAlign>Center</TextAlign> |
| 288 | | <PaddingLeft>2pt</PaddingLeft> |
| 289 | | <BorderWidth> |
| 290 | | <Default>0.5pt</Default> |
| 291 | | </BorderWidth> |
| 292 | | <PaddingBottom>2pt</PaddingBottom> |
| 293 | | <VerticalAlign>Middle</VerticalAlign> |
| 294 | | <Format>C</Format> |
| 295 | | <BorderColor> |
| 296 | | <Default>LightGrey</Default> |
| 297 | | </BorderColor> |
| 298 | | <PaddingRight>2pt</PaddingRight> |
| 299 | | <PaddingTop>2pt</PaddingTop> |
| 300 | | <Language>pl</Language> |
| 301 | | </Style> |
| 302 | | <CanGrow>true</CanGrow> |
| 303 | | <Value>=Sum(Fields!W_BUDZET.Value)</Value> |
| 304 | | </Textbox> |
| 305 | | </ReportItems> |
| 306 | | </TableCell> |
| 307 | | <TableCell> |
| 308 | | <ReportItems> |
| 309 | | <Textbox Name="textbox8"> |
| 310 | | <rd:DefaultName>textbox8</rd:DefaultName> |
| 311 | | <ZIndex>8</ZIndex> |
| 312 | | <Style> |
| 313 | | <BorderStyle> |
| 314 | | <Default>Solid</Default> |
| 315 | | </BorderStyle> |
| 316 | | <TextAlign>Center</TextAlign> |
| 317 | | <PaddingLeft>2pt</PaddingLeft> |
| 318 | | <BorderWidth> |
| 319 | | <Default>0.5pt</Default> |
| 320 | | </BorderWidth> |
| 321 | | <PaddingBottom>2pt</PaddingBottom> |
| 322 | | <VerticalAlign>Middle</VerticalAlign> |
| 323 | | <BorderColor> |
| 324 | | <Default>LightGrey</Default> |
| 325 | | </BorderColor> |
| 326 | | <PaddingRight>2pt</PaddingRight> |
| 327 | | <PaddingTop>2pt</PaddingTop> |
| 328 | | </Style> |
| 329 | | <CanGrow>true</CanGrow> |
| 330 | | <Value /> |
| 331 | | </Textbox> |
| 332 | | </ReportItems> |
| 333 | | </TableCell> |
| 334 | | <TableCell> |
| 335 | | <ReportItems> |
| 336 | | <Textbox Name="textbox9"> |
| 337 | | <rd:DefaultName>textbox9</rd:DefaultName> |
| 338 | | <ZIndex>7</ZIndex> |
| 339 | | <Style> |
| 340 | | <BorderStyle> |
| 341 | | <Default>Solid</Default> |
| 342 | | </BorderStyle> |
| 343 | | <TextAlign>Center</TextAlign> |
| 344 | | <PaddingLeft>2pt</PaddingLeft> |
| 345 | | <BorderWidth> |
| 346 | | <Default>0.5pt</Default> |
| 347 | | </BorderWidth> |
| 348 | | <PaddingBottom>2pt</PaddingBottom> |
| 349 | | <VerticalAlign>Middle</VerticalAlign> |
| 350 | | <BorderColor> |
| 351 | | <Default>LightGrey</Default> |
| 352 | | </BorderColor> |
| 353 | | <PaddingRight>2pt</PaddingRight> |
| 354 | | <PaddingTop>2pt</PaddingTop> |
| 355 | | </Style> |
| 356 | | <CanGrow>true</CanGrow> |
| 357 | | <Value /> |
| 358 | | </Textbox> |
| 359 | | </ReportItems> |
| 360 | | </TableCell> |
| 361 | | </TableCells> |
| 362 | | <Height>0.63492cm</Height> |
| 363 | | </TableRow> |
| 364 | | </TableRows> |
| 365 | | </Footer> |
| 366 | | <Left>0.5cm</Left> |
| | 768 | <Footer> |
| | 769 | <TableRows> |
| | 770 | <TableRow> |
| | 771 | <TableCells> |
| | 772 | <TableCell> |
| | 773 | <ReportItems> |
| | 774 | <Textbox Name="textbox5"> |
| | 775 | <rd:DefaultName>textbox5</rd:DefaultName> |
| | 776 | <Style> |
| | 777 | <BorderColor> |
| | 778 | <Default>LightGrey</Default> |
| | 779 | </BorderColor> |
| | 780 | <BorderStyle> |
| | 781 | <Default>Solid</Default> |
| | 782 | </BorderStyle> |
| | 783 | <BorderWidth> |
| | 784 | <Default>0.5pt</Default> |
| | 785 | </BorderWidth> |
| | 786 | <TextAlign>Center</TextAlign> |
| | 787 | <VerticalAlign>Middle</VerticalAlign> |
| | 788 | <PaddingLeft>2pt</PaddingLeft> |
| | 789 | <PaddingRight>2pt</PaddingRight> |
| | 790 | <PaddingTop>2pt</PaddingTop> |
| | 791 | <PaddingBottom>2pt</PaddingBottom> |
| | 792 | </Style> |
| | 793 | <ZIndex>13</ZIndex> |
| | 794 | <CanGrow>true</CanGrow> |
| | 795 | <Value /> |
| | 796 | </Textbox> |
| | 797 | </ReportItems> |
| | 798 | </TableCell> |
| | 799 | <TableCell> |
| | 800 | <ReportItems> |
| | 801 | <Textbox Name="textbox18"> |
| | 802 | <rd:DefaultName>textbox18</rd:DefaultName> |
| | 803 | <Style> |
| | 804 | <BorderColor> |
| | 805 | <Default>LightGrey</Default> |
| | 806 | </BorderColor> |
| | 807 | <BorderStyle> |
| | 808 | <Default>Solid</Default> |
| | 809 | </BorderStyle> |
| | 810 | <BorderWidth> |
| | 811 | <Default>0.5pt</Default> |
| | 812 | </BorderWidth> |
| | 813 | <TextAlign>Center</TextAlign> |
| | 814 | <VerticalAlign>Middle</VerticalAlign> |
| | 815 | <PaddingLeft>2pt</PaddingLeft> |
| | 816 | <PaddingRight>2pt</PaddingRight> |
| | 817 | <PaddingTop>2pt</PaddingTop> |
| | 818 | <PaddingBottom>2pt</PaddingBottom> |
| | 819 | </Style> |
| | 820 | <ZIndex>12</ZIndex> |
| | 821 | <CanGrow>true</CanGrow> |
| | 822 | <Value /> |
| | 823 | </Textbox> |
| | 824 | </ReportItems> |
| | 825 | </TableCell> |
| | 826 | <TableCell> |
| | 827 | <ReportItems> |
| | 828 | <Textbox Name="textbox15"> |
| | 829 | <rd:DefaultName>textbox15</rd:DefaultName> |
| | 830 | <Style> |
| | 831 | <BorderColor> |
| | 832 | <Default>LightGrey</Default> |
| | 833 | </BorderColor> |
| | 834 | <BorderStyle> |
| | 835 | <Default>Solid</Default> |
| | 836 | </BorderStyle> |
| | 837 | <BorderWidth> |
| | 838 | <Default>0.5pt</Default> |
| | 839 | </BorderWidth> |
| | 840 | <TextAlign>Center</TextAlign> |
| | 841 | <VerticalAlign>Middle</VerticalAlign> |
| | 842 | <PaddingLeft>2pt</PaddingLeft> |
| | 843 | <PaddingRight>2pt</PaddingRight> |
| | 844 | <PaddingTop>2pt</PaddingTop> |
| | 845 | <PaddingBottom>2pt</PaddingBottom> |
| | 846 | </Style> |
| | 847 | <ZIndex>11</ZIndex> |
| | 848 | <CanGrow>true</CanGrow> |
| | 849 | <Value /> |
| | 850 | </Textbox> |
| | 851 | </ReportItems> |
| | 852 | </TableCell> |
| | 853 | <TableCell> |
| | 854 | <ReportItems> |
| | 855 | <Textbox Name="textbox6"> |
| | 856 | <rd:DefaultName>textbox6</rd:DefaultName> |
| | 857 | <Style> |
| | 858 | <BorderColor> |
| | 859 | <Default>LightGrey</Default> |
| | 860 | </BorderColor> |
| | 861 | <BorderStyle> |
| | 862 | <Default>Solid</Default> |
| | 863 | </BorderStyle> |
| | 864 | <BorderWidth> |
| | 865 | <Default>0.5pt</Default> |
| | 866 | </BorderWidth> |
| | 867 | <Format>C</Format> |
| | 868 | <TextAlign>Center</TextAlign> |
| | 869 | <VerticalAlign>Middle</VerticalAlign> |
| | 870 | <PaddingLeft>2pt</PaddingLeft> |
| | 871 | <PaddingRight>2pt</PaddingRight> |
| | 872 | <PaddingTop>2pt</PaddingTop> |
| | 873 | <PaddingBottom>2pt</PaddingBottom> |
| | 874 | <Language>pl</Language> |
| | 875 | </Style> |
| | 876 | <ZIndex>10</ZIndex> |
| | 877 | <CanGrow>true</CanGrow> |
| | 878 | <Value>=Sum(Fields!BUDZET.Value)</Value> |
| | 879 | </Textbox> |
| | 880 | </ReportItems> |
| | 881 | </TableCell> |
| | 882 | <TableCell> |
| | 883 | <ReportItems> |
| | 884 | <Textbox Name="textbox7"> |
| | 885 | <rd:DefaultName>textbox7</rd:DefaultName> |
| | 886 | <Style> |
| | 887 | <BorderColor> |
| | 888 | <Default>LightGrey</Default> |
| | 889 | </BorderColor> |
| | 890 | <BorderStyle> |
| | 891 | <Default>Solid</Default> |
| | 892 | </BorderStyle> |
| | 893 | <BorderWidth> |
| | 894 | <Default>0.5pt</Default> |
| | 895 | </BorderWidth> |
| | 896 | <Format>C</Format> |
| | 897 | <TextAlign>Center</TextAlign> |
| | 898 | <VerticalAlign>Middle</VerticalAlign> |
| | 899 | <PaddingLeft>2pt</PaddingLeft> |
| | 900 | <PaddingRight>2pt</PaddingRight> |
| | 901 | <PaddingTop>2pt</PaddingTop> |
| | 902 | <PaddingBottom>2pt</PaddingBottom> |
| | 903 | <Language>pl</Language> |
| | 904 | </Style> |
| | 905 | <ZIndex>9</ZIndex> |
| | 906 | <CanGrow>true</CanGrow> |
| | 907 | <Value>=Sum(Fields!W_BUDZET.Value)</Value> |
| | 908 | </Textbox> |
| | 909 | </ReportItems> |
| | 910 | </TableCell> |
| | 911 | <TableCell> |
| | 912 | <ReportItems> |
| | 913 | <Textbox Name="textbox8"> |
| | 914 | <rd:DefaultName>textbox8</rd:DefaultName> |
| | 915 | <Style> |
| | 916 | <BorderColor> |
| | 917 | <Default>LightGrey</Default> |
| | 918 | </BorderColor> |
| | 919 | <BorderStyle> |
| | 920 | <Default>Solid</Default> |
| | 921 | </BorderStyle> |
| | 922 | <BorderWidth> |
| | 923 | <Default>0.5pt</Default> |
| | 924 | </BorderWidth> |
| | 925 | <TextAlign>Center</TextAlign> |
| | 926 | <VerticalAlign>Middle</VerticalAlign> |
| | 927 | <PaddingLeft>2pt</PaddingLeft> |
| | 928 | <PaddingRight>2pt</PaddingRight> |
| | 929 | <PaddingTop>2pt</PaddingTop> |
| | 930 | <PaddingBottom>2pt</PaddingBottom> |
| | 931 | </Style> |
| | 932 | <ZIndex>8</ZIndex> |
| | 933 | <CanGrow>true</CanGrow> |
| | 934 | <Value /> |
| | 935 | </Textbox> |
| | 936 | </ReportItems> |
| | 937 | </TableCell> |
| | 938 | <TableCell> |
| | 939 | <ReportItems> |
| | 940 | <Textbox Name="textbox9"> |
| | 941 | <rd:DefaultName>textbox9</rd:DefaultName> |
| | 942 | <Style> |
| | 943 | <BorderColor> |
| | 944 | <Default>LightGrey</Default> |
| | 945 | </BorderColor> |
| | 946 | <BorderStyle> |
| | 947 | <Default>Solid</Default> |
| | 948 | </BorderStyle> |
| | 949 | <BorderWidth> |
| | 950 | <Default>0.5pt</Default> |
| | 951 | </BorderWidth> |
| | 952 | <TextAlign>Center</TextAlign> |
| | 953 | <VerticalAlign>Middle</VerticalAlign> |
| | 954 | <PaddingLeft>2pt</PaddingLeft> |
| | 955 | <PaddingRight>2pt</PaddingRight> |
| | 956 | <PaddingTop>2pt</PaddingTop> |
| | 957 | <PaddingBottom>2pt</PaddingBottom> |
| | 958 | </Style> |
| | 959 | <ZIndex>7</ZIndex> |
| | 960 | <CanGrow>true</CanGrow> |
| | 961 | <Value /> |
| | 962 | </Textbox> |
| | 963 | </ReportItems> |
| | 964 | </TableCell> |
| | 965 | </TableCells> |
| | 966 | <Height>0.63492cm</Height> |
| | 967 | </TableRow> |
| | 968 | </TableRows> |
| | 969 | </Footer> |
| | 970 | <Left>0.5cm</Left> |
| 821 | | <rd:ReportID>d9774932-63a7-4d5d-af93-0a6573d8785d</rd:ReportID> |
| 822 | | <LeftMargin>1cm</LeftMargin> |
| 823 | | <DataSets> |
| 824 | | <DataSet Name="Ocena"> |
| 825 | | <Query> |
| 826 | | <rd:UseGenericDesigner>true</rd:UseGenericDesigner> |
| 827 | | <CommandText>SELECT [PLAN].ID, [PLAN].SYMBOL, [PLAN].ROK, [PLAN].MS, [PLAN].BUDZET, [PLAN].W_BUDZET, [PLAN].OCENA, [PLAN].PR_PROWIZJI |
| 828 | | FROM AGENCJE INNER JOIN |
| 829 | | AGENCI ON AGENCJE.Id_agencji = AGENCI.ID_AGENCJI INNER JOIN |
| 830 | | [PLAN] ON AGENCI.Symbol = [PLAN].SYMBOL |
| 831 | | WHERE ([PLAN].ROK = @rok) AND (AGENCJE.Id_agencji = @agencja) AND (@agent is null OR AGENCI.ID_AGENTA = @agent)</CommandText> |
| 832 | | <QueryParameters> |
| 833 | | <QueryParameter Name="@rok"> |
| 834 | | <Value>=Parameters!rok.Value</Value> |
| 835 | | </QueryParameter> |
| 836 | | <QueryParameter Name="@agencja"> |
| 837 | | <Value>=Parameters!agencja.Value</Value> |
| 838 | | </QueryParameter> |
| 839 | | <QueryParameter Name="@agent"> |
| 840 | | <Value>=Parameters!agent.Value</Value> |
| 841 | | </QueryParameter> |
| 842 | | </QueryParameters> |
| 843 | | <DataSourceName>BAZA_REKLAM</DataSourceName> |
| 844 | | </Query> |
| 845 | | <Filters> |
| 846 | | <Filter> |
| 847 | | <Operator>In</Operator> |
| 848 | | <FilterValues> |
| 849 | | <FilterValue>=Parameters!miesiac.Value</FilterValue> |
| 850 | | </FilterValues> |
| 851 | | <FilterExpression>=Fields!MS.Value</FilterExpression> |
| 852 | | </Filter> |
| 853 | | </Filters> |
| 854 | | <Fields> |
| 855 | | <Field Name="ID"> |
| 856 | | <rd:TypeName>System.Int32</rd:TypeName> |
| 857 | | <DataField>ID</DataField> |
| 858 | | </Field> |
| 859 | | <Field Name="SYMBOL"> |
| 860 | | <rd:TypeName>System.String</rd:TypeName> |
| 861 | | <DataField>SYMBOL</DataField> |
| 862 | | </Field> |
| 863 | | <Field Name="ROK"> |
| 864 | | <rd:TypeName>System.Int16</rd:TypeName> |
| 865 | | <DataField>ROK</DataField> |
| 866 | | </Field> |
| 867 | | <Field Name="MS"> |
| 868 | | <rd:TypeName>System.Int16</rd:TypeName> |
| 869 | | <DataField>MS</DataField> |
| 870 | | </Field> |
| 871 | | <Field Name="BUDZET"> |
| 872 | | <rd:TypeName>System.Int32</rd:TypeName> |
| 873 | | <DataField>BUDZET</DataField> |
| 874 | | </Field> |
| 875 | | <Field Name="W_BUDZET"> |
| 876 | | <rd:TypeName>System.Int32</rd:TypeName> |
| 877 | | <DataField>W_BUDZET</DataField> |
| 878 | | </Field> |
| 879 | | <Field Name="OCENA"> |
| 880 | | <rd:TypeName>System.Single</rd:TypeName> |
| 881 | | <DataField>OCENA</DataField> |
| 882 | | </Field> |
| 883 | | <Field Name="PR_PROWIZJI"> |
| 884 | | <rd:TypeName>System.Single</rd:TypeName> |
| 885 | | <DataField>PR_PROWIZJI</DataField> |
| 886 | | </Field> |
| 887 | | </Fields> |
| 888 | | </DataSet> |
| 889 | | <DataSet Name="ListaAgencji"> |
| 890 | | <Query> |
| 891 | | <rd:UseGenericDesigner>true</rd:UseGenericDesigner> |
| 892 | | <CommandText>SELECT Id_agencji, Symbol |
| 893 | | FROM AGENCJE where aktywna=1 and (@prawa_agencje is null or @prawa_agencje= Id_agencji)</CommandText> |
| 894 | | <QueryParameters> |
| 895 | | <QueryParameter Name="@prawa_agencje"> |
| 896 | | <Value>=Parameters!prawa_agencje.Value</Value> |
| 897 | | </QueryParameter> |
| 898 | | </QueryParameters> |
| 899 | | <DataSourceName>BAZA_REKLAM</DataSourceName> |
| 900 | | </Query> |
| 901 | | <Fields> |
| 902 | | <Field Name="Id_agencji"> |
| 903 | | <rd:TypeName>System.Int32</rd:TypeName> |
| 904 | | <DataField>Id_agencji</DataField> |
| 905 | | </Field> |
| 906 | | <Field Name="Symbol"> |
| 907 | | <rd:TypeName>System.String</rd:TypeName> |
| 908 | | <DataField>Symbol</DataField> |
| 909 | | </Field> |
| 910 | | </Fields> |
| 911 | | </DataSet> |
| 912 | | <DataSet Name="ListaLat"> |
| 913 | | <Query> |
| 914 | | <rd:UseGenericDesigner>true</rd:UseGenericDesigner> |
| 915 | | <CommandText>select distinct year(DATA_W) as rok from dbo.NR where DATA_W is not null order by year(DATA_W)desc</CommandText> |
| 916 | | <DataSourceName>BAZA_REKLAM</DataSourceName> |
| 917 | | </Query> |
| 918 | | <Fields> |
| 919 | | <Field Name="rok"> |
| 920 | | <rd:TypeName>System.Int32</rd:TypeName> |
| 921 | | <DataField>rok</DataField> |
| 922 | | </Field> |
| 923 | | </Fields> |
| 924 | | </DataSet> |
| 925 | | <DataSet Name="ListaAgentow"> |
| 926 | | <Query> |
| 927 | | <rd:UseGenericDesigner>true</rd:UseGenericDesigner> |
| 928 | | <CommandText>SELECT A.ID_AGENTA, A.Symbol, A2.Symbol agencja |
| 929 | | FROM AGENCI A left join Agencje A2 |
| 930 | | on A.ID_AGENCJI = A2.ID_Agencji |
| 931 | | where aktywny=1 AND (A2.ID_AGENCJI in (@agencja) OR A2.ID_AGENCJI is null) |
| 932 | | union |
| 933 | | select NULL,'Wszyscy','costam' |
| 934 | | order by A.Symbol</CommandText> |
| 935 | | <QueryParameters> |
| 936 | | <QueryParameter Name="@agencja"> |
| 937 | | <Value>=Parameters!agencja.Value</Value> |
| 938 | | </QueryParameter> |
| 939 | | </QueryParameters> |
| 940 | | <DataSourceName>BAZA_REKLAM</DataSourceName> |
| 941 | | </Query> |
| 942 | | <Fields> |
| 943 | | <Field Name="ID_AGENTA"> |
| 944 | | <rd:TypeName>System.Int32</rd:TypeName> |
| 945 | | <DataField>ID_AGENTA</DataField> |
| 946 | | </Field> |
| 947 | | <Field Name="Symbol"> |
| 948 | | <rd:TypeName>System.String</rd:TypeName> |
| 949 | | <DataField>Symbol</DataField> |
| 950 | | </Field> |
| 951 | | <Field Name="agencja"> |
| 952 | | <rd:TypeName>System.String</rd:TypeName> |
| 953 | | <DataField>agencja</DataField> |
| 954 | | </Field> |
| 955 | | </Fields> |
| 956 | | </DataSet> |
| 957 | | </DataSets> |
| 958 | | <Code /> |
| 959 | | <Width>19cm</Width> |
| 960 | | <InteractiveHeight>29.7cm</InteractiveHeight> |