コード例 #1
0
}
try {
    global $RBAC;
    switch ($RBAC->userCanAccess('PM_FACTORY')) {
        case -2:
            G::SendTemporalMessage('ID_USER_HAVENT_RIGHTS_SYSTEM', 'error', 'labels');
            G::header('location: ../login/login');
            die;
            break;
        case -1:
            G::SendTemporalMessage('ID_USER_HAVENT_RIGHTS_PAGE', 'error', 'labels');
            G::header('location: ../login/login');
            die;
            break;
    }
    require_once 'classes/model/CaseTrackerObject.php';
    $oCaseTrackerObject = new CaseTrackerObject();
    if (isset($_POST['form'])) {
        $value = $_POST['form'];
    } else {
        $value = $_POST;
    }
    $aFields = $oCaseTrackerObject->load($value['CTO_UID']);
    $aFields['CTO_CONDITION'] = $value['CTO_CONDITION'];
    $oCaseTrackerObject->update($aFields);
    $infoProcess = new Process();
    $resultProcess = $infoProcess->load($value['PRO_UID']);
    G::auditLog('CaseTrackers', 'Save Condition Case Tracker Object (' . $value['CTO_UID'] . ', condition: ' . $value['CTO_CONDITION'] . ') in Process "' . $resultProcess['PRO_TITLE'] . '"');
} catch (Exception $oException) {
    die($oException->getMessage());
}
コード例 #2
0
 /**
  * Validate Process Uid
  * @var string $pro_uid. Uid for process
  *
  * @author Brayan Pereyra (Cochalo) <*****@*****.**>
  * @copyright Colosa - Bolivia
  *
  * @return string
  */
 public function changePosCaseTrackerObject($cto_uid, $pos)
 {
     $data = array('CTO_UID' => $cto_uid, 'CTO_POSITION' => $pos);
     $oCaseTrackerObject = new \CaseTrackerObject();
     $oCaseTrackerObject->update($data);
 }