VyA addContrato valida unidad
This commit is contained in:
@@ -3,16 +3,22 @@
|
||||
<asp:Content ID="Content1" ContentPlaceHolderID="H" runat="Server">
|
||||
|
||||
<li>
|
||||
<asp:LinkButton ID="ImgExcel" runat="server"><i class="fa fa-ad-excel"></i> Exporta Excel</asp:LinkButton>
|
||||
<asp:LinkButton ID="ImgExcel" runat="server"><i class="fa fa-file-excel-o"></i> Exporta Excel</asp:LinkButton>
|
||||
<%--<asp:ImageButton ID="ImgExcel" runat="server" ImageUrl="/Imagenes/IconoExcel.gif" Width="20px" Height="20px" /> --%>
|
||||
</li>
|
||||
<li>
|
||||
<a id="BtnImprimirPoSubProyecto" runat="server" href="javascript:void(0);" onclick="javascript:BtnImprimirPoSubProyecto_Click(); return false;" >
|
||||
<i class="fa fa-file-excel-o"></i> Exportar por <asp:Label runat="server" ID="LblAccionesSubProyecto" ></asp:Label>
|
||||
</a>
|
||||
<div style="display:none">
|
||||
<asp:Button runat="server" ID="BtnImprimirPorsubProyecto" OnClick="BtnImprimirPorsubProyecto_Click" ClientIDMode="Static" />
|
||||
</div>
|
||||
</li>
|
||||
<li>
|
||||
<asp:LinkButton ID="BtnImprimir" runat="server"><i class="fa fa-print"></i> Imprimir</asp:LinkButton>
|
||||
<%--<asp:ImageButton ID="BtnImprimir" runat="server" alt="Imprimir" src="/Imagenes/btnImprimir.gif" Style="cursor: pointer; height: 20px" Visible="true" /> --%>
|
||||
</li>
|
||||
<li>
|
||||
<asp:LinkButton ID="BtnImprimirPoSubProyecto" runat="server" OnClick="BtnImprimirPoSubProyecto_Click" Visible="false" ><i class="fa fa-print"></i> Imprimir por Sub Proyecto</asp:LinkButton>
|
||||
</li>
|
||||
|
||||
|
||||
</asp:Content>
|
||||
<asp:Content ID="Content2" ContentPlaceHolderID="E" runat="Server">
|
||||
@@ -218,3 +224,63 @@
|
||||
|
||||
</asp:Content>
|
||||
|
||||
<asp:Content ID="Content4" ContentPlaceHolderID="JS" runat="Server">
|
||||
|
||||
<script>
|
||||
|
||||
|
||||
function BtnImprimirPoSubProyecto_Click() {
|
||||
|
||||
setTimeout(checkFileStatus, 5000);
|
||||
$('#BtnImprimirPorsubProyecto').click();
|
||||
|
||||
//checkFileStatus();
|
||||
|
||||
}
|
||||
|
||||
|
||||
function callMyStaticFunction() {
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: "MyPage.aspx/MyStaticFunction",
|
||||
data: JSON.stringify({ parameter: "TuParametro" }),
|
||||
contentType: "application/json; charset=utf-8",
|
||||
dataType: "json",
|
||||
success: function (response) {
|
||||
alert("Resultado: " + response.d);
|
||||
},
|
||||
error: function (xhr, status, error) {
|
||||
console.error("Error: " + error);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
function checkFileStatus() {
|
||||
//$.ajax({
|
||||
// url: 'RepBalanzaComprobacion.aspx',
|
||||
// success: function (response) {
|
||||
// setTimeout(checkFileStatus, 20000);
|
||||
// }
|
||||
//});
|
||||
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: 'RepBalanzaComprobacion.aspx',
|
||||
data: JSON.stringify({ parameter: "TuParametro" }),
|
||||
contentType: "application/json; charset=utf-8",
|
||||
dataType: "json",
|
||||
success: function (response) {
|
||||
//alert("Resultado: " + response.d);
|
||||
setTimeout(checkFileStatus, 20000);
|
||||
},
|
||||
error: function (xhr, status, error) {
|
||||
console.error("Error: " + error);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
</script>
|
||||
|
||||
</asp:Content>
|
||||
Reference in New Issue
Block a user