/* Job Positions */ public void AddJobPosition(string PositionName) { try { JobCategoriesAdp adp = new JobCategoriesAdp(); adp.Insert(PositionName, StringUtils.ToURL(PositionName)); } catch (Exception Ex) { this.UpdateError("Fail to add job position: <br />" + Ex.Message); } }
public void DeleteJobCategory(int CategoryId) { try { JobCategoriesAdp adp = new JobCategoriesAdp(); adp.DeleteJobCategory(CategoryId); } catch (Exception Ex) { this.UpdateError("Fail to delete job category: <br />" + Ex.Message); } }
public void UpdateJobCategory(string CategoryName, int CategoryId) { try { JobsDS.JobCategoriesRow row = (JobsDS.JobCategoriesRow)GetJobCategories(string.Format("CategoryId={0}", CategoryId)).Rows[0]; row.CategoryName = CategoryName; row.UniqueName = StringUtils.ToURL(CategoryName); JobCategoriesAdp adp = new JobCategoriesAdp(); adp.Update(row); } catch (Exception Ex) { this.UpdateError("Fail to update job category: <br />" + Ex.Message); } }
public JobsDS.JobCategoriesDataTable GetJobCategories(string cond) { JobCategoriesAdp adp = new JobCategoriesAdp(); return(adp.GetJobCategories(cond)); }