protected void loadgrid() { try { _obj_Rec_JobOffers = new RECRUITMENT_JOBOFFERS(); _obj_Rec_JobOffers.OPERATION = operation.Select; _obj_Rec_JobOffers.JOBOFFRS_ORGANISATION_ID = Convert.ToInt32(Session["ORG_ID"]); // _obj_Rec_JobOffers.APPLICANT_ID = Convert.ToInt32(RCMB_Applicant.SelectedItem.Value); DataTable dt = Recruitment_BLL.get_joboffers(_obj_Rec_JobOffers); RG_Joboffers.DataSource = dt; // RG_Joboffers.DataBind(); } 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"); } }
protected void lnk_Edit_Command(object sender, CommandEventArgs e) { try { clearfields(); _obj_Rec_JobOffers = new RECRUITMENT_JOBOFFERS(); _obj_Rec_JobOffers = new RECRUITMENT_JOBOFFERS(); _obj_Rec_JobOffers.OPERATION = operation.Select; _obj_Rec_JobOffers.JOBOFFRS_ID = Convert.ToInt32(e.CommandArgument); DataTable DT = Recruitment_BLL.get_joboffers(_obj_Rec_JobOffers); lbl_id.Text = Convert.ToString(DT.Rows[0]["JOBOFFRS_ID"]); //RCMB_JobRequistion.SelectedIndex = RCMB_JobRequistion.Items.FindItemIndexByValue(Convert.ToString(DT.Rows[0]["JOBOFFRS_REQCODE"])); //LoadApplicant(int JOB_REQ); //RCMB_JobRequistion.SelectedIndex = RCMB_JobRequistion.Items.FindItemIndexByValue(Convert.ToString(DT.Rows[0]["JOBOFFRS_REQCODE"])); LoadJobRequsitionCode_Edit(); int JOBREQ_ID = Convert.ToInt32(DT.Rows[0]["JOBOFFRS_REQCODE"]); RCMB_JobRequistion.SelectedValue = Convert.ToString(DT.Rows[0]["JOBOFFRS_REQCODE"]); //Convert.ToString(DT.Rows[0]["JOBOFFRS_REQCODE"]); load_Requistion(); LoadApplicant_Edit(JOBREQ_ID); // RCMB_JobRequistion. = Convert.ToString(DT.Rows[0]["JOBOFFRS_REQCODE"]); RCMB_Applicant.SelectedValue = Convert.ToString(DT.Rows[0]["JOBOFFRS_APPLICANT_ID"]); //RCMB_Applicant.SelectedItem.Value = Convert.ToString(DT.Rows[0]["JOBOFFRS_APPLICANT_ID"]); job_applicant(); RDP_Offerdate.SelectedDate = Convert.ToDateTime(DT.Rows[0]["JOBOFFRS_OFFERDATE"]); loadsalarystruct(); //RCB_SalaryStructure.SelectedIndex = RCB_SalaryStructure.Items.FindItemIndexByValue(Convert.ToString(DT.Rows[0]["JOBOFFRS_SALSTRUCT"]));// RCB_SalaryStructure.SelectedValue = Convert.ToString(DT.Rows[0]["JOBOFFRS_SALSTRUCT"]); loadleavestruct(); RCMB_leavestructure.SelectedValue = Convert.ToString(DT.Rows[0]["JOBOFFRS_LEAVESTRUCT"]); // // RCMB_leavestructure.SelectedItem.Value = Convert.ToString(DT.Rows[0]["JOBOFFRS_LEAVESTRUCT"]); RDP_JoinDate.SelectedDate = Convert.ToDateTime(DT.Rows[0]["JOBOFFRS_JOINDATE"]); RTB_OfferSalary.Text = Convert.ToString(Convert.ToDecimal(DT.Rows[0]["JOBOFFRS_OFFERSAL"])); string str_jobreq = Convert.ToString(DT.Rows[0]["JOBOFFRS_REQCODE"]); //RDP_Offerdate.MinDate = Convert.ToDateTime(DT.Rows[0]["JOBOFFRS_OFFERDATE"]); RDP_JoinDate.MinDate = Convert.ToDateTime(DT.Rows[0]["JOBOFFRS_JOINDATE"]); Load_data(str_jobreq); RM_Joboffers.SelectedIndex = 1; btn_Submit.Visible = false; btn_Update.Visible = true; RTB_JobRequistionDescription.Enabled = false; RTB_RasiedBy.Enabled = false; RTB_Designation.Enabled = false; RTB_Department.Enabled = false; RTB_Dateofcreation.Enabled = false; RTB_Businessunit.Enabled = false; RTB_ApplicantName.Enabled = false; RCMB_Applicant.Enabled = false; RCMB_JobRequistion.Enabled = false; if (Convert.ToString(DT.Rows[0]["APPLICANT_STATUS"]) == "Selected") { BLL.ShowMessage(this, "Applicant Has Been Already Converted To Employee."); btn_Update.Visible = false; } else { btn_Update.Visible = true; } } 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"); return; } }