コード例 #1
0
    protected void fillform()
    {
        List <string> answer   = new List <string>();
        List <string> question = new List <string>();
        Employee_pros pros     = new Employee_pros();

        answer = pros.getFormAnswers(int_id);
        if (answer.Count < 1)
        {
            return;
        }
        int formId = Int32.Parse(answer[0]);

        question = pros.getFormQuestion(formId);

        for (int i = 0; i < question.Count; i++)
        {
            System.Drawing.Color color;

            if (i % 2 != 0)
            {
                color = System.Drawing.Color.LightBlue;
            }
            else
            {
                color = System.Drawing.Color.White;
            }

            TableRow  qrow   = new TableRow();
            TableCell number = new TableCell();
            number.Text = (i + 1).ToString() + "-";
            TableCell qu = new TableCell();
            qu.Text = question[i];

            qrow.Cells.Add(number);
            qrow.Cells.Add(qu);

            TableRow  arow = new TableRow();
            TableCell dumb = new TableCell();
            TableCell an   = new TableCell();
            an.Text = answer[i + 1];

            arow.Cells.Add(dumb);
            arow.Cells.Add(an);

            qrow.BackColor = color;
            arow.BackColor = color;
            arow.Height    = 25;

            Table1.Rows.Add(qrow);
            Table1.Rows.Add(arow);
        }

        Label2.Text = pros.getFormName(formId);
        Label3.Text = pros.getPositionName(pros.getInterviewPositionId(int_id));
        Account ac = new Account();

        Label1.Text = ac.get_name(pros.getInterviewById(int_id)[0]);
    }
コード例 #2
0
    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;
        }
    }
コード例 #3
0
    protected void Page_Load(object sender, EventArgs e)
    {
        candidate = Session["candidate"].ToString().TrimEnd();
        employee  = Session["user"].ToString().TrimEnd();
        int_id    = Int32.Parse(Session["intid"].ToString().TrimEnd());
        get_info();
        Employee_pros pros = new Employee_pros();
        List <string> det  = pros.getInterviewById(int_id);

        dur      = Int32.Parse(det[4]);
        int_time = pros.getFirstIntTime(Session["user"].ToString().TrimEnd());
        getdt();
    }