private void CargarSeleccion(Decimal ID_EMPRESA,tabla.proceso proceso) { contactos _contacto = new contactos(Session["idEmpresa"].ToString()); DataTable tablaContactosOriginal = _contacto.ObtenerContactosPorIdEmpresa(ID_EMPRESA, proceso); GridView_ContactosSeleccion.DataSource = tablaContactosOriginal; GridView_ContactosSeleccion.DataBind(); pruebaPerfil _pp = new pruebaPerfil(Session["idEmpresa"].ToString(), Session["USU_LOG"].ToString()); DataTable tablaPruebas = _pp.ObtenerPruebasVSCargoPorEmpresa(ID_EMPRESA); CargarTablaConfiguradaParaPruebasCargosSeleccion(tablaPruebas); envioCandidato _envioCandidato = new envioCandidato(Session["idEmpresa"].ToString(), Session["USU_LOG"].ToString()); DataTable tablaCondicionesEnvio = _envioCandidato.ObtenerTodosLosContactosParaEnvioDeCandidatosPorIdEmpresa(ID_EMPRESA); if (tablaCondicionesEnvio.Rows.Count > 0) { GridView_CondEnvioSeleccion.DataSource = tablaCondicionesEnvio; GridView_CondEnvioSeleccion.DataBind(); } else { GridView_CondEnvioSeleccion.DataSource = null; GridView_CondEnvioSeleccion.DataBind(); } }
private void CargarFormularioContratacion(Decimal ID_EMPRESA, tabla.proceso proceso) { contactos _contacto = new contactos(Session["idEmpresa"].ToString()); DataTable tablaContactosOriginal = _contacto.ObtenerContactosPorIdEmpresa(ID_EMPRESA, proceso); HiddenField_contratacion_idEmpresa.Value = ID_EMPRESA.ToString(); GridView_ContactosContratacion.DataSource = tablaContactosOriginal; GridView_ContactosContratacion.DataBind(); condicionesContratacion _condContratacion = new condicionesContratacion(Session["idEmpresa"].ToString(), Session["USU_LOG"].ToString()); DataTable tablaExamenesMedicos = _condContratacion.ObtenerExamenesVSCargosPorIdEmpresa(Convert.ToDecimal(HiddenField_contratacion_idEmpresa.Value)); CargarTablaConfiguradaParaExamenesMedicosContratacion(tablaExamenesMedicos); DataTable tablaBancosPorCiudad = _condContratacion.ObtenerBancosVSCiudadesPorIdEmpresa(Convert.ToDecimal(HiddenField_contratacion_idEmpresa.Value)); CargarTablaConfiguradaParaBancosContratacion(tablaBancosPorCiudad); Cargar(GridView_contratacion_cobertura, Convert.ToDecimal(HiddenField_contratacion_idEmpresa.Value)); }