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 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); }