479 lines
26 KiB
Plaintext
479 lines
26 KiB
Plaintext
<%@ Page Title="Ventas - Catálogo de Productos o Servicios" Language="VB" MasterPageFile="~/Site.master" AutoEventWireup="false" CodeFile="CatPS.aspx.vb" Inherits="CatPS" %>
|
|
|
|
<%@ 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;
|
|
}
|
|
|
|
table td {
|
|
word-break: break-all;
|
|
}
|
|
</style>
|
|
|
|
<style>
|
|
GvDatosHeader {
|
|
color: White;
|
|
font-family: Verdana;
|
|
font-size: 12pt;
|
|
text-align: center;
|
|
vertical-align: middle;
|
|
font-weight: bold;
|
|
}
|
|
|
|
ADscroller2 {
|
|
overflow-y: auto;
|
|
overflow-x: hidden;
|
|
scrollbar-base-color: #303A48;
|
|
scrollbar-face-color: #2B3643;
|
|
scrollbar-3dlight-color: #303A48;
|
|
scrollbar-highlight-color: #303A48;
|
|
scrollbar-track-color: #343E4D;
|
|
scrollbar-arrow-color: #303A48;
|
|
scrollbar-shadow-color: #303A48;
|
|
scrollbar-darkshadow-color: #303A48;
|
|
}
|
|
|
|
.Izquierda {
|
|
text-align: left;
|
|
}
|
|
</style>
|
|
</asp:Content>
|
|
<asp:Content ID="Content3" ContentPlaceHolderID="HB" runat="Server">
|
|
|
|
<li>
|
|
<asp:LinkButton ID="LBAgregarPS" runat="server" PostBackUrl="~/Ventas/ProductosServicios.aspx">
|
|
<i class="fa fa-plus"></i> Nuevo Producto/Servicio
|
|
</asp:LinkButton>
|
|
</li>
|
|
|
|
<li>
|
|
<asp:HyperLink NavigateUrl="#" data-toggle="modal" data-target="#DivPersonalizar" ID="HyperLink1" runat="server"> <i class="fa fa-pencil"></i> Personalizar</asp:HyperLink>
|
|
</li>
|
|
|
|
<li>
|
|
<asp:HyperLink NavigateUrl="#" data-toggle="modal" data-target="#DivReportes" ID="ImgReportes" runat="server"><i style="font-weight:bold" class="fa fa-file-pdf-o"></i> Exportar productos sin SAT</asp:HyperLink>
|
|
</li>
|
|
|
|
<li>
|
|
<asp:LinkButton ID="LBImprimir" runat="server"><i style="font-weight:bold" class="fa fa-file-pdf-o"></i> Exportar PDF</asp:LinkButton>
|
|
</li>
|
|
|
|
<li>
|
|
<asp:LinkButton ID="LBExcel" runat="server"><i style="font-weight:bold" class="fa fa-file-excel-o"></i> Exporta Excel</asp:LinkButton>
|
|
</li>
|
|
<asp:UpdatePanel ID="UppExcelPers" runat="server" UpdateMode="Conditional">
|
|
<ContentTemplate>
|
|
<li>
|
|
<asp:LinkButton ID="LBExcelPersonalizado" runat="server" Visible="false"><i style="font-weight:bold" class="fa fa-file-excel-o"></i> Excel Personalizado</asp:LinkButton>
|
|
</li>
|
|
</ContentTemplate>
|
|
<Triggers>
|
|
<asp:PostBackTrigger ControlID="LBExcelPersonalizado" />
|
|
</Triggers>
|
|
</asp:UpdatePanel>
|
|
<li>
|
|
<asp:LinkButton ID="LnkExcelPSAdicional" runat="server" Visible="false" data-target="#DivCargaExcel"><i class="fa fa-file-excel-o" style="font-weight:bold;"></i> Cargar Productos Adicionales</asp:LinkButton>
|
|
</li>
|
|
|
|
<%--onclick="AbrirVentana('/Ventas/ProductosServicios.aspx', 700, 400, 'N', 'PS')"--%>
|
|
</asp:Content>
|
|
<asp:Content ID="Content4" ContentPlaceHolderID="E" runat="Server">
|
|
Catálogo de Productos o Servicios
|
|
</asp:Content>
|
|
<asp:Content ID="Content5" ContentPlaceHolderID="H" runat="Server">
|
|
</asp:Content>
|
|
<asp:Content ID="Content6" ContentPlaceHolderID="C" runat="Server">
|
|
|
|
|
|
<asp:UpdatePanel ID="UpTitulos" runat="server" UpdateMode="Conditional">
|
|
<ContentTemplate>
|
|
<div class="portlet solid grey-cascade portlet-filter">
|
|
<div class="portlet-title portlet-filterT smalltitle">
|
|
<div class="tools">
|
|
<asp:Button runat="server" ID="BtnFiltrar" Text="Filtrar" Width="80px" OnClick="BtnFiltrar_Click" class="btn btn-primary" />
|
|
<a href="javascript;" class="expand" data-original-title="" title=""></a>
|
|
</div>
|
|
<div class="titlefiltros caption ">
|
|
<div class="row">
|
|
<label title="Tipo de Clasificación" data-toggle="tooltip" data-placement="top" class="col-md-1 ">Tipo Clasif.:</label>
|
|
<div class="col-md-1">
|
|
<asp:DropDownList ID="DdlTipoClasificacion" OnSelectedIndexChanged="DdlTipoClasificacion_SelectedIndexChanged" AutoPostBack="true" runat="server" AppendDataBoundItems="true" Class="table-group-action-input form-control input-inline input-sm select2me" Width="100%">
|
|
<asp:ListItem Selected="True" Text="Todos" Value="-1"></asp:ListItem>
|
|
<asp:ListItem Text="Ingresos" Value="1"></asp:ListItem>
|
|
<asp:ListItem Text="Gasto" Value="2"></asp:ListItem>
|
|
<asp:ListItem Text="Ingresos/Gasto" Value="3"></asp:ListItem>
|
|
</asp:DropDownList>
|
|
</div>
|
|
<div class="col-md-1 truncate">Clasificación:</div>
|
|
<div class="col-md-2">
|
|
<asp:DropDownList runat="server" ID="Ddlclasificacion" CssClass="form-control input-sm select2me" DataValueField="CveClasificacion" DataTextField="Clasificacion" Width="90%"></asp:DropDownList>
|
|
</div>
|
|
<div class="col-md-1" >Código:</div>
|
|
<div class="col-md-1">
|
|
<asp:TextBox runat="server" ID="TxtCodigo" Width="90%" CssClass="form-control input-sm"></asp:TextBox>
|
|
</div>
|
|
|
|
<div class="col-md-1 truncate">Nombre:</div>
|
|
<div class=" col-md-2">
|
|
<asp:TextBox runat="server" ID="TxtNombre" Width="90%" CssClass="form-control input-sm"></asp:TextBox>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="portlet-body" style="display: none">
|
|
<div class="row">
|
|
<div visible="false" runat="server" id="DivCBarras1" class="col-md-1 truncate">C. Barras:</div>
|
|
<div visible="false" runat="server" id="DivCBarras2" class="col-md-2">
|
|
<asp:TextBox runat="server" ID="TxtCodigoBarras" Width="90%" CssClass="form-control input-sm"></asp:TextBox>
|
|
</div>
|
|
<div class="col-md-1 truncate" title="Tipo de Producto ó Servicio" data-toggle="tooltip" data-placement="top">Tipo Prod. y Serv.:</div>
|
|
<div class=" col-md-2">
|
|
<asp:DropDownList runat="server" ID="DdlCveTipoPS" CssClass="form-control input-sm select2me" Width="90%">
|
|
<asp:ListItem Text="Todos" Value="-1" Selected="True"></asp:ListItem>
|
|
<asp:ListItem Text="Servicio" Value="1"></asp:ListItem>
|
|
<asp:ListItem Text="Producto" Value="2"></asp:ListItem>
|
|
</asp:DropDownList>
|
|
|
|
</div>
|
|
<div class="col-md-1 truncate" style="width: 60px;">Estado:</div>
|
|
<div class=" col-md-1">
|
|
<asp:DropDownList runat="server" ID="DdlEstado" CssClass="form-control input-sm select2me" Width="90%">
|
|
<asp:ListItem Text="Todos" Value="-1"></asp:ListItem>
|
|
<asp:ListItem Text="Activo" Value="1" Selected="True"></asp:ListItem>
|
|
<asp:ListItem Text="Inactivo" Value="0"></asp:ListItem>
|
|
</asp:DropDownList>
|
|
</div>
|
|
<label class="col-md-1 truncate">Aplica para Venta:</label>
|
|
<div class="col-md-2">
|
|
<asp:DropDownList runat="server" ID="DdlAplicaVenta" CssClass="form-control input-sm select2me" Width="90%">
|
|
<asp:ListItem Text="Todos" Value="-1" Selected="True"></asp:ListItem>
|
|
<asp:ListItem Text="Si" Value="1"></asp:ListItem>
|
|
<asp:ListItem Text="No" Value="0"></asp:ListItem>
|
|
</asp:DropDownList>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="row col-md-12" 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" ClientIDMode="Static" AutoGenerateColumns="False" EmptyDataText="No se encontraron Productos o Servicios registrados"
|
|
ToolTip="Listado de Productos o Servicios" CssClass="table table-striped table-hover Widthall" UseAccessibleHeader="true" GridLines="None">
|
|
<Columns>
|
|
<asp:BoundField DataField="Clasificacion" HeaderText="Clasificación" ItemStyle-HorizontalAlign="Left" ItemStyle-Width="10%" SortExpression="OrdenarGV" />
|
|
<asp:BoundField DataField="TipoPS" HeaderText="Tipo" ItemStyle-HorizontalAlign="Center" ItemStyle-Width="5%" />
|
|
<asp:BoundField DataField="UnidadMedida" HeaderText="U.M." ItemStyle-HorizontalAlign="Left" ItemStyle-Width="10%" />
|
|
<asp:BoundField DataField="Codigo" HeaderText="Código" ItemStyle-HorizontalAlign="Left" ItemStyle-Width="10%" />
|
|
<asp:HyperLinkField ItemStyle-CssClass="Izquierda Texto" HeaderText="Producto o Servicio" DataNavigateUrlFormatString="/Ventas/ProductosServicios.aspx?CvePS={0}" DataTextField="PS" DataNavigateUrlFields="CvePS" ItemStyle-HorizontalAlign="Left" ItemStyle-Width="30%" />
|
|
<asp:BoundField DataField="Precio" HeaderText="Precio" DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" ItemStyle-Width="10%" />
|
|
<asp:BoundField DataField="AplicaParaVenta" HeaderText="Aplica Para Venta" Visible="false" ItemStyle-Width="20px" />
|
|
<%-- <asp:BoundField DataField="Estado" HeaderText="Estado" ItemStyle-Width="5%" ItemStyle-HorizontalAlign="Center" />--%>
|
|
<asp:TemplateField HeaderText="Estado" ItemStyle-Width="5%" ItemStyle-HorizontalAlign="Center" HeaderStyle-HorizontalAlign="Center">
|
|
<ItemTemplate>
|
|
<asp:Label ID="LblEstado" runat="server" Text='<%# Eval("Estado") %>'></asp:Label>
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
<asp:BoundField DataField="Fecha" HeaderText="Fecha" DataFormatString="{0:d}" ItemStyle-Width="10%" ItemStyle-HorizontalAlign="Center" HeaderStyle-HorizontalAlign="Center" />
|
|
<asp:BoundField DataField="Usuario" HeaderText="Usuario" ItemStyle-Width="10%" ItemStyle-HorizontalAlign="Center" HeaderStyle-HorizontalAlign="Center" />
|
|
<asp:BoundField DataField="SatPSDescripcion" HeaderText="Producto Servicio SAT" Visible="false" ItemStyle-Width="20px" />
|
|
<asp:BoundField DataField="Clasificacion2" HeaderText="Clasificacion 2" Visible="false" ItemStyle-Width="20px" />
|
|
<asp:BoundField DataField="Marca" HeaderText="Marca" Visible="false" ItemStyle-Width="20px" />
|
|
<asp:BoundField DataField="VentaMinima" HeaderText="Venta Mínima" Visible="false" ItemStyle-Width="20px" ItemStyle-HorizontalAlign="Right" DataFormatString="{0:N2}" />
|
|
<asp:BoundField DataField="CodigoBarras" HeaderText="Código Barras" Visible="false" />
|
|
<asp:BoundField DataField="NumeroParte" HeaderText="Número de Parte" Visible="false" />
|
|
<asp:BoundField DataField="Compuesto" HeaderText="Compuesto" Visible="false" />
|
|
<asp:BoundField DataField="RegistroRSCO" HeaderText="RSCO" Visible="false" />
|
|
</Columns>
|
|
</asp:GridView>
|
|
</ContentTemplate>
|
|
</asp:UpdatePanel>
|
|
</ContentTemplate>
|
|
</asp:UpdatePanel>
|
|
|
|
<br />
|
|
<asp:UpdatePanel runat="server" ID="UpBitacora" UpdateMode="Conditional">
|
|
<ContentTemplate>
|
|
<div class="row">
|
|
<div class="col-md-12">
|
|
<div class="portlet light bordered xspadding">
|
|
<div class="portlet-title">
|
|
<div class="caption font-green">
|
|
<i class="icon-pin font-green"></i>
|
|
<span class="caption-subject bold uppercase">Historial de Eliminacion</span>
|
|
</div>
|
|
<div class="actions">
|
|
<div class="btn-group">
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="portlet-body">
|
|
<div class="row">
|
|
<div class="col-md-12" align="right">
|
|
<asp:Button ID="BtnMostrar" runat="server" Text="Mostrar" class="btn btn-primary" />
|
|
<asp:Button ID="BtnOcultar" Visible="false" runat="server" Text="Ocultar" class="btn btn-primary" />
|
|
</div>
|
|
</div>
|
|
<br />
|
|
<asp:GridView Visible="false" ID="GvBitacora" runat="server" GridLines="None" Width="100%" CssClass="table table-striped table-advance table-hover Widthall ADSCroll mysmallbtn ScrollAD" data-sort="true" CellSpacing="0" AutoGenerateColumns="False">
|
|
<Columns>
|
|
<asp:TemplateField HeaderText="Fecha">
|
|
<ItemTemplate>
|
|
<asp:Literal ID="LtlFecha" runat="server" Text='<%# Eval("FechaIng") %>'></asp:Literal>
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
<asp:BoundField DataField="Id_Clave" HeaderText="Codigo / PS" ItemStyle-HorizontalAlign="Left" />
|
|
<asp:BoundField DataField="Descripcion" HeaderText="Descripcion" ItemStyle-HorizontalAlign="Left" />
|
|
<asp:BoundField DataField="Usuario" HeaderText="Usuario" ItemStyle-HorizontalAlign="Left" />
|
|
</Columns>
|
|
</asp:GridView>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</ContentTemplate>
|
|
</asp:UpdatePanel>
|
|
<asp:UpdatePanel runat="server" ID="UPPersonalizar" UpdateMode="Conditional">
|
|
<ContentTemplate>
|
|
<div id="DivPersonalizar" class="modal fade" role="dialog">
|
|
<div class="modal-dialog">
|
|
<!-- Modal content-->
|
|
<div class="modal-content">
|
|
<div class="modal-header">
|
|
<button type="button" class="close" data-dismiss="modal">×</button>
|
|
<h4 class="modal-title">
|
|
<asp:Label ID="Label1" runat="server" ClientIDMode="Static" Text="Personalizar Columnas"></asp:Label></h4>
|
|
</div>
|
|
<div class="modal-body">
|
|
<table style="width: 100%;" class="table table-striped table-advance table-hover">
|
|
<tbody>
|
|
<tr>
|
|
<td style="text-align: left;">
|
|
<asp:CheckBox ID="ChkAplicaVenta" runat="server" Text="Aplica para Venta" /></td>
|
|
<td style="text-align: left;">
|
|
<asp:CheckBox ID="ChkProductosServiciosSAT" runat="server" Text="Productos Servicios SAT" /></td>
|
|
<td style="text-align: left;">
|
|
<asp:CheckBox ID="ChkClasificacion2" runat="server" Text="Clasificación 2" /></td>
|
|
<td style="text-align: left;">
|
|
<asp:CheckBox ID="ChkMarca" runat="server" Text="Marca" /></td>
|
|
</tr>
|
|
<tr>
|
|
<td style="text-align: left;">
|
|
<asp:CheckBox ID="ChkVentaMinima" runat="server" Text="Venta Mínima" /></td>
|
|
<td style="text-align: left;">
|
|
<asp:CheckBox ID="ChkCodigoBarras" runat="server" Text="Código Barras" /></td>
|
|
<td style="text-align: left;">
|
|
<asp:CheckBox ID="ChkCompuesto" runat="server" Text="Compuesto" /></td>
|
|
<td style="text-align: left;">
|
|
<asp:CheckBox ID="ChkRSCO" runat="server" Text="RSCO" /></td>
|
|
</tr>
|
|
<tr>
|
|
<td style="text-align: left;">
|
|
<asp:CheckBox ID="ChkNumParte" runat="server" Text="Número Parte" /></td>
|
|
<td style="text-align: left;">
|
|
</td>
|
|
<td style="text-align: left;">
|
|
</td>
|
|
<td style="text-align: left;">
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<div class="modal-footer">
|
|
<asp:Button ID="BtnPersonalizar" runat="server" Text="Personalizar" class="btn btn-success" />
|
|
<button type="button" class="btn btn-default" data-dismiss="modal">Cancelar</button>
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|
|
</div>
|
|
|
|
|
|
</ContentTemplate>
|
|
</asp:UpdatePanel>
|
|
|
|
|
|
<asp:UpdatePanel runat="server" UpdateMode="Conditional">
|
|
<ContentTemplate>
|
|
<asp:GridView ID="GvProductos" runat="server" Visible="false">
|
|
<Columns>
|
|
<asp:BoundField DataField="Codigo" HeaderText="Número de Parte / Código"/>
|
|
<asp:BoundField DataField="PS" HeaderText="PS"/>
|
|
<asp:BoundField DataField="Clasificacion" HeaderText="Clasificacion"/>
|
|
<asp:BoundField DataField="UnidadMedida" HeaderText="UnidadMedida"/>
|
|
</Columns>
|
|
</asp:GridView>
|
|
</ContentTemplate>
|
|
</asp:UpdatePanel>
|
|
|
|
|
|
<div id="DivReportes" class="modal fade" role="dialog">
|
|
<div class="modal-dialog">
|
|
<!-- Modal content-->
|
|
<div class="modal-content">
|
|
<div class="modal-header">
|
|
<button type="button" class="close" data-dismiss="modal">×</button>
|
|
<h4 class="modal-title">
|
|
<asp:Label ID="Label2" runat="server" ClientIDMode="Static" Text="Tipo de Reporte Productos SAT"></asp:Label></h4>
|
|
</div>
|
|
<div class="modal-body">
|
|
<table style="width: 335px;" class="table table-striped table-advance table-hover">
|
|
<tbody>
|
|
<tr>
|
|
<asp:RadioButtonList runat="server" ID="RBLOpcion" >
|
|
<asp:ListItem Text="Productos con Existencia" Value="1" Selected="True"></asp:ListItem>
|
|
<asp:ListItem Text="Productos con Aplica para Venta" Value="2"></asp:ListItem>
|
|
<asp:ListItem Text="Todos los productos" Value="3"></asp:ListItem>
|
|
</asp:RadioButtonList>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<div class="modal-footer">
|
|
<asp:Button ID="LbImprimirProductos" runat="server" Text="Generar" class="btn btn-success" />
|
|
<button type="button" class="btn btn-default" data-dismiss="modal">Cancelar</button>
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|
|
</div>
|
|
|
|
<div id="DivCargaExcelPSAdicionales" class="modal ADS fade" role="dialog">
|
|
<div class="modal-dialog">
|
|
<!-- Modal content-->
|
|
<div class="modal-content">
|
|
<div class="modal-header ">
|
|
<button type="button" class="close" data-dismiss="modal">×</button>
|
|
<h4 class="modal-title">Agregar Excel</h4>
|
|
</div>
|
|
<div class="modal-body">
|
|
<div class="row">
|
|
<div class="col-md-12">
|
|
<h3>Arraste o haga click para subir el archivo Excel</h3>
|
|
</div>
|
|
</div>
|
|
<div class="row">
|
|
<div class="col-md-11" style="margin-left: 30px; margin-right: 30px; margin-bottom: 10px;">
|
|
<asp:TextBox ID="TxtExcel" CssClass="ADSdropzone hidden" Text="" data-maxFile="1" runat="server"></asp:TextBox>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="modal-footer">
|
|
<div class="row">
|
|
<div class="col-md-3" style="text-align: left">
|
|
<asp:UpdatePanel ID="UpDescargar" runat="server" UpdateMode="Conditional">
|
|
<ContentTemplate>
|
|
<asp:Button ID="BtnDescargarPSAdicional" runat="server" CssClass="btn btn-warning" Text="Descargar Formato" />
|
|
</ContentTemplate>
|
|
<Triggers>
|
|
<asp:PostBackTrigger ControlID="BtnDescargarPSAdicional" />
|
|
</Triggers>
|
|
</asp:UpdatePanel>
|
|
|
|
</div>
|
|
<div class="col-md-9" style="text-align: right">
|
|
<asp:Button ID="BtnCargaExcelPSAdicional" runat="server" CssClass="btn btn-success" Text="Aceptar"></asp:Button>
|
|
<button type="button" class="btn btn-danger" data-dismiss="modal">Cancelar</button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
|
|
</asp:Content>
|
|
<asp:Content ID="Content7" ContentPlaceHolderID="JS" runat="Server">
|
|
<script src="/Metronic/assets/global/scripts/datatable.js"></script>
|
|
<script src="/Metronic/assets/global/plugins/datatables/all.min.js"></script>
|
|
<script type="text/javascript">
|
|
jQuery.extend(jQuery.fn.dataTableExt.oSort, {
|
|
"date-esMX-pre": function (a) {
|
|
if (a == null || a == "") {
|
|
return 0;
|
|
}
|
|
var ukDatea = a.split('/');
|
|
return (ukDatea[2] + ukDatea[1] + ukDatea[0]) * 1;
|
|
},
|
|
|
|
"date-esMX-asc": function (a, b) {
|
|
return ((a < b) ? -1 : ((a > b) ? 1 : 0));
|
|
},
|
|
|
|
"date-esMX-desc": function (a, b) {
|
|
return ((a < b) ? 1 : ((a > b) ? -1 : 0));
|
|
}
|
|
});
|
|
var OrdenarGV = function () {
|
|
var Tam = TamañoVentana();
|
|
var Alto = Tam.height - 270;
|
|
if (Alto < 100) {
|
|
Alto = 100;
|
|
}
|
|
$('#GvDatos').DataTable({
|
|
scrollY: Alto + 'px',
|
|
scrollCollapse: true,
|
|
paging: false,
|
|
searching: false,
|
|
info: false,
|
|
|
|
columnDefs: [
|
|
{ "type": "date-esMX", targets: 7 }
|
|
]
|
|
});
|
|
$('#GvDatos').parent().parent().children().first().css("position", "static");
|
|
}
|
|
</script>
|
|
</asp:Content>
|