Example #1
0
 private void ClearControls()
 {
     try
     {
         rtxt_FullName.Text = string.Empty;
         //rntxt_ContactNumber.Value = 0;
         rntxt_ContactNumber.Text     = string.Empty;
         rtxt_PositionAppliedFor.Text = string.Empty;
         rtxt_Qualification.Text      = string.Empty;
         rtxt_Company.Text            = string.Empty;
         lbl_Skill.Text      = string.Empty;
         lbl_FirstRound.Text = string.Empty;
         lbl_JobReqId.Text   = string.Empty;
         Rcb_PhaseID.Items.Clear();
         Rcb_ApplicantID.Items.Clear();
         Rcb_JobReq.SelectedIndex = 0;
         DataTable DtEmpty = new DataTable();
         RG_Skills1.DataSource = DtEmpty;
         RG_Skills1.DataBind();
         //rdi_Date.Clear();
         rtxt_AdditionalComments1.Text = string.Empty;
         rtxt_Signature.Text           = string.Empty;
     }
     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");
     }
 }
Example #2
0
    private void LoadApplicantDetails()
    {
        try
        {
            DataTable DtApplicantDetails = new DataTable();
            _obj_Rec_InterviewAssessmentForm            = new RECRUITMENT_INTERVIEWASSESSMENTFORM();
            _obj_Rec_InterviewAssessmentForm.MODE       = 6;
            _obj_Rec_InterviewAssessmentForm.IAF_APPLID = Convert.ToInt32(Rcb_ApplicantID.SelectedItem.Value);

            DtApplicantDetails = Recruitment_BLL.get_InterviewAssessment(_obj_Rec_InterviewAssessmentForm);
            if (DtApplicantDetails.Rows.Count > 0)
            {
                rtxt_FullName.Text           = Convert.ToString(DtApplicantDetails.Rows[0]["NAME"]);
                rntxt_ContactNumber.Text     = Convert.ToString(DtApplicantDetails.Rows[0]["APPCONT_PHONE"]);
                rtxt_PositionAppliedFor.Text = Convert.ToString(DtApplicantDetails.Rows[0]["DESIGNATION"]);
                rtxt_Qualification.Text      = Convert.ToString(DtApplicantDetails.Rows[0]["QUALIFICATION"]);
                rtxt_Company.Text            = Convert.ToString(DtApplicantDetails.Rows[0]["COMPANY"]);
                lbl_Skill.Text = Convert.ToString(DtApplicantDetails.Rows[0]["JOREQ_SKILL"]);
                //lbl_FirstRound.Text = Convert.ToString(DtApplicantDetails.Rows[0]["PHASE_NAME"]);
                //lbl_JobReqId.Text = Convert.ToString(DtApplicantDetails.Rows[0]["RESSHT_JOBREQID"]);
                lbl_FirstRound.Text = Convert.ToString(Rcb_PhaseID.SelectedItem.Text);
                LoadSkill();
            }
            else
            {
                rtxt_FullName.Text = string.Empty;
                //rntxt_ContactNumber.Value = 0;
                rntxt_ContactNumber.Text     = string.Empty;
                rtxt_PositionAppliedFor.Text = string.Empty;
                rtxt_Qualification.Text      = string.Empty;
                rtxt_Company.Text            = string.Empty;
                lbl_Skill.Text      = string.Empty;
                lbl_FirstRound.Text = string.Empty;
                lbl_JobReqId.Text   = string.Empty;

                DataTable DtEmpty = new DataTable();
                RG_Skills1.DataSource = DtEmpty;
                RG_Skills1.DataBind();
                //rdi_Date.Clear();
                rtxt_AdditionalComments1.Text = string.Empty;
                rtxt_Signature.Text           = string.Empty;
            }
        }
        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");
        }
    }
Example #3
0
    private void LoadSkill()
    {
        try
        {
            DataTable dtDetails = new DataTable();

            _obj_Smhr_Masters           = new SMHR_MASTERS();
            _obj_Smhr_Masters.MODE      = 1;
            _obj_Smhr_Masters.MASTER_ID = Convert.ToInt32(lbl_Skill.Text);
            dtDetails = BLL.get_MasterRecords(_obj_Smhr_Masters);

            if (dtDetails.Rows.Count != 0)
            {
                RG_Skills1.DataSource = dtDetails;
                RG_Skills1.DataBind();
            }
        }
        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");
        }
    }