Ejemplo n.º 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]);
    }
Ejemplo n.º 2
0
    protected void get_info()
    {
        Account ac = new Account();

        Label1.Text = ac.get_name(candidate);
        Employee_pros epros      = new Employee_pros();
        int           positionId = epros.getInterviewPositionId(int_id);

        Label3.Text = epros.getPositionName(positionId);
        Label4.Text = epros.getRequierment(positionId);
        Label2.Text = ac.getBd(candidate).ToString().Substring(0, 9);
        Candidate_pros cpros  = new Candidate_pros();
        List <string>  skills = cpros.getSkills(candidate);

        TextBox1.Text = skills[0];
        TextBox2.Text = skills[2];
        TextBox3.Text = skills[1];
        Label11.Text  = skills[3];
    }