Zbiór zmian 334 dla trunk/RaportySQL

Pokaż
Ignoruj:
Data:
2009-02-11 14:33:19 (17 years ago)
Autor:
marek
Opis:

re #86 - nowy raport KlienciWgDatyReklamy?

Lokalizacja:
trunk/RaportySQL
Pliki:
2 zmodyfikowane
1 skopiowane

Legenda:

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

    r333 r334  
    129129      <MultiValue>true</MultiValue> 
    130130    </ReportParameter> 
     131    <ReportParameter Name="sortuj"> 
     132      <DataType>String</DataType> 
     133      <DefaultValue> 
     134        <Values> 
     135          <Value>0</Value> 
     136        </Values> 
     137      </DefaultValue> 
     138      <AllowBlank>true</AllowBlank> 
     139      <Prompt>Sortuj:</Prompt> 
     140      <ValidValues> 
     141        <ParameterValues> 
     142          <ParameterValue> 
     143            <Value>0</Value> 
     144            <Label>Symbol, Nazwa</Label> 
     145          </ParameterValue> 
     146          <ParameterValue> 
     147            <Value>1</Value> 
     148            <Label>Suma</Label> 
     149          </ParameterValue> 
     150        </ParameterValues> 
     151      </ValidValues> 
     152    </ReportParameter> 
    131153  </ReportParameters> 
    132154  <rd:DrawGrid>true</rd:DrawGrid> 
     
    140162  <PageWidth>21cm</PageWidth> 
    141163  <DataSets> 
    142     <DataSet Name="ListaFaktur"> 
     164    <DataSet Name="ListaKlientow"> 
    143165      <Fields> 
    144         <Field Name="Id"> 
    145           <DataField>Id</DataField> 
    146           <rd:TypeName>System.Int32</rd:TypeName> 
    147         </Field> 
    148         <Field Name="NumerFaktury"> 
    149           <DataField>NumerFaktury</DataField> 
    150           <rd:TypeName>System.String</rd:TypeName> 
    151         </Field> 
    152         <Field Name="NUMER"> 
    153           <DataField>Numer</DataField> 
    154           <rd:TypeName>System.Int32</rd:TypeName> 
    155         </Field> 
    156         <Field Name="Netto"> 
    157           <DataField>Netto</DataField> 
     166        <Field Name="KlientSymbol"> 
     167          <DataField>KlientSymbol</DataField> 
     168          <rd:TypeName>System.String</rd:TypeName> 
     169        </Field> 
     170        <Field Name="KlientNazwa"> 
     171          <DataField>KlientNazwa</DataField> 
     172          <rd:TypeName>System.String</rd:TypeName> 
     173        </Field> 
     174        <Field Name="KlientUlica"> 
     175          <DataField>KlientUlica</DataField> 
     176          <rd:TypeName>System.String</rd:TypeName> 
     177        </Field> 
     178        <Field Name="KlientMiasto"> 
     179          <DataField>KlientMiasto</DataField> 
     180          <rd:TypeName>System.String</rd:TypeName> 
     181        </Field> 
     182        <Field Name="KlientKod"> 
     183          <DataField>KlientKod</DataField> 
     184          <rd:TypeName>System.String</rd:TypeName> 
     185        </Field> 
     186        <Field Name="KlientKraj"> 
     187          <DataField>KlientKraj</DataField> 
     188          <rd:TypeName>System.String</rd:TypeName> 
     189        </Field> 
     190        <Field Name="KlientTel"> 
     191          <DataField>KlientTel</DataField> 
     192          <rd:TypeName>System.String</rd:TypeName> 
     193        </Field> 
     194        <Field Name="SumaNetto"> 
     195          <DataField>SumaNetto</DataField> 
    158196          <rd:TypeName>System.Decimal</rd:TypeName> 
    159         </Field> 
    160         <Field Name="Data"> 
    161           <DataField>Data</DataField> 
    162           <rd:TypeName>System.DateTime</rd:TypeName> 
    163         </Field> 
    164         <Field Name="Tytul"> 
    165           <DataField>Tytul</DataField> 
    166           <rd:TypeName>System.String</rd:TypeName> 
    167         </Field> 
    168         <Field Name="Agencja"> 
    169           <DataField>Agencja</DataField> 
    170           <rd:TypeName>System.String</rd:TypeName> 
    171         </Field> 
    172         <Field Name="Agent"> 
    173           <DataField>Agent</DataField> 
    174           <rd:TypeName>System.String</rd:TypeName> 
    175197        </Field> 
    176198      </Fields> 
    177199      <Query> 
    178200        <DataSourceName>BAZA_REKLAM</DataSourceName> 
    179         <CommandText>SELECT * FROM FakturyNettoByTytul 
     201        <CommandText>SELECT KlientSymbol, KlientNazwa, KlientUlica, KlientMiasto, KlientKod, KlientKraj, KlientTel, SUM(Netto) AS SumaNetto 
     202FROM FakturyNettoByTytul 
    180203WHERE 
    181204(YEAR(Data) = @rok)  
     
    183206AND (Tytul in (@tytul)) 
    184207AND (Agent in (@agent)) 
    185 ORDER BY Agent, Numer</CommandText> 
     208GROUP BY KlientSymbol, KlientNazwa, KlientUlica, KlientMiasto, KlientKod, KlientKraj, KlientTel 
     209ORDER BY KlientSymbol, KlientNazwa</CommandText> 
    186210        <QueryParameters> 
    187211          <QueryParameter Name="@rok"> 
     
    301325        <CanGrow>true</CanGrow> 
    302326        <Height>0.91429cm</Height> 
    303         <Value>Sprzedaż netto wg daty sprzedaży, agencji, tytułów</Value> 
     327        <Value>List klientów wg daty sprzedaży</Value> 
    304328      </Textbox> 
    305329      <Table Name="table1"> 
    306         <DataSetName>ListaFaktur</DataSetName> 
     330        <DataSetName>ListaKlientow</DataSetName> 
    307331        <Top>0.91429cm</Top> 
    308         <TableGroups> 
    309           <TableGroup> 
    310             <Grouping Name="tbl_Agencja"> 
    311               <GroupExpressions> 
    312                 <GroupExpression>=Fields!Agencja.Value</GroupExpression> 
    313               </GroupExpressions> 
    314             </Grouping> 
    315             <Sorting> 
    316               <SortBy> 
    317                 <SortExpression>=Fields!Tytul.Value</SortExpression> 
    318                 <Direction>Ascending</Direction> 
    319               </SortBy> 
    320             </Sorting> 
    321             <Header> 
    322               <TableRows> 
    323                 <TableRow> 
    324                   <TableCells> 
    325                     <TableCell> 
    326                       <ReportItems> 
    327                         <Textbox Name="Tytul"> 
    328                           <rd:DefaultName>Tytul</rd:DefaultName> 
    329                           <Style> 
    330                             <BackgroundColor>WhiteSmoke</BackgroundColor> 
    331                             <BorderColor> 
    332                               <Default>LightGrey</Default> 
    333                             </BorderColor> 
    334                             <BorderStyle> 
    335                               <Default>Solid</Default> 
    336                             </BorderStyle> 
    337                             <BorderWidth> 
    338                               <Default>0.5pt</Default> 
    339                             </BorderWidth> 
    340                             <FontSize>8pt</FontSize> 
    341                             <PaddingLeft>2pt</PaddingLeft> 
    342                             <PaddingRight>2pt</PaddingRight> 
    343                             <PaddingTop>2pt</PaddingTop> 
    344                             <PaddingBottom>2pt</PaddingBottom> 
    345                           </Style> 
    346                           <ZIndex>23</ZIndex> 
    347                           <CanGrow>true</CanGrow> 
    348                           <Value>=Fields!Agencja.Value</Value> 
    349                         </Textbox> 
    350                       </ReportItems> 
    351                     </TableCell> 
    352                     <TableCell> 
    353                       <ReportItems> 
    354                         <Textbox Name="textbox12"> 
    355                           <rd:DefaultName>textbox12</rd:DefaultName> 
    356                           <Style> 
    357                             <BackgroundColor>WhiteSmoke</BackgroundColor> 
    358                             <BorderColor> 
    359                               <Default>LightGrey</Default> 
    360                             </BorderColor> 
    361                             <BorderStyle> 
    362                               <Default>Solid</Default> 
    363                             </BorderStyle> 
    364                             <BorderWidth> 
    365                               <Default>0.5pt</Default> 
    366                             </BorderWidth> 
    367                             <FontFamily>Tahoma</FontFamily> 
    368                             <FontWeight>700</FontWeight> 
    369                             <PaddingLeft>2pt</PaddingLeft> 
    370                             <PaddingRight>2pt</PaddingRight> 
    371                             <PaddingTop>2pt</PaddingTop> 
    372                             <PaddingBottom>2pt</PaddingBottom> 
    373                           </Style> 
    374                           <ZIndex>22</ZIndex> 
    375                           <CanGrow>true</CanGrow> 
    376                           <Value> 
    377                           </Value> 
    378                         </Textbox> 
    379                       </ReportItems> 
    380                     </TableCell> 
    381                     <TableCell> 
    382                       <ReportItems> 
    383                         <Textbox Name="textbox14"> 
    384                           <rd:DefaultName>textbox14</rd:DefaultName> 
    385                           <Style> 
    386                             <BackgroundColor>WhiteSmoke</BackgroundColor> 
    387                             <BorderColor> 
    388                               <Default>LightGrey</Default> 
    389                             </BorderColor> 
    390                             <BorderStyle> 
    391                               <Default>Solid</Default> 
    392                             </BorderStyle> 
    393                             <BorderWidth> 
    394                               <Default>0.5pt</Default> 
    395                             </BorderWidth> 
    396                             <FontFamily>Tahoma</FontFamily> 
    397                             <FontWeight>700</FontWeight> 
    398                             <PaddingLeft>2pt</PaddingLeft> 
    399                             <PaddingRight>2pt</PaddingRight> 
    400                             <PaddingTop>2pt</PaddingTop> 
    401                             <PaddingBottom>2pt</PaddingBottom> 
    402                           </Style> 
    403                           <ZIndex>21</ZIndex> 
    404                           <CanGrow>true</CanGrow> 
    405                           <Value> 
    406                           </Value> 
    407                         </Textbox> 
    408                       </ReportItems> 
    409                     </TableCell> 
    410                     <TableCell> 
    411                       <ReportItems> 
    412                         <Textbox Name="textbox16"> 
    413                           <rd:DefaultName>textbox16</rd:DefaultName> 
    414                           <Style> 
    415                             <BackgroundColor>WhiteSmoke</BackgroundColor> 
    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                             <FontSize>8pt</FontSize> 
    426                             <FontWeight>700</FontWeight> 
    427                             <Format>C</Format> 
    428                             <PaddingLeft>2pt</PaddingLeft> 
    429                             <PaddingRight>2pt</PaddingRight> 
    430                             <PaddingTop>2pt</PaddingTop> 
    431                             <PaddingBottom>2pt</PaddingBottom> 
    432                           </Style> 
    433                           <ZIndex>20</ZIndex> 
    434                           <CanGrow>true</CanGrow> 
    435                           <Value>=Sum(Fields!Netto.Value)</Value> 
    436                         </Textbox> 
    437                       </ReportItems> 
    438                     </TableCell> 
    439                     <TableCell> 
    440                       <ReportItems> 
    441                         <Textbox Name="textbox17"> 
    442                           <rd:DefaultName>textbox17</rd:DefaultName> 
    443                           <Style> 
    444                             <BackgroundColor>WhiteSmoke</BackgroundColor> 
    445                             <BorderColor> 
    446                               <Default>LightGrey</Default> 
    447                             </BorderColor> 
    448                             <BorderStyle> 
    449                               <Default>Solid</Default> 
    450                             </BorderStyle> 
    451                             <BorderWidth> 
    452                               <Default>0.5pt</Default> 
    453                             </BorderWidth> 
    454                             <FontFamily>Tahoma</FontFamily> 
    455                             <FontWeight>700</FontWeight> 
    456                             <PaddingLeft>2pt</PaddingLeft> 
    457                             <PaddingRight>2pt</PaddingRight> 
    458                             <PaddingTop>2pt</PaddingTop> 
    459                             <PaddingBottom>2pt</PaddingBottom> 
    460                           </Style> 
    461                           <ZIndex>19</ZIndex> 
    462                           <CanGrow>true</CanGrow> 
    463                           <Value> 
    464                           </Value> 
    465                         </Textbox> 
    466                       </ReportItems> 
    467                     </TableCell> 
    468                     <TableCell> 
    469                       <ReportItems> 
    470                         <Textbox Name="textbox18"> 
    471                           <rd:DefaultName>textbox18</rd:DefaultName> 
    472                           <Style> 
    473                             <BackgroundColor>WhiteSmoke</BackgroundColor> 
    474                             <BorderColor> 
    475                               <Default>LightGrey</Default> 
    476                             </BorderColor> 
    477                             <BorderStyle> 
    478                               <Default>Solid</Default> 
    479                             </BorderStyle> 
    480                             <BorderWidth> 
    481                               <Default>0.5pt</Default> 
    482                             </BorderWidth> 
    483                             <FontFamily>Tahoma</FontFamily> 
    484                             <FontWeight>700</FontWeight> 
    485                             <PaddingLeft>2pt</PaddingLeft> 
    486                             <PaddingRight>2pt</PaddingRight> 
    487                             <PaddingTop>2pt</PaddingTop> 
    488                             <PaddingBottom>2pt</PaddingBottom> 
    489                           </Style> 
    490                           <ZIndex>18</ZIndex> 
    491                           <CanGrow>true</CanGrow> 
    492                           <Value> 
    493                           </Value> 
    494                         </Textbox> 
    495                       </ReportItems> 
    496                     </TableCell> 
    497                   </TableCells> 
    498                   <Height>0.53333cm</Height> 
    499                 </TableRow> 
    500               </TableRows> 
    501             </Header> 
    502           </TableGroup> 
    503           <TableGroup> 
    504             <Grouping Name="tbl_Tytul"> 
    505               <GroupExpressions> 
    506                 <GroupExpression>=Fields!Tytul.Value</GroupExpression> 
    507               </GroupExpressions> 
    508             </Grouping> 
    509             <Sorting> 
    510               <SortBy> 
    511                 <SortExpression>=Fields!Agencja.Value</SortExpression> 
    512                 <Direction>Ascending</Direction> 
    513               </SortBy> 
    514             </Sorting> 
    515             <Visibility> 
    516               <Hidden>true</Hidden> 
    517               <ToggleItem>Tytul</ToggleItem> 
    518             </Visibility> 
    519             <Header> 
    520               <TableRows> 
    521                 <TableRow> 
    522                   <TableCells> 
    523                     <TableCell> 
    524                       <ReportItems> 
    525                         <Textbox Name="textbox19"> 
    526                           <rd:DefaultName>textbox19</rd:DefaultName> 
    527                           <Style> 
    528                             <BorderColor> 
    529                               <Default>LightGrey</Default> 
    530                             </BorderColor> 
    531                             <FontFamily>Tahoma</FontFamily> 
    532                             <FontWeight>700</FontWeight> 
    533                             <PaddingLeft>2pt</PaddingLeft> 
    534                             <PaddingRight>2pt</PaddingRight> 
    535                             <PaddingTop>2pt</PaddingTop> 
    536                             <PaddingBottom>2pt</PaddingBottom> 
    537                           </Style> 
    538                           <ZIndex>17</ZIndex> 
    539                           <CanGrow>true</CanGrow> 
    540                           <Value> 
    541                           </Value> 
    542                         </Textbox> 
    543                       </ReportItems> 
    544                     </TableCell> 
    545                     <TableCell> 
    546                       <ReportItems> 
    547                         <Textbox Name="Agencja"> 
    548                           <rd:DefaultName>Agencja</rd:DefaultName> 
    549                           <Style> 
    550                             <BackgroundColor>WhiteSmoke</BackgroundColor> 
    551                             <BorderColor> 
    552                               <Default>LightGrey</Default> 
    553                             </BorderColor> 
    554                             <BorderStyle> 
    555                               <Default>Solid</Default> 
    556                             </BorderStyle> 
    557                             <BorderWidth> 
    558                               <Default>0.5pt</Default> 
    559                             </BorderWidth> 
    560                             <FontSize>8pt</FontSize> 
    561                             <PaddingLeft>2pt</PaddingLeft> 
    562                             <PaddingRight>2pt</PaddingRight> 
    563                             <PaddingTop>2pt</PaddingTop> 
    564                             <PaddingBottom>2pt</PaddingBottom> 
    565                           </Style> 
    566                           <ZIndex>16</ZIndex> 
    567                           <CanGrow>true</CanGrow> 
    568                           <Value>=Fields!Tytul.Value</Value> 
    569                         </Textbox> 
    570                       </ReportItems> 
    571                     </TableCell> 
    572                     <TableCell> 
    573                       <ReportItems> 
    574                         <Textbox Name="textbox21"> 
    575                           <rd:DefaultName>textbox21</rd:DefaultName> 
    576                           <Style> 
    577                             <BackgroundColor>WhiteSmoke</BackgroundColor> 
    578                             <BorderColor> 
    579                               <Default>LightGrey</Default> 
    580                             </BorderColor> 
    581                             <BorderStyle> 
    582                               <Default>Solid</Default> 
    583                             </BorderStyle> 
    584                             <BorderWidth> 
    585                               <Default>0.5pt</Default> 
    586                             </BorderWidth> 
    587                             <FontFamily>Tahoma</FontFamily> 
    588                             <FontWeight>700</FontWeight> 
    589                             <PaddingLeft>2pt</PaddingLeft> 
    590                             <PaddingRight>2pt</PaddingRight> 
    591                             <PaddingTop>2pt</PaddingTop> 
    592                             <PaddingBottom>2pt</PaddingBottom> 
    593                           </Style> 
    594                           <ZIndex>15</ZIndex> 
    595                           <CanGrow>true</CanGrow> 
    596                           <Value> 
    597                           </Value> 
    598                         </Textbox> 
    599                       </ReportItems> 
    600                     </TableCell> 
    601                     <TableCell> 
    602                       <ReportItems> 
    603                         <Textbox Name="textbox23"> 
    604                           <rd:DefaultName>textbox23</rd:DefaultName> 
    605                           <Style> 
    606                             <BackgroundColor>WhiteSmoke</BackgroundColor> 
    607                             <BorderColor> 
    608                               <Default>LightGrey</Default> 
    609                             </BorderColor> 
    610                             <BorderStyle> 
    611                               <Default>Solid</Default> 
    612                             </BorderStyle> 
    613                             <BorderWidth> 
    614                               <Default>0.5pt</Default> 
    615                             </BorderWidth> 
    616                             <FontSize>8pt</FontSize> 
    617                             <FontWeight>700</FontWeight> 
    618                             <Format>C</Format> 
    619                             <PaddingLeft>2pt</PaddingLeft> 
    620                             <PaddingRight>2pt</PaddingRight> 
    621                             <PaddingTop>2pt</PaddingTop> 
    622                             <PaddingBottom>2pt</PaddingBottom> 
    623                           </Style> 
    624                           <ZIndex>14</ZIndex> 
    625                           <CanGrow>true</CanGrow> 
    626                           <Value>=Sum(Fields!Netto.Value)</Value> 
    627                         </Textbox> 
    628                       </ReportItems> 
    629                     </TableCell> 
    630                     <TableCell> 
    631                       <ReportItems> 
    632                         <Textbox Name="textbox24"> 
    633                           <rd:DefaultName>textbox24</rd:DefaultName> 
    634                           <Style> 
    635                             <BackgroundColor>WhiteSmoke</BackgroundColor> 
    636                             <BorderColor> 
    637                               <Default>LightGrey</Default> 
    638                             </BorderColor> 
    639                             <BorderStyle> 
    640                               <Default>Solid</Default> 
    641                             </BorderStyle> 
    642                             <BorderWidth> 
    643                               <Default>0.5pt</Default> 
    644                             </BorderWidth> 
    645                             <FontFamily>Tahoma</FontFamily> 
    646                             <FontWeight>700</FontWeight> 
    647                             <PaddingLeft>2pt</PaddingLeft> 
    648                             <PaddingRight>2pt</PaddingRight> 
    649                             <PaddingTop>2pt</PaddingTop> 
    650                             <PaddingBottom>2pt</PaddingBottom> 
    651                           </Style> 
    652                           <ZIndex>13</ZIndex> 
    653                           <CanGrow>true</CanGrow> 
    654                           <Value> 
    655                           </Value> 
    656                         </Textbox> 
    657                       </ReportItems> 
    658                     </TableCell> 
    659                     <TableCell> 
    660                       <ReportItems> 
    661                         <Textbox Name="textbox25"> 
    662                           <rd:DefaultName>textbox25</rd:DefaultName> 
    663                           <Style> 
    664                             <BackgroundColor>WhiteSmoke</BackgroundColor> 
    665                             <BorderColor> 
    666                               <Default>LightGrey</Default> 
    667                             </BorderColor> 
    668                             <BorderStyle> 
    669                               <Default>Solid</Default> 
    670                             </BorderStyle> 
    671                             <BorderWidth> 
    672                               <Default>0.5pt</Default> 
    673                             </BorderWidth> 
    674                             <FontFamily>Tahoma</FontFamily> 
    675                             <FontWeight>700</FontWeight> 
    676                             <PaddingLeft>2pt</PaddingLeft> 
    677                             <PaddingRight>2pt</PaddingRight> 
    678                             <PaddingTop>2pt</PaddingTop> 
    679                             <PaddingBottom>2pt</PaddingBottom> 
    680                           </Style> 
    681                           <ZIndex>12</ZIndex> 
    682                           <CanGrow>true</CanGrow> 
    683                           <Value> 
    684                           </Value> 
    685                         </Textbox> 
    686                       </ReportItems> 
    687                     </TableCell> 
    688                   </TableCells> 
    689                   <Height>0.53333cm</Height> 
    690                 </TableRow> 
    691               </TableRows> 
    692             </Header> 
    693           </TableGroup> 
    694         </TableGroups> 
     332        <Width>19.25cm</Width> 
    695333        <Details> 
    696334          <TableRows> 
     
    705343                          <Default>LightGrey</Default> 
    706344                        </BorderColor> 
    707                         <FontFamily>Tahoma</FontFamily> 
    708                         <PaddingLeft>2pt</PaddingLeft> 
    709                         <PaddingRight>2pt</PaddingRight> 
    710                         <PaddingTop>2pt</PaddingTop> 
    711                         <PaddingBottom>2pt</PaddingBottom> 
    712                       </Style> 
    713                       <ZIndex>5</ZIndex> 
    714                       <CanGrow>true</CanGrow> 
    715                       <Value> 
    716                       </Value> 
    717                     </Textbox> 
    718                   </ReportItems> 
    719                 </TableCell> 
    720                 <TableCell> 
    721                   <ReportItems> 
    722                     <Textbox Name="textbox5"> 
    723                       <rd:DefaultName>textbox5</rd:DefaultName> 
    724                       <Style> 
    725                         <BorderColor> 
    726                           <Default>LightGrey</Default> 
    727                         </BorderColor> 
    728                         <FontFamily>Tahoma</FontFamily> 
    729                         <PaddingLeft>2pt</PaddingLeft> 
    730                         <PaddingRight>2pt</PaddingRight> 
    731                         <PaddingTop>2pt</PaddingTop> 
    732                         <PaddingBottom>2pt</PaddingBottom> 
    733                       </Style> 
    734                       <ZIndex>4</ZIndex> 
    735                       <CanGrow>true</CanGrow> 
    736                       <Value> 
    737                       </Value> 
    738                     </Textbox> 
    739                   </ReportItems> 
    740                 </TableCell> 
    741                 <TableCell> 
    742                   <ReportItems> 
    743                     <Textbox Name="NumerFaktury"> 
    744                       <rd:DefaultName>NumerFaktury</rd:DefaultName> 
    745                       <Style> 
    746                         <BorderColor> 
    747                           <Default>LightGrey</Default> 
    748                         </BorderColor> 
    749345                        <BorderStyle> 
    750346                          <Default>Solid</Default> 
    751347                        </BorderStyle> 
    752                         <FontSize>8pt</FontSize> 
     348                        <BorderWidth> 
     349                          <Default>0.5pt</Default> 
     350                        </BorderWidth> 
     351                        <FontSize>8pt</FontSize> 
     352                        <TextAlign>Left</TextAlign> 
    753353                        <PaddingLeft>2pt</PaddingLeft> 
    754354                        <PaddingRight>2pt</PaddingRight> 
     
    758358                      <ZIndex>3</ZIndex> 
    759359                      <CanGrow>true</CanGrow> 
    760                       <Value>=Fields!NumerFaktury.Value</Value> 
    761                     </Textbox> 
    762                   </ReportItems> 
    763                 </TableCell> 
    764                 <TableCell> 
    765                   <ReportItems> 
    766                     <Textbox Name="Netto"> 
    767                       <rd:DefaultName>Netto</rd:DefaultName> 
     360                      <Value>=Fields!KlientSymbol.Value</Value> 
     361                    </Textbox> 
     362                  </ReportItems> 
     363                </TableCell> 
     364                <TableCell> 
     365                  <ReportItems> 
     366                    <Textbox Name="textbox5"> 
     367                      <rd:DefaultName>textbox5</rd:DefaultName> 
    768368                      <Style> 
    769369                        <BorderColor> 
     
    773373                          <Default>Solid</Default> 
    774374                        </BorderStyle> 
    775                         <FontSize>8pt</FontSize> 
    776                         <Format>C</Format> 
     375                        <BorderWidth> 
     376                          <Default>0.5pt</Default> 
     377                        </BorderWidth> 
     378                        <FontSize>8pt</FontSize> 
     379                        <TextAlign>Left</TextAlign> 
    777380                        <PaddingLeft>2pt</PaddingLeft> 
    778381                        <PaddingRight>2pt</PaddingRight> 
     
    782385                      <ZIndex>2</ZIndex> 
    783386                      <CanGrow>true</CanGrow> 
    784                       <Value>=Fields!Netto.Value</Value> 
    785                     </Textbox> 
    786                   </ReportItems> 
    787                 </TableCell> 
    788                 <TableCell> 
    789                   <ReportItems> 
    790                     <Textbox Name="Agent"> 
    791                       <rd:DefaultName>Agent</rd:DefaultName> 
     387                      <Value>=Fields!KlientNazwa.Value</Value> 
     388                    </Textbox> 
     389                  </ReportItems> 
     390                </TableCell> 
     391                <TableCell> 
     392                  <ReportItems> 
     393                    <Textbox Name="textbox6"> 
     394                      <rd:DefaultName>textbox6</rd:DefaultName> 
    792395                      <Style> 
    793396                        <BorderColor> 
     
    797400                          <Default>Solid</Default> 
    798401                        </BorderStyle> 
    799                         <FontSize>8pt</FontSize> 
     402                        <BorderWidth> 
     403                          <Default>0.5pt</Default> 
     404                        </BorderWidth> 
     405                        <FontSize>8pt</FontSize> 
     406                        <TextAlign>Left</TextAlign> 
    800407                        <PaddingLeft>2pt</PaddingLeft> 
    801408                        <PaddingRight>2pt</PaddingRight> 
     
    805412                      <ZIndex>1</ZIndex> 
    806413                      <CanGrow>true</CanGrow> 
    807                       <Value>=Fields!Agent.Value</Value> 
    808                     </Textbox> 
    809                   </ReportItems> 
    810                 </TableCell> 
    811                 <TableCell> 
    812                   <ReportItems> 
    813                     <Textbox Name="Data"> 
    814                       <rd:DefaultName>Data</rd:DefaultName> 
     414                      <Value>=Fields!KlientUlica.Value + ", " + Fields!KlientKod.Value + ", " + Fields!KlientMiasto.Value + ", " + Fields!KlientKraj.Value</Value> 
     415                    </Textbox> 
     416                  </ReportItems> 
     417                </TableCell> 
     418                <TableCell> 
     419                  <ReportItems> 
     420                    <Textbox Name="textbox11"> 
     421                      <rd:DefaultName>textbox11</rd:DefaultName> 
    815422                      <Style> 
    816423                        <BorderColor> 
     
    820427                          <Default>Solid</Default> 
    821428                        </BorderStyle> 
    822                         <FontSize>8pt</FontSize> 
    823                         <Format>yyyy-MM-dd</Format> 
    824                         <PaddingLeft>2pt</PaddingLeft> 
    825                         <PaddingRight>2pt</PaddingRight> 
    826                         <PaddingTop>2pt</PaddingTop> 
    827                         <PaddingBottom>2pt</PaddingBottom> 
    828                       </Style> 
    829                       <CanGrow>true</CanGrow> 
    830                       <Value>=Fields!Data.Value</Value> 
     429                        <BorderWidth> 
     430                          <Default>0.5pt</Default> 
     431                        </BorderWidth> 
     432                        <FontSize>8pt</FontSize> 
     433                        <Format>C</Format> 
     434                        <TextAlign>Center</TextAlign> 
     435                        <PaddingLeft>2pt</PaddingLeft> 
     436                        <PaddingRight>2pt</PaddingRight> 
     437                        <PaddingTop>2pt</PaddingTop> 
     438                        <PaddingBottom>2pt</PaddingBottom> 
     439                      </Style> 
     440                      <CanGrow>true</CanGrow> 
     441                      <Value>=Fields!SumaNetto.Value</Value> 
    831442                    </Textbox> 
    832443                  </ReportItems> 
     
    836447            </TableRow> 
    837448          </TableRows> 
    838           <Visibility> 
    839             <Hidden>true</Hidden> 
    840             <ToggleItem>Agencja</ToggleItem> 
    841           </Visibility> 
     449          <Sorting> 
     450            <SortBy> 
     451              <SortExpression>=switch(Parameters!sortuj.Value="1",Fields!SumaNetto.Value,1=1,"")</SortExpression> 
     452              <Direction>Descending</Direction> 
     453            </SortBy> 
     454          </Sorting> 
    842455        </Details> 
    843456        <Header> 
     
    861474                        <PaddingBottom>2pt</PaddingBottom> 
    862475                      </Style> 
    863                       <ZIndex>29</ZIndex> 
    864                       <CanGrow>true</CanGrow> 
    865                       <Value>Agencja</Value> 
     476                      <ZIndex>11</ZIndex> 
     477                      <CanGrow>true</CanGrow> 
     478                      <Value>Symbol</Value> 
    866479                    </Textbox> 
    867480                  </ReportItems> 
     
    883496                        <PaddingBottom>2pt</PaddingBottom> 
    884497                      </Style> 
    885                       <ZIndex>28</ZIndex> 
    886                       <CanGrow>true</CanGrow> 
    887                       <Value>Tytuł wydania</Value> 
     498                      <ZIndex>10</ZIndex> 
     499                      <CanGrow>true</CanGrow> 
     500                      <Value>Nazwa</Value> 
    888501                    </Textbox> 
    889502                  </ReportItems> 
     
    905518                        <PaddingBottom>2pt</PaddingBottom> 
    906519                      </Style> 
    907                       <ZIndex>27</ZIndex> 
    908                       <CanGrow>true</CanGrow> 
    909                       <Value>Numer Faktury</Value> 
    910                     </Textbox> 
    911                   </ReportItems> 
    912                 </TableCell> 
    913                 <TableCell> 
    914                   <ReportItems> 
    915                     <Textbox Name="textbox9"> 
    916                       <rd:DefaultName>textbox9</rd:DefaultName> 
     520                      <ZIndex>9</ZIndex> 
     521                      <CanGrow>true</CanGrow> 
     522                      <Value>Adres</Value> 
     523                    </Textbox> 
     524                  </ReportItems> 
     525                </TableCell> 
     526                <TableCell> 
     527                  <ReportItems> 
     528                    <Textbox Name="textbox10"> 
     529                      <rd:DefaultName>textbox10</rd:DefaultName> 
    917530                      <Style> 
    918531                        <BorderColor> 
     
    927540                        <PaddingBottom>2pt</PaddingBottom> 
    928541                      </Style> 
    929                       <ZIndex>26</ZIndex> 
    930                       <CanGrow>true</CanGrow> 
    931                       <Value>Netto</Value> 
    932                     </Textbox> 
    933                   </ReportItems> 
    934                 </TableCell> 
    935                 <TableCell> 
    936                   <ReportItems> 
    937                     <Textbox Name="textbox10"> 
    938                       <rd:DefaultName>textbox10</rd:DefaultName> 
    939                       <Style> 
    940                         <BorderColor> 
    941                           <Default>LightGrey</Default> 
    942                         </BorderColor> 
    943                         <FontSize>8pt</FontSize> 
    944                         <FontWeight>700</FontWeight> 
    945                         <TextAlign>Center</TextAlign> 
    946                         <PaddingLeft>2pt</PaddingLeft> 
    947                         <PaddingRight>2pt</PaddingRight> 
    948                         <PaddingTop>2pt</PaddingTop> 
    949                         <PaddingBottom>2pt</PaddingBottom> 
    950                       </Style> 
    951                       <ZIndex>25</ZIndex> 
    952                       <CanGrow>true</CanGrow> 
    953                       <Value>Agent</Value> 
    954                     </Textbox> 
    955                   </ReportItems> 
    956                 </TableCell> 
    957                 <TableCell> 
    958                   <ReportItems> 
    959                     <Textbox Name="textbox11"> 
    960                       <rd:DefaultName>textbox11</rd:DefaultName> 
    961                       <Style> 
    962                         <BorderColor> 
    963                           <Default>LightGrey</Default> 
    964                         </BorderColor> 
    965                         <FontSize>8pt</FontSize> 
    966                         <FontWeight>700</FontWeight> 
    967                         <TextAlign>Center</TextAlign> 
    968                         <PaddingLeft>2pt</PaddingLeft> 
    969                         <PaddingRight>2pt</PaddingRight> 
    970                         <PaddingTop>2pt</PaddingTop> 
    971                         <PaddingBottom>2pt</PaddingBottom> 
    972                       </Style> 
    973                       <ZIndex>24</ZIndex> 
    974                       <CanGrow>true</CanGrow> 
    975                       <Value>Data</Value> 
     542                      <ZIndex>8</ZIndex> 
     543                      <CanGrow>true</CanGrow> 
     544                      <Value>Suma</Value> 
    976545                    </Textbox> 
    977546                  </ReportItems> 
     
    985554        <TableColumns> 
    986555          <TableColumn> 
    987             <Width>4.5cm</Width> 
    988           </TableColumn> 
    989           <TableColumn> 
    990             <Width>3.5cm</Width> 
    991           </TableColumn> 
    992           <TableColumn> 
    993             <Width>3.5cm</Width> 
    994           </TableColumn> 
    995           <TableColumn> 
    996556            <Width>3cm</Width> 
    997557          </TableColumn> 
    998558          <TableColumn> 
    999             <Width>3.02646cm</Width> 
     559            <Width>6cm</Width> 
     560          </TableColumn> 
     561          <TableColumn> 
     562            <Width>7.25cm</Width> 
    1000563          </TableColumn> 
    1001564          <TableColumn> 
     
    1003566          </TableColumn> 
    1004567        </TableColumns> 
     568        <Height>1.76825cm</Height> 
    1005569        <Footer> 
    1006570          <TableRows> 
     
    1009573                <TableCell> 
    1010574                  <ReportItems> 
    1011                     <Textbox Name="textbox6"> 
    1012                       <rd:DefaultName>textbox6</rd:DefaultName> 
    1013                       <Style> 
    1014                         <PaddingLeft>2pt</PaddingLeft> 
    1015                         <PaddingRight>2pt</PaddingRight> 
    1016                         <PaddingTop>2pt</PaddingTop> 
    1017                         <PaddingBottom>2pt</PaddingBottom> 
    1018                       </Style> 
    1019                       <ZIndex>11</ZIndex> 
    1020                       <CanGrow>true</CanGrow> 
    1021                       <Value /> 
    1022                     </Textbox> 
    1023                   </ReportItems> 
    1024                 </TableCell> 
    1025                 <TableCell> 
    1026                   <ReportItems> 
    1027575                    <Textbox Name="textbox8"> 
    1028576                      <rd:DefaultName>textbox8</rd:DefaultName> 
     
    1033581                        <PaddingBottom>2pt</PaddingBottom> 
    1034582                      </Style> 
    1035                       <ZIndex>10</ZIndex> 
     583                      <ZIndex>7</ZIndex> 
     584                      <CanGrow>true</CanGrow> 
     585                      <Value /> 
     586                    </Textbox> 
     587                  </ReportItems> 
     588                </TableCell> 
     589                <TableCell> 
     590                  <ReportItems> 
     591                    <Textbox Name="textbox9"> 
     592                      <rd:DefaultName>textbox9</rd:DefaultName> 
     593                      <Style> 
     594                        <PaddingLeft>2pt</PaddingLeft> 
     595                        <PaddingRight>2pt</PaddingRight> 
     596                        <PaddingTop>2pt</PaddingTop> 
     597                        <PaddingBottom>2pt</PaddingBottom> 
     598                      </Style> 
     599                      <ZIndex>6</ZIndex> 
     600                      <CanGrow>true</CanGrow> 
     601                      <Value /> 
     602                    </Textbox> 
     603                  </ReportItems> 
     604                </TableCell> 
     605                <TableCell> 
     606                  <ReportItems> 
     607                    <Textbox Name="textbox12"> 
     608                      <rd:DefaultName>textbox12</rd:DefaultName> 
     609                      <Style> 
     610                        <PaddingLeft>2pt</PaddingLeft> 
     611                        <PaddingRight>2pt</PaddingRight> 
     612                        <PaddingTop>2pt</PaddingTop> 
     613                        <PaddingBottom>2pt</PaddingBottom> 
     614                      </Style> 
     615                      <ZIndex>5</ZIndex> 
    1036616                      <CanGrow>true</CanGrow> 
    1037617                      <Value /> 
     
    1044624                      <rd:DefaultName>textbox13</rd:DefaultName> 
    1045625                      <Style> 
    1046                         <PaddingLeft>2pt</PaddingLeft> 
    1047                         <PaddingRight>2pt</PaddingRight> 
    1048                         <PaddingTop>2pt</PaddingTop> 
    1049                         <PaddingBottom>2pt</PaddingBottom> 
    1050                       </Style> 
    1051                       <ZIndex>9</ZIndex> 
    1052                       <CanGrow>true</CanGrow> 
    1053                       <Value /> 
    1054                     </Textbox> 
    1055                   </ReportItems> 
    1056                 </TableCell> 
    1057                 <TableCell> 
    1058                   <ReportItems> 
    1059                     <Textbox Name="textbox15"> 
    1060                       <rd:DefaultName>textbox15</rd:DefaultName> 
    1061                       <Style> 
    1062                         <BackgroundColor>WhiteSmoke</BackgroundColor> 
    1063                         <BorderColor> 
    1064                           <Default>LightGrey</Default> 
    1065                         </BorderColor> 
    1066                         <BorderStyle> 
    1067                           <Default>Solid</Default> 
    1068                         </BorderStyle> 
    1069                         <BorderWidth> 
    1070                           <Default>0.5pt</Default> 
    1071                         </BorderWidth> 
    1072626                        <FontSize>8pt</FontSize> 
    1073627                        <FontWeight>700</FontWeight> 
    1074628                        <Format>C</Format> 
    1075                         <PaddingLeft>2pt</PaddingLeft> 
    1076                         <PaddingRight>2pt</PaddingRight> 
    1077                         <PaddingTop>2pt</PaddingTop> 
    1078                         <PaddingBottom>2pt</PaddingBottom> 
    1079                       </Style> 
    1080                       <ZIndex>8</ZIndex> 
    1081                       <CanGrow>true</CanGrow> 
    1082                       <Value>=Sum(Fields!Netto.Value)</Value> 
    1083                     </Textbox> 
    1084                   </ReportItems> 
    1085                 </TableCell> 
    1086                 <TableCell> 
    1087                   <ReportItems> 
    1088                     <Textbox Name="textbox20"> 
    1089                       <rd:DefaultName>textbox20</rd:DefaultName> 
    1090                       <Style> 
    1091                         <PaddingLeft>2pt</PaddingLeft> 
    1092                         <PaddingRight>2pt</PaddingRight> 
    1093                         <PaddingTop>2pt</PaddingTop> 
    1094                         <PaddingBottom>2pt</PaddingBottom> 
    1095                       </Style> 
    1096                       <ZIndex>7</ZIndex> 
    1097                       <CanGrow>true</CanGrow> 
    1098                       <Value /> 
    1099                     </Textbox> 
    1100                   </ReportItems> 
    1101                 </TableCell> 
    1102                 <TableCell> 
    1103                   <ReportItems> 
    1104                     <Textbox Name="textbox22"> 
    1105                       <rd:DefaultName>textbox22</rd:DefaultName> 
    1106                       <Style> 
    1107                         <PaddingLeft>2pt</PaddingLeft> 
    1108                         <PaddingRight>2pt</PaddingRight> 
    1109                         <PaddingTop>2pt</PaddingTop> 
    1110                         <PaddingBottom>2pt</PaddingBottom> 
    1111                       </Style> 
    1112                       <ZIndex>6</ZIndex> 
    1113                       <CanGrow>true</CanGrow> 
    1114                       <Value /> 
     629                        <TextAlign>Center</TextAlign> 
     630                        <PaddingLeft>2pt</PaddingLeft> 
     631                        <PaddingRight>2pt</PaddingRight> 
     632                        <PaddingTop>2pt</PaddingTop> 
     633                        <PaddingBottom>2pt</PaddingBottom> 
     634                      </Style> 
     635                      <ZIndex>4</ZIndex> 
     636                      <CanGrow>true</CanGrow> 
     637                      <Value>=SUM(Fields!SumaNetto.Value)</Value> 
    1115638                    </Textbox> 
    1116639                  </ReportItems> 
  • trunk/RaportySQL/RaportySQL.rptproj

    r333 r334  
    372372      <Name>FakturyNettoWgTytulow.rdl</Name> 
    373373      <FullPath>FakturyNettoWgTytulow.rdl</FullPath> 
     374    </ProjectItem> 
     375    <ProjectItem> 
     376      <Name>KlienciWgDatyReklamy.rdl</Name> 
     377      <FullPath>KlienciWgDatyReklamy.rdl</FullPath> 
    374378    </ProjectItem> 
    375379  </Reports>