This commit is contained in:
@@ -10,6 +10,7 @@ using Extensiones;
|
||||
public partial class OI_TareaDetalle : ClsPaginas
|
||||
{
|
||||
#region Propiedades
|
||||
public const string iddivAgregarPara = "iddivAgregarPara";
|
||||
public const string iddivAgregar = "divModalAgregarActividad";
|
||||
public const string iddivAgregarArchivo = "divModalAgregarArchivo";
|
||||
public const string iddivAgregarTema = "divModalAgregartema";
|
||||
@@ -18,9 +19,9 @@ public partial class OI_TareaDetalle : ClsPaginas
|
||||
public int Folio { get { return ViewState["Folio"] != null ? ViewState["Folio"].ToString().ToEntero() : 0; } set { ViewState["Folio"] = value; } }
|
||||
public decimal Avance { get { return ViewState["Avance"] != null ? ViewState["Avance"].ToString().ToEntero() : 0; } set { ViewState["Avance"] = value; } }
|
||||
public int CveUsuarioPara { get { return ViewState["CveUsuarioPara"].ToString().ToEntero(); } set { ViewState["CveUsuarioPara"] = value; } }
|
||||
public int CveUsuarioCCPara { get { return ViewState["CveUsuarioCCPara"].ToString().ToEntero(); } set { ViewState["CveUsuarioCCPara"] = value; } }
|
||||
public int CveUsuarioDe { get { return ViewState["CveUsuarioDe"].ToString().ToEntero(); } set { ViewState["CveUsuarioDe"] = value; } }
|
||||
public List<int> LCveUsuarioCCP { get { if (ViewState["LCveUsuarioCCP"] == null) { ViewState["LCveUsuarioCCP"] = new List<int>(); } return (List<int>)ViewState["LCveUsuarioCCP"]; } set { ViewState["LCveUsuarioCCP"] = value; } }
|
||||
public bool EsNuevo { get { return Convert.ToBoolean(ViewState["EsNuevo"]); } set { ViewState["EsNuevo"] = value; } }
|
||||
|
||||
public System.Data.DataTable CheckListNew { get { return ViewState["CheckListNew"] != null ? (System.Data.DataTable)ViewState["CheckListNew"] : null; } set { ViewState["CheckListNew"] = value; } }
|
||||
public int chklistitemindex { get { return ViewState["chklistitemindex"] != null ? ViewState["chklistitemindex"].ToString().ToEntero() : 0; } set { ViewState["chklistitemindex"] = value; } }
|
||||
|
||||
@@ -31,7 +32,8 @@ public partial class OI_TareaDetalle : ClsPaginas
|
||||
{
|
||||
EsNuevo = true;
|
||||
CveUsuarioPara = 0;
|
||||
CveUsuarioCCPara = 0;
|
||||
//System.Xml.Linq.XDocument document = new System.Xml.Linq.XDocument(new System.Xml.Linq.XElement("root", LCveUsuarioCCP.Select(x => new System.Xml.Linq.XElement("item", x))));
|
||||
CveUsuarioDe = 0;
|
||||
if (Request["Archivo"] != null)
|
||||
{
|
||||
string strArchivo = string.Format("{0}{1}", UsuarioActual.Empresa.Ruta, ModExtensiones.Decripta(Request["Archivo"].ToString()));
|
||||
@@ -83,9 +85,10 @@ public partial class OI_TareaDetalle : ClsPaginas
|
||||
}
|
||||
else
|
||||
{
|
||||
portletEstatus.Visible = false;
|
||||
LtlTitulo.Text = "Tarea Nueva";
|
||||
TxtArchivo.Visible = true;
|
||||
CveUsuarioCCPara = UsuarioActual.CveUsuario;
|
||||
CveUsuarioDe = UsuarioActual.CveUsuario;
|
||||
}
|
||||
SetUsuarios();
|
||||
HypArchivo.Visible = !TxtArchivo.Visible;
|
||||
@@ -114,8 +117,49 @@ public partial class OI_TareaDetalle : ClsPaginas
|
||||
{
|
||||
string FiltroAD = "";
|
||||
|
||||
GVUsuarios.DataSource = get_GlobalDTUsuarios().FiltraParametros(String.Format("CveEmpresa = {0} AND Estatus =1 {1}", UsuarioActual.CveEmpresa, FiltroAD), "Rol ASC");
|
||||
|
||||
DdlRoles.DataSource = get_GlobalDTRoles(UsuarioActual.CveEmpresa);
|
||||
DdlRoles.DataBind();
|
||||
DdlRoles.Items.Insert(0, new ListItem("Todos", "-1"));
|
||||
|
||||
DdlSucursales.DataSource = get_GlobalDTSubProyectos(-1, -1, UsuarioActual.CveEmpresa);
|
||||
DdlSucursales.DataBind();
|
||||
DdlSucursales.Items.Insert(0, new ListItem("Todos", "-1"));
|
||||
|
||||
GVUsuarios.DataSource = get_GlobalDTUsuarios(CveEmpresa: UsuarioActual.CveEmpresa);
|
||||
GVUsuarios.DataBind();
|
||||
UpUsuarios.Update();
|
||||
|
||||
|
||||
GVUsuarios.DataSource = get_GlobalDTUsuarios().FiltraParametros(String.Format("CveEmpresa = {0} AND Estatus =1 {1}", UsuarioActual.CveEmpresa, FiltroAD), "Rol ASC");
|
||||
GVUsuariosB.DataSource = GVUsuarios.DataSource;
|
||||
GVUsuarios.DataBind();
|
||||
GVUsuariosB.DataBind();
|
||||
}
|
||||
|
||||
protected void GVUsuariosB_RowDataBound(object sender, GridViewRowEventArgs e)
|
||||
{
|
||||
if (e.Row.RowType == DataControlRowType.DataRow)
|
||||
{
|
||||
string CveRol = e.Row.DBCampo("CveRol");
|
||||
string CveSubProyecto = e.Row.DBCampo("CveSubProyecto");
|
||||
e.Row.CssClass = "items";
|
||||
//e.Row.Attributes.Add("data-rol", CveRol);
|
||||
//e.Row.Attributes.Add("data-sucursal", CveRol);
|
||||
}
|
||||
|
||||
}
|
||||
protected void GVUsuarios_RowDataBound(object sender, GridViewRowEventArgs e)
|
||||
{
|
||||
if (e.Row.RowType == DataControlRowType.DataRow)
|
||||
{
|
||||
string CveRol = e.Row.DBCampo("CveRol");
|
||||
string CveSubProyecto = e.Row.DBCampo("CveSubProyecto");
|
||||
e.Row.CssClass = "items";
|
||||
e.Row.Attributes.Add("data-rol", CveRol);
|
||||
e.Row.Attributes.Add("data-sucursal", CveRol);
|
||||
}
|
||||
|
||||
}
|
||||
private void cargaActividades(ClsOIEventos ObjOI)
|
||||
{
|
||||
@@ -129,9 +173,10 @@ public partial class OI_TareaDetalle : ClsPaginas
|
||||
}
|
||||
private void SetUsuarios()
|
||||
{
|
||||
StringBuilder para = new StringBuilder();
|
||||
StringBuilder CCpara = new StringBuilder();
|
||||
foreach (GridViewRow gvRow in GVUsuarios.Rows)
|
||||
StringBuilder StrPara = new StringBuilder();
|
||||
StringBuilder StrDeUser = new StringBuilder();
|
||||
StringBuilder StrCCPara = new StringBuilder();
|
||||
foreach (GridViewRow gvRow in GVUsuariosB.Rows)
|
||||
{
|
||||
if (gvRow.RowType == DataControlRowType.DataRow)
|
||||
{
|
||||
@@ -145,10 +190,10 @@ public partial class OI_TareaDetalle : ClsPaginas
|
||||
{
|
||||
chkpara.Enabled = true;
|
||||
chkCCpara.Enabled = true;
|
||||
//if (CveUsuario == CveUsuarioCCPara)
|
||||
//{
|
||||
// chkCCpara.Enabled = false;
|
||||
//}
|
||||
if (CveUsuario == CveUsuarioDe)
|
||||
{
|
||||
chkCCpara.Enabled = false;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -157,20 +202,58 @@ public partial class OI_TareaDetalle : ClsPaginas
|
||||
chkCCpara.Enabled = false;
|
||||
}
|
||||
|
||||
if (CveUsuario == CveUsuarioPara)
|
||||
if ((CveUsuario == CveUsuarioPara) || (CveUsuario == CveUsuarioDe))
|
||||
{
|
||||
chkpara.Checked = true;
|
||||
para.AppendFormat("\"{0}\"",gvRow.DataKey("Nombre").ToString());
|
||||
if (CveUsuario == CveUsuarioPara)
|
||||
{
|
||||
chkpara.Checked = true;
|
||||
StrPara.AppendFormat("<span class=\"linkCorreo\" data-toggle=\"tooltip\" title=\"{1}\">\"{0}\"</span>", gvRow.DataKey("Nombre").ToString(), gvRow.DataKey("Correo").ToString());
|
||||
}
|
||||
if (CveUsuario == CveUsuarioDe)
|
||||
{
|
||||
chkCCpara.Checked = true;
|
||||
StrDeUser.AppendFormat("<span class=\"linkCorreo\" data-toggle=\"tooltip\" title=\"{1}\">\"{0}\"</span>", gvRow.DataKey("Nombre").ToString(), gvRow.DataKey("Correo").ToString());
|
||||
}
|
||||
}
|
||||
if (CveUsuario == CveUsuarioCCPara)
|
||||
else if (CveUsuario.Contiene(LCveUsuarioCCP.ToArray<int>()))
|
||||
{
|
||||
chkCCpara.Checked = true;
|
||||
StrCCPara.AppendFormat("<span class=\"linkCorreo cssnowrap\" data-toggle=\"tooltip\" title=\"{1}\">\"{0}\"</span>; ", gvRow.DataKey("Nombre").ToString(), gvRow.DataKey("Correo").ToString());
|
||||
}
|
||||
}
|
||||
}
|
||||
LtlPara.Text = StrPara.ToString();
|
||||
LtlDeUser.Text = StrDeUser.ToString();
|
||||
LtlCCPara.Text = StrCCPara.ToString();
|
||||
|
||||
|
||||
foreach (GridViewRow gvRow in GVUsuarios.Rows)
|
||||
{
|
||||
if (gvRow.RowType == DataControlRowType.DataRow)
|
||||
{
|
||||
int CveUsuario = gvRow.DataKey("CveUsuario").ToString().ToEntero();
|
||||
CheckBox chkpara = gvRow.FCCheckBox("ChkPara");
|
||||
CheckBox chkCCpara = gvRow.FCCheckBox("ChkCCP");
|
||||
chkpara.Checked = false;
|
||||
chkCCpara.Checked = false;
|
||||
|
||||
|
||||
if ((CveUsuario == CveUsuarioPara) || (CveUsuario == CveUsuarioDe))
|
||||
{
|
||||
if (CveUsuario == CveUsuarioPara)
|
||||
{
|
||||
chkpara.Checked = true;
|
||||
}
|
||||
if (CveUsuario == CveUsuarioDe)
|
||||
{
|
||||
chkCCpara.Checked = true;
|
||||
}
|
||||
}
|
||||
else if (CveUsuario.Contiene(LCveUsuarioCCP.ToArray<int>()))
|
||||
{
|
||||
chkCCpara.Checked = true;
|
||||
CCpara.AppendFormat("\"{0}\"", gvRow.DataKey("Nombre").ToString());
|
||||
}
|
||||
|
||||
}
|
||||
LtlPara.Text = para.ToString();
|
||||
LtlCCPara.Text = CCpara.ToString();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -179,7 +262,7 @@ public partial class OI_TareaDetalle : ClsPaginas
|
||||
GVcheklist.DataSource = new System.Data.DataTable();
|
||||
using (ClsOIEventos ObjOI_E = new ClsOIEventos())
|
||||
{
|
||||
if (ObjOI_E.GetOI_Eventos2(RCveEvento, UsuarioActual.CveEmpresa) && ObjOI_E.DtResultados.Rows.Count > 0)
|
||||
if (ObjOI_E.GetEventos2(RCveEvento, UsuarioActual.CveEmpresa) && ObjOI_E.DtResultados.Rows.Count > 0)
|
||||
{
|
||||
PnlUsuarios.Visible = true;
|
||||
portletMiembros.Visible = false;
|
||||
@@ -201,15 +284,27 @@ public partial class OI_TareaDetalle : ClsPaginas
|
||||
HypArchivo.NavigateUrl = string.Format("~/OI/TareaDetalle.aspx?Archivo={0}&filename={1}", ModExtensiones.Encripta(string.Format("OIFiles\\{0}\\{1}", Folio, drow["Archivo"])), ModExtensiones.Encripta(drow["Archivo"].ToString()));
|
||||
TxtArchivo.Visible = (drow["Archivo"].ToString().Length == 0);
|
||||
portletArchivo.Visible = !TxtArchivo.Visible;
|
||||
LnkUpFile.Text = (portletArchivo.Visible ? "Actualizar archivo" : "Agregar archivo");
|
||||
CveUsuarioCCPara = drow["CveUsuarioDe"].ToString().ToEntero();
|
||||
LnkUpFile.Text = (portletArchivo.Visible ? "<i class=\"fa fa-pencil\"></i> Actualizar archivo" : "<i class=\"fa fa-plus\"></i> Agregar archivo");
|
||||
Literal3.Text = portletArchivo.Visible ? "Actualizar archivo" : "Agregar archivo";
|
||||
BtnActualizarArchivo.Text = portletArchivo.Visible ? "Actualizar" : "Agregar";
|
||||
CveUsuarioDe = drow["CveUsuarioDe"].ToString().ToEntero();
|
||||
CveUsuarioPara = drow["CveUsuarioPara"].ToString().ToEntero();
|
||||
TxtAvance.Text = string.Format("{0:##0}", drow["Avance"]);
|
||||
TxtUsuarioreg.Text = string.Format("{0}", drow["NombreRegistro"]);
|
||||
TxtFechaIng.Text = string.Format("{0:dd/MM/yyyy}", drow["FechaIng"]);
|
||||
//OIE.[CveEvento], OIE.[CveTipoEvento], OIE.[Folio], OIE.[Asunto], OIE.[Descripcion], OIE.[Prioridad], OIE.[CveUsuarioDe], OIE.[CveUsuarioPara],
|
||||
//OIE.[CveEventoEstatus], OIE.[FechaInicio], OIE.[FechaFin], OIE.[FechaRealTermino], OIE.[CveRevision], OIE.[Archivo], OIE.[FechaIng],
|
||||
//OIE.[CveUsuarioIng], OIE.[CveEmpresa], OIE.[CveUsuarioModifico], OIE.[Avance]
|
||||
|
||||
LtlTitulo.Text = drow["Titulo"].ToString();
|
||||
if (ObjOI_E.GetEventosUsuario(RCveEvento, UsuarioActual.CveEmpresa))
|
||||
{
|
||||
LCveUsuarioCCP.Clear();
|
||||
foreach (System.Data.DataRow item in ObjOI_E.DtResultados.Select("CveEvento >0"))
|
||||
{
|
||||
LCveUsuarioCCP.Add(item["CveUsuario"].ToString().ToEntero());
|
||||
}
|
||||
}
|
||||
if (ObjOI_E.Getcheklist(RCveEvento))
|
||||
{
|
||||
GVcheklist.DataSource = ObjOI_E.DtResultados;
|
||||
@@ -230,10 +325,11 @@ public partial class OI_TareaDetalle : ClsPaginas
|
||||
if (EsNuevo)
|
||||
{
|
||||
string errorMessage = "";
|
||||
int cveUsuarioDe = -1;
|
||||
int cveUsuarioDe = UsuarioActual.CveUsuario;
|
||||
List<int> listaCCP = new List<int>();
|
||||
int cveUsuarioPara = -1;
|
||||
|
||||
foreach (GridViewRow gvRow in GVUsuarios.Rows)
|
||||
foreach (GridViewRow gvRow in GVUsuariosB.Rows)
|
||||
{
|
||||
if (gvRow.RowType == DataControlRowType.DataRow)
|
||||
{
|
||||
@@ -246,11 +342,19 @@ public partial class OI_TareaDetalle : ClsPaginas
|
||||
}
|
||||
if (chkCCpara.Checked)
|
||||
{
|
||||
cveUsuarioDe = CveUsuario;
|
||||
listaCCP.Add(CveUsuario);
|
||||
//cveUsuarioDe = CveUsuario;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (!cveUsuarioDe.Contiene(listaCCP.ToArray<int>()))
|
||||
{
|
||||
listaCCP.Add(cveUsuarioDe);
|
||||
}
|
||||
if (!cveUsuarioPara.Contiene(listaCCP.ToArray<int>()))
|
||||
{
|
||||
listaCCP.Add(cveUsuarioPara);
|
||||
}
|
||||
OITipoEventos cveTipoEvento = OITipoEventos.Tarea;
|
||||
string asunto = TxtAsunto.Text;
|
||||
string descripcion = TxtDescripcion.Text;
|
||||
@@ -262,7 +366,7 @@ public partial class OI_TareaDetalle : ClsPaginas
|
||||
{
|
||||
if (txtFechaI.Text.ToDateTimeExcat("dd/MM/yyyy").Year <= 1999)
|
||||
{
|
||||
errorMessage = "no se ingreso una fecha de inicio valida";
|
||||
errorMessage = "No se ingresó una fecha de inicio valida";
|
||||
|
||||
}
|
||||
else
|
||||
@@ -279,7 +383,7 @@ public partial class OI_TareaDetalle : ClsPaginas
|
||||
{
|
||||
if (txtFechaF.Text.ToDateTimeExcat("dd/MM/yyyy").Year <= 1999)
|
||||
{
|
||||
errorMessage = "no se ingreso una fecha fin valida";
|
||||
errorMessage = "No se ingresó una fecha fin valida";
|
||||
|
||||
}
|
||||
else
|
||||
@@ -311,11 +415,11 @@ public partial class OI_TareaDetalle : ClsPaginas
|
||||
|
||||
if (cveUsuarioDe <= 0)
|
||||
{
|
||||
errorMessage = "no se selecciono el miembro 'C C Para'";
|
||||
errorMessage = "No se selecciono el miembro 'C C Para'";
|
||||
}
|
||||
if (cveUsuarioPara <= 0)
|
||||
{
|
||||
errorMessage = "no se selecciono el miembro 'Para'";
|
||||
errorMessage = "No se selecciono el miembro 'Para'";
|
||||
|
||||
}
|
||||
if (errorMessage.Length == 0)
|
||||
@@ -326,7 +430,11 @@ public partial class OI_TareaDetalle : ClsPaginas
|
||||
Continuar = objOI.AddOI_Eventos2(cveTipoEvento, asunto, descripcion, prioridad, cveUsuarioDe, cveUsuarioPara, fechaInicio, fechaFin, cveRevision, archivoname, cveUsuarioIng, cveEmpresa);
|
||||
CveEvento = objOI.CveEvento;
|
||||
Folio = objOI.Folio;
|
||||
if (Continuar)
|
||||
if (CveEvento == 0)
|
||||
{
|
||||
Continuar = false;
|
||||
}
|
||||
if (Continuar && CheckListNew != null)
|
||||
{
|
||||
foreach (System.Data.DataRow item in CheckListNew.Rows)
|
||||
{
|
||||
@@ -338,7 +446,19 @@ public partial class OI_TareaDetalle : ClsPaginas
|
||||
|
||||
}
|
||||
}
|
||||
if (Continuar && CveEvento > 0)
|
||||
if (Continuar)
|
||||
{
|
||||
foreach (int item in listaCCP)
|
||||
{
|
||||
if (Continuar)
|
||||
{
|
||||
Continuar = objOI.AddEventoUsuario(CveEvento, item);
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
if (Continuar)
|
||||
{
|
||||
objOI.Commit();
|
||||
|
||||
@@ -366,7 +486,7 @@ public partial class OI_TareaDetalle : ClsPaginas
|
||||
ruta = string.Format("{0}{1}", ruta, archivoname);//, ArchivoExtencion);
|
||||
System.IO.File.Move(rutaarchivoOri, ruta);
|
||||
}
|
||||
this.Alert("Se ha agregado la nueva tarea", ModExtensiones.TipoMensaje.MsgInformacion, string.Format("location.replace(\"/OI/TareaDetalle.aspx?CveEvento={0}\");", CveEvento));
|
||||
this.Alert("Se ha agregadó la nueva tarea", ModExtensiones.TipoMensaje.MsgInformacion, string.Format("location.replace(\"/OI/TareaDetalle.aspx?CveEvento={0}\");", CveEvento));
|
||||
}
|
||||
}
|
||||
else
|
||||
@@ -393,7 +513,7 @@ public partial class OI_TareaDetalle : ClsPaginas
|
||||
{
|
||||
if (objOI.Removecheklist(gvrow.DataKey("CveEventoCheckList").ToEntero(), gvrow.DataKey("CveEvento").ToEntero(), UsuarioActual.CveUsuario))
|
||||
{
|
||||
Alert("Se ha eliminado la actividad", ModExtensiones.TipoMensaje.ToastInformacion);
|
||||
Alert("Se ha eliminadó la actividad", ModExtensiones.TipoMensaje.ToastInformacion);
|
||||
if (objOI.Getcheklist(RCveEvento))
|
||||
{
|
||||
GVcheklist.DataSource = objOI.DtResultados;
|
||||
@@ -469,7 +589,7 @@ public partial class OI_TareaDetalle : ClsPaginas
|
||||
{
|
||||
if (objOI.Upcheklist(gvrow.DataKey("CveEventoCheckList").ToEntero(), gvrow.DataKey("CveEvento").ToEntero(), gvrow.DataKey("EventoComentario"), chk.Checked, UsuarioActual.CveUsuario))
|
||||
{
|
||||
Alert("Se actualizo el estatus de la actividad", ModExtensiones.TipoMensaje.ToastInformacion);
|
||||
Alert("Se actualizó el estatus de la actividad", ModExtensiones.TipoMensaje.ToastInformacion);
|
||||
if (objOI.Getcheklist(RCveEvento))
|
||||
{
|
||||
GVcheklist.DataSource = objOI.DtResultados;
|
||||
@@ -512,7 +632,6 @@ public partial class OI_TareaDetalle : ClsPaginas
|
||||
protected void LnkcambiarEstatus_Click(object sender, EventArgs e)
|
||||
{
|
||||
this.RegistraScript(string.Format("$('#{0}').modal()", iddivCambiarEstatus));
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -524,10 +643,7 @@ public partial class OI_TareaDetalle : ClsPaginas
|
||||
|
||||
protected void LnkAgregarTema_Click(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
|
||||
this.RegistraScript(string.Format("$('#{0}').modal()", iddivAgregarTema));
|
||||
|
||||
}
|
||||
|
||||
protected void BtnAgregarTema_Click(object sender, EventArgs e)
|
||||
@@ -592,7 +708,7 @@ public partial class OI_TareaDetalle : ClsPaginas
|
||||
System.IO.File.Move(rutaarchivoOri, ruta);
|
||||
}
|
||||
this.RegistraScript(string.Format("$('#{0}').modal('hide')", iddivAgregar));
|
||||
this.Alert("comentario agregado", ModExtensiones.TipoMensaje.ToastInformacion);
|
||||
this.Alert("Comentario agregadó", ModExtensiones.TipoMensaje.ToastInformacion);
|
||||
//this.Alert("Se ha agregado la nueva tarea", ModExtensiones.TipoMensaje.MsgInformacion, string.Format("location.replace(\"/OI/TareaDetalle.aspx?CveEvento={0}\");", CveEvento));
|
||||
}
|
||||
|
||||
@@ -655,15 +771,16 @@ public partial class OI_TareaDetalle : ClsPaginas
|
||||
using (ClsOIEventos objoi = new ClsOIEventos())
|
||||
{
|
||||
continuar = objoi.AddUPEventoArchivo(RCveEvento, archivoname, UsuarioActual.CveUsuario);
|
||||
|
||||
|
||||
}
|
||||
if (continuar)
|
||||
{
|
||||
LoadTarea();
|
||||
this.RegistraScript(string.Format("$('#{0}').modal('hide')", iddivAgregarArchivo));
|
||||
this.Alert("Archivo Actualizado", ModExtensiones.TipoMensaje.ToastInformacion);
|
||||
this.Alert("Archivo Actualizadó", ModExtensiones.TipoMensaje.ToastInformacion);
|
||||
}
|
||||
UpContenido.Update();
|
||||
UpAcciones.Update();
|
||||
}
|
||||
|
||||
protected void BtnUpAvance_Click(object sender, EventArgs e)
|
||||
@@ -673,19 +790,36 @@ public partial class OI_TareaDetalle : ClsPaginas
|
||||
using (ClsOIEventos objoi = new ClsOIEventos())
|
||||
{
|
||||
continuar = objoi.UPEventoAAvance(RCveEvento, TxtAvance.Text.ToDecimal(), UsuarioActual.CveUsuario);
|
||||
if (continuar){
|
||||
if (continuar)
|
||||
{
|
||||
if (objoi.DtResultados.Rows.Count > 0)
|
||||
{
|
||||
LtlTitulo.Text = objoi.DtResultados.Rows[0]["Titulo"].ToString();
|
||||
}
|
||||
cargaActividades(objoi);
|
||||
}
|
||||
}
|
||||
}
|
||||
if (continuar)
|
||||
{
|
||||
this.Alert("Avance Actualizado", ModExtensiones.TipoMensaje.ToastInformacion);
|
||||
this.Alert("Avance Actualizadó", ModExtensiones.TipoMensaje.ToastInformacion);
|
||||
|
||||
}
|
||||
UpTitulo.Update();
|
||||
}
|
||||
|
||||
protected void LnkAddTtemaB_Click(object sender, EventArgs e)
|
||||
{
|
||||
this.RegistraScript(string.Format("$('#{0}').modal()", iddivAgregarTema));
|
||||
}
|
||||
|
||||
protected void LnkUpUsuarios_Click(object sender, EventArgs e)
|
||||
{
|
||||
this.RegistraScript(string.Format("$('#{0}').modal()", iddivAgregarPara));
|
||||
}
|
||||
|
||||
protected void BtnUpMiembros_Click(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user