private void LoadFamily() { try { _obj_smhr_employee = new SMHR_EMPLOYEE(); _obj_smhr_employee.EMPFMDTL_EMP_ID = Convert.ToInt32(HF_EMPID.Value); //Convert.ToInt32(_lbl_Emp_ID); _obj_smhr_employee.ORGANISATION_ID = Convert.ToInt32(Session["ORG_ID"]); _obj_smhr_employee.OPERATION = operation.Check; DataTable dt = BLL.get_EmployeeFamily(_obj_smhr_employee); RG_Family.DataSource = dt; RG_Family.DataBind(); } catch (Exception ex) { SMHR.BLL.Error_Log(Session["USER_ID"].ToString(), ex.TargetSite.ToString(), ex.Message.Replace("'", "''"), "frm_EmpFamDetails_Medical", ex.StackTrace, DateTime.Now); Response.Redirect("~/Frm_ErrorPage.aspx"); } }
protected void lnk_Employee_Edit_Command(object sender, CommandEventArgs e) { try { ddlRelation.Items.Clear(); SMHR_MASTERS _obj_smhr_masters = new SMHR_MASTERS(); _obj_smhr_masters.MASTER_TYPE = "RELATIONSHIP"; _obj_smhr_masters.ORGANISATION_ID = Convert.ToInt32(Session["ORG_ID"]); _obj_smhr_masters.OPERATION = operation.Select; ddlRelation.DataSource = BLL.get_MasterRecords(_obj_smhr_masters); ddlRelation.DataTextField = "HR_MASTER_CODE"; ddlRelation.DataValueField = "HR_MASTER_ID"; ddlRelation.DataBind(); ddlRelation.Items.Insert(0, new Telerik.Web.UI.RadComboBoxItem("Select")); string str_Query = RG_Employee.MasterTableView.FilterExpression; string _lbl_Emp_ID = Convert.ToString(e.CommandArgument); HF_EMPID.Value = _lbl_Emp_ID; _obj_smhr_employee = new SMHR_EMPLOYEE(); _obj_smhr_employee.EMPFMDTL_EMP_ID = Convert.ToInt32(_lbl_Emp_ID); //Convert.ToInt32(_lbl_Emp_ID); _obj_smhr_employee.ORGANISATION_ID = Convert.ToInt32(Session["ORG_ID"]); _obj_smhr_employee.OPERATION = operation.Check; DataTable dt = BLL.get_EmployeeFamily(_obj_smhr_employee); RG_Family.DataSource = dt; RG_Family.DataBind(); Rm_CY_page.SelectedIndex = 1; btn_Fam_Correct.Visible = false; clearFamilyFields(); int Serial = getFamilySerial(); txt_FSerial.Text = Convert.ToString(Serial); } catch (Exception ex) { SMHR.BLL.Error_Log(Session["USER_ID"].ToString(), ex.TargetSite.ToString(), ex.Message.Replace("'", "''"), "frm_EmpFamDetails_Medical", ex.StackTrace, DateTime.Now); Response.Redirect("~/Frm_ErrorPage.aspx"); } }