protected void getInterviewdet()
    {
        Employee_pros pros    = new Employee_pros();
        List <string> details = pros.getInterviewById(int_id);

        candidate    = details[0];
        Label14.Text = pros.getPositionName(Int32.Parse(details[1]));
        Label16.Text = details[2];
        Label18.Text = details[3];
        Label20.Text = details[5];
        Label22.Text = details[6];
        Label26.Text = details[7];
        Account       ac       = new Account();
        List <string> cand_det = new List <string>();

        cand_det    = ac.getUserDetails(candidate);
        Label3.Text = cand_det[0];
        Label5.Text = cand_det[1].Substring(0, 9);
        Label7.Text = cand_det[2];
        Candidate_pros cpros  = new Candidate_pros();
        List <string>  skills = new List <string>();

        skills = cpros.getSkills(candidate);
        if (skills.Count != 0)
        {
            TextBox1.Text = skills[0];
            TextBox2.Text = skills[1];
            Label12.Text  = skills[2];
            TextBox3.Text = skills[3];
        }

        List <string> fileName = new List <string>();

        fileName     = cpros.getFilesName(candidate);
        Label36.Text = fileName[0];
        Label38.Text = fileName[1];
        Label40.Text = fileName[2];
        Label42.Text = fileName[3];
        Interview_pros ipros = new Interview_pros();
        List <string>  scors = ipros.getInterviewScore(int_id);

        if (scors.Count == 5)
        {
            Label27.Text  = scors[0];
            Label29.Text  = scors[1];
            Label31.Text  = scors[2];
            Label33.Text  = scors[3];
            TextBox4.Text = scors[4];
        }
        if (Label26.Text.TrimEnd().Equals("PENDING"))
        {
            ImageButton2.Visible = true;
            ImageButton3.Visible = true;
        }
    }
Example #2
0
    protected void submitInfo()
    {
        int    skill = 0, knowledge = 0, com = 0, overal = 0;
        string note = "";

        //get skill
        if (RadioButton1.Checked)
        {
            skill = 1;
        }
        else if (RadioButton2.Checked)
        {
            skill = 2;
        }
        else if (RadioButton3.Checked)
        {
            skill = 3;
        }
        else if (RadioButton4.Checked)
        {
            skill = 4;
        }
        else if (RadioButton5.Checked)
        {
            skill = 5;
        }


        //get knowledge
        if (RadioButton6.Checked)
        {
            knowledge = 1;
        }
        else if (RadioButton7.Checked)
        {
            knowledge = 2;
        }
        else if (RadioButton8.Checked)
        {
            knowledge = 3;
        }
        else if (RadioButton9.Checked)
        {
            knowledge = 4;
        }
        else if (RadioButton10.Checked)
        {
            knowledge = 5;
        }

        //get come
        if (RadioButton11.Checked)
        {
            com = 1;
        }
        else if (RadioButton12.Checked)
        {
            com = 2;
        }
        else if (RadioButton13.Checked)
        {
            com = 3;
        }
        else if (RadioButton14.Checked)
        {
            com = 4;
        }
        else if (RadioButton15.Checked)
        {
            com = 5;
        }

        //get ove
        if (RadioButton16.Checked)
        {
            overal = 1;
        }
        else if (RadioButton17.Checked)
        {
            overal = 2;
        }
        else if (RadioButton18.Checked)
        {
            overal = 3;
        }
        else if (RadioButton19.Checked)
        {
            overal = 4;
        }
        else if (RadioButton20.Checked)
        {
            overal = 5;
        }

        note = TextBox4.Text;

        string result = "";

        if (RadioButton21.Checked)
        {
            result = "ACCEPTED";
        }
        else if (RadioButton22.Checked)
        {
            result = "PENDING";
        }
        else if (RadioButton23.Checked)
        {
            result = "REJECTED";
        }

        Interview_pros iPros = new Interview_pros();

        iPros.addInterviewDetails(int_id, skill, knowledge, com, overal, note);
        iPros.changeStatus(int_id);
        iPros.changeResult(int_id, result);
        Response.Redirect("Home.aspx");
    }
    protected void ImageButton3_Click(object sender, ImageClickEventArgs e)
    {
        Interview_pros pros = new Interview_pros();

        pros.changeResult(int_id, "Rejected");
    }