/estylos
This commit is contained in:
@@ -239,7 +239,7 @@
|
||||
|
||||
<asp:UpdatePanel ID="UPPMov" runat="server" RenderMode="Inline" UpdateMode="Conditional">
|
||||
<ContentTemplate>
|
||||
<asp:GridView ID="GvM" Width="100%" runat="server" data-sort="false" GridLines="None" CssClass="table table-smallpadding table-striped table-hover Widthall ScrollAD"
|
||||
<asp:GridView ID="GvM" Width="100%" runat="server" data-sort="false" GridLines="None" CssClass="table table-smallpadding table-striped table-hover Widthall adssigrid-scroll adssigrid-order" data-cols="1" data-rows="2"
|
||||
DataKeyNames="CvePS,CveMoneda,CveProveedor,CveConcepto,FechaI,FechaF,CveAlmacen,CvePersonal,Codigo,NumeroParte,PS"
|
||||
ShowHeader="True" EmptyDataText="No se encontraron resultados." ShowHeaderWhenEmpty="true" AutoGenerateColumns="False" AllowPaging="False" ShowFooter="False">
|
||||
<Columns>
|
||||
@@ -436,117 +436,5 @@
|
||||
|
||||
</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">
|
||||
|
||||
function elementexist(element) {
|
||||
if ($(element)) {
|
||||
if ($(element).html()) {
|
||||
return true;
|
||||
} else {
|
||||
return false;
|
||||
}
|
||||
} else {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
Sys.Application.add_load(function (s, e) {
|
||||
});
|
||||
|
||||
var dTable;
|
||||
function pageLoad() {
|
||||
var Tam = TamañoVentana();
|
||||
var Alto = Tam.height - 330;
|
||||
if (Alto < 100) {
|
||||
Alto = 100;
|
||||
}
|
||||
|
||||
|
||||
var rows = false;
|
||||
var cont = 0;
|
||||
|
||||
$("#<%=GvM.ClientID %> tr").each(function () {
|
||||
|
||||
cont++;
|
||||
subHeaders();
|
||||
});
|
||||
|
||||
<%-- if (cont > 2) {
|
||||
var head = $('<thead></thead>');
|
||||
head.append($('#<%=GvM.ClientID %> tr:nth-child(1)'));
|
||||
$('#<%=GvM.ClientID %>').prepend(head);
|
||||
dTable = $('#<%=GvM.ClientID %>').DataTable({
|
||||
'order': [], 'orderable': true, scrollY: Alto + 'px', scrollCollapse: true, paging: false, searching: false, info: false
|
||||
});
|
||||
|
||||
subHeaders();
|
||||
//$dataTables_scrollHead--%>
|
||||
//}
|
||||
}
|
||||
|
||||
$(window).resize(function () {
|
||||
|
||||
subHeaders();
|
||||
dTable.columns.adjust().draw();
|
||||
});
|
||||
|
||||
function subHeaders() {
|
||||
|
||||
|
||||
|
||||
|
||||
var recco = 0;
|
||||
|
||||
$("#<%=GvM.ClientID %> tr").each(function() {
|
||||
if (!this.rowIndex) return;
|
||||
|
||||
var celdas = [];
|
||||
|
||||
$(this).find('td').each(function (column, td) {
|
||||
|
||||
celdas.push($(td).width());
|
||||
});
|
||||
|
||||
|
||||
|
||||
var ancho = 0
|
||||
ancho += celdas[0];
|
||||
ancho += celdas[1];
|
||||
|
||||
console.log('ancho req ' + ancho);
|
||||
$('#dvArt').width(ancho);
|
||||
ancho = 0;
|
||||
|
||||
ancho += celdas[2];
|
||||
ancho += celdas[3];
|
||||
ancho += celdas[4];
|
||||
ancho += celdas[5];
|
||||
|
||||
console.log('ancho req ' + ancho);
|
||||
$('#dvCan').width(ancho);
|
||||
ancho = 0;
|
||||
|
||||
ancho += celdas[6];
|
||||
ancho += celdas[7];
|
||||
ancho += celdas[8];
|
||||
ancho += celdas[9];
|
||||
|
||||
console.log('ancho req ' + ancho);
|
||||
$('#dvImp').width(ancho);
|
||||
|
||||
$('#dvCa').css('visibility', 'visible');
|
||||
|
||||
return false;
|
||||
});
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</script>
|
||||
</asp:Content>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user