This commit is contained in:
@@ -4283,12 +4283,11 @@ Public Class ClsPaginas
|
||||
PaginaDict.Add("/CRM/CatProbabilidadAcercamiento.aspx".ToUpper(), 1306)
|
||||
'PaginaDict.Add("/CRM/Acercamiento.aspx".ToUpper(), 1308)
|
||||
PaginaDict.Add("/CRM/Acercamiento.aspx".ToUpper(), 1305)
|
||||
PaginaDict.Add("/CRM/RepAcercamientosEtapas.aspx".ToUpper(), 1310)
|
||||
PaginaDict.Add("/CRM/RepAcercamientos.aspx".ToUpper(), 1311)
|
||||
PaginaDict.Add("/CRM/PopUpBuscarAcercamiento.aspx".ToUpper(), 1312)
|
||||
PaginaDict.Add("/CRM/RepAcercamientosProcesos.aspx".ToUpper(), 1313)
|
||||
PaginaDict.Add("/CRM/RepAcercamientosRechazos.aspx".ToUpper(), 1314)
|
||||
PaginaDict.Add("/CRM/RepAcercamientosProcesosDetalle.aspx".ToUpper(), 758)
|
||||
PaginaDict.Add("/CRM/RepAcercamientosProcesosDetalle.aspx".ToUpper(), 1313)
|
||||
PaginaDict.Add("/CRM/CatMetas.aspx".ToUpper(), 684)
|
||||
#End Region
|
||||
#Region "CxC"
|
||||
|
||||
@@ -3,6 +3,31 @@
|
||||
<asp:Content ID="Content1" ContentPlaceHolderID="CP" Runat="Server">
|
||||
</asp:Content>
|
||||
<asp:Content ID="Content2" ContentPlaceHolderID="Css" Runat="Server">
|
||||
<style>
|
||||
.Filtros {
|
||||
padding: 10px;
|
||||
background-color: #C3C3C3;
|
||||
}
|
||||
|
||||
.Filtros label, .Filtros .form-group.form-md-line-input .form-control ~ label {
|
||||
color: #fff;
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.form-group.form-md-line-input .form-control {
|
||||
background-color: #fff;
|
||||
}
|
||||
|
||||
.GVRep tr td a {
|
||||
display: block;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
#chartdiv {
|
||||
width: 100%;
|
||||
height: 500px;
|
||||
}
|
||||
</style>
|
||||
</asp:Content>
|
||||
<asp:Content ID="Content3" ContentPlaceHolderID="E" Runat="Server">
|
||||
Reporte Detalle de los Acercamientos Procesos
|
||||
@@ -23,11 +48,106 @@
|
||||
|
||||
<asp:UpdatePanel ID="upDatosRepA" runat ="server" UpdateMode="Conditional" >
|
||||
<ContentTemplate>
|
||||
|
||||
<div class="Filtros portlet solid grey-cascade portlet-filter">
|
||||
<div class="row">
|
||||
<div class="col-md-2" style="width: 85%">
|
||||
<div class="row">
|
||||
<div class="col-sm-3" style="width: 25%">
|
||||
<div class="form-group form-md-line-input input-iconright">
|
||||
<asp:DropDownList ID="DdlTipoProceso" runat="server" DataTextField="TipoProceso" DataValueField="CveTipoProceso" CssClass="form-control input-sm select2me Widthall" OnSelectedIndexChanged="DdlTipoProceso_Change" AutoPostBack="true" Width="100%"></asp:DropDownList>
|
||||
<asp:Label runat="server" Text="Proceso:" AssociatedControlID="DdlTipoProceso"></asp:Label>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-3" style="width: 25%">
|
||||
<div class="form-group form-md-line-input input-iconright">
|
||||
<asp:DropDownList ID="DdlVendedor" runat="server" DataTextField="Vendedor" DataValueField="CveVendedor" CssClass="form-control input-sm select2me Widthall" Width="100%"></asp:DropDownList>
|
||||
<asp:Label runat="server" Text="Vendedor:" AssociatedControlID="DdlVendedor"></asp:Label>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-3" style="width: 25%">
|
||||
<div class="form-group form-md-line-input input-iconright">
|
||||
<asp:DropDownList ID="DdlMedioCaptacion" runat="server" DataTextField="MedioCaptacion" DataValueField="CveMedioCaptacion" CssClass="form-control input-sm select2me Widthall" Width="100%"></asp:DropDownList>
|
||||
<asp:Label runat="server" Text="Medio de Captación:" AssociatedControlID="DdlMedioCaptacion"></asp:Label>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-2" style="width: 25%">
|
||||
<div class="form-group form-md-line-input input-iconright">
|
||||
<asp:DropDownList ID="DdlProbabilidad" runat="server" DataTextField="ProbabilidadAcercamiento" DataValueField="CveProbabilidadAcercamiento" CssClass="form-control input-sm select2me Widthall" Width="100%"></asp:DropDownList>
|
||||
<asp:Label runat="server" Text="Probabilidad:" AssociatedControlID="DdlProbabilidad"></asp:Label>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
|
||||
<div class="col-md-2" style="padding-left: 15px; width: 25%;display:none">
|
||||
<div class="form-group form-md-line-input input-iconright" style="width: 100%">
|
||||
<asp:DropDownList ID="DdlGrupo1" runat="server" CssClass="form-control input-sm select2me Widthall" Width="100%">
|
||||
<asp:ListItem Value="1" Text="Vendedor" Selected="true"></asp:ListItem>
|
||||
<asp:ListItem Value="2" Text="Medio de Captación"></asp:ListItem>
|
||||
<asp:ListItem Value="3" Text="Probabilidad de Acercamiento"></asp:ListItem>
|
||||
<asp:ListItem Value="4" Text="Fecha"></asp:ListItem>
|
||||
<asp:ListItem Value="5" Text="Sucursal"></asp:ListItem>
|
||||
</asp:DropDownList>
|
||||
<asp:Label runat="server" Text="Agrupado Por:" AssociatedControlID="DdlGrupo1"></asp:Label>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-3" style="display: none; width: 25%">
|
||||
<div class="form-group form-md-line-input input-iconright" style="width: 100%">
|
||||
<asp:DropDownList ID="DdlGrupo2" runat="server" CssClass="form-control input-sm select2me Widthall" Style="width: 100%">
|
||||
<asp:ListItem Value="-1" Text="Ninguno" Selected="True"></asp:ListItem>
|
||||
<asp:ListItem Value="1" Text="Vendedor"></asp:ListItem>
|
||||
<asp:ListItem Value="2" Text="Medio Captacion"></asp:ListItem>
|
||||
<asp:ListItem Value="3" Text="Probabilidad de Acercamiento"></asp:ListItem>
|
||||
<asp:ListItem Value="4" Text="Fecha"></asp:ListItem>
|
||||
<asp:ListItem Value="5" Text="Sucursal"></asp:ListItem>
|
||||
</asp:DropDownList>
|
||||
<asp:Label runat="server" Text="Agrupado Por(2):" AssociatedControlID="DdlGrupo2"></asp:Label>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-2" style="width: 25%;padding-right: 15px;padding-left: 15px;">
|
||||
<div class="form-group form-md-line-input input-iconright">
|
||||
<asp:Label runat="server" Text="Fecha Inicio:" AssociatedControlID="TxtFechaInicio"></asp:Label>
|
||||
<div class="input-group input-sm input-small date date-picker " data-date-format="dd/mm/yyyy" style="width: 120px !important; padding: 0px; margin-bottom: -10px; padding-bottom: 10px;">
|
||||
<asp:TextBox ID="TxtFechaInicio" runat="server" CssClass="form-control" CausesValidation="true" Width="98%" MaxLength="10"></asp:TextBox>
|
||||
<span class="input-group-btn ">
|
||||
<asp:LinkButton ID="imgFechaInicio" class="btn default " Text="<i class='fa fa-calendar'></i>" runat="server"></asp:LinkButton>
|
||||
</span>
|
||||
</div>
|
||||
<ajax:MaskedEditExtender ID="MEEFechaSolicitudI" runat="server" TargetControlID="TxtFechaInicio" Mask="99/99/9999" MaskType="Date" DisplayMoney="Left" AcceptNegative="Left"></ajax:MaskedEditExtender>
|
||||
<ajax:CalendarExtender runat="server" ID="CEFechaSolicitudI" TargetControlID="TxtFechaInicio" PopupButtonID="imgFechaInicio" PopupPosition="BottomRight" Enabled="True"></ajax:CalendarExtender>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-2" style="width: 25%">
|
||||
<div class="">
|
||||
<asp:Label runat="server" Text="Fecha Fin:" AssociatedControlID="TxtFechaFin"></asp:Label>
|
||||
<div class="input-group input-sm input-small date date-picker " data-date-format="dd/mm/yyyy" style="width: 120px !important; padding: 0px; margin-bottom: -10px; padding-bottom: 10px;">
|
||||
<asp:TextBox ID="TxtFechaFin" runat="server" CssClass="form-control" CausesValidation="true" Width="98%" MaxLength="10"></asp:TextBox>
|
||||
<span class="input-group-btn ">
|
||||
<asp:LinkButton ID="imgFechaFin" class="btn default " Text="<i class='fa fa-calendar'></i>" runat="server"></asp:LinkButton>
|
||||
</span>
|
||||
</div>
|
||||
<ajax:MaskedEditExtender ID="MEEFechaSolicitudF" runat="server" TargetControlID="TxtFechaFin" Mask="99/99/9999" MaskType="Date" DisplayMoney="Left" AcceptNegative="Left"></ajax:MaskedEditExtender>
|
||||
<ajax:CalendarExtender runat="server" ID="CEFechaSolicitudF" TargetControlID="TxtFechaFin" PopupButtonID="imgFechaFin" PopupPosition="BottomRight" Enabled="True"></ajax:CalendarExtender>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-2" style="width: 138px">
|
||||
<div class="col-sm-1 text-right" style="width: 138px">
|
||||
<br />
|
||||
<asp:LinkButton ID="LnkConsultar" OnClick="LnkConsultar_Click" runat="server" CssClass="btn btn-default">Consultar</asp:LinkButton>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<asp:GridView ID="GVRepAcercamientosDetalle" runat="server" GridLines="None" CssClass ="table table-hover table-striped ScrollAD Widthall" AutoGenerateColumns="False" DataKeyNames="CveAcercamiento">
|
||||
<Columns>
|
||||
<asp:TemplateField HeaderText="Empresa">
|
||||
<asp:TemplateField HeaderText="Prospecto">
|
||||
<ItemTemplate>
|
||||
<asp:Label ID="lblempresa" runat="server" Text='<%# Eval("Empresa")%>'> </asp:Label>
|
||||
<asp:HyperLink href='<%# Eval("Empresa","/{0}")%>' runat="server" Text='<%# Eval("Empresa")%>'>HyperLink</asp:HyperLink>
|
||||
<%--<asp:Label ID="lblempresa" runat="server" Text='<%# Eval("Empresa")%>'> </asp:Label>--%>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField HeaderText="Vendedor">
|
||||
@@ -35,12 +155,17 @@
|
||||
<asp:Label ID="lblvendedor" runat="server" Text='<%# Eval("Vendedor")%>'> </asp:Label>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField HeaderText="Nombre Acercamiento">
|
||||
<ItemTemplate>
|
||||
<asp:Label ID="lblnombreAcercamiento" runat="server" Text='<%# Eval("NombreAcercamiento")%>'> </asp:Label>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField HeaderText="Medio Captacion">
|
||||
<ItemTemplate>
|
||||
<asp:Label ID="lblmedioCaptacion" runat="server" Text='<%# Eval("MedioCaptacion")%>'> </asp:Label>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField HeaderText="Etapa Proceso">
|
||||
<asp:TemplateField HeaderText="Etapa del Proceso">
|
||||
<ItemTemplate>
|
||||
<asp:Label ID="lbletapaProceso" runat="server" Text='<%# Eval("EtapaProceso")%>'> </asp:Label>
|
||||
</ItemTemplate>
|
||||
@@ -50,17 +175,12 @@
|
||||
<asp:Label ID="lblprobabilidadAcercamiento" runat="server" Text='<%# Eval("ProbabilidadAcercamiento")%>'> </asp:Label>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField HeaderText="Nombre Acercamiento">
|
||||
<ItemTemplate>
|
||||
<asp:Label ID="lblnombreAcercamiento" runat="server" Text='<%# Eval("NombreAcercamiento")%>'> </asp:Label>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField HeaderText="Nombre">
|
||||
<asp:TemplateField HeaderText="Nombre del Contacto">
|
||||
<ItemTemplate>
|
||||
<asp:Label ID="lblnombre" runat="server" Text='<%# Eval("Nombre")%>'> </asp:Label>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField HeaderText="Telefono Oficina">
|
||||
<asp:TemplateField HeaderText="Telefono">
|
||||
<ItemTemplate>
|
||||
<asp:Label ID="lbltelefonoOficina" runat="server" Text='<%# Eval("TelefonoOficina")%>'> </asp:Label>
|
||||
</ItemTemplate>
|
||||
|
||||
@@ -7,9 +7,14 @@ using System.Web.UI.WebControls;
|
||||
using Extensiones;
|
||||
using System.Data;
|
||||
|
||||
public partial class CRM_RepAcercamientosProcesosDetalle : ClsPaginas
|
||||
public partial class CRM_RepAcercamientosProcesosDetalle : ClsPaginas
|
||||
{
|
||||
#region Propiedades
|
||||
private int RCveTipoProceso
|
||||
{
|
||||
get { return (ViewState["RCveTipoProceso"] == null) ? 0 : Convert.ToInt32(ViewState["RCveTipoProceso"]); }
|
||||
set { ViewState["RCveTipoProceso"] = value; }
|
||||
}
|
||||
private int RcveVendedor
|
||||
{
|
||||
get { return (ViewState["RcveVendedor"] == null) ? 0 : Convert.ToInt32(ViewState["RcveVendedor"]); }
|
||||
@@ -46,12 +51,37 @@ public partial class CRM_RepAcercamientosProcesosDetalle : ClsPaginas
|
||||
set { ViewState["RsFechaFin"] = value; }
|
||||
}
|
||||
|
||||
private DataTable DtMedioCaptacion
|
||||
{
|
||||
get
|
||||
{
|
||||
return (DataTable)ViewState["DtMedioCaptacion"];
|
||||
}
|
||||
|
||||
set
|
||||
{
|
||||
ViewState["DtMedioCaptacion"] = value;
|
||||
}
|
||||
}
|
||||
private DataTable DtProbabilidadAcercamiento
|
||||
{
|
||||
get
|
||||
{
|
||||
return (DataTable)ViewState["DtProbabilidadAcercamiento"];
|
||||
}
|
||||
|
||||
set
|
||||
{
|
||||
ViewState["DtProbabilidadAcercamiento"] = value;
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
if (!IsPostBack)
|
||||
{
|
||||
int CveTipoProceso = Request["CveTipoProceso"] == null ? -1 : Request["CveTipoProceso"].ToString().ToEntero();
|
||||
CargaDdl();
|
||||
RCveTipoProceso = Request["CveTipoProceso"] == null ? -1 : Request["CveTipoProceso"].ToString().ToEntero();
|
||||
RcveVendedor = Request["cveVendedor"] == null ? -1 : Request["cveVendedor"].ToString().ToEntero();
|
||||
RcveMedioCaptacion = Request["cveMedioCaptacion"] == null ? -1 : Request["cveMedioCaptacion"].ToString().ToEntero();
|
||||
RcveProbabilidadAcercamiento = Request["cveProbabilidadAcercamiento"] == null ? -1 : Request["cveProbabilidadAcercamiento"].ToString().ToEntero();
|
||||
@@ -59,35 +89,140 @@ public partial class CRM_RepAcercamientosProcesosDetalle : ClsPaginas
|
||||
RsFecha = Request["Fecha"] == null ? "" : Request["Fecha"].ToString();
|
||||
RsFechaIni = Request["FechaInicio"] == null ? "" : Request["FechaInicio"].ToString();
|
||||
RsFechaFin = Request["FechaFin"] == null ? "" : Request["FechaFin"].ToString();
|
||||
try { RsFechaIni = RsFechaIni.ToDateTime().ToString("yyyy/MM/dd"); }
|
||||
try { RsFechaIni = RsFechaIni.ToDateTime().ToString("yyyy/MM/dd"); TxtFechaInicio.Text = RsFechaIni.ToDateTime().ToString("dd/MM/yyyy"); }
|
||||
catch (Exception) { RsFechaIni = ""; }
|
||||
try { RsFechaFin = RsFechaFin.ToDateTime().ToString("yyyy/MM/dd"); }
|
||||
try { RsFechaFin = RsFechaFin.ToDateTime().ToString("yyyy/MM/dd"); TxtFechaFin.Text = RsFechaFin.ToDateTime().ToString("dd/MM/yyyy"); }
|
||||
catch (Exception) { RsFechaFin = ""; }
|
||||
switch (CveTipoProceso)
|
||||
switch (RCveTipoProceso)
|
||||
{
|
||||
case 1:
|
||||
RcveVendedor = Request["CveGrupo1"] == null ? -1 : Request["CveGrupo1"].ToString().ToEntero();
|
||||
break;
|
||||
case 2:
|
||||
RcveMedioCaptacion = Request["CveGrupo1"] == null ? -1 : Request["CveGrupo1"].ToString().ToEntero();
|
||||
RcveMedioCaptacion = Request["CveGrupo1"] == null ? -1 : Request["CveGrupo1"].ToString().ToEntero();
|
||||
break;
|
||||
case 3:
|
||||
RcveProbabilidadAcercamiento = Request["CveGrupo1"] == null ? -1 : Request["CveGrupo1"].ToString().ToEntero();
|
||||
RcveProbabilidadAcercamiento = Request["CveGrupo1"] == null ? -1 : Request["CveGrupo1"].ToString().ToEntero();
|
||||
break;
|
||||
case 4:
|
||||
RsFecha = Request["CveGrupo1"] == null ? "" : Request["CveGrupo1"].ToString();
|
||||
RsFecha = Request["CveGrupo1"] == null ? "" : Request["CveGrupo1"].ToString();
|
||||
break;
|
||||
}
|
||||
DdlTipoProceso.SelectedValueExist(RCveTipoProceso);
|
||||
|
||||
|
||||
//DdlGrupo1.SelectedValueExist(idgrupo1);
|
||||
//DdlGrupo2.SelectedValueExist(idgrupo2);
|
||||
DdlVendedor.SelectedValueExist(RcveVendedor);
|
||||
DdlMedioCaptacion.SelectedValueExist(RcveMedioCaptacion);
|
||||
DdlProbabilidad.SelectedValueExist(RcveProbabilidadAcercamiento);
|
||||
cargarDatos();
|
||||
}
|
||||
}
|
||||
|
||||
protected void CargaDdl()
|
||||
{
|
||||
ClsCRM ObjCRM = new ClsCRM();
|
||||
DdlTipoProceso.DataSource = null;
|
||||
DdlVendedor.DataSource = null;
|
||||
DdlMedioCaptacion.DataSource = null;
|
||||
DdlProbabilidad.DataSource = null;
|
||||
|
||||
if (ObjCRM.GetTipoProceso(UsuarioActual.CveEmpresa, 1))
|
||||
{
|
||||
DdlTipoProceso.DataSource = ObjCRM.DtResultados;
|
||||
}
|
||||
DdlVendedor.DataSource = get_GlobalDTVendedores(UsuarioActual.CveEmpresa);
|
||||
if (ObjCRM.GetMedioCaptacion(UsuarioActual.CveEmpresa))
|
||||
{
|
||||
DdlMedioCaptacion.Items.Clear();
|
||||
DdlMedioCaptacion.DataSource = ObjCRM.DtResultados;
|
||||
DtMedioCaptacion = ObjCRM.DtResultados;
|
||||
}
|
||||
if (ObjCRM.GetProbabilidadAcercamiento(UsuarioActual.CveEmpresa, -1))
|
||||
{
|
||||
DdlProbabilidad.DataSource = ObjCRM.DtResultados;
|
||||
DtProbabilidadAcercamiento = ObjCRM.DtResultados;
|
||||
}
|
||||
ObjCRM.Dispose();
|
||||
|
||||
DdlTipoProceso.DataBind();
|
||||
DdlVendedor.DataBind();
|
||||
DdlMedioCaptacion.DataBind();
|
||||
DdlProbabilidad.DataBind();
|
||||
DdlVendedor.Items.Insert(0, new ListItem("Seleccione ", "-1"));
|
||||
DdlMedioCaptacion.Items.Insert(0, new ListItem("Seleccione ", "-1"));
|
||||
DdlProbabilidad.Items.Insert(0, new ListItem("Seleccione ", "-1"));
|
||||
DdlTipoProceso.Items.Insert(0, new ListItem("Seleccione", "-1"));
|
||||
DdlVendedor.SelectedValue = "-1";
|
||||
DdlMedioCaptacion.SelectedValue = "-1";
|
||||
DdlProbabilidad.SelectedValue = "-1";
|
||||
DdlTipoProceso.SelectedIndex = 0;
|
||||
|
||||
int n;
|
||||
string CveProbabilidadAcercamiento = Request["CveProbabilidadAcercamiento"];
|
||||
bool isNumeric = int.TryParse(CveProbabilidadAcercamiento, out n);
|
||||
|
||||
int c;
|
||||
string CveTipoProceso = Request["CveTipoProceso"];
|
||||
bool isNumericC = int.TryParse(CveTipoProceso, out c);
|
||||
|
||||
if (isNumeric && isNumericC)
|
||||
{
|
||||
DdlProbabilidad.SelectedValue = CveProbabilidadAcercamiento;
|
||||
DdlTipoProceso.SelectedValue = CveTipoProceso;
|
||||
}
|
||||
upDatosRepA.Update();
|
||||
}
|
||||
|
||||
protected void DdlTipoProceso_Change(object sender, EventArgs e)
|
||||
{
|
||||
DdlMedioCaptacion.Items.Clear();
|
||||
DdlMedioCaptacion.DataSource = DtMedioCaptacion.FiltraParametros(String.Format("CveTipoProceso = {0}", DdlTipoProceso.SelectedValue.ToEntero()));
|
||||
DdlMedioCaptacion.DataBind();
|
||||
DdlMedioCaptacion.Items.Insert(0, new ListItem("Seleccione", "-1"));
|
||||
|
||||
DdlProbabilidad.Items.Clear();
|
||||
DdlProbabilidad.DataSource = DtProbabilidadAcercamiento.FiltraParametros(String.Format("CveTipoProceso = {0}", DdlTipoProceso.SelectedValue.ToEntero()));
|
||||
DdlProbabilidad.DataBind();
|
||||
DdlProbabilidad.Items.Insert(0, new ListItem("Seleccione", "-1"));
|
||||
|
||||
upDatosRepA.Update();
|
||||
}
|
||||
protected void cargarDatos()
|
||||
{
|
||||
ClsCRM ObjRepA = new ClsCRM();
|
||||
ObjRepA.RepAcercamientosDetalle(UsuarioActual.CveEmpresa,RcveVendedor, RcveMedioCaptacion, RcveProbabilidadAcercamiento, RcveEtapaProceso, RsFecha, RsFechaIni, RsFechaFin);
|
||||
ObjRepA.RepAcercamientosDetalle(UsuarioActual.CveEmpresa, RcveVendedor, RcveMedioCaptacion, RcveProbabilidadAcercamiento, RcveEtapaProceso, RsFecha, RsFechaIni, RsFechaFin);
|
||||
GVRepAcercamientosDetalle.DataSource = ObjRepA.DtResultados;
|
||||
ObjRepA.Dispose();
|
||||
GVRepAcercamientosDetalle.DataBind();
|
||||
upDatosRepA.Update();
|
||||
}
|
||||
|
||||
protected void LnkConsultar_Click(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
RCveTipoProceso = DdlTipoProceso.SelectedValue.ToEntero();
|
||||
switch (RCveTipoProceso)
|
||||
{
|
||||
case 1:
|
||||
RcveVendedor = Request["CveGrupo1"] == null ? -1 : Request["CveGrupo1"].ToString().ToEntero();
|
||||
break;
|
||||
case 2:
|
||||
RcveMedioCaptacion = Request["CveGrupo1"] == null ? -1 : Request["CveGrupo1"].ToString().ToEntero();
|
||||
break;
|
||||
case 3:
|
||||
RcveProbabilidadAcercamiento = Request["CveGrupo1"] == null ? -1 : Request["CveGrupo1"].ToString().ToEntero();
|
||||
break;
|
||||
case 4:
|
||||
RsFecha = Request["CveGrupo1"] == null ? "" : Request["CveGrupo1"].ToString();
|
||||
break;
|
||||
}
|
||||
RsFechaIni = TxtFechaInicio.Text.Length > 0 ? TxtFechaInicio.Text.ToDateTime().ToString("yyyy/MM/dd") : "";
|
||||
RsFechaFin = TxtFechaFin.Text.Length > 0 ? TxtFechaFin.Text.ToDateTime().ToString("yyyy/MM/dd") : "";
|
||||
RcveVendedor = DdlVendedor.SelectedValue.ToEntero();
|
||||
RcveMedioCaptacion = DdlMedioCaptacion.SelectedValue.ToEntero();
|
||||
RcveProbabilidadAcercamiento = DdlProbabilidad.SelectedValue.ToEntero();
|
||||
cargarDatos();
|
||||
}
|
||||
}
|
||||
@@ -5,8 +5,7 @@
|
||||
<asp:Content ID="Content2" ContentPlaceHolderID="Css" runat="Server">
|
||||
<style>
|
||||
.Filtros {
|
||||
padding: 10px;
|
||||
background-color: #C3C3C3;
|
||||
padding: 10px;background-color: #95A5A6;
|
||||
}
|
||||
|
||||
.Filtros label, .Filtros .form-group.form-md-line-input .form-control ~ label {
|
||||
|
||||
Reference in New Issue
Block a user