object srvHistoricoMovimientos: TsrvHistoricoMovimientos
  OldCreateOrder = True
  SessionManager = dmServer.SessionManager
  AcquireConnection = True
  ConnectionName = 'IBX'
  ServiceSchema = schHistoricoMovimientos
  ServiceAdapter = DABINAdapter
  OnBeforeAcquireConnection = DARemoteServiceBeforeAcquireConnection
  OnAfterGetDatasetData = DARemoteServiceAfterGetDatasetData
  Height = 154
  Width = 303
  object schHistoricoMovimientos: TDASchema
    ConnectionManager = dmServer.ConnectionManager
    DataDictionary = DataDictionary
    Datasets = <
      item
        Params = <>
        Statements = <
          item
            Connection = 'IBX'
            TargetTable = 'V_HISTORICO_MOVIMIENTOS'
            SQL = 
              'SELECT'#10'    FECHA,'#10'    ID_ALMACEN,'#10'    ID_EMPRESA,'#10'    NOMBRE_ALM' +
              'ACEN,'#10'    ID_ARTICULO,'#10'    FAMILIA,'#10'    REFERENCIA,'#10'    REFERENC' +
              'IA_PROV,'#10'    DESCRIPCION,'#10'    TIPO_MOVIMIENTO,'#10'    CANTIDAD,'#10'   ' +
              ' CAUSA'#10#10#10'FROM V_HISTORICO_MOVIMIENTOS'#10'ORDER BY FECHA DESC'
            StatementType = stSQL
            ColumnMappings = <
              item
                DatasetField = 'FECHA'
                TableField = 'FECHA'
              end
              item
                DatasetField = 'ID_ALMACEN'
                TableField = 'ID_ALMACEN'
              end
              item
                DatasetField = 'ID_ARTICULO'
                TableField = 'ID_ARTICULO'
              end
              item
                DatasetField = 'FAMILIA'
                TableField = 'FAMILIA'
              end
              item
                DatasetField = 'DESCRIPCION'
                TableField = 'DESCRIPCION'
              end
              item
                DatasetField = 'TIPO_MOVIMIENTO'
                TableField = 'TIPO_MOVIMIENTO'
              end
              item
                DatasetField = 'CANTIDAD'
                TableField = 'CANTIDAD'
              end
              item
                DatasetField = 'CAUSA'
                TableField = 'CAUSA'
              end
              item
                DatasetField = 'NOMBRE_ALMACEN'
                TableField = 'NOMBRE_ALMACEN'
              end
              item
                DatasetField = 'ID_EMPRESA'
                TableField = 'ID_EMPRESA'
              end
              item
                DatasetField = 'REFERENCIA'
                TableField = 'REFERENCIA'
              end
              item
                DatasetField = 'REFERENCIA_PROV'
                TableField = 'REFERENCIA_PROV'
              end>
          end>
        Name = 'HISTORICO_MOVIMIENTOS'
        Fields = <
          item
            Name = 'FECHA'
            DataType = datDateTime
            BlobType = dabtUnknown
            DictionaryEntry = 'HISTORICO_MOVIMIENTOS_FECHA'
            InPrimaryKey = True
            Calculated = False
            Lookup = False
            LookupCache = False
          end
          item
            Name = 'ID_ALMACEN'
            DataType = datInteger
            BlobType = dabtUnknown
            DictionaryEntry = 'HISTORICO_MOVIMIENTOS_ID_ALMACEN'
            InPrimaryKey = True
            Calculated = False
            Lookup = False
            LookupCache = False
          end
          item
            Name = 'ID_EMPRESA'
            DataType = datInteger
            BlobType = dabtUnknown
            DictionaryEntry = 'HISTORICO_MOVIMIENTOS_ID_EMPRESA'
            InPrimaryKey = False
            Calculated = False
            Lookup = False
            LookupCache = False
          end
          item
            Name = 'NOMBRE_ALMACEN'
            DataType = datString
            Size = 255
            BlobType = dabtUnknown
            DictionaryEntry = 'HISTORICO_MOVIMIENTOS_NOMBRE_ALMACEN'
            InPrimaryKey = False
            Calculated = False
            Lookup = False
            LookupCache = False
          end
          item
            Name = 'ID_ARTICULO'
            DataType = datInteger
            BlobType = dabtUnknown
            DictionaryEntry = 'HISTORICO_MOVIMIENTOS_ID_ARTICULO'
            InPrimaryKey = True
            Calculated = False
            Lookup = False
            LookupCache = False
          end
          item
            Name = 'FAMILIA'
            DataType = datString
            Size = 255
            BlobType = dabtUnknown
            DictionaryEntry = 'HISTORICO_MOVIMIENTOS_FAMILIA'
            InPrimaryKey = False
            Calculated = False
            Lookup = False
            LookupCache = False
          end
          item
            Name = 'REFERENCIA'
            DataType = datString
            Size = 255
            BlobType = dabtUnknown
            DictionaryEntry = 'HISTORICO_MOVIMIENTOS_REFERENCIA'
            InPrimaryKey = False
            Calculated = False
            Lookup = False
            LookupCache = False
          end
          item
            Name = 'REFERENCIA_PROV'
            DataType = datString
            Size = 255
            BlobType = dabtUnknown
            DictionaryEntry = 'HISTORICO_MOVIMIENTOS_REFERENCIA_PROV'
            InPrimaryKey = False
            Calculated = False
            Lookup = False
            LookupCache = False
          end
          item
            Name = 'DESCRIPCION'
            DataType = datString
            Size = 255
            BlobType = dabtUnknown
            DictionaryEntry = 'HISTORICO_MOVIMIENTOS_DESCRIPCION'
            InPrimaryKey = False
            Calculated = False
            Lookup = False
            LookupCache = False
          end
          item
            Name = 'TIPO_MOVIMIENTO'
            DataType = datString
            Size = 7
            BlobType = dabtUnknown
            DictionaryEntry = 'HISTORICO_MOVIMIENTOS_TIPO_MOVIMIENTO'
            InPrimaryKey = False
            Calculated = False
            Lookup = False
            LookupCache = False
          end
          item
            Name = 'CANTIDAD'
            DataType = datInteger
            BlobType = dabtUnknown
            DictionaryEntry = 'HISTORICO_MOVIMIENTOS_CANTIDAD'
            InPrimaryKey = False
            Calculated = False
            Lookup = False
            LookupCache = False
          end
          item
            Name = 'CAUSA'
            DataType = datString
            Size = 2021
            BlobType = dabtUnknown
            DictionaryEntry = 'HISTORICO_MOVIMIENTOS_CAUSA'
            InPrimaryKey = False
            Calculated = False
            Lookup = False
            LookupCache = False
          end>
        BusinessRulesClient.ScriptLanguage = rslPascalScript
        BusinessRulesServer.ScriptLanguage = rslPascalScript
      end>
    Commands = <>
    RelationShips = <>
    UpdateRules = <>
    Left = 80
    Top = 16
  end
  object DABINAdapter: TDABINAdapter
    Left = 40
    Top = 72
  end
  object DataDictionary: TDADataDictionary
    Fields = <
      item
        Name = 'HISTORICO_MOVIMIENTOS_FECHA'
        DataType = datDateTime
        BlobType = dabtUnknown
        DisplayWidth = 0
        DisplayLabel = 'Fecha'
        Alignment = taLeftJustify
      end
      item
        Name = 'HISTORICO_MOVIMIENTOS_ID_ALMACEN'
        DataType = datInteger
        BlobType = dabtUnknown
        DisplayWidth = 0
        DisplayLabel = 'ID_ALMACEN'
        Alignment = taLeftJustify
      end
      item
        Name = 'HISTORICO_MOVIMIENTOS_ID_EMPRESA'
        DataType = datInteger
        BlobType = dabtUnknown
        DisplayWidth = 0
        DisplayLabel = 'ID_EMPRESA'
        Alignment = taLeftJustify
      end
      item
        Name = 'HISTORICO_MOVIMIENTOS_NOMBRE_ALMACEN'
        DataType = datString
        Size = 255
        BlobType = dabtUnknown
        DisplayWidth = 0
        DisplayLabel = 'Almac'#233'n'
        Alignment = taLeftJustify
      end
      item
        Name = 'HISTORICO_MOVIMIENTOS_ID_ARTICULO'
        DataType = datInteger
        BlobType = dabtUnknown
        DisplayWidth = 0
        DisplayLabel = 'ID_ARTICULO'
        Alignment = taLeftJustify
      end
      item
        Name = 'HISTORICO_MOVIMIENTOS_FAMILIA'
        DataType = datString
        Size = 255
        BlobType = dabtUnknown
        DisplayWidth = 0
        DisplayLabel = 'Familia'
        Alignment = taLeftJustify
      end
      item
        Name = 'HISTORICO_MOVIMIENTOS_DESCRIPCION'
        DataType = datString
        Size = 255
        BlobType = dabtUnknown
        DisplayWidth = 0
        DisplayLabel = 'Descripci'#243'n'
        Alignment = taLeftJustify
      end
      item
        Name = 'HISTORICO_MOVIMIENTOS_TIPO_MOVIMIENTO'
        DataType = datString
        Size = 7
        BlobType = dabtUnknown
        DisplayWidth = 0
        DisplayLabel = 'Tipo mov.'
        Alignment = taLeftJustify
      end
      item
        Name = 'HISTORICO_MOVIMIENTOS_CANTIDAD'
        DataType = datInteger
        BlobType = dabtUnknown
        DisplayWidth = 0
        DisplayLabel = 'Cantidad'
        Alignment = taLeftJustify
      end
      item
        Name = 'HISTORICO_MOVIMIENTOS_CAUSA'
        DataType = datString
        Size = 2021
        BlobType = dabtUnknown
        DisplayWidth = 0
        DisplayLabel = 'Causa'
        Alignment = taLeftJustify
      end
      item
        Name = 'HISTORICO_MOVIMIENTOS_REFERENCIA'
        DataType = datString
        Size = 255
        BlobType = dabtUnknown
        DisplayWidth = 0
        DisplayLabel = 'Referencia'
        Alignment = taLeftJustify
      end
      item
        Name = 'HISTORICO_MOVIMIENTOS_REFERENCIA_PROV'
        DataType = datString
        Size = 255
        BlobType = dabtUnknown
        DisplayWidth = 0
        DisplayLabel = 'Ref. proveedor'
        Alignment = taLeftJustify
      end>
    Left = 134
    Top = 70
  end
end
