-- activación de botón imprimir

This commit is contained in:
2024-06-19 08:17:18 -07:00
parent a33142086e
commit 34ef0a401f
2 changed files with 40 additions and 27 deletions

View File

@@ -397,9 +397,10 @@ public partial class Bancos_PagoAcreedor : ClsPaginas
if (MsgError.Equals("")) if (MsgError.Equals(""))
{ {
ObjIE.Commit();
if (Msg.ToString().Equals("")) if (Msg.ToString().Equals(""))
{ {
Msg.AppendFormat("El Documento se guardo correctamente. Folio <b><a href='/Bancos/IE.aspx?CveIE={0}' target='_blank' class='Texto'>{1}</a></b> <br/>", CveIE, ObjIE.Folio); Msg.AppendFormat("El Documento se guardo correctamente. <br/> Folio <b><a href='/Bancos/IE.aspx?CveIE={0}' target='_blank' class='Texto'>{1}</a></b> <br/>", CveIE, ObjIE.Folio);
} }
//GUARDA COMPROBANTE //GUARDA COMPROBANTE
@@ -435,11 +436,14 @@ public partial class Bancos_PagoAcreedor : ClsPaginas
// } // }
//} //}
if (IDPoliza > 0) //if (IDPoliza > 0)
{ //{
Msg.AppendFormat(@"<br/><br/><a class=""Texto"" target='_blank' href=""/Contabilidad/RegPoliza.aspx?IdPoliza={0}"">Ver Póliza</a>", IDPoliza); // Msg.AppendFormat(@"<br/><br/><a class=""Texto"" target='_blank' href=""/Contabilidad/RegPoliza.aspx?IdPoliza={0}"">Ver Póliza</a>", IDPoliza);
} //}
ObjIE.Commit();
Msg.AppendFormat(@"<a class=""Texto"" target='_blank' href=""/Contabilidad/RegPrePoliza.aspx?CvePrePoliza={0}"">Ver Póliza</a><br/>", CvePrePoliza);
Msg.AppendFormat($"<a class='Texto' target='_blank' href='/Compras/PopUpVerFactura.aspx?P={Encripta($"OP=PREPO&CvePrePoliza={CvePrePoliza}")}'>Imprimir</a>");
} }
else else
{ {
@@ -619,9 +623,10 @@ public partial class Bancos_PagoAcreedor : ClsPaginas
if (MsgError.Equals("")) if (MsgError.Equals(""))
{ {
ObjIE.Commit();
if (Msg.ToString().Equals("")) if (Msg.ToString().Equals(""))
{ {
Msg.Append("El Documento se guardo correctamente"); Msg.Append("El Documento se guardo correctamente.<br/>");
} }
System.IO.FileInfo archivo = null; System.IO.FileInfo archivo = null;
@@ -651,11 +656,13 @@ public partial class Bancos_PagoAcreedor : ClsPaginas
// } // }
//} //}
if (IDPoliza > 0) //if (IDPoliza > 0)
{ //{
Msg.AppendFormat(@"<br/><br/><a class=""Texto"" target='_blank' href=""/Contabilidad/RegPoliza.aspx?IdPoliza={0}"">Ver Póliza</a>", IDPoliza); // Msg.AppendFormat(@"<br/><br/><a class=""Texto"" target='_blank' href=""/Contabilidad/RegPoliza.aspx?IdPoliza={0}"">Ver Póliza</a>", IDPoliza);
} //}
ObjIE.Commit(); Msg.AppendFormat(@"<a class=""Texto"" target='_blank' href=""/Contabilidad/RegPrePoliza.aspx?CvePrePoliza={0}"">Ver Póliza</a><br/>", CvePrePoliza);
Msg.AppendFormat($"<a class='Texto' target='_blank' href='/Compras/PopUpVerFactura.aspx?P={Encripta($"OP=PREPO&CvePrePoliza={CvePrePoliza}")}'>Imprimir</a>");
} }
else else
{ {

View File

@@ -311,12 +311,13 @@ public partial class Bancos_PagoDeudor : ClsPaginas
if (MsgError.Equals("")) if (MsgError.Equals(""))
{ {
ObjIE.Commit();
if (Msg.ToString().Equals("")) if (Msg.ToString().Equals(""))
{ {
Msg.Append("El Documento se guardo correctamente"); Msg.Append("El Documento se guardo correctamente.<br/>");
} }
System.IO.FileInfo archivo = null; System.IO.FileInfo archivo = null;
Msg.AppendFormat("<br/><br/> Folio: <a class='Texto' target='_blank' href='/Bancos/IE.aspx?CveIE={0}'>{1}</a><br/>", CveIE, TxtFolioPrestamo.Text.Trim()); Msg.AppendFormat("Folio: <a class='Texto' target='_blank' href='/Bancos/IE.aspx?CveIE={0}'>{1}</a><br/>", CveIE, TxtFolioPrestamo.Text.Trim());
if (DdlTipoTransaccionPrestamo.SelectedValue.ToEntero().Contiene(2, 8, 9)) if (DdlTipoTransaccionPrestamo.SelectedValue.ToEntero().Contiene(2, 8, 9))
{ {
@@ -335,7 +336,7 @@ public partial class Bancos_PagoDeudor : ClsPaginas
{ {
archivo = new System.IO.FileInfo(String.Format("{0}Formatos/ComprobanteEgreso.rdlc", UsuarioActual.Empresa.Ruta, DdlCuentaPrestamo.SelectedValue.ToEntero())); archivo = new System.IO.FileInfo(String.Format("{0}Formatos/ComprobanteEgreso.rdlc", UsuarioActual.Empresa.Ruta, DdlCuentaPrestamo.SelectedValue.ToEntero()));
} }
//if (archivo.Length > 0) //if (archivo.Length > 0)
//{ //{
// if (archivo.Exists) // if (archivo.Exists)
@@ -344,11 +345,13 @@ public partial class Bancos_PagoDeudor : ClsPaginas
// } // }
//} //}
if (IDPoliza > 0) //if (IDPoliza > 0)
{ //{
Msg.AppendFormat(@"<br/><br/><a class=""Texto"" target='_blank' href=""/Contabilidad/RegPoliza.aspx?IdPoliza={0}"">Ver Póliza</a>", IDPoliza); // Msg.AppendFormat(@"<br/><br/><a class=""Texto"" target='_blank' href=""/Contabilidad/RegPoliza.aspx?IdPoliza={0}"">Ver Póliza</a>", IDPoliza);
} //}
ObjIE.Commit(); Msg.AppendFormat(@"<a class=""Texto"" target='_blank' href=""/Contabilidad/RegPrePoliza.aspx?CvePrePoliza={0}"">Ver Póliza</a><br/>", CvePrePoliza);
Msg.AppendFormat($"<a class='Texto' target='_blank' href='/Compras/PopUpVerFactura.aspx?P={Encripta($"OP=PREPO&CvePrePoliza={CvePrePoliza}")}'>Imprimir</a>");
} }
else else
{ {
@@ -682,12 +685,13 @@ public partial class Bancos_PagoDeudor : ClsPaginas
if (MsgError.Equals("")) if (MsgError.Equals(""))
{ {
ObjIE.Commit();
if (Msg.ToString().Equals("")) if (Msg.ToString().Equals(""))
{ {
Msg.Append("El Documento se guardo correctamente"); Msg.Append("El Documento se guardo correctamente.<br/>");
} }
System.IO.FileInfo archivo = null; System.IO.FileInfo archivo = null;
Msg.AppendFormat("<br/><br/> Folio: <a class='Texto' target='_blank' href='/Bancos/IE.aspx?CveIE={0}'>{1}</a><br/>", CveIE, TxtFolio.Text.Trim()); Msg.AppendFormat("Folio: <a class='Texto' target='_blank' href='/Bancos/IE.aspx?CveIE={0}'>{1}</a><br/>", CveIE, TxtFolio.Text.Trim());
if (DdlTipoTransaccion.SelectedValue.ToEntero().Contiene(2, 8, 9)) if (DdlTipoTransaccion.SelectedValue.ToEntero().Contiene(2, 8, 9))
{ {
@@ -715,11 +719,13 @@ public partial class Bancos_PagoDeudor : ClsPaginas
// } // }
//} //}
if (IDPoliza > 0) //if (IDPoliza > 0)
{ //{
Msg.AppendFormat(@"<br/><br/><a class=""Texto"" target='_blank' href=""/Contabilidad/RegPoliza.aspx?IdPoliza={0}"">Ver Póliza</a>", IDPoliza); // Msg.AppendFormat(@"<br/><br/><a class=""Texto"" target='_blank' href=""/Contabilidad/RegPoliza.aspx?IdPoliza={0}"">Ver Póliza</a>", IDPoliza);
} //}
ObjIE.Commit(); Msg.AppendFormat(@"<a class=""Texto"" target='_blank' href=""/Contabilidad/RegPrePoliza.aspx?CvePrePoliza={0}"">Ver Póliza</a><br/>", CvePrePoliza);
Msg.AppendFormat($"<a class='Texto' target='_blank' href='/Compras/PopUpVerFactura.aspx?P={Encripta($"OP=PREPO&CvePrePoliza={CvePrePoliza}")}'>Imprimir</a>");
} }
else else
{ {