Esempio n. 1
0
        /* 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);
            }
        }
Esempio n. 2
0
 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);
     }
 }
Esempio n. 3
0
        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);
            }
        }
Esempio n. 4
0
        public JobsDS.JobCategoriesDataTable GetJobCategories(string cond)
        {
            JobCategoriesAdp adp = new JobCategoriesAdp();

            return(adp.GetJobCategories(cond));
        }