<?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>22.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>22.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>13.7cm</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>7cm</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>20.9cm</Left>
          </Line>
          <Line Name="line5">
            <Width>0cm</Width>
            <Style>
              <BorderStyle>
                <Default>Solid</Default>
              </BorderStyle>
              <BorderWidth>
                <Default>0.5pt</Default>
              </BorderWidth>
            </Style>
            <Left>6.8cm</Left>
          </Line>
        </ReportItems>
        <Width>27cm</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>29.7cm</PageWidth>
  <DataSets>
    <DataSet Name="origen1">
      <Fields>
        <Field Name="itemDocumento">
          <DataField>itemdocumento</DataField>
          <rd:TypeName>System.String</rd:TypeName>
        </Field>
        <Field Name="cantidadEjecutado">
          <DataField>cantidadEjecutado</DataField>
          <rd:TypeName>System.String</rd:TypeName>
        </Field>
        <Field Name="valorUnitarioejecutado">
          <DataField>valorUnitarioEjecutado</DataField>
          <rd:TypeName>System.String</rd:TypeName>
        </Field>
        <Field Name="dtoEjecutado">
          <DataField>dtoEjecutado</DataField>
          <rd:TypeName>System.String</rd:TypeName>
        </Field>
        <Field Name="totalejecutado">
          <DataField>totalEjecutado</DataField>
          <rd:TypeName>System.String</rd:TypeName>
        </Field>
        <Field Name="descripcion">
          <DataField>descripcion</DataField>
          <rd:TypeName>System.String</rd:TypeName>
        </Field>
        <Field Name="numero">
          <DataField>numero</DataField>
          <rd:TypeName>System.String</rd:TypeName>
        </Field>
        <Field Name="fecha_fh">
          <DataField>fecha_fh</DataField>
          <rd:TypeName>System.String</rd:TypeName>
        </Field>
        <Field Name="prefijo">
          <DataField>prefijo</DataField>
          <rd:TypeName>System.String</rd:TypeName>
        </Field>
        <Field Name="documento">
          <DataField>documento</DataField>
          <rd:TypeName>System.String</rd:TypeName>
        </Field>
        <Field Name="total">
          <DataField>total</DataField>
          <rd:TypeName>System.String</rd:TypeName>
        </Field>
        <Field Name="subtotal">
          <DataField>subtotal</DataField>
          <rd:TypeName>System.String</rd:TypeName>
        </Field>
        <Field Name="iva">
          <DataField>iva</DataField>
          <rd:TypeName>System.String</rd:TypeName>
        </Field>
        <Field Name="catalogo">
          <DataField>catalogo</DataField>
          <rd:TypeName>System.String</rd:TypeName>
        </Field>
        <Field Name="catalogo_codigo">
          <DataField>catalogo_codigo</DataField>
          <rd:TypeName>System.String</rd:TypeName>
        </Field>
        <Field Name="centrocosto">
          <DataField>centroCosto</DataField>
          <rd:TypeName>System.String</rd:TypeName>
        </Field>
        <Field Name="estadoTipodocumento">
          <DataField>estadoTipoDocumento</DataField>
          <rd:TypeName>System.String</rd:TypeName>
        </Field>
        <Field Name="tercero">
          <DataField>tercero</DataField>
          <rd:TypeName>System.String</rd:TypeName>
        </Field>
        <Field Name="tercero_nit">
          <DataField>tercero_nit</DataField>
          <rd:TypeName>System.String</rd:TypeName>
        </Field>
        <Field Name="direccion">
          <DataField>direccion</DataField>
          <rd:TypeName>System.String</rd:TypeName>
        </Field>
        <Field Name="telefono">
          <DataField>telefono</DataField>
          <rd:TypeName>System.String</rd:TypeName>
        </Field>
        <Field Name="contacto">
          <DataField>contacto</DataField>
          <rd:TypeName>System.String</rd:TypeName>
        </Field>
        <Field Name="zona">
          <DataField>zona</DataField>
          <rd:TypeName>System.String</rd:TypeName>
        </Field>
      </Fields>
      <Query>
        <DataSourceName>samm_web</DataSourceName>
        <CommandText />
      </Query>
    </DataSet>
    <DataSet Name="origen2">
      <Fields>
        <Field Name="centrocosto">
          <DataField>centroCosto</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>27.2cm</Width>
  <Body>
    <ColumnSpacing>1cm</ColumnSpacing>
    <ReportItems>
      <Rectangle Name="rectangle1">
        <ReportItems>
          <Rectangle Name="rectangle2">
            <ZIndex>2</ZIndex>
            <ReportItems>
              <Textbox Name="textbox40">
                <Width>22.8cm</Width>
                <Style>
                  <FontSize>8pt</FontSize>
                  <PaddingLeft>2pt</PaddingLeft>
                  <PaddingRight>2pt</PaddingRight>
                  <PaddingTop>2pt</PaddingTop>
                  <PaddingBottom>2pt</PaddingBottom>
                </Style>
                <CanGrow>true</CanGrow>
                <Left>2.1cm</Left>
                <Height>0.6cm</Height>
                <Value>=code.filtroReporte()</Value>
              </Textbox>
            </ReportItems>
            <Style>
              <BorderStyle>
                <Default>Solid</Default>
              </BorderStyle>
              <BorderWidth>
                <Default>0.5pt</Default>
              </BorderWidth>
            </Style>
            <Height>0.7cm</Height>
          </Rectangle>
          <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>4.3cm</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!centrocosto.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>CENTRO:</Value>
              </Textbox>
              <Subreport Name="subreport1">
                <Parameters>
                  <Parameter Name="centro">
                    <Value>=Fields!centrocosto.Value</Value>
                  </Parameter>
                </Parameters>
                <Top>0.7cm</Top>
                <ReportName>subItemsOCXCentroCosto</ReportName>
                <ZIndex>2</ZIndex>
                <Height>2.5cm</Height>
              </Subreport>
              <Line Name="line1">
                <Top>3.2cm</Top>
                <Style>
                  <BorderStyle>
                    <Default>Solid</Default>
                  </BorderStyle>
                  <BorderWidth>
                    <Default>0.5pt</Default>
                  </BorderWidth>
                </Style>
                <ZIndex>1</ZIndex>
                <Height>0cm</Height>
              </Line>
              <Line Name="line4">
                <Top>3.5cm</Top>
                <Style>
                  <BorderStyle>
                    <Default>Solid</Default>
                  </BorderStyle>
                  <BorderWidth>
                    <Default>0.5pt</Default>
                  </BorderWidth>
                </Style>
              </Line>
            </ReportItems>
            <Top>0.7cm</Top>
            <Style>
              <BorderWidth>
                <Default>0.3pt</Default>
              </BorderWidth>
            </Style>
          </List>
        </ReportItems>
        <Top>0.1cm</Top>
        <Width>27cm</Width>
        <Height>4.2cm</Height>
      </Rectangle>
    </ReportItems>
    <Height>4.6cm</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>21cm</PageHeight>
</Report>