Beispiel #1
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");
    }