Pokaż
Ignoruj:
Data:
2009-07-08 16:41:02 (17 years ago)
Autor:
marek
Opis:

nowy raport z prowizjami dyrektorow

Pliki:
1 skopiowane

Legenda:

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

    r696 r747  
    77    </DataSource> 
    88  </DataSources> 
    9   <InteractiveHeight>29.7cm</InteractiveHeight> 
     9  <InteractiveHeight>21cm</InteractiveHeight> 
    1010  <ReportParameters> 
    11     <ReportParameter Name="prawa_agencje"> 
    12       <DataType>String</DataType> 
    13       <Nullable>true</Nullable> 
    14       <Prompt>prawa_agencje</Prompt> 
    15       <Hidden>true</Hidden> 
    16     </ReportParameter> 
    17     <ReportParameter Name="rok"> 
     11    <ReportParameter Name="year"> 
    1812      <DataType>String</DataType> 
    1913      <DefaultValue> 
     
    2216        </Values> 
    2317      </DefaultValue> 
    24       <Prompt>rok</Prompt> 
     18      <Prompt>Rok:</Prompt> 
    2519      <ValidValues> 
    2620        <DataSetReference> 
     
    3125      </ValidValues> 
    3226    </ReportParameter> 
    33     <ReportParameter Name="miesiac"> 
     27    <ReportParameter Name="month"> 
    3428      <DataType>String</DataType> 
    3529      <DefaultValue> 
    3630        <Values> 
    37           <Value>=Month(Today)</Value> 
     31          <Value>=Month(Today)-1</Value> 
    3832        </Values> 
    3933      </DefaultValue> 
     
    8175      </ValidValues> 
    8276    </ReportParameter> 
    83     <ReportParameter Name="agencja"> 
    84       <DataType>String</DataType> 
    85       <DefaultValue> 
    86         <DataSetReference> 
    87           <DataSetName>ListaAgencji</DataSetName> 
    88           <ValueField>Symbol</ValueField> 
    89         </DataSetReference> 
    90       </DefaultValue> 
    91       <Prompt>agencja</Prompt> 
    92       <ValidValues> 
    93         <DataSetReference> 
    94           <DataSetName>ListaAgencji</DataSetName> 
    95           <ValueField>Symbol</ValueField> 
    96           <LabelField>Symbol</LabelField> 
    97         </DataSetReference> 
    98       </ValidValues> 
    99       <MultiValue>true</MultiValue> 
    100     </ReportParameter> 
    101     <ReportParameter Name="prawa_agent"> 
    102       <DataType>String</DataType> 
    103       <Nullable>true</Nullable> 
    104       <Prompt>prawa_agent</Prompt> 
    105       <Hidden>true</Hidden> 
    106     </ReportParameter> 
    107     <ReportParameter Name="systemKsiegowy"> 
    108       <DataType>String</DataType> 
    109       <DefaultValue> 
    110         <Values> 
    111           <Value>1</Value> 
    112         </Values> 
    113       </DefaultValue> 
    114       <Prompt>Fakturowanie:</Prompt> 
    115       <ValidValues> 
    116         <ParameterValues> 
    117           <ParameterValue> 
    118             <Value>1</Value> 
    119             <Label>AACT</Label> 
    120           </ParameterValue> 
    121           <ParameterValue> 
    122             <Value>2</Value> 
    123             <Label>Sam Press</Label> 
    124           </ParameterValue> 
    125         </ParameterValues> 
    126       </ValidValues> 
    127       <MultiValue>true</MultiValue> 
    128     </ReportParameter> 
    129     <ReportParameter Name="pracownik"> 
    130       <DataType>String</DataType> 
    131       <Nullable>true</Nullable> 
    132       <AllowBlank>true</AllowBlank> 
    133       <Prompt>Pracownicy:</Prompt> 
    134       <ValidValues> 
    135         <ParameterValues> 
    136           <ParameterValue> 
    137             <Value>1</Value> 
    138             <Label>Pracownicy AACT</Label> 
    139           </ParameterValue> 
    140           <ParameterValue> 
    141             <Value>0</Value> 
    142             <Label>Pracownicy Sam Press</Label> 
    143           </ParameterValue> 
    144           <ParameterValue> 
    145             <Label>Wszyscy</Label> 
    146           </ParameterValue> 
    147         </ParameterValues> 
    148       </ValidValues> 
    149     </ReportParameter> 
    15077  </ReportParameters> 
    15178  <rd:DrawGrid>true</rd:DrawGrid> 
    152   <InteractiveWidth>21cm</InteractiveWidth> 
     79  <InteractiveWidth>29.7cm</InteractiveWidth> 
    15380  <rd:GridSpacing>0.25cm</rd:GridSpacing> 
    15481  <rd:SnapToGrid>true</rd:SnapToGrid> 
     
    15784  <BottomMargin>1cm</BottomMargin> 
    15885  <rd:ReportID>1a908918-1fb3-45fd-8bdd-e3ccd2cf8500</rd:ReportID> 
    159   <PageWidth>21cm</PageWidth> 
     86  <PageWidth>29.7cm</PageWidth> 
    16087  <DataSets> 
    16188    <DataSet Name="Prowizje"> 
    16289      <Fields> 
    163         <Field Name="agencja"> 
    164           <DataField>Agencja</DataField> 
     90        <Field Name="BiuroId"> 
     91          <DataField>BiuroId</DataField> 
     92          <rd:TypeName>System.Int32</rd:TypeName> 
     93        </Field> 
     94        <Field Name="Biuro"> 
     95          <DataField>Biuro</DataField> 
    16596          <rd:TypeName>System.String</rd:TypeName> 
    16697        </Field> 
    167         <Field Name="agent"> 
    168           <DataField>Agent</DataField> 
     98        <Field Name="Dyrektor"> 
     99          <DataField>Dyrektor</DataField> 
    169100          <rd:TypeName>System.String</rd:TypeName> 
    170101        </Field> 
    171         <Field Name="Imie"> 
    172           <DataField>Imie</DataField> 
    173           <rd:TypeName>System.String</rd:TypeName> 
    174         </Field> 
    175         <Field Name="Nazwisko"> 
    176           <DataField>Nazwisko</DataField> 
    177           <rd:TypeName>System.String</rd:TypeName> 
    178         </Field> 
    179         <Field Name="IloscFaktur"> 
    180           <DataField>IloscFaktur</DataField> 
    181           <rd:TypeName>System.Int32</rd:TypeName> 
    182         </Field> 
    183         <Field Name="Netto"> 
    184           <DataField>Netto</DataField> 
     102        <Field Name="PodstawaDyrektora"> 
     103          <DataField>PodstawaDyrektora</DataField> 
    185104          <rd:TypeName>System.Decimal</rd:TypeName> 
    186105        </Field> 
    187         <Field Name="Prowizja"> 
    188           <DataField>Prowizja</DataField> 
    189           <rd:TypeName>System.Double</rd:TypeName> 
     106        <Field Name="ProcentWykonaniaPlanuBiura"> 
     107          <DataField>ProcentWykonaniaPlanuBiura</DataField> 
     108          <rd:TypeName>System.Decimal</rd:TypeName> 
    190109        </Field> 
    191         <Field Name="Pracownik"> 
    192           <DataField>Pracownik</DataField> 
    193           <rd:TypeName>System.Boolean</rd:TypeName> 
     110        <Field Name="ProcentWykonaniaPlanuFirmy"> 
     111          <DataField>ProcentWykonaniaPlanuFirmy</DataField> 
     112          <rd:TypeName>System.Decimal</rd:TypeName> 
    194113        </Field> 
    195       </Fields> 
    196       <Filters> 
    197         <Filter> 
    198           <FilterExpression>=Fields!agencja.Value</FilterExpression> 
    199           <Operator>In</Operator> 
    200           <FilterValues> 
    201             <FilterValue>=Parameters!agencja.Value</FilterValue> 
    202           </FilterValues> 
    203         </Filter> 
    204       </Filters> 
    205       <Query> 
    206         <DataSourceName>BAZA_REKLAM</DataSourceName> 
    207         <CommandText>SELECT DISTINCT 
    208 W.Agencja,  
    209 LOWER(W.Symbol) AS Agent,  
    210 A.[Imię] AS Imie, 
    211 A.Nazwisko, 
    212 COUNT(DISTINCT W.ID_FAKTURY) AS IloscFaktur,  
    213 SUM(W.Netto) AS Netto,  
    214 ROUND(SUM(W.Netto * W.procentProwizji), 2) AS Prowizja, 
    215 A.Pracownicy AS Pracownik 
    216 FROM         WplywyByTytul W 
    217 LEFT OUTER JOIN AGENCI A ON A.Symbol=W.Symbol 
    218 INNER JOIN [Plan] P ON A.Symbol=P.Symbol 
    219 WHERE     (YEAR(W.dataWplaty) = @rok) AND (MONTH(W.dataWplaty) = @miesiac) 
    220 AND (W.SystemKsiegowyId IN (@systemKsiegowy)) 
    221 AND (@prawa_agent IS NULL OR W.Symbol=@prawa_agent) 
    222 AND (@pracownik IS NULL OR A.Pracownicy=@pracownik) 
    223 AND W.procentProwizji &gt; 0 
    224 AND P.Rok=@rok and P.Ms = @miesiac 
    225 GROUP BY W.Agencja, W.Symbol, A.[Imię], A.Nazwisko, A.Pracownicy 
    226 ORDER BY W.Agencja, A.Nazwisko, SUM(W.Netto) DESC, ROUND(SUM(W.Netto * W.procentProwizji), 2) DESC</CommandText> 
    227         <QueryParameters> 
    228           <QueryParameter Name="@rok"> 
    229             <Value>=Parameters!rok.Value</Value> 
    230           </QueryParameter> 
    231           <QueryParameter Name="@miesiac"> 
    232             <Value>=Parameters!miesiac.Value</Value> 
    233           </QueryParameter> 
    234           <QueryParameter Name="@systemKsiegowy"> 
    235             <Value>=Parameters!systemKsiegowy.Value</Value> 
    236           </QueryParameter> 
    237           <QueryParameter Name="@prawa_agent"> 
    238             <Value>=Parameters!prawa_agent.Value</Value> 
    239           </QueryParameter> 
    240           <QueryParameter Name="@pracownik"> 
    241             <Value>=Parameters!pracownik.Value</Value> 
    242           </QueryParameter> 
    243         </QueryParameters> 
    244         <rd:UseGenericDesigner>true</rd:UseGenericDesigner> 
    245       </Query> 
    246     </DataSet> 
    247     <DataSet Name="ListaAgentow"> 
    248       <Fields> 
    249         <Field Name="ID_AGENTA"> 
    250           <DataField>ID_AGENTA</DataField> 
    251           <rd:TypeName>System.Int32</rd:TypeName> 
     114        <Field Name="ProcentProwizjiDyrektora"> 
     115          <DataField>ProcentProwizjiDyrektora</DataField> 
     116          <rd:TypeName>System.Decimal</rd:TypeName> 
    252117        </Field> 
    253         <Field Name="Symbol"> 
    254           <DataField>Symbol</DataField> 
    255           <rd:TypeName>System.String</rd:TypeName> 
    256         </Field> 
    257         <Field Name="agencja"> 
    258           <DataField>agencja</DataField> 
    259           <rd:TypeName>System.String</rd:TypeName> 
     118        <Field Name="WyplywyBiura"> 
     119          <DataField>WyplywyBiura</DataField> 
     120          <rd:TypeName>System.Decimal</rd:TypeName> 
    260121        </Field> 
    261122      </Fields> 
    262123      <Query> 
    263124        <DataSourceName>BAZA_REKLAM</DataSourceName> 
    264         <CommandText>SELECT        A.ID_AGENTA, A.Symbol, A2.Symbol agencja 
    265 FROM            AGENCI A left join Agencje A2 
    266 on A.ID_AGENCJI = A2.ID_Agencji 
    267  where aktywny=1 AND  (A2.Symbol in (@agencja) OR A2.Symbol is null) AND (@prawa_agent is null OR A.Symbol=@prawa_agent) 
    268 order by A.Symbol</CommandText> 
     125        <CommandText>DECLARE @procentWykonaniaPlanuFirmy DECIMAL(9,4) 
     126 
     127SELECT @procentWykonaniaPlanuFirmy = dbo.getProcentWykonaniaPlanuFirmy(@year, @month) 
     128 
     129 
     130DECLARE @WplywyNettoBiura TABLE 
     131( 
     132 Id INT, 
     133 Wplywy DECIMAL (18,4) 
     134) 
     135 
     136INSERT INTO @WplywyNettoBiura 
     137SELECT AgencjaId, CAST(SUM(Netto) AS DECIMAL(18,2)) AS WplywyNetto 
     138FROM         dbo.WplywyByTytul 
     139WHERE      
     140YEAR(dataWplaty) = @year  
     141AND MONTH(dataWplaty) = @month 
     142GROUP BY AgencjaId 
     143 
     144 
     145SELECT  
     146A.Id_Agencji AS BiuroId,  
     147A.Symbol AS Biuro,  
     148U.Imie + ' ' +  U.Nazwisko AS Dyrektor,  
     149H.ProwizjaDyrektora AS PodstawaDyrektora, 
     150dbo.getProcentWykonaniaPlanu(A.Id_Agencji, @year, @month) AS ProcentWykonaniaPlanuBiura, 
     151@procentWykonaniaPlanuFirmy AS ProcentWykonaniaPlanuFirmy, 
     152dbo.getProcentProwizjiDyrektora(H.ProwizjaDyrektora, dbo.getProcentWykonaniaPlanu(A.Id_Agencji, @year, @month), @procentWykonaniaPlanuFirmy) AS ProcentProwizjiDyrektora, 
     153W.Wplywy AS WyplywyBiura 
     154FROM dbo.UserAgency AS UA 
     155INNER JOIN dbo.Uzytkownicy AS U ON U.Id = UA.UserId 
     156INNER JOIN dbo.Agencje AS A ON A.Id_Agencji = UA.AgencyId 
     157INNER JOIN dbo.Agenci AS H ON H.Symbol = U.Login 
     158LEFT OUTER JOIN @WplywyNettoBiura W ON W.Id = A.Id_Agencji 
     159WHERE U.Nazwisko IN ('Pepłoński', 'Zielonka', 'Klimczak')</CommandText> 
    269160        <QueryParameters> 
    270           <QueryParameter Name="@agencja"> 
    271             <Value>=Parameters!agencja.Value</Value> 
     161          <QueryParameter Name="@year"> 
     162            <Value>=Parameters!year.Value</Value> 
    272163          </QueryParameter> 
    273           <QueryParameter Name="@prawa_agent"> 
    274             <Value>=Parameters!prawa_agent.Value</Value> 
    275           </QueryParameter> 
    276         </QueryParameters> 
    277         <rd:UseGenericDesigner>true</rd:UseGenericDesigner> 
    278       </Query> 
    279     </DataSet> 
    280     <DataSet Name="ListaAgencji"> 
    281       <Fields> 
    282         <Field Name="Id_agencji"> 
    283           <DataField>Id_agencji</DataField> 
    284           <rd:TypeName>System.Int32</rd:TypeName> 
    285         </Field> 
    286         <Field Name="Symbol"> 
    287           <DataField>Symbol</DataField> 
    288           <rd:TypeName>System.String</rd:TypeName> 
    289         </Field> 
    290       </Fields> 
    291       <Query> 
    292         <DataSourceName>BAZA_REKLAM</DataSourceName> 
    293         <CommandText>SELECT        Id_agencji, Symbol 
    294 FROM            AGENCJE where aktywna=1 and (@prawa_agencje is null or @prawa_agencje= Id_agencji)</CommandText> 
    295         <QueryParameters> 
    296           <QueryParameter Name="@prawa_agencje"> 
    297             <Value>=Parameters!prawa_agencje.Value</Value> 
     164          <QueryParameter Name="@month"> 
     165            <Value>=Parameters!month.Value</Value> 
    298166          </QueryParameter> 
    299167        </QueryParameters> 
     
    324192  Return s 
    325193End Function</Code> 
    326   <Width>19cm</Width> 
     194  <Width>22.02645cm</Width> 
    327195  <Body> 
    328196    <ColumnSpacing>1cm</ColumnSpacing> 
    329197    <ReportItems> 
    330       <Textbox Name="textbox4"> 
    331         <rd:DefaultName>textbox4</rd:DefaultName> 
    332         <Top>4.25cm</Top> 
    333         <Width>7.5cm</Width> 
    334         <Style> 
    335           <PaddingLeft>2pt</PaddingLeft> 
    336           <PaddingRight>2pt</PaddingRight> 
    337           <PaddingTop>2pt</PaddingTop> 
    338           <PaddingBottom>2pt</PaddingBottom> 
    339         </Style> 
    340         <ZIndex>2</ZIndex> 
    341         <CanGrow>true</CanGrow> 
    342         <Left>1cm</Left> 
    343         <Height>0.63492cm</Height> 
    344         <Value>* - suma wpływów zaliczonych do prowizji</Value> 
    345       </Textbox> 
    346198      <Textbox Name="textbox6"> 
    347199        <rd:DefaultName>textbox6</rd:DefaultName> 
     
    361213        <Left>1cm</Left> 
    362214        <Height>0.75cm</Height> 
    363         <Value>="Rozliczenie prowizji za reklamę za rok: " &amp; Parameters!rok.Value &amp; "  miesiÄ 
    364 c: " &amp; CStr(Parameters!miesiac.Value)</Value> 
     215        <Value>="Rozliczenie prowizji dyrektorów za rok: " &amp; Parameters!year.Value &amp; "  miesiÄ 
     216c: " &amp; CStr(Parameters!month.Value)</Value> 
    365217      </Textbox> 
    366218      <Table Name="table1"> 
    367219        <DataSetName>Prowizje</DataSetName> 
    368220        <Top>1.75cm</Top> 
    369         <Width>17.02645cm</Width> 
    370221        <Details> 
    371222          <TableRows> 
     
    394245                        <PaddingBottom>2pt</PaddingBottom> 
    395246                      </Style> 
    396                       <ZIndex>6</ZIndex> 
    397                       <CanGrow>true</CanGrow> 
    398                       <Value>=Fields!agencja.Value</Value> 
     247                      <ZIndex>7</ZIndex> 
     248                      <CanGrow>true</CanGrow> 
     249                      <Value>=Fields!Biuro.Value</Value> 
    399250                    </Textbox> 
    400251                  </ReportItems> 
     
    422273                        <PaddingBottom>2pt</PaddingBottom> 
    423274                      </Style> 
     275                      <ZIndex>6</ZIndex> 
     276                      <CanGrow>true</CanGrow> 
     277                      <Value>=Fields!Dyrektor.Value</Value> 
     278                    </Textbox> 
     279                  </ReportItems> 
     280                </TableCell> 
     281                <TableCell> 
     282                  <ReportItems> 
     283                    <Textbox Name="IloscFaktur"> 
     284                      <Style> 
     285                        <BorderColor> 
     286                          <Default>LightGrey</Default> 
     287                        </BorderColor> 
     288                        <BorderStyle> 
     289                          <Default>Solid</Default> 
     290                        </BorderStyle> 
     291                        <BorderWidth> 
     292                          <Default>0.5pt</Default> 
     293                        </BorderWidth> 
     294                        <FontSize>9pt</FontSize> 
     295                        <Format>P</Format> 
     296                        <TextAlign>Center</TextAlign> 
     297                        <VerticalAlign>Middle</VerticalAlign> 
     298                        <PaddingLeft>2pt</PaddingLeft> 
     299                        <PaddingRight>2pt</PaddingRight> 
     300                        <PaddingTop>2pt</PaddingTop> 
     301                        <PaddingBottom>2pt</PaddingBottom> 
     302                      </Style> 
    424303                      <ZIndex>5</ZIndex> 
    425304                      <CanGrow>true</CanGrow> 
    426                       <Value>=Fields!agent.Value</Value> 
    427                     </Textbox> 
    428                   </ReportItems> 
    429                 </TableCell> 
    430                 <TableCell> 
    431                   <ReportItems> 
    432                     <Textbox Name="IloscFaktur"> 
    433                       <Style> 
    434                         <BorderColor> 
    435                           <Default>LightGrey</Default> 
    436                         </BorderColor> 
    437                         <BorderStyle> 
    438                           <Default>Solid</Default> 
    439                         </BorderStyle> 
    440                         <BorderWidth> 
    441                           <Default>0.5pt</Default> 
    442                         </BorderWidth> 
    443                         <FontSize>9pt</FontSize> 
    444                         <TextAlign>Center</TextAlign> 
    445                         <VerticalAlign>Middle</VerticalAlign> 
    446                         <PaddingLeft>2pt</PaddingLeft> 
    447                         <PaddingRight>2pt</PaddingRight> 
    448                         <PaddingTop>2pt</PaddingTop> 
    449                         <PaddingBottom>2pt</PaddingBottom> 
    450                       </Style> 
    451                       <ZIndex>4</ZIndex> 
    452                       <CanGrow>true</CanGrow> 
    453                       <Value>=Fields!IloscFaktur.Value</Value> 
     305                      <Value>=Fields!PodstawaDyrektora.Value</Value> 
    454306                    </Textbox> 
    455307                  </ReportItems> 
     
    470322                        </BorderWidth> 
    471323                        <FontSize>9pt</FontSize> 
    472                         <TextAlign>Center</TextAlign> 
    473                         <VerticalAlign>Middle</VerticalAlign> 
    474                         <PaddingLeft>2pt</PaddingLeft> 
    475                         <PaddingRight>2pt</PaddingRight> 
    476                         <PaddingTop>2pt</PaddingTop> 
    477                         <PaddingBottom>2pt</PaddingBottom> 
    478                       </Style> 
    479                       <ZIndex>3</ZIndex> 
    480                       <CanGrow>true</CanGrow> 
    481                       <Value>=Fields!Imie.Value</Value> 
     324                        <Format>P</Format> 
     325                        <TextAlign>Center</TextAlign> 
     326                        <VerticalAlign>Middle</VerticalAlign> 
     327                        <PaddingLeft>2pt</PaddingLeft> 
     328                        <PaddingRight>2pt</PaddingRight> 
     329                        <PaddingTop>2pt</PaddingTop> 
     330                        <PaddingBottom>2pt</PaddingBottom> 
     331                      </Style> 
     332                      <ZIndex>4</ZIndex> 
     333                      <CanGrow>true</CanGrow> 
     334                      <Value>=Fields!ProcentWykonaniaPlanuBiura.Value</Value> 
    482335                    </Textbox> 
    483336                  </ReportItems> 
     
    498351                        </BorderWidth> 
    499352                        <FontSize>9pt</FontSize> 
    500                         <TextAlign>Center</TextAlign> 
    501                         <VerticalAlign>Middle</VerticalAlign> 
    502                         <PaddingLeft>2pt</PaddingLeft> 
    503                         <PaddingRight>2pt</PaddingRight> 
    504                         <PaddingTop>2pt</PaddingTop> 
    505                         <PaddingBottom>2pt</PaddingBottom> 
    506                       </Style> 
    507                       <ZIndex>2</ZIndex> 
    508                       <CanGrow>true</CanGrow> 
    509                       <Value>=Fields!Nazwisko.Value</Value> 
     353                        <Format>P</Format> 
     354                        <TextAlign>Center</TextAlign> 
     355                        <VerticalAlign>Middle</VerticalAlign> 
     356                        <PaddingLeft>2pt</PaddingLeft> 
     357                        <PaddingRight>2pt</PaddingRight> 
     358                        <PaddingTop>2pt</PaddingTop> 
     359                        <PaddingBottom>2pt</PaddingBottom> 
     360                      </Style> 
     361                      <ZIndex>3</ZIndex> 
     362                      <CanGrow>true</CanGrow> 
     363                      <Value>=Fields!ProcentWykonaniaPlanuFirmy.Value</Value> 
    510364                    </Textbox> 
    511365                  </ReportItems> 
     
    526380                        </BorderWidth> 
    527381                        <FontSize>9pt</FontSize> 
    528                         <Format>C</Format> 
     382                        <Format>P</Format> 
    529383                        <TextAlign>Center</TextAlign> 
    530384                        <VerticalAlign>Middle</VerticalAlign> 
     
    535389                        <Language>pl</Language> 
    536390                      </Style> 
    537                       <ZIndex>1</ZIndex> 
    538                       <CanGrow>true</CanGrow> 
    539                       <Value>=Fields!Netto.Value</Value> 
     391                      <ZIndex>2</ZIndex> 
     392                      <CanGrow>true</CanGrow> 
     393                      <Value>=Fields!ProcentProwizjiDyrektora.Value</Value> 
    540394                    </Textbox> 
    541395                  </ReportItems> 
     
    565419                        <Language>pl</Language> 
    566420                      </Style> 
    567                       <CanGrow>true</CanGrow> 
    568                       <Value>=Fields!Prowizja.Value</Value> 
     421                      <ZIndex>1</ZIndex> 
     422                      <CanGrow>true</CanGrow> 
     423                      <Value>=Fields!WyplywyBiura.Value</Value> 
     424                    </Textbox> 
     425                  </ReportItems> 
     426                </TableCell> 
     427                <TableCell> 
     428                  <ReportItems> 
     429                    <Textbox Name="textbox10"> 
     430                      <rd:DefaultName>textbox10</rd:DefaultName> 
     431                      <Style> 
     432                        <BorderColor> 
     433                          <Default>LightGrey</Default> 
     434                        </BorderColor> 
     435                        <BorderStyle> 
     436                          <Default>Solid</Default> 
     437                        </BorderStyle> 
     438                        <BorderWidth> 
     439                          <Default>0.5pt</Default> 
     440                        </BorderWidth> 
     441                        <FontSize>9pt</FontSize> 
     442                        <Format>C</Format> 
     443                        <TextAlign>Center</TextAlign> 
     444                        <VerticalAlign>Middle</VerticalAlign> 
     445                        <PaddingLeft>2pt</PaddingLeft> 
     446                        <PaddingRight>2pt</PaddingRight> 
     447                        <PaddingTop>2pt</PaddingTop> 
     448                        <PaddingBottom>2pt</PaddingBottom> 
     449                      </Style> 
     450                      <CanGrow>true</CanGrow> 
     451                      <Value>=Fields!ProcentProwizjiDyrektora.Value*Fields!WyplywyBiura.Value</Value> 
    569452                    </Textbox> 
    570453                  </ReportItems> 
     
    603486                        <PaddingBottom>2pt</PaddingBottom> 
    604487                      </Style> 
    605                       <ZIndex>20</ZIndex> 
    606                       <CanGrow>true</CanGrow> 
    607                       <Value>Agencja</Value> 
     488                      <ZIndex>23</ZIndex> 
     489                      <CanGrow>true</CanGrow> 
     490                      <Value>Biuro</Value> 
    608491                    </Textbox> 
    609492                  </ReportItems> 
     
    633516                        <PaddingBottom>2pt</PaddingBottom> 
    634517                      </Style> 
    635                       <ZIndex>19</ZIndex> 
    636                       <CanGrow>true</CanGrow> 
    637                       <Value>Agent</Value> 
     518                      <ZIndex>22</ZIndex> 
     519                      <CanGrow>true</CanGrow> 
     520                      <Value>Dyrektor</Value> 
    638521                    </Textbox> 
    639522                  </ReportItems> 
     
    663546                        <PaddingBottom>2pt</PaddingBottom> 
    664547                      </Style> 
    665                       <ZIndex>18</ZIndex> 
    666                       <CanGrow>true</CanGrow> 
    667                       <Value>Ilość</Value> 
     548                      <ZIndex>21</ZIndex> 
     549                      <CanGrow>true</CanGrow> 
     550                      <Value>Podstawa dyrekotra</Value> 
    668551                    </Textbox> 
    669552                  </ReportItems> 
     
    693576                        <PaddingBottom>2pt</PaddingBottom> 
    694577                      </Style> 
    695                       <ZIndex>17</ZIndex> 
    696                       <CanGrow>true</CanGrow> 
    697                       <Value>Imię</Value> 
     578                      <ZIndex>20</ZIndex> 
     579                      <CanGrow>true</CanGrow> 
     580                      <Value>Wykonany plan biura</Value> 
    698581                    </Textbox> 
    699582                  </ReportItems> 
     
    723606                        <PaddingBottom>2pt</PaddingBottom> 
    724607                      </Style> 
    725                       <ZIndex>16</ZIndex> 
    726                       <CanGrow>true</CanGrow> 
    727                       <Value>Nazwisko</Value> 
     608                      <ZIndex>19</ZIndex> 
     609                      <CanGrow>true</CanGrow> 
     610                      <Value>Wykonany plan firmy</Value> 
    728611                    </Textbox> 
    729612                  </ReportItems> 
     
    753636                        <PaddingBottom>2pt</PaddingBottom> 
    754637                      </Style> 
    755                       <ZIndex>15</ZIndex> 
    756                       <CanGrow>true</CanGrow> 
    757                       <Value>Wpływy netto*</Value> 
     638                      <ZIndex>18</ZIndex> 
     639                      <CanGrow>true</CanGrow> 
     640                      <Value>Procent prowizji dyrekotra</Value> 
    758641                    </Textbox> 
    759642                  </ReportItems> 
     
    783666                        <PaddingBottom>2pt</PaddingBottom> 
    784667                      </Style> 
    785                       <ZIndex>14</ZIndex> 
    786                       <CanGrow>true</CanGrow> 
    787                       <Value>Prowizja od wpływów</Value> 
     668                      <ZIndex>17</ZIndex> 
     669                      <CanGrow>true</CanGrow> 
     670                      <Value>Wpływy biura</Value> 
     671                    </Textbox> 
     672                  </ReportItems> 
     673                </TableCell> 
     674                <TableCell> 
     675                  <ReportItems> 
     676                    <Textbox Name="textbox5"> 
     677                      <rd:DefaultName>textbox5</rd:DefaultName> 
     678                      <Style> 
     679                        <BackgroundColor>WhiteSmoke</BackgroundColor> 
     680                        <BorderColor> 
     681                          <Default>LightGrey</Default> 
     682                        </BorderColor> 
     683                        <BorderStyle> 
     684                          <Default>Solid</Default> 
     685                        </BorderStyle> 
     686                        <BorderWidth> 
     687                          <Default>0.5pt</Default> 
     688                        </BorderWidth> 
     689                        <FontSize>9pt</FontSize> 
     690                        <FontWeight>700</FontWeight> 
     691                        <TextAlign>Center</TextAlign> 
     692                        <VerticalAlign>Middle</VerticalAlign> 
     693                        <PaddingLeft>2pt</PaddingLeft> 
     694                        <PaddingRight>2pt</PaddingRight> 
     695                        <PaddingTop>2pt</PaddingTop> 
     696                        <PaddingBottom>2pt</PaddingBottom> 
     697                      </Style> 
     698                      <ZIndex>16</ZIndex> 
     699                      <CanGrow>true</CanGrow> 
     700                      <Value>Prowizja</Value> 
    788701                    </Textbox> 
    789702                  </ReportItems> 
     
    799712          </TableColumn> 
    800713          <TableColumn> 
    801             <Width>2.75cm</Width> 
     714            <Width>3.75cm</Width> 
    802715          </TableColumn> 
    803716          <TableColumn> 
    804             <Width>1.25cm</Width> 
     717            <Width>2cm</Width> 
    805718          </TableColumn> 
    806719          <TableColumn> 
     
    811724          </TableColumn> 
    812725          <TableColumn> 
    813             <Width>2.25cm</Width> 
     726            <Width>3cm</Width> 
     727          </TableColumn> 
     728          <TableColumn> 
     729            <Width>2.5cm</Width> 
    814730          </TableColumn> 
    815731          <TableColumn> 
     
    817733          </TableColumn> 
    818734        </TableColumns> 
    819         <Height>2.26984cm</Height> 
    820735        <Footer> 
    821736          <TableRows> 
     
    844759                        <PaddingBottom>2pt</PaddingBottom> 
    845760                      </Style> 
    846                       <ZIndex>13</ZIndex> 
     761                      <ZIndex>15</ZIndex> 
    847762                      <CanGrow>true</CanGrow> 
    848763                      <Value /> 
     
    872787                        <PaddingBottom>2pt</PaddingBottom> 
    873788                      </Style> 
    874                       <ZIndex>12</ZIndex> 
     789                      <ZIndex>14</ZIndex> 
    875790                      <CanGrow>true</CanGrow> 
    876791                      <Value /> 
     
    900815                        <PaddingBottom>2pt</PaddingBottom> 
    901816                      </Style> 
    902                       <ZIndex>11</ZIndex> 
     817                      <ZIndex>13</ZIndex> 
    903818                      <CanGrow>true</CanGrow> 
    904819                      <Value /> 
     
    928843                        <PaddingBottom>2pt</PaddingBottom> 
    929844                      </Style> 
     845                      <ZIndex>12</ZIndex> 
     846                      <CanGrow>true</CanGrow> 
     847                      <Value /> 
     848                    </Textbox> 
     849                  </ReportItems> 
     850                </TableCell> 
     851                <TableCell> 
     852                  <ReportItems> 
     853                    <Textbox Name="textbox14"> 
     854                      <rd:DefaultName>textbox14</rd:DefaultName> 
     855                      <Style> 
     856                        <BorderColor> 
     857                          <Default>LightGrey</Default> 
     858                        </BorderColor> 
     859                        <BorderStyle> 
     860                          <Default>Solid</Default> 
     861                        </BorderStyle> 
     862                        <BorderWidth> 
     863                          <Default>0.5pt</Default> 
     864                        </BorderWidth> 
     865                        <PaddingLeft>2pt</PaddingLeft> 
     866                        <PaddingRight>2pt</PaddingRight> 
     867                        <PaddingTop>2pt</PaddingTop> 
     868                        <PaddingBottom>2pt</PaddingBottom> 
     869                      </Style> 
     870                      <ZIndex>11</ZIndex> 
     871                      <CanGrow>true</CanGrow> 
     872                      <Value /> 
     873                    </Textbox> 
     874                  </ReportItems> 
     875                </TableCell> 
     876                <TableCell> 
     877                  <ReportItems> 
     878                    <Textbox Name="textbox13"> 
     879                      <Style> 
     880                        <BackgroundColor>WhiteSmoke</BackgroundColor> 
     881                        <BorderColor> 
     882                          <Default>LightGrey</Default> 
     883                        </BorderColor> 
     884                        <BorderStyle> 
     885                          <Default>Solid</Default> 
     886                        </BorderStyle> 
     887                        <BorderWidth> 
     888                          <Default>0.5pt</Default> 
     889                        </BorderWidth> 
     890                        <FontSize>9pt</FontSize> 
     891                        <FontWeight>700</FontWeight> 
     892                        <TextAlign>Center</TextAlign> 
     893                        <VerticalAlign>Middle</VerticalAlign> 
     894                        <PaddingLeft>2pt</PaddingLeft> 
     895                        <PaddingRight>2pt</PaddingRight> 
     896                        <PaddingTop>2pt</PaddingTop> 
     897                        <PaddingBottom>2pt</PaddingBottom> 
     898                      </Style> 
    930899                      <ZIndex>10</ZIndex> 
    931900                      <CanGrow>true</CanGrow> 
    932                       <Value /> 
    933                     </Textbox> 
    934                   </ReportItems> 
    935                 </TableCell> 
    936                 <TableCell> 
    937                   <ReportItems> 
    938                     <Textbox Name="textbox17"> 
    939                       <rd:DefaultName>textbox17</rd:DefaultName> 
    940                       <Style> 
    941                         <BackgroundColor>WhiteSmoke</BackgroundColor> 
    942                         <BorderColor> 
    943                           <Default>LightGrey</Default> 
    944                         </BorderColor> 
    945                         <BorderStyle> 
    946                           <Default>Solid</Default> 
    947                         </BorderStyle> 
    948                         <BorderWidth> 
    949                           <Default>0.5pt</Default> 
    950                         </BorderWidth> 
    951                         <FontSize>9pt</FontSize> 
    952                         <FontWeight>700</FontWeight> 
     901                      <Value>RAZEM:</Value> 
     902                    </Textbox> 
     903                  </ReportItems> 
     904                </TableCell> 
     905                <TableCell> 
     906                  <ReportItems> 
     907                    <Textbox Name="textbox4"> 
     908                      <Style> 
     909                        <BackgroundColor>WhiteSmoke</BackgroundColor> 
     910                        <BorderColor> 
     911                          <Default>LightGrey</Default> 
     912                        </BorderColor> 
     913                        <BorderStyle> 
     914                          <Default>Solid</Default> 
     915                        </BorderStyle> 
     916                        <BorderWidth> 
     917                          <Default>0.5pt</Default> 
     918                        </BorderWidth> 
     919                        <FontSize>9pt</FontSize> 
     920                        <FontWeight>700</FontWeight> 
     921                        <Format>C</Format> 
    953922                        <TextAlign>Center</TextAlign> 
    954923                        <VerticalAlign>Middle</VerticalAlign> 
     
    960929                      <ZIndex>9</ZIndex> 
    961930                      <CanGrow>true</CanGrow> 
    962                       <Value>RAZEM:</Value> 
    963                     </Textbox> 
    964                   </ReportItems> 
    965                 </TableCell> 
    966                 <TableCell> 
    967                   <ReportItems> 
    968                     <Textbox Name="nn_1"> 
    969                       <rd:DefaultName>nn_1</rd:DefaultName> 
     931                      <Value>=Sum(Fields!WyplywyBiura.Value)</Value> 
     932                    </Textbox> 
     933                  </ReportItems> 
     934                </TableCell> 
     935                <TableCell> 
     936                  <ReportItems> 
     937                    <Textbox Name="textbox11"> 
     938                      <rd:DefaultName>textbox11</rd:DefaultName> 
    970939                      <Style> 
    971940                        <BackgroundColor>WhiteSmoke</BackgroundColor> 
     
    988957                        <PaddingTop>2pt</PaddingTop> 
    989958                        <PaddingBottom>2pt</PaddingBottom> 
    990                         <Language>pl</Language> 
    991959                      </Style> 
    992960                      <ZIndex>8</ZIndex> 
    993961                      <CanGrow>true</CanGrow> 
    994                       <Value>=Sum(Fields!Netto.Value)</Value> 
    995                     </Textbox> 
    996                   </ReportItems> 
    997                 </TableCell> 
    998                 <TableCell> 
    999                   <ReportItems> 
    1000                     <Textbox Name="pp_1"> 
    1001                       <rd:DefaultName>pp_1</rd:DefaultName> 
    1002                       <Style> 
    1003                         <BackgroundColor>WhiteSmoke</BackgroundColor> 
    1004                         <BorderColor> 
    1005                           <Default>LightGrey</Default> 
    1006                         </BorderColor> 
    1007                         <BorderStyle> 
    1008                           <Default>Solid</Default> 
    1009                         </BorderStyle> 
    1010                         <BorderWidth> 
    1011                           <Default>0.5pt</Default> 
    1012                         </BorderWidth> 
    1013                         <FontSize>9pt</FontSize> 
    1014                         <FontWeight>700</FontWeight> 
    1015                         <Format>C</Format> 
    1016                         <TextAlign>Center</TextAlign> 
    1017                         <VerticalAlign>Middle</VerticalAlign> 
    1018                         <PaddingLeft>2pt</PaddingLeft> 
    1019                         <PaddingRight>2pt</PaddingRight> 
    1020                         <PaddingTop>2pt</PaddingTop> 
    1021                         <PaddingBottom>2pt</PaddingBottom> 
    1022                         <Language>pl</Language> 
    1023                       </Style> 
    1024                       <ZIndex>7</ZIndex> 
    1025                       <CanGrow>true</CanGrow> 
    1026                       <Value>=Sum(Fields!Prowizja.Value)</Value> 
     962                      <Value>=Sum(Fields!ProcentProwizjiDyrektora.Value*Fields!WyplywyBiura.Value)</Value> 
    1027963                    </Textbox> 
    1028964                  </ReportItems> 
     
    1033969          </TableRows> 
    1034970        </Footer> 
    1035         <Left>1cm</Left> 
    1036971      </Table> 
    1037972    </ReportItems> 
    1038     <Height>5.13492cm</Height> 
     973    <Height>4.01984cm</Height> 
    1039974  </Body> 
    1040   <Language>en-US</Language> 
     975  <Language>pl-PL</Language> 
    1041976  <TopMargin>1cm</TopMargin> 
    1042   <PageHeight>29.7cm</PageHeight> 
     977  <PageHeight>21cm</PageHeight> 
    1043978</Report>