<?xml version="1.0" encoding="utf-8"?>
<Report xmlns="http://schemas.microsoft.com/sqlserver/reporting/2005/01/reportdefinition" xmlns:rd="http://schemas.microsoft.com/SQLServer/reporting/reportdesigner">
  <DataSources>
    <DataSource Name="samm_web">
      <rd:DataSourceID>27368cf2-831e-4b78-9d6e-8466a061582c</rd:DataSourceID>
      <DataSourceReference>samm_web</DataSourceReference>
    </DataSource>
  </DataSources>
  <InteractiveHeight>29.7cm</InteractiveHeight>
  <rd:DrawGrid>true</rd:DrawGrid>
  <InteractiveWidth>21cm</InteractiveWidth>
  <rd:GridSpacing>0.1cm</rd:GridSpacing>
  <rd:SnapToGrid>true</rd:SnapToGrid>
  <RightMargin>0.5cm</RightMargin>
  <LeftMargin>2cm</LeftMargin>
  <PageHeader>
    <PrintOnFirstPage>true</PrintOnFirstPage>
    <ReportItems>
      <Rectangle Name="rectangle4">
        <ReportItems>
          <Textbox Name="txt_version">
            <Top>0.7cm</Top>
            <Width>2.9cm</Width>
            <Style>
              <FontSize>8pt</FontSize>
              <TextAlign>Center</TextAlign>
              <PaddingLeft>2pt</PaddingLeft>
              <PaddingRight>2pt</PaddingRight>
              <PaddingTop>2pt</PaddingTop>
              <PaddingBottom>2pt</PaddingBottom>
            </Style>
            <ZIndex>5</ZIndex>
            <CanGrow>true</CanGrow>
            <Left>14.7cm</Left>
            <Height>0.5cm</Height>
            <Value>="RC-" &amp; IIF(Cint(code.getReporteID())&lt;100,"0","") &amp; IIF(Cint(code.getReporteID())&lt;10,"0","") &amp; code.getReporteID()</Value>
          </Textbox>
          <Textbox Name="txt_version_">
            <Top>0.4cm</Top>
            <Width>2.9cm</Width>
            <Style>
              <FontSize>8pt</FontSize>
              <TextAlign>Center</TextAlign>
              <PaddingLeft>2pt</PaddingLeft>
              <PaddingRight>2pt</PaddingRight>
            </Style>
            <ZIndex>4</ZIndex>
            <CanGrow>true</CanGrow>
            <Left>14.7cm</Left>
            <Height>0.3cm</Height>
            <Value>Version 1</Value>
          </Textbox>
          <Image Name="image1">
            <Sizing>FitProportional</Sizing>
            <Width>6cm</Width>
            <Source>External</Source>
            <Style />
            <ZIndex>3</ZIndex>
            <Height>1.5cm</Height>
            <Value>=code.imagen("cabecera")</Value>
          </Image>
          <Textbox Name="textbox38">
            <Top>0.1cm</Top>
            <Width>7.3cm</Width>
            <Style>
              <FontSize>14pt</FontSize>
              <FontWeight>700</FontWeight>
              <TextAlign>Center</TextAlign>
              <PaddingLeft>2pt</PaddingLeft>
              <PaddingRight>2pt</PaddingRight>
              <PaddingTop>2pt</PaddingTop>
              <PaddingBottom>2pt</PaddingBottom>
            </Style>
            <ZIndex>2</ZIndex>
            <CanGrow>true</CanGrow>
            <Left>6.2cm</Left>
            <Height>0.7cm</Height>
            <Value>=UCase(code.tituloReporte())</Value>
          </Textbox>
          <Line Name="line3">
            <Width>0cm</Width>
            <Style>
              <BorderStyle>
                <Default>Solid</Default>
              </BorderStyle>
              <BorderWidth>
                <Default>0.5pt</Default>
              </BorderWidth>
            </Style>
            <ZIndex>1</ZIndex>
            <Left>13.7cm</Left>
          </Line>
          <Line Name="line5">
            <Width>0cm</Width>
            <Style>
              <BorderStyle>
                <Default>Solid</Default>
              </BorderStyle>
              <BorderWidth>
                <Default>0.5pt</Default>
              </BorderWidth>
            </Style>
            <Left>6.1cm</Left>
          </Line>
        </ReportItems>
        <Width>18.3cm</Width>
        <Style>
          <BorderStyle>
            <Default>Solid</Default>
          </BorderStyle>
          <BorderWidth>
            <Default>0.5pt</Default>
          </BorderWidth>
        </Style>
      </Rectangle>
    </ReportItems>
    <Height>1.7cm</Height>
    <PrintOnLastPage>true</PrintOnLastPage>
  </PageHeader>
  <BottomMargin>0.5cm</BottomMargin>
  <rd:ReportID>92f5031e-16c0-46bc-91ba-e831dd45ae0c</rd:ReportID>
  <CodeModules>
    <CodeModule>System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</CodeModule>
  </CodeModules>
  <PageWidth>21cm</PageWidth>
  <DataSets>
    <DataSet Name="origen1">
      <Fields>
        <Field Name="fechaOT">
          <DataField>fechaOT</DataField>
          <rd:TypeName>System.String</rd:TypeName>
        </Field>
        <Field Name="documento">
          <DataField>documento</DataField>
          <rd:TypeName>System.String</rd:TypeName>
        </Field>
        <Field Name="numero">
          <DataField>numero</DataField>
          <rd:TypeName>System.String</rd:TypeName>
        </Field>
        <Field Name="estadoTipoDocumento">
          <DataField>estadoTipoDocumento</DataField>
          <rd:TypeName>System.String</rd:TypeName>
        </Field>
        <Field Name="total">
          <DataField>total</DataField>
          <rd:TypeName>System.String</rd:TypeName>
        </Field>
      </Fields>
      <Query>
        <DataSourceName>samm_web</DataSourceName>
        <CommandText />
      </Query>
    </DataSet>
    <DataSet Name="origen2">
      <Fields>
        <Field Name="usuario">
          <DataField>usuario</DataField>
          <rd:TypeName>System.String</rd:TypeName>
        </Field>
        <Field Name="nombre">
          <DataField>nombre</DataField>
          <rd:TypeName>System.String</rd:TypeName>
        </Field>
      </Fields>
      <Query>
        <DataSourceName>samm_web</DataSourceName>
        <CommandText />
      </Query>
    </DataSet>
  </DataSets>
  <Code> Public Shared Function opciones(ByVal p_str_opcion As String) As String
        Dim r As String = getReporteID()
        Dim t_ As String = System.Web.HttpContext.Current.Session("samm_opcionReporte_" &amp; r)
    If Not t_ Is Nothing Then
    If t_ = "" Then
    Else
    For Each t_str As String In t_.Split("|")
    If p_str_opcion.ToString() = t_str.Split(".")(0) Then
    Return t_str.Split(".")(1).ToString()
    End If
    Next
    End If
    End If
    Return "-1"
    End Function

    Public Shared Function imagen(ByVal p As String) As String
    Return String.Concat("file:\\\\", System.Web.HttpContext.Current.Server.MapPath("~"), "\images\reportes\", p , ".jpg")
    End Function

    Shared TextoCabecera As String = ""

    Public Shared Function tituloReporte() As String
    return System.Web.HttpContext.Current.Session("samm_tituloReporte")
    End Function

    Public Shared Function codigoReporte() As String
    return System.Web.HttpContext.Current.Session("samm_codigoReporte")
    End Function

    Public Shared Function filtroReporte() As String
    return System.Web.HttpContext.Current.Session("samm_filtroReporte")
    End Function

    Public Shared Function agrupamiento() As String
    Dim t_ As String = System.Web.HttpContext.Current.Session("samm_agrupamiento")
    If t_ &lt;&gt; "" Then
                Return t_ &amp; ": "
            Else
                Return ""
            End If
        End Function

    Shared TextoOTCabecera As String = ""

    Public Shared Function getValorElemento(ByVal ReportItems As Object, ByVal item As String) As String
        If TextoOTCabecera = "" Then
            TextoOTCabecera = ReportItems(item).Value.ToString()
        End If
        Return TextoOTCabecera
    End Function

    public shared function getReporteID() as String
    Dim t_ As String = Web.HttpContext.Current.Request.QueryString("r")
    return t_
    End Function</Code>
  <Width>18.5cm</Width>
  <Body>
    <ColumnSpacing>1cm</ColumnSpacing>
    <ReportItems>
      <Rectangle Name="rectangle1">
        <ZIndex>1</ZIndex>
        <ReportItems>
          <Line Name="line2">
            <Style>
              <BorderStyle>
                <Default>Solid</Default>
              </BorderStyle>
              <BorderWidth>
                <Default>0.5pt</Default>
              </BorderWidth>
            </Style>
            <ZIndex>1</ZIndex>
            <Height>0cm</Height>
          </Line>
          <List Name="list1">
            <DataSetName>origen2</DataSetName>
            <ReportItems>
              <Textbox Name="textbox36">
                <Top>0.1cm</Top>
                <Width>5.8cm</Width>
                <Style>
                  <FontSize>8pt</FontSize>
                  <TextAlign>Left</TextAlign>
                  <PaddingLeft>2pt</PaddingLeft>
                  <PaddingRight>2pt</PaddingRight>
                </Style>
                <ZIndex>4</ZIndex>
                <CanGrow>true</CanGrow>
                <Left>2.2cm</Left>
                <Height>0.3cm</Height>
                <Value>=Fields!usuario.Value</Value>
              </Textbox>
              <Textbox Name="textbox39">
                <Top>0.1cm</Top>
                <Width>2.1cm</Width>
                <Style>
                  <FontSize>8pt</FontSize>
                  <FontWeight>700</FontWeight>
                  <PaddingLeft>2pt</PaddingLeft>
                  <PaddingRight>2pt</PaddingRight>
                </Style>
                <ZIndex>3</ZIndex>
                <CanGrow>true</CanGrow>
                <Height>0.3cm</Height>
                <Value>LOGIN:</Value>
              </Textbox>
              <Subreport Name="subreport1">
                <Parameters>
                  <Parameter Name="nombre">
                    <Value>=Fields!nombre.Value</Value>
                  </Parameter>
                </Parameters>
                <Top>0.7cm</Top>
                <ReportName>subCotizacionesPorAsesor</ReportName>
                <ZIndex>2</ZIndex>
              </Subreport>
              <Textbox Name="textbox2">
                <Top>0.1cm</Top>
                <Style>
                  <FontSize>8pt</FontSize>
                  <TextAlign>Left</TextAlign>
                  <PaddingLeft>2pt</PaddingLeft>
                  <PaddingRight>2pt</PaddingRight>
                </Style>
                <ZIndex>1</ZIndex>
                <CanGrow>true</CanGrow>
                <Left>12.1cm</Left>
                <Height>0.3cm</Height>
                <Value>=Fields!nombre.Value</Value>
              </Textbox>
              <Textbox Name="textbox4">
                <Top>0.1cm</Top>
                <Width>2.1cm</Width>
                <Style>
                  <FontSize>8pt</FontSize>
                  <FontWeight>700</FontWeight>
                  <PaddingLeft>2pt</PaddingLeft>
                  <PaddingRight>2pt</PaddingRight>
                </Style>
                <CanGrow>true</CanGrow>
                <Left>9.9cm</Left>
                <Height>0.3cm</Height>
                <Value>NOMBRE:</Value>
              </Textbox>
            </ReportItems>
            <Top>0.1cm</Top>
            <Style>
              <BorderWidth>
                <Default>0.3pt</Default>
              </BorderWidth>
            </Style>
          </List>
        </ReportItems>
        <Top>0.7cm</Top>
        <Width>18.3cm</Width>
        <Style>
          <BorderStyle>
            <Default>Solid</Default>
          </BorderStyle>
          <BorderWidth>
            <Default>0.5pt</Default>
          </BorderWidth>
        </Style>
        <Height>3.3cm</Height>
      </Rectangle>
      <Rectangle Name="rectangle2">
        <ReportItems>
          <Textbox Name="textbox40">
            <Width>14.9cm</Width>
            <Style>
              <FontSize>8pt</FontSize>
              <PaddingLeft>2pt</PaddingLeft>
              <PaddingRight>2pt</PaddingRight>
              <PaddingTop>2pt</PaddingTop>
              <PaddingBottom>2pt</PaddingBottom>
            </Style>
            <CanGrow>true</CanGrow>
            <Value>=code.filtroReporte()</Value>
          </Textbox>
        </ReportItems>
        <Width>18.3cm</Width>
        <Style>
          <BorderStyle>
            <Default>Solid</Default>
          </BorderStyle>
          <BorderWidth>
            <Default>0.5pt</Default>
          </BorderWidth>
        </Style>
        <Height>0.7cm</Height>
      </Rectangle>
    </ReportItems>
    <Height>4.1cm</Height>
  </Body>
  <Language>es-CO</Language>
  <PageFooter>
    <PrintOnFirstPage>true</PrintOnFirstPage>
    <ReportItems>
      <Line Name="lineaPiePagina1">
        <Width>18.3cm</Width>
        <Style>
          <BorderStyle>
            <Default>Solid</Default>
          </BorderStyle>
          <BorderWidth>
            <Default>0.5pt</Default>
          </BorderWidth>
        </Style>
        <ZIndex>6</ZIndex>
        <Height>0cm</Height>
      </Line>
      <Textbox Name="CambioPiePagina">
        <Top>0.1cm</Top>
        <Width>13.65cm</Width>
        <Style>
          <FontSize>6pt</FontSize>
          <TextAlign>Center</TextAlign>
          <PaddingLeft>2pt</PaddingLeft>
          <PaddingRight>2pt</PaddingRight>
          <PaddingTop>2pt</PaddingTop>
          <PaddingBottom>2pt</PaddingBottom>
        </Style>
        <ZIndex>5</ZIndex>
        <CanGrow>true</CanGrow>
        <Left>2.325cm</Left>
        <Height>0.4cm</Height>
        <Value>IDAE Soluciones SAS - Cra 13 # 32 - 51 T. 3 Of: A-11   Teléfono: (57 1) 3381691 - www.idaesoluciones.com</Value>
      </Textbox>
      <Textbox Name="textbox34PIE">
        <Top>0.5cm</Top>
        <Width>1.5cm</Width>
        <Style>
          <FontSize>6pt</FontSize>
          <TextAlign>Left</TextAlign>
          <PaddingLeft>2pt</PaddingLeft>
          <PaddingRight>2pt</PaddingRight>
          <PaddingTop>2pt</PaddingTop>
          <PaddingBottom>2pt</PaddingBottom>
        </Style>
        <ZIndex>4</ZIndex>
        <CanGrow>true</CanGrow>
        <Left>3cm</Left>
        <Value>=Globals!PageNumber &amp; " de " &amp; Globals!TotalPages</Value>
      </Textbox>
      <Textbox Name="textbox33PIE">
        <Top>0.5cm</Top>
        <Width>6.1cm</Width>
        <Style>
          <FontSize>6pt</FontSize>
          <TextAlign>Right</TextAlign>
          <PaddingLeft>2pt</PaddingLeft>
          <PaddingRight>2pt</PaddingRight>
          <PaddingTop>2pt</PaddingTop>
          <PaddingBottom>2pt</PaddingBottom>
        </Style>
        <ZIndex>3</ZIndex>
        <CanGrow>true</CanGrow>
        <Left>10.5cm</Left>
        <Height>0.4cm</Height>
        <Value>Impreso por sammweb - www.softwaresamm.com</Value>
      </Textbox>
      <Textbox Name="textbox10PIE">
        <Top>0.5cm</Top>
        <Width>0.95cm</Width>
        <Style>
          <FontSize>6pt</FontSize>
          <FontWeight>700</FontWeight>
          <TextAlign>Right</TextAlign>
          <PaddingLeft>2pt</PaddingLeft>
          <PaddingRight>2pt</PaddingRight>
          <PaddingTop>2pt</PaddingTop>
          <PaddingBottom>2pt</PaddingBottom>
        </Style>
        <ZIndex>2</ZIndex>
        <CanGrow>true</CanGrow>
        <Left>0.7875in</Left>
        <Value>Página:</Value>
      </Textbox>
      <Textbox Name="textbox11PIE">
        <Top>0.5cm</Top>
        <Width>1.85cm</Width>
        <Style>
          <FontSize>6pt</FontSize>
          <FontWeight>700</FontWeight>
          <TextAlign>Right</TextAlign>
          <PaddingLeft>2pt</PaddingLeft>
          <PaddingRight>2pt</PaddingRight>
          <PaddingTop>2pt</PaddingTop>
          <PaddingBottom>2pt</PaddingBottom>
        </Style>
        <ZIndex>1</ZIndex>
        <CanGrow>true</CanGrow>
        <Left>4.7cm</Left>
        <Value>Fecha Impresión</Value>
      </Textbox>
      <Textbox Name="textbox12PIE">
        <Top>0.5cm</Top>
        <Width>3.7cm</Width>
        <Style>
          <FontSize>6pt</FontSize>
          <TextAlign>Left</TextAlign>
          <PaddingLeft>2pt</PaddingLeft>
          <PaddingRight>2pt</PaddingRight>
          <PaddingTop>2pt</PaddingTop>
          <PaddingBottom>2pt</PaddingBottom>
        </Style>
        <CanGrow>true</CanGrow>
        <Left>6.6cm</Left>
        <Value>=Globals!ExecutionTime</Value>
      </Textbox>
    </ReportItems>
    <Height>0.93492cm</Height>
    <PrintOnLastPage>true</PrintOnLastPage>
  </PageFooter>
  <TopMargin>0.5cm</TopMargin>
  <PageHeight>29.7cm</PageHeight>
</Report>