当前位置: 首页>>代码示例>>PHP>>正文


PHP Cases::getNextSupervisorStep方法代码示例

本文整理汇总了PHP中Cases::getNextSupervisorStep方法的典型用法代码示例。如果您正苦于以下问题:PHP Cases::getNextSupervisorStep方法的具体用法?PHP Cases::getNextSupervisorStep怎么用?PHP Cases::getNextSupervisorStep使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Cases的用法示例。


在下文中一共展示了Cases::getNextSupervisorStep方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: unset

                            if ($input->type == 'file' && $input->input == $_GET['UID'] && !empty($aAppDataFields['APP_DATA'][$kInput])) {
                                $aAppDataFields['APP_DATA'][$kInput] = $sOriginalName;
                                $oCase->updateCase($_GET['APP_UID'], $aAppDataFields);
                            }
                        }
                        unset($input);
                    }
                }
                unset($value);
            }
            //End Update AppData with the current file uploaded
        }
    }
    //go to the next step
    if (!isset($_POST['form']['MORE'])) {
        $oCase = new Cases();
        $aFields = $oCase->loadCase($_GET['APP_UID']);
        $aNextStep = $oCase->getNextSupervisorStep($aFields['PRO_UID'], $_GET['position'], 'INPUT_DOCUMENT');
        G::header('location: ' . 'cases_StepToReviseInputs?type=INPUT_DOCUMENT&INP_DOC_UID=' . $aNextStep['UID'] . '&position=' . $aNextStep['POSITION'] . '&APP_UID=' . $_GET['APP_UID'] . '&DEL_INDEX=');
        die;
    } else {
        G::header('location: ' . $_SERVER['HTTP_REFERER']);
        die;
    }
} catch (Exception $e) {
    /* Render Error page */
    $aMessage['MESSAGE'] = $e->getMessage();
    $G_PUBLISH = new Publisher();
    $G_PUBLISH->AddContent('xmlform', 'xmlform', 'login/showMessage', '', $aMessage);
    G::RenderPage('publish');
}
开发者ID:bqevin,项目名称:processmaker,代码行数:31,代码来源:cases_SupervisorSaveDocument.php

示例2: Cases

$oCase = new Cases();
$Fields = $oCase->loadCase($_SESSION['APPLICATION']);
$G_PUBLISH = new Publisher();
if (!isset($_GET['ex'])) {
    $_GET['ex'] = 0;
}
if (!isset($_GET['INP_DOC_UID'])) {
    G::LoadClass('case');
    $oCase = new Cases();
    $G_PUBLISH->AddContent('propeltable', 'paged-table', 'cases/cases_InputdocsListToRevise', $oCase->getInputDocumentsCriteriaToRevise($_SESSION['APPLICATION']), '');
} else {
    $oInputDocument = new InputDocument();
    $Fields = $oInputDocument->load($_GET['INP_DOC_UID']);
    //Obtain previous and next step - Start
    try {
        $aNextStep = $oCase->getNextSupervisorStep($_SESSION['PROCESS'], $_SESSION['STEP_POSITION'], $_GET['type']);
        $aPreviousStep = $oCase->getPreviousSupervisorStep($_SESSION['PROCESS'], $_SESSION['STEP_POSITION'], $_GET['type']);
        if (!$aPreviousStep) {
            $Fields['__DYNAFORM_OPTIONS']['PREVIOUS_STEP_LABEL'] = '';
        } else {
            $Fields['__DYNAFORM_OPTIONS']['PREVIOUS_STEP'] = 'cases_StepToReviseInputs?type=INPUT_DOCUMENT&INP_DOC_UID=' . $aNextStep['UID'] . '&position=' . $aNextStep['POSITION'] . '&APP_UID=' . $_GET['APP_UID'] . '&DEL_INDEX=' . $_GET['DEL_INDEX'];
            $Fields['__DYNAFORM_OPTIONS']['PREVIOUS_STEP_LABEL'] = G::loadTranslation("ID_PREVIOUS_STEP");
        }
        $Fields['__DYNAFORM_OPTIONS']['NEXT_STEP'] = 'cases_StepToReviseInputs?type=INPUT_DOCUMENT&INP_DOC_UID=' . $aNextStep['UID'] . '&position=' . $aNextStep['POSITION'] . '&APP_UID=' . $_GET['APP_UID'] . '&DEL_INDEX=' . $_GET['DEL_INDEX'];
    } catch (exception $e) {
    }
    switch ($Fields['INP_DOC_FORM_NEEDED']) {
        case 'REAL':
            $Fields['TYPE_LABEL'] = G::LoadTranslation('ID_NEW');
            $sXmlForm = 'cases/cases_AttachInputDocument2';
            break;
开发者ID:rodriquelca,项目名称:processmaker,代码行数:31,代码来源:cases_StepToReviseInputs.php

示例3: catch

$G_PUBLISH->AddContent('template', '', '', '', $oTemplatePower);
if (!isset($_GET['type'])) {
    $_GET['type'] = 'DYNAFORM';
}
if (!isset($_GET['position'])) {
    $_GET['position'] = 1;
}
$_SESSION['STEP_POSITION'] = (int) $_GET['position'];
//Obtain previous and next step - Start
if (isset($_GET['type'])) {
    $sType = $_GET['type'];
} else {
    $sType = '';
}
try {
    $aNextStep = $oCase->getNextSupervisorStep($_SESSION['PROCESS'], $_SESSION['STEP_POSITION'], $sType);
    $aPreviousStep = $oCase->getPreviousSupervisorStep($_SESSION['PROCESS'], $_SESSION['STEP_POSITION'], $sType);
} catch (exception $e) {
    G::SendTemporalMessage($e->getMessage(), 'error', 'string');
}
if (!$aPreviousStep) {
    $Fields['APP_DATA']['__DYNAFORM_OPTIONS']['PREVIOUS_STEP_LABEL'] = '';
} else {
    $Fields['APP_DATA']['__DYNAFORM_OPTIONS']['PREVIOUS_STEP'] = 'cases_StepToRevise?type=DYNAFORM&DYN_UID=' . $aPreviousStep['UID'] . '&position=' . $aPreviousStep['POSITION'] . '&APP_UID=' . $_GET['APP_UID'] . '&DEL_INDEX=' . $_GET['DEL_INDEX'];
    $Fields['APP_DATA']['__DYNAFORM_OPTIONS']['PREVIOUS_STEP_LABEL'] = G::loadTranslation("ID_PREVIOUS_STEP");
}
$Fields['APP_DATA']['__DYNAFORM_OPTIONS']['NEXT_STEP'] = 'cases_StepToRevise?type=DYNAFORM&DYN_UID=' . $aNextStep['UID'] . '&position=' . $aNextStep['POSITION'] . '&APP_UID=' . $_GET['APP_UID'] . '&DEL_INDEX=' . $_GET['DEL_INDEX'];
/** Added By erik
 * date: 16-05-08
 * Description: this was added for the additional database connections */
G::LoadClass('dbConnections');
开发者ID:rodriquelca,项目名称:processmaker,代码行数:31,代码来源:cases_StepToRevise.php

示例4: unset

}
if (isset( $_SESSION['PROCESS'] )) {
    unset( $_SESSION['PROCESS'] );
}
if (isset( $_SESSION['INDEX'] )) {
    unset( $_SESSION['INDEX'] );
}
if (isset( $_SESSION['STEP_POSITION'] )) {
    unset( $_SESSION['STEP_POSITION'] );
}

/* Process the info */
$oCase = new Cases();
$sAppUid = $_GET['APP_UID'];
$iDelIndex = $_GET['DEL_INDEX'];

$_SESSION['APPLICATION'] = $_GET['APP_UID'];
$_SESSION['INDEX'] = $_GET['DEL_INDEX'];

$aFields = $oCase->loadCase( $sAppUid, $iDelIndex );

$_SESSION['PROCESS'] = $aFields['PRO_UID'];
$_SESSION['TASK'] = $aFields['TAS_UID'];
$_SESSION['STEP_POSITION'] = 0;

/* Redirect to next step */
$aNextStep = $oCase->getNextSupervisorStep( $_SESSION['PROCESS'], 0 );
$sPage = "cases_StepToRevise?type=DYNAFORM&PRO_UID=" . $aFields['PRO_UID'] . "&DYN_UID=" . $aNextStep['UID'] . "&APP_UID=$sAppUid&DEL_INDEX=$iDelIndex&position=1"; //$aNextStep['PAGE'];
G::header( 'location: ' . $sPage );

开发者ID:hpx2206,项目名称:processmaker-1,代码行数:29,代码来源:cases_OpenToRevise.php


注:本文中的Cases::getNextSupervisorStep方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。