コード例 #1
0
    public void LOADPHASE()
    {
        try
        {
            //Convert.ToString(Request.QueryString["APPID"]));
            SMHR_INTERVIEWASSESSMENTFORM _OBJ_SMHR_INTERVIEWASSESSMENTFORM = new SMHR_INTERVIEWASSESSMENTFORM();
            _OBJ_SMHR_INTERVIEWASSESSMENTFORM.MODE           = 12;
            _OBJ_SMHR_INTERVIEWASSESSMENTFORM.IAF_APPLID     = Convert.ToInt32(Request.QueryString["APPID"]);
            _OBJ_SMHR_INTERVIEWASSESSMENTFORM.IAF_JOBREID    = Convert.ToInt32(Request.QueryString["JOBREID"]);
            _OBJ_SMHR_INTERVIEWASSESSMENTFORM.IAF_PHASEDEFID = Convert.ToInt32(Request.QueryString["IAF_PHASEDEFID"]);


            DataTable DT_PHASE = BLL.GET_SMHR_INTERVIEWASSESSMENTFORM(_OBJ_SMHR_INTERVIEWASSESSMENTFORM);
            Rcb_PhaseID.DataSource     = DT_PHASE;
            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_ViewInterviewAssesmentnew", ex.StackTrace, DateTime.Now);
            Response.Redirect("~/Frm_ErrorPage.aspx");
        }
    }
コード例 #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");
        }
    }
コード例 #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");
        }
    }