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]); }
protected void Page_Load(object sender, EventArgs e) { Account ac = new Account(); string name = ac.get_name(Session["user"].ToString().TrimEnd()); Label1.Text = name.ToUpper(); formId = Int32.Parse(Session["fid"].ToString()); Employee_pros pros = new Employee_pros(); TextBox1.Text = pros.getFormName(formId); getquestion(); }
protected void info() { Employee_pros pros = new Employee_pros(); List <string> det = new List <string>(); det = pros.getPositionDetbyId(positionId); TextBox1.Text = det[0]; DropDownList1.SelectedValue = det[1]; DropDownList2.SelectedValue = pros.getTestName(Int32.Parse(det[2])); DropDownList3.SelectedValue = pros.getFormName(Int32.Parse(det[3])); DropDownList4.SelectedValue = det[4]; TextBox4.Text = det[5]; }