From 7f2e786df37c3fc3ac8445fd893f2457256d3fd6 Mon Sep 17 00:00:00 2001 From: rrene Date: Wed, 27 Apr 2022 14:00:37 -0700 Subject: [PATCH] =?UTF-8?q?--=20cambio=20en=20texto=20de=20cancelaci=C3=B3?= =?UTF-8?q?n?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Ventas/RepCancelacionesPorRespuesta.aspx | 15 ++++++++++----- Ventas/RepCancelacionesPorRespuesta.aspx.cs | 13 +++++++++++-- 2 files changed, 21 insertions(+), 7 deletions(-) diff --git a/Ventas/RepCancelacionesPorRespuesta.aspx b/Ventas/RepCancelacionesPorRespuesta.aspx index a159d3b16..8e7c92dde 100644 --- a/Ventas/RepCancelacionesPorRespuesta.aspx +++ b/Ventas/RepCancelacionesPorRespuesta.aspx @@ -70,7 +70,7 @@ - + @@ -121,21 +121,26 @@ - +
- +
- +
- + + + + + + diff --git a/Ventas/RepCancelacionesPorRespuesta.aspx.cs b/Ventas/RepCancelacionesPorRespuesta.aspx.cs index e86360122..69b5c4009 100644 --- a/Ventas/RepCancelacionesPorRespuesta.aspx.cs +++ b/Ventas/RepCancelacionesPorRespuesta.aspx.cs @@ -77,6 +77,7 @@ public partial class Ventas_RepCancelacionesPorRespuesta : ClsPaginas GvRefacturaciones.DataSource = DtRefacturar; GvRefacturaciones.DataBind(); } + GvDatos.DataBind(); UPDatos.Update(); @@ -569,11 +570,19 @@ public partial class Ventas_RepCancelacionesPorRespuesta : ClsPaginas { if (e.Row.RowType == DataControlRowType.DataRow) { - if (e.Row.DBCampo("PuedeRefacturar").ToString().ToEntero() == 0 || !string.IsNullOrEmpty(e.Row.DBCampo("FolioFiscalSustitucion").ToString())) + GridView gv = (GridView)sender; + if (!(e.Row.DBCampo("PuedeRefacturar").ToString().ToEntero() == 0 || !string.IsNullOrEmpty(e.Row.DBCampo("FolioFiscalSustitucion").ToString()))) { - e.Row.Cells[12].Text = ""; + e.Row.FCHyperLink("HplRefact").NavigateUrl = string.Format("/Ventas/Ventas.aspx?CveDevolucion={0}&NuevaFactura=1", e.Row.DBCampo("CveVenta")); + e.Row.FCHyperLink("HplRefact").Visible = true; } + if (e.Row.DBCampo("CveEstatusRefacturacion") == "4" && gv.ID=="GvDatos") + { + e.Row.FCLinkButton("BtnValidar").Text= "02"; + } + // + //if (e.Row.DBCampo("PuedeRefacturar").ToString().ToEntero() == 1 && e.Row.DBCampo("CveEstatusFactura").ToString().ToEntero() == 23) //{ // e.Row.FCLinkButton("LnkValidarRefac").Visible = false;