From 35c4d4876eaad73ff90e73809193650a7216023d Mon Sep 17 00:00:00 2001 From: rrene Date: Tue, 8 Feb 2022 19:26:44 -0700 Subject: [PATCH] =?UTF-8?q?se=20agreg=C3=B3=20columna=20AplicaCP,=20liga?= =?UTF-8?q?=20a=20mov=20de=20almacen?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Inventarios/RepEntregaAlmacenRuta.aspx | 59 ++++++++++++++++++----- Inventarios/RepEntregaAlmacenRuta.aspx.cs | 23 +++++---- 2 files changed, 59 insertions(+), 23 deletions(-) diff --git a/Inventarios/RepEntregaAlmacenRuta.aspx b/Inventarios/RepEntregaAlmacenRuta.aspx index f2d14a180..22b756e5f 100644 --- a/Inventarios/RepEntregaAlmacenRuta.aspx +++ b/Inventarios/RepEntregaAlmacenRuta.aspx @@ -99,7 +99,7 @@ " style="margin-top: -3px;" class="btn btn-circle btn-sm label-info"> @@ -108,17 +108,42 @@ + + + + + + + + + - - + + + - - - - - + + + + + + + + + + + + + + - + + + + + + + @@ -126,6 +151,8 @@ + + @@ -133,13 +160,19 @@ + + + + + + + + + - - - - + diff --git a/Inventarios/RepEntregaAlmacenRuta.aspx.cs b/Inventarios/RepEntregaAlmacenRuta.aspx.cs index 4e57dc105..1d2ff4eec 100644 --- a/Inventarios/RepEntregaAlmacenRuta.aspx.cs +++ b/Inventarios/RepEntregaAlmacenRuta.aspx.cs @@ -324,7 +324,7 @@ public partial class General_RepEntregaAlmacenRuta : ClsPaginas { TxtFechaI.Text = DateTime.Now.AddDays(-1).ToString("dd/MM/yyyy"); - TxtFechaF.Text = DateTime.Now.ToString("dd/MM/yyyy"); + TxtFechaF.Text = DateTime.Now.AddDays(3).ToString("dd/MM/yyyy"); } #endregion @@ -634,23 +634,26 @@ public partial class General_RepEntregaAlmacenRuta : ClsPaginas if (bool.Parse(e.Row.DataKey("AplicaCP"))) { - e.Row.Cells[10].Text = ""; + if (e.Row.FCHyperLink("HplPDF") != null) + e.Row.FCHyperLink("HplPDF").NavigateUrl = "/Compras/PopUpVerFactura.aspx?P=" + Extensiones.ModExtensiones.Encripta(String.Format("OP=CARPOTIMBRE&CVETIMBRE={0}", e.Row.DataKey("CveTimbre"))) ; } else { - e.Row.Cells[10].Text = ""; + if (e.Row.FCHyperLink("HplPDF")!= null) + e.Row.FCHyperLink("HplPDF").NavigateUrl = "/Compras/PopUpVerFactura.aspx?P=" + Extensiones.ModExtensiones.Encripta(String.Format("OP=CARPO&CVETIMBRE={0}", e.Row.DataKey("CveTimbre"))); } - string ArchivoXML = String.Format("{0}/XML/{1}/{2}.xml", UsuarioActual.Empresa.Ruta, e.Row.DataKey("TimbreTipoDocto"), e.Row.DataKey("SerieFolio")); + //string ArchivoXML = String.Format("{0}/XML/{1}/{2}.xml", UsuarioActual.Empresa.Ruta, e.Row.DataKey("TimbreTipoDocto"), e.Row.DataKey("SerieFolio")); - if (File.Exists(ArchivoXML)) - { - e.Row.Cells[11].Text = ""; - } + //if (File.Exists(ArchivoXML)) + //{ + // e.Row.Cells[12].Text = ""; + //} - }else + } + else { - e.Row.Cells[10].Text = ""; + e.Row.Cells[11].Text = ""; } if (e.Row.DataKey("Estatus").ToEntero() == 2)