diff --git a/App_Code/ClsCRM.vb b/App_Code/ClsCRM.vb index f3a33b7eb..33a97cb1a 100644 --- a/App_Code/ClsCRM.vb +++ b/App_Code/ClsCRM.vb @@ -822,6 +822,20 @@ Public Class ClsCRM End Try Return Retorno End Function + Public Function GetAcercamientosGastos(CveAcercamiento As Integer) As Boolean + Dim Retorno As Boolean = False + DataAdapter("PA_CRM_AcercamientosGastosGet") + With SqlAdapter.SelectCommand.Parameters + .Add("@CveAcercamiento", SqlDbType.Int).Value = CveAcercamiento + End With + Try + SqlAdapter.Fill(Data) + Retorno = True + Catch ex As Exception + OnError("Ocurrió un error al obtener los Gastos del Acercamiento.", ex, SqlAdapter.SelectCommand.Parameters.ParametrosInfo()) + End Try + Return Retorno + End Function #End Region diff --git a/CRM/Acercamiento.aspx b/CRM/Acercamiento.aspx index e60f298e0..03d84df03 100644 --- a/CRM/Acercamiento.aspx +++ b/CRM/Acercamiento.aspx @@ -757,6 +757,55 @@ + + +
+
+
+
+
+ + GASTOS +
+<%--
+
+ + + + + +
+
--%> +
+
+
+ " style="display: inline-block; margin-right: -20px; width: 150px;" /> + " style="margin-top: -3px;" class="btn btn-circle btn-sm label-info"> +
+
+ + + + + <%----%> + + + + + + + + +
+
+
+
+
+
+
+ diff --git a/CRM/Acercamiento.aspx.cs b/CRM/Acercamiento.aspx.cs index fc97d5b46..39b9a8e20 100644 --- a/CRM/Acercamiento.aspx.cs +++ b/CRM/Acercamiento.aspx.cs @@ -219,8 +219,15 @@ public partial class CRM_Acercamiento : ClsPaginas InicializaDatos(); CargaDatos(); CargaCotizaciones(); + CargaGastos(); CargaRechazosMotivos(); + if (UsuarioActual.CveEmpresa == 72) + { + TabDatosTecnicos.Visible = false; + TabImagenes.Visible = false; + } + if (CveAcercamiento > 0) { CargaEtapasBitacora(); @@ -502,7 +509,7 @@ public partial class CRM_Acercamiento : ClsPaginas } else { - DdlEtapaProceso.DataSource = DTEtapasProceso.FiltraParametros(String.Format("( Orden >= {0} ) AND ( Orden <= {1} )", (OrdenEtapaActual - 1), (OrdenEtapaActual + 1))); + DdlEtapaProceso.DataSource = DTEtapasProceso.FiltraParametros(String.Format("(( Orden >= {0} ) AND ( Orden <= {1} )) OR (Orden = 6)", (OrdenEtapaActual - 1), (OrdenEtapaActual + 1))); } } ObjCRM.Dispose(); @@ -1473,4 +1480,18 @@ public partial class CRM_Acercamiento : ClsPaginas } } #endregion + + #region "TAB GASTOS" + protected void CargaGastos() + { + ClsCRM ObjCRM = new ClsCRM(); + if (ObjCRM.GetAcercamientosGastos(CveAcercamiento)) + { + GvGastos.DataSource = ObjCRM.DtResultados; + } + ObjCRM.Dispose(); + GvGastos.DataBind(); + UpGastos.Update(); + } + #endregion } \ No newline at end of file