oi cambios
This commit is contained in:
@@ -35,11 +35,13 @@ public partial class OI_MinutaDetalle : ClsPaginas
|
||||
DdlSucursales.DataBind();
|
||||
DdlSucursales.Items.Insert(0, new ListItem("Todos", "-1"));
|
||||
GVUsuarios.DataSource = get_GlobalDTUsuarios(CveEmpresa: UsuarioActual.CveEmpresa).FiltraParametros("Estatus =1 ", "Rol ASC");
|
||||
GVUsuariosB.DataSource = GVUsuarios.DataSource;
|
||||
DdlTareaPara.DataSource = GVUsuarios.DataSource;
|
||||
DdlTareaPara.DataBind();
|
||||
DdlAgendaPara.DataSource = GVUsuarios.DataSource;
|
||||
DdlAgendaPara.DataBind();
|
||||
GVUsuarios.DataBind();
|
||||
GVUsuariosB.DataBind();
|
||||
|
||||
if (Request["CveEvento"] != null)
|
||||
{
|
||||
@@ -93,7 +95,7 @@ public partial class OI_MinutaDetalle : ClsPaginas
|
||||
TabAgendas.Visible = true;
|
||||
TabArchivos.Visible = true;
|
||||
LnkTerminar_EnviarMinuta.Visible = true;
|
||||
LnkEnviarMinuta.Visible = true;
|
||||
LnkEnviarMinuta.Visible = false;
|
||||
TxtAsunto.Enabled = false;
|
||||
TxtDescripcion.Enabled = false;
|
||||
//LnkUpFileVisible = true;
|
||||
@@ -124,6 +126,7 @@ public partial class OI_MinutaDetalle : ClsPaginas
|
||||
int CveEventoEstatus = drow["CveEventoEstatus"].ToString().ToEntero();
|
||||
if (CveEventoEstatus ==4)
|
||||
{
|
||||
LnkEnviarMinuta.Visible = true;
|
||||
LnkSaveAcuerdos.Visible = false;
|
||||
LnkAgregarAgenda.Visible = false;
|
||||
LnkTerminar_EnviarMinuta.Visible = false;
|
||||
@@ -171,6 +174,20 @@ public partial class OI_MinutaDetalle : ClsPaginas
|
||||
LtlDeUser.Text = StrDeUser.ToString();
|
||||
LtlCCPara.Text = StrCCPara.ToString();
|
||||
}
|
||||
|
||||
foreach (GridViewRow gvRow in GVUsuariosB.Rows)
|
||||
{
|
||||
if (gvRow.RowType == DataControlRowType.DataRow)
|
||||
{
|
||||
int CveUsuario = gvRow.DataKey("CveUsuario").ToString().ToEntero();
|
||||
CheckBox ChkOk = gvRow.FCCheckBox("ChkOk");
|
||||
if (CveUsuario.Contiene(LCveUsuarioCCP.ToArray<int>()))
|
||||
{
|
||||
ChkOk.Checked = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (ObjOI_E.Getcheklist(RCveEvento))
|
||||
{
|
||||
GVcheklist.DataSource = ObjOI_E.DtResultados;
|
||||
@@ -422,8 +439,21 @@ public partial class OI_MinutaDetalle : ClsPaginas
|
||||
|
||||
int cveUsuarioDe = UsuarioActual.CveUsuario;
|
||||
List<int> listaCCP = new List<int>();
|
||||
int cveUsuarioPara = DdlTareaPara.SelectedValue.ToEntero();
|
||||
|
||||
foreach (GridViewRow gvRow in GVUsuariosB.Rows)
|
||||
{
|
||||
if (gvRow.RowType == DataControlRowType.DataRow)
|
||||
{
|
||||
CheckBox ChkOk = gvRow.FCCheckBox("ChkOk");
|
||||
if (ChkOk.Checked)
|
||||
{
|
||||
int CveUsuario = gvRow.DataKey("CveUsuario").ToString().ToEntero();
|
||||
listaCCP.Add(CveUsuario);
|
||||
}
|
||||
}
|
||||
}
|
||||
int cveUsuarioPara = DdlTareaPara.SelectedValue.ToEntero();
|
||||
|
||||
OITipoEventos cveTipoEvento = OITipoEventos.Tarea;
|
||||
string asunto = TxtTareaAsunto.Text;
|
||||
string descripcion = TxtTareaDescripcion.Text;
|
||||
@@ -541,7 +571,12 @@ public partial class OI_MinutaDetalle : ClsPaginas
|
||||
System.IO.File.Move(rutaarchivoOri, ruta);
|
||||
}
|
||||
cargarAgenda();
|
||||
this.Alert("Se ha agregadó la nueva tarea", ModExtensiones.TipoMensaje.MsgInformacion, string.Format("window.open(\"/OI/TareaDetalle.aspx?CveEvento={0}\", \"_blank\");", CveEvento));
|
||||
this.Alert("Se ha agregadó la nueva tarea", ModExtensiones.TipoMensaje.MsgInformacion);
|
||||
TxtTareaAsunto.Text = "";
|
||||
TxtTareaDescripcion.Text = "";
|
||||
txtTareaFechaI.Text = "";
|
||||
txtTareaFechaF.Text = "";
|
||||
//this.Alert("Se ha agregadó la nueva tarea", ModExtensiones.TipoMensaje.MsgInformacion, string.Format("window.open(\"/OI/TareaDetalle.aspx?CveEvento={0}\", \"_blank\");", CveEvento));
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -660,6 +695,10 @@ public partial class OI_MinutaDetalle : ClsPaginas
|
||||
System.IO.File.Move(rutaarchivoOri, ruta);
|
||||
}
|
||||
this.Alert("Se ha agregadó la nueva agenda");
|
||||
TxtAgendaAsunto.Text = "";
|
||||
TxtAgendaDescripcion.Text = "";
|
||||
txtAgendaFechaI.Text = "";
|
||||
txtAgendaFechaF.Text = "";
|
||||
cargarAgenda();
|
||||
//this.Alert("Se ha agregadó la nueva agenda", ModExtensiones.TipoMensaje.MsgInformacion, string.Format("window.open(\"/OI/TareaDetalle.aspx?CveEvento={0}\", \"_blank\");", CveEvento));
|
||||
}
|
||||
@@ -758,6 +797,7 @@ public partial class OI_MinutaDetalle : ClsPaginas
|
||||
Alert("La minuta se termino con exito.", ModExtensiones.TipoMensaje.MsgInformacion);
|
||||
}
|
||||
|
||||
LnkEnviarMinuta.Visible = true;
|
||||
//CargaDatos();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user