diff --git a/OI/TareaDetalle.aspx.cs b/OI/TareaDetalle.aspx.cs
index 65ac64922..5391e91b3 100644
--- a/OI/TareaDetalle.aspx.cs
+++ b/OI/TareaDetalle.aspx.cs
@@ -23,6 +23,7 @@ public partial class OI_TareaDetalle : ClsPaginas
}
#region Propiedades
+ public const string idUpVinculo = "idUpVinculo";
public const string iddivAgregarMiembros = "iddivAgregarMiembros";
public const string iddivAgregar = "divModalAgregarActividad";
public const string iddivAgregarArchivo = "divModalAgregarArchivo";
@@ -38,6 +39,7 @@ public partial class OI_TareaDetalle : ClsPaginas
public List LcveuserVisto { get { if (ViewState["LcveuserVisto"] == null) { ViewState["LcveuserVisto"] = new List(); } return (List)ViewState["LcveuserVisto"]; } set { ViewState["LcveuserVisto"] = value; } }
private OI_TareaDetalle_Permisos Permisos { get { return ViewState["Permisos"] == null ? null : (OI_TareaDetalle_Permisos)ViewState["Permisos"]; } set { ViewState["Permisos"] = value; } }
public bool EsNuevo { get { return Convert.ToBoolean(ViewState["EsNuevo"]); } set { ViewState["EsNuevo"] = value; } }
+ public bool Convinculo { get { return Convert.ToBoolean(ViewState["Convinculo"]); } set { ViewState["Convinculo"] = value; } }
public bool LnkAgregarCheckListVisible { get { return Convert.ToBoolean(ViewState["LnkAgregarCheckListVisible"]); } set { ViewState["LnkAgregarCheckListVisible"] = value; } }
public bool LnkUpFileVisible { get { return Convert.ToBoolean(ViewState["LnkUpFileVisible"]); } set { ViewState["LnkUpFileVisible"] = value; } }
public bool LnkUpUsuariosVisible { get { return Convert.ToBoolean(ViewState["LnkUpUsuariosVisible"]); } set { ViewState["LnkUpUsuariosVisible"] = value; } }
@@ -48,7 +50,7 @@ public partial class OI_TareaDetalle : ClsPaginas
#endregion
protected void Page_Load(object sender, EventArgs e)
{
-
+ Convinculo = false;
if (!IsPostBack)
{
CveEventoPadre = 0;
@@ -374,6 +376,9 @@ public partial class OI_TareaDetalle : ClsPaginas
{
if (ObjOI_E.GetEventos2(RCveEvento, UsuarioActual.CveEmpresa) && ObjOI_E.DtResultados.Rows.Count > 0)
{
+ LnkUpVinculo.Visible = true;
+ LnkUpVinculo.Text = " Agregar Relación";
+
PnlUsuarios.Visible = true;
portletMiembros.Visible = false;
LnkUpFileVisible = true;
@@ -417,6 +422,16 @@ public partial class OI_TareaDetalle : ClsPaginas
int CveProveedor = drow["CveProveedor"].ToString().ToEntero();
int CveCompra = drow["CveCompra"].ToString().ToEntero();
int CvePersonal = drow["CvePersonal"].ToString().ToEntero();
+
+ int CveActivoFijo = drow["CveActivoFijo"].ToString().ToEntero();
+ int CveIE = drow["CveIE"].ToString().ToEntero();
+ int CveProspecto = drow["CveProspecto"].ToString().ToEntero();
+ 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 CveMovimientoAlmacen = drow["CveMovimientoAlmacen"].ToString().ToEntero();
+
//int = drow[""].ToString().ToEntero();
string titulo = "";
@@ -426,7 +441,7 @@ public partial class OI_TareaDetalle : ClsPaginas
{
titulo = "Cliente: ";
link = string.Format("{0}", drow["Cliente"], CveCliente);
-
+
}
else if (CveVenta > 0)
{
@@ -451,17 +466,64 @@ public partial class OI_TareaDetalle : ClsPaginas
titulo = "Personal: ";
link = string.Format("{0} ", drow["NombreCompleto"], CvePersonal);
}
-
- if(titulo.Length > 0)
+ else if (CveActivoFijo > 0)
{
- LtlVinculo.Text= string.Format("
{0}
{1}
",
+ titulo = "Activo Fijo";
+ link = string.Format("{0} ", drow["ActivoFijo"], CveActivoFijo);
+ }
+ else if (CveIE > 0)
+ {
+ titulo = "Bancos";
+ link = string.Format("{0} ", drow["BancIE"], CveIE);
+ }
+ else if (CveProspecto > 0)
+ {
+ titulo = "Prospecto";
+ link = string.Format("{0} ", drow["Prospecto"], CveProspecto);
+ }
+ else if (CveOS > 0)
+ {
+ titulo = "Orden de servicio";
+ link = string.Format("{0} ", drow["OrdenServicio"], CveOS);
+ }
+ else if (CveOC > 0)
+ {
+ titulo = "Orden de Compra";
+ link = string.Format("{0} ", drow["OrdenCompra"], CveOC);
+ }
+ else if (CveContrato > 0)
+ {
+ 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 (CveMovimientoAlmacen > 0)
+ {
+ titulo = "Almacen";
+ link = string.Format("{0} ", drow["MovAlmacen"], CveMovimientoAlmacen);
+ }
+
+
+
+ if (titulo.Length > 0)
+ {
+ LtlVinculo.Text = string.Format("
{0}
{1}
",
titulo, link);
+ Convinculo = true;
+ }
+ else
+ {
+ LnkUpVinculo.Text = " Actualizar Relación";
}
titulo = "";
link = "";//EP.[CveTipoEvento] CveTipoEventoPadre,EP.Asunto AS AsuntoPadre
switch (drow["CveTipoEventoPadre"].ToString().ToEntero())
{
- case (int)OITipoEventos.Proyecto:
+ case (int)OITipoEventos.Proyecto:
titulo = "Proyecto: ";
link = string.Format("{0} ", drow["AsuntoPadre"], drow["CveEventoPadre"]);
break;
@@ -495,12 +557,12 @@ public partial class OI_TareaDetalle : ClsPaginas
}
}
}
- if (ObjOI_E.GetEventosVinculos(RCveEvento, UsuarioActual.CveEmpresa))
- {
- GVVinculo.DataSource = ObjOI_E.DtResultados;
- GVVinculo.DataBind();
- portletvinculos.Visible = (ObjOI_E.DtResultados.Rows.Count > 0);
- }
+ //if (ObjOI_E.GetEventosVinculos(RCveEvento, UsuarioActual.CveEmpresa))
+ //{
+ // GVVinculo.DataSource = ObjOI_E.DtResultados;
+ // GVVinculo.DataBind();
+ // portletvinculos.Visible = (ObjOI_E.DtResultados.Rows.Count > 0);
+ //}
if (ObjOI_E.Getcheklist(RCveEvento))
{
GVcheklist.DataSource = ObjOI_E.DtResultados;
@@ -609,7 +671,7 @@ public partial class OI_TareaDetalle : ClsPaginas
if (cveUsuarioDe <= 0)
{
- errorMessage = "No se selecciono el miembro 'C C Para'";
+ errorMessage = "Asegúrese de seleccionar al menos un miembro \"C C Para\"";
}
if (cveUsuarioPara <= 0)
@@ -938,7 +1000,7 @@ public partial class OI_TareaDetalle : ClsPaginas
{
if (objoi.AddRevisionesEventos(TxtTema.Text.Trim(), UsuarioActual.CveUsuario, UsuarioActual.CveEmpresa))
{
- Alert("Tema agregada con éxito.", ModExtensiones.TipoMensaje.MsgInformacion);
+ Alert("Tema Agregada con éxito.", ModExtensiones.TipoMensaje.MsgInformacion);
this.RegistraScript(string.Format("$('#{0}').modal('hide')", iddivAgregarTema));
TxtTema.Text = "";
set_GlobalDTOIRevision(-1, objoi.DtResultados);
@@ -1286,7 +1348,7 @@ public partial class OI_TareaDetalle : ClsPaginas
if (cveUsuarioPara <= 0)
{
- errorMessage = "No se selecciono el miembro 'Para'";
+ errorMessage = "Asegúrese de seleccionar al menos un miembro \"Para\"";
}
if (cveUsuarioPara == cveUsuarioDe)
@@ -1671,6 +1733,66 @@ public partial class OI_TareaDetalle : ClsPaginas
protected void DDlEstatus_SelectedIndexChanged(object sender, EventArgs e)
{
- pnlTerminarPadre.Visible = (DDlEstatus.SelectedValue.ToEntero() > 3 && CveEventoPadre > 0);
+ pnlTerminarPadre.Visible = ((DDlEstatus.SelectedValue.ToEntero() == 3 || DDlEstatus.SelectedValue.ToEntero() == 4) && CveEventoPadre > 0);
}
-}
\ No newline at end of file
+
+ protected void LnkUpVinculo_Click(object sender, EventArgs e)
+ {
+ RegistraScript(string.Format("$('#{0}').modal();", idUpVinculo));
+ }
+
+ protected void DdlViculos_SelectedIndexChanged(object sender, EventArgs e)
+ {
+ int CveVinculo = DdlViculos.SelectedValue.ToEntero();
+ PnlActivoFijo.Visible = (CveVinculo == 1);
+ PnlCliente.Visible = (CveVinculo == 2);
+ PnlPersonal.Visible = (CveVinculo == 3);
+ PnlProveedor.Visible = (CveVinculo == 4);
+ if (PnlActivoFijo.Visible)
+ {
+;
+ using ( ClsAF ObjAF = new ClsAF())
+ {
+
+ if (ObjAF.GetActivosFijos(-1, UsuarioActual.CveEmpresa, "-1", "-1", -1, -1, "-1", DateTime.Now.Year, -1, -1,-1,-1, "-1",-1))
+ {
+ GvActividades.DataSource = ObjAF.DtResultados;
+ GvActividades.DataBind();
+ }
+
+ }
+ }
+ if (PnlCliente.Visible)
+ {
+
+ using (ClsClientes ObjClientes = new ClsClientes())
+ {
+ if (ObjClientes.GetClientes(-1, "-1", "-1", "-1", "-1", "-1", "-1", -1, UsuarioActual.CveEmpresa, -1))
+ {
+ GvClientes.DataSource = ObjClientes.DtResultados;
+ GvClientes.DataBind();
+ }
+ }
+ }
+ if (PnlPersonal.Visible)
+ {
+
+ }
+ if (PnlProveedor.Visible)
+ {
+
+ }
+ UpVinculoModal.Update();
+ }
+
+ protected void LnkUpVinculoAF_Click(object sender, EventArgs e)
+ {
+
+ }
+
+ protected void LnkUpVinculoCliente_Click(object sender, EventArgs e)
+ {
+
+ }
+}
+
\ No newline at end of file
diff --git a/UserControl/TareaNueva.ascx b/UserControl/TareaNueva.ascx
index 5ac4b74bf..c36de7a9a 100644
--- a/UserControl/TareaNueva.ascx
+++ b/UserControl/TareaNueva.ascx
@@ -66,7 +66,7 @@
- Agregar
+ Agregar
@@ -202,7 +202,7 @@
- Guardar
+ Guardar
diff --git a/UserControl/TareaNueva.ascx.cs b/UserControl/TareaNueva.ascx.cs
index a70268443..3b8108453 100644
--- a/UserControl/TareaNueva.ascx.cs
+++ b/UserControl/TareaNueva.ascx.cs
@@ -188,12 +188,12 @@ public partial class UserControl_TareaNueva : System.Web.UI.UserControl
if (cveUsuarioDe <= 0)
{
- errorMessage = "No se selecciono el miembro 'C C Para'";
+ errorMessage = "Asegúrese de seleccionar al menos un miembro \"C C Para\"";
}
if (cveUsuarioPara <= 0)
{
- errorMessage = "No se selecciono el miembro 'Para'";
+ errorMessage = "Asegúrese de seleccionar al menos un miembro \"Para\"";
}
if (errorMessage.Length == 0)
@@ -306,7 +306,7 @@ public partial class UserControl_TareaNueva : System.Web.UI.UserControl
{
if (objoi.AddRevisionesEventos(TxtTema.Text.Trim(), UsuarioActual.CveUsuario, UsuarioActual.CveEmpresa))
{
- this.Alert("Tema agregada con éxito.", ModExtensiones.TipoMensaje.MsgInformacion);
+ this.Alert("Tema Agregada con éxito.", ModExtensiones.TipoMensaje.MsgInformacion);
this.RegistraScript(string.Format("$('#{0}').modal('hide')", iddivAgregarTema));
if (Ismodal)
diff --git a/Ventas/Clientes.aspx b/Ventas/Clientes.aspx
index b87da3631..2ac6ca603 100644
--- a/Ventas/Clientes.aspx
+++ b/Ventas/Clientes.aspx
@@ -4441,12 +4441,19 @@
+
+
+
@@ -4470,7 +4477,7 @@
Descripción
-
+
diff --git a/Ventas/Clientes.aspx.vb b/Ventas/Clientes.aspx.vb
index ef9c79f9c..2fe50ab7a 100644
--- a/Ventas/Clientes.aspx.vb
+++ b/Ventas/Clientes.aspx.vb
@@ -3561,7 +3561,7 @@ Partial Class Clientes
Private Sub CargaEventoBitacora()
Dim ObjEventoBitacora As New ClsOIEventos()
If ObjEventoBitacora.GetAgendaBitacora(UsuarioActual.CveUsuario, UsuarioActual.CveEmpresa, CveCliente:=CveCliente) Then
- GvEB.DataSource = ObjEventoBitacora.DtResultados.FiltraParametros("CveTipoEvento = 6 OR CveTipoEvento = 2")
+ GvEB.DataSource = ObjEventoBitacora.DtResultados.FiltraParametros("CveTipoEvento IN(6,2,1)")
Else
GvEB.DataSource = Nothing
End If
@@ -10039,5 +10039,8 @@ Partial Class Clientes
End If
End Sub
+ Protected Sub btnupEventoBitacora_Click(sender As Object, e As EventArgs)
+ CargaEventoBitacora()
+ End Sub
End Class
diff --git a/Ventas/Ventas.aspx b/Ventas/Ventas.aspx
index 5c7644475..601d94852 100644
--- a/Ventas/Ventas.aspx
+++ b/Ventas/Ventas.aspx
@@ -4133,7 +4133,11 @@
Agendar
+
@@ -4142,6 +4146,7 @@
+
@@ -4165,7 +4170,7 @@
Descripción
-
+
diff --git a/Ventas/Ventas.aspx.vb b/Ventas/Ventas.aspx.vb
index 0132a3566..c9e1948fa 100644
--- a/Ventas/Ventas.aspx.vb
+++ b/Ventas/Ventas.aspx.vb
@@ -16869,7 +16869,7 @@ Partial Class Ventas
Dim ObjEventoBitacora As New ClsOIEventos()
If ObjEventoBitacora.GetAgendaBitacora(UsuarioActual.CveUsuario, UsuarioActual.CveEmpresa, CveVenta:=CveVenta) Then
- GvEB.DataSource = ObjEventoBitacora.DtResultados.FiltraParametros("CveTipoEvento = 6 OR CveTipoEvento = 2")
+ GvEB.DataSource = ObjEventoBitacora.DtResultados.FiltraParametros("CveTipoEvento IN(6,2,1)")
Else
GvEB.DataSource = Nothing
End If
@@ -25441,4 +25441,7 @@ Partial Class Ventas
Public EsPUModificado As Boolean = False
End Class
+ Protected Sub btnupEventoBitacora_Click(sender As Object, e As EventArgs)
+ CargaEventoBitacora()
+ End Sub
End Class
\ No newline at end of file
diff --git a/vwd.webinfo b/vwd.webinfo
index 6b76e11e1..c6b051639 100644
--- a/vwd.webinfo
+++ b/vwd.webinfo
@@ -52,6 +52,8 @@
+
+