362 lines
21 KiB
Plaintext
362 lines
21 KiB
Plaintext
<%@ Page Title="" Language="VB" MasterPageFile="~/Site.master" AutoEventWireup="false" CodeFile="RepContratosObraAvances.aspx.vb" Inherits="RepContratosObraAvances" %>
|
|
|
|
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
|
|
<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">
|
|
Reporte Contratos Avance
|
|
</asp:Content>
|
|
<asp:Content ID="Content5" ContentPlaceHolderID="H" runat="Server">
|
|
</asp:Content>
|
|
<asp:Content ID="Content6" 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 smalltitle" >
|
|
|
|
<div class="tools">
|
|
<asp:Button ID="BtnConsultar" runat="server" Text="Consultar" class="btn btn-primary" CausesValidation="true" ValidationGroup="GrConsulta" />
|
|
</div>
|
|
|
|
<div class="titlefiltros caption">
|
|
<div class="row">
|
|
|
|
<%-- <div class="col-md-1">
|
|
Fecha Inicio:
|
|
</div>
|
|
<div class="col-md-1">
|
|
<div class="input-group input-sm input-small date date-picker " data-date-format="dd/mm/yyyy" style="width: 100px !important; padding: 0px;">
|
|
<asp:TextBox Width="80px" ID="txtFechaI" runat="server" CssClass="form-control" CausesValidation="true" MaxLength="10"></asp:TextBox>
|
|
<span class="input-group-btn ">
|
|
<asp:LinkButton ID="imgCalendario" class="btn default " Text="<i class='fa fa-calendar'></i>" runat="server"></asp:LinkButton>
|
|
</span>
|
|
</div>
|
|
<ajax:MaskedEditExtender ID="MEEFechaI" runat="server" TargetControlID="txtFechaI" Mask="99/99/9999" MaskType="Date" DisplayMoney="Left" AcceptNegative="Left"></ajax:MaskedEditExtender>
|
|
<ajax:CalendarExtender runat="server" ID="Calendario" TargetControlID="txtFechaI" PopupButtonID="ImgCalendario" PopupPosition="BottomRight" Enabled="True"></ajax:CalendarExtender>
|
|
<asp:RequiredFieldValidator ID="rfvFechaI" runat="server" ControlToValidate="txtFechaI" Display="None" ErrorMessage="El campo <b>''Fecha Inicial''</b> es requerido por la aplicación, por favor ingrese una fecha." ValidationGroup="GrConsulta"></asp:RequiredFieldValidator>
|
|
<asp:CompareValidator ID="cvFechaI" runat="server" ControlToValidate="txtFechaI" Display="None" ErrorMessage="El campo <b>''Fecha Inicial''</b> no tienes el formato correcto, por favor intente de nuevo con el siguiente formato: (dd/mm/yyyy)." Operator="DataTypeCheck" Type="Date" ValidationGroup="GrConsulta"></asp:CompareValidator>
|
|
<ajax:ValidatorCalloutExtender ID="vcoFfvFI" runat="server" HighlightCssClass="vco" TargetControlID="rfvFechaI" Width="350px"></ajax:ValidatorCalloutExtender>
|
|
<ajax:ValidatorCalloutExtender ID="vcoCvFI" runat="server" HighlightCssClass="vco" TargetControlID="cvFechaI" Width="350px"></ajax:ValidatorCalloutExtender>
|
|
|
|
|
|
</div>--%>
|
|
|
|
<%--
|
|
<div class="col-md-1">
|
|
Fecha Fin:
|
|
</div>
|
|
<div class="col-md-1">
|
|
<div class="input-group input-sm input-small date date-picker " data-date-format="dd/mm/yyyy" style="width: 100px !important; padding: 0px;">
|
|
<asp:TextBox Width="80px" ID="txtFechaF" runat="server" CssClass="form-control" CausesValidation="true" MaxLength="10"></asp:TextBox>
|
|
<span class="input-group-btn ">
|
|
<asp:LinkButton ID="imgCalendarioF" class="btn default " Text="<i class='fa fa-calendar'></i>" runat="server"></asp:LinkButton>
|
|
</span>
|
|
</div>
|
|
<ajax:MaskedEditExtender ID="MEEFechaF" runat="server" TargetControlID="txtFechaF" Mask="99/99/9999" MaskType="Date" DisplayMoney="Left" AcceptNegative="Left"></ajax:MaskedEditExtender>
|
|
<ajax:CalendarExtender runat="server" ID="Calendario2" TargetControlID="txtFechaF" PopupButtonID="imgCalendarioF" PopupPosition="BottomRight" Enabled="True"></ajax:CalendarExtender>
|
|
<asp:RequiredFieldValidator ID="rfvFechaF" runat="server" ControlToValidate="txtFechaF" Display="None" ErrorMessage="El campo <b>''Fecha Final''</b> es requerido por la aplicación, por favor ingrese una fecha." ValidationGroup="GrConsulta"></asp:RequiredFieldValidator>
|
|
<asp:CompareValidator ID="cvFechaF" runat="server" ControlToValidate="txtFechaF" Display="None" ErrorMessage="El campo <b>''Fecha Final''</b> no tienes el formato correcto, por favor intente de nuevo con el siguiente formato: (dd/mm/yyyy)." Operator="DataTypeCheck" Type="Date" ValidationGroup="GrConsulta"></asp:CompareValidator>
|
|
<ajax:ValidatorCalloutExtender ID="vcoRfvFF" runat="server" HighlightCssClass="vco" TargetControlID="rfvFechaF" Width="350px"></ajax:ValidatorCalloutExtender>
|
|
<ajax:ValidatorCalloutExtender ID="vcoCvFF" runat="server" HighlightCssClass="vco" TargetControlID="cvFechaF" Width="350px"></ajax:ValidatorCalloutExtender>
|
|
</div>--%>
|
|
|
|
<div class="col-md-1">
|
|
Cliente:
|
|
</div>
|
|
<div class="col-md-3">
|
|
<ADS:Dropdownlost CssClassDdl="select2me" ID="DdlCliente" Width="100%" UsaWebService="true" data-metodo="getcliente" runat="server" DataTextField="NombreComercial" DataValueField="CveCliente" CssStyle="width: 100%;"></ADS:Dropdownlost>
|
|
</div>
|
|
|
|
<div class="col-md-1">
|
|
Contrato:
|
|
</div>
|
|
<div class="col-md-1">
|
|
<asp:DropDownList ID="DdlContrato" runat="server" DataTextField="NumeroContrato" DataValueField="CveContrato" Class="select2me" Width="100PX" ></asp:DropDownList>
|
|
</div>
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
</div>
|
|
|
|
</ContentTemplate>
|
|
</asp:UpdatePanel>
|
|
|
|
|
|
<asp:UpdatePanel ID="UpGrafica" runat="server" UpdateMode="Conditional">
|
|
<ContentTemplate>
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-xs-4">
|
|
<div class="dashboard-stat2 " style="border: 2px solid #DDD; margin-bottom: 0px; height: 141.8px!important">
|
|
|
|
<div class="display">
|
|
|
|
<div class="number" style="display: none!important">
|
|
<small>Contratos</small>
|
|
<h3 class="font-purple-soft">
|
|
<span style="font-size: large" >
|
|
<asp:Literal Text="0" ID="LtlGrafNumeroContratos" runat="server" /></span>
|
|
</h3>
|
|
|
|
</div>
|
|
|
|
<div class="number">
|
|
<small>Total</small>
|
|
<h3 class="font-purple-soft">
|
|
<span style="font-size: large" >$<asp:Literal Text="0" ID="LtlGrafTotal" runat="server" /></span>
|
|
</h3>
|
|
</div>
|
|
|
|
<div class="icon">
|
|
<i class="fa fa-list-ol"></i>
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
<div class="col-xs-4">
|
|
<div class="dashboard-stat2 " style="border: 2px solid #DDD; margin-bottom: 0px;">
|
|
<div class="display">
|
|
|
|
<div class="number" style="width:80%!important">
|
|
|
|
<table style="width:100%!important">
|
|
<td>
|
|
<small>Avance</small>
|
|
<h3 class="font-green-sharp">
|
|
<span style="font-size: large" >
|
|
<asp:Literal Text="0" ID="LtlAvanceImporte" runat="server" />
|
|
</span>
|
|
<small class="font-green-sharp"></small>
|
|
</h3>
|
|
|
|
</td>
|
|
<td>
|
|
<small>Porcentaje</small>
|
|
<h3 class="font-green-sharp">
|
|
<span style="font-size: large" >
|
|
<asp:Literal Text="0" ID="LtlAvanceImporteProcentaje1" runat="server" />
|
|
</span>
|
|
<small class="font-green-sharp"></small>
|
|
</h3>
|
|
|
|
</td>
|
|
</table>
|
|
|
|
</div>
|
|
|
|
<div class="icon">
|
|
<i class="icon-pie-chart"></i>
|
|
</div>
|
|
</div>
|
|
<div class="progress-info">
|
|
|
|
<div class="progress">
|
|
<span runat="server" id="SPAvance1" style="width:76%;" class="progress-bar progress-bar-success green-sharp">
|
|
<%--<span runat="server" id="SPAvance2" class="sr-only">76% Avance</span>--%>
|
|
</span>
|
|
</div>
|
|
|
|
<div class="status">
|
|
<div class="status-title">Avance </div>
|
|
<div class="status-number"> <asp:Literal Text="0" ID="LtlAvanceImporteProcentaje2" runat="server" /> </div>
|
|
</div>
|
|
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="col-xs-4">
|
|
<div class="dashboard-stat2 " style="border: 2px solid #DDD; margin-bottom: 0px;">
|
|
<div class="display">
|
|
|
|
<div class="number" style="width:80%!important">
|
|
|
|
<table style="width:100%!important">
|
|
<td>
|
|
<small>Faltante</small>
|
|
<h3 class="font-red-haze">
|
|
<span style="font-size: large" >
|
|
<asp:Literal Text="0" ID="LtlFaltanteImporte" runat="server" />
|
|
</span>
|
|
<small class="font-red-haze"></small>
|
|
</h3>
|
|
|
|
</td>
|
|
<td>
|
|
<small>Porcentaje</small>
|
|
<h3 class="font-red-haze">
|
|
<span style="font-size: large" >
|
|
<asp:Literal Text="0" ID="LtlFaltanteImportePorcentaje1" runat="server" />
|
|
</span>
|
|
<small class="font-red-haze"></small>
|
|
</h3>
|
|
|
|
</td>
|
|
</table>
|
|
|
|
|
|
</div>
|
|
|
|
<div class="icon">
|
|
<i class="icon-pie-chart"></i>
|
|
</div>
|
|
</div>
|
|
<div class="progress-info">
|
|
<div class="progress">
|
|
<span runat="server" id="SPFaltante" style="width:76%;" class="progress-bar progress-bar-success red-haze">
|
|
<%--<span class="sr-only">76% Avance</span>--%>
|
|
</span>
|
|
</div>
|
|
<div class="status">
|
|
<div class="status-title">Faltante </div>
|
|
<div class="status-number"><asp:Literal Text="0" ID="LtlFaltanteImportePorcentaje2" runat="server" /> </div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</ContentTemplate>
|
|
</asp:UpdatePanel>
|
|
|
|
<asp:UpdatePanel ID="UpDatos" runat="server" UpdateMode="Conditional">
|
|
<ContentTemplate>
|
|
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-md-12" style="text-align:right!important">
|
|
<div style="display: inline-block">
|
|
<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; height: 25px; border-color: #89C4F4;" />
|
|
<a href="javascript:;" onclick="<%= String.Format("FiltrarTabla('TxtBusqueda','{0}')", GVDatos.ClientID) %>" class="btn btn-circle btn-sm label-info"><i class="icon-magnifier"></i></a>
|
|
</div>
|
|
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
<div class="row">
|
|
<div class="col-md-12">
|
|
|
|
<asp:GridView ID="GVDatos" runat="server" AutoGenerateColumns="false" EmptyDataText="No se encontraron contratos con los Filtros seleccionados"
|
|
DataKeyNames="CveContrato,NumeroContrato" ShowHeader="True"
|
|
CssClass="table table-striped table-hover Widthall ScrollAD mysmallbtn" GridLines="None">
|
|
<Columns>
|
|
|
|
<asp:TemplateField HeaderText="# Contrato">
|
|
<ItemTemplate>
|
|
<asp:HyperLink ID="HplContratado" CssClass="Texto" runat="server" Text='<%# Eval("NumeroContrato")%>' Target="_blank" ></asp:HyperLink>
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
|
|
<asp:TemplateField HeaderText="Cliente">
|
|
<ItemTemplate>
|
|
<asp:HyperLink ID="HplCliente" CssClass="Texto" runat="server" Text='<%# Eval("Nombre") %>' NavigateUrl='<%# Eval("CveCliente", "../Ventas/Clientes.aspx?CveCliente={0}")%>' Target="_blank" ></asp:HyperLink>
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
|
|
|
|
<asp:TemplateField HeaderText="Descripción">
|
|
<ItemTemplate>
|
|
|
|
<asp:HyperLink ID="HplDescripcion" CssClass="Texto" runat="server" Text='<%# Eval("DescripcionContrato") %>' NavigateUrl='<%# Eval("CveContrato", "ContratoObra.aspx?CveContrato={0}")%>' Target="_blank" ></asp:HyperLink>
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
|
|
|
|
<asp:TemplateField HeaderText="Fecha I.">
|
|
<ItemTemplate>
|
|
<asp:Label ID="LblFechaInicial" runat="server" Text='<%# Eval("FechaInicial", "{0:dd/MM/yyyy}")%>' ></asp:Label>
|
|
</ItemTemplate>
|
|
<ItemStyle HorizontalAlign="Center"></ItemStyle>
|
|
</asp:TemplateField>
|
|
|
|
|
|
<asp:TemplateField HeaderText="Fecha F.">
|
|
<ItemTemplate>
|
|
<asp:Label ID="LblFechaFinal" runat="server" Text='<%# Eval("FechaFinal", "{0:dd/MM/yyyy}")%>' ></asp:Label>
|
|
</ItemTemplate>
|
|
<ItemStyle HorizontalAlign="Center"></ItemStyle>
|
|
</asp:TemplateField>
|
|
|
|
|
|
<asp:TemplateField HeaderText="Proyecto">
|
|
<ItemTemplate>
|
|
<asp:Label ID="LblProyecto" CssClass="Texto" runat="server" Text='<%# Eval("Proyecto")%>'></asp:Label>
|
|
</ItemTemplate>
|
|
<ItemStyle HorizontalAlign="Left"></ItemStyle>
|
|
</asp:TemplateField>
|
|
|
|
|
|
<asp:TemplateField HeaderText="Importe">
|
|
<ItemTemplate>
|
|
<asp:Label ID="LblImporteSubTotal" CssClass="Texto" runat="server" Text='<%# Eval("ImporteSubTotal", "{0:N2}")%>'></asp:Label>
|
|
</ItemTemplate>
|
|
<ItemStyle HorizontalAlign="Right"></ItemStyle>
|
|
</asp:TemplateField>
|
|
|
|
|
|
<asp:TemplateField HeaderText="Avance $">
|
|
<ItemTemplate>
|
|
<asp:Label ID="LblAvanceImporte" CssClass="Texto" runat="server" Text='<%# Eval("AvanceImporte", "{0:N2}")%>'></asp:Label>
|
|
</ItemTemplate>
|
|
<ItemStyle HorizontalAlign="Right"></ItemStyle>
|
|
</asp:TemplateField>
|
|
|
|
<asp:TemplateField HeaderText="Faltante $">
|
|
<ItemTemplate>
|
|
<asp:Label ID="LblFaltanteImporte" CssClass="Texto" runat="server" Text='<%# Eval("FaltanteImporte", "{0:N2}")%>'></asp:Label>
|
|
</ItemTemplate>
|
|
<ItemStyle HorizontalAlign="Right"></ItemStyle>
|
|
</asp:TemplateField>
|
|
|
|
|
|
<asp:TemplateField HeaderText="Avance %" >
|
|
<ItemTemplate>
|
|
<asp:Label ID="LblIAvancePorcentaje" runat="server" Text='<%# Eval("AvancePorcentaje", "{0:N2}")%>'></asp:Label>
|
|
</ItemTemplate>
|
|
<ItemStyle HorizontalAlign="Right"></ItemStyle>
|
|
</asp:TemplateField>
|
|
|
|
|
|
<asp:TemplateField HeaderText="Faltante %" >
|
|
<ItemTemplate>
|
|
<asp:Label ID="LblFaltantePorcentaje" runat="server" Text='<%# Eval("FaltantePorcentaje", "{0:N2}")%>'></asp:Label>
|
|
</ItemTemplate>
|
|
<ItemStyle HorizontalAlign="Right"></ItemStyle>
|
|
</asp:TemplateField>
|
|
|
|
|
|
|
|
</Columns>
|
|
</asp:GridView>
|
|
</div>
|
|
</div>
|
|
|
|
<br />
|
|
</ContentTemplate>
|
|
</asp:UpdatePanel>
|
|
</asp:Content>
|
|
<asp:Content ID="Content7" ContentPlaceHolderID="JS" runat="Server">
|
|
</asp:Content>
|
|
|