Zbiór zmian 377 dla trunk/RaportySQL

Pokaż
Ignoruj:
Data:
2009-02-19 13:18:39 (17 years ago)
Autor:
marek
Opis:

fixes #95

Lokalizacja:
trunk/RaportySQL
Pliki:
1 zmodyfikowane
1 skopiowane

Legenda:

Bez zmian
Dodane
Usunięte
  • trunk/RaportySQL/Klienci_IloscNaTytuly.rdl

    r190 r377  
    77    </DataSource> 
    88  </DataSources> 
    9   <InteractiveHeight>29.7cm</InteractiveHeight> 
     9  <InteractiveHeight>21cm</InteractiveHeight> 
    1010  <ReportParameters> 
    11     <ReportParameter Name="okres"> 
    12       <DataType>String</DataType> 
     11    <ReportParameter Name="od"> 
     12      <DataType>Integer</DataType> 
    1313      <DefaultValue> 
    1414        <Values> 
    15           <Value>=Year(Today)-2</Value> 
     15          <Value>=Year(Today)-1</Value> 
     16        </Values> 
     17      </DefaultValue> 
     18      <Prompt>Od roku:</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="grupuj"> 
     28      <DataType>Integer</DataType> 
     29      <DefaultValue> 
     30        <Values> 
     31          <Value>=2</Value> 
    1632        </Values> 
    1733      </DefaultValue> 
    1834      <AllowBlank>true</AllowBlank> 
    19       <Prompt>okres</Prompt> 
     35      <Prompt>Grupuj wg:</Prompt> 
    2036      <ValidValues> 
    2137        <ParameterValues> 
    2238          <ParameterValue> 
    23             <Value>2002</Value> 
    24             <Label>ROK</Label> 
     39            <Value>0</Value> 
     40            <Label>Rok</Label> 
    2541          </ParameterValue> 
    2642          <ParameterValue> 
    27             <Value>=Year(Today)-4</Value> 
    28             <Label>PÓŁROCZE</Label> 
     43            <Value>1</Value> 
     44            <Label>Kwartał</Label> 
    2945          </ParameterValue> 
    3046          <ParameterValue> 
    31             <Value>=Year(Today)-3</Value> 
    32             <Label>KWARTAŁ</Label> 
    33           </ParameterValue> 
    34           <ParameterValue> 
    35             <Value>=Year(Today)-2</Value> 
    36             <Label>MS</Label> 
     47            <Value>2</Value> 
     48            <Label>MiesiÄ 
     49c</Label> 
    3750          </ParameterValue> 
    3851        </ParameterValues> 
    3952      </ValidValues> 
    4053    </ReportParameter> 
     54    <ReportParameter Name="agencja"> 
     55      <DataType>String</DataType> 
     56      <DefaultValue> 
     57        <DataSetReference> 
     58          <DataSetName>ListaAgencji</DataSetName> 
     59          <ValueField>Symbol</ValueField> 
     60        </DataSetReference> 
     61      </DefaultValue> 
     62      <Prompt>Agencja:</Prompt> 
     63      <ValidValues> 
     64        <DataSetReference> 
     65          <DataSetName>ListaAgencji</DataSetName> 
     66          <ValueField>Symbol</ValueField> 
     67          <LabelField>Symbol</LabelField> 
     68        </DataSetReference> 
     69      </ValidValues> 
     70      <MultiValue>true</MultiValue> 
     71    </ReportParameter> 
     72    <ReportParameter Name="agent"> 
     73      <DataType>String</DataType> 
     74      <DefaultValue> 
     75        <DataSetReference> 
     76          <DataSetName>ListaAgentow</DataSetName> 
     77          <ValueField>Symbol</ValueField> 
     78        </DataSetReference> 
     79      </DefaultValue> 
     80      <Prompt>Agent:</Prompt> 
     81      <ValidValues> 
     82        <DataSetReference> 
     83          <DataSetName>ListaAgentow</DataSetName> 
     84          <ValueField>Symbol</ValueField> 
     85          <LabelField>Symbol</LabelField> 
     86        </DataSetReference> 
     87      </ValidValues> 
     88      <MultiValue>true</MultiValue> 
     89    </ReportParameter> 
    4190    <ReportParameter Name="tytul"> 
    4291      <DataType>String</DataType> 
    43       <Nullable>true</Nullable> 
    44       <Prompt>tytuł:</Prompt> 
     92      <DefaultValue> 
     93        <DataSetReference> 
     94          <DataSetName>ListaTytulow</DataSetName> 
     95          <ValueField>SYMB</ValueField> 
     96        </DataSetReference> 
     97      </DefaultValue> 
     98      <Prompt>Tytuł:</Prompt> 
    4599      <ValidValues> 
    46100        <DataSetReference> 
    47101          <DataSetName>ListaTytulow</DataSetName> 
    48           <ValueField>value</ValueField> 
    49           <LabelField>label</LabelField> 
     102          <ValueField>SYMB</ValueField> 
     103          <LabelField>SYMB</LabelField> 
    50104        </DataSetReference> 
    51105      </ValidValues> 
    52     </ReportParameter> 
    53     <ReportParameter Name="agencja"> 
    54       <DataType>String</DataType> 
    55       <Nullable>true</Nullable> 
    56       <Prompt>agencja</Prompt> 
    57       <ValidValues> 
    58         <DataSetReference> 
    59           <DataSetName>ListaAgencji</DataSetName> 
    60           <ValueField>Id_agencji</ValueField> 
    61           <LabelField>Symbol</LabelField> 
    62         </DataSetReference> 
    63       </ValidValues> 
    64     </ReportParameter> 
    65     <ReportParameter Name="agent"> 
    66       <DataType>String</DataType> 
    67       <Nullable>true</Nullable> 
    68       <Prompt>agent</Prompt> 
    69       <ValidValues> 
    70         <DataSetReference> 
    71           <DataSetName>ListaAgentow</DataSetName> 
    72           <ValueField>ID_AGENTA</ValueField> 
    73           <LabelField>Symbol</LabelField> 
    74         </DataSetReference> 
    75       </ValidValues> 
     106      <MultiValue>true</MultiValue> 
    76107    </ReportParameter> 
    77108  </ReportParameters> 
    78109  <rd:DrawGrid>true</rd:DrawGrid> 
    79   <InteractiveWidth>21cm</InteractiveWidth> 
     110  <InteractiveWidth>29.7cm</InteractiveWidth> 
    80111  <rd:GridSpacing>0.25cm</rd:GridSpacing> 
    81112  <rd:SnapToGrid>true</rd:SnapToGrid> 
     
    86117  <PageWidth>29.7cm</PageWidth> 
    87118  <DataSets> 
    88     <DataSet Name="wgDatyFaktury_ZatwierdzoneDoDruku"> 
     119    <DataSet Name="IloscKlientow"> 
    89120      <Fields> 
    90         <Field Name="rok"> 
    91           <DataField>ROK</DataField> 
     121        <Field Name="Agencja"> 
     122          <DataField>Agencja</DataField> 
     123          <rd:TypeName>System.String</rd:TypeName> 
     124        </Field> 
     125        <Field Name="Agent"> 
     126          <DataField>Agent</DataField> 
     127          <rd:TypeName>System.String</rd:TypeName> 
     128        </Field> 
     129        <Field Name="Tytul"> 
     130          <DataField>Tytul</DataField> 
     131          <rd:TypeName>System.String</rd:TypeName> 
     132        </Field> 
     133        <Field Name="IloscKlientow"> 
     134          <DataField>IloscKlientow</DataField> 
    92135          <rd:TypeName>System.Int32</rd:TypeName> 
    93136        </Field> 
    94         <Field Name="rok_po"> 
    95           <DataField>ROK_PO</DataField> 
     137        <Field Name="SumaNetto"> 
     138          <DataField>SumaNetto</DataField> 
     139          <rd:TypeName>System.Decimal</rd:TypeName> 
     140        </Field> 
     141        <Field Name="Rok"> 
     142          <DataField>Rok</DataField> 
    96143          <rd:TypeName>System.Int32</rd:TypeName> 
    97144        </Field> 
    98         <Field Name="kw"> 
    99           <DataField>KW</DataField> 
     145        <Field Name="Kwartal"> 
     146          <DataField>Kwartal</DataField> 
    100147          <rd:TypeName>System.Int32</rd:TypeName> 
    101148        </Field> 
    102         <Field Name="ms"> 
    103           <DataField>MS</DataField> 
     149        <Field Name="Miesiac"> 
     150          <DataField>Miesiac</DataField> 
    104151          <rd:TypeName>System.Int32</rd:TypeName> 
    105         </Field> 
    106         <Field Name="netto"> 
    107           <DataField>netto</DataField> 
    108           <rd:TypeName>System.Decimal</rd:TypeName> 
    109         </Field> 
    110         <Field Name="ilosc"> 
    111           <DataField>ilosc</DataField> 
    112           <rd:TypeName>System.Int32</rd:TypeName> 
    113         </Field> 
    114         <Field Name="tytul"> 
    115           <DataField>tytul</DataField> 
    116           <rd:TypeName>System.Int16</rd:TypeName> 
    117         </Field> 
    118         <Field Name="agencja"> 
    119           <DataField>agencja</DataField> 
    120           <rd:TypeName>System.String</rd:TypeName> 
    121         </Field> 
    122         <Field Name="agent"> 
    123           <DataField>agent</DataField> 
    124           <rd:TypeName>System.String</rd:TypeName> 
    125152        </Field> 
    126153      </Fields> 
    127154      <Query> 
    128155        <DataSourceName>BAZA_REKLAM</DataSourceName> 
    129         <CommandText>SELECT ROK, ROK_PO, KW, MS, SUM(NETTO) AS netto, COUNT(distinct reklamaId) AS ilosc, tytul, agencja, agent 
    130 FROM         (SELECT ROUND(FD.NETTO, 0) AS NETTO, 
    131 fd.reklamaId, 
    132 year(faktury.data_wystawienia) AS ROK, 
    133 DATEPART(QUARTER, faktury.data_wystawienia) AS KW,  
    134 CONVERT(INTEGER,(1.0+DATEPART(QUARTER, faktury.data_wystawienia))/2) AS ROK_PO, 
    135 month(faktury.data_wystawienia) AS MS,  
    136 DATEPART(Week, faktury.data_wystawienia) AS WW,  
    137 faktury.data_wystawienia, FD.tytul,  Agencje.Symbol as agencja, Agenci.Symbol as agent 
    138 FROM  
    139 dbo.AGENCJE INNER JOIN dbo.AGENCI ON dbo.AGENCJE.Id_agencji = dbo.AGENCI.ID_AGENCJI 
    140 INNER JOIN dbo.FAKTURY ON dbo.AGENCI.F_ROZ = dbo.FAKTURY.[NUMER_ROZ]  
    141 left join dbo.FAktura_details FD on FAKTURY.id_faktury= FD.id_faktury 
    142 INNER JOIN dbo.Klienci on dbo.Klienci.CustomerId = dbo.Faktury.id_nabywcy 
    143 WHERE  (DATEPART(YEAR, faktury.data_wystawienia) &gt;= @od) 
    144 AND (@tytul is null OR  FD.tytul = @tytul) 
    145 AND (@agencja is null OR Agencje.id_agencji = @agencja) 
    146 AND (@agent is null OR  Agenci.ID_AGENTA = @agent)) AS R 
    147 GROUP BY ROK, ROK_PO, KW, MS, tytul, agencja, agent 
    148 ORDER BY ROK DESC, KW DESC, MS DESC</CommandText> 
     156        <CommandText>SELECT  
     157Agencja,  
     158Agent,  
     159Tytul,  
     160COUNT(KlientNazwa) AS IloscKlientow,  
     161ROUND(SUM(Netto), 2) AS SumaNetto,  
     162Rok,  
     163Kwartal,  
     164Miesiac 
     165FROM FakturyNettoByTytul  
     166WHERE (YEAR(Data) &gt;= @od)  
     167AND Tytul IN (@tytul) 
     168AND Agent IN (@agent) 
     169--AND Agencja IN (@agencja) 
     170GROUP BY Agencja, Agent, Tytul, Rok, Kwartal, Miesiac 
     171ORDER BY Agent, Rok DESC, Kwartal DESC, Miesiac DESC, Tytul</CommandText> 
    149172        <QueryParameters> 
    150173          <QueryParameter Name="@od"> 
    151             <Value>=Parameters!okres.Value</Value> 
     174            <Value>=Parameters!od.Value</Value> 
    152175          </QueryParameter> 
    153176          <QueryParameter Name="@tytul"> 
    154177            <Value>=Parameters!tytul.Value</Value> 
    155           </QueryParameter> 
    156           <QueryParameter Name="@agencja"> 
    157             <Value>=Parameters!agencja.Value</Value> 
    158178          </QueryParameter> 
    159179          <QueryParameter Name="@agent"> 
     
    178198        <DataSourceName>BAZA_REKLAM</DataSourceName> 
    179199        <CommandText>SELECT Id_agencji, Symbol 
    180 FROM AGENCJE where aktywna=1 
    181 union 
    182 select NULL ,'Wszystkie' 
    183 order by Symbol</CommandText> 
     200FROM    AGENCJE  
     201WHERE aktywna=1</CommandText> 
    184202        <rd:UseGenericDesigner>true</rd:UseGenericDesigner> 
    185203      </Query> 
     
    202220      <Query> 
    203221        <DataSourceName>BAZA_REKLAM</DataSourceName> 
    204         <CommandText>SELECT A.ID_AGENTA, A.Symbol, A2.Symbol agencja 
    205 FROM AGENCI A left join Agencje A2 
     222        <CommandText>SELECT        A.ID_AGENTA, A.Symbol, A2.Symbol agencja 
     223FROM            AGENCI A left join Agencje A2 
    206224on A.ID_AGENCJI = A2.ID_Agencji 
    207 where  (A2.ID_Agencji in (@agencja)) and a.aktywny=1 
    208 union 
    209 select NULL,'Wszyscy','costam' 
     225 where (A2.Symbol in (@agencja) ) 
    210226order by A.Symbol</CommandText> 
    211227        <QueryParameters> 
     
    219235    <DataSet Name="ListaTytulow"> 
    220236      <Fields> 
    221         <Field Name="label"> 
    222           <DataField>label</DataField> 
     237        <Field Name="SYMB"> 
     238          <DataField>SYMB</DataField> 
    223239          <rd:TypeName>System.String</rd:TypeName> 
    224         </Field> 
    225         <Field Name="value"> 
    226           <DataField>value</DataField> 
    227           <rd:TypeName>System.Int32</rd:TypeName> 
    228240        </Field> 
    229241      </Fields> 
    230242      <Query> 
    231243        <DataSourceName>BAZA_REKLAM</DataSourceName> 
    232         <CommandText>SELECT     SYMB AS label, id AS value 
     244        <CommandText>SELECT     SYMB 
    233245FROM         [LISTA TYTUŁÓW] 
    234 WHERE     (st_aktywny = - 1) 
    235 UNION 
    236 SELECT     'Wszystkie' AS Expr1, NULL AS Expr2</CommandText> 
     246WHERE     (st_aktywny = - 1)</CommandText> 
     247      </Query> 
     248    </DataSet> 
     249    <DataSet Name="ListaLat"> 
     250      <Fields> 
     251        <Field Name="rok"> 
     252          <DataField>rok</DataField> 
     253          <rd:TypeName>System.Int32</rd:TypeName> 
     254        </Field> 
     255      </Fields> 
     256      <Query> 
     257        <DataSourceName>BAZA_REKLAM</DataSourceName> 
     258        <CommandText>SELECT DISTINCT YEAR(DATA_W) AS rok  
     259FROM dbo.NR  
     260WHERE DATA_W IS NOT NULL 
     261AND YEAR(DATA_W)&gt;2007 
     262ORDER BY YEAR(DATA_W) DESC</CommandText> 
     263        <rd:UseGenericDesigner>true</rd:UseGenericDesigner> 
    237264      </Query> 
    238265    </DataSet> 
     
    241268        Formatuj = Format(Value, "### ### ##0.## zł") 
    242269End Function</Code> 
    243   <Width>27.25cm</Width> 
     270  <Width>36.33333cm</Width> 
    244271  <Body> 
    245272    <ColumnSpacing>1cm</ColumnSpacing> 
    246273    <ReportItems> 
    247274      <Table Name="table1"> 
    248         <ZIndex>2</ZIndex> 
    249         <DataSetName>wgDatyFaktury_ZatwierdzoneDoDruku</DataSetName> 
    250         <PageBreakAtStart>true</PageBreakAtStart> 
    251         <Filters> 
    252           <Filter> 
    253             <FilterExpression>=Fields!rok.Value</FilterExpression> 
    254             <Operator>Equal</Operator> 
    255             <FilterValues> 
    256               <FilterValue>=CInt(2007)</FilterValue> 
    257             </FilterValues> 
    258           </Filter> 
    259         </Filters> 
    260         <Top>19cm</Top> 
    261         <TableGroups> 
    262           <TableGroup> 
    263             <Grouping Name="table1_Group3"> 
    264               <GroupExpressions> 
    265                 <GroupExpression>=Fields!agencja.Value</GroupExpression> 
    266               </GroupExpressions> 
    267             </Grouping> 
    268             <Header> 
    269               <TableRows> 
    270                 <TableRow> 
    271                   <TableCells> 
    272                     <TableCell> 
    273                       <ReportItems> 
    274                         <Textbox Name="textbox5"> 
    275                           <rd:DefaultName>textbox5</rd:DefaultName> 
    276                           <Style> 
    277                             <PaddingLeft>2pt</PaddingLeft> 
    278                             <PaddingRight>2pt</PaddingRight> 
    279                             <PaddingTop>2pt</PaddingTop> 
    280                             <PaddingBottom>2pt</PaddingBottom> 
    281                           </Style> 
    282                           <ZIndex>14</ZIndex> 
    283                           <CanGrow>true</CanGrow> 
    284                           <Value /> 
    285                         </Textbox> 
    286                       </ReportItems> 
    287                     </TableCell> 
    288                     <TableCell> 
    289                       <ReportItems> 
    290                         <Textbox Name="textbox11"> 
    291                           <rd:DefaultName>textbox11</rd:DefaultName> 
    292                           <Style> 
    293                             <PaddingLeft>2pt</PaddingLeft> 
    294                             <PaddingRight>2pt</PaddingRight> 
    295                             <PaddingTop>2pt</PaddingTop> 
    296                             <PaddingBottom>2pt</PaddingBottom> 
    297                           </Style> 
    298                           <ZIndex>13</ZIndex> 
    299                           <CanGrow>true</CanGrow> 
    300                           <Value /> 
    301                         </Textbox> 
    302                       </ReportItems> 
    303                     </TableCell> 
    304                     <TableCell> 
    305                       <ReportItems> 
    306                         <Textbox Name="textbox13"> 
    307                           <rd:DefaultName>textbox13</rd:DefaultName> 
    308                           <Style> 
    309                             <PaddingLeft>2pt</PaddingLeft> 
    310                             <PaddingRight>2pt</PaddingRight> 
    311                             <PaddingTop>2pt</PaddingTop> 
    312                             <PaddingBottom>2pt</PaddingBottom> 
    313                           </Style> 
    314                           <ZIndex>12</ZIndex> 
    315                           <CanGrow>true</CanGrow> 
    316                           <Value /> 
    317                         </Textbox> 
    318                       </ReportItems> 
    319                     </TableCell> 
    320                     <TableCell> 
    321                       <ReportItems> 
    322                         <Textbox Name="textbox14"> 
    323                           <rd:DefaultName>textbox14</rd:DefaultName> 
    324                           <Style> 
    325                             <PaddingLeft>2pt</PaddingLeft> 
    326                             <PaddingRight>2pt</PaddingRight> 
    327                             <PaddingTop>2pt</PaddingTop> 
    328                             <PaddingBottom>2pt</PaddingBottom> 
    329                           </Style> 
    330                           <ZIndex>11</ZIndex> 
    331                           <CanGrow>true</CanGrow> 
    332                           <Value /> 
    333                         </Textbox> 
    334                       </ReportItems> 
    335                     </TableCell> 
    336                     <TableCell> 
    337                       <ReportItems> 
    338                         <Textbox Name="textbox15"> 
    339                           <rd:DefaultName>textbox15</rd:DefaultName> 
    340                           <Style> 
    341                             <PaddingLeft>2pt</PaddingLeft> 
    342                             <PaddingRight>2pt</PaddingRight> 
    343                             <PaddingTop>2pt</PaddingTop> 
    344                             <PaddingBottom>2pt</PaddingBottom> 
    345                           </Style> 
    346                           <ZIndex>10</ZIndex> 
    347                           <CanGrow>true</CanGrow> 
    348                           <Value /> 
    349                         </Textbox> 
    350                       </ReportItems> 
    351                     </TableCell> 
    352                   </TableCells> 
    353                   <Height>0.5cm</Height> 
    354                 </TableRow> 
    355               </TableRows> 
    356             </Header> 
    357             <Footer> 
    358               <TableRows> 
    359                 <TableRow> 
    360                   <TableCells> 
    361                     <TableCell> 
    362                       <ReportItems> 
    363                         <Textbox Name="textbox16"> 
    364                           <rd:DefaultName>textbox16</rd:DefaultName> 
    365                           <Style> 
    366                             <BorderColor> 
    367                               <Default>LightGrey</Default> 
    368                             </BorderColor> 
    369                             <BorderStyle> 
    370                               <Default>Solid</Default> 
    371                             </BorderStyle> 
    372                             <BorderWidth> 
    373                               <Default>0.5pt</Default> 
    374                             </BorderWidth> 
    375                             <PaddingLeft>2pt</PaddingLeft> 
    376                             <PaddingRight>2pt</PaddingRight> 
    377                             <PaddingTop>2pt</PaddingTop> 
    378                             <PaddingBottom>2pt</PaddingBottom> 
    379                           </Style> 
    380                           <ZIndex>4</ZIndex> 
    381                           <CanGrow>true</CanGrow> 
    382                           <Value /> 
    383                         </Textbox> 
    384                       </ReportItems> 
    385                     </TableCell> 
    386                     <TableCell> 
    387                       <ReportItems> 
    388                         <Textbox Name="textbox17"> 
    389                           <rd:DefaultName>textbox17</rd:DefaultName> 
    390                           <Style> 
    391                             <BorderColor> 
    392                               <Default>LightGrey</Default> 
    393                             </BorderColor> 
    394                             <BorderStyle> 
    395                               <Default>Solid</Default> 
    396                             </BorderStyle> 
    397                             <BorderWidth> 
    398                               <Default>0.5pt</Default> 
    399                             </BorderWidth> 
    400                             <PaddingLeft>2pt</PaddingLeft> 
    401                             <PaddingRight>2pt</PaddingRight> 
    402                             <PaddingTop>2pt</PaddingTop> 
    403                             <PaddingBottom>2pt</PaddingBottom> 
    404                           </Style> 
    405                           <ZIndex>3</ZIndex> 
    406                           <CanGrow>true</CanGrow> 
    407                           <Value /> 
    408                         </Textbox> 
    409                       </ReportItems> 
    410                     </TableCell> 
    411                     <TableCell> 
    412                       <ReportItems> 
    413                         <Textbox Name="textbox18"> 
    414                           <rd:DefaultName>textbox18</rd:DefaultName> 
    415                           <Style> 
    416                             <BorderColor> 
    417                               <Default>LightGrey</Default> 
    418                             </BorderColor> 
    419                             <BorderStyle> 
    420                               <Default>Solid</Default> 
    421                             </BorderStyle> 
    422                             <BorderWidth> 
    423                               <Default>0.5pt</Default> 
    424                             </BorderWidth> 
    425                             <PaddingLeft>2pt</PaddingLeft> 
    426                             <PaddingRight>2pt</PaddingRight> 
    427                             <PaddingTop>2pt</PaddingTop> 
    428                             <PaddingBottom>2pt</PaddingBottom> 
    429                           </Style> 
    430                           <ZIndex>2</ZIndex> 
    431                           <CanGrow>true</CanGrow> 
    432                           <Value /> 
    433                         </Textbox> 
    434                       </ReportItems> 
    435                     </TableCell> 
    436                     <TableCell> 
    437                       <ReportItems> 
    438                         <Textbox Name="textbox31"> 
    439                           <Style> 
    440                             <BorderColor> 
    441                               <Default>LightGrey</Default> 
    442                             </BorderColor> 
    443                             <BorderStyle> 
    444                               <Default>Solid</Default> 
    445                             </BorderStyle> 
    446                             <BorderWidth> 
    447                               <Default>0.5pt</Default> 
    448                             </BorderWidth> 
    449                             <TextAlign>Right</TextAlign> 
    450                             <PaddingLeft>2pt</PaddingLeft> 
    451                             <PaddingRight>2pt</PaddingRight> 
    452                             <PaddingTop>2pt</PaddingTop> 
    453                             <PaddingBottom>2pt</PaddingBottom> 
    454                           </Style> 
    455                           <ZIndex>1</ZIndex> 
    456                           <CanGrow>true</CanGrow> 
    457                           <Value>=Sum(Fields!netto.Value)</Value> 
    458                         </Textbox> 
    459                       </ReportItems> 
    460                     </TableCell> 
    461                     <TableCell> 
    462                       <ReportItems> 
    463                         <Textbox Name="textbox32"> 
    464                           <Style> 
    465                             <BorderColor> 
    466                               <Default>LightGrey</Default> 
    467                             </BorderColor> 
    468                             <BorderStyle> 
    469                               <Default>Solid</Default> 
    470                             </BorderStyle> 
    471                             <BorderWidth> 
    472                               <Default>0.5pt</Default> 
    473                             </BorderWidth> 
    474                             <TextAlign>Right</TextAlign> 
    475                             <PaddingLeft>2pt</PaddingLeft> 
    476                             <PaddingRight>2pt</PaddingRight> 
    477                             <PaddingTop>2pt</PaddingTop> 
    478                             <PaddingBottom>2pt</PaddingBottom> 
    479                           </Style> 
    480                           <CanGrow>true</CanGrow> 
    481                           <Value>=Sum(Fields!ilosc.Value)</Value> 
    482                         </Textbox> 
    483                       </ReportItems> 
    484                     </TableCell> 
    485                   </TableCells> 
    486                   <Height>0.63492cm</Height> 
    487                 </TableRow> 
    488               </TableRows> 
    489             </Footer> 
    490           </TableGroup> 
    491           <TableGroup> 
    492             <Grouping Name="table1_Group4"> 
    493               <GroupExpressions> 
    494                 <GroupExpression>=Fields!rok.Value</GroupExpression> 
    495                 <GroupExpression>=Fields!agent.Value</GroupExpression> 
    496               </GroupExpressions> 
    497             </Grouping> 
    498             <Header> 
    499               <TableRows> 
    500                 <TableRow> 
    501                   <TableCells> 
    502                     <TableCell> 
    503                       <ReportItems> 
    504                         <Textbox Name="textbox26"> 
    505                           <Style> 
    506                             <BorderColor> 
    507                               <Default>LightGrey</Default> 
    508                             </BorderColor> 
    509                             <BorderStyle> 
    510                               <Default>Solid</Default> 
    511                             </BorderStyle> 
    512                             <BorderWidth> 
    513                               <Default>0.5pt</Default> 
    514                             </BorderWidth> 
    515                             <TextAlign>Right</TextAlign> 
    516                             <PaddingLeft>2pt</PaddingLeft> 
    517                             <PaddingRight>2pt</PaddingRight> 
    518                             <PaddingTop>2pt</PaddingTop> 
    519                             <PaddingBottom>2pt</PaddingBottom> 
    520                           </Style> 
    521                           <ZIndex>9</ZIndex> 
    522                           <CanGrow>true</CanGrow> 
    523                           <Value>=Fields!rok.Value</Value> 
    524                         </Textbox> 
    525                       </ReportItems> 
    526                     </TableCell> 
    527                     <TableCell> 
    528                       <ReportItems> 
    529                         <Textbox Name="textbox27"> 
    530                           <Style> 
    531                             <BorderColor> 
    532                               <Default>LightGrey</Default> 
    533                             </BorderColor> 
    534                             <BorderStyle> 
    535                               <Default>Solid</Default> 
    536                             </BorderStyle> 
    537                             <BorderWidth> 
    538                               <Default>0.5pt</Default> 
    539                             </BorderWidth> 
    540                             <PaddingLeft>2pt</PaddingLeft> 
    541                             <PaddingRight>2pt</PaddingRight> 
    542                             <PaddingTop>2pt</PaddingTop> 
    543                             <PaddingBottom>2pt</PaddingBottom> 
    544                           </Style> 
    545                           <ZIndex>8</ZIndex> 
    546                           <CanGrow>true</CanGrow> 
    547                           <Value>=Fields!agencja.Value</Value> 
    548                         </Textbox> 
    549                       </ReportItems> 
    550                     </TableCell> 
    551                     <TableCell> 
    552                       <ReportItems> 
    553                         <Textbox Name="textbox28"> 
    554                           <Style> 
    555                             <BorderColor> 
    556                               <Default>LightGrey</Default> 
    557                             </BorderColor> 
    558                             <BorderStyle> 
    559                               <Default>Solid</Default> 
    560                             </BorderStyle> 
    561                             <BorderWidth> 
    562                               <Default>0.5pt</Default> 
    563                             </BorderWidth> 
    564                             <PaddingLeft>2pt</PaddingLeft> 
    565                             <PaddingRight>2pt</PaddingRight> 
    566                             <PaddingTop>2pt</PaddingTop> 
    567                             <PaddingBottom>2pt</PaddingBottom> 
    568                           </Style> 
    569                           <ZIndex>7</ZIndex> 
    570                           <CanGrow>true</CanGrow> 
    571                           <Value>=Fields!agent.Value</Value> 
    572                         </Textbox> 
    573                       </ReportItems> 
    574                     </TableCell> 
    575                     <TableCell> 
    576                       <ReportItems> 
    577                         <Textbox Name="textbox29"> 
    578                           <Style> 
    579                             <BorderColor> 
    580                               <Default>LightGrey</Default> 
    581                             </BorderColor> 
    582                             <BorderStyle> 
    583                               <Default>Solid</Default> 
    584                             </BorderStyle> 
    585                             <BorderWidth> 
    586                               <Default>0.5pt</Default> 
    587                             </BorderWidth> 
    588                             <TextAlign>Right</TextAlign> 
    589                             <PaddingLeft>2pt</PaddingLeft> 
    590                             <PaddingRight>2pt</PaddingRight> 
    591                             <PaddingTop>2pt</PaddingTop> 
    592                             <PaddingBottom>2pt</PaddingBottom> 
    593                           </Style> 
    594                           <ZIndex>6</ZIndex> 
    595                           <CanGrow>true</CanGrow> 
    596                           <Value>=Sum(Fields!netto.Value)</Value> 
    597                         </Textbox> 
    598                       </ReportItems> 
    599                     </TableCell> 
    600                     <TableCell> 
    601                       <ReportItems> 
    602                         <Textbox Name="textbox30"> 
    603                           <Style> 
    604                             <BorderColor> 
    605                               <Default>LightGrey</Default> 
    606                             </BorderColor> 
    607                             <BorderStyle> 
    608                               <Default>Solid</Default> 
    609                             </BorderStyle> 
    610                             <BorderWidth> 
    611                               <Default>0.5pt</Default> 
    612                             </BorderWidth> 
    613                             <TextAlign>Right</TextAlign> 
    614                             <PaddingLeft>2pt</PaddingLeft> 
    615                             <PaddingRight>2pt</PaddingRight> 
    616                             <PaddingTop>2pt</PaddingTop> 
    617                             <PaddingBottom>2pt</PaddingBottom> 
    618                           </Style> 
    619                           <ZIndex>5</ZIndex> 
    620                           <CanGrow>true</CanGrow> 
    621                           <Value>=Sum(Fields!ilosc.Value)</Value> 
    622                         </Textbox> 
    623                       </ReportItems> 
    624                     </TableCell> 
    625                   </TableCells> 
    626                   <Height>0.75cm</Height> 
    627                 </TableRow> 
    628               </TableRows> 
    629             </Header> 
    630           </TableGroup> 
    631           <TableGroup> 
    632             <Grouping Name="table1_Group1"> 
    633               <GroupExpressions> 
    634                 <GroupExpression>=Fields!agent.Value</GroupExpression> 
    635               </GroupExpressions> 
    636             </Grouping> 
    637           </TableGroup> 
    638           <TableGroup> 
    639             <Grouping Name="table1_Group2"> 
    640               <GroupExpressions> 
    641                 <GroupExpression>=Fields!agencja.Value</GroupExpression> 
    642               </GroupExpressions> 
    643             </Grouping> 
    644           </TableGroup> 
    645         </TableGroups> 
    646         <Width>21.75cm</Width> 
     275        <ZIndex>1</ZIndex> 
     276        <DataSetName>IloscKlientow</DataSetName> 
     277        <Top>11cm</Top> 
     278        <Width>19cm</Width> 
     279        <Details> 
     280          <TableRows> 
     281            <TableRow> 
     282              <TableCells> 
     283                <TableCell> 
     284                  <ReportItems> 
     285                    <Textbox Name="textbox4"> 
     286                      <rd:DefaultName>textbox4</rd:DefaultName> 
     287                      <Style> 
     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                        <FontSize>8pt</FontSize> 
     298                        <TextAlign>Center</TextAlign> 
     299                        <PaddingLeft>2pt</PaddingLeft> 
     300                        <PaddingRight>2pt</PaddingRight> 
     301                        <PaddingTop>2pt</PaddingTop> 
     302                        <PaddingBottom>2pt</PaddingBottom> 
     303                      </Style> 
     304                      <ZIndex>7</ZIndex> 
     305                      <CanGrow>true</CanGrow> 
     306                      <Value>=Fields!Agencja.Value</Value> 
     307                    </Textbox> 
     308                  </ReportItems> 
     309                </TableCell> 
     310                <TableCell> 
     311                  <ReportItems> 
     312                    <Textbox Name="textbox5"> 
     313                      <rd:DefaultName>textbox5</rd:DefaultName> 
     314                      <Style> 
     315                        <BorderColor> 
     316                          <Default>LightGrey</Default> 
     317                        </BorderColor> 
     318                        <BorderStyle> 
     319                          <Default>Solid</Default> 
     320                        </BorderStyle> 
     321                        <BorderWidth> 
     322                          <Default>0.5pt</Default> 
     323                        </BorderWidth> 
     324                        <FontSize>8pt</FontSize> 
     325                        <TextAlign>Center</TextAlign> 
     326                        <PaddingLeft>2pt</PaddingLeft> 
     327                        <PaddingRight>2pt</PaddingRight> 
     328                        <PaddingTop>2pt</PaddingTop> 
     329                        <PaddingBottom>2pt</PaddingBottom> 
     330                      </Style> 
     331                      <ZIndex>6</ZIndex> 
     332                      <CanGrow>true</CanGrow> 
     333                      <Value>=Fields!Agent.Value</Value> 
     334                    </Textbox> 
     335                  </ReportItems> 
     336                </TableCell> 
     337                <TableCell> 
     338                  <ReportItems> 
     339                    <Textbox Name="textbox11"> 
     340                      <rd:DefaultName>textbox11</rd:DefaultName> 
     341                      <Style> 
     342                        <BorderColor> 
     343                          <Default>LightGrey</Default> 
     344                        </BorderColor> 
     345                        <BorderStyle> 
     346                          <Default>Solid</Default> 
     347                        </BorderStyle> 
     348                        <BorderWidth> 
     349                          <Default>0.5pt</Default> 
     350                        </BorderWidth> 
     351                        <FontSize>8pt</FontSize> 
     352                        <TextAlign>Center</TextAlign> 
     353                        <PaddingLeft>2pt</PaddingLeft> 
     354                        <PaddingRight>2pt</PaddingRight> 
     355                        <PaddingTop>2pt</PaddingTop> 
     356                        <PaddingBottom>2pt</PaddingBottom> 
     357                      </Style> 
     358                      <ZIndex>5</ZIndex> 
     359                      <CanGrow>true</CanGrow> 
     360                      <Value>=Fields!Tytul.Value</Value> 
     361                    </Textbox> 
     362                  </ReportItems> 
     363                </TableCell> 
     364                <TableCell> 
     365                  <ReportItems> 
     366                    <Textbox Name="textbox6"> 
     367                      <rd:DefaultName>textbox6</rd:DefaultName> 
     368                      <Style> 
     369                        <BorderColor> 
     370                          <Default>LightGrey</Default> 
     371                        </BorderColor> 
     372                        <BorderStyle> 
     373                          <Default>Solid</Default> 
     374                        </BorderStyle> 
     375                        <BorderWidth> 
     376                          <Default>0.5pt</Default> 
     377                        </BorderWidth> 
     378                        <FontSize>8pt</FontSize> 
     379                        <TextAlign>Center</TextAlign> 
     380                        <PaddingLeft>2pt</PaddingLeft> 
     381                        <PaddingRight>2pt</PaddingRight> 
     382                        <PaddingTop>2pt</PaddingTop> 
     383                        <PaddingBottom>2pt</PaddingBottom> 
     384                      </Style> 
     385                      <ZIndex>4</ZIndex> 
     386                      <CanGrow>true</CanGrow> 
     387                      <Value>=Fields!IloscKlientow.Value</Value> 
     388                    </Textbox> 
     389                  </ReportItems> 
     390                </TableCell> 
     391                <TableCell> 
     392                  <ReportItems> 
     393                    <Textbox Name="textbox14"> 
     394                      <rd:DefaultName>textbox14</rd:DefaultName> 
     395                      <Style> 
     396                        <BorderColor> 
     397                          <Default>LightGrey</Default> 
     398                        </BorderColor> 
     399                        <BorderStyle> 
     400                          <Default>Solid</Default> 
     401                        </BorderStyle> 
     402                        <BorderWidth> 
     403                          <Default>0.5pt</Default> 
     404                        </BorderWidth> 
     405                        <FontSize>8pt</FontSize> 
     406                        <Format>C</Format> 
     407                        <TextAlign>Center</TextAlign> 
     408                        <PaddingLeft>2pt</PaddingLeft> 
     409                        <PaddingRight>2pt</PaddingRight> 
     410                        <PaddingTop>2pt</PaddingTop> 
     411                        <PaddingBottom>2pt</PaddingBottom> 
     412                      </Style> 
     413                      <ZIndex>3</ZIndex> 
     414                      <CanGrow>true</CanGrow> 
     415                      <Value>=Fields!SumaNetto.Value</Value> 
     416                    </Textbox> 
     417                  </ReportItems> 
     418                </TableCell> 
     419                <TableCell> 
     420                  <ReportItems> 
     421                    <Textbox Name="textbox17"> 
     422                      <rd:DefaultName>textbox17</rd:DefaultName> 
     423                      <Style> 
     424                        <BorderColor> 
     425                          <Default>LightGrey</Default> 
     426                        </BorderColor> 
     427                        <BorderStyle> 
     428                          <Default>Solid</Default> 
     429                        </BorderStyle> 
     430                        <BorderWidth> 
     431                          <Default>0.5pt</Default> 
     432                        </BorderWidth> 
     433                        <FontSize>8pt</FontSize> 
     434                        <TextAlign>Center</TextAlign> 
     435                        <PaddingLeft>2pt</PaddingLeft> 
     436                        <PaddingRight>2pt</PaddingRight> 
     437                        <PaddingTop>2pt</PaddingTop> 
     438                        <PaddingBottom>2pt</PaddingBottom> 
     439                      </Style> 
     440                      <ZIndex>2</ZIndex> 
     441                      <CanGrow>true</CanGrow> 
     442                      <Value>=Fields!Rok.Value</Value> 
     443                    </Textbox> 
     444                  </ReportItems> 
     445                </TableCell> 
     446                <TableCell> 
     447                  <ReportItems> 
     448                    <Textbox Name="textbox20"> 
     449                      <rd:DefaultName>textbox20</rd:DefaultName> 
     450                      <Style> 
     451                        <BorderColor> 
     452                          <Default>LightGrey</Default> 
     453                        </BorderColor> 
     454                        <BorderStyle> 
     455                          <Default>Solid</Default> 
     456                        </BorderStyle> 
     457                        <BorderWidth> 
     458                          <Default>0.5pt</Default> 
     459                        </BorderWidth> 
     460                        <FontSize>8pt</FontSize> 
     461                        <TextAlign>Center</TextAlign> 
     462                        <PaddingLeft>2pt</PaddingLeft> 
     463                        <PaddingRight>2pt</PaddingRight> 
     464                        <PaddingTop>2pt</PaddingTop> 
     465                        <PaddingBottom>2pt</PaddingBottom> 
     466                      </Style> 
     467                      <ZIndex>1</ZIndex> 
     468                      <CanGrow>true</CanGrow> 
     469                      <Value>=Fields!Kwartal.Value</Value> 
     470                    </Textbox> 
     471                  </ReportItems> 
     472                </TableCell> 
     473                <TableCell> 
     474                  <ReportItems> 
     475                    <Textbox Name="textbox23"> 
     476                      <rd:DefaultName>textbox23</rd:DefaultName> 
     477                      <Style> 
     478                        <BorderColor> 
     479                          <Default>LightGrey</Default> 
     480                        </BorderColor> 
     481                        <BorderStyle> 
     482                          <Default>Solid</Default> 
     483                        </BorderStyle> 
     484                        <BorderWidth> 
     485                          <Default>0.5pt</Default> 
     486                        </BorderWidth> 
     487                        <FontSize>8pt</FontSize> 
     488                        <TextAlign>Center</TextAlign> 
     489                        <PaddingLeft>2pt</PaddingLeft> 
     490                        <PaddingRight>2pt</PaddingRight> 
     491                        <PaddingTop>2pt</PaddingTop> 
     492                        <PaddingBottom>2pt</PaddingBottom> 
     493                      </Style> 
     494                      <CanGrow>true</CanGrow> 
     495                      <Value>=Fields!Miesiac.Value</Value> 
     496                    </Textbox> 
     497                  </ReportItems> 
     498                </TableCell> 
     499              </TableCells> 
     500              <Height>0.63492cm</Height> 
     501            </TableRow> 
     502          </TableRows> 
     503        </Details> 
     504        <Style> 
     505          <BorderColor> 
     506            <Default>LightGrey</Default> 
     507          </BorderColor> 
     508          <BorderStyle> 
     509            <Default>Solid</Default> 
     510          </BorderStyle> 
     511          <BorderWidth> 
     512            <Default>0.5pt</Default> 
     513          </BorderWidth> 
     514        </Style> 
    647515        <Header> 
    648516          <TableRows> 
     
    654522                      <rd:DefaultName>textbox1</rd:DefaultName> 
    655523                      <Style> 
     524                        <BackgroundColor>WhiteSmoke</BackgroundColor> 
     525                        <BorderColor> 
     526                          <Default>LightGrey</Default> 
     527                        </BorderColor> 
     528                        <BorderStyle> 
     529                          <Default>Solid</Default> 
     530                        </BorderStyle> 
     531                        <BorderWidth> 
     532                          <Default>0.5pt</Default> 
     533                        </BorderWidth> 
     534                        <FontSize>8pt</FontSize> 
    656535                        <FontWeight>700</FontWeight> 
    657536                        <TextAlign>Center</TextAlign> 
     
    661540                        <PaddingBottom>2pt</PaddingBottom> 
    662541                      </Style> 
    663                       <ZIndex>19</ZIndex> 
    664                       <CanGrow>true</CanGrow> 
    665                       <Value>rok</Value> 
     542                      <ZIndex>23</ZIndex> 
     543                      <CanGrow>true</CanGrow> 
     544                      <Value>Agencja</Value> 
     545                    </Textbox> 
     546                  </ReportItems> 
     547                </TableCell> 
     548                <TableCell> 
     549                  <ReportItems> 
     550                    <Textbox Name="textbox2"> 
     551                      <rd:DefaultName>textbox2</rd:DefaultName> 
     552                      <Style> 
     553                        <BackgroundColor>WhiteSmoke</BackgroundColor> 
     554                        <BorderColor> 
     555                          <Default>LightGrey</Default> 
     556                        </BorderColor> 
     557                        <BorderStyle> 
     558                          <Default>Solid</Default> 
     559                        </BorderStyle> 
     560                        <BorderWidth> 
     561                          <Default>0.5pt</Default> 
     562                        </BorderWidth> 
     563                        <FontSize>8pt</FontSize> 
     564                        <FontWeight>700</FontWeight> 
     565                        <TextAlign>Center</TextAlign> 
     566                        <PaddingLeft>2pt</PaddingLeft> 
     567                        <PaddingRight>2pt</PaddingRight> 
     568                        <PaddingTop>2pt</PaddingTop> 
     569                        <PaddingBottom>2pt</PaddingBottom> 
     570                      </Style> 
     571                      <ZIndex>22</ZIndex> 
     572                      <CanGrow>true</CanGrow> 
     573                      <Value>Agent</Value> 
    666574                    </Textbox> 
    667575                  </ReportItems> 
     
    672580                      <rd:DefaultName>textbox10</rd:DefaultName> 
    673581                      <Style> 
     582                        <BackgroundColor>WhiteSmoke</BackgroundColor> 
     583                        <BorderColor> 
     584                          <Default>LightGrey</Default> 
     585                        </BorderColor> 
     586                        <BorderStyle> 
     587                          <Default>Solid</Default> 
     588                        </BorderStyle> 
     589                        <BorderWidth> 
     590                          <Default>0.5pt</Default> 
     591                        </BorderWidth> 
     592                        <FontSize>8pt</FontSize> 
    674593                        <FontWeight>700</FontWeight> 
    675594                        <TextAlign>Center</TextAlign> 
     
    679598                        <PaddingBottom>2pt</PaddingBottom> 
    680599                      </Style> 
    681                       <ZIndex>18</ZIndex> 
    682                       <CanGrow>true</CanGrow> 
    683                       <Value>agencja</Value> 
    684                     </Textbox> 
    685                   </ReportItems> 
    686                 </TableCell> 
    687                 <TableCell> 
    688                   <ReportItems> 
    689                     <Textbox Name="textbox4"> 
    690                       <rd:DefaultName>textbox4</rd:DefaultName> 
    691                       <Style> 
    692                         <FontWeight>700</FontWeight> 
    693                         <TextAlign>Center</TextAlign> 
    694                         <PaddingLeft>2pt</PaddingLeft> 
    695                         <PaddingRight>2pt</PaddingRight> 
    696                         <PaddingTop>2pt</PaddingTop> 
    697                         <PaddingBottom>2pt</PaddingBottom> 
    698                       </Style> 
    699                       <ZIndex>17</ZIndex> 
    700                       <CanGrow>true</CanGrow> 
    701                       <Value>agent</Value> 
    702                     </Textbox> 
    703                   </ReportItems> 
    704                 </TableCell> 
    705                 <TableCell> 
    706                   <ReportItems> 
    707                     <Textbox Name="textbox2"> 
    708                       <rd:DefaultName>textbox2</rd:DefaultName> 
    709                       <Style> 
    710                         <FontWeight>700</FontWeight> 
    711                         <TextAlign>Center</TextAlign> 
    712                         <PaddingLeft>2pt</PaddingLeft> 
    713                         <PaddingRight>2pt</PaddingRight> 
    714                         <PaddingTop>2pt</PaddingTop> 
    715                         <PaddingBottom>2pt</PaddingBottom> 
    716                       </Style> 
    717                       <ZIndex>16</ZIndex> 
    718                       <CanGrow>true</CanGrow> 
    719                       <Value>netto</Value> 
     600                      <ZIndex>21</ZIndex> 
     601                      <CanGrow>true</CanGrow> 
     602                      <Value>Tytuł</Value> 
    720603                    </Textbox> 
    721604                  </ReportItems> 
     
    726609                      <rd:DefaultName>textbox3</rd:DefaultName> 
    727610                      <Style> 
     611                        <BackgroundColor>WhiteSmoke</BackgroundColor> 
     612                        <BorderColor> 
     613                          <Default>LightGrey</Default> 
     614                        </BorderColor> 
     615                        <BorderStyle> 
     616                          <Default>Solid</Default> 
     617                        </BorderStyle> 
     618                        <BorderWidth> 
     619                          <Default>0.5pt</Default> 
     620                        </BorderWidth> 
     621                        <FontSize>8pt</FontSize> 
    728622                        <FontWeight>700</FontWeight> 
    729623                        <TextAlign>Center</TextAlign> 
     
    733627                        <PaddingBottom>2pt</PaddingBottom> 
    734628                      </Style> 
    735                       <ZIndex>15</ZIndex> 
    736                       <CanGrow>true</CanGrow> 
    737                       <Value>ilosc</Value> 
     629                      <ZIndex>20</ZIndex> 
     630                      <CanGrow>true</CanGrow> 
     631                      <Value>Ilość klientów</Value> 
     632                    </Textbox> 
     633                  </ReportItems> 
     634                </TableCell> 
     635                <TableCell> 
     636                  <ReportItems> 
     637                    <Textbox Name="textbox13"> 
     638                      <rd:DefaultName>textbox13</rd:DefaultName> 
     639                      <Style> 
     640                        <BackgroundColor>WhiteSmoke</BackgroundColor> 
     641                        <BorderColor> 
     642                          <Default>LightGrey</Default> 
     643                        </BorderColor> 
     644                        <BorderStyle> 
     645                          <Default>Solid</Default> 
     646                        </BorderStyle> 
     647                        <BorderWidth> 
     648                          <Default>0.5pt</Default> 
     649                        </BorderWidth> 
     650                        <FontSize>8pt</FontSize> 
     651                        <FontWeight>700</FontWeight> 
     652                        <TextAlign>Center</TextAlign> 
     653                        <PaddingLeft>2pt</PaddingLeft> 
     654                        <PaddingRight>2pt</PaddingRight> 
     655                        <PaddingTop>2pt</PaddingTop> 
     656                        <PaddingBottom>2pt</PaddingBottom> 
     657                      </Style> 
     658                      <ZIndex>19</ZIndex> 
     659                      <CanGrow>true</CanGrow> 
     660                      <Value>Suma</Value> 
     661                    </Textbox> 
     662                  </ReportItems> 
     663                </TableCell> 
     664                <TableCell> 
     665                  <ReportItems> 
     666                    <Textbox Name="textbox16"> 
     667                      <rd:DefaultName>textbox16</rd:DefaultName> 
     668                      <Style> 
     669                        <BackgroundColor>WhiteSmoke</BackgroundColor> 
     670                        <BorderColor> 
     671                          <Default>LightGrey</Default> 
     672                        </BorderColor> 
     673                        <BorderStyle> 
     674                          <Default>Solid</Default> 
     675                        </BorderStyle> 
     676                        <BorderWidth> 
     677                          <Default>0.5pt</Default> 
     678                        </BorderWidth> 
     679                        <FontSize>8pt</FontSize> 
     680                        <FontWeight>700</FontWeight> 
     681                        <TextAlign>Center</TextAlign> 
     682                        <PaddingLeft>2pt</PaddingLeft> 
     683                        <PaddingRight>2pt</PaddingRight> 
     684                        <PaddingTop>2pt</PaddingTop> 
     685                        <PaddingBottom>2pt</PaddingBottom> 
     686                      </Style> 
     687                      <ZIndex>18</ZIndex> 
     688                      <CanGrow>true</CanGrow> 
     689                      <Value>Rok</Value> 
     690                    </Textbox> 
     691                  </ReportItems> 
     692                </TableCell> 
     693                <TableCell> 
     694                  <ReportItems> 
     695                    <Textbox Name="textbox19"> 
     696                      <rd:DefaultName>textbox19</rd:DefaultName> 
     697                      <Style> 
     698                        <BackgroundColor>WhiteSmoke</BackgroundColor> 
     699                        <BorderColor> 
     700                          <Default>LightGrey</Default> 
     701                        </BorderColor> 
     702                        <BorderStyle> 
     703                          <Default>Solid</Default> 
     704                        </BorderStyle> 
     705                        <BorderWidth> 
     706                          <Default>0.5pt</Default> 
     707                        </BorderWidth> 
     708                        <FontSize>8pt</FontSize> 
     709                        <FontWeight>700</FontWeight> 
     710                        <TextAlign>Center</TextAlign> 
     711                        <PaddingLeft>2pt</PaddingLeft> 
     712                        <PaddingRight>2pt</PaddingRight> 
     713                        <PaddingTop>2pt</PaddingTop> 
     714                        <PaddingBottom>2pt</PaddingBottom> 
     715                      </Style> 
     716                      <ZIndex>17</ZIndex> 
     717                      <CanGrow>true</CanGrow> 
     718                      <Value>Kwartał</Value> 
     719                    </Textbox> 
     720                  </ReportItems> 
     721                </TableCell> 
     722                <TableCell> 
     723                  <ReportItems> 
     724                    <Textbox Name="textbox22"> 
     725                      <rd:DefaultName>textbox22</rd:DefaultName> 
     726                      <Style> 
     727                        <BackgroundColor>WhiteSmoke</BackgroundColor> 
     728                        <BorderColor> 
     729                          <Default>LightGrey</Default> 
     730                        </BorderColor> 
     731                        <BorderStyle> 
     732                          <Default>Solid</Default> 
     733                        </BorderStyle> 
     734                        <BorderWidth> 
     735                          <Default>0.5pt</Default> 
     736                        </BorderWidth> 
     737                        <FontSize>8pt</FontSize> 
     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>16</ZIndex> 
     746                      <CanGrow>true</CanGrow> 
     747                      <Value>MiesiÄ 
     748c</Value> 
    738749                    </Textbox> 
    739750                  </ReportItems> 
    740751                </TableCell> 
    741752              </TableCells> 
    742               <Height>0.75cm</Height> 
     753              <Height>0.63492cm</Height> 
    743754            </TableRow> 
    744755          </TableRows> 
     
    746757        <TableColumns> 
    747758          <TableColumn> 
    748             <Width>3.5cm</Width> 
     759            <Width>4cm</Width> 
    749760          </TableColumn> 
    750761          <TableColumn> 
    751             <Width>4.75cm</Width> 
     762            <Width>3cm</Width> 
    752763          </TableColumn> 
    753764          <TableColumn> 
    754             <Width>4.75cm</Width> 
     765            <Width>2cm</Width> 
    755766          </TableColumn> 
    756767          <TableColumn> 
    757             <Width>4.75cm</Width> 
     768            <Width>2cm</Width> 
    758769          </TableColumn> 
    759770          <TableColumn> 
    760             <Width>4cm</Width> 
     771            <Width>3cm</Width> 
     772          </TableColumn> 
     773          <TableColumn> 
     774            <Width>2cm</Width> 
     775          </TableColumn> 
     776          <TableColumn> 
     777            <Width>1.5cm</Width> 
     778          </TableColumn> 
     779          <TableColumn> 
     780            <Width>1.5cm</Width> 
    761781          </TableColumn> 
    762782        </TableColumns> 
    763         <Height>2.63492cm</Height> 
     783        <Footer> 
     784          <TableRows> 
     785            <TableRow> 
     786              <TableCells> 
     787                <TableCell> 
     788                  <ReportItems> 
     789                    <Textbox Name="textbox7"> 
     790                      <rd:DefaultName>textbox7</rd:DefaultName> 
     791                      <Style> 
     792                        <PaddingLeft>2pt</PaddingLeft> 
     793                        <PaddingRight>2pt</PaddingRight> 
     794                        <PaddingTop>2pt</PaddingTop> 
     795                        <PaddingBottom>2pt</PaddingBottom> 
     796                      </Style> 
     797                      <ZIndex>15</ZIndex> 
     798                      <CanGrow>true</CanGrow> 
     799                      <Value /> 
     800                    </Textbox> 
     801                  </ReportItems> 
     802                </TableCell> 
     803                <TableCell> 
     804                  <ReportItems> 
     805                    <Textbox Name="textbox8"> 
     806                      <rd:DefaultName>textbox8</rd:DefaultName> 
     807                      <Style> 
     808                        <PaddingLeft>2pt</PaddingLeft> 
     809                        <PaddingRight>2pt</PaddingRight> 
     810                        <PaddingTop>2pt</PaddingTop> 
     811                        <PaddingBottom>2pt</PaddingBottom> 
     812                      </Style> 
     813                      <ZIndex>14</ZIndex> 
     814                      <CanGrow>true</CanGrow> 
     815                      <Value /> 
     816                    </Textbox> 
     817                  </ReportItems> 
     818                </TableCell> 
     819                <TableCell> 
     820                  <ReportItems> 
     821                    <Textbox Name="textbox12"> 
     822                      <rd:DefaultName>textbox12</rd:DefaultName> 
     823                      <Style> 
     824                        <PaddingLeft>2pt</PaddingLeft> 
     825                        <PaddingRight>2pt</PaddingRight> 
     826                        <PaddingTop>2pt</PaddingTop> 
     827                        <PaddingBottom>2pt</PaddingBottom> 
     828                      </Style> 
     829                      <ZIndex>13</ZIndex> 
     830                      <CanGrow>true</CanGrow> 
     831                      <Value /> 
     832                    </Textbox> 
     833                  </ReportItems> 
     834                </TableCell> 
     835                <TableCell> 
     836                  <ReportItems> 
     837                    <Textbox Name="textbox9"> 
     838                      <rd:DefaultName>textbox9</rd:DefaultName> 
     839                      <Style> 
     840                        <PaddingLeft>2pt</PaddingLeft> 
     841                        <PaddingRight>2pt</PaddingRight> 
     842                        <PaddingTop>2pt</PaddingTop> 
     843                        <PaddingBottom>2pt</PaddingBottom> 
     844                      </Style> 
     845                      <ZIndex>12</ZIndex> 
     846                      <CanGrow>true</CanGrow> 
     847                      <Value /> 
     848                    </Textbox> 
     849                  </ReportItems> 
     850                </TableCell> 
     851                <TableCell> 
     852                  <ReportItems> 
     853                    <Textbox Name="textbox15"> 
     854                      <rd:DefaultName>textbox15</rd:DefaultName> 
     855                      <Style> 
     856                        <PaddingLeft>2pt</PaddingLeft> 
     857                        <PaddingRight>2pt</PaddingRight> 
     858                        <PaddingTop>2pt</PaddingTop> 
     859                        <PaddingBottom>2pt</PaddingBottom> 
     860                      </Style> 
     861                      <ZIndex>11</ZIndex> 
     862                      <CanGrow>true</CanGrow> 
     863                      <Value /> 
     864                    </Textbox> 
     865                  </ReportItems> 
     866                </TableCell> 
     867                <TableCell> 
     868                  <ReportItems> 
     869                    <Textbox Name="textbox18"> 
     870                      <rd:DefaultName>textbox18</rd:DefaultName> 
     871                      <Style> 
     872                        <PaddingLeft>2pt</PaddingLeft> 
     873                        <PaddingRight>2pt</PaddingRight> 
     874                        <PaddingTop>2pt</PaddingTop> 
     875                        <PaddingBottom>2pt</PaddingBottom> 
     876                      </Style> 
     877                      <ZIndex>10</ZIndex> 
     878                      <CanGrow>true</CanGrow> 
     879                      <Value /> 
     880                    </Textbox> 
     881                  </ReportItems> 
     882                </TableCell> 
     883                <TableCell> 
     884                  <ReportItems> 
     885                    <Textbox Name="textbox21"> 
     886                      <rd:DefaultName>textbox21</rd:DefaultName> 
     887                      <Style> 
     888                        <PaddingLeft>2pt</PaddingLeft> 
     889                        <PaddingRight>2pt</PaddingRight> 
     890                        <PaddingTop>2pt</PaddingTop> 
     891                        <PaddingBottom>2pt</PaddingBottom> 
     892                      </Style> 
     893                      <ZIndex>9</ZIndex> 
     894                      <CanGrow>true</CanGrow> 
     895                      <Value /> 
     896                    </Textbox> 
     897                  </ReportItems> 
     898                </TableCell> 
     899                <TableCell> 
     900                  <ReportItems> 
     901                    <Textbox Name="textbox24"> 
     902                      <rd:DefaultName>textbox24</rd:DefaultName> 
     903                      <Style> 
     904                        <PaddingLeft>2pt</PaddingLeft> 
     905                        <PaddingRight>2pt</PaddingRight> 
     906                        <PaddingTop>2pt</PaddingTop> 
     907                        <PaddingBottom>2pt</PaddingBottom> 
     908                      </Style> 
     909                      <ZIndex>8</ZIndex> 
     910                      <CanGrow>true</CanGrow> 
     911                      <Value /> 
     912                    </Textbox> 
     913                  </ReportItems> 
     914                </TableCell> 
     915              </TableCells> 
     916              <Height>0.63492cm</Height> 
     917            </TableRow> 
     918          </TableRows> 
     919        </Footer> 
    764920      </Table> 
    765921      <Chart Name="chart7"> 
     
    774930        <CategoryAxis> 
    775931          <Axis> 
    776             <Title /> 
     932            <Title> 
     933              <Caption>Okesy</Caption> 
     934              <Style /> 
     935            </Title> 
     936            <Style /> 
    777937            <MajorGridLines> 
    778938              <Style> 
     
    795955          </Axis> 
    796956        </CategoryAxis> 
    797         <ZIndex>1</ZIndex> 
    798         <DataSetName>wgDatyFaktury_ZatwierdzoneDoDruku</DataSetName> 
     957        <DataSetName>IloscKlientow</DataSetName> 
    799958        <PlotArea> 
    800959          <Style> 
     
    821980        <ValueAxis> 
    822981          <Axis> 
    823             <Title /> 
     982            <Title> 
     983              <Caption>Klienci</Caption> 
     984            </Title> 
    824985            <MajorGridLines> 
    825986              <Style> 
     
    8451006        </ValueAxis> 
    8461007        <Type>Column</Type> 
     1008        <Width>27.25cm</Width> 
    8471009        <CategoryGroupings> 
    8481010          <CategoryGrouping> 
     
    8501012              <Grouping Name="chart7_CategoryGroup1"> 
    8511013                <GroupExpressions> 
    852                   <GroupExpression>=Fields!rok.Value</GroupExpression> 
    853                   <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> 
    854                   <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> 
    855                   <GroupExpression>=switch(Parameters!okres.Label="ROK","",Parameters!okres.Label="PÓŁROCZE","",Parameters!okres.Label="KWARTAŁ","",Parameters!okres.Label="MS",Fields!ms.Value)</GroupExpression> 
     1014                  <GroupExpression>=Fields!Rok.Value</GroupExpression> 
     1015                  <GroupExpression>=Switch(Parameters!grupuj.Value=0,Fields!Rok.Value,Parameters!grupuj.Value=1,Fields!Kwartal.Value,Parameters!grupuj.Value=2,Fields!Miesiac.Value)</GroupExpression> 
    8561016                </GroupExpressions> 
    8571017              </Grouping> 
    858               <Label>=switch(Parameters!okres.Label="ROK",Fields!rok.Value,Parameters!okres.Label="PÓŁROCZE",Fields!rok.Value &amp; "/" &amp; Fields!rok_po.Value,Parameters!okres.Label="KWARTAŁ",Fields!rok.Value &amp; "/" &amp; Fields!kw.Value,Parameters!okres.Label="MS",iif(Fields!ms.Value.ToString().Length = 1, Fields!rok.Value &amp; "/0" &amp;  Fields!ms.Value,Fields!rok.Value &amp; "/" &amp;  Fields!ms.Value))</Label> 
     1018              <Label>=Switch(Parameters!grupuj.Value=0,Fields!Rok.Value,Parameters!grupuj.Value=1,Fields!Kwartal.Value,Parameters!grupuj.Value=2,Fields!Miesiac.Value)</Label> 
    8591019            </DynamicCategories> 
    8601020          </CategoryGrouping> 
     
    8671027                <DataValues> 
    8681028                  <DataValue> 
    869                     <Value>=Sum(Fields!netto.Value)</Value> 
     1029                    <Value>=Sum(Fields!IloscKlientow.Value)</Value> 
    8701030                  </DataValue> 
    8711031                </DataValues> 
     
    8741034                    <FontSize>8pt</FontSize> 
    8751035                  </Style> 
    876                   <Value>=Code.Formatuj(Sum(Fields!netto.Value))</Value> 
     1036                  <Value>=Sum(Fields!IloscKlientow.Value)</Value> 
    8771037                  <Position>Top</Position> 
    878                   <Rotation>-90</Rotation> 
    8791038                  <Visible>true</Visible> 
    8801039                </DataLabel> 
     
    8901049        </Style> 
    8911050        <Title> 
    892           <Caption>NETTO - z faktur</Caption> 
    893         </Title> 
    894         <Height>9.25cm</Height> 
    895       </Chart> 
    896       <Chart Name="chart8"> 
    897         <Legend> 
    898           <Style> 
    899             <BorderStyle> 
    900               <Default>Solid</Default> 
    901             </BorderStyle> 
    902           </Style> 
    903           <Position>RightCenter</Position> 
    904         </Legend> 
    905         <CategoryAxis> 
    906           <Axis> 
    907             <Title /> 
    908             <MajorGridLines> 
    909               <Style> 
    910                 <BorderStyle> 
    911                   <Default>Solid</Default> 
    912                 </BorderStyle> 
    913               </Style> 
    914             </MajorGridLines> 
    915             <MinorGridLines> 
    916               <Style> 
    917                 <BorderStyle> 
    918                   <Default>Solid</Default> 
    919                 </BorderStyle> 
    920               </Style> 
    921             </MinorGridLines> 
    922             <MajorTickMarks>Outside</MajorTickMarks> 
    923             <Min>0</Min> 
    924             <Margin>true</Margin> 
    925             <Visible>true</Visible> 
    926           </Axis> 
    927         </CategoryAxis> 
    928         <DataSetName>wgDatyFaktury_ZatwierdzoneDoDruku</DataSetName> 
    929         <PlotArea> 
    930           <Style> 
    931             <BackgroundColor>White</BackgroundColor> 
    932           </Style> 
    933         </PlotArea> 
    934         <ThreeDProperties> 
    935           <Enabled>true</Enabled> 
    936           <Shading>Real</Shading> 
    937           <DrawingStyle>Cylinder</DrawingStyle> 
    938         </ThreeDProperties> 
    939         <PointWidth>0</PointWidth> 
    940         <SeriesGroupings> 
    941           <SeriesGrouping> 
    942             <StaticSeries> 
    943               <StaticMember> 
    944                 <Label>Value1</Label> 
    945               </StaticMember> 
    946             </StaticSeries> 
    947           </SeriesGrouping> 
    948         </SeriesGroupings> 
    949         <Top>9.5cm</Top> 
    950         <Subtype>Plain</Subtype> 
    951         <ValueAxis> 
    952           <Axis> 
    953             <Title /> 
    954             <MajorGridLines> 
    955               <Style> 
    956                 <BorderStyle> 
    957                   <Default>Solid</Default> 
    958                 </BorderStyle> 
    959               </Style> 
    960             </MajorGridLines> 
    961             <MinorGridLines> 
    962               <Style> 
    963                 <BorderStyle> 
    964                   <Default>Solid</Default> 
    965                 </BorderStyle> 
    966               </Style> 
    967             </MinorGridLines> 
    968             <MajorTickMarks>Outside</MajorTickMarks> 
    969             <Min>0</Min> 
    970             <Margin>true</Margin> 
    971             <Visible>true</Visible> 
    972             <Scalar>true</Scalar> 
    973           </Axis> 
    974         </ValueAxis> 
    975         <Type>Column</Type> 
    976         <CategoryGroupings> 
    977           <CategoryGrouping> 
    978             <DynamicCategories> 
    979               <Grouping Name="chart8_CategoryGroup1"> 
    980                 <GroupExpressions> 
    981                   <GroupExpression>=Fields!rok.Value</GroupExpression> 
    982                   <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> 
    983                   <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> 
    984                   <GroupExpression>=switch(Parameters!okres.Label="ROK","",Parameters!okres.Label="PÓŁROCZE","",Parameters!okres.Label="KWARTAŁ","",Parameters!okres.Label="MS",Fields!ms.Value)</GroupExpression> 
    985                 </GroupExpressions> 
    986               </Grouping> 
    987               <Label>=switch(Parameters!okres.Label="ROK",Fields!rok.Value,Parameters!okres.Label="PÓŁROCZE",Fields!rok.Value &amp; "/" &amp; Fields!rok_po.Value,Parameters!okres.Label="KWARTAŁ",Fields!rok.Value &amp; "/" &amp; Fields!kw.Value,Parameters!okres.Label="MS",iif(Fields!ms.Value.ToString().Length = 1, Fields!rok.Value &amp; "/0" &amp;  Fields!ms.Value,Fields!rok.Value &amp; "/" &amp;  Fields!ms.Value))</Label> 
    988             </DynamicCategories> 
    989           </CategoryGrouping> 
    990         </CategoryGroupings> 
    991         <Palette>Default</Palette> 
    992         <ChartData> 
    993           <ChartSeries> 
    994             <DataPoints> 
    995               <DataPoint> 
    996                 <DataValues> 
    997                   <DataValue> 
    998                     <Value>=Sum(Fields!ilosc.Value)</Value> 
    999                   </DataValue> 
    1000                 </DataValues> 
    1001                 <DataLabel> 
    1002                   <Style /> 
    1003                   <Value>=Sum(Fields!ilosc.Value)</Value> 
    1004                   <Position>Top</Position> 
    1005                   <Rotation>-90</Rotation> 
    1006                   <Visible>true</Visible> 
    1007                 </DataLabel> 
    1008                 <Style> 
    1009                   <BackgroundColor>Gold</BackgroundColor> 
    1010                 </Style> 
    1011                 <Marker> 
    1012                   <Size>6pt</Size> 
    1013                 </Marker> 
    1014               </DataPoint> 
    1015             </DataPoints> 
    1016           </ChartSeries> 
    1017         </ChartData> 
    1018         <Style> 
    1019           <BackgroundColor>White</BackgroundColor> 
    1020         </Style> 
    1021         <Title> 
    1022           <Caption>ILOŚĆ - z faktur</Caption> 
     1051          <Caption>Ilość klientów na tytuły</Caption> 
    10231052        </Title> 
    10241053        <Height>9.25cm</Height> 
    10251054      </Chart> 
    10261055    </ReportItems> 
    1027     <Height>21.75cm</Height> 
     1056    <Height>12.90476cm</Height> 
    10281057  </Body> 
    1029   <Language>en-US</Language> 
     1058  <Language>pl-PL</Language> 
    10301059  <TopMargin>1cm</TopMargin> 
    10311060  <PageHeight>21cm</PageHeight> 
  • trunk/RaportySQL/RaportySQL.rptproj

    r365 r377  
    234234    </ProjectItem> 
    235235    <ProjectItem> 
     236      <Name>SzacowanieSprzedazy.rdl</Name> 
     237      <FullPath>SzacowanieSprzedazy.rdl</FullPath> 
     238    </ProjectItem> 
     239    <ProjectItem> 
    236240      <Name>testowyAll.rdl</Name> 
    237241      <FullPath>testowyAll.rdl</FullPath> 
     
    386390    </ProjectItem> 
    387391    <ProjectItem> 
    388       <Name>SzacowanieSprzedazy.rdl</Name> 
    389       <FullPath>SzacowanieSprzedazy.rdl</FullPath> 
     392      <Name>Klienci_IloscNaTytuly.rdl</Name> 
     393      <FullPath>Klienci_IloscNaTytuly.rdl</FullPath> 
    390394    </ProjectItem> 
    391395  </Reports>