From f6d3c445887becfa002035ac9fbc7a8f4be134a3 Mon Sep 17 00:00:00 2001 From: Antonio Gonzalez Date: Wed, 6 May 2020 08:50:14 -0700 Subject: [PATCH] correcciones en CRM --- CRM/CatEmpresasCRM.aspx | 5 + CRM/CatEmpresasCRM.aspx.cs | 22 +- CRM/CatProbabilidadAcercamiento.aspx.cs | 2 +- CRM/EmpresaCRM.aspx | 5 + CRM/EmpresaCRM.aspx.cs | 20 +- .../Grales/Formatos/RepCatEtapasProceso.rdlc | 12 +- .../RepCatProbabilidadAcercamiento.rdlc | 232 +++++++++--------- 7 files changed, 175 insertions(+), 123 deletions(-) diff --git a/CRM/CatEmpresasCRM.aspx b/CRM/CatEmpresasCRM.aspx index 7095cee60..c4391eec7 100644 --- a/CRM/CatEmpresasCRM.aspx +++ b/CRM/CatEmpresasCRM.aspx @@ -28,6 +28,11 @@
+ +
+ + +
diff --git a/CRM/CatEmpresasCRM.aspx.cs b/CRM/CatEmpresasCRM.aspx.cs index ad32655d5..9f8de821c 100644 --- a/CRM/CatEmpresasCRM.aspx.cs +++ b/CRM/CatEmpresasCRM.aspx.cs @@ -29,6 +29,7 @@ public partial class CRM_CatEmpresasCRM : ClsPaginas { if (!IsPostBack) { + CargaTipoProcesos(); CargaMediosCaptacion(); CargaDatos(); } @@ -60,12 +61,22 @@ public partial class CRM_CatEmpresasCRM : ClsPaginas if (ObjCRM.GetMedioCaptacion(UsuarioActual.CveEmpresa, 1)) { - DdlMedioCaptacion.DataSource = ObjCRM.DtResultados; + DdlMedioCaptacion.DataSource = ObjCRM.DtResultados.FiltraParametros(String.Format("CveTipoProceso = {0}",DdlTipoProceso.SelectedValue)); DdlMedioCaptacion.DataBind(); - DdlMedioCaptacion.Items.Insert(0, new ListItem("Todos ", "-1")); } ObjCRM.Dispose(); } + + protected void CargaTipoProcesos() + { + ClsCRM ObjCRM = new ClsCRM(); + + if (ObjCRM.GetTipoProceso(UsuarioActual.CveEmpresa)) + { + DdlTipoProceso.DataSource = ObjCRM.DtResultados; + } + DdlTipoProceso.DataBind(); + } #endregion #region "ACCIONES - GRIEDVIEW" @@ -106,4 +117,11 @@ public partial class CRM_CatEmpresasCRM : ClsPaginas } } #endregion + + protected void DdlTipoProcesos_Change(Object sender, EventArgs e) + { + DdlMedioCaptacion.Items.Clear(); + CargaMediosCaptacion(); + UPFiltros.Update(); + } } \ No newline at end of file diff --git a/CRM/CatProbabilidadAcercamiento.aspx.cs b/CRM/CatProbabilidadAcercamiento.aspx.cs index 00d6462c7..2997bba1e 100644 --- a/CRM/CatProbabilidadAcercamiento.aspx.cs +++ b/CRM/CatProbabilidadAcercamiento.aspx.cs @@ -254,6 +254,6 @@ public partial class CRM_CatProbabilidadAcercamiento : ClsPaginas param.Add(new ReportParameter("UsuarioImprimio", UsuarioActual.Nombre)); param.Add(new ReportParameter("FechaImpresion", DateTime.Now.ToString())); - ImprimirPDF("Empresas/Grales/Formatos/RepCatProbabilidadAcercamiento.rdlc", TmpDT, param, "Report Cat Etapas Proceso", formato); + ImprimirPDF("Empresas/Grales/Formatos/RepCatProbabilidadAcercamiento.rdlc", TmpDT, param, "Report Cat Probabilidad Acercamiento", formato); } } \ No newline at end of file diff --git a/CRM/EmpresaCRM.aspx b/CRM/EmpresaCRM.aspx index a0c86e7ed..e136089ec 100644 --- a/CRM/EmpresaCRM.aspx +++ b/CRM/EmpresaCRM.aspx @@ -87,6 +87,11 @@
+
+ + +
+
diff --git a/CRM/EmpresaCRM.aspx.cs b/CRM/EmpresaCRM.aspx.cs index e99b406e2..1ecfcadff 100644 --- a/CRM/EmpresaCRM.aspx.cs +++ b/CRM/EmpresaCRM.aspx.cs @@ -225,6 +225,7 @@ public partial class CRM_EmpresaCRM : ClsPaginas { CreoCliente = false; RecuperaCve(); + CargaTipoProceso(); CargaMetodosCaptacion(); CargaVendedores(); CargaSucursales(); @@ -548,12 +549,22 @@ public partial class CRM_EmpresaCRM : ClsPaginas CveContactoEditado = -1; } + protected void CargaTipoProceso() + { + ClsCRM ObjCRM = new ClsCRM(); + if (ObjCRM.GetTipoProceso(UsuarioActual.CveEmpresa)) + { + DdlTipoPrceso2.DataSource = ObjCRM.DtResultados; + } + DdlTipoPrceso2.DataBind(); + } + protected void CargaMetodosCaptacion() { ClsCRM ObjCRM = new ClsCRM(); if (ObjCRM.GetMedioCaptacion(UsuarioActual.CveEmpresa, 1)) { - DdlMedioCaptacion.DataSource = ObjCRM.DtResultados; + DdlMedioCaptacion.DataSource = ObjCRM.DtResultados.FiltraParametros(String.Format("CveTipoProceso = {0}", DdlTipoPrceso2.SelectedValue)); DdlMedioCaptacion.Items.Insert(0, new ListItem("Seleccione ", "-1")); DdlMedioCaptacionAcercamiento.Items.Clear(); DdlMedioCaptacionAcercamiento.DataSource = ObjCRM.DtResultados; @@ -1507,4 +1518,11 @@ public partial class CRM_EmpresaCRM : ClsPaginas Mail.SendMail(ClsPaginas.EmpresaNotificaciones, correoVendedor, Asunto,body); } } + + protected void DdlTipoProcesos_Change(Object sender, EventArgs e) + { + DdlMedioCaptacion.Items.Clear(); + CargaMetodosCaptacion(); + UpDatos.Update(); + } } \ No newline at end of file diff --git a/Empresas/Grales/Formatos/RepCatEtapasProceso.rdlc b/Empresas/Grales/Formatos/RepCatEtapasProceso.rdlc index c20511759..d738cd3d9 100644 --- a/Empresas/Grales/Formatos/RepCatEtapasProceso.rdlc +++ b/Empresas/Grales/Formatos/RepCatEtapasProceso.rdlc @@ -471,7 +471,9 @@ - Orden @@ -964,10 +966,13 @@ =Parameters!FechaImpresion.Value - Textbox11 @@ -1117,9 +1122,8 @@ ReportParameter1 - String + DateTime true - true ReportParameter1 diff --git a/Empresas/Grales/Formatos/RepCatProbabilidadAcercamiento.rdlc b/Empresas/Grales/Formatos/RepCatProbabilidadAcercamiento.rdlc index fb6193ac7..cddde8146 100644 --- a/Empresas/Grales/Formatos/RepCatProbabilidadAcercamiento.rdlc +++ b/Empresas/Grales/Formatos/RepCatProbabilidadAcercamiento.rdlc @@ -18,6 +18,9 @@ 5.89659cm + + 4.7613cm + 1.60341cm @@ -27,9 +30,6 @@ 4.01284cm - - 4.7613cm - @@ -82,6 +82,53 @@ + + + + true + true + + + + + Tipo Proceso + + + + + + + Textbox4 + + + + Black + + + Black + + + + + + + + 2pt + 2pt + 2pt + 2pt + + + + @@ -223,53 +270,6 @@ - - - - true - true - - - - - Tipo Proceso - - - - - - - Textbox21 - - - - Black - - - Black - - - - - - - - 2pt - 2pt - 2pt - 2pt - - - - @@ -306,6 +306,37 @@ + + + + true + true + + + + + =Fields!TipoProceso.Value + + + + + + 2pt + 2pt + 2pt + 2pt + + + + @@ -402,37 +433,6 @@ - - - - true - true - - - - - =Fields!TipoProceso.Value - - - - - - 2pt - 2pt - 2pt - 2pt - - - - @@ -599,7 +599,7 @@ - 0.79374cm + 0.87322cm true true @@ -710,38 +710,6 @@ 2pt - - true - true - - - - - =Parameters!FechaImpresion.Value - - - - - - 2pt - 2pt - 2pt - 2pt - - true true @@ -766,6 +734,41 @@ 18.00281cm 0.36335cm 2.06587cm + 4 + + + 2pt + 2pt + 2pt + 2pt + + + + true + true + + + + + =Today + + + + + + + Textbox8 + 0.2202cm + 9.89924cm + 0.37041cm + 2.5cm 5