protected void GridView1_RowCommand(object sender, GridViewCommandEventArgs e) { int filaSeleccionada = Convert.ToInt32(e.CommandArgument); tools _tools = new tools(); SecureQueryString QueryStringSeguro = new SecureQueryString(_tools.byteParaQueryStringSeguro(), Request["data"]); String Filtro = Session["idEmpresa"].ToString(); if (e.CommandName == "Agendar") { Reclutamiento ConstructorReclutamiento = new Reclutamiento(Session["idEmpresa"].ToString(), Session["USU_LOG"].ToString()); Decimal ID_LIQ_NOMINA_EMPLEADOS = Convert.ToDecimal(GridViewListarContactosPorSolicitud.DataKeys[filaSeleccionada].Values["Id_Solicitud_requerimiento"]); Decimal ID_RegistroDeLista = Convert.ToDecimal(GridViewListarContactosPorSolicitud.DataKeys[filaSeleccionada].Values["Id_Registro"]); AspPanleResumenRequerimiento.Visible = true; PanelListaDeCandidatos.Visible = true; panelAgendarCandidato.Visible = true; String Id_Solicitud = Convert.ToString(ID_LIQ_NOMINA_EMPLEADOS); String Id_Registro = Convert.ToString(ID_RegistroDeLista); this.lblIdRegistro.Text = Convert.ToString(Id_Solicitud); this.LblRegistrodeLista.Text = Convert.ToString(Id_Registro); TextBoxFechaAgenda.Text = ""; DropDownListPsicologo.ClearSelection(); GridViewAgendaPsicologoPrincipal.Visible = false; RadioButtonList1.ClearSelection(); } if (e.CommandName == "ASISTENCIA") { Reclutamiento ConstructorReclutamiento = new Reclutamiento(Session["idEmpresa"].ToString(), Session["USU_LOG"].ToString()); DataTable PanelReclutador = ConstructorReclutamiento.CargarGridSeguimientoRecepciom(Session["idEmpresa"].ToString(), HiddenField_SEGUIMIENTO_RECEPCION.Value); LabelREGISTRO.Text = PanelReclutador.Rows[0]["Id_Solicitud_requerimiento"].ToString(); txtFechaCitada.Text = PanelReclutador.Rows[0]["FECHA"].ToString(); txtFechaCitada.Enabled = false; TextBoxHora.Text = Convert.ToString(GridViewSeguimientoRecepcion.DataKeys[filaSeleccionada].Values["HORA"]); TextBoxHora.Enabled = false; TextBoxCandidatoSitado.Text = PanelReclutador.Rows[0]["CANDIDATO"].ToString(); TextBoxCandidatoSitado.Enabled = false; PanelSeguimientoAsistencia.Visible = false; seguimientoResepcion(HiddenField_SEGUIMIENTO_RECEPCION.Value); } if (e.CommandName == "SEGUIMIENTO") { Reclutamiento ConstructorReclutamiento = new Reclutamiento(Session["idEmpresa"].ToString(), Session["USU_LOG"].ToString()); DataTable PanelReclutador = ConstructorReclutamiento.CargarGridSeguimientoRecepciom(Session["idEmpresa"].ToString(), HiddenField_SEGUIMIENTO_RECEPCION.Value); ConstructorReclutamiento.SeguimientoContacto(Session["idEmpresa"].ToString(),Convert.ToString(GridViewSeguimientoRecepcion.DataKeys[filaSeleccionada].Values["Id_Registro_Empleado"])); seguimientoResepcion(HiddenField_SEGUIMIENTO_RECEPCION.Value); } if (e.CommandName == "Agendar_Cita") { AspPanleResumenRequerimiento.Visible = true; Reclutamiento ConstructorReclutamiento = new Reclutamiento(Session["idEmpresa"].ToString(), Session["USU_LOG"].ToString()); DataTable PanelReclutador = ConstructorReclutamiento.CargarGridSeguimientoRecepciom(Session["idEmpresa"].ToString(), this.TextBoxFiltro.Text); String @Id_Registro = this.LblRegistrodeLista.Text; String @Fecha_De_Cita = this.TextBoxFechaAgenda.Text; String @Psicologo = this.DropDownListPsicologo.SelectedValue; String @Usuario_Crea_Registro = Session["USU_LOG"].ToString(); String @Hora = Convert.ToString(GridViewAgendaPsicologoPrincipal.DataKeys[filaSeleccionada].Values["HORA"]); String @AceptaOferta = this.RadioButtonList1.SelectedValue; ConstructorReclutamiento.AgendarContactoPorFecha(Session["idEmpresa"].ToString(), @Id_Registro, @Fecha_De_Cita, @Psicologo, @Usuario_Crea_Registro, @Hora, @AceptaOferta); AspPanleResumenRequerimiento.Visible = true; Informar(Panel_FONDO_MENSAJE, Image_MENSAJE_POPUP, Panel_MENSAJES, Label_MENSAJE, "Se agendo correctamente el Candidato.", Proceso.Correcto); CargarGridListaContactos(this.lblIdRegistro.Text); lblIdRegistro.Text = ""; LblRegistrodeLista.Text = ""; this.TextBoxFechaAgenda.Text = ""; this.TextBoxFechaAgenda.Enabled = false; this.DropDownListPsicologo.ClearSelection(); this.DropDownListPsicologo.Enabled = false; TextBoxNombre.Text = ""; TextBoxTelefono.Text = ""; TextBoxApellido.Text = ""; TextBoxDocumento.Text = ""; DropDownListFuentesReclutamiento.ClearSelection(); panelAgendarCandidato.Visible = false; } }
protected void GridViewAgendaPsicologoPrincipal_RowCommand(object sender, GridViewCommandEventArgs e) { int filaSeleccionada = Convert.ToInt32(e.CommandArgument); tools _tools = new tools(); SecureQueryString QueryStringSeguro = new SecureQueryString(_tools.byteParaQueryStringSeguro(), Request["data"]); String Filtro = Session["idEmpresa"].ToString(); if (e.CommandName == "AgendarContacto") { AspPanleResumenRequerimiento.Visible = true; Reclutamiento ConstructorReclutamiento = new Reclutamiento(Session["idEmpresa"].ToString(), Session["USU_LOG"].ToString()); DataTable PanelReclutador = ConstructorReclutamiento.CargarGridSeguimientoRecepciom(Session["idEmpresa"].ToString(), this.TextBoxFiltro.Text); String @Id_Registro = this.LblRegistrodeLista.Text; String @Fecha_De_Cita = this.TextBoxFechaAgenda.Text; String @Psicologo = this.DropDownListPsicologo.SelectedValue; String @Usuario_Crea_Registro = Session["USU_LOG"].ToString(); String @Hora = Convert.ToString(GridViewAgendaPsicologoPrincipal.DataKeys[filaSeleccionada].Values["HORA"]); String @AceptaOferta = this.RadioButtonList1.SelectedValue; ConstructorReclutamiento.AgendarContactoPorFecha(Session["idEmpresa"].ToString(), @Id_Registro, @Fecha_De_Cita, @Psicologo, @Usuario_Crea_Registro, @Hora, @AceptaOferta); AspPanleResumenRequerimiento.Visible = true; Informar(Panel_FONDO_MENSAJE, Image_MENSAJE_POPUP, Panel_MENSAJES, Label_MENSAJE, "Se agendo correctamente el Candidato.", Proceso.Correcto); CargarGridListaContactos(this.lblIdRegistro.Text); lblIdRegistro.Text = ""; LblRegistrodeLista.Text = ""; this.TextBoxFechaAgenda.Text = ""; this.TextBoxFechaAgenda.Enabled = false; this.DropDownListPsicologo.ClearSelection(); this.DropDownListPsicologo.Enabled = false; TextBoxNombre.Text = ""; TextBoxTelefono.Text = ""; TextBoxApellido.Text = ""; TextBoxDocumento.Text = ""; DropDownListFuentesReclutamiento.ClearSelection(); panelAgendarCandidato.Visible = false; CargarGridHojaTrabajoReclutador(); } }
private void seguimientoResepcion(String @filtro) { Reclutamiento ConstructorReclutamiento = new Reclutamiento(Session["idEmpresa"].ToString(), Session["USU_LOG"].ToString()); DataTable PanelReclutador = ConstructorReclutamiento.CargarGridSeguimientoRecepciom(Session["idEmpresa"].ToString(), @filtro); GridViewSeguimientoRecepcion.DataSource = PanelReclutador; GridViewSeguimientoRecepcion.DataBind(); }