This commit is contained in:
JORGE LUIS CAUDILLO ESPARZA
2024-06-19 20:33:36 -07:00
parent 477f8fa135
commit f8d0dc9375
5 changed files with 144 additions and 2 deletions

View File

@@ -2433,6 +2433,11 @@
<asp:LinkButton ID="LbMail" Visible="False" runat="server" Height="22px" OnClick="LbMail_Click"><img alt="Enviar por Correo" src="/Imagenes/email_icon.gif" width="22"/></asp:LinkButton>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField>
<ItemTemplate>
<asp:LinkButton ID="LbXML" runat="server" Height="22px" OnClick="LbXML_Click">XML</asp:LinkButton>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField>
<ItemTemplate>
<asp:LinkButton ID="LbPDF" Visible="False" runat="server" Height="22px" OnClick="LbPDF_Click"><img alt="Descargar PDF" src="/Imagenes/PDF-Download2.gif" width="22"/></asp:LinkButton>
@@ -2450,6 +2455,7 @@
</div>
</div>
<div style="display:none"> <span class="ltlxml"><asp:Literal ID="LtlXml" runat="server"></asp:Literal></span></div>
</ContentTemplate>
</ajax:TabPanel>
@@ -5923,6 +5929,20 @@
<script>
function Savexml(filename, data) {
var blob = new Blob([data], { type: 'text/xml' });
if (window.navigator.msSaveOrOpenBlob) {
window.navigator.msSaveBlob(blob, filename);
}
else {
var elem = window.document.createElement('a');
elem.href = window.URL.createObjectURL(blob);
elem.download = filename;
document.body.appendChild(elem);
elem.click();
document.body.removeChild(elem);
}
}
function pageLoad() {
$(document).ready(function () {
$('#<%=GvPersonalAltas.ClientID%>').ADScroll({