From fee2367eec8506d886ff0c8145c933e151d96b9e Mon Sep 17 00:00:00 2001 From: Luis Carlos Quijada Date: Thu, 3 Jul 2025 18:36:26 -0600 Subject: [PATCH 1/3] Cambios Importaciones RepExportaciones --- Export/RepExportaciones.aspx | 4 +-- Export/RepExportaciones.aspx.cs | 56 +++++++++++++++++++++++++++++---- 2 files changed, 52 insertions(+), 8 deletions(-) diff --git a/Export/RepExportaciones.aspx b/Export/RepExportaciones.aspx index b8f405ae6..10ceb0b76 100644 --- a/Export/RepExportaciones.aspx +++ b/Export/RepExportaciones.aspx @@ -6,7 +6,7 @@ - Exportaciones +
  • @@ -45,7 +45,7 @@
    - + diff --git a/Export/RepExportaciones.aspx.cs b/Export/RepExportaciones.aspx.cs index 3ee4b2c68..883250892 100644 --- a/Export/RepExportaciones.aspx.cs +++ b/Export/RepExportaciones.aspx.cs @@ -25,6 +25,8 @@ public partial class Export_RepExportaciones : ClsPaginas set { ViewState["CveExportacion"] = value; } } + public string EmptyDataTextPersonalizado { get; set; } + public string ToolTipPersonalizado { get; set; } private bool EsImportacion { get{ return (ViewState["EsImportacion"] == null) ? false : Boolean.Parse(ViewState["EsImportacion"].ToString()); } @@ -35,14 +37,35 @@ public partial class Export_RepExportaciones : ClsPaginas { if (!IsPostBack) { + // Primero, inicializa la bandera EsImportacion = false; - - if (Request["Opcion"] != null) + if (Request["Opcion"] != null && Request["Opcion"] == "I") { - if (Request["Opcion"] == "I") EsImportacion = true; } - LtlPeriodoseleccionado.Text = EsImportacion ? "Importaciones" : "Exportaciones"; + + Page.Title = EsImportacion ? "Importaciones" : "Exportaciones"; + // Ahora sí, usa la bandera para los textos + if (EsImportacion) + { + LtlTitulo.Text = "Importaciones"; + EmptyDataTextPersonalizado = "No se encontraron importaciones"; + ToolTipPersonalizado = "Importaciones"; + HLAgregarExp.Text = " Agregar Importación"; + HLAgregarExp.NavigateUrl = "ExpDetalle.aspx?CveExportacion=-1&Opcion=I"; + } + else + { + LtlTitulo.Text = "Exportaciones"; + EmptyDataTextPersonalizado = "No se encontraron exportaciones"; + ToolTipPersonalizado = "Exportaciones"; + HLAgregarExp.Text = " Agregar Exportación"; + HLAgregarExp.NavigateUrl = "ExpDetalle.aspx?CveExportacion=-1"; + } + + GVExportaciones.EmptyDataText = EmptyDataTextPersonalizado; + GVExportaciones.ToolTip = ToolTipPersonalizado; + CargaExportaciones(); } } @@ -61,7 +84,11 @@ public partial class Export_RepExportaciones : ClsPaginas protected void EditarExp_Click(object sender, EventArgs e) { GridViewRow gvRow = (GridViewRow)(((LinkButton)sender).NamingContainer); - Response.Redirect($"/Export/ExpDetalle.aspx?CveExportacion={gvRow.DataKey("CveExportacion")}", true); + string cve = gvRow.DataKey("CveExportacion").ToString(); + string url = EsImportacion + ? $"/Export/ExpDetalle.aspx?CveExportacion={cve}&Opcion=I" + : $"/Export/ExpDetalle.aspx?CveExportacion={cve}"; + Response.Redirect(url, true); upDatosExp.Update(); } protected void EliminarExp_Click(object sender, EventArgs e) @@ -76,4 +103,21 @@ public partial class Export_RepExportaciones : ClsPaginas Alert("La Exportación se ha eliminado correctamente."); } } -} \ No newline at end of file + + protected void GVExportaciones_RowDataBound(object sender, GridViewRowEventArgs e) + { + if (e.Row.RowType == DataControlRowType.DataRow) + { + HyperLink hl = (HyperLink)e.Row.FindControl("HlExpDetalle"); + if (hl != null) + { + string cve = DataBinder.Eval(e.Row.DataItem, "CveExportacion").ToString(); + if (EsImportacion) + hl.NavigateUrl = $"ExpDetalle.aspx?CveExportacion={cve}&Opcion=I"; + else + hl.NavigateUrl = $"ExpDetalle.aspx?CveExportacion={cve}"; + } + } + } +} + From 635f757742eccb94968ba584e1ef4eaa8b1d63a2 Mon Sep 17 00:00:00 2001 From: Oscar Irigoyen Date: Fri, 4 Jul 2025 10:20:03 -0700 Subject: [PATCH 2/3] Correcion Pago electronico grupus trim observacion --- Bancos/PagoElectronicoGrupos.aspx.vb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Bancos/PagoElectronicoGrupos.aspx.vb b/Bancos/PagoElectronicoGrupos.aspx.vb index ac144efca..981d83af1 100644 --- a/Bancos/PagoElectronicoGrupos.aspx.vb +++ b/Bancos/PagoElectronicoGrupos.aspx.vb @@ -2037,15 +2037,15 @@ Partial Class Bancos_PagoElectronicoGrupos 'Motivo de pago If drow("Observaciones").ToString.Trim.Length > 30 Then - RegistrosPago.Append(drow("Observaciones").ToString.Substring(0, 30)) + RegistrosPago.Append(drow("Observaciones").ToString.Trim.Substring(0, 30)) Else - RegistrosPago.Append(drow("Observaciones").ToString.PadRight(30, EspacioRelleno)) + RegistrosPago.Append(drow("Observaciones").ToString.Trim.PadRight(30, EspacioRelleno)) End If If drow("Referencia").ToString.Trim.Length > 7 Then - RegistrosPago.Append(drow("Referencia").ToString.Substring(0, 7)) + RegistrosPago.Append(drow("Referencia").ToString.Trim.Substring(0, 7)) Else - RegistrosPago.Append(drow("Referencia").ToString.PadRight(7, EspacioRelleno)) + RegistrosPago.Append(drow("Referencia").ToString.Trim.PadRight(7, EspacioRelleno)) End If RegistrosPago.Append("H") From a6694558fc270e9d4e5974bc046052fae6fd00fa Mon Sep 17 00:00:00 2001 From: Luis Carlos Quijada Date: Fri, 4 Jul 2025 16:40:21 -0600 Subject: [PATCH 3/3] Cambios ExpDetalle --- Export/ExpDetalle.aspx | 317 ++++++++++++++++++++------------------ Export/ExpDetalle.aspx.cs | 13 +- 2 files changed, 181 insertions(+), 149 deletions(-) diff --git a/Export/ExpDetalle.aspx b/Export/ExpDetalle.aspx index cd4946771..fe76aeaae 100644 --- a/Export/ExpDetalle.aspx +++ b/Export/ExpDetalle.aspx @@ -1,23 +1,22 @@ <%@ Page Title="" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true" CodeFile="ExpDetalle.aspx.cs" Inherits="Export_ExpDetalle" %> - + - + - - Exportación: - + + - +
  • Exportar PDF
  • - + - + - +
    @@ -41,7 +40,7 @@ - +
    @@ -65,7 +64,7 @@
    Fecha de Pedimento: -
    - - - - - - - - - - - - - - -
    +
    + + + + + + + + + + + + + + +
    @@ -155,7 +154,7 @@
    -
    +
    @@ -200,7 +199,7 @@
    -
    +
    @@ -220,7 +219,7 @@
    - +
    @@ -253,7 +252,7 @@
    -
    +
    @@ -291,7 +290,7 @@
    -
    +
    @@ -337,7 +336,7 @@
    -
    +
    @@ -390,7 +389,7 @@
    -
    +
    @@ -446,7 +445,7 @@
    -
    +
    @@ -465,7 +464,7 @@
    -
    +
    @@ -533,7 +532,7 @@
    -
    +
    @@ -613,7 +612,7 @@ - +

    @@ -638,14 +637,19 @@ - + - + - + - + + + + + + @@ -679,14 +683,31 @@ - + - - - - - - + + +   + + @@ -710,115 +731,115 @@