149 lines
8.1 KiB
Plaintext
149 lines
8.1 KiB
Plaintext
<%@ Page Title="" Language="VB" MasterPageFile="~/Site.master" AutoEventWireup="false" ValidateRequest="false" EnableEventValidation="false" CodeFile="CatClasificacionesComprobaciones.aspx.vb" Inherits="Gral_CatClasificacionesComprobaciones" %>
|
||
|
||
<asp:Content ID="Content1" ContentPlaceHolderID="CP" runat="Server">
|
||
</asp:Content>
|
||
<asp:Content ID="Content2" ContentPlaceHolderID="Css" runat="Server">
|
||
</asp:Content>
|
||
<asp:Content ID="Content3" ContentPlaceHolderID="HB" runat="Server">
|
||
</asp:Content>
|
||
|
||
<asp:Content ID="Content4" ContentPlaceHolderID="E" runat="Server">
|
||
Catálogo de Clasificaciones Viáticos y Comprobaciones
|
||
</asp:Content>
|
||
<asp:Content ID="Content5" ContentPlaceHolderID="H" runat="Server">
|
||
<asp:UpdatePanel runat="server" ID="UpAcciones">
|
||
<ContentTemplate>
|
||
|
||
<asp:LinkButton runat="server" ID="LnkAgregarClasificacion" data-toggle="tooltip" data-placement="left" title="Agregar Clasificación"
|
||
Text="<i class='fa fa-plus'></i> Agregar Clasificación" OnClick="LnkAgregarClasificacion_Click" ></asp:LinkButton>
|
||
|
||
</ContentTemplate>
|
||
</asp:UpdatePanel>
|
||
</asp:Content>
|
||
<asp:Content ID="Content6" ContentPlaceHolderID="C" runat="Server">
|
||
|
||
<asp:UpdatePanel ID="UPFiltros" runat="server" UpdateMode="Conditional">
|
||
<ContentTemplate>
|
||
<div id="PFiltros" class="portlet solid grey-cascade portlet-filter">
|
||
<div class="portlet-title portlet-filterT smalltitle">
|
||
<div class="tools">
|
||
<asp:Button ID="BtnConsultar" runat="server" Text="Consultar" OnClick="BtnConsultar_Click" class="btn btn-primary" ValidationGroup="Valida" />
|
||
<a href="javascript:;" class="expand"></a>
|
||
</div>
|
||
|
||
<div class=" caption">
|
||
<div class="row" style="margin-left: 10px;">
|
||
<label class="col-md-1 " id="LbDdlEstados" runat="server" style="width: 90px; margin-top: 5px;">Tipo:</label>
|
||
|
||
<div class="col-md-2" >
|
||
<asp:DropDownList ID="DdlEstadosComprobaciones" runat="server" Width="150px" Class="select2me" AutoPostBack="true">
|
||
<asp:ListItem Selected="True" Value="-1">Todos</asp:ListItem>
|
||
<asp:ListItem Value="0">Sin Asignar</asp:ListItem>
|
||
<asp:ListItem Value="1">Viáticos</asp:ListItem>
|
||
<asp:ListItem Value="2">Comprobaciones</asp:ListItem>
|
||
</asp:DropDownList>
|
||
</div>
|
||
|
||
</div>
|
||
</div>
|
||
</div>
|
||
<div class="portlet-body" style="display: none;">
|
||
|
||
</div>
|
||
</div>
|
||
|
||
</ContentTemplate>
|
||
</asp:UpdatePanel>
|
||
|
||
|
||
|
||
<asp:UpdatePanel runat="server" ID="UpDatos" UpdateMode="Conditional">
|
||
<ContentTemplate>
|
||
|
||
<div class="row">
|
||
<div class="col-md-6">
|
||
|
||
<asp:GridView runat="server" ID="GvClasificaciones" DataKeyNames="CveClasificacion, Clasificacion,TipoComprobacion" GridLines="None" CssClass="table table-striped table-hover Widthall" AutoGenerateColumns="false">
|
||
<Columns>
|
||
|
||
<asp:BoundField DataField="Clasificacion" HeaderText="Clasificación" />
|
||
|
||
<asp:BoundField DataField="TipoComprobacionStr" HeaderText="Tipo Comprobacion" />
|
||
|
||
<asp:TemplateField ItemStyle-Width="40px" ItemStyle-HorizontalAlign="Right">
|
||
<ItemTemplate>
|
||
<asp:LinkButton ID="imgE" runat="server" AlternateText="Editar" OnClick="ActualizaModalClasif" CssClass="btn btn-circle btn-sm green" Text="<i class='fa fa-pencil'></i>" />
|
||
</ItemTemplate>
|
||
</asp:TemplateField>
|
||
|
||
<asp:TemplateField ItemStyle-HorizontalAlign="center" ItemStyle-Width="40px" >
|
||
<ItemTemplate>
|
||
<asp:LinkButton ID="LnkEliminar" runat="server" AlternateText="Eliminar" CausesValidation="False" OnClick="LnkEliminar_Click"
|
||
CssClass="btn btn-circle btn-sm red" Text="<i class='icon-trash'></i>" data-toggle="confirmation" data-popout="true" data-original-title="¿Desea Elminar?" data-btn-ok-label="si" />
|
||
</ItemTemplate>
|
||
</asp:TemplateField>
|
||
|
||
</Columns>
|
||
</asp:GridView>
|
||
</div>
|
||
|
||
</div>
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
</ContentTemplate>
|
||
</asp:UpdatePanel>
|
||
|
||
|
||
<div id="ModalClasificaciones" class="modal ADS fade" role="dialog">
|
||
<div class="modal-dialog" style="width: 450px;">
|
||
<asp:UpdatePanel runat="server" class="modal-content" ID="UpModalClasificaciones" UpdateMode="Conditional">
|
||
<ContentTemplate>
|
||
<div class="modal-header ">
|
||
<button type="button" class="close" data-dismiss="modal">×</button>
|
||
<h4 class="modal-title">
|
||
<asp:Literal ID="LtlTituloModal" runat="server">Agregar Clasificaciones</asp:Literal></h4>
|
||
</div>
|
||
<div class="modal-body">
|
||
|
||
<div class="form-group form-md-line-input input-iconright">
|
||
|
||
<asp:DropDownList ID="DdlClasificacion" runat="server" DataValueField="CveClasificacion" DataTextField="Clasificacion" AppendDataBoundItems="true" Class="table-group-action-input form-control input-inline input-sm select2me" Width="100%"></asp:DropDownList>
|
||
<asp:RequiredFieldValidator ID="RFVCampaña" InitialValue="-1" runat="server" ControlToValidate="DdlClasificacion" CssClass="help-block errorimput" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Clasificación''</b> es necesario, por favor ingréselo." ValidationGroup="GrpGuardarRegistro"></asp:RequiredFieldValidator>
|
||
<label for="<%= DdlClasificacion.ClientID.ToString()%>">Clasificación:</label>
|
||
|
||
</div>
|
||
|
||
<div class="form-group form-md-line-input input-iconright">
|
||
<label for="<%= DdlClasificacion.ClientID.ToString()%>">Tipo Comprobacion:</label>
|
||
<br />
|
||
<asp:DropDownList runat="server" ID="DdlTipoComprobacion" CssClass="select2me">
|
||
<asp:ListItem Value="-1">Sin Asignar</asp:ListItem>
|
||
<asp:ListItem Value="1">Viáticos</asp:ListItem>
|
||
<asp:ListItem Value="2">Comprobaciones</asp:ListItem>
|
||
</asp:DropDownList>
|
||
|
||
</div>
|
||
|
||
</div>
|
||
<div class="modal-footer">
|
||
<asp:Button ID="LbAgregarClasificacion" runat="server" class="btn btn-success" Text="Agregar" ValidationGroup="GrpGuardarRegistro" />
|
||
<button id="BtnCancelarCampaña" runat="server" type="button" class="btn default" data-dismiss="modal">Cancelar</button>
|
||
</div>
|
||
<asp:HiddenField ID="HdnModalidadClasificacion" runat="server" Value="I" ClientIDMode="Static" />
|
||
<asp:HiddenField ID="HdnIDClasificacion" runat="server" Value="-1" ClientIDMode="Static" />
|
||
</ContentTemplate>
|
||
</asp:UpdatePanel>
|
||
</div>
|
||
</div>
|
||
|
||
|
||
</asp:Content>
|
||
<asp:Content ID="Content7" ContentPlaceHolderID="JS" runat="Server">
|
||
</asp:Content>
|