Cambios Proveedores Pestañas
This commit is contained in:
@@ -915,52 +915,55 @@
|
|||||||
|
|
||||||
<ajax:TabPanel ID="TabHistorial" runat="server" HeaderText="Historial de Compras">
|
<ajax:TabPanel ID="TabHistorial" runat="server" HeaderText="Historial de Compras">
|
||||||
<ContentTemplate>
|
<ContentTemplate>
|
||||||
<div class="portlet light xspadding bordered ">
|
<asp:UpdatePanel ID="UpnResumenHistorial" runat="server" UpdateMode="Conditional">
|
||||||
<div class="portlet-title">
|
<ContentTemplate>
|
||||||
<div class="caption font-green">
|
<div class="portlet light xspadding bordered ">
|
||||||
<i class="icon-pin font-green"></i>
|
<div class="portlet-title">
|
||||||
<span class="caption-subject bold uppercase">Resumen</span>
|
<div class="caption font-green">
|
||||||
</div>
|
<i class="icon-pin font-green"></i>
|
||||||
<div class="actions">
|
<span class="caption-subject bold uppercase">Resumen</span>
|
||||||
<div class="btn-group">
|
</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>
|
</div>
|
||||||
|
</ContentTemplate>
|
||||||
<div class="tools">
|
</asp:UpdatePanel>
|
||||||
<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="portlet light xspadding bordered ">
|
<div class="portlet light xspadding bordered ">
|
||||||
<div class="portlet-title">
|
<div class="portlet-title">
|
||||||
@@ -1062,7 +1065,7 @@
|
|||||||
<ContentTemplate>
|
<ContentTemplate>
|
||||||
<asp:UpdatePanel ID="UPPCxP" runat="server" UpdateMode="Conditional">
|
<asp:UpdatePanel ID="UPPCxP" runat="server" UpdateMode="Conditional">
|
||||||
<ContentTemplate>
|
<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" />
|
<asp:Button ID="BtnRecargaCxP" ClientIDMode="Static" runat="server" Style="display: none;" Text="ConsultarCxP" />
|
||||||
<div class="row">
|
<div class="row">
|
||||||
|
|
||||||
@@ -1402,7 +1405,7 @@
|
|||||||
<ContentTemplate>
|
<ContentTemplate>
|
||||||
<asp:UpdatePanel runat="server" ID="UpAnticipos" UpdateMode="Conditional">
|
<asp:UpdatePanel runat="server" ID="UpAnticipos" UpdateMode="Conditional">
|
||||||
<ContentTemplate>
|
<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 light xspadding bordered ">
|
||||||
<div class="portlet-title">
|
<div class="portlet-title">
|
||||||
<div class="caption font-green">
|
<div class="caption font-green">
|
||||||
@@ -1645,7 +1648,7 @@
|
|||||||
<ContentTemplate>
|
<ContentTemplate>
|
||||||
<asp:UpdatePanel runat="server" ID="UpBancos" UpdateMode="Conditional">
|
<asp:UpdatePanel runat="server" ID="UpBancos" UpdateMode="Conditional">
|
||||||
<ContentTemplate>
|
<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 light xspadding bordered ">
|
||||||
<div class="portlet-title">
|
<div class="portlet-title">
|
||||||
<div class="caption font-green">
|
<div class="caption font-green">
|
||||||
@@ -1943,7 +1946,7 @@
|
|||||||
|
|
||||||
<asp:UpdatePanel ID="UpOC" runat="server" UpdateMode="Conditional">
|
<asp:UpdatePanel ID="UpOC" runat="server" UpdateMode="Conditional">
|
||||||
<ContentTemplate>
|
<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">
|
<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;" />
|
<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>
|
<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">
|
<asp:UpdatePanel runat="server" ID="UpDocumentos" UpdateMode="Conditional">
|
||||||
<ContentTemplate>
|
<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"
|
<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">
|
DataKeyNames="CveDocumentacion,Documentacion,Orden,CveDocumentacionElectronica,Adjunto,Estatus,Observacion,Fecha,FechaIng,Usuario,FechaLimite,FechaVigencia,DiasLimite,AplicaDiasLimite,AplicaFechaVencimiento">
|
||||||
<Columns>
|
<Columns>
|
||||||
@@ -2071,7 +2074,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<asp:UpdatePanel ID="UpGvUsuarios" runat="server" UpdateMode="Conditional">
|
<asp:UpdatePanel ID="UpGvUsuarios" runat="server" UpdateMode="Conditional">
|
||||||
<ContentTemplate>
|
<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">
|
<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>
|
<Columns>
|
||||||
<asp:BoundField DataField="Usuario" ItemStyle-Width="30%" HeaderText="Usuario" ItemStyle-HorizontalAlign="Left" />
|
<asp:BoundField DataField="Usuario" ItemStyle-Width="30%" HeaderText="Usuario" ItemStyle-HorizontalAlign="Left" />
|
||||||
@@ -3815,6 +3818,13 @@
|
|||||||
<asp:UpdatePanel ID="UpBtnsTab" runat="server" UpdateMode="Conditional">
|
<asp:UpdatePanel ID="UpBtnsTab" runat="server" UpdateMode="Conditional">
|
||||||
<ContentTemplate>
|
<ContentTemplate>
|
||||||
<asp:Button ID="BtnCargaHistorial" runat="server" ClientIDMode="Static" Text="CargarHistorial" Style="display: none;" OnClick="BtnCargaHistorial_Click"/>
|
<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>
|
</ContentTemplate>
|
||||||
</asp:UpdatePanel>
|
</asp:UpdatePanel>
|
||||||
|
|
||||||
@@ -3985,41 +3995,86 @@
|
|||||||
cargaTabs();
|
cargaTabs();
|
||||||
}
|
}
|
||||||
|
|
||||||
function CargaTabHistoral(){
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
function cargaTabs() {
|
function cargaTabs() {
|
||||||
if (<%= Me.ProveedorID %> > 0) {
|
if (<%= Me.ProveedorID %> > 0) {
|
||||||
let eventosHist = $._data($('#C_Tab_TabHistorial_tab')[0], 'events');
|
// Historial
|
||||||
if(eventosHist == undefined ){
|
var $tabHist = $('#C_Tab_TabHistorial_tab');
|
||||||
$("#C_Tab_TabHistorial_tab").on("click", function () {
|
if ($tabHist.length > 0) {
|
||||||
$('#BtnCargaHistorial').click();
|
var eventosHist = $._data($tabHist[0], 'events');
|
||||||
});
|
if (eventosHist == undefined) {
|
||||||
|
$tabHist.on("click", function () {
|
||||||
|
$('#BtnCargaHistorial').click();
|
||||||
|
});
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
let eventosCxP = $._data($('#C_Tab_TabCxP_tab')[0], 'events');
|
// CxP
|
||||||
if(eventosCxP == undefined){
|
var $tabCxP = $('#C_Tab_TabCxP_tab');
|
||||||
$("#C_Tab_TabCxP_tab").on("click", function () {
|
if ($tabCxP.length > 0) {
|
||||||
|
var eventosCxP = $._data($tabCxP[0], 'events');
|
||||||
|
if (eventosCxP == undefined) {
|
||||||
|
$tabCxP.on("click", function () {
|
||||||
$('#BtnCargaCxP').click();
|
$('#BtnCargaCxP').click();
|
||||||
});
|
});
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
$("#C_Tab_TabAnticipos_tab").on("click", function () {
|
// Anticipos
|
||||||
$('#BtnCargaAnticipos').click();
|
var $tabAnticipos = $('#C_Tab_TabAnticipos_tab');
|
||||||
});
|
if ($tabAnticipos.length > 0) {
|
||||||
$("#C_Tab_TabBancos_tab").on("click", function () {
|
var eventosAnticipos = $._data($tabAnticipos[0], 'events');
|
||||||
$('#BtnCargaBancos').click();
|
if (eventosAnticipos == undefined) {
|
||||||
});
|
$tabAnticipos.on("click", function () {
|
||||||
$("#C_Tab_TabOC_tab").on("click", function () {
|
$('#BtnCargaAnticipos').click();
|
||||||
$('#BtnCargaOC').click();
|
});
|
||||||
});
|
}
|
||||||
$("#C_Tab_TabUsuarios_tab").on("click", function () {
|
}
|
||||||
$('#BtnCargaPortal').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() {
|
function showDivEC() {
|
||||||
$('#<%= TxtProveedorSucursal2.ClientID %>').val('');
|
$('#<%= TxtProveedorSucursal2.ClientID %>').val('');
|
||||||
|
|||||||
@@ -5940,51 +5940,111 @@ Partial Class Compras_Proveedores
|
|||||||
ViewState("YaEjecutadoHistorial") = True
|
ViewState("YaEjecutadoHistorial") = True
|
||||||
|
|
||||||
If CveProveedor > 0 Then
|
If CveProveedor > 0 Then
|
||||||
CargaHistorial(CveProveedorSucursal) ' <-- Tu método de carga
|
CargaHistorial(CveProveedorSucursal)
|
||||||
UpnHistorial.Update() ' <-- UpdatePanel de Historial
|
UpnResumenHistorial.Update()
|
||||||
|
UpnHistorial.Update()
|
||||||
UpBtnsTab.Update()
|
UpBtnsTab.Update()
|
||||||
End If
|
End If
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
Protected Sub BtnCargaCxP_Click(sender As Object, e As EventArgs) Handles BtnCargaCxP.Click
|
Protected Sub BtnCargaCxP_Click(sender As Object, e As EventArgs) Handles BtnCargaCxP.Click
|
||||||
|
|
||||||
|
If ViewState("YaEjecutadoCxP") IsNot Nothing AndAlso CBool(ViewState("YaEjecutadoCxP")) Then
|
||||||
|
' Ya se ejecutó, evita doble acción
|
||||||
|
Exit Sub
|
||||||
|
End If
|
||||||
|
|
||||||
|
' Marca que ya se ejecutó
|
||||||
|
ViewState("YaEjecutadoCxP") = True
|
||||||
|
|
||||||
If CveProveedor > 0 Then
|
If CveProveedor > 0 Then
|
||||||
CargaCxP(CveProveedorSucursal) ' <-- Tu método de carga
|
CargaCxP(CveProveedorSucursal) ' <-- Tu método de carga
|
||||||
UPPCxP.Update() ' <-- UpdatePanel de CxP
|
UPPCxP.Update() ' <-- UpdatePanel de CxP
|
||||||
|
UpBtnsTab.Update()
|
||||||
End If
|
End If
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
Protected Sub BtnCargaAnticipos_Click(sender As Object, e As EventArgs) Handles BtnCargaAnticipos.Click
|
Protected Sub BtnCargaAnticipos_Click(sender As Object, e As EventArgs) Handles BtnCargaAnticipos.Click
|
||||||
|
|
||||||
|
If ViewState("YaEjecutadoAnticipos") IsNot Nothing AndAlso CBool(ViewState("YaEjecutadoAnticipos")) Then
|
||||||
|
' Ya se ejecutó, evita doble acción
|
||||||
|
Exit Sub
|
||||||
|
End If
|
||||||
|
|
||||||
|
' Marca que ya se ejecutó
|
||||||
|
ViewState("YaEjecutadoAnticipos") = True
|
||||||
If CveProveedor > 0 Then
|
If CveProveedor > 0 Then
|
||||||
CargaAnticipos(CveProveedorSucursal) ' <-- Tu método de carga
|
CargaAnticipos(CveProveedorSucursal) ' <-- Tu método de carga
|
||||||
UpAnticipos.Update() ' <-- UpdatePanel de Anticipos
|
UpAnticipos.Update() ' <-- UpdatePanel de Anticipos
|
||||||
|
UpBtnsTab.Update()
|
||||||
End If
|
End If
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
Protected Sub BtnCargaBancos_Click(sender As Object, e As EventArgs) Handles BtnCargaBancos.Click
|
Protected Sub BtnCargaBancos_Click(sender As Object, e As EventArgs) Handles BtnCargaBancos.Click
|
||||||
|
|
||||||
|
If ViewState("YaEjecutadoBancos") IsNot Nothing AndAlso CBool(ViewState("YaEjecutadoBancos")) Then
|
||||||
|
' Ya se ejecutó, evita doble acción
|
||||||
|
Exit Sub
|
||||||
|
End If
|
||||||
|
|
||||||
|
' Marca que ya se ejecutó
|
||||||
|
ViewState("YaEjecutadoBancos") = True
|
||||||
|
|
||||||
If CveProveedor > 0 Then
|
If CveProveedor > 0 Then
|
||||||
CargaBancos(CveProveedorSucursal) ' <-- Tu método de carga
|
CargaBancos(CveProveedorSucursal) ' <-- Tu método de carga
|
||||||
UpBancos.Update() ' <-- UpdatePanel de Bancos
|
UpBancos.Update() ' <-- UpdatePanel de Bancos
|
||||||
|
UpBtnsTab.Update()
|
||||||
End If
|
End If
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
Protected Sub BtnCargaOC_Click(sender As Object, e As EventArgs) Handles BtnCargaOC.Click
|
Protected Sub BtnCargaOC_Click(sender As Object, e As EventArgs) Handles BtnCargaOC.Click
|
||||||
|
|
||||||
|
If ViewState("YaEjecutadoOC") IsNot Nothing AndAlso CBool(ViewState("YaEjecutadoOC")) Then
|
||||||
|
' Ya se ejecutó, evita doble acción
|
||||||
|
Exit Sub
|
||||||
|
End If
|
||||||
|
|
||||||
|
' Marca que ya se ejecutó
|
||||||
|
ViewState("YaEjecutadoOC") = True
|
||||||
|
|
||||||
If CveProveedor > 0 Then
|
If CveProveedor > 0 Then
|
||||||
CargaOC() ' <-- Tu método de carga
|
CargaOC() ' <-- Tu método de carga
|
||||||
UpOC.Update() ' <-- UpdatePanel de OC
|
UpOC.Update() ' <-- UpdatePanel de OC
|
||||||
|
UpBtnsTab.Update()
|
||||||
End If
|
End If
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
Protected Sub BtnCargaDocs_Click(sender As Object, e As EventArgs) Handles BtnCargaDocs.Click
|
Protected Sub BtnCargaDocs_Click(sender As Object, e As EventArgs) Handles BtnCargaDocs.Click
|
||||||
|
|
||||||
|
If ViewState("YaEjecutadoDocs") IsNot Nothing AndAlso CBool(ViewState("YaEjecutadoDocs")) Then
|
||||||
|
' Ya se ejecutó, evita doble acción
|
||||||
|
Exit Sub
|
||||||
|
End If
|
||||||
|
|
||||||
|
' Marca que ya se ejecutó
|
||||||
|
ViewState("YaEjecutadoDocs") = True
|
||||||
|
|
||||||
If CveProveedor > 0 Then
|
If CveProveedor > 0 Then
|
||||||
CargaDocs() ' <-- Tu método de carga
|
CargaDocs() ' <-- Tu método de carga
|
||||||
UpDocumentos.Update() ' <-- UpdatePanel de Documentos
|
UpDocumentos.Update() ' <-- UpdatePanel de Documentos
|
||||||
|
UpBtnsTab.Update()
|
||||||
End If
|
End If
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
Protected Sub BtnCargaPortal_Click(sender As Object, e As EventArgs) Handles BtnCargaPortal.Click
|
Protected Sub BtnCargaPortal_Click(sender As Object, e As EventArgs) Handles BtnCargaPortal.Click
|
||||||
|
|
||||||
|
If ViewState("YaEjecutadoPortal") IsNot Nothing AndAlso CBool(ViewState("YaEjecutadoPortal")) Then
|
||||||
|
' Ya se ejecutó, evita doble acción
|
||||||
|
Exit Sub
|
||||||
|
End If
|
||||||
|
|
||||||
|
' Marca que ya se ejecutó
|
||||||
|
ViewState("YaEjecutadoPortal") = True
|
||||||
|
|
||||||
If CveProveedor > 0 Then
|
If CveProveedor > 0 Then
|
||||||
CargaUsuariosPortalProveedor() ' <-- Tu método de carga
|
CargaUsuariosPortalProveedor() ' <-- Tu método de carga
|
||||||
UpGvUsuarios.Update() ' <-- UpdatePanel de Portal/Usuarios
|
UpGvUsuarios.Update() ' <-- UpdatePanel de Portal/Usuarios
|
||||||
|
UpBtnsTab.Update()
|
||||||
End If
|
End If
|
||||||
End Sub
|
End Sub
|
||||||
End Class
|
End Class
|
||||||
|
|||||||
Reference in New Issue
Block a user