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


PHP Cases::loadCaseInCurrentDelegation方法代码示例

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


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

示例1: isset

//  $APP_UIDS          = explode(',', $_POST['APP_UID']);
$appUid = isset($_POST['application']) ? $_POST['application'] : '';
//  $processUid = isset($_POST['process'])     ? $_POST['process'] : '';
//  $TaskUid    = isset($_POST['task'])        ? $_POST['task'] : '';
$sReassignFromUser = isset($_POST['user']) ? $_POST['user'] : '';
G::LoadClass('tasks');
G::LoadClass('groups');
G::LoadClass('case');
G::LoadClass('users');
$oTasks = new Tasks();
$oGroups = new Groups();
$oUser = new Users();
$oCases = new Cases();
$aCasesList = array();
//        foreach ( $APP_UIDS as $APP_UID ) {
$aCase = $oCases->loadCaseInCurrentDelegation($appUid);
$aUsersInvolved = array();
$aCaseGroups = $oTasks->getGroupsOfTask($aCase['TAS_UID'], 1);
$oConf = new Configurations();
$ConfEnv = $oConf->getFormats();
foreach ($aCaseGroups as $aCaseGroup) {
    $aCaseUsers = $oGroups->getUsersOfGroup($aCaseGroup['GRP_UID']);
    foreach ($aCaseUsers as $aCaseUser) {
        if ($aCaseUser['USR_UID'] != $sReassignFromUser) {
            $aCaseUserRecord = $oUser->load($aCaseUser['USR_UID']);
            $sCaseUser = G::getFormatUserList($ConfEnv['format'], $aCaseUserRecord);
            //                        $aUsersInvolved[] = array ( 'userUid' => $aCaseUser['USR_UID'] , 'userFullname' => $aCaseUserRecord['USR_FIRSTNAME'] . ' ' . $aCaseUserRecord['USR_LASTNAME']); // . ' (' . $aCaseUserRecord['USR_USERNAME'] . ')';
            $aUsersInvolved[] = array('userUid' => $aCaseUser['USR_UID'], 'userFullname' => $sCaseUser);
            // . ' (' . $aCaseUserRecord['USR_USERNAME'] . ')';
        }
    }
开发者ID:nshong,项目名称:processmaker,代码行数:31,代码来源:proxyReassignUsersList.php

示例2: Cases

     $G_PUBLISH->AddContent('propeltable', 'cases/paged-table-reassigByUser2', 'cases/cases_ToReassignByUserList2', $oCriteria);
     G::RenderPage('publish', 'raw');
     break;
     /* @Author Erik Amaru Ortiz <erik@colosa.com> */
 /* @Author Erik Amaru Ortiz <erik@colosa.com> */
 case 'reassignByUser':
     G::LoadClass('case');
     $oCases = new Cases();
     $aCases = array();
     if (isset($_POST['items']) && trim($_POST['items']) != '') {
         $sItems = $_POST['items'];
         $aItems = explode(',', $sItems);
         $FROM_USR_UID = $_POST['USR_UID'];
         foreach ($aItems as $item) {
             list($APP_UID, $USR_UID) = explode('|', $item);
             $aCase = $oCases->loadCaseInCurrentDelegation($APP_UID, true);
             $oCase->reassignCase($aCase['APP_UID'], $aCase['DEL_INDEX'], $FROM_USR_UID, $USR_UID);
             array_push($aCases, $aCase);
         }
         //G::pr($aCases);
         //require_once 'classes/model/Users.php';
         $oUser = new Users();
         $sText = '';
         foreach ($aCases as $aCase) {
             $aCaseUpdated = $oCases->loadCaseInCurrentDelegation($aCase['APP_UID'], true);
             $aUser = $oUser->load($aCaseUpdated['USR_UID']);
             $sText .= $aCaseUpdated['APP_PRO_TITLE'] . ' - ' . ' Case: ' . $aCaseUpdated['APP_NUMBER'] . '# (' . $aCaseUpdated['APP_TAS_TITLE'] . ') <b> => Reassigned to => </b> <font color="blue">' . $aUser['USR_FIRSTNAME'] . ' ' . $aUser['USR_LASTNAME'] . ' [' . $aUser['USR_USERNAME'] . ']' . '</font><br />';
         }
         $G_PUBLISH = new Publisher();
         $aMessage['MESSAGE'] = $sText;
         $aMessage['URL'] = 'cases_ReassignByUser?REASSIGN_USER=' . $_POST['USR_UID'];
开发者ID:bqevin,项目名称:processmaker,代码行数:31,代码来源:cases_Ajax.php

示例3: foreach

    echo G::json_encode($serverResponse);
    die;
}
//      $params = array ();
//      $sql = BasePeer::createSelectSql($oCasesReassignList, $params);
//      var_dump($sql);
if (is_array($aData)) {
    $currentCasesReassigned = 0;
    foreach ($aData as $data) {
        $oTmpReassignCriteria = $oCasesReassignList;
        $oTmpReassignCriteria->add(AppCacheViewPeer::TAS_UID, $data->TAS_UID);
        $rs = AppCacheViewPeer::doSelectRS($oTmpReassignCriteria);
        $rs->setFetchmode(ResultSet::FETCHMODE_ASSOC);
        $rs->next();
        $row = $rs->getRow();
        $aCase = $oCases->loadCaseInCurrentDelegation($data->APP_UID);
        $oCases->reassignCase($aCase['APP_UID'], $aCase['DEL_INDEX'], $aCase['USR_UID'] != '' ? $aCase['USR_UID'] : $_SESSION['USER_LOGGED'], $data->APP_REASSIGN_USER_UID);
        $currentCasesReassigned++;
        $casesReassignedCount++;
        $serverResponse[] = array('APP_REASSIGN_USER' => $data->APP_REASSIGN_USER, 'APP_TITLE' => $data->APP_TITLE, 'TAS_TITLE' => $data->APP_TAS_TITLE, 'REASSIGNED_CASES' => $currentCasesReassigned);
    }
} else {
    $oTmpReassignCriteria = $oCasesReassignList;
    $oTmpReassignCriteria->add(AppCacheViewPeer::TAS_UID, $aData->TAS_UID);
    $rs = AppCacheViewPeer::doSelectRS($oTmpReassignCriteria);
    $rs->setFetchmode(ResultSet::FETCHMODE_ASSOC);
    $rs->next();
    $row = $rs->getRow();
    $currentCasesReassigned = 0;
    while (is_array($row)) {
        $APP_UID = $row['APP_UID'];
开发者ID:rodrigoivan,项目名称:processmaker,代码行数:31,代码来源:proxySaveReassignCasesList.php


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