Ejemplo n.º 1
0
    protected void getCandidateDetails()
    {
        inv.Visible  = false;
        det.Visible  = false;
        conf.Visible = false;
        Account       ac   = new Account();
        List <string> deta = ac.getUserDetails(TextBox1.Text.ToString());

        if (ac.getUserLevel(TextBox1.Text.ToString()).Equals("emp"))
        {
            return;
        }
        if (deta.Count == 0)
        {
            inv.Visible = true;
        }
        else
        {
            Label8.Text  = deta[0];
            Label9.Text  = deta[1].Substring(0, 9);
            Label10.Text = deta[2];
            det.Visible  = true;
            conf.Visible = true;
        }
        Candidate_pros pros   = new Candidate_pros();
        List <string>  skills = pros.getSkills(TextBox1.Text);

        if (skills != null && skills.Count > 0)
        {
            Label11.Text = skills[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;
        }
    }
Ejemplo n.º 3
0
    protected void get_skills()
    {
        Candidate_pros pros   = new Candidate_pros();
        List <string>  skills = pros.getSkills(Session["user"].ToString().TrimEnd());

        try
        {
            TextBox1.Text = skills[0];
            TextBox2.Text = skills[1];
            TextBox3.Text = skills[2];
            TextBox4.Text = skills[3];
        }
        catch (Exception ex) { }
    }
Ejemplo n.º 4
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];
    }