<#@ template language="C#" #>
<#@ import namespace="System.Linq" #>
<#@ import namespace="System.Collections.Generic" #>
<#@ parameter name="Model" type="System.Collections.Generic.List<ReportColumn>"#>
<#@ parameter name="companyText" type="System.String" #>
<#@ parameter name="headerText" type="System.String" #>
<?xml version="1.0" encoding="utf-8"?>
<Report xmlns:rd="http://schemas.microsoft.com/SQLServer/reporting/reportdesigner" xmlns="http://schemas.microsoft.com/sqlserver/reporting/2008/01/reportdefinition">
     <DataSources>
       <DataSource Name="DataSource1">
         <ConnectionProperties>
           <DataProvider>System.Data.DataSet</DataProvider>
           <ConnectString>/* Local Connection */</ConnectString>
         </ConnectionProperties>
         <rd:DataSourceID>e9784bb0-a630-49cc-b7f9-8495aca23a6c</rd:DataSourceID>
       </DataSource>
     </DataSources>
     <DataSets>
       <DataSet Name="DataSet1">
         <Fields>
<#    foreach(ReportColumn column in Model){#>
           <Field Name="<#=column.Name#>">
             <DataField><#=column.Name#></DataField>
             <rd:TypeName><#=column.Type.Name#></rd:TypeName>
           </Field>
<#    }#>
         </Fields>
         <Query>
           <DataSourceName>DataSource1</DataSourceName>
           <CommandText>/* Local Query */</CommandText>
         </Query>
         <rd:DataSetInfo>
           <rd:DataSetName />
           <rd:TableName />
           <rd:ObjectDataSourceType />
         </rd:DataSetInfo>
       </DataSet>
     </DataSets>
     <Body> 
       <ReportItems>		
	   <Textbox Name="textboxCompanyText">
            <CanGrow>true</CanGrow>
            <KeepTogether>true</KeepTogether>
            <Paragraphs>
              <Paragraph>
                <TextRuns>
                  <TextRun>
                    <Value><#=companyText #></Value>
                    <Style>
                    	  <FontSize>12pt</FontSize>                          
                        </Style>
                  </TextRun>
                </TextRuns>
                <Style />
              </Paragraph>
            </Paragraphs>
            <rd:DefaultName>textboxCompanyText</rd:DefaultName>
            <Top>0.5cm</Top>
            <Left>0.5cm</Left>
            <Height>0.5cm</Height>
            <Style>
              <Border>
                <!--<Style>Solid</Style>-->
              </Border>			  
              <PaddingLeft>2mm</PaddingLeft>
              <PaddingRight>2mm</PaddingRight>
              <PaddingTop>2mm</PaddingTop>
              <PaddingBottom>2mm</PaddingBottom>
            </Style>
          </Textbox>

	    <Textbox Name="textboxHeaderText">
            <CanGrow>true</CanGrow>
            <KeepTogether>true</KeepTogether>
            <Paragraphs>
              <Paragraph>
                <TextRuns>
                  <TextRun>
                    <Value><#=headerText #></Value>
                    <Style>
                    	  <FontSize>16pt</FontSize>
                          <FontWeight>Bold</FontWeight>
                        </Style>
                  </TextRun>
                </TextRuns>
                <Style />
              </Paragraph>
            </Paragraphs>
            <rd:DefaultName>textboxHeaderText</rd:DefaultName>
            <Top>1.0cm</Top>
            <Left>0.5cm</Left>
            <Height>0.5cm</Height>
            <Style>
              <Border>
                <!--<Style>Solid</Style>-->
              </Border>
			  <BackgroundColor>WhiteSmoke</BackgroundColor>
              <PaddingLeft>2mm</PaddingLeft>
              <PaddingRight>2mm</PaddingRight>
              <PaddingTop>2mm</PaddingTop>
              <PaddingBottom>2mm</PaddingBottom>
            </Style>
          </Textbox>



         <Tablix Name="Tablix1">
           <TablixBody>
             <TablixColumns>
<#    foreach(ReportColumn column in Model){#>
               <TablixColumn>
                 <Width><#=column.WidthInInch#>in</Width>
               </TablixColumn>
<#    }#>
             </TablixColumns>
             <TablixRows>
               <TablixRow>
                 <Height>0.25in</Height>
                 <TablixCells>
<#    foreach(ReportColumn column in Model){#>
                   <TablixCell>
                     <CellContents>
                       <Textbox Name="<#=column.Name#>TextBox">
                         <CanGrow>true</CanGrow>
                         <KeepTogether>true</KeepTogether>
                         <Paragraphs>
                           <Paragraph>
                             <TextRuns>
                               <TextRun>
                                 <Value><#=column.Title#></Value>
                                 <Style />
                               </TextRun>
                             </TextRuns>
                             <Style />
                           </Paragraph>
                         </Paragraphs>
                         <rd:DefaultName><#=column.Name#>TextBox</rd:DefaultName>
                          <Visibility>
                          <Hidden><#=column.VisibleString#></Hidden>
                        </Visibility>
                         <Style>
                           <Border>
                             <Color>LightGrey</Color>
                             <Style>Solid</Style>
                           </Border>
                           <BackgroundColor><#=column.HeaderBackColorInHtml#></BackgroundColor>
                           <PaddingLeft>2pt</PaddingLeft>
                           <PaddingRight>2pt</PaddingRight>
                           <PaddingTop>2pt</PaddingTop>
                           <PaddingBottom>2pt</PaddingBottom>
                         </Style>
                       </Textbox>
                     </CellContents>
                   </TablixCell>
<#    }#>
                 </TablixCells>
               </TablixRow>
               <TablixRow>
                 <Height>0.25in</Height>
                 <TablixCells>
<#    foreach(ReportColumn column in Model){#>
                   <TablixCell>
                     <CellContents>
                       <Textbox Name="<#=column.Name#>">
                         <CanGrow>true</CanGrow>
                         <KeepTogether>true</KeepTogether>
                         <Paragraphs>
                           <Paragraph>
                             <TextRuns>
                               <TextRun >                                     
                                   <Value><#=column.Expression#></Value>                                
                                 <Style />
                               </TextRun>
                             </TextRuns>
                             <Style />
                           </Paragraph>
                         </Paragraphs>
                         <rd:DefaultName><#=column.Name#></rd:DefaultName>
                            <Visibility>
                          <Hidden><#=column.VisibleString#></Hidden>
                        </Visibility>
                         <Style>
                           <Border>
                             <Color>LightGrey</Color>
                             <Style>Solid</Style>
                           </Border>
                           <PaddingLeft>2pt</PaddingLeft>
                           <PaddingRight>2pt</PaddingRight>
                           <PaddingTop>2pt</PaddingTop>
                           <PaddingBottom>2pt</PaddingBottom>
                         </Style>
                       </Textbox>
                     </CellContents>
                   </TablixCell>
<#    }#>
                 </TablixCells>
               </TablixRow>
             </TablixRows>
           </TablixBody>
           <TablixColumnHierarchy>
             <TablixMembers>
<#    foreach(ReportColumn column in Model){#>
               <TablixMember />
<#    }#>
             </TablixMembers>
           </TablixColumnHierarchy>
           <TablixRowHierarchy>
             <TablixMembers>
               <TablixMember>
                 <KeepWithGroup>After</KeepWithGroup>
               </TablixMember>
               <TablixMember>
                 <Group Name="Details" />
               </TablixMember>
             </TablixMembers>
           </TablixRowHierarchy>
           <DataSetName>DataSet1</DataSetName>
           <Top>0.5in</Top>
           <Left>0.5cm</Left>
           <Height>0.5in</Height>
           <Width>5in</Width>
           <Style>
             <Border>
               <Style>None</Style>
             </Border>
           </Style>
         </Tablix>
       </ReportItems>
       <Height>0.82292in</Height>
       <Style /> 
     </Body>
     <Width>7.5in</Width>
     <Page>
	 <PageFooter>
          <Height>1cm</Height>
          <PrintOnFirstPage>true</PrintOnFirstPage>
          <PrintOnLastPage>true</PrintOnLastPage>
          <ReportItems>		  
            <Textbox Name="textboxDateOfPrinting">
              <CanGrow>false</CanGrow>
              <KeepTogether>true</KeepTogether>
              <Paragraphs>
                <Paragraph>
                  <TextRuns>
                    <TextRun>
                      <Value><#= DateTime.Now.ToString("MM.dd.yyyy HH:mm:ss") #></Value>
                      <Style />
                    </TextRun>
                  </TextRuns>
                  <Style>
                    <TextAlign>Left</TextAlign>
                  </Style>
                </Paragraph>
              </Paragraphs>
              <Top>0.3cm</Top>
              <Left>0.5cm</Left>
              <Height>1cm</Height>
              <Width>5.53968cm</Width>
              <Style>
                <PaddingLeft>1pt</PaddingLeft>
                <PaddingRight>1pt</PaddingRight>
                <PaddingTop>1pt</PaddingTop>
                <PaddingBottom>1pt</PaddingBottom>
              </Style>
            </Textbox>  
            <Textbox Name="textbox33">
              <CanGrow>false</CanGrow>
              <KeepTogether>true</KeepTogether>
              <Paragraphs>
                <Paragraph>
                  <TextRuns>
                    <TextRun>
                      <Value>=Globals!PageNumber &amp; " | " &amp; Globals!TotalPages</Value>
                      <Style />
                    </TextRun>
                  </TextRuns>
                  <Style>
                    <TextAlign>Right</TextAlign>
                  </Style>
                </Paragraph>
              </Paragraphs>
              <Top>0.3cm</Top>
              <Left>6in</Left>
              <Height>1cm</Height>
              <Width>2.53968cm</Width>
              <Style>
                <PaddingLeft>1pt</PaddingLeft>
                <PaddingRight>1pt</PaddingRight>
                <PaddingTop>1pt</PaddingTop>
                <PaddingBottom>1pt</PaddingBottom>
              </Style>
            </Textbox>            
          </ReportItems>
          <Style />
        </PageFooter>
       <LeftMargin>5mm</LeftMargin>
       <RightMargin>5mm</RightMargin>
       <TopMargin>5mm</TopMargin>
       <BottomMargin>5mm</BottomMargin>
       <Style />
     </Page>
     <rd:ReportID>60987c40-62b1-463b-b670-f3fa81914e33</rd:ReportID>
     <rd:ReportUnitType>mm</rd:ReportUnitType>
</Report>