Cambios Proveedores Pestañas
This commit is contained in:
@@ -915,52 +915,55 @@
|
||||
|
||||
<ajax:TabPanel ID="TabHistorial" runat="server" HeaderText="Historial de Compras">
|
||||
<ContentTemplate>
|
||||
<div class="portlet light xspadding bordered ">
|
||||
<div class="portlet-title">
|
||||
<div class="caption font-green">
|
||||
<i class="icon-pin font-green"></i>
|
||||
<span class="caption-subject bold uppercase">Resumen</span>
|
||||
</div>
|
||||
<div class="actions">
|
||||
<div class="btn-group">
|
||||
<asp:UpdatePanel ID="UpnResumenHistorial" runat="server" UpdateMode="Conditional">
|
||||
<ContentTemplate>
|
||||
<div class="portlet light xspadding bordered ">
|
||||
<div class="portlet-title">
|
||||
<div class="caption font-green">
|
||||
<i class="icon-pin font-green"></i>
|
||||
<span class="caption-subject bold uppercase">Resumen</span>
|
||||
</div>
|
||||
<div class="actions">
|
||||
<div class="btn-group">
|
||||
</div>
|
||||
</div>
|
||||
<div class="tools">
|
||||
<a href="javascript:;" class="collapse" data-original-title="" title=""></a>
|
||||
<a href="javascript:;" class="fullscreen" data-original-title="" title=""></a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="portlet-body nomarginleftright form-horizontal form-row-sepe formnombottom ">
|
||||
<table border="0">
|
||||
<tr>
|
||||
<td>Cantidad de Compras: </td>
|
||||
<td>
|
||||
<asp:Literal ID="LtlCantidad" runat="server"></asp:Literal></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Total Comprado: </td>
|
||||
<td>
|
||||
<asp:Literal ID="LtlTotalVendido" runat="server"></asp:Literal></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Compra Mínima: </td>
|
||||
<td>
|
||||
<asp:Literal ID="LtlMinima" runat="server"></asp:Literal></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Promedio de Compras: </td>
|
||||
<td>
|
||||
<asp:Literal ID="LtlPromedio" runat="server"></asp:Literal></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Compra Máxima: </td>
|
||||
<td>
|
||||
<asp:Literal ID="LtlMaxima" runat="server"></asp:Literal></td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="tools">
|
||||
<a href="javascript:;" class="collapse" data-original-title="" title=""></a>
|
||||
<a href="javascript:;" class="fullscreen" data-original-title="" title=""></a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="portlet-body nomarginleftright form-horizontal form-row-sepe formnombottom ">
|
||||
<table border="0">
|
||||
<tr>
|
||||
<td>Cantidad de Compras: </td>
|
||||
<td>
|
||||
<asp:Literal ID="LtlCantidad" runat="server"></asp:Literal></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Total Comprado: </td>
|
||||
<td>
|
||||
<asp:Literal ID="LtlTotalVendido" runat="server"></asp:Literal></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Compra Mínima: </td>
|
||||
<td>
|
||||
<asp:Literal ID="LtlMinima" runat="server"></asp:Literal></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Promedio de Compras: </td>
|
||||
<td>
|
||||
<asp:Literal ID="LtlPromedio" runat="server"></asp:Literal></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Compra Máxima: </td>
|
||||
<td>
|
||||
<asp:Literal ID="LtlMaxima" runat="server"></asp:Literal></td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</ContentTemplate>
|
||||
</asp:UpdatePanel>
|
||||
|
||||
<div class="portlet light xspadding bordered ">
|
||||
<div class="portlet-title">
|
||||
@@ -1062,7 +1065,7 @@
|
||||
<ContentTemplate>
|
||||
<asp:UpdatePanel ID="UPPCxP" runat="server" UpdateMode="Conditional">
|
||||
<ContentTemplate>
|
||||
<asp:Button ID="BtnCargaCxP" runat="server" ClientIDMode="Static" Text="CargarCxP" Style="display: none;" OnClick="BtnCargaCxP_Click" />
|
||||
|
||||
<asp:Button ID="BtnRecargaCxP" ClientIDMode="Static" runat="server" Style="display: none;" Text="ConsultarCxP" />
|
||||
<div class="row">
|
||||
|
||||
@@ -1402,7 +1405,7 @@
|
||||
<ContentTemplate>
|
||||
<asp:UpdatePanel runat="server" ID="UpAnticipos" UpdateMode="Conditional">
|
||||
<ContentTemplate>
|
||||
<asp:Button ID="BtnCargaAnticipos" runat="server" ClientIDMode="Static" Text="CargarAnticipos" Style="display: none;" OnClick="BtnCargaAnticipos_Click" />
|
||||
|
||||
<div class="portlet light xspadding bordered ">
|
||||
<div class="portlet-title">
|
||||
<div class="caption font-green">
|
||||
@@ -1645,7 +1648,7 @@
|
||||
<ContentTemplate>
|
||||
<asp:UpdatePanel runat="server" ID="UpBancos" UpdateMode="Conditional">
|
||||
<ContentTemplate>
|
||||
<asp:Button ID="BtnCargaBancos" runat="server" ClientIDMode="Static" Text="CargarBancos" Style="display: none;" OnClick="BtnCargaBancos_Click" />
|
||||
|
||||
<div class="portlet light xspadding bordered ">
|
||||
<div class="portlet-title">
|
||||
<div class="caption font-green">
|
||||
@@ -1943,7 +1946,7 @@
|
||||
|
||||
<asp:UpdatePanel ID="UpOC" runat="server" UpdateMode="Conditional">
|
||||
<ContentTemplate>
|
||||
<asp:Button ID="BtnCargaOC" runat="server" ClientIDMode="Static" Text="CargarOC" Style="display: none;" OnClick="BtnCargaOC_Click" />
|
||||
|
||||
<div class="row" style="margin-right: 10px; margin-top: 18px;" align="right">
|
||||
<input type="text" id="TxtBusqueda6" class="form-control input-sm" onkeyup="<%= String.Format("FiltrarTabla('TxtBusqueda6','{0}')", GvOC.ClientID) %>" style="display: inline-block; margin-right: -20px; width: 150px;" />
|
||||
<a href="javascript:;" onclick="<%= String.Format("FiltrarTabla('TxtBusqueda6','{0}')", GvOC.ClientID) %>" style="margin-top: -3px;" class="btn btn-circle btn-sm label-info"><i class="icon-magnifier"></i></a>
|
||||
@@ -1988,7 +1991,7 @@
|
||||
|
||||
<asp:UpdatePanel runat="server" ID="UpDocumentos" UpdateMode="Conditional">
|
||||
<ContentTemplate>
|
||||
<asp:Button ID="BtnCargaDocs" runat="server" ClientIDMode="Static" Text="CargarDocs" Style="display: none;" OnClick="BtnCargaDocs_Click" />
|
||||
|
||||
<asp:GridView ID="GvDocs" AutoGenerateColumns="false" runat="server" GridLines="none"
|
||||
DataKeyNames="CveDocumentacion,Documentacion,Orden,CveDocumentacionElectronica,Adjunto,Estatus,Observacion,Fecha,FechaIng,Usuario,FechaLimite,FechaVigencia,DiasLimite,AplicaDiasLimite,AplicaFechaVencimiento">
|
||||
<Columns>
|
||||
@@ -2071,7 +2074,7 @@
|
||||
</div>
|
||||
<asp:UpdatePanel ID="UpGvUsuarios" runat="server" UpdateMode="Conditional">
|
||||
<ContentTemplate>
|
||||
<asp:Button ID="BtnCargaPortal" runat="server" ClientIDMode="Static" Text="CargarPortal" Style="display: none;" OnClick="BtnCargaPortal_Click" />
|
||||
|
||||
<asp:GridView ID="GvUsuarios" runat="server" GridLines="None" DataKeyNames="CveUsuario, Usuario" CssClass="table table-striped table-advance table-hover Widthall mysmallbtn" CellSpacing="0" Width="100%" AutoGenerateColumns="False" EmptyDataText="No se encontraron registros" ToolTip="Listado de Estatus de Ordenes de Servicios">
|
||||
<Columns>
|
||||
<asp:BoundField DataField="Usuario" ItemStyle-Width="30%" HeaderText="Usuario" ItemStyle-HorizontalAlign="Left" />
|
||||
@@ -3815,6 +3818,13 @@
|
||||
<asp:UpdatePanel ID="UpBtnsTab" runat="server" UpdateMode="Conditional">
|
||||
<ContentTemplate>
|
||||
<asp:Button ID="BtnCargaHistorial" runat="server" ClientIDMode="Static" Text="CargarHistorial" Style="display: none;" OnClick="BtnCargaHistorial_Click"/>
|
||||
<asp:Button ID="BtnCargaCxP" runat="server" ClientIDMode="Static" Text="CargarCxP" Style="display: none;" OnClick="BtnCargaCxP_Click" />
|
||||
<asp:Button ID="BtnCargaAnticipos" runat="server" ClientIDMode="Static" Text="CargarAnticipos" Style="display: none;" OnClick="BtnCargaAnticipos_Click" />
|
||||
<asp:Button ID="BtnCargaBancos" runat="server" ClientIDMode="Static" Text="CargarBancos" Style="display: none;" OnClick="BtnCargaBancos_Click" />
|
||||
<asp:Button ID="BtnCargaOC" runat="server" ClientIDMode="Static" Text="CargarOC" Style="display: none;" OnClick="BtnCargaOC_Click" />
|
||||
<asp:Button ID="BtnCargaDocs" runat="server" ClientIDMode="Static" Text="CargarDocs" Style="display: none;" OnClick="BtnCargaDocs_Click" />
|
||||
<asp:Button ID="BtnCargaPortal" runat="server" ClientIDMode="Static" Text="CargarPortal" Style="display: none;" OnClick="BtnCargaPortal_Click" />
|
||||
|
||||
</ContentTemplate>
|
||||
</asp:UpdatePanel>
|
||||
|
||||
@@ -3985,41 +3995,86 @@
|
||||
cargaTabs();
|
||||
}
|
||||
|
||||
function CargaTabHistoral(){
|
||||
|
||||
}
|
||||
|
||||
function cargaTabs() {
|
||||
if (<%= Me.ProveedorID %> > 0) {
|
||||
let eventosHist = $._data($('#C_Tab_TabHistorial_tab')[0], 'events');
|
||||
if(eventosHist == undefined ){
|
||||
$("#C_Tab_TabHistorial_tab").on("click", function () {
|
||||
$('#BtnCargaHistorial').click();
|
||||
});
|
||||
// Historial
|
||||
var $tabHist = $('#C_Tab_TabHistorial_tab');
|
||||
if ($tabHist.length > 0) {
|
||||
var eventosHist = $._data($tabHist[0], 'events');
|
||||
if (eventosHist == undefined) {
|
||||
$tabHist.on("click", function () {
|
||||
$('#BtnCargaHistorial').click();
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
let eventosCxP = $._data($('#C_Tab_TabCxP_tab')[0], 'events');
|
||||
if(eventosCxP == undefined){
|
||||
$("#C_Tab_TabCxP_tab").on("click", function () {
|
||||
|
||||
// CxP
|
||||
var $tabCxP = $('#C_Tab_TabCxP_tab');
|
||||
if ($tabCxP.length > 0) {
|
||||
var eventosCxP = $._data($tabCxP[0], 'events');
|
||||
if (eventosCxP == undefined) {
|
||||
$tabCxP.on("click", function () {
|
||||
$('#BtnCargaCxP').click();
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
$("#C_Tab_TabAnticipos_tab").on("click", function () {
|
||||
$('#BtnCargaAnticipos').click();
|
||||
});
|
||||
$("#C_Tab_TabBancos_tab").on("click", function () {
|
||||
$('#BtnCargaBancos').click();
|
||||
});
|
||||
$("#C_Tab_TabOC_tab").on("click", function () {
|
||||
$('#BtnCargaOC').click();
|
||||
});
|
||||
$("#C_Tab_TabUsuarios_tab").on("click", function () {
|
||||
$('#BtnCargaPortal').click();
|
||||
});
|
||||
}
|
||||
// Anticipos
|
||||
var $tabAnticipos = $('#C_Tab_TabAnticipos_tab');
|
||||
if ($tabAnticipos.length > 0) {
|
||||
var eventosAnticipos = $._data($tabAnticipos[0], 'events');
|
||||
if (eventosAnticipos == undefined) {
|
||||
$tabAnticipos.on("click", function () {
|
||||
$('#BtnCargaAnticipos').click();
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
// Bancos
|
||||
var $tabBancos = $('#C_Tab_TabBancos_tab');
|
||||
if ($tabBancos.length > 0) {
|
||||
var eventosBancos = $._data($tabBancos[0], 'events');
|
||||
if (eventosBancos == undefined) {
|
||||
$tabBancos.on("click", function () {
|
||||
$('#BtnCargaBancos').click();
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
// OC
|
||||
var $tabOC = $('#C_Tab_TabOC_tab');
|
||||
if ($tabOC.length > 0) {
|
||||
var eventosOC = $._data($tabOC[0], 'events');
|
||||
if (eventosOC == undefined) {
|
||||
$tabOC.on("click", function () {
|
||||
$('#BtnCargaOC').click();
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
// Docs
|
||||
var $tabDocs = $('#C_Tab_TabDocs_tab');
|
||||
if ($tabDocs.length > 0) {
|
||||
var eventosDocs = $._data($tabDocs[0], 'events');
|
||||
if (eventosDocs == undefined) {
|
||||
$tabDocs.on("click", function () {
|
||||
$('#BtnCargaDocs').click();
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
// Usuarios
|
||||
var $tabUsuarios = $('#C_Tab_TabUsuarios_tab');
|
||||
if ($tabUsuarios.length > 0) {
|
||||
var eventosUsuarios = $._data($tabUsuarios[0], 'events');
|
||||
if (eventosUsuarios == undefined) {
|
||||
$tabUsuarios.on("click", function () {
|
||||
$('#BtnCargaPortal').click();
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function showDivEC() {
|
||||
$('#<%= TxtProveedorSucursal2.ClientID %>').val('');
|
||||
|
||||
Reference in New Issue
Block a user