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


PHP DetailView::processSugarBean方法代码示例

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


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

示例1: display

 function display()
 {
     $this->populateTemplates();
     $this->setDecodeHTML();
     $this->displayPopupHtml();
     global $mod_strings;
     global $app_strings;
     global $app_list_strings;
     global $gridline;
     $detailView = new DetailView();
     $offset = 0;
     if (isset($_REQUEST['offset']) or isset($_REQUEST['record'])) {
         $result = $detailView->processSugarBean("CONTRACTLIQUIDATE", $this->bean, $offset);
         if ($result == null) {
             sugar_die($app_strings['ERROR_NO_RECORD']);
         }
         $this->bean = $result;
     } else {
         header("Location: index.php?module=ContractLiquidate&action=index");
     }
     if (isset($_REQUEST['isDuplicate']) && $_REQUEST['isDuplicate'] == 'true') {
         $this->bean->id = "";
     }
     global $theme;
     $theme_path = "themes/" . $theme . "/";
     $image_path = $theme_path . "images/";
     require_once $theme_path . 'layout_utils.php';
     $GLOBALS['log']->info("ContractLiquidate detail view");
     $this->dv->ss->assign("MOD", $mod_strings);
     $this->dv->ss->assign("APP", $app_strings);
     $this->dv->ss->assign("THEME", $theme);
     $this->dv->ss->assign("GRIDLINE", $gridline ? $gridline : 0);
     $this->dv->ss->assign("IMAGE_PATH", $image_path);
     $this->dv->ss->assign("PRINT_URL", "index.php?" . $GLOBALS['request_string']);
     $this->dv->ss->assign("ID", $this->bean->id);
     $this->dv->ss->assign("ASSIGNED_USER_NAME", $this->bean->assigned_user_name);
     $this->dv->ss->assign("NAME", $this->bean->name);
     $this->dv->ss->assign("NUMBER", $this->bean->number);
     $this->dv->ss->assign("DATE", $this->bean->date);
     $this->dv->ss->assign("CONTRACT", $this->bean->contract);
     $this->dv->ss->assign("CONTRACT_ID", $this->bean->contract_id);
     $this->dv->ss->assign("TONGCONG_CONTRACT_KEHOACH", number_format($this->bean->tongcong_contract_kehoach, '1', '.', ''));
     $this->dv->ss->assign("TONGCONG_CONTRACT_THUCTE", number_format($this->bean->tongcong_contract_thucte, '1', '.', ''));
     $this->dv->ss->assign("TONGCONG_TANG_KEHOACH", number_format($this->bean->tongcong_tang_kehoach, '1', '.', ''));
     $this->dv->ss->assign("TONGCONG_TANG_THUCTE", number_format($this->bean->tongcong_tang_thucte, '1', '.', ''));
     $this->dv->ss->assign("TONGCONG_GIAM_KEHOACH", number_format($this->bean->tongcong_giam_kehoach, '1', '.', ''));
     $this->dv->ss->assign("TONGCONG_GIAM_THUCTE", number_format($this->bean->tongcong_giam_thucte, '1', '.', ''));
     $this->dv->ss->assign("TONGTIEN_KEHOACH", number_format($this->bean->tongtien_kehoach, '1', '.', ''));
     $this->dv->ss->assign("TONGTIEN_THUCTE", number_format($this->bean->tongtien_thucte, '1', '.', ''));
     $this->dv->ss->assign("TIENTHANHTOAN", number_format($this->bean->tienthanhtoan, '1', '.', ''));
     $this->dv->ss->assign("TIENCONLAI", number_format($this->bean->tienconlai, '1', '.', ''));
     $this->dv->ss->assign("TIENTRALAI", number_format($this->bean->tientralai, '1', '.', ''));
     $this->dv->ss->assign("GIATRIHOPDONG", $this->bean->giatrihopdong_detail());
     $this->dv->ss->assign("PHATSINHTANG", $this->bean->phatsinhtang_detail());
     $this->dv->ss->assign("PHATSINHGIAM", $this->bean->phatsinhgiam_detail());
     $this->dv->ss->assign("BANGCHU", $this->bean->bangchu);
     parent::display();
 }
开发者ID:sysraj86,项目名称:carnivalcrm,代码行数:58,代码来源:view.detail.php

示例2: get_module_title

require_once 'modules/GroupPrograms/Forms.php';
require_once 'include/DetailView/DetailView.php';
global $mod_strings;
global $app_strings;
global $app_list_strings;
global $gridline;
global $db;
$focus = new GroupProgram();
$detailView = new DetailView();
$offset = 0;
$ss = new Sugar_Smarty();
$json = getJSONobj();
// ONLY LOAD A RECORD IF A RECORD ID IS GIVEN;
// A RECORD ID IS NOT GIVEN WHEN VIEWING IN LAYOUT EDITOR
if (isset($_REQUEST['offset']) or isset($_REQUEST['record'])) {
    $result = $detailView->processSugarBean("GROUPPROGRAMS", $focus, $offset);
    if ($result == null) {
        sugar_die($app_strings['ERROR_NO_RECORD']);
    }
    $focus = $result;
} else {
    header("Location: index.php?module=GroupPrograms&action=index");
}
if (isset($_REQUEST['isDuplicate']) && $_REQUEST['isDuplicate'] == 'true') {
    $focus->id = "";
}
echo "\n<p>\n";
echo get_module_title($mod_strings['LBL_MODULE_ID'], $mod_strings['LBL_MODULE_NAME'] . ": " . $focus->name, true);
echo "\n</p>\n";
global $theme;
$theme_path = "themes/" . $theme . "/";
开发者ID:sysraj86,项目名称:carnivalcrm,代码行数:31,代码来源:DetailView.php

示例3: DetailView

 * Contributor(s): ______________________________________..
 ********************************************************************************/
require_once 'include/upload_file.php';
require_once 'include/DetailView/DetailView.php';
//Old DetailView compares wrong session variable against new view.list.  Need to sync so that
//the pagination on the DetailView page will show.
if (isset($_SESSION['EMAILTEMPLATE_FROM_LIST_VIEW'])) {
    $_SESSION['EMAIL_TEMPLATE_FROM_LIST_VIEW'] = $_SESSION['EMAILTEMPLATE_FROM_LIST_VIEW'];
}
global $app_strings;
global $mod_strings;
$focus = BeanFactory::getBean('EmailTemplates');
$detailView = new DetailView();
$offset = 0;
if (isset($_REQUEST['offset']) or isset($_REQUEST['record'])) {
    $result = $detailView->processSugarBean("EMAIL_TEMPLATE", $focus, $offset);
    if ($result == null) {
        sugar_die($app_strings['ERROR_NO_RECORD']);
    }
    $focus = $result;
} else {
    header("Location: index.php?module=Accounts&action=index");
}
if (isset($_REQUEST['isDuplicate']) && $_REQUEST['isDuplicate'] == 'true') {
    $focus->id = "";
}
//needed when creating a new note with default values passed in
if (isset($_REQUEST['contact_name']) && is_null($focus->contact_name)) {
    $focus->contact_name = $_REQUEST['contact_name'];
}
if (isset($_REQUEST['contact_id']) && is_null($focus->contact_id)) {
开发者ID:jglaine,项目名称:sugar761-ent,代码行数:31,代码来源:DetailView.php

示例4: get_module_title

require_once 'data/Tracker.php';
require_once 'modules/Documents/Document.php';
require_once 'modules/DocumentRevisions/DocumentRevision.php';
require_once 'include/upload_file.php';
require_once 'include/ListView/ListView.php';
require_once 'include/DetailView/DetailView.php';
global $app_strings;
global $mod_strings;
global $app_list_strings;
global $gridline;
$mod_strings = return_module_language($current_language, 'Documents');
$focus = new Document();
$detailView = new DetailView();
$offset = 0;
if (isset($_REQUEST['offset']) or isset($_REQUEST['record'])) {
    $result = $detailView->processSugarBean("DOCUMENT", $focus, $offset);
    if ($result == null) {
        sugar_die($app_strings['ERROR_NO_RECORD']);
    }
    $focus = $result;
} else {
    header("Location: index.php?module=Accounts&action=index");
}
$old_id = "";
if (isset($_REQUEST['isDuplicate']) && $_REQUEST['isDuplicate'] == 'true') {
    $focus->id = "";
}
echo "\n<p>\n";
echo get_module_title($mod_strings['LBL_MODULE_NAME'], $mod_strings['LBL_MODULE_NAME'] . ": " . $focus->document_name, true);
echo "\n</p>\n";
global $theme;
开发者ID:BackupTheBerlios,项目名称:livealphaprint,代码行数:31,代码来源:DetailView.php

示例5: Meeting

/*********************************************************************************
 * Description:  TODO: To be written.
 * Portions created by SugarCRM are Copyright (C) SugarCRM, Inc.
 * All Rights Reserved.
 * Contributor(s): ______________________________________..
 ********************************************************************************/
require_once 'XTemplate/xtpl.php';
require_once 'data/Tracker.php';
require_once 'modules/Meetings/Meeting.php';
require_once 'include/DetailView/DetailView.php';
global $app_strings;
$focus = new Meeting();
$detailView = new DetailView();
$offset = 0;
if (isset($_REQUEST['offset']) or isset($_REQUEST['record'])) {
    $result = $detailView->processSugarBean("MEETING", $focus, $offset);
    if ($result == null) {
        sugar_die($app_strings['ERROR_NO_RECORD']);
    }
    $focus = $result;
} else {
    header("Location: index.php?module=Accounts&action=index");
}
if (isset($_REQUEST['isDuplicate']) && $_REQUEST['isDuplicate'] == 'true') {
    $focus->id = "";
}
//needed when creating a new meeting with default values passed in
if (isset($_REQUEST['contact_name']) && is_null($focus->contact_name)) {
    $focus->contact_name = $_REQUEST['contact_name'];
}
if (isset($_REQUEST['contact_id']) && is_null($focus->contact_id)) {
开发者ID:BackupTheBerlios,项目名称:livealphaprint,代码行数:31,代码来源:DetailView.php

示例6: Contact

 * All Rights Reserved.
 * Contributor(s): ______________________________________.
 */
require_once 'XTemplate/xtpl.php';
require_once 'data/Tracker.php';
require_once 'modules/Contacts/Contact.php';
require_once 'modules/Contacts/Forms.php';
require_once 'include/DetailView/DetailView.php';
global $mod_strings;
global $app_strings;
global $app_list_strings;
$focus = new Contact();
$detailView = new DetailView();
$offset = 0;
if (isset($_REQUEST['offset']) or isset($_REQUEST['record'])) {
    $result = $detailView->processSugarBean("CONTACT", $focus, $offset);
    if ($result == null) {
        sugar_die($app_strings['ERROR_NO_RECORD']);
    }
    $focus = $result;
    $focus->_create_proper_name_field();
} else {
    header("Location: index.php?module=Accounts&action=index");
}
if (isset($_REQUEST['isDuplicate']) && $_REQUEST['isDuplicate'] == 'true') {
    $focus->id = "";
}
////	END SETUP
///////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////
////	OUTPUT
开发者ID:BackupTheBerlios,项目名称:livealphaprint,代码行数:31,代码来源:DetailView.php

示例7: getClassicModuleTitle

 * Description:  TODO: To be written.
 * Portions created by SugarCRM are Copyright (C) SugarCRM, Inc.
 * All Rights Reserved.
 * Contributor(s): ______________________________________..
 ********************************************************************************/
require_once 'modules/Holidays/Forms.php';
require_once 'include/DetailView/DetailView.php';
global $mod_strings;
global $app_strings;
global $app_list_strings;
global $current_user;
$focus = BeanFactory::getBean('Holidays');
$detailView = new DetailView();
$offset = 0;
if (isset($_REQUEST['offset']) or isset($_REQUEST['record'])) {
    $result = $detailView->processSugarBean("HOLIDAY", $focus, $offset);
    if ($result == null) {
        sugar_die($app_strings['ERROR_NO_RECORD']);
    }
    $focus = $result;
} else {
    header("Location: index.php?module=Accounts&action=index");
}
echo getClassicModuleTitle($mod_strings['LBL_MODULE_NAME'], array($mod_strings['LBL_MODULE_NAME']), true);
$GLOBALS['log']->info("Holiday detail view");
$xtpl = new XTemplate('modules/Holidays/DetailView.html');
$xtpl->assign("MOD", $mod_strings);
$xtpl->assign("APP", $app_strings);
$xtpl->assign("GRIDLINE", $gridline);
$xtpl->assign("PRINT_URL", "index.php?" . $GLOBALS['request_string']);
$xtpl->assign("ID", $focus->id);
开发者ID:jglaine,项目名称:sugar761-ent,代码行数:31,代码来源:DetailView.php

示例8: Supplier

 * Contributor(s): ______________________________________..
 ********************************************************************************/
require_once 'XTemplate/xtpl.php';
require_once 'data/Tracker.php';
require_once 'modules/Suppliers/Supplier.php';
require_once 'include/DetailView/DetailView.php';
global $timedate;
global $mod_strings;
global $app_strings;
global $app_list_strings;
global $gridline;
$focus = new Supplier();
$detailView = new DetailView();
$offset = 0;
if (isset($_REQUEST['offset']) or isset($_REQUEST['record'])) {
    $result = $detailView->processSugarBean("SUPPLIER", $focus, $offset);
    if ($result == null) {
        sugar_die($app_strings['ERROR_NO_RECORD']);
    }
    $focus = $result;
} else {
    header("Location: index.php?module=Suppliers&action=index");
}
if (isset($_REQUEST['isDuplicate']) && $_REQUEST['isDuplicate'] == 'true') {
    $focus->id = "";
}
global $theme;
$theme_path = "themes/" . $theme . "/";
$image_path = $theme_path . "images/";
require_once $theme_path . 'layout_utils.php';
echo "\n<p>\n";
开发者ID:BackupTheBerlios,项目名称:livealphaprint,代码行数:31,代码来源:DetailView.php

示例9: get_module_title

 * SugarCRM" logo. If the display of the logo is not reasonably feasible for
 * technical reasons, the Appropriate Legal Notices must display the words
 * "Powered by SugarCRM".
 ********************************************************************************/
require_once 'include/DetailView/DetailView.php';
global $mod_strings;
global $app_strings;
global $timedate;
/* start standard DetailView layout process */
$GLOBALS['log']->info("Schedulers DetailView");
$focus = new Scheduler();
$focus->checkCurl();
$detailView = new DetailView();
$offset = 0;
if (isset($_REQUEST['offset']) or isset($_REQUEST['record'])) {
    $result = $detailView->processSugarBean("SCHEDULER", $focus, $offset);
    if ($result == null) {
        sugar_die($app_strings['ERROR_NO_RECORD']);
    }
    $focus = $result;
} else {
    header("Location: index.php?module=Schedulers&action=index");
}
if (isset($_REQUEST['isDuplicate']) && $_REQUEST['isDuplicate'] == 'true') {
    $focus->id = "";
}
echo get_module_title($mod_strings['LBL_MODULE_TITLE'], $mod_strings['LBL_MODULE_TITLE'] . ": " . $focus->name, true);
/* end standard DetailView layout process */
$focus->parseInterval();
$focus->setIntervalHumanReadable();
$xtpl = new XTemplate('modules/Schedulers/DetailView.html');
开发者ID:klr2003,项目名称:sourceread,代码行数:31,代码来源:DetailView.php

示例10: Campaign

 * Portions created by SugarCRM are Copyright (C) SugarCRM, Inc.
 * All Rights Reserved.
 * Contributor(s): ______________________________________..
 ********************************************************************************/
require_once 'include/DetailView/DetailView.php';
require_once 'modules/Campaigns/Charts.php';
global $mod_strings;
global $app_strings;
global $app_list_strings;
global $sugar_version, $sugar_config;
$focus = new Campaign();
$detailView = new DetailView();
$offset = 0;
$offset = 0;
if (isset($_REQUEST['offset']) or isset($_REQUEST['record'])) {
    $result = $detailView->processSugarBean("CAMPAIGN", $focus, $offset);
    if ($result == null) {
        sugar_die($app_strings['ERROR_NO_RECORD']);
    }
    $focus = $result;
} else {
    header("Location: index.php?module=Accounts&action=index");
}
// if campaign type is set to newsletter, then include newsletter detail view..
// ..else default to legacy detail view
//    include ('modules/Campaigns/NewsLetterTrackDetailView.php');
if (isset($focus->campaign_type) && $focus->campaign_type == "NewsLetter") {
    echo getClassicModuleTitle($mod_strings['LBL_MODULE_NAME'], array($mod_strings['LBL_NEWSLETTER'], $focus->name), true);
} else {
    echo getClassicModuleTitle($mod_strings['LBL_MODULE_NAME'], array($mod_strings['LBL_MODULE_NAME'], $focus->name), true);
}
开发者ID:butschster,项目名称:sugarcrm_dev,代码行数:31,代码来源:TrackDetailView.php

示例11: ClientRequest

require_once 'modules/ClientRequest/ClientRequest.php';
require_once 'include/DetailView/DetailView.php';
require_once 'include/database/MysqlManager.php';
require_once 'modules/EstimateComponents/EstimateComponents.php';
global $mod_strings;
global $app_strings;
global $app_list_strings;
global $current_language;
//Initializing the main object - ClientRequest
$focus = new ClientRequest();
// only load a record if a record id is given;
// a record id is not given when viewing in layout editor
$detailView = new DetailView();
$offset = 0;
if (isset($_REQUEST['offset']) or isset($_REQUEST['record'])) {
    $result = $detailView->processSugarBean("CLIENTREQUEST", $focus, $offset);
    if ($result == null) {
        sugar_die($app_strings['ERROR_NO_RECORD']);
    }
    $focus = $result;
} else {
    header("Location: index.php?module=Accounts&action=index");
}
//Initializing the Products'object - used in the first two parts
if (!is_null($focus->product_id) && !empty($focus->product_id)) {
    $product = new Products();
    $product->retrieve($focus->product_id);
}
// this query is for Estimate's components list
$fields = array('name', 'paper_type', 'paper', 'colors_a', 'colors_b');
$query = "SELECT name, paper_type, paper, colors_a, colors_b  FROM `estimates_components` WHERE parent_id='" . $focus->id . "' AND deleted=0";
开发者ID:BackupTheBerlios,项目名称:livealphaprint,代码行数:31,代码来源:CreatePDF.php

示例12: Task

 * Description:  TODO: To be written.
 * Portions created by SugarCRM are Copyright (C) SugarCRM, Inc.
 * All Rights Reserved.
 * Contributor(s): ______________________________________..
 ********************************************************************************/
require_once 'XTemplate/xtpl.php';
require_once 'data/Tracker.php';
require_once 'modules/Tasks/Task.php';
require_once 'include/time.php';
require_once 'include/DetailView/DetailView.php';
global $app_strings;
$focus = new Task();
$detailView = new DetailView();
$offset = 0;
if (isset($_REQUEST['offset']) or isset($_REQUEST['record'])) {
    $result = $detailView->processSugarBean("TASK", $focus, $offset);
    if ($result == null) {
        sugar_die($app_strings['ERROR_NO_RECORD']);
    }
    $focus = $result;
} else {
    header("Location: index.php?module=Accounts&action=index");
}
if (isset($_REQUEST['isDuplicate']) && $_REQUEST['isDuplicate'] == 'true') {
    $focus->id = "";
}
//needed when creating a new task with default values passed in
if (isset($_REQUEST['contact_name']) && is_null($focus->contact_name)) {
    $focus->contact_name = $_REQUEST['contact_name'];
}
if (isset($_REQUEST['contact_id']) && is_null($focus->contact_id)) {
开发者ID:BackupTheBerlios,项目名称:livealphaprint,代码行数:31,代码来源:DetailView.php


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