Exemple #1
0
 public void DeleteJobPosition(int PositionId)
 {
     try
     {
         JobPositionsAdp adp = new JobPositionsAdp();
         adp.DeleteJobPosition(PositionId);
     }
     catch (Exception Ex)
     {
         this.UpdateError("Fail to delete job position: <br />" + Ex.Message);
     }
 }
Exemple #2
0
        public void UpdateJobPosition(string PositionName, int PositionId)
        {
            try
            {
                JobsDS.JobPositionsRow row = (JobsDS.JobPositionsRow)GetJobPositions(string.Format("PositionId={0}", PositionId)).Rows[0];

                row.PositionName = PositionName;

                JobPositionsAdp adp = new JobPositionsAdp();
                adp.Update(row);
            }
            catch (Exception Ex)
            {
                this.UpdateError("Fail to update job position: <br />" + Ex.Message);
            }
        }
Exemple #3
0
        public JobsDS.JobPositionsDataTable GetJobPositions(string cond)
        {
            JobPositionsAdp adp = new JobPositionsAdp();

            return(adp.GetJobPositions(cond));
        }