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); } }
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); } }
public JobsDS.JobPositionsDataTable GetJobPositions(string cond) { JobPositionsAdp adp = new JobPositionsAdp(); return(adp.GetJobPositions(cond)); }