示例#1
0
function deleteJH()
{
    $return = manage_person_job::RemoveJobHistory($_POST['PID'], $_POST['RowNO']);
    if ($return !== true) {
        echo $return;
        die;
    }
    echo Response::createObjectiveResponse("true", $_POST['PID']);
    die;
}
示例#2
0
 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;
 }