331 lines
16 KiB
Plaintext
331 lines
16 KiB
Plaintext
<%@ Page Title="" Language="VB" MasterPageFile="~/Site.master" AutoEventWireup="false" CodeFile="RepEvaluacionProveedor.aspx.vb" Inherits="RepEvaluacionProveedor" %>
|
|
|
|
<asp:Content ID="Content1" ContentPlaceHolderID="CP" runat="Server">
|
|
</asp:Content>
|
|
<asp:Content ID="Content2" ContentPlaceHolderID="Css" runat="Server">
|
|
<style>
|
|
.table-scrollable {
|
|
margin-top: 0px !important;
|
|
margin-bottom: 0px !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;
|
|
}
|
|
</style>
|
|
</asp:Content>
|
|
<asp:Content ID="Content3" ContentPlaceHolderID="HB" runat="Server">
|
|
</asp:Content>
|
|
<asp:Content ID="Content4" ContentPlaceHolderID="E" runat="Server">
|
|
Reporte Evaluación de Proveedor
|
|
</asp:Content>
|
|
<asp:Content ID="Content5" ContentPlaceHolderID="H" runat="Server">
|
|
<li>
|
|
<asp:LinkButton ID="LnkExportar" runat="server"><i class="fa fa-file-excel-o" style="font-weight:bold;"></i> Excel</asp:LinkButton>
|
|
</li>
|
|
</asp:Content>
|
|
<asp:Content ID="Content6" ContentPlaceHolderID="C" runat="Server">
|
|
<asp:UpdatePanel runat="server">
|
|
<ContentTemplate>
|
|
<div class="portlet solid grey-cascade portlet-filter" style="">
|
|
<div class="portlet-title portlet-filterT smalltitle" style="min-height: 49px; position: relative;">
|
|
<div class="tools">
|
|
<asp:Button ID="btConsultar" CssClass="btn btn-primary" runat="server" ValidationGroup="GrpConsultar" Text="Consultar" /></td>
|
|
<a href="javascript:;" data-idchekbox="<%= chkexpand.ClientID%>" class=" <%= IIf(chkexpand.Checked = True, "collapse", "expand")%>"></a>
|
|
<asp:CheckBox ID="chkexpand" CssClass="hidden" runat="server" />
|
|
</div>
|
|
<div class="titlefiltros caption magindate">
|
|
<div class="row">
|
|
|
|
<div class="col-md-1 truncate">Proveedor</div>
|
|
<div class="col-md-2">
|
|
<asp:DropDownList ID="DdlProveedor" runat="server" CssClass="form-control input-sm select2me" Width="250" DataValueField="CveProveedor" DataTextField="RazonSocial"></asp:DropDownList>
|
|
</div>
|
|
<div class="col-md-1 ">Clasificación</div>
|
|
<div class="col-md-2">
|
|
<asp:DropDownList ID="DdlCveClasificacionProveedor" CssClass="form-control select2me input-sm" runat="server" AppendDataBoundItems="true" DataTextField="ProveedorClasificacion" DataValueField="CveProveedorClasificacion" Width="206px"></asp:DropDownList>
|
|
</div>
|
|
|
|
<div class="col-md-1 truncate">Fecha Inicio</div>
|
|
<div class="col-md-2 col-sm-2">
|
|
<div class="input-group input-sm input-small date date-picker " data-date-format="dd/mm/yyyy" style="width: 95px !important; padding: 0px;">
|
|
<asp:TextBox Style="width: 80px !important;" ID="TxtFechaI" runat="server" CssClass="form-control" CausesValidation="true" MaxLength="10"></asp:TextBox>
|
|
<span class="input-group-btn ">
|
|
<asp:LinkButton ID="ImgFechaI" 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="CEFechaI" TargetControlID="TxtFechaI" PopupButtonID="ImgFechaI" PopupPosition="BottomRight" Enabled="True"></ajax:CalendarExtender>
|
|
|
|
</div>
|
|
|
|
<div class="col-md-1 truncate">Fecha Fin</div>
|
|
<div class="col-md-2 col-sm-2">
|
|
<div class="input-group input-sm input-small date date-picker " data-date-format="dd/mm/yyyy" style="width: 95px !important; padding: 0px;">
|
|
<asp:TextBox Style="width: 80px !important;" ID="TxtFechaF" runat="server" CssClass="form-control" CausesValidation="true" MaxLength="10"></asp:TextBox>
|
|
<span class="input-group-btn ">
|
|
<asp:LinkButton ID="ImgFechaF" 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="CalendarExtender1" TargetControlID="TxtFechaF" PopupButtonID="ImgFechaF" PopupPosition="BottomRight" Enabled="True"></ajax:CalendarExtender>
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|
|
</div>
|
|
<div class="portlet-body magindate" <%= IIf(chkexpand.Checked = True, "", "style=""display:none;""")%>>
|
|
<div class="row">
|
|
</div>
|
|
<div class="row">
|
|
</div>
|
|
<div id="DivFamiliaSubFamilia" class="row" runat="server" visible="false">
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</ContentTemplate>
|
|
</asp:UpdatePanel>
|
|
|
|
<br />
|
|
<div id="dvCuerpo" style="width: 100%">
|
|
|
|
<div class="row ">
|
|
<div class="col-sm-6" style="text-align: left!important">
|
|
Número de registros encontrados:
|
|
<b>
|
|
<asp:UpdatePanel ID="upContador" runat="server" RenderMode="Inline" UpdateMode="Conditional">
|
|
<ContentTemplate>
|
|
<asp:Literal ID="LtlTotalRegistros" runat="server"></asp:Literal>
|
|
</ContentTemplate>
|
|
</asp:UpdatePanel>
|
|
</b>
|
|
</div>
|
|
<div class="col-sm-6" style="text-align: right!important">
|
|
|
|
<input type="text" id="TxtBusqueda" class="form-control input-sm" onkeyup="<%= String.Format("FiltrarTabla('TxtBusqueda','{0}')", GV.ClientID) %>" style="display: inline-block; margin-right: -20px; width: 150px;" />
|
|
<a href="javascript:;" onclick="<%= String.Format("FiltrarTabla('TxtBusqueda','{0}')", GV.ClientID) %>" style="margin-top: -3px;" class="btn btn-circle btn-sm label-info"><i class="icon-magnifier"></i></a>
|
|
</div>
|
|
</div>
|
|
|
|
<div id="dvCa" style="width: 100%; visibility: hidden; top: 40px">
|
|
<table id="dTable" class="correcto table">
|
|
<tr>
|
|
<td id="dvPro" class="alert alert-success" style="text-align: center!important"><strong>Proveedor</strong> </td>
|
|
<td id="dvReq" class="alert alert-warning" style="text-align: center!important"><strong>Requisición</strong> </td>
|
|
<td id="dvOc" class="alert alert-info" style="text-align: center!important"><strong>Orden de Compra</strong></td>
|
|
<td id="dvCo" class="alert alert-success" style="text-align: center!important"><strong>Compra</strong></td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
|
|
<asp:UpdatePanel ID="UPDatos" runat="server" RenderMode="Inline" UpdateMode="Conditional">
|
|
<ContentTemplate>
|
|
|
|
<asp:GridView ID="GV" runat="server" GridLines="None" BorderWidth="0" UseAccessibleHeader="true"
|
|
CssClass="correcto table table-smallpadding Widthall " data-sort="true" ShowHeader="True" EmptyDataText="No se encontraron resultados." ShowHeaderWhenEmpty="true"
|
|
AutoGenerateColumns="False" AllowPaging="False" ShowFooter="False">
|
|
<Columns>
|
|
<asp:TemplateField HeaderText="Nombre" ItemStyle-HorizontalAlign="Left">
|
|
<ItemTemplate>
|
|
<asp:Label ID="lblProveedor" runat="server" Text='<%# Eval("NombreComercial").ToString() %>'> </asp:Label>
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
<asp:TemplateField HeaderText="Folio" ItemStyle-HorizontalAlign="Center">
|
|
<ItemTemplate>
|
|
<asp:Label ID="lblReqFolio" runat="server" Text='<%# If(Eval("ReqFolio").ToString() = "", "-", Eval("ReqFolio")) %>'> </asp:Label>
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
|
|
<asp:TemplateField HeaderText="Fecha Reg." ItemStyle-HorizontalAlign="Center">
|
|
<ItemTemplate>
|
|
<asp:Label ID="lblReqFechaIng" runat="server" Text='<%# If(Eval("ReqFecha").ToString() = "", "-", Eval("ReqFecha", "{0:dd/MM/yyyy}")) %>'></asp:Label>
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
<asp:TemplateField HeaderText="Fecha Entrega" ItemStyle-HorizontalAlign="Center">
|
|
<ItemTemplate>
|
|
<asp:Label ID="lblReqFechaE" runat="server" Text='<%# If(Eval("ReqFechaEst").ToString() = "", "-", Eval("ReqFechaEst", "{0:dd/MM/yyyy}")) %>'></asp:Label>
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
|
|
<asp:TemplateField HeaderText="Lugar Entrega" ItemStyle-HorizontalAlign="Center">
|
|
<ItemTemplate>
|
|
<asp:Label ID="lblReqLugarEntrega" runat="server" Text='<%# If(Eval("ReqLugarEntrega").ToString() = "", "-", Eval("ReqLugarEntrega")) %>'></asp:Label>
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
|
|
<asp:TemplateField HeaderText="Folio" ItemStyle-HorizontalAlign="Center">
|
|
<ItemTemplate>
|
|
<asp:Label ID="lblOcFolio" runat="server" Text='<%# Eval("OcFolio") %>'></asp:Label>
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
<asp:TemplateField HeaderText="Fecha Reg." ItemStyle-HorizontalAlign="Center">
|
|
<ItemTemplate>
|
|
<asp:Label ID="lblOcFechaIng" runat="server" Text='<%# If(Eval("OcFechaIng").ToString() = "", "-", Eval("OcFechaIng", "{0:dd/MM/yyyy}")) %>'></asp:Label>
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
<asp:TemplateField HeaderText="Fecha Estimada" ItemStyle-HorizontalAlign="Center">
|
|
<ItemTemplate>
|
|
<asp:Label ID="lblOcFechaE" runat="server" Text='<%# If(Eval("OcFechaEst").ToString() = "", "-", Eval("OcFechaEst", "{0:dd/MM/yyyy}")) %>'></asp:Label>
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
|
|
<asp:TemplateField HeaderText="Almacen" ItemStyle-HorizontalAlign="Center">
|
|
<ItemTemplate>
|
|
<asp:Label ID="lblalmacen" runat="server" Text='<%# If(Eval("Almacen").ToString() = "", "-", Eval("Almacen")) %>'></asp:Label>
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
|
|
<asp:TemplateField HeaderText="Fecha Captura" ItemStyle-HorizontalAlign="Center">
|
|
<ItemTemplate>
|
|
<asp:Label ID="lblFechaIng" runat="server" Text='<%# If(Eval("CoFechaIng").ToString() = "", "-", Eval("CoFechaIng", "{0:dd/MM/yyyy}")) %>'></asp:Label>
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
|
|
<asp:TemplateField HeaderText="Atraso" ItemStyle-HorizontalAlign="Right">
|
|
<ItemTemplate>
|
|
<asp:Label ID="lblAtraso" runat="server" Text='<%# Eval("Atraso") %>'></asp:Label>
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
|
|
</Columns>
|
|
<RowStyle CssClass="Texto" HorizontalAlign="Left" />
|
|
<AlternatingRowStyle CssClass="TextoAlterno" />
|
|
</asp:GridView>
|
|
|
|
</ContentTemplate>
|
|
</asp:UpdatePanel>
|
|
</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">
|
|
function IrC(v) {
|
|
|
|
window.open('../Compras/Compras.aspx?CveCompra=' + v, '_blank');
|
|
}
|
|
function IrO(v) {
|
|
|
|
window.open('../OC/OC.aspx?OC=' + v, '_blank');
|
|
}
|
|
function IrP(v) {
|
|
window.open('../Compras/Proveedores.aspx?CveProveedor=' + v, '_blank');
|
|
}
|
|
|
|
var dTable;
|
|
function pageLoad() {
|
|
var Tam = TamañoVentana();
|
|
var Alto = Tam.height - 330;
|
|
if (Alto < 100) {
|
|
Alto = 100;
|
|
}
|
|
|
|
|
|
var rows = false;
|
|
var cont = 0;
|
|
|
|
$("#<%=GV.ClientID %> tr").each(function () {
|
|
|
|
cont++;
|
|
});
|
|
|
|
if (cont > 2) {
|
|
var head = $('<thead></thead>');
|
|
head.append($('#C_GV tr:nth-child(1)'));
|
|
$('#C_GV').prepend(head);
|
|
dTable = $('#C_GV').DataTable({
|
|
'order': [], 'orderable': true, scrollY: Alto + 'px', scrollCollapse: true, paging: false, searching: false, info: false
|
|
});
|
|
subHeaders();
|
|
}
|
|
|
|
|
|
}
|
|
|
|
$(window).resize(function () {
|
|
|
|
subHeaders();
|
|
dTable.columns.adjust().draw();
|
|
});
|
|
|
|
function subHeaders() {
|
|
$('#dvCa').css('visibility', 'hidden');
|
|
$("#<%=GV.ClientID %> tr").each(function () {
|
|
if (!this.rowIndex) return;
|
|
var celdas = [];
|
|
|
|
$(this).find('td').each(function (column, td) {
|
|
//scrollWidth
|
|
//celdas.push($(td).width());
|
|
var scrollWidt = 0;
|
|
scrollWidt = $(td).prop('scrollWidth')
|
|
celdas.push($(td).prop('scrollWidth'));
|
|
//console.log('this ' + $(this).width());
|
|
//console.log('td ' + $(td).width());
|
|
});
|
|
|
|
var ancho = 0
|
|
ancho += celdas[0];
|
|
//console.log('ancho pro ' + ancho);
|
|
$('#dvPro').width(ancho);
|
|
ancho = 0;
|
|
|
|
ancho += celdas[1];
|
|
ancho += celdas[2];
|
|
ancho += celdas[3];
|
|
ancho += celdas[4];
|
|
// console.log('ancho req ' + ancho);
|
|
$('#dvReq').width(ancho);
|
|
ancho = 0;
|
|
|
|
ancho += celdas[5];
|
|
ancho += celdas[6];
|
|
ancho += celdas[7];
|
|
|
|
// console.log('ancho req ' + ancho);
|
|
$('#dvOc').width(ancho);
|
|
ancho = 0;
|
|
|
|
ancho += celdas[8];
|
|
ancho += celdas[9];
|
|
ancho += celdas[10];
|
|
|
|
// console.log('ancho req ' + ancho);
|
|
$('#dvCo').width(ancho);
|
|
ancho = 0;
|
|
|
|
$('#dvCa').css('visibility', 'visible');
|
|
|
|
return false;
|
|
});
|
|
}
|
|
|
|
</script>
|
|
</asp:Content>
|