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


PHP CCrmDeal::GetFinalStageID方法代码示例

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


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

示例1: isset

$arParams['PULL_TAG'] = $arResult['PULL_TAG'] = isset($arParams['PULL_TAG']) ? $arParams['PULL_TAG'] : 'CRM_DEAL_CHANGE';
$arParams['PULL_UPDATE_CMD'] = $arResult['PULL_UPDATE_CMD'] = isset($arParams['PULL_UPDATE_CMD']) ? $arParams['PULL_UPDATE_CMD'] : 'crm_deal_update';
$arParams['PULL_DELETE_CMD'] = $arResult['PULL_DELETE_CMD'] = isset($arParams['PULL_DELETE_CMD']) ? $arParams['PULL_DELETE_CMD'] : 'crm_deal_delete';
$mode = isset($arParams['MODE']) ? $arParams['MODE'] : '';
if ($mode === '' && isset($_REQUEST['mode'])) {
    $mode = $_REQUEST['mode'];
}
$mode = strtoupper(trim($mode));
$arResult['MODE'] = $arParams['MODE'] = $mode;
$contextID = isset($arParams['CONTEXT_ID']) ? $arParams['CONTEXT_ID'] : '';
if ($contextID === '' && isset($_REQUEST['context_id'])) {
    $contextID = $_REQUEST['context_id'];
}
$arResult['CONTEXT_ID'] = $arParams['CONTEXT_ID'] = $contextID;
$arResult['FILTER'] = array(array('id' => 'TITLE'), array('id' => 'CLOSED'), array('id' => 'STAGE_ID'), array('id' => 'STAGE_SORT'), array('id' => 'ASSIGNED_BY_ID'));
$finalStageID = CCrmDeal::GetFinalStageID();
$finalStageSort = CCrmDeal::GetFinalStageSort();
$arResult['FILTER_PRESETS'] = array('filter_my_not_completed' => array('name' => GetMessage('M_CRM_DEAL_LIST_PRESET_MY_NOT_COMPLETED'), 'fields' => array('ASSIGNED_BY_ID' => $currentUserID, 'CLOSED' => 'N')), 'filter_not_completed' => array('name' => GetMessage('M_CRM_DEAL_LIST_PRESET_NOT_COMPLETED'), 'fields' => array('CLOSED' => 'N')), 'filter_completed' => array('name' => GetMessage('M_CRM_DEAL_LIST_PRESET_COMPLETED'), 'fields' => array('CLOSED' => 'Y')), 'filter_won' => array('name' => GetMessage('M_CRM_DEAL_LIST_PRESET_WON'), 'fields' => array('STAGE_ID' => $finalStageID)), 'filter_failed' => array('name' => GetMessage('M_CRM_DEAL_LIST_PRESET_FAILED'), 'fields' => array('STAGE_SORT_from' => $finalStageSort)));
$itemPerPage = isset($arParams['ITEM_PER_PAGE']) ? intval($arParams['ITEM_PER_PAGE']) : 0;
if ($itemPerPage <= 0) {
    $itemPerPage = 20;
}
$arParams['ITEM_PER_PAGE'] = $itemPerPage;
$sort = array('DATE_CREATE' => 'ASC');
$filter = array();
$navParams = array('nPageSize' => $itemPerPage, 'iNumPage' => $enablePaging ? false : 1, 'bShowAll' => false);
$select = array('ID', 'TITLE', 'STAGE_ID', 'PROBABILITY', 'OPPORTUNITY', 'CURRENCY_ID', 'ASSIGNED_BY_ID', 'ASSIGNED_BY_LOGIN', 'ASSIGNED_BY_NAME', 'ASSIGNED_BY_SECOND_NAME', 'ASSIGNED_BY_LAST_NAME', 'CONTACT_ID', 'CONTACT_NAME', 'CONTACT_SECOND_NAME', 'CONTACT_LAST_NAME', 'CONTACT_POST', 'CONTACT_PHOTO', 'COMPANY_ID', 'COMPANY_TITLE', 'COMMENTS', 'DATE_CREATE', 'DATE_MODIFY');
$arOptions = array();
$navigation = CDBResult::GetNavParams($navParams);
$CGridOptions = new CCrmGridOptions($arResult['UID']);
$navParams = $CGridOptions->GetNavParams($navParams);
开发者ID:mrdeadmouse,项目名称:u136006,代码行数:31,代码来源:component.php


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