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


PHP Products::retrieve_entity_info方法代码示例

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


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

示例1: buildDocumentModel

 function buildDocumentModel()
 {
     global $app_strings;
     try {
         $model = parent::buildDocumentModel();
         $this->generateEntityModel($this->focus, 'HelpDesk', 'helpdesk_', $model);
         $entity = new Products();
         if ($this->focusColumnValue('product_id')) {
             $entity->retrieve_entity_info($this->focusColumnValue('product_id'), 'Products');
         }
         $this->generateEntityModel($entity, 'Products', 'product_', $model);
         if ($this->focusColumnValue('parent_id')) {
             $setype = getSalesEntityType($this->focusColumnValue('parent_id'));
         }
         $account = new Accounts();
         $contact = new Contacts();
         if ($setype == 'Accounts') {
             $account->retrieve_entity_info($this->focusColumnValue('parent_id'), $setype);
         } elseif ($setype == 'Contacts') {
             $contact->retrieve_entity_info($this->focusColumnValue('parent_id'), $setype);
         }
         $this->generateEntityModel($account, 'Accounts', 'account_', $model);
         $this->generateEntityModel($contact, 'Contacts', 'contact_', $model);
         $this->generateUi10Models($model);
         $this->generateRelatedListModels($model);
         $model->set('helpdesk_owner', getUserFullName($this->focusColumnValue('assigned_user_id')));
         return $model;
     } catch (Exception $e) {
         echo '<meta charset="utf-8" />';
         if ($e->getMessage() == $app_strings['LBL_RECORD_DELETE']) {
             echo $app_strings['LBL_RECORD_INCORRECT'];
             echo '<br><br>';
         } else {
             echo $e->getMessage();
             echo '<br><br>';
         }
         return null;
     }
 }
开发者ID:gitter-badger,项目名称:openshift-salesplatform,代码行数:39,代码来源:HelpDeskPDFController.php

示例2: Products

 * All Rights Reserved.
*
 ********************************************************************************/
require_once 'include/database/PearDatabase.php';
require_once 'include/CRMSmarty.php';
require_once 'modules/Products/Products.php';
require_once 'include/utils/utils.php';
require_once 'user_privileges/default_module_view.php';
$focus = new Products();
if (isset($_REQUEST['record']) && isset($_REQUEST['record'])) {
    //Display the error message
    if (isset($_SESSION['image_type_error']) && $_SESSION['image_type_error'] != '') {
        echo '<font color="red">' . $_SESSION['image_type_error'] . '</font>';
        session_unregister('image_type_error');
    }
    $focus->retrieve_entity_info($_REQUEST['record'], "Products");
    $focus->id = $_REQUEST['record'];
    $focus->name = $focus->column_fields['productname'];
    $focus->column_fields['product_description'] = decode_html($focus->column_fields["product_description"]);
    //描述
}
if (isset($_REQUEST['isDuplicate']) && $_REQUEST['isDuplicate'] == 'true') {
    $focus->id = "";
}
global $app_strings, $currentModule, $singlepane_view;
global $mod_strings;
global $theme;
$theme_path = "themes/" . $theme . "/";
$image_path = $theme_path . "images/";
require_once $theme_path . 'layout_utils.php';
$smarty = new CRMSmarty();
开发者ID:honj51,项目名称:taobaocrm,代码行数:31,代码来源:DetailView.php

示例3: Products

 for ($i = 1, $j = $i - 1; $i <= $num_products; $i++, $j++) {
     $product_name[$i] = $associated_products[$i]['productName' . $i];
     $imagename[$i] = $associated_products[$i]['imagename' . $i];
     $prod_description[$i] = $associated_products[$i]['comment' . $i];
     $product_id[$i] = $associated_products[$i]['hdnProductId' . $i];
     $qty[$i] = ec_number_format($associated_products[$i]['qty' . $i]);
     $unit_price[$i] = ec_number_format($associated_products[$i]['unitPrice' . $i]);
     $list_price[$i] = ec_number_format($associated_products[$i]['listPrice' . $i]);
     $list_pricet[$i] = $associated_products[$i]['listPrice' . $i];
     $usageunit[$i] = $associated_products[$i]['usageunit' . $i];
     $serial_no[$i] = $associated_products[$i]['serial_no' . $i];
     $productcode[$i] = $associated_products[$i]['productcode' . $i];
     $producttotal = $qty[$i] * $list_pricet[$i];
     $prod_total[$i] = ec_number_format($producttotal);
     $product_focus = new Products();
     $product_focus->retrieve_entity_info($product_id[$i], "Products");
     foreach ($product_focus->column_fields as $key => $value) {
         $product_line[$j][$key] = $value;
     }
     $product_line[$j]["name"] = $product_name[$i];
     $product_line[$j]["spec"] = $serial_no[$i];
     $product_line[$j]["code"] = $productcode[$i];
     $product_line[$j]["imagename"] = $imagename[$i];
     $product_line[$j]["unit"] = $usageunit[$i];
     $product_line[$j]["qty"] = $qty[$i] . $usageunit[$i];
     $product_line[$j]["num"] = $qty[$i];
     $product_line[$j]["price"] = $list_price[$i];
     $product_line[$j]["total"] = $prod_total[$i];
     $product_line[$j]["description"] = $prod_description[$i];
     $product_focus = null;
 }
开发者ID:honj51,项目名称:taobaocrm,代码行数:31,代码来源:CreatePDFPrint.php


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