function deleteJH() { $return = manage_person_job::RemoveJobHistory($_POST['PID'], $_POST['RowNO']); if ($return !== true) { echo $return; die; } echo Response::createObjectiveResponse("true", $_POST['PID']); die; }
function AddJobHistory() { $this->RowNO = manage_person_job::LastID($this->PersonID) + 1; if (PdoDataAccess::insert("PersonJobs", $this) === false) { return false; } $daObj = new DataAudit(); $daObj->ActionType = DataAudit::Action_add; $daObj->RelatedPersonID = $this->PersonID; $daObj->MainObjectID = $this->RowNO; $daObj->TableName = "PersonJobs"; $daObj->execute(); return true; }