136 lines
8.9 KiB
Plaintext
136 lines
8.9 KiB
Plaintext
<%@ Page Title="" Language="VB" MasterPageFile="~/Site.master" AutoEventWireup="false" CodeFile="CatFuncion.aspx.vb" Inherits="AC_CatFuncion" %>
|
|
|
|
<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 Función
|
|
</asp:Content>
|
|
<asp:Content ID="Content5" ContentPlaceHolderID="H" runat="Server">
|
|
</asp:Content>
|
|
<asp:Content ID="Content6" ContentPlaceHolderID="C" runat="Server">
|
|
<div class="portlet box blue-hoki" style="width:1000px;">
|
|
<div class="portlet-body">
|
|
<asp:UpdatePanel ID="UpTitulos" runat="server" UpdateMode="Conditional">
|
|
<ContentTemplate>
|
|
<table class="table table-striped table-advance table-hover">
|
|
<thead>
|
|
<tr>
|
|
<th width="250px" style="text-align: center">
|
|
<asp:LinkButton ID="LbFuncion" runat="server" CausesValidation="false" Text="" CommandArgument="Funcion;0" OnClick="LbOrden_Click">
|
|
Funcion
|
|
<asp:Literal ID="ImgFuncion" runat="server" Text=" <i class='fa fa-sort' style='color:#999' ></i>"></asp:Literal>
|
|
</asp:LinkButton>
|
|
</th>
|
|
<th width="100px" style="text-align: center">
|
|
<asp:LinkButton ID="LbEstatus" runat="server" CausesValidation="false" Text="" CommandArgument="Estatus;0" OnClick="LbOrden_Click">
|
|
Estatus
|
|
<asp:Literal ID="ImgEstatus" runat="server" Text=" <i class='fa fa-sort' style='color:#999' ></i>"></asp:Literal>
|
|
</asp:LinkButton>
|
|
</th>
|
|
<th width="100px" style="text-align: center">
|
|
<asp:LinkButton ID="LbFechaIng" runat="server" CausesValidation="false" Text="" CommandArgument="FechaIng;0" OnClick="LbOrden_Click">
|
|
Fecha
|
|
<asp:Literal ID="ImgFechaUng" runat="server" Text=" <i class='fa fa-sort' style='color:#999' ></i>"></asp:Literal>
|
|
</asp:LinkButton>
|
|
</th>
|
|
<th width="100px" style="text-align: center">
|
|
<asp:LinkButton ID="LbUsuario" runat="server" CausesValidation="false" Text="" CommandArgument="Usuario;0" OnClick="LbOrden_Click">
|
|
Usuario
|
|
<asp:Literal ID="ImgUsuario" runat="server" Text=" <i class='fa fa-sort' style='color:#999' ></i>"></asp:Literal>
|
|
</asp:LinkButton>
|
|
</th>
|
|
<th width="119" style="text-align: center">Comandos</th>
|
|
</tr>
|
|
</thead>
|
|
<tr>
|
|
<td>
|
|
<asp:TextBox ID="TxtFuncion" runat="server" CausesValidation="true" MaxLength="50" ValidationGroup="GrpGuardar" Width="238px"></asp:TextBox>
|
|
<asp:RequiredFieldValidator ID="RFVFuncion" runat="server" ControlToValidate="TxtFuncion" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Funcion''</b> es necesario, por favor ingréselo." ValidationGroup="GrpGuardar"></asp:RequiredFieldValidator>
|
|
<ajax:ValidatorCalloutExtender ID="VCFuncion" runat="server" HighlightCssClass="vco" TargetControlID="RFVFuncion" Width="300px"></ajax:ValidatorCalloutExtender>
|
|
</td>
|
|
<td> </td>
|
|
<td> </td>
|
|
<td> </td>
|
|
<td style="text-align: center">
|
|
<asp:LinkButton ID="LbAgregar" runat="server" CausesValidation="true" CssClass="Texto" Text="Agregar" ValidationGroup="GrpGuardar"></asp:LinkButton></td>
|
|
</tr>
|
|
</table>
|
|
</ContentTemplate>
|
|
</asp:UpdatePanel>
|
|
<asp:UpdatePanel ID="UpDatos" runat="server" UpdateMode="Conditional">
|
|
<ContentTemplate>
|
|
<asp:GridView ID="GvDatos" runat="server" AutoGenerateColumns="False" DataKeyNames="CveFuncion" EmptyDataText="No se encontraron Funciones Registradas" ToolTip="Listado de Funcion" CssClass="table table-striped table-advance table-hover" style="margin-top:-10px;" GridLines="None" >
|
|
<Columns>
|
|
<asp:TemplateField>
|
|
<ItemTemplate>
|
|
<asp:Literal ID="LtlFuncion" runat="server" Text='<%# Eval("Funcion", "{0}") %>'></asp:Literal>
|
|
</ItemTemplate>
|
|
<EditItemTemplate>
|
|
<asp:TextBox ID="TxtFuncion" runat="server" CausesValidation="true" MaxLength="50" Text='<%# Eval("Funcion") %>' ValidationGroup="GrpGV" Width="238px"></asp:TextBox>
|
|
<asp:RequiredFieldValidator ID="RFVFuncion" runat="server" ControlToValidate="TxtFuncion" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Funcion''</b> es necesario, por favor ingréselo." ValidationGroup="GrpGV"></asp:RequiredFieldValidator>
|
|
<ajax:ValidatorCalloutExtender ID="VCFuncion" runat="server" HighlightCssClass="vco" TargetControlID="RFVFuncion" Width="300px"></ajax:ValidatorCalloutExtender>
|
|
</EditItemTemplate>
|
|
</asp:TemplateField>
|
|
<asp:TemplateField>
|
|
<ItemTemplate>
|
|
<asp:Literal ID="LtlEstatus" runat="server" Text='<%# Eval("Estatus") %>'></asp:Literal>
|
|
</ItemTemplate>
|
|
<EditItemTemplate>
|
|
<asp:CheckBox ID="ChkEstatus" runat="server" Checked='<%# If (Eval("Estatus").ToString = "Activo", True, False) %>' />
|
|
</EditItemTemplate>
|
|
</asp:TemplateField>
|
|
<asp:TemplateField>
|
|
<ItemTemplate>
|
|
<asp:Literal ID="LtlFecha" runat="server" Text='<%# Eval("FechaIng", "{0:d}") %>'></asp:Literal>
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
<asp:TemplateField>
|
|
<ItemTemplate>
|
|
<asp:Literal ID="LtlUsuario" runat="server" Text='<%# Eval("Usuario") %>'></asp:Literal>
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
<asp:TemplateField HeaderText="Editar">
|
|
<EditItemTemplate>
|
|
<center>
|
|
<asp:LinkButton ID="imgU" runat="server" AlternateText="Actualizar" CausesValidation="True" CommandName="Update"
|
|
CssClass="btn btn-circle btn-sm green" Text="<i class='fa fa-check'></i>" ValidationGroup="GrpGV" />
|
|
<asp:LinkButton ID="imgC" runat="server" AlternateText="Cancelar" CausesValidation="False" CommandName="Cancel"
|
|
CssClass="btn btn-circle btn-sm red" Text="<i class='fa fa-times'></i>"/>
|
|
</center>
|
|
</EditItemTemplate>
|
|
<ItemTemplate>
|
|
<asp:LinkButton ID="imgE" runat="server" AlternateText="Editar" CausesValidation="False" CommandName="Edit"
|
|
CssClass="btn btn-circle btn-sm green" Text="<i class='fa fa-pencil'></i>" />
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
<asp:TemplateField HeaderText="Eliminar">
|
|
<ItemTemplate>
|
|
<asp:LinkButton ID="imgD" runat="server" AlternateText="Eliminar" CausesValidation="False" CommandName="Delete"
|
|
CssClass="btn btn-circle btn-sm red" Text="<i class='icon-trash'></i>"
|
|
data-toggle="confirmation" data-popout="true" data-original-title="confirmar" data-btn-ok-label="si" />
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
</Columns>
|
|
<RowStyle CssClass="Texto" />
|
|
<AlternatingRowStyle CssClass="TextoAlterno" />
|
|
</asp:GridView>
|
|
</ContentTemplate>
|
|
</asp:UpdatePanel>
|
|
</div>
|
|
</div>
|
|
|
|
</asp:Content>
|
|
<asp:Content ID="Content7" ContentPlaceHolderID="JS" runat="Server">
|
|
<script language="javascript" type="text/javascript">
|
|
function C() {
|
|
return confirm('¿Está seguro que desea eliminar la Funcion?');
|
|
}
|
|
</script>
|
|
</asp:Content>
|
|
|
|
|