256 lines
15 KiB
Plaintext
256 lines
15 KiB
Plaintext
<%@ Page Title="SIG | Reporte Contratos Avances" Language="VB" MasterPageFile="~/Site.master" AutoEventWireup="false" CodeFile="RepContratosAvancesCP.aspx.vb" Inherits="Contratos_RepContratosAvancesCP" %>
|
|
|
|
<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;
|
|
}
|
|
|
|
.Derecha {
|
|
text-align: right;
|
|
}
|
|
|
|
.Izquierda {
|
|
text-align: left;
|
|
}
|
|
</style>
|
|
</asp:Content>
|
|
<asp:Content ID="Content3" ContentPlaceHolderID="E" runat="Server">
|
|
Reporte Contratos Avances
|
|
</asp:Content>
|
|
<asp:Content ID="Content4" ContentPlaceHolderID="HB" runat="Server">
|
|
<li>
|
|
<asp:LinkButton ID="LnkPdf" runat="server"><i class="fa fa-ad-pdf"></i> Generar PDF</asp:LinkButton>
|
|
</li>
|
|
<li>
|
|
<asp:LinkButton ID="LnkExportar" runat="server"><i class="fa fa-ad-excel"></i> Generar Excel</asp:LinkButton>
|
|
</li>
|
|
</asp:Content>
|
|
<asp:Content ID="Content5" ContentPlaceHolderID="H" runat="Server">
|
|
</asp:Content>
|
|
<asp:Content ID="Content6" ContentPlaceHolderID="HA" runat="Server">
|
|
</asp:Content>
|
|
<asp:Content ID="Content7" ContentPlaceHolderID="C" runat="Server">
|
|
|
|
|
|
|
|
<asp:UpdatePanel ID="UPFiltros" runat="server" UpdateMode="Conditional">
|
|
<ContentTemplate>
|
|
<div class="portlet solid grey-cascade portlet-filter" style="">
|
|
<div class="portlet-title portlet-filterT" style="">
|
|
<div class="tools">
|
|
</div>
|
|
<div class="titlefiltros caption Widthall" style="font-size:14px !important;">
|
|
<div class="row">
|
|
<div class="col-md-1" style="max-width:50PX;">
|
|
Tipo:
|
|
</div>
|
|
<div class="col-md-2">
|
|
<asp:DropDownList ID="DdlTipo" CssClass="form-control select2me input-sm" runat="server" AppendDataBoundItems="true" DataTextField="ContratoTipo" DataValueField="CveContratoTipo" Width="90%"></asp:DropDownList>
|
|
</div>
|
|
<div class="col-md-1" style="max-width:70PX;">
|
|
Cliente:
|
|
</div>
|
|
<div class="col-md-2">
|
|
<asp:DropDownList ID="DdlClientes" runat="server" CssClass="form-control select2me input-sm" AppendDataBoundItems="true" DataTextField="Nombre" DataValueField="CveCliente" Width="90%"></asp:DropDownList>
|
|
</div>
|
|
<div class="col-md-1" style="max-width:80PX;">
|
|
Agrupador:
|
|
</div>
|
|
<div class="col-md-1">
|
|
<asp:DropDownList ID="DdlAgrupador" CssClass="form-control select2me input-sm" runat="server" AppendDataBoundItems="true" Width="90%">
|
|
<%--<asp:ListItem Text="Contrato" Value="1" />--%>
|
|
<asp:ListItem Text="Tipo Contrato" Value="2" />
|
|
<asp:ListItem Text="Cliente" Value="3" />
|
|
<%--<asp:ListItem Text="Proveedor" Value="4" />--%>
|
|
</asp:DropDownList>
|
|
</div>
|
|
<div class="col-md-1" style="max-width:70PX;">
|
|
Estatus:
|
|
</div>
|
|
<div class="col-md-1">
|
|
<asp:DropDownList ID="DdlEstatus" runat="server" AppendDataBoundItems="True" DataTextField="ContratoEstatus" DataValueField="CveContratoEstatus" CssClass="form-control select2me input-sm" Width="90%"></asp:DropDownList>
|
|
</div>
|
|
<div class="col-md-1 col-md-offset-1">
|
|
<asp:Button ID="BtnFiltrar" runat="server" CausesValidation="true" CssClass=" btn btn-primary " Text="Consultar" ValidationGroup="GrpFiltrar"></asp:Button></td>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</ContentTemplate>
|
|
</asp:UpdatePanel>
|
|
|
|
|
|
<br />
|
|
<asp:UpdatePanel ID="UPDatos" runat="server" UpdateMode="Conditional">
|
|
<ContentTemplate>
|
|
|
|
<div id="dvCa" style="width: 100%; top: 30px">
|
|
<table id="dTable" class="table Widthall ">
|
|
<tr>
|
|
<td width="40%" rowspan="2" style="font-size: medium; text-align: center!important; background-color: #b9b9b9;">
|
|
<asp:UpdatePanel runat="server">
|
|
<ContentTemplate>
|
|
<strong><asp:Literal ID="LtEncabezado" Text="Tipo Contrato" runat="server" /></strong>
|
|
</ContentTemplate>
|
|
</asp:UpdatePanel>
|
|
</td>
|
|
<td width="13%" style="font-size: small; text-align: center!important; background-color: #b9b9b9;"><strong>Contratado $</strong></td>
|
|
<td width="13%" colspan="2" style="font-size: small; text-align: center!important; background-color: #dddddd;"><strong>Avance</strong> </td>
|
|
<td width="13%" colspan="2" style="font-size: small; text-align: center!important; background-color: #b9b9b9;"><strong>Faltante</strong> </td>
|
|
<td width="13%" style="font-size: small; text-align: center!important; background-color: #dddddd;"><strong>Por Facturar</strong></td>
|
|
<td width="8%" id="TH6" style="font-size: small; text-align: center!important; background-color: #dddddd;"><strong>Anticipo</strong> </td>
|
|
</tr>
|
|
<tr>
|
|
<td width="13%" style="font-size: small; text-align: center!important; background-color: #b9b9b9;"><strong>Importe $</strong></td>
|
|
<td width="6.5%" style="font-size: small; text-align: center!important; background-color: #dddddd;"><strong>Importe $</strong> </td>
|
|
<td width="6.5%" style="font-size: small; text-align: center!important; background-color: #dddddd;"><strong>%</strong> </td>
|
|
<td width="6.5%" style="font-size: small; text-align: center!important; background-color: #b9b9b9;"><strong>Importe $</strong> </td>
|
|
<td width="6.5%" style="font-size: small; text-align: center!important; background-color: #b9b9b9;"><strong>%</strong> </td>
|
|
<td width="13%" style="font-size: small; text-align: center!important; background-color: #dddddd;"><strong>Avance por Facturar $</strong></td>
|
|
<td width="8%" style="font-size: small; text-align: center!important; background-color: #b9b9b9;"><strong>Importe $</strong> </td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
|
|
<div id="GvScroll" style="width: 100%; max-height:630px; min-height:300px; overflow-y:auto;">
|
|
<asp:GridView ID="GvDatos" ClientIDMode="Static" runat="server" AutoGenerateColumns="false" ShowHeader="false" EmptyDataText="No se encontraron datos con los filtros especificados" CssClass="table table-striped table-hover Widthall" BorderColor="#D3D3D3" GridLines="None">
|
|
<Columns>
|
|
<asp:TemplateField HeaderText="Agrupador" ItemStyle-Width="40%" ItemStyle-CssClass="Texto Izquierda" ItemStyle-HorizontalAlign="Center">
|
|
<ItemTemplate>
|
|
<asp:HyperLink ID="HLAgrupador" Text='<%# Eval("Agrupador") %>' Target="_blank" runat="server" />
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
<asp:TemplateField HeaderText="Importe $" ItemStyle-Width="13%" ItemStyle-CssClass="Texto Derecha" ItemStyle-HorizontalAlign="Center">
|
|
<ItemTemplate>
|
|
<asp:HyperLink ID="HLImporteContratado" Text='<%# Eval("Importe", "{0:###,###,##0.00}") %>' Target="_blank" runat="server" />
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
<asp:TemplateField HeaderText="Importe $" ItemStyle-Width="9%" ItemStyle-CssClass="Texto Derecha" ItemStyle-HorizontalAlign="Center">
|
|
<ItemTemplate>
|
|
<asp:HyperLink ID="HLImporteAvance" Text='<%# Eval("Avance", "{0:###,###,##0.00}") %>' Target="_blank" runat="server" />
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
<asp:TemplateField HeaderText="%" ItemStyle-Width="4%" ItemStyle-CssClass="Texto Derecha" ItemStyle-HorizontalAlign="Center">
|
|
<ItemTemplate>
|
|
<asp:HyperLink ID="HLPorcentajeAvance" Text='<%# Eval("AvancePorcentaje", "{0:###,###,##0.00}") %>' Target="_blank" runat="server" />
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
<asp:TemplateField HeaderText="Importe $" ItemStyle-Width="9%" ItemStyle-CssClass="Texto Derecha" ItemStyle-HorizontalAlign="Center">
|
|
<ItemTemplate>
|
|
<asp:HyperLink ID="HLImporteFaltante" Text='<%# Eval("Faltante", "{0:###,###,##0.00}") %>' Target="_blank" runat="server" />
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
<asp:TemplateField HeaderText="%" ItemStyle-Width="4%" ItemStyle-CssClass="Texto Derecha" ItemStyle-HorizontalAlign="Center">
|
|
<ItemTemplate>
|
|
<asp:HyperLink ID="HLPorcentajeFaltante" Text='<%# Eval("FaltantePorcentaje", "{0:###,###,##0.00}") %>' Target="_blank" runat="server" />
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
<asp:TemplateField HeaderText="Avance por Facturar $" ItemStyle-Width="13%" ItemStyle-CssClass="Texto Derecha" ItemStyle-HorizontalAlign="Center">
|
|
<ItemTemplate>
|
|
<asp:HyperLink ID="HLAvancePorFacturar" Text='<%# Eval("AvanceXFacturar", "{0:###,###,##0.00}") %>' Target="_blank" runat="server" />
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
<asp:BoundField HeaderText="Importe $" DataField="Anticipos" ItemStyle-HorizontalAlign="Right" DataFormatString="{0:###,###,##0.00##}" ItemStyle-Width="8%" />
|
|
<%-- <asp:HyperLinkField HeaderText="Agrupador" DataTextField="Agrupador" Target="_blank" ItemStyle-Width="40%" ItemStyle-CssClass="Texto Izquierda" DataNavigateUrlFields="CveContrato" DataNavigateUrlFormatString="/Contratos/Contrato.aspx?CveContrato={0}&Tipo=2" />
|
|
<asp:HyperLinkField HeaderText="Importe $" DataTextField="Importe" Target="_blank" ItemStyle-Width="15%" ItemStyle-CssClass="Texto Derecha" DataTextFormatString="{0:###,###,##0.00}" DataNavigateUrlFields="CveContrato" DataNavigateUrlFormatString="/Contratos/Contrato.aspx?CveContrato={0}&Tipo=2" />
|
|
<asp:HyperLinkField HeaderText="Importe $" DataTextField="Avance" Target="_blank" ItemStyle-Width="10%" ItemStyle-CssClass="Texto Derecha" DataTextFormatString="{0:###,###,##0.00}" DataNavigateUrlFields="CveContrato" DataNavigateUrlFormatString="/Contratos/Contrato.aspx?CveContrato={0}&Tipo=2" />
|
|
<asp:HyperLinkField HeaderText="%" DataTextField="AvancePorcentaje" Target="_blank" ItemStyle-Width="5%" ItemStyle-CssClass="Texto Derecha" DataTextFormatString="{0:###,###.##}" DataNavigateUrlFields="CveContrato" DataNavigateUrlFormatString="/Contratos/Contrato.aspx?CveContrato={0}&Tipo=2" />
|
|
<asp:HyperLinkField HeaderText="Importe $" DataTextField="Faltante" Target="_blank" ItemStyle-Width="10%" ItemStyle-CssClass="Texto Derecha" DataTextFormatString="{0:###,###,##0.00}" DataNavigateUrlFields="CveContrato" DataNavigateUrlFormatString="/Contratos/Contrato.aspx?CveContrato={0}&Tipo=2" />
|
|
<asp:HyperLinkField HeaderText="%" DataTextField="FaltantePorcentaje" Target="_blank" ItemStyle-Width="5%" ItemStyle-CssClass="Texto Derecha" DataTextFormatString="{0:###,###.##}" DataNavigateUrlFields="CveContrato" DataNavigateUrlFormatString="/Contratos/Contrato.aspx?CveContrato={0}&Tipo=2" />
|
|
<asp:HyperLinkField- HeaderText="Avance por Facturar $" DataTextField="AvanceXFacturar" Target="_blank" ItemStyle-Width="15%" ItemStyle-CssClass="Texto Derecha" DataTextFormatString="{0:###,###,##0.00}" DataNavigateUrlFields="CveContrato" DataNavigateUrlFormatString="/Contratos/Contrato.aspx?CveContrato={0}&Tipo=2" />--%>
|
|
</Columns>
|
|
</asp:GridView>
|
|
|
|
</ContentTemplate>
|
|
</asp:UpdatePanel>
|
|
|
|
|
|
|
|
</asp:Content>
|
|
<asp:Content ID="Content8" 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 pageLoad() {
|
|
var Tam = TamañoVentana();
|
|
var Alto = Tam.height - 320;
|
|
if (Alto < 100) {
|
|
Alto = 100;
|
|
}
|
|
|
|
$get('GvScroll').style.height = Alto + "px";
|
|
}
|
|
|
|
function OrdenarGV() {
|
|
var Tam = TamañoVentana();
|
|
var Alto = Tam.height - 320;
|
|
if (Alto < 100) {
|
|
Alto = 100;
|
|
}
|
|
var currenttehead = $("<thead></thead>");
|
|
$('#GvDatos').prepend(currenttehead);
|
|
currenttehead.append($('#GvDatos tr:nth-child(1)'));
|
|
$('#GvDatos').DataTable({
|
|
retrieve: true,
|
|
scrollY: Alto + 'px',
|
|
scrollCollapse: true,
|
|
paging: false,
|
|
searching: false,
|
|
info: false,
|
|
ordering: false
|
|
});
|
|
//$('#GvDatos').parent().parent().children().first().css("position", "static");
|
|
}
|
|
|
|
</script>
|
|
|
|
</asp:Content>
|
|
|