Exemplo n.º 1
0
    public void showlist()
    {
        try
        {
            ICandidateManager        objCandidateManager = CandidateManagerFactory.Candidate_Manager();
            List <int>               lstVancancies       = objCandidateManager.getVacancies();
            List <ICandidateProfile> lstcandidates       = objCandidateManager.display_candidate_toPC();

            for (int i = 0; i < lstVancancies.Count; i++)
            {
                foreach (ICandidateProfile objcandidate in lstcandidates)
                {
                    if (objcandidate.get_VacancyID == lstVancancies.ElementAt(i) && (objcandidate.get_TestID == 0))
                    {
                        ListItem Dropdownlist = new ListItem(Convert.ToString(lstVancancies.ElementAt(i)), Convert.ToString(lstVancancies.ElementAt(i)), true);

                        ddlvacancy.Items.Add(Dropdownlist);
                        break;
                    }
                }
            }
        }
        catch (Exception)
        {
        }
    }
Exemplo n.º 2
0
    public void pop_ddl_vac()
    {
        ICandidateManager objCandidateManager = (ICandidateManager)CandidateManagerFactory.Candidate_Manager();
        List <int>        lstVacancy          = objCandidateManager.getVacancies();

        ddlVacancyID.Items.Add("--select--");
        foreach (int element in lstVacancy)
        {
            ddlVacancyID.Items.Add(element.ToString());
        }
    }
    public void popvacancy()
    {
        ICandidateManager        objCandidateManager = CandidateManagerFactory.Candidate_Manager();
        List <int>               lstVacancy          = objCandidateManager.getVacancies();
        List <ICandidateProfile> lstcandidateprofile = objCandidateManager.display_candidate_toPC();

        ddlvacancyID.Items.Add("--select--");
        foreach (int element in lstVacancy)
        {
            foreach (ICandidateProfile candidate in lstcandidateprofile)
            {
                if (candidate.get_VacancyID == element)
                {
                    ddlvacancyID.Items.Add(element.ToString());
                    break;
                }
            }
        }
    }