public ActionResult ViewJobs(int iJobPostingId) { JobPostingBAL objJobPostingBAL = new JobPostingBAL(); PostingJobBO objJobPostingsBO = objJobPostingBAL.EditJobPosting(iJobPostingId); return(PartialView("ViewJobPosting", objJobPostingsBO)); }
public ActionResult EditJobPosting(int iJobPostingId) { JobPostingBAL objJobPostingBAL = new JobPostingBAL(); PostingJobBO objJobPostingsBO = objJobPostingBAL.EditJobPosting(iJobPostingId); objJobPostingsBO.DonorProgramList = objJobPostingBAL.DonorProgramList(Convert.ToInt32(ViewData["LoginUserId"])); return(View("AddJobs", objJobPostingsBO)); }
public ActionResult CreateJob() { ViewBag.MainTitle = "JobPosting"; ViewBag.Title = "Jobs"; ViewBag.Icon = "fa fa-user"; JobPostingBAL objJobPostingBAL = new JobPostingBAL(); PostingJobBO objJobPostingsBO = new PostingJobBO(); objJobPostingsBO.DonorProgramList = objJobPostingBAL.DonorProgramList(Convert.ToInt32(ViewData["LoginUserId"])); return(View("AddJobs", objJobPostingsBO)); }
public PostingJobBO EditJobPosting(int iJobPostingId) { DataSet objDataSet = null; PostingJobBO objJobPostingsBO = null; List <ProcParameterBO> objProcParameterBOList = new List <ProcParameterBO>(); try { ProcParameterBO objDbParameter = new ProcParameterBO(); objDbParameter.Direction = ParameterDirection.Input; objDbParameter.ParameterName = "@iJobPostingId"; objDbParameter.dbType = DbType.Int32; objDbParameter.ParameterValue = iJobPostingId; objProcParameterBOList.Add(objDbParameter); objDataSet = objDBAccess.execuitDataSet(ProcEditJobPosting, ref objProcParameterBOList); if (objDataSet != null && objDataSet.Tables[0].Rows.Count > 0) { objJobPostingsBO = new PostingJobBO(); objJobPostingsBO.JobPostingId = Convert.ToInt32(objDataSet.Tables[0].Rows[0][0].ToString()); objJobPostingsBO.JobName = objDataSet.Tables[0].Rows[0][1].ToString(); objJobPostingsBO.JobCode = objDataSet.Tables[0].Rows[0][2].ToString(); objJobPostingsBO.JobDescription = objDataSet.Tables[0].Rows[0][3].ToString(); objJobPostingsBO.JobDescriptionFile = objDataSet.Tables[0].Rows[0][4].ToString(); objJobPostingsBO.JobDescriptionFileSavedName = objDataSet.Tables[0].Rows[0][5].ToString(); objJobPostingsBO.NoOfPositions = objDataSet.Tables[0].Rows[0][6].ToString(); objJobPostingsBO.JobLocation = objDataSet.Tables[0].Rows[0][7].ToString(); objJobPostingsBO.JobTimings = objDataSet.Tables[0].Rows[0][8].ToString(); objJobPostingsBO.JobDuration = objDataSet.Tables[0].Rows[0][9].ToString(); objJobPostingsBO.Qualification = objDataSet.Tables[0].Rows[0][10].ToString(); objJobPostingsBO.Experience = objDataSet.Tables[0].Rows[0][11].ToString(); objJobPostingsBO.Skills = objDataSet.Tables[0].Rows[0][12].ToString(); objJobPostingsBO.StatusId = Convert.ToInt32(objDataSet.Tables[0].Rows[0][13].ToString()); objJobPostingsBO.Status = objDataSet.Tables[0].Rows[0][14].ToString(); objJobPostingsBO.DonorProgramId = objDataSet.Tables[0].Rows[0][15].ToString(); objJobPostingsBO.DonorProgram = objDataSet.Tables[0].Rows[0][16].ToString(); objJobPostingsBO.Comments = objDataSet.Tables[0].Rows[0][17].ToString(); objJobPostingsBO.ApprovedBy = objDataSet.Tables[0].Rows[0][18].ToString(); objJobPostingsBO.ApprovedDate = objDataSet.Tables[0].Rows[0][19].ToString(); objJobPostingsBO.ApproverComments = objDataSet.Tables[0].Rows[0][20].ToString(); objJobPostingsBO.RejectedBy = objDataSet.Tables[0].Rows[0][21].ToString(); objJobPostingsBO.RejectedDate = objDataSet.Tables[0].Rows[0][22].ToString(); objJobPostingsBO.RejectedComments = objDataSet.Tables[0].Rows[0][23].ToString(); objJobPostingsBO.MarketedBy = objDataSet.Tables[0].Rows[0][24].ToString(); objJobPostingsBO.MarketedDate = objDataSet.Tables[0].Rows[0][25].ToString(); objJobPostingsBO.MarketingComments = objDataSet.Tables[0].Rows[0][26].ToString(); objJobPostingsBO.MarketingStatus = objDataSet.Tables[0].Rows[0][27].ToString(); objJobPostingsBO.HROfficeBy = objDataSet.Tables[0].Rows[0][28].ToString(); objJobPostingsBO.HROffice_Date = objDataSet.Tables[0].Rows[0][29].ToString(); objJobPostingsBO.HROffice_Comments = objDataSet.Tables[0].Rows[0][30].ToString(); objJobPostingsBO.HOPBy = objDataSet.Tables[0].Rows[0][31].ToString(); objJobPostingsBO.HOP_Comments = objDataSet.Tables[0].Rows[0][32].ToString(); objJobPostingsBO.HOP_Date = objDataSet.Tables[0].Rows[0][33].ToString(); objJobPostingsBO.PMBy = objDataSet.Tables[0].Rows[0][34].ToString(); objJobPostingsBO.PM_Comments = objDataSet.Tables[0].Rows[0][35].ToString(); objJobPostingsBO.PM_Date = objDataSet.Tables[0].Rows[0][36].ToString(); objJobPostingsBO.AdminBy = objDataSet.Tables[0].Rows[0][37].ToString(); objJobPostingsBO.Admin_Date = objDataSet.Tables[0].Rows[0][38].ToString(); objJobPostingsBO.Admin_Comments = objDataSet.Tables[0].Rows[0][39].ToString(); objJobPostingsBO.AdminStatus = objDataSet.Tables[0].Rows[0][40].ToString(); objJobPostingsBO.HAFBy = objDataSet.Tables[0].Rows[0][41].ToString(); objJobPostingsBO.HAF_Date = objDataSet.Tables[0].Rows[0][42].ToString(); objJobPostingsBO.HAF_Comments = objDataSet.Tables[0].Rows[0][43].ToString(); objJobPostingsBO.HAF_Status = objDataSet.Tables[0].Rows[0][44].ToString(); objJobPostingsBO.HRBy = objDataSet.Tables[0].Rows[0][45].ToString(); objJobPostingsBO.HRComments = objDataSet.Tables[0].Rows[0][46].ToString(); objJobPostingsBO.HRStatus = objDataSet.Tables[0].Rows[0][47].ToString(); objJobPostingsBO.IsActive = objDataSet.Tables[0].Rows[0][48].ToString(); objJobPostingsBO.HOD_Comments = objDataSet.Tables[0].Rows[0][49].ToString(); objJobPostingsBO.HOD_Date = objDataSet.Tables[0].Rows[0][50].ToString(); } } catch (Exception ex) { ExceptionError.Error_Log(ex, "EditJobPosting"); throw ex; } return(objJobPostingsBO); }