Пример #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)
        {
        }
    }
Пример #2
0
    protected void gv_UpdateMedicalStatus_RowUpdating(object sender, GridViewUpdateEventArgs e)
    {
        try
        {
            DropDownList      ddlmedical          = gv_UpdateMedicalStatus.Rows[e.RowIndex].FindControl("ddlMedicalStatus") as DropDownList;
            ICandidateManager objcandidateManager = CandidateManagerFactory.Candidate_Manager();
            Label             lb1 = (Label)gv_UpdateMedicalStatus.Rows[e.RowIndex].FindControl("lbCandidateID");
            Label             lb2 = (Label)gv_UpdateMedicalStatus.Rows[e.RowIndex].FindControl("lbTestStatus");


            if (ddlmedical.SelectedValue != "rejected" && lb2.Text == "medical testing")
            {
                lb2.Text = "BGC initiated";
            }
            int inta = Convert.ToInt32(ddlmedical.SelectedIndex);
            inta++;
            int intb = 0;
            if (lb2.Text == "written conducted")
            {
                intb = 1;
            }
            else if (lb2.Text == "technical conducted")
            {
                intb = 2;
            }
            else if (lb2.Text == "HR conducted")
            {
                intb = 3;
            }
            else if (lb2.Text == "medical testing")
            {
                intb = 4;
            }
            else if (lb2.Text == "BGC initiated")
            {
                intb = 5;
            }
            else if (lb2.Text == "confirmed")
            {
                intb = 6;
            }

            int inti = objcandidateManager.med_update(Convert.ToInt32(lb1.Text), intb, inta);
            if (inti == 0)
            {
                string script2 = "alert('The test status is " + lb2.Text + " for candidate with id: " + lb1.Text + ".');";
                ClientScript.RegisterClientScriptBlock(this.GetType(), "Alert", script2, true);
            }
            else
            {
                string script2 = "alert('Successfully updated Medical Test Status.');";
                ClientScript.RegisterClientScriptBlock(this.GetType(), "Alert", script2, true);
            }
            gv_UpdateMedicalStatus.EditIndex = -1;
            med_Status(Convert.ToInt32(ddlVacancyID.SelectedValue));
        }
        catch (Exception)
        {
        }
    }
Пример #3
0
 /// <summary>
 /// no argument constructor
 /// </summary>
 public ElectionController()
 {
     _electionManager  = new ElectionManager();
     _candidateManager = new CandidateManager();
     _userManager      = new UserManager();
     _delegateManager  = new DelegateManager();
 }
Пример #4
0
    public void showlist()
    {
        ddl_vacancy.Items.Clear();
        IVacancyManager   objVacancyManager = VacancyManagerFactory.Create_VacancyManager();
        List <IVacancy>   list_vacancies    = objVacancyManager.GetVacancy();
        ICandidateManager candidate_manager = CandidateManagerFactory.Candidate_Manager();

        ddl_vacancy.Items.Add("--select--");
        foreach (IVacancy vacancy in list_vacancies)
        {
            if ((vacancy.get_Status != 2) && (candidate_manager.filledstatus_50percent(vacancy.get_VacancyID) == false) && (candidate_manager.filledstatus_bydate_TestID(vacancy.get_VacancyID) == true))
            {
                if ((vacancy.get_Status == 0) && (candidate_manager.filledstatus_bydate(vacancy.get_VacancyID) == true))
                {
                }
                else
                {
                    ListItem dropdownlist = new ListItem(Convert.ToString(vacancy.get_VacancyID), Convert.ToString(vacancy.get_VacancyID), true);

                    ddl_vacancy.Items.Add(dropdownlist);
                }
            }
            if ((candidate_manager.filledstatus_50percent(vacancy.get_VacancyID) == true) && (candidate_manager.filledstatus_bydate(vacancy.get_VacancyID) == true))
            {
                objVacancyManager.updateStatus(vacancy.get_VacancyID, 2);
            }
        }
        ddl_vacancy.SelectedIndex = 0;
    }
Пример #5
0
 public VacancyController(IMapper mapper, IVacancyManager vacancyManager, IUserManager userManager, ISkillManager skillManager, ICandidateManager candidateManager)
 {
     this.mapper           = mapper;
     this.vacancyManager   = vacancyManager;
     this.userManager      = userManager;
     this.skillManager     = skillManager;
     this.candidateManager = candidateManager;
 }
Пример #6
0
 public CandidateController(IMapper mapper, ICandidateManager candidateManager, IVacancyManager vacancyManager, IUserManager userManager, ISkillManager skillManager, IWebHostEnvironment appEnvironment)
 {
     this.mapper           = mapper;
     this.candidateManager = candidateManager;
     this.vacancyManager   = vacancyManager;
     this.userManager      = userManager;
     this.skillManager     = skillManager;
     this.appEnvironment   = appEnvironment;
 }
Пример #7
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());
        }
    }
    void showgrid(int VacancyID)
    {
        try
        {
            ICandidateManager        objcandidatemanager = CandidateManagerFactory.Candidate_Manager();
            List <ICandidateProfile> lstcandidate        = objcandidatemanager.display_candidate_toPC();

            DataTable  objDataTable   = new DataTable();
            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_Location");
            objDataTable.Columns.Add(objDataColumn5);
            DataColumn objDataColumn6 = new DataColumn("get_Percentage_10");
            objDataTable.Columns.Add(objDataColumn6);
            DataColumn objDataColumn7 = new DataColumn("get_Percentage_12");
            objDataTable.Columns.Add(objDataColumn7);
            DataColumn objDataColumn8 = new DataColumn("get_GapInEducation");
            objDataTable.Columns.Add(objDataColumn8);
            DataColumn objDataColumn9 = new DataColumn("get_GapInExperience");
            objDataTable.Columns.Add(objDataColumn9);

            foreach (ICandidateProfile candidate in lstcandidate)
            {
                if (candidate.get_VacancyID == VacancyID)
                {
                    DataRow objDataRow = objDataTable.NewRow();
                    objDataRow["get_CandidateProfileID"] = candidate.get_CandidateProfileID;
                    objDataRow["get_DOB"]             = candidate.get_DOB.ToString("dd/MM/yyyy");
                    objDataRow["get_Gender"]          = candidate.get_Gender;
                    objDataRow["get_Location"]        = candidate.get_Location;
                    objDataRow["get_Percentage_10"]   = candidate.get_Percentage_10;
                    objDataRow["get_Percentage_12"]   = candidate.get_Percentage_12;
                    objDataRow["get_GapInEducation"]  = candidate.get_GapInEducation;
                    objDataRow["get_GapInExperience"] = candidate.get_GapInExperience;
                    objDataTable.Rows.Add(objDataRow);
                }
            }

            gv_CandidateProfile.DataSource = objDataTable;
            gv_CandidateProfile.DataBind();
        }
        catch (Exception)
        {
        }
    }
Пример #9
0
    protected void gv_RowDeleting(object sender, GridViewDeleteEventArgs e)
    {
        try
        {
            int intCandidateProfileID             = Convert.ToInt32(((Label)gv.Rows[e.RowIndex].FindControl("CandidateProfileID")).Text);
            ICandidateManager objCandidateManager = CandidateManagerFactory.Candidate_Manager();
            if (objCandidateManager.DeleteCandidateProfile(intCandidateProfileID) == 0)
            {
                string script2 = "alert('Candidate with ID:'" + intCandidateProfileID + "' has been deleted');";
                ClientScript.RegisterClientScriptBlock(this.GetType(), "Alert", script2, true);
            }

            showgrid(Convert.ToInt32(ddlvacancy.SelectedItem.Text));
        }
        catch (Exception)
        {
        }
    }
    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;
                }
            }
        }
    }
Пример #11
0
    public void showcomplete(int vacancyID)
    {
        int count = 0;
        ICandidateManager        objcandidatemanager = CandidateManagerFactory.Candidate_Manager();
        List <ICandidateProfile> candidate           = objcandidatemanager.display_candidate_toPC();

        foreach (ICandidateProfile element in candidate)
        {
            if (element.get_VacancyID == vacancyID)
            {
                count++;
            }
        }
        tbtotal.Text = count.ToString();
        if ((objcandidatemanager.filledstatus_20percent(vacancyID) == true) && (objcandidatemanager.filledstatus_bydate(vacancyID) == false))
        {
            Panel2.Visible   = true;
            Panel1.Visible   = true;
            Complete.Visible = true;
            Cancel.Visible   = false;
        }

        else if ((objcandidatemanager.filledstatus_20percent(vacancyID) == false) && (objcandidatemanager.filledstatus_bydate(vacancyID) == true))
        {
            Panel2.Visible   = true;
            Panel1.Visible   = false;
            Complete.Visible = false;
            Cancel.Visible   = true;
        }

        else if ((objcandidatemanager.filledstatus_20percent(vacancyID) == true) && (objcandidatemanager.filledstatus_bydate(vacancyID) == true))
        {
            Panel2.Visible   = true;
            Panel1.Visible   = false;
            Complete.Visible = true;
            Cancel.Visible   = true;
        }
        else if ((objcandidatemanager.filledstatus_20percent(vacancyID) == false) && (objcandidatemanager.filledstatus_bydate(vacancyID) == false))
        {
            Panel2.Visible = false;
            Panel1.Visible = true;
        }
    }
 public CandidateAppService(ICandidateManager candidateManager, IUserManager userManager, IMapper mapper)
 {
     this.candidateManager = candidateManager;
     this.userManager      = userManager;
     this.mapper           = mapper;
 }
Пример #13
0
 public CandidateController(ICandidateManager candidateManager)
 {
     _candidateManager = candidateManager;
 }
    protected void gv_TestStatus_RowUpdating(object sender, GridViewUpdateEventArgs e)
    {
        ITestStatusManager objTestStatusManager              = TestStatusManagerFactory.Create_TestStatusManager();
        Label                    lbCandidateID               = (Label)gv_TestStatus.Rows[e.RowIndex].FindControl("CandidateID");
        DropDownList             ddlWrittenTestStatus        = (DropDownList)gv_TestStatus.Rows[e.RowIndex].FindControl("WrittenTestStatus");
        DropDownList             ddlTechnicalInterviewStatus = (DropDownList)gv_TestStatus.Rows[e.RowIndex].FindControl("TechnicalInterviewStatus");
        DropDownList             ddlHRInterviewStatus        = (DropDownList)gv_TestStatus.Rows[e.RowIndex].FindControl("HRInterviewStatus");
        int                      i = objTestStatusManager.update_TestStatus(Convert.ToInt32(lbCandidateID.Text), ddlWrittenTestStatus.Text, ddlTechnicalInterviewStatus.Text, ddlHRInterviewStatus.Text);
        ICandidateManager        objCandidateManager = CandidateManagerFactory.Candidate_Manager();
        List <ICandidateProfile> lstCandidateProfile = new List <ICandidateProfile>();

        lstCandidateProfile = objCandidateManager.display_candidate_toPC();
        switch (i)
        {
        case 1: int status = 0;
            foreach (ICandidateProfile element in lstCandidateProfile)
            {
                if (element.get_CandidateProfileID == Convert.ToInt32(lbCandidateID.Text))
                {
                    if (element.get_TestStatus == 2)
                    {
                        status = 1;
                    }
                    else if (element.get_TestStatus == 3)
                    {
                        status = 2;
                    }
                    else if (element.get_TestStatus == 4)
                    {
                        status = 3;
                    }
                }
            }
            switch (status)
            {
            case 1: string script2 = "alert('Candidate ID :" + lbCandidateID.Text + " Written Test status has been updated successfully.');";
                ClientScript.RegisterClientScriptBlock(this.GetType(), "Alert", script2, true);
                break;

            case 2: string script3 = "alert('Candidate ID :" + lbCandidateID.Text + " Technical Interview status has been updated successfully.');";
                ClientScript.RegisterClientScriptBlock(this.GetType(), "Alert", script3, true);
                break;

            case 3: string script4 = "alert('Candidate ID :" + lbCandidateID.Text + " HR Interview status has been updated successfully.');";
                ClientScript.RegisterClientScriptBlock(this.GetType(), "Alert", script4, true);
                break;
            }

            break;

        case 2: string script5 = "alert('HR Interview cannot be cleared before Technical and Written Test.');";
            ClientScript.RegisterClientScriptBlock(this.GetType(), "Alert", script5, true);
            break;

        case 3: string script6 = "alert('Technical Interview cannot be cleared before Written Test.');";
            ClientScript.RegisterClientScriptBlock(this.GetType(), "Alert", script6, true);
            break;

        case 4: string script7 = "alert('Technical or HR Interview cannot be cleared before Written Test.');";
            ClientScript.RegisterClientScriptBlock(this.GetType(), "Alert", script7, true);
            break;

        case 5: string script8 = "alert('HR cannot be cleared before Technical.');";
            ClientScript.RegisterClientScriptBlock(this.GetType(), "Alert", script8, true);
            break;
        }

        gv_TestStatus.EditIndex = -1;
        showgrid();
    }
Пример #15
0
    public void med_Status(int vac_ID)
    {
        try
        {
            ICandidateManager        objCandidate  = CandidateManagerFactory.Candidate_Manager();
            List <ICandidateProfile> lstCandidates = objCandidate.display_candidate_toPC();
            DataTable  objDataTable  = new DataTable();
            DataColumn objDatacolum1 = new DataColumn("CandidateID");
            objDataTable.Columns.Add(objDatacolum1);
            DataColumn objDatacolum2 = new DataColumn("TestStatus");
            objDataTable.Columns.Add(objDatacolum2);
            DataColumn objDatacolum3 = new DataColumn("MedicalTestStatus");
            objDataTable.Columns.Add(objDatacolum3);

            foreach (ICandidateProfile element in lstCandidates)
            {
                DataRow objDataRow = objDataTable.NewRow();
                if (element.get_VacancyID == vac_ID)
                {
                    objDataRow["CandidateID"] = element.get_CandidateProfileID;
                    if (element.get_TestStatus == 0)
                    {
                        objDataRow["TestStatus"] = "not initialised";
                    }
                    else if (element.get_TestStatus == 1)
                    {
                        objDataRow["TestStatus"] = "written conducted";
                    }
                    else if (element.get_TestStatus == 2)
                    {
                        objDataRow["TestStatus"] = "technical conducted";
                    }
                    else if (element.get_TestStatus == 3)
                    {
                        objDataRow["TestStatus"] = "HR conducted";
                    }
                    else if (element.get_TestStatus == 4)
                    {
                        objDataRow["TestStatus"] = "medical testing";
                    }
                    else if (element.get_TestStatus == 5)
                    {
                        objDataRow["TestStatus"] = "BGC initiated";
                    }
                    else
                    {
                        objDataRow["TestStatus"] = "confirmed";
                    }

                    if (element.get_MedicalTestStatus == 0)
                    {
                        objDataRow["MedicalTestStatus"] = "not initiated";
                    }
                    if (element.get_MedicalTestStatus == 1)
                    {
                        objDataRow["MedicalTestStatus"] = "cleared";
                    }
                    if (element.get_MedicalTestStatus == 2)
                    {
                        objDataRow["MedicalTestStatus"] = "rejected";
                    }

                    objDataTable.Rows.Add(objDataRow);
                }
            }
            gv_UpdateMedicalStatus.DataSource = objDataTable;
            gv_UpdateMedicalStatus.DataBind();
        }
        catch (Exception)
        {
        }
    }
Пример #16
0
 public static ICandidateManager Candidate_Manager()
 {
     objCandidateManager = new CandidateManager();
     return(objCandidateManager);
 }
Пример #17
0
    public void showgrid(int VacancyID)
    {
        try
        {
            string                   gap_ineducation, gap_inexperience;
            ICandidateManager        objCandidateManager = CandidateManagerFactory.Candidate_Manager();
            List <ICandidateProfile> lstCandidateProfile = objCandidateManager.display_candidate_toPC();

            DataTable  objDataTable   = new DataTable();
            DataColumn objDataColumn1 = new DataColumn("CandidateProfileID");
            objDataTable.Columns.Add(objDataColumn1);
            DataColumn objDataColumn2 = new DataColumn("DOB");
            objDataTable.Columns.Add(objDataColumn2);
            DataColumn objDataColumn3 = new DataColumn("Location");
            objDataTable.Columns.Add(objDataColumn3);
            DataColumn objDataColumn4 = new DataColumn("Gender");
            objDataTable.Columns.Add(objDataColumn4);
            DataColumn objDataColumn5 = new DataColumn("Percentage_10");
            objDataTable.Columns.Add(objDataColumn5);
            DataColumn objDataColumn6 = new DataColumn("Percentage_12");
            objDataTable.Columns.Add(objDataColumn6);
            DataColumn objDataColumn7 = new DataColumn("GapInEducation");
            objDataTable.Columns.Add(objDataColumn7);
            DataColumn objDataColumn8 = new DataColumn("GapInExperience");
            objDataTable.Columns.Add(objDataColumn8);

            foreach (ICandidateProfile candidate in lstCandidateProfile)
            {
                if (candidate.get_VacancyID == VacancyID && candidate.get_TestID == 0)
                {
                    DataRow objDataRow = objDataTable.NewRow();
                    objDataRow["CandidateProfileID"] = candidate.get_CandidateProfileID;
                    objDataRow["DOB"]           = candidate.get_DOB.ToString("dd/MM/yyyy"); //"dd/MM/yyyy"
                    objDataRow["Location"]      = candidate.get_Location;
                    objDataRow["Gender"]        = candidate.get_Gender;
                    objDataRow["Percentage_10"] = candidate.get_Percentage_10;
                    objDataRow["Percentage_12"] = candidate.get_Percentage_12;

                    if (candidate.get_GapInEducation == 0)
                    {
                        gap_ineducation = "No";
                    }
                    else
                    {
                        gap_ineducation = "Yes";
                    }

                    if (candidate.get_GapInExperience == 0)
                    {
                        gap_inexperience = "No";
                    }
                    else
                    {
                        gap_inexperience = "Yes";
                    }

                    objDataRow["GapInEducation"]  = gap_ineducation;
                    objDataRow["GapInExperience"] = gap_inexperience;

                    objDataTable.Rows.Add(objDataRow);
                }
            }

            gv.DataSource = objDataTable;
            gv.DataBind();
            gv.Visible = true;
        }
        catch (Exception)
        {
        }
    }
Пример #18
0
    protected void submit_Click1(object sender, EventArgs e)
    {
        //  date.ShortDatePattern="dd-MM-yyyy";
        try
        {
            Session["VacancyID"] = ddl_vacancy.SelectedItem.Text;
            ICandidateProfile candidate = CandidateProfileFactory.create_Candidates();


            candidate.get_DOB = Convert.ToDateTime(dob.Text);

            //catch (Exception)
            //{

            //    DialogResult result = MessageBox.Show(" Date of birth should be in the MM/DD/YYYY format.  ", "Failure:", MessageBoxButtons.OK);
            //}

            candidate.get_Gender        = gender.Text;
            candidate.get_Location      = location.Text;
            candidate.get_Percentage_10 = Convert.ToSingle(tenth.Text);
            candidate.get_Percentage_12 = Convert.ToSingle(twelfth.Text);

            if (gapsedu.SelectedItem.Text == "No")
            {
                candidate.get_GapInEducation = 0;
            }
            else
            {
                candidate.get_GapInEducation = Convert.ToInt32(gapsedu_months.SelectedItem.Text);
            }

            if (gapsexp.SelectedItem.Text == "No")
            {
                candidate.get_GapInExperience = 0;
            }
            else
            {
                candidate.get_GapInExperience = Convert.ToInt32(gapsexp_months.SelectedItem.Text);
            }

            int intvacancyid = Convert.ToInt32(Convert.ToString(Session["VacancyID"]));
            candidate.get_VacancyID         = intvacancyid;
            candidate.get_TestID            = 0;
            candidate.get_TestStatus        = 0;
            candidate.get_MedicalTestStatus = 0;
            candidate.get_BGCTestID         = 0;
            candidate.get_BGCTestStatus     = false;

            ICandidateManager objCandidateManager = CandidateManagerFactory.Candidate_Manager();
            int inti = objCandidateManager.AddCandidateProfile(candidate);
            List <ICandidateProfile> lstCandidateProfile = new List <ICandidateProfile>();
            lstCandidateProfile = objCandidateManager.display_candidate_toPC();
            int CandidateID = 0;
            foreach (ICandidateProfile objCandidateProfile in lstCandidateProfile)
            {
                CandidateID = objCandidateProfile.get_CandidateProfileID;
            }
            string          Requirebydate     = "";
            IVacancyManager objVacancyManager = VacancyManagerFactory.Create_VacancyManager();
            List <IVacancy> lstVacancy        = new List <IVacancy>();
            foreach (IVacancy element in lstVacancy)
            {
                if (element.get_VacancyID == intvacancyid)
                {
                    Requirebydate = Convert.ToString(element.get_RequiredByDate);
                    break;
                }
            }
            if (inti == 1)
            {
                DialogResult result = MessageBox.Show(" Candidate with ID:" + CandidateID + " is Successfully added", "Success:", MessageBoxButtons.OK);
                Response.Redirect("Add_Candidates_byPC.aspx");
            }
            else if (inti == 2)
            {
                DialogResult result = MessageBox.Show(" All candidates for Vacancy ID:" + intvacancyid + " are filled", "Failure:", MessageBoxButtons.OK);
                Response.Redirect("Add_Candidates_byPC.aspx");
            }
            else if (inti == 3)
            {
                DialogResult result = MessageBox.Show(" Date has been expired for this vacancy ", "Failure:", MessageBoxButtons.OK);
                Response.Redirect("Add_Candidates_byPC.aspx");
            }
        }
        catch (Exception)
        {
        }
    }
    protected void submit_Click1(object sender, EventArgs e)
    {
        //dateinfo.ShortDatePattern = "DD/MM/YYYY";

        ICandidateProfile objCandidateProfile = CandidateProfileFactory.create_Candidates();

        objCandidateProfile.get_CandidateProfileID = (Int32)Session["CandidateProfileID"];
        try
        {
            objCandidateProfile.get_DOB = Convert.ToDateTime(dob.Text);
        }
        catch (Exception)
        {
            string script = "alert('please enter date of birth in DD/MM/YYYY');";
            ClientScript.RegisterClientScriptBlock(this.GetType(), "Alert", script);
        }


        objCandidateProfile.get_Gender        = gender.Text;
        objCandidateProfile.get_Location      = location.Text;
        objCandidateProfile.get_Percentage_10 = Convert.ToSingle(tenth.Text);
        objCandidateProfile.get_Percentage_12 = Convert.ToSingle(twelfth.Text);

        if (gapsedu.SelectedItem.Text == "No")
        {
            objCandidateProfile.get_GapInEducation = 0;
        }
        else
        {
            objCandidateProfile.get_GapInEducation = Convert.ToInt32(gapsedu_months.Text);
        }

        if (gapsexp.SelectedItem.Text == "No")
        {
            objCandidateProfile.get_GapInExperience = 0;
        }
        else
        {
            objCandidateProfile.get_GapInExperience = Convert.ToInt32(gapsexp_months.Text);
        }

        objCandidateProfile.get_VacancyID         = Convert.ToInt32(Session["VacancyID"]);
        objCandidateProfile.get_TestID            = 0;
        objCandidateProfile.get_TestStatus        = 0;
        objCandidateProfile.get_MedicalTestStatus = 0;
        objCandidateProfile.get_BGCTestID         = 0;
        objCandidateProfile.get_BGCTestStatus     = false;


        ICandidateManager objCandidateManager = CandidateManagerFactory.Candidate_Manager();

        if (objCandidateManager.candidate_update(objCandidateProfile) == 1)
        {
            DialogResult result = MessageBox.Show(" Do you want to edit more candidates? ", "Success:", MessageBoxButtons.YesNo);
            if (result == DialogResult.Yes)
            {
                Response.Redirect("Edit_Candidates_byPC.aspx");
            }
            else
            {
                Response.Redirect("Home_PlacementConsultant.aspx");
            }
        }
    }
Пример #20
0
 public AdminsController(ICandidateManager candidateManager, ICategoryManager categoryManager)
 {
     _candidateManager = candidateManager;
     _categoryManager  = categoryManager;
 }
Пример #21
0
 /// <summary>
 /// no argument constructor
 /// </summary>
 public BallotController()
 {
     _electionManager  = new ElectionManager();
     _candidateManager = new CandidateManager();
 }