From 2c9f41b2598eac3ec4e1b3059f4063caec8d25de Mon Sep 17 00:00:00 2001 From: HECTOR RODRIGUEZ Date: Sat, 27 Mar 2021 09:47:38 -0700 Subject: [PATCH] Cambios en reportes --- Acumuladores/EntradasUsadosResumenRep.aspx.vb | 2 + Empresas/140/Formatos/RepEntradasUsados.rdlc | 188 ++++++++++++------ .../Grales/Formatos/RepSolicitudAnticipo.rdlc | 93 +++++---- OC/RepSolicitudesAnticipo.aspx.cs | 4 +- OI/TareaDetalle.aspx.cs | 14 +- 5 files changed, 181 insertions(+), 120 deletions(-) diff --git a/Acumuladores/EntradasUsadosResumenRep.aspx.vb b/Acumuladores/EntradasUsadosResumenRep.aspx.vb index c49ff177d..6a4077447 100644 --- a/Acumuladores/EntradasUsadosResumenRep.aspx.vb +++ b/Acumuladores/EntradasUsadosResumenRep.aspx.vb @@ -79,6 +79,8 @@ Partial Class Acumuladores_RepEntradasUsados params.Add(New ReportParameter("FechaFinal", txtFechaF.Text)) params.Add(New ReportParameter("Sucursal", "Sucursal")) params.Add(New ReportParameter("Almacen", DdlAlmacenes.SelectedItem.ToString)) + params.Add(New ReportParameter("UsuarioImprimio", UsuarioActual.Nombre)) + Dim rds As New ReportDataSource With {.Name = "DataSet1", .Value = DatosEntradasUsados} diff --git a/Empresas/140/Formatos/RepEntradasUsados.rdlc b/Empresas/140/Formatos/RepEntradasUsados.rdlc index c93143748..bf98f8441 100644 --- a/Empresas/140/Formatos/RepEntradasUsados.rdlc +++ b/Empresas/140/Formatos/RepEntradasUsados.rdlc @@ -1034,66 +1034,6 @@ 2pt - - true - true - - - - - =Parameters!FechaConFormato.Value - - - 2pt - 2pt - 2pt - 2pt - - - - true - true - - - - - =Globals!PageNumber - - - 2pt - 2pt - 2pt - 2pt - - true true @@ -1117,7 +1057,7 @@ 5.75736cm 0.6cm 10.1061cm - 5 + 3 @@ -1149,7 +1089,7 @@ 4.45435cm 0.54708cm 6.51432cm - 6 + 4 @@ -1168,12 +1108,12 @@ - 0.727cm + 1.01804cm true true - 0.12697cm + 0.12694cm 0.01325cm 0cm 20.90669cm @@ -1183,6 +1123,119 @@ + + true + true + + + + + Usuario imprimio: + + + + =Parameters!UsuarioImprimio.Value + + + + + + 2pt + 2pt + 2pt + 2pt + + + + true + true + + + + + Fecha impresión: + + + + =Parameters!FechaConFormato.Value + + + + + + 2pt + 2pt + 2pt + 2pt + + + + true + true + + + + + Pagina: + + + + =Globals!PageNumber + + + + PageNumber + 0.30333cm + 16.84241cm + 0.6cm + 4.00442cm + 3 + + + 2pt + 2pt + 2pt + 2pt + + - - true - true - - - - - =Parameters!AgrupadoPor.Value - HTML - - - - - - - Textbox1 - 0.07056cm - 0.06614cm - 0.58236cm - 19.58715cm - 1 - - - 2pt - 2pt - 2pt - 2pt - - - 0.79506in + 0.45131in @@ -912,7 +876,7 @@ 0.63528cm 2.40329cm 0.52945cm - 14.68354cm + 15.70187cm 1 + + true + true + + + + + =Parameters!AgrupadoPor.Value + HTML + + + + + + + Textbox3 + 2.31154cm + 0.06614cm + 0.6cm + 18.03902cm + 3 + + + 2pt + 2pt + 2pt + 2pt + + - Textbox3 + Textbox31 0.40041cm 16.97887cm 0.68085cm @@ -1209,7 +1209,6 @@ ReportParameter1 - es-MX Cm 40c94aad-a12a-44fb-ab0d-ea36a9656792 diff --git a/OC/RepSolicitudesAnticipo.aspx.cs b/OC/RepSolicitudesAnticipo.aspx.cs index 036073a1b..bed783754 100644 --- a/OC/RepSolicitudesAnticipo.aspx.cs +++ b/OC/RepSolicitudesAnticipo.aspx.cs @@ -161,7 +161,7 @@ public partial class OC_RepSolicitudesAnticipo : ClsPaginas String FechaF; if (txtFechaF.Text == "" || txtFechaF.Text == "__/__/____") { FechaF = ""; } else { FechaF = $" Fecha Final: {txtFechaF.Text}"; } String Proveedor; - if (DdlProveedores.SelectedValue != "-1") { Proveedor = $" Proveedor: {DdlProveedores.ddl.SelectedItem.Text}"; } else { Proveedor = ""; } + if (DdlProveedores.SelectedValue != "-1") { Proveedor = $" Proveedor: {DdlProveedores.SelectedText}"; } else { Proveedor = ""; } String Estatus; if (DdlEstatus.SelectedValue != "1") { Estatus = $" Estatus: {DdlEstatus.SelectedItem.Text}"; } else { Estatus = ""; } String Usuario; @@ -178,7 +178,7 @@ public partial class OC_RepSolicitudesAnticipo : ClsPaginas para.Add(new ReportParameter("UsuarioImprimio", UsuarioActual.Nombre)); para.Add(new ReportParameter("Estatus", DdlEstatus.SelectedValue)); String Agrupadores = $"{Proveedor}{FechaI}{FechaF}{Estatus}{Usuario}{SubProyectos}"; - para.Add(new ReportParameter("AgrupadoPor", (Agrupadores == "" ? "": $" {Agrupadores}"))); + para.Add(new ReportParameter("AgrupadoPor", (Agrupadores == "" ? "": $" {Agrupadores}"))); if (Imagen.Exists) { para.Add(new ReportParameter("LogoPath", logouri)); diff --git a/OI/TareaDetalle.aspx.cs b/OI/TareaDetalle.aspx.cs index 2527b77db..58b263e8c 100644 --- a/OI/TareaDetalle.aspx.cs +++ b/OI/TareaDetalle.aspx.cs @@ -139,7 +139,7 @@ public partial class OI_TareaDetalle : ClsPaginas } private void Setpermisos() { - bool permisedestatus = (CveEventoEstatus > 1 && CveEventoEstatus < 4); + bool permisedestatus = (CveEventoEstatus < 4); bool esmiembro = UsuarioActual.CveUsuario.Contiene(LCveUsuarioCCP.ToArray()); bool esdeel = UsuarioActual.CveUsuario == CveUsuarioDe; bool esPara = UsuarioActual.CveUsuario == CveUsuarioPara; @@ -467,7 +467,7 @@ public partial class OI_TareaDetalle : ClsPaginas int CveOS = drow["CveOS"].ToString().ToEntero(); int CveOC = drow["CveOC"].ToString().ToEntero(); int CveContrato = drow["CveContrato"].ToString().ToEntero(); - //int CveSubProyecto = drow["CveSubProyecto"].ToString().ToEntero(); + int CveSubProyecto = drow["CveSubProyecto"].ToString().ToEntero(); int CveMovimientoAlmacen = drow["CveMovimientoAlmacen"].ToString().ToEntero(); //int = drow[""].ToString().ToEntero(); @@ -534,11 +534,11 @@ public partial class OI_TareaDetalle : ClsPaginas titulo = "Contrato"; link = string.Format("{0} ", drow["Contrato"], CveContrato); } - //else if (CveSubProyecto > 0) - //{ - // titulo = "Sub Proyecto"; - // link = string.Format("{0} ", drow["SubProyecto"], CveSubProyecto); - //} + else if (CveSubProyecto > 0) + { + titulo = "Sub Proyecto"; + link = string.Format("{0} ", drow["SubProyecto"], CveSubProyecto); + } else if (CveMovimientoAlmacen > 0) { titulo = "Almacen";