protected void rcmb_Dept_SelectedIndexChanged(object o, Telerik.Web.UI.RadComboBoxSelectedIndexChangedEventArgs e) { try { if (rcmb_Dept.SelectedIndex > 0) { rcmb_EMP.Items.Clear(); _obj_Rec_JobRequisition = new RECRUITMENT_JOBREQUISITION(); _obj_Rec_JobRequisition.JOBREQ_DEPARTMENT = Convert.ToInt32(rcmb_Dept.SelectedItem.Value); _obj_Rec_JobRequisition.ORGANISATION_ID = Convert.ToInt32(Session["ORG_ID"]); _obj_Rec_JobRequisition.MODE = 16; DataTable dt = Recruitment_BLL.get_JobRequisition(_obj_Rec_JobRequisition); if (dt.Rows.Count > 0) { rcmb_EMP.DataSource = dt; rcmb_EMP.DataTextField = "EMP_NAME"; rcmb_EMP.DataValueField = "EMP_ID"; rcmb_EMP.DataBind(); rcmb_EMP.Items.Insert(0, new Telerik.Web.UI.RadComboBoxItem("Select")); } } else { rcmb_EMP.ClearSelection(); rcmb_EMP.Items.Clear(); rcmb_EMP.Items.Insert(0, new Telerik.Web.UI.RadComboBoxItem("Select", "0")); } } catch (Exception ex) { SMHR.BLL.Error_Log(Session["USER_ID"].ToString(), ex.TargetSite.ToString(), ex.Message.Replace("'", "''"), "AssignEmpRSL", ex.StackTrace, DateTime.Now); Response.Redirect("~/Frm_ErrorPage.aspx"); } }
protected void Page_Load(object sender, EventArgs e) { try { if (!Page.IsPostBack) { _obj_Rec_JobRequisition = new RECRUITMENT_JOBREQUISITION(); if (Request.QueryString["JOBREQ_ID"] != null) { _obj_Rec_JobRequisition.JOBREQ_ID = Convert.ToInt32(Convert.ToString(Request.QueryString["JOBREQ_ID"])); } else { _obj_Rec_JobRequisition.JOBREQ_ID = 0; } _obj_Rec_JobRequisition.ORGANISATION_ID = Convert.ToInt32(Session["ORG_ID"]); _obj_Rec_JobRequisition.MODE = 26; DataTable dt = Recruitment_BLL.get_JobRequisition(_obj_Rec_JobRequisition); if (dt.Rows.Count > 0) { lbl_BU_Value.Text = Convert.ToString(dt.Rows[0]["BUSINESSUNIT_CODE"]); lbl_Dept_Value.Text = Convert.ToString(dt.Rows[0]["DEPARTMENT_NAME"]); lbl_Desg_Value.Text = Convert.ToString(dt.Rows[0]["POSITIONS_CODE"]); lbl_Level_Value.Text = Convert.ToString(dt.Rows[0]["EMPLOYEEGRADE_CODE"]); lbl_EmpType_Value.Text = Convert.ToString(dt.Rows[0]["EMPLOYEETYPE_CODE"]); lbl_CTC_Value.Text = Convert.ToString(dt.Rows[0]["EMPLOYEEGRADE_SLAB_AMOUNT"]); lbl_Directorate_Value.Text = Convert.ToString(dt.Rows[0]["DIRECTORATE_CODE"]); } else { lbl_BU_Value.Text = string.Empty; lbl_Dept_Value.Text = string.Empty; lbl_Desg_Value.Text = string.Empty; lbl_Level_Value.Text = string.Empty; lbl_EmpType_Value.Text = string.Empty; lbl_CTC_Value.Text = string.Empty; lbl_Directorate.Text = string.Empty; lbl_Directorate_Value.Text = string.Empty; } } } catch (Exception ex) { SMHR.BLL.Error_Log(Session["USER_ID"].ToString(), ex.TargetSite.ToString(), ex.Message.Replace("'", "''"), "frm_JobReqDetails", ex.StackTrace, DateTime.Now); Response.Redirect("~/Frm_ErrorPage.aspx"); } }
private void LoadJobRequest() { try { _obj_Rec_JobRequisition = new RECRUITMENT_JOBREQUISITION(); _obj_Rec_JobRequisition.MODE = 1; Rcb_JobReq.DataSource = Recruitment_BLL.get_JobRequisition(_obj_Rec_JobRequisition); Rcb_JobReq.DataTextField = "JOBREQ_REQCODE"; Rcb_JobReq.DataValueField = "JOBREQ_ID"; Rcb_JobReq.DataBind(); Rcb_JobReq.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"); } }
protected void LoadJobRequisition() { try { _obj_recruitment_jobrequisition = new RECRUITMENT_JOBREQUISITION(); _obj_recruitment_jobrequisition.MODE = 12; _obj_recruitment_jobrequisition.JOBREQ_ORGANISATION_ID = Convert.ToInt32(Session["ORG_ID"].ToString()); _obj_recruitment_jobrequisition.JOBREQ_BUSINESSUNIT_ID = Convert.ToInt32(Rcb_BusinessUnit.SelectedItem.Value); DataTable dt = Recruitment_BLL.get_JobRequisition(_obj_recruitment_jobrequisition); if (dt.Rows.Count > 0) { rcmb_RscReq.DataSource = dt; rcmb_RscReq.DataValueField = "JOBREQ_ID"; rcmb_RscReq.DataTextField = "JOBREQ_REQCODE"; rcmb_RscReq.DataBind(); } rcmb_RscReq.Items.Insert(0, new RadComboBoxItem("Select", "0")); //_obj_recruitment_jobrequisition.MODE = 1; //_obj_recruitment_jobrequisition.JOBREQ_ORGANISATION_ID = Convert.ToInt32(Session["ORG_ID"]); //DataTable dtJobRec = Recruitment_BLL.Get_Job_Requistion_Dropdown(_obj_recruitment_jobrequisition); //if (dtJobRec.Rows.Count > 0) //{ // rcmb_RscReq.DataSource = dtJobRec; // rcmb_RscReq.DataTextField = "JOBREQ_REQCODE"; // rcmb_RscReq.DataValueField = "JOBREQ_ID"; // rcmb_RscReq.DataBind(); //} //rcmb_RscReq.Items.Insert(0, new RadComboBoxItem("Select")); } catch (Exception ex) { SMHR.BLL.Error_Log(Session["USER_ID"].ToString(), ex.TargetSite.ToString(), ex.Message.Replace("'", "''"), "frm_RecruitmentCost", ex.StackTrace, DateTime.Now); Response.Redirect("~/Frm_ErrorPage.aspx"); } }