/// <reference name="MicrosoftAjax.debug.js" />
Type.registerNamespace('Web');
if (!Web) Web = {}

Web.DataViewResources = {}

Web.DataViewResources.Common = {
    WaitHtml: '<div class="Wait"></div>'
}

Web.DataViewResources.Pager = {
    ItemsPerPage: 'Registros por página: ',
    PageSizes: [10, 15, 20, 25],
    ShowingItems: 'Mostrando <b>{0}</b>-<b>{1}</b> de <b>{2}</b> registros',
    Refresh: 'Refrescar',
    Next: 'Siguiente »',
    Previous: '« Anterior',
    Page: 'Página',
    PageButtonCount: 10
}

Web.DataViewResources.ActionBar = {
    View: 'Vista'
}

Web.DataViewResources.ModalPopup = {
    Close: 'Cerrar',
    MaxWidth: 800,
    MaxHeight: 600,
    OkButton: 'OK',
    CancelButton: 'Cancelar'
}

Web.DataViewResources.Menu = {
    SiteActions: 'Acciones del sitio',
    SeeAlso: 'Ver también',
    Summary: 'Resumen',
    Tasks: 'Tareas'
}

Web.DataViewResources.HeaderFilter = {
    GenericSortAscending: 'Mas pequeño arriba',
    GenericSortDescending: 'Mas grande arriba',
    StringSortAscending: 'Ascendente',
    StringSortDescending: 'Descendente',
    DateSortAscending: 'Mas antiguo arriba',
    DateSortDescending: 'Mas reciente arriba',
    EmptyValue: '(Vacio)',
    BlankValue: '(Blanco)',
    Loading: 'Cargando...',
    ClearFilter: 'Borrar filtro de {0}',
    SortBy: 'SOrdenar por {0}',
    MaxSampleTextLen: 80,
    CustomFilterOption: 'Filtro personalizado...',
    CustomFilterPrompt: 'Mostrar todos los registro en <span class="Highlight">{0}</span> donde la columna <span class="Highlight">{1}</span> se ajusta a los siguientes valores(s). Se puede separar en varias columnas usando ,  y utilizar  &gt;, &lt;, &gt;=, or &lt;= como operadores antes del valor.',
    CustomFilterLimit: 5
}

Web.DataViewResources.InfoBar = {
    FilterApplied: 'Se ha aplicado un filtro.',
    ValueIs: ' <span class="Highlight">{0}</span> ',
    Or: ' O ',
    And: ' Y ',
    EqualTo: 'es igual a ',
    LessThan: 'es menor que ',
    LessThanOrEqualTo: 'es menor o igual que ',
    GreaterThan: 'es mayor que ',
    GreaterThanOrEqual: 'es mayor o igual que ',
    Like: 'es como ',
    StartsWith: 'empieza con ',
    Empty: 'vacio'
}

Web.DataViewResources.Lookup = {
    SelectToolTip: 'Seleccionar {0}',
    ClearToolTip: 'Vaciar {0}',
    NewToolTip: 'Nuevo {0}',
    SelectLink: '(seleccionar)',
    ShowActionBar: true,
    DetailsToolTip: 'Ver detalles para {0}',
    ShowDetailsInPopup: true,
    GenericNewToolTip: 'Crear nuevo'
}

Web.DataViewResources.Validator = {
    RequiredField: 'Este campo es obligatorio.',
    EnforceRequiredFieldsWithDefaultValue: false,
    NumberIsExpected: 'Se espera un numero.',
    BooleanIsExpected: 'Se espera un valor logico.',
    DateIsExpected: 'Se espera una fecha.'
}

Web.DataViewResources.Data = {
    NullValue: '<span class="NA">n/a</span>',
    NullValueInForms: 'N/A',
    BooleanDefaultStyle: 'DropDownList',
    BooleanOptionalDefaultItems: [[null, 'N/A'], [false, 'No'], [true, 'Si']],
    BooleanDefaultItems: [[false, 'No'], [true, 'Si']],
    MaxReadOnlyStringLen: 600,
    NoRecords: 'No se han encontrado registros.',
    BlobHandler: '~/Blob.ashx',
    BlobDownloadLink: 'descarga',
    BlobDownloadLinkReadOnly: '<span style="color:gray;">descarga</span>',
    BlobDownloadHint: 'Pulse aquí para descargar el fichero original.'
}

Web.DataViewResources.Form = {
    ShowActionBar: true,
    ShowCalendarButton: true,
    RequiredFieldMarker: '<span class="Required">*</span>',
    RequiredFiledMarkerFootnote: '* - Indica un campo obligatorio',
    SingleButtonRowFieldLimit: 7,
    GeneralTabText: 'General'
}

Web.DataViewResources.Grid = {
    InPlaceEditContextMenuEnabled: true,
    QuickFindText: 'Busqueda rapida',
    QuickFindToolTip: 'Escriba par buscar registros y pulse intro'
}

Web.DataViewResources.Actions = {
    DefaultGroups: [
        {
            HeaderText: '',
            Scope: 'Grid',
            Actions: [
            {
                CommandName: 'Select',
                CommandArgument: 'form',
                Confirmation: '',
                CssClass: '',
                Description: '',
                HeaderText: '',
                WhenLastCommandName: ''
            },
            {
                CommandName: 'Edit',
                CommandArgument: '',
                Confirmation: '',
                CssClass: '',
                Description: '',
                HeaderText: '',
                WhenLastCommandName: ''
            },
            {
                CommandName: 'Delete',
                CommandArgument: '',
                Confirmation: 'Delete?',
                CssClass: '',
                Description: '',
                HeaderText: '',
                WhenLastCommandName: ''
            },
            {
                CommandName: 'Update',
                CommandArgument: '',
                Confirmation: '',
                CssClass: '',
                Description: '',
                HeaderText: 'Save',
                WhenLastCommandName: 'Edit'
            },
            {
                CommandName: 'Cancel',
                CommandArgument: '',
                Confirmation: '',
                CssClass: '',
                Description: '',
                HeaderText: '',
                WhenLastCommandName: 'Edit'
            }
            ]
        },
        {
            HeaderText: '',
            Scope: 'Form',
            Actions:
            [
            {
                CommandName: 'Edit',
                CommandArgument: '',
                Confirmation: '',
                CssClass: '',
                Description: '',
                HeaderText: '',
                WhenLastCommandName: 'Select'
            },
            {
                CommandName: 'Delete',
                CommandArgument: '',
                Confirmation: 'Delete?',
                CssClass: '',
                Description: '',
                HeaderText: '',
                WhenLastCommandName: 'Select'
            },
            {
                CommandName: 'Cancel',
                CommandArgument: '',
                Confirmation: '',
                CssClass: '',
                Description: '',
                HeaderText: 'Close',
                WhenLastCommandName: 'Select'
            },
            {
                CommandName: 'Update',
                CommandArgument: '',
                Confirmation: '',
                CssClass: '',
                Description: '',
                HeaderText: 'OK',
                WhenLastCommandName: 'Edit'
            },
            {
                CommandName: 'Delete',
                CommandArgument: '',
                Confirmation: 'Delete?',
                CssClass: '',
                Description: '',
                HeaderText: '',
                WhenLastCommandName: 'Edit'
            },
            {
                CommandName: 'Cancel',
                CommandArgument: '',
                Confirmation: '',
                CssClass: '',
                Description: '',
                HeaderText: '',
                WhenLastCommandName: 'Edit'
            },
            {
                CommandName: 'Insert',
                CommandArgument: '',
                Confirmation: '',
                CssClass: '',
                Description: '',
                HeaderText: 'OK',
                WhenLastCommandName: 'New'
            },
            {
                CommandName: 'Cancel',
                CommandArgument: '',
                Confirmation: '',
                CssClass: '',
                Description: '',
                HeaderText: '',
                WhenLastCommandName: 'New'
            }
            ]
        }
        ]
}

if (typeof (Sys) !== 'undefined') Sys.Application.notifyScriptLoaded();

