Example #1
0
    void showgrid(int VacancyID)
    {
        ICandidate_TestManager objCandidateTestManager = Candidate_TestManagerFactory.CandidateTest_Manager();
        List <ICandidate_Test> lstCandidateTest        = objCandidateTestManager.display_candidate_toHR();

        DataTable  objDataTable   = new DataTable();
        DataColumn objDataColumn1 = new DataColumn("get_VacancyID");

        objDataTable.Columns.Add(objDataColumn1);
        DataColumn objDataColumn2 = new DataColumn("get_CandidateProfileID");

        objDataTable.Columns.Add(objDataColumn2);
        DataColumn objDataColumn3 = new DataColumn("get_DOB");

        objDataTable.Columns.Add(objDataColumn3);
        DataColumn objDataColumn4 = new DataColumn("get_Gender");

        objDataTable.Columns.Add(objDataColumn4);
        DataColumn objDataColumn5 = new DataColumn("get_TestID");

        objDataTable.Columns.Add(objDataColumn5);
        DataColumn objDataColumn6 = new DataColumn("get_TestStatus");

        objDataTable.Columns.Add(objDataColumn6);
        DataColumn objDataColumn7 = new DataColumn("get_WrittenTestDate");

        objDataTable.Columns.Add(objDataColumn7);
        DataColumn objDataColumn8 = new DataColumn("get_TechnicalInterviewDate");

        objDataTable.Columns.Add(objDataColumn8);
        DataColumn objDataColumn9 = new DataColumn("get_HRInterviewDate");

        objDataTable.Columns.Add(objDataColumn9);

        foreach (ICandidate_Test candidate in lstCandidateTest)
        {
            if (candidate.get_VacancyID == VacancyID)
            {
                DataRow objDataRow = objDataTable.NewRow();
                objDataRow["get_VacancyID"]          = candidate.get_VacancyID;
                objDataRow["get_CandidateProfileID"] = candidate.get_CandidateProfileID;
                objDataRow["get_DOB"]                    = candidate.get_DOB.ToString("dd/MM/yyyy");
                objDataRow["get_HRInterviewDate"]        = candidate.get_HRInterviewDate.ToString("dd/MM/yyyy");
                objDataRow["get_Gender"]                 = candidate.get_Gender;
                objDataRow["get_TestID"]                 = candidate.get_TestID;
                objDataRow["get_TestStatus"]             = candidate.get_TestStatus;
                objDataRow["get_WrittenTestDate"]        = candidate.get_WrittenTestDate.ToString("dd/MM/yyyy");
                objDataRow["get_TechnicalInterviewDate"] = candidate.get_TechnicalInterviewDate.ToString("dd/MM/yyyy");
                objDataRow["get_HRInterviewDate"]        = candidate.get_HRInterviewDate.ToString("dd/MM/yyyy");
                objDataTable.Rows.Add(objDataRow);
            }
        }

        gv_CandidateProfile.DataSource = objDataTable;
        gv_CandidateProfile.DataBind();
    }
Example #2
0
    public void popvacancy()
    {
        ICandidateManager      objCandidateManager = CandidateManagerFactory.Candidate_Manager();
        List <int>             lstVacancy          = objCandidateManager.getVacancies();
        ICandidate_TestManager candidate_test      = Candidate_TestManagerFactory.CandidateTest_Manager();
        List <ICandidate_Test> lstcandidateprofile = candidate_test.display_candidate_toHR();

        ddlvacancyID.Items.Add("--select--");

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