protected void Page_Load(object sender, EventArgs e) { if (!this.IsPostBack) { string link = Emitir.ImprimirPoliza("8011600094350"); //link = FirmaDigital.FirmaDocumento(link); string url = ConfigurationManager.AppSettings["Server"] + "/pdf/"; link = url + link + ".PDF"; Thread.Sleep(3000); if (link != "ERROR") { UtilesWeb.OpenNewWindow(Page, "https://mel.mapfre.cl/Productos/Comun/ImpresorFirma.aspx?poliza=" + link); } else { UtilesWeb.EjecutaJs(this, "alert('Se registro un error al momento de generar su poliza, intentalo de nuevo mas tarde.');"); return; } } }
protected void ImgImprimirPoliza_Click(object sender, ImageClickEventArgs e) { /*string link = Emitir.ImprimirPoliza(this.lblNumPoliza.Text); * * //link = FirmaDigital.FirmaDocumento(link); * * string url = ConfigurationManager.AppSettings["Server"] + "/pdf/"; * * link = url + link + ".PDF"; * * Thread.Sleep(3000); */ string link = ConfigurationManager.AppSettings["Server"] + "/Productos/Comun/ImpresorSuplPDF.aspx?cod_cia=1&poliza=" + this.lblNumPoliza.Text + "&spto=0&apli=0&spto_apli=0"; if (link != "ERROR") { UtilesWeb.OpenNewWindow(Page, link); } //UtilesWeb.OpenNewWindow(Page, "https://mel.mapfre.cl/Productos/Comun/ImpresorFirma.aspx?poliza=" + link ); else { UtilesWeb.EjecutaJs(this, "alert('Se registro un error al momento de generar su poliza, intentalo de nuevo mas tarde.');"); return; } }
protected void ImgImprimirMandato_Click(object sender, ImageClickEventArgs e) { string link = Emitir.ImprimirMandato(this.hdnNumCotizacion.Value); string url = ConfigurationManager.AppSettings["Server"] + "/pdf/"; link = url + link; Thread.Sleep(5000); UtilesWeb.OpenNewWindow(Page, link); }
protected void ImgImprimirSOAP_Click(object sender, ImageClickEventArgs e) { string link = ((datospoliza[])Session["datospoliza"])[0].UrlPoliza; UtilesWeb.OpenNewWindow(Page, link); }