diff --git a/Bancos/PagoAcreedor.aspx.cs b/Bancos/PagoAcreedor.aspx.cs index 3b375e6ce..c357c01e4 100644 --- a/Bancos/PagoAcreedor.aspx.cs +++ b/Bancos/PagoAcreedor.aspx.cs @@ -397,9 +397,10 @@ public partial class Bancos_PagoAcreedor : ClsPaginas if (MsgError.Equals("")) { + ObjIE.Commit(); if (Msg.ToString().Equals("")) { - Msg.AppendFormat("El Documento se guardo correctamente. Folio {1}
", CveIE, ObjIE.Folio); + Msg.AppendFormat("El Documento se guardo correctamente.
Folio {1}
", CveIE, ObjIE.Folio); } //GUARDA COMPROBANTE @@ -435,11 +436,14 @@ public partial class Bancos_PagoAcreedor : ClsPaginas // } //} - if (IDPoliza > 0) - { - Msg.AppendFormat(@"

Ver Póliza", IDPoliza); - } - ObjIE.Commit(); + //if (IDPoliza > 0) + //{ + // Msg.AppendFormat(@"

Ver Póliza", IDPoliza); + //} + + Msg.AppendFormat(@"Ver Póliza
", CvePrePoliza); + Msg.AppendFormat($"Imprimir"); + } else { @@ -619,9 +623,10 @@ public partial class Bancos_PagoAcreedor : ClsPaginas if (MsgError.Equals("")) { + ObjIE.Commit(); if (Msg.ToString().Equals("")) { - Msg.Append("El Documento se guardo correctamente"); + Msg.Append("El Documento se guardo correctamente.
"); } System.IO.FileInfo archivo = null; @@ -651,11 +656,13 @@ public partial class Bancos_PagoAcreedor : ClsPaginas // } //} - if (IDPoliza > 0) - { - Msg.AppendFormat(@"

Ver Póliza", IDPoliza); - } - ObjIE.Commit(); + //if (IDPoliza > 0) + //{ + // Msg.AppendFormat(@"

Ver Póliza", IDPoliza); + //} + Msg.AppendFormat(@"Ver Póliza
", CvePrePoliza); + Msg.AppendFormat($"Imprimir"); + } else { diff --git a/Bancos/PagoDeudor.aspx.cs b/Bancos/PagoDeudor.aspx.cs index 020ac979b..5ca8a834f 100644 --- a/Bancos/PagoDeudor.aspx.cs +++ b/Bancos/PagoDeudor.aspx.cs @@ -311,12 +311,13 @@ public partial class Bancos_PagoDeudor : ClsPaginas if (MsgError.Equals("")) { + ObjIE.Commit(); if (Msg.ToString().Equals("")) { - Msg.Append("El Documento se guardo correctamente"); + Msg.Append("El Documento se guardo correctamente.
"); } System.IO.FileInfo archivo = null; - Msg.AppendFormat("

Folio: {1}
", CveIE, TxtFolioPrestamo.Text.Trim()); + Msg.AppendFormat("Folio: {1}
", CveIE, TxtFolioPrestamo.Text.Trim()); 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())); } - + //if (archivo.Length > 0) //{ // if (archivo.Exists) @@ -344,11 +345,13 @@ public partial class Bancos_PagoDeudor : ClsPaginas // } //} - if (IDPoliza > 0) - { - Msg.AppendFormat(@"

Ver Póliza", IDPoliza); - } - ObjIE.Commit(); + //if (IDPoliza > 0) + //{ + // Msg.AppendFormat(@"

Ver Póliza", IDPoliza); + //} + Msg.AppendFormat(@"Ver Póliza
", CvePrePoliza); + Msg.AppendFormat($"Imprimir"); + } else { @@ -682,12 +685,13 @@ public partial class Bancos_PagoDeudor : ClsPaginas if (MsgError.Equals("")) { + ObjIE.Commit(); if (Msg.ToString().Equals("")) { - Msg.Append("El Documento se guardo correctamente"); + Msg.Append("El Documento se guardo correctamente.
"); } System.IO.FileInfo archivo = null; - Msg.AppendFormat("

Folio: {1}
", CveIE, TxtFolio.Text.Trim()); + Msg.AppendFormat("Folio: {1}
", CveIE, TxtFolio.Text.Trim()); if (DdlTipoTransaccion.SelectedValue.ToEntero().Contiene(2, 8, 9)) { @@ -715,11 +719,13 @@ public partial class Bancos_PagoDeudor : ClsPaginas // } //} - if (IDPoliza > 0) - { - Msg.AppendFormat(@"

Ver Póliza", IDPoliza); - } - ObjIE.Commit(); + //if (IDPoliza > 0) + //{ + // Msg.AppendFormat(@"

Ver Póliza", IDPoliza); + //} + Msg.AppendFormat(@"Ver Póliza
", CvePrePoliza); + Msg.AppendFormat($"Imprimir"); + } else {