308 lines
20 KiB
Plaintext
308 lines
20 KiB
Plaintext
<%@ Page Title="" Language="VB" MasterPageFile="~/Site.master" AutoEventWireup="false" CodeFile="CatModulos.aspx.vb" Inherits="CatModulos" %>
|
||
|
||
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
|
||
<asp:Content ID="Content1" ContentPlaceHolderID="CP" runat="Server">
|
||
<link href="/Metronic/assets/global/plugins/datatables/plugins/bootstrap/dataTables.bootstrap.css" rel="stylesheet" />
|
||
</asp:Content>
|
||
<asp:Content ID="Content2" ContentPlaceHolderID="Css" runat="Server">
|
||
<style>
|
||
.Widthall {
|
||
width: 100% !important;
|
||
}
|
||
|
||
.dataTables_scrollHeadInner {
|
||
width: 100% !important;
|
||
background-color: #dddddd;
|
||
padding-left: 0px !important;
|
||
}
|
||
|
||
.dataTables_scrollFoot {
|
||
display: none;
|
||
position: static;
|
||
}
|
||
|
||
.table-scrollable {
|
||
margin: 0px !important;
|
||
}
|
||
|
||
.dataTables_scroll {
|
||
margin-bottom: 0px;
|
||
}
|
||
|
||
.table.dataTable {
|
||
margin-top: 0px !important;
|
||
}
|
||
|
||
.dataTables_scrollBody table th {
|
||
padding: 0px !important;
|
||
padding-right: 4px !important;
|
||
padding-left: 4px !important;
|
||
}
|
||
|
||
.sinlink td a {
|
||
pointer-events: none;
|
||
cursor: default;
|
||
color: black;
|
||
font-size: small;
|
||
}
|
||
|
||
.white a {
|
||
color: white !important;
|
||
}
|
||
</style>
|
||
</asp:Content>
|
||
<asp:Content ID="Content3" ContentPlaceHolderID="HB" runat="Server">
|
||
</asp:Content>
|
||
<asp:Content ID="Content4" ContentPlaceHolderID="E" runat="Server">
|
||
Catálogo de Módulos
|
||
</asp:Content>
|
||
<asp:Content ID="Content5" ContentPlaceHolderID="H" runat="Server">
|
||
<asp:UpdatePanel runat="server">
|
||
<ContentTemplate>
|
||
<li>
|
||
<asp:LinkButton ID="HlAgregarModulo" runat="server"><i class="fa fa-plus"></i> Agregar Módulo</asp:LinkButton>
|
||
</li>
|
||
</ContentTemplate>
|
||
</asp:UpdatePanel>
|
||
</asp:Content>
|
||
<asp:Content ID="Content6" ContentPlaceHolderID="C" runat="Server">
|
||
|
||
<div align="right">
|
||
<input type="text" id="TxtBusqueda" class="form-control input-sm" onkeyup="<%= String.Format("FiltrarTabla('TxtBusqueda','{0}');", GvDatos.ClientID) %>" style="display: inline-block; margin-right: -20px; width: 150px;" />
|
||
<a href="javascript:;" onclick="<%= String.Format("FiltrarTabla('TxtBusqueda','{0}');", GvDatos.ClientID) %>" style="margin-top: -3px;" class="btn btn-circle btn-sm label-info"><i class="icon-magnifier"></i></a>
|
||
</div>
|
||
<br />
|
||
|
||
<asp:UpdatePanel ID="UpDatos" runat="server" UpdateMode="Conditional">
|
||
<ContentTemplate>
|
||
<asp:GridView ID="GvDatos" runat="server" AutoGenerateColumns="False" DataKeyNames="CveModulo, DesPadre, Modulo, Liga, PopUp, Ancho, Alto, Orden, Estilo, Incluye, Agrupacion, CvePadre,CvePlataforma" EmptyDataText="No se encontraron módulos" ToolTip="Módulos" CssClass="table table-striped table-advance table-hover Widthall ScrollAD mysmallbtn" data-sort="true" GridLines="None">
|
||
<Columns>
|
||
<asp:TemplateField HeaderText="Clave">
|
||
<ItemTemplate>
|
||
<asp:Label ID="A" runat="server" Text='<%# Eval("CveModulo", "{0}") %>'></asp:Label>
|
||
</ItemTemplate>
|
||
|
||
</asp:TemplateField>
|
||
<asp:TemplateField HeaderText="Padre">
|
||
<ItemTemplate>
|
||
<asp:Label ID="B" runat="server" Text='<%# Eval("DesPadre", "{0}") %>'></asp:Label>
|
||
</ItemTemplate>
|
||
|
||
</asp:TemplateField>
|
||
<asp:TemplateField HeaderText="Descripción">
|
||
<ItemTemplate>
|
||
<asp:Label ID="C" runat="server" Text='<%# Eval("Modulo", "{0}") %>'></asp:Label>
|
||
</ItemTemplate>
|
||
|
||
</asp:TemplateField>
|
||
<asp:TemplateField HeaderText="Liga">
|
||
<ItemTemplate>
|
||
<asp:Label ID="D" runat="server" Text='<%# Eval("Liga", "{0}") %>'></asp:Label>
|
||
</ItemTemplate>
|
||
|
||
</asp:TemplateField>
|
||
<asp:TemplateField HeaderText="PopUp" ItemStyle-HorizontalAlign="Center">
|
||
<ItemTemplate>
|
||
<asp:Label ID="E" runat="server" Text='<%# Eval("PopUp", "{0}") %>'></asp:Label>
|
||
</ItemTemplate>
|
||
</asp:TemplateField>
|
||
<asp:TemplateField HeaderText="Orden">
|
||
<ItemTemplate>
|
||
<asp:Label ID="H" runat="server" Text='<%# Eval("Orden", "{0}") %>'></asp:Label>
|
||
</ItemTemplate>
|
||
</asp:TemplateField>
|
||
<asp:TemplateField HeaderText="Estilo">
|
||
<ItemTemplate>
|
||
<asp:Label ID="Estilo" runat="server" Text='<%# Eval("Estilo", "{0}") %>'></asp:Label>
|
||
</ItemTemplate>
|
||
</asp:TemplateField>
|
||
<asp:TemplateField HeaderText="Fecha">
|
||
<ItemTemplate>
|
||
<asp:Label ID="K" runat="server" Text='<%# Eval("FechaIng", "{0:d}") %>'></asp:Label>
|
||
</ItemTemplate>
|
||
</asp:TemplateField>
|
||
<asp:TemplateField HeaderText="Nombre">
|
||
<ItemTemplate>
|
||
<asp:Label ID="L" runat="server" Text='<%# Eval("Nombre", "{0}") %>'></asp:Label>
|
||
</ItemTemplate>
|
||
</asp:TemplateField>
|
||
<asp:TemplateField ItemStyle-Width="99px">
|
||
<ItemTemplate>
|
||
<asp:LinkButton ID="ImgE" runat="server" AlternateText="Editar" CausesValidation="False" OnClick="ActualizaModulo" CssClass="btn btn-circle btn-sm green" Text="<i class='fa fa-pencil'></i>" />
|
||
</ItemTemplate>
|
||
</asp:TemplateField>
|
||
<asp:TemplateField ItemStyle-Width="83px">
|
||
<ItemTemplate>
|
||
<asp:LinkButton ID="ImgEE" 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>
|
||
</asp:GridView>
|
||
</ContentTemplate>
|
||
</asp:UpdatePanel>
|
||
|
||
<asp:UpdatePanel runat="server" UpdateMode="Conditional" ID="UpModal">
|
||
<ContentTemplate>
|
||
<div id="ModalModulos" class="modal ADS fade" role="dialog">
|
||
<div class="modal-dialog" style="width: 450px;">
|
||
<asp:UpdatePanel runat="server" class="modal-content" ID="UpModalModulos" 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 Modulos</asp:Literal></h4>
|
||
</div>
|
||
<div class="modal-body">
|
||
<div class="row">
|
||
<div class="col-md-6">
|
||
<div class="form-group form-md-line-input input-iconright">
|
||
<asp:TextBox ID="TxtClave" CssClass="form-control " runat="server" MaxLength="50" CausesValidation="true"></asp:TextBox>
|
||
<asp:RequiredFieldValidator ID="RFVClave" runat="server" ControlToValidate="TxtClave" CssClass="help-block errorimput" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>'¨Clave''</b> es necesario, por favor ingréselo." ValidationGroup="GrpModulo"></asp:RequiredFieldValidator>
|
||
<label for="<%= TxtClave.ClientID.ToString()%>">Clave:</label>
|
||
</div>
|
||
</div>
|
||
<div class="col-md-6">
|
||
<div class="form-group form-md-line-input input-iconright">
|
||
<asp:DropDownList ID="CboPadres" CssClass="form-control input-sm select2me js-cuenta-programmatic select2me" runat="server" AppendDataBoundItems="true" DataTextField="Padres" DataValueField="CveModulo" Width="240px" ValidationGroup="GrpModulo"></asp:DropDownList>
|
||
<label for="<%= CboPadres.ClientID.ToString()%>">Padre:</label>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
<div class="row">
|
||
|
||
<div class="form-group form-md-line-input input-iconright">
|
||
<asp:TextBox ID="TxtDescripcion" CssClass="form-control " runat="server" MaxLength="50" CausesValidation="true"></asp:TextBox>
|
||
<asp:RequiredFieldValidator ID="RFVDescripcion" runat="server" ControlToValidate="TxtDescripcion" CssClass="help-block errorimput" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>'¨Descripción''</b> es necesario, por favor ingréselo." ValidationGroup="GrpModulo"></asp:RequiredFieldValidator>
|
||
<label for="<%= TxtDescripcion.ClientID.ToString()%>">Descripción:</label>
|
||
</div>
|
||
</div>
|
||
<div class="row">
|
||
<div class="form-group form-md-line-input input-iconright">
|
||
<asp:TextBox ID="TxtLiga" CssClass="form-control " runat="server" MaxLength="50" CausesValidation="true"></asp:TextBox>
|
||
<label for="<%= TxtLiga.ClientID.ToString()%>">Liga:</label>
|
||
</div>
|
||
</div>
|
||
|
||
|
||
<div class="row">
|
||
<div class="col-md-6">
|
||
<div class="form-group form-md-line-input input-iconright">
|
||
<asp:TextBox ID="TxtAncho" CssClass="form-control " runat="server" MaxLength="50" CausesValidation="true"></asp:TextBox>
|
||
<asp:RequiredFieldValidator ID="RFVAncho" runat="server" ControlToValidate="TxtAncho" CssClass="help-block errorimput" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>'¨Ancho''</b> es necesario, por favor ingréselo." ValidationGroup="GrpModulo"></asp:RequiredFieldValidator>
|
||
<label for="<%= TxtAncho.ClientID.ToString()%>">Ancho:</label>
|
||
</div>
|
||
</div>
|
||
<div class="col-md-6">
|
||
<div class="form-group form-md-line-input input-iconright">
|
||
<asp:TextBox ID="TxtAlto" CssClass="form-control " runat="server" MaxLength="50" CausesValidation="true"></asp:TextBox>
|
||
<asp:RequiredFieldValidator ID="RFVAlto" runat="server" ControlToValidate="TxtAlto" CssClass="help-block errorimput" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>'¨Alto''</b> es necesario, por favor ingréselo." ValidationGroup="GrpModulo"></asp:RequiredFieldValidator>
|
||
<label for="<%= TxtAlto.ClientID.ToString()%>">Alto:</label>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
|
||
<div class="row">
|
||
<div class="col-md-6">
|
||
<div class="form-group form-md-line-input input-iconright">
|
||
<asp:TextBox ID="TxtOrden" CssClass="form-control " runat="server" MaxLength="50" CausesValidation="true"></asp:TextBox>
|
||
<asp:RequiredFieldValidator ID="RFVOrden" runat="server" ControlToValidate="TxtOrden" CssClass="help-block errorimput" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>'¨Orden''</b> es necesario, por favor ingréselo." ValidationGroup="GrpModulo"></asp:RequiredFieldValidator>
|
||
<label for="<%= TxtOrden.ClientID.ToString()%>">Orden:</label>
|
||
</div>
|
||
</div>
|
||
<div class="col-md-6">
|
||
<div class="form-group form-md-line-input input-iconright">
|
||
<asp:DropDownList ID="CboPopUp" CssClass="form-control input-sm select2me js-cuenta-programmatic" runat="server" Width="55px">
|
||
<asp:ListItem Selected="True" Text="No" Value="N"></asp:ListItem>
|
||
<asp:ListItem Text="Si" Value="S"></asp:ListItem>
|
||
</asp:DropDownList>
|
||
<label for="<%= CboPopUp.ClientID.ToString()%>">Pop Up:</label>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
<div class="row">
|
||
<div class="col-md-6">
|
||
<div class="form-group form-md-line-input input-iconright">
|
||
<asp:TextBox ID="TxtEstilo" CssClass="form-control " runat="server" MaxLength="50" CausesValidation="true"></asp:TextBox>
|
||
<label for="<%= TxtEstilo.ClientID.ToString()%>">Estilo:</label>
|
||
</div>
|
||
</div>
|
||
<div class="col-md-6">
|
||
<div class="form-group form-md-line-input input-iconright">
|
||
<asp:DropDownList ID="CboIncluye" CssClass="form-control input-sm select2me js-cuenta-programmatic" runat="server" Width="55px">
|
||
<asp:ListItem Selected="True" Text="No" Value="N"></asp:ListItem>
|
||
<asp:ListItem Text="Si" Value="S"></asp:ListItem>
|
||
</asp:DropDownList>
|
||
<label for="<%= CboIncluye.ClientID.ToString()%>">Incluye:</label>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
|
||
<div class="row">
|
||
<div class="col-md-6">
|
||
<div class="form-group form-md-line-input input-iconright">
|
||
<asp:DropDownList ID="CboAgrupacion" CssClass="form-control input-sm select2me js-cuenta-programmatic" runat="server" Width="55px">
|
||
<asp:ListItem Selected="True" Text="No" Value="N"></asp:ListItem>
|
||
<asp:ListItem Text="Si" Value="S"></asp:ListItem>
|
||
</asp:DropDownList>
|
||
<label for="<%= CboAgrupacion.ClientID.ToString()%>">Agrupación:</label>
|
||
</div>
|
||
</div>
|
||
<div class="col-md-6">
|
||
<div class="form-group form-md-line-input input-iconright">
|
||
<asp:DropDownList ID="DdlPlataforma" AppendDataBoundItems="true" DataTextField="Plataforma" DataValueField="CvePlataforma" CssClass="form-control input-sm select2me js-cuenta-programmatic" runat="server" Width="240px">
|
||
<%-- <asp:ListItem Selected="True" Text="SIG" Value="1"></asp:ListItem>
|
||
<asp:ListItem Text="PyME" Value="2"></asp:ListItem>
|
||
<asp:ListItem Text="GPS" Value="3"></asp:ListItem>
|
||
<asp:ListItem Text="App" Value="4"></asp:ListItem>--%>
|
||
</asp:DropDownList>
|
||
<label for="<%= DdlPlataforma.ClientID.ToString()%>">Plataforma:</label>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
|
||
</div>
|
||
<div class="modal-footer">
|
||
<asp:LinkButton ID="LbAgregar" runat="server" class="btn btn-success" Text="Agregar" ValidationGroup="GrpModulo" />
|
||
<button id="BtnCancelarProyecto" runat="server" type="button" class="btn default" data-dismiss="modal">Cancelar</button>
|
||
</div>
|
||
<asp:HiddenField ID="HdnModalidad" runat="server" Value="A" ClientIDMode="Static" />
|
||
<asp:HiddenField ID="HdnID" runat="server" Value="-1" ClientIDMode="Static" />
|
||
</ContentTemplate>
|
||
</asp:UpdatePanel>
|
||
</div>
|
||
</div>
|
||
</ContentTemplate>
|
||
</asp:UpdatePanel>
|
||
|
||
|
||
</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 el Módulo?');
|
||
}
|
||
</script>
|
||
|
||
|
||
<script src="/Metronic/assets/global/scripts/datatable.js"></script>
|
||
<script src="/Metronic/assets/global/plugins/datatables/all.min.js"></script>
|
||
<script type="text/javascript">
|
||
|
||
function OrdenarGV() {
|
||
//var Tam = TamañoVentana();
|
||
//var Alto = Tam.height - 270;
|
||
//if (Alto < 100) {
|
||
// Alto = 100;
|
||
//}
|
||
//$('#C_GvDatos').DataTable({
|
||
// scrollY: Alto + 'px',
|
||
// scrollCollapse: true,
|
||
// paging: false,
|
||
// searching: false,
|
||
// info: false
|
||
//});
|
||
//$('#C_GvDatos').parent().parent().children().first().css("position", "static");
|
||
}
|
||
</script>
|
||
</asp:Content>
|