private void LoadApplicant_Edit(int JOB_REQ)
    {
        try
        {
            _obj_Rec_Interview_Phase_Def = new RECRUITMENT_INTERVIEW_PHASE_DEF();
            _obj_Rec_Interview_Phase_Def.Phase_JobReqID = JOB_REQ;
            _obj_Rec_Interview_Phase_Def.Mode           = 21;
            RCMB_Applicant.DataSource     = Recruitment_BLL.get_InterviewPhaseDefinition(_obj_Rec_Interview_Phase_Def);
            RCMB_Applicant.DataTextField  = "EMPNAME";
            RCMB_Applicant.DataValueField = "APPLICANT_ID";
            RCMB_Applicant.DataBind();
            RCMB_Applicant.Items.Insert(0, new Telerik.Web.UI.RadComboBoxItem("Select", "-1"));

            //_obj_Rec_InterviewAssessmentForm = new RECRUITMENT_INTERVIEWASSESSMENTFORM();
            //_obj_Rec_InterviewAssessmentForm.MODE = 5;
            //RCMB_Applicant.DataSource = BLL.get_InterviewAssessment(_obj_Rec_InterviewAssessmentForm);
            //RCMB_Applicant.DataTextField = "APPLICANT_CODE";
            //RCMB_Applicant.DataValueField = "RESSHT_APPLID";
            //RCMB_Applicant.DataBind();
            //RCMB_Applicant.Items.Insert(0, new Telerik.Web.UI.RadComboBoxItem("Select", "-1"));
        }
        catch (Exception ex)
        {
            SMHR.BLL.Error_Log(Session["USER_ID"].ToString(), ex.TargetSite.ToString(), ex.Message.Replace("'", "''"), "frm_JobOffers", ex.StackTrace, DateTime.Now);
            Response.Redirect("~/Frm_ErrorPage.aspx");
        }
    }
Esempio n. 2
0
    private void LoadPhase()
    {
        try
        {
            _obj_Rec_Interview_Phase_Def = new RECRUITMENT_INTERVIEW_PHASE_DEF();

            _obj_Rec_Interview_Phase_Def.Mode           = 6;
            _obj_Rec_Interview_Phase_Def.Phase_JobReqID = Convert.ToInt32(Rcb_JobReq.SelectedItem.Value);

            Rcb_PhaseID.DataSource     = Recruitment_BLL.get_InterviewPhaseDefinition(_obj_Rec_Interview_Phase_Def);
            Rcb_PhaseID.DataValueField = "PHASE_ID";
            Rcb_PhaseID.DataTextField  = "PHASE_NAME";
            Rcb_PhaseID.DataBind();
            Rcb_PhaseID.Items.Insert(0, new RadComboBoxItem("Select", "0"));
        }
        catch (Exception ex)
        {
            SMHR.BLL.Error_Log(Session["USER_ID"].ToString(), ex.TargetSite.ToString(), ex.Message.Replace("'", "''"), "frm_InterviewAssesment", ex.StackTrace, DateTime.Now);
            Response.Redirect("~/Frm_ErrorPage.aspx");
        }
    }
Esempio n. 3
0
    private void LoadApplicantPhase()
    {
        try
        {
            DataTable DTApplicant = new DataTable();

            _obj_Rec_Interview_Phase_Def = new RECRUITMENT_INTERVIEW_PHASE_DEF();

            Rcb_PhaseID.Items.Clear();

            _obj_Rec_Interview_Phase_Def.Mode           = 7;
            _obj_Rec_Interview_Phase_Def.Phase_JobReqID = Convert.ToInt32(Rcb_JobReq.SelectedItem.Value);
            _obj_Rec_Interview_Phase_Def.Applicant      = Convert.ToInt32(Rcb_ApplicantID.SelectedItem.Value);

            DTApplicant = Recruitment_BLL.get_InterviewPhaseDefinition(_obj_Rec_Interview_Phase_Def);

            //Rcb_PhaseID.DataSource = Recruitment_BLL.get_InterviewPhaseDefinition(_obj_SMHR_INTERVIEW_PHASE_DEF);

            if (DTApplicant.Rows.Count == 0)
            {
                Recruitment_BLL.ShowMessage(this, "Selected Applicant is already Rejected.");
                return;
            }
            else
            {
                Rcb_PhaseID.DataSource     = DTApplicant;
                Rcb_PhaseID.DataValueField = "PHASE_ID";
                Rcb_PhaseID.DataTextField  = "PHASE_NAME";
                Rcb_PhaseID.DataBind();
            }
            Rcb_PhaseID.Items.Insert(0, new RadComboBoxItem("Select", "0"));
        }
        catch (Exception ex)
        {
            SMHR.BLL.Error_Log(Session["USER_ID"].ToString(), ex.TargetSite.ToString(), ex.Message.Replace("'", "''"), "frm_InterviewAssesment", ex.StackTrace, DateTime.Now);
            Response.Redirect("~/Frm_ErrorPage.aspx");
        }
    }