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


PHP Quote::retrieve方法代码示例

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


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

示例1: get_module_title

 * Contributor(s): ______________________________________.
 */
require_once 'XTemplate/xtpl.php';
require_once 'data/Tracker.php';
require_once 'modules/Quotes/Quote.php';
require_once 'include/time.php';
require_once 'modules/Quotes/Forms.php';
global $timedate;
global $app_strings;
global $app_list_strings;
global $current_language;
global $current_user;
global $sugar_version, $sugar_config;
$focus = new Quote();
if (!empty($_REQUEST['record'])) {
    $focus->retrieve($_REQUEST['record']);
}
echo "\n<p>\n";
echo get_module_title($mod_strings['LBL_MODULE_NAME'], $mod_strings['LBL_MODULE_NAME'] . ": " . $focus->name, true);
echo "\n</p>\n";
global $theme;
$theme_path = "themes/" . $theme . "/";
$image_path = $theme_path . "images/";
require_once $theme_path . 'layout_utils.php';
$GLOBALS['log']->info("Quotes detail view");
$xtpl = new XTemplate('modules/Quotes/EstimateSelect.html');
$json = getJSONobj();
$popup_request_data = array('call_back_function' => 'set_return', 'form_name' => 'EditView', 'field_to_name_array' => array('id' => 'estimate_id', 'name' => 'estimate_name'));
$encoded_product_popup_request_data = $json->encode($popup_request_data);
$xtpl->assign('encoded_products_popup_request_data', $encoded_product_popup_request_data);
///
开发者ID:BackupTheBerlios,项目名称:livealphaprint,代码行数:31,代码来源:EstimateSelect.php

示例2: Quote

 *
 *   (c) 2005 OpenCRM
 *    - Total and Tax labels taken from language files
 *
 * Contributors: Goodwill Consulting http://www.goodwill.co.id
 */
require_once 'modules/Quotes/Quote.php';
require_once 'modules/Accounts/Account.php';
require_once 'modules/Contacts/Contact.php';
require_once 'include/database/PearDatabase.php';
//require_once('include/Localization/Localization.php');
global $app_list_strings;
global $mod_strings;
$focus = new Quote();
$quote_id = $_REQUEST['record'];
$focus->retrieve($quote_id);
//$quote_id = $focus->quotenum;
$quote_title = $focus->name;
$quote_num = $focus->quotenum;
$account_id = $focus->account_id;
$account = new Account();
$account->retrieve($account_id);
$account_name = $account->name;
$phone = $account->phone_office . " / " . $account->phone_fax;
$contact_name = $focus->billtocontactname;
// Quote Information
$valid_till = $focus->validuntil;
$bill_street = $focus->billtoaddress;
$bill_city = $focus->billtocity;
$bill_state = $focus->billtostate;
$bill_code = $focus->billpostalcode;
开发者ID:BackupTheBerlios,项目名称:livealphaprint,代码行数:31,代码来源:pdf_data.php

示例3: ClientRequest

        }
    }
} else {
    if (!is_null($focus->clientrequest_id) && !empty($focus->clientrequest_id)) {
        $ClientRequest = new ClientRequest();
        $ClientRequest->retrieve($focus->clientrequest_id);
        $xtpl->assign("clientrequest_id", $ClientRequest->id);
        $xtpl->assign("clientrequest_name", $ClientRequest->name);
        $xtpl->assign('clientrequest_number', $ClientRequest->number);
        $xtpl->assign('clientrequest_assigned_user_name', $ClientRequest->assigned_user_name);
        $xtpl->assign('clientrequest_due_date', $ClientRequest->due_date);
        $xtpl->parse('main.client_request_info');
    }
    if (!is_null($focus->quote_id) && !empty($focus->quote_id)) {
        $Quote = new Quote();
        $Quote->retrieve($focus->quote_id);
        $xtpl->assign("quote_id", $Quote->id);
        $xtpl->assign("quote_name", $Quote->name);
        $xtpl->assign('quote_number', $Quote->quotenum);
        $xtpl->assign('quote_account_name', $Quote->account_name);
        $xtpl->assign('quote_account_id', $Quote->account_id);
        $xtpl->assign('quote_contact_name', $Quote->billtocontactname);
        $xtpl->assign('quote_contact_id', $Quote->billtocontactid);
        $xtpl->parse('main.quote_info');
    }
}
if (!is_null($focus->product_id) && !empty($focus->product_id)) {
    $product = new Products();
    $product->retrieve($focus->product_id);
    $xtpl->assign("number", $product->number);
    $xtpl->assign("product_name", $product->name);
开发者ID:BackupTheBerlios,项目名称:livealphaprint,代码行数:31,代码来源:EditView.php


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