當前位置: 首頁>>代碼示例>>PHP>>正文


PHP Report::getReport方法代碼示例

本文整理匯總了PHP中Report::getReport方法的典型用法代碼示例。如果您正苦於以下問題:PHP Report::getReport方法的具體用法?PHP Report::getReport怎麽用?PHP Report::getReport使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在Report的用法示例。


在下文中一共展示了Report::getReport方法的5個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: getReport

 public function getReport(DataParam $dataParam, array $years)
 {
     try {
         $asJson = $this->asJson;
         $this->asJson = false;
         $values = $this->getValues($dataParam, $years);
         $this->asJson = $asJson;
         return $this->report->getReport($values, $years, $this->grouper);
     } catch (LoginException $exception) {
         return $this->loginExceptionMessage($exception);
     }
 }
開發者ID:raigons,項目名稱:bureauinteligencia,代碼行數:12,代碼來源:DatacenterController.php

示例2: Report

<?php

require 'Config/common.php';
require MODEL_PATH . 'Report.php';
$report = new Report();
//getting filter list
$date_filter_list = $report->getDateFilter();
$client_filter_list = $report->getClientFilter();
$product_filter_list = $report->getProductFilter();
//getting invoice list
$invoice_list = $report->getReport();
include VIEW_PATH . 'dashboard.php';
開發者ID:consumersketch,項目名稱:Anup,代碼行數:12,代碼來源:index.php

示例3: setStandartData

 /**
  * Get data for standart report and assign with xt
  * @param &Array _options	 
  */
 public function setStandartData(&$_options)
 {
     include_once getabspath('classes/reportlib.php');
     $whereComponents = $this->getWhereComponents();
     $sqlArray = $this->getReportSQLData();
     $rb = new Report($sqlArray, $this->pSet->GetTableData(".orderindexes"), $this->connection, $this->pageSize, $_options, $whereComponents["searchWhere"], $whereComponents["searchHaving"], $this);
     $this->arrReport = $rb->getReport($this->pagestart);
     $this->setDetailLinks();
     $this->buildPagination();
     $this->standardReportCommonAssign();
 }
開發者ID:kcallow,項目名稱:MatchMe,代碼行數:15,代碼來源:reportpage.php

示例4: setStandartData

 /**
  * Get data for standart report and assign with xt
  * @param &Array _options
  */
 public function setStandartData(&$_options)
 {
     include_once getabspath('classes/reportlib.php');
     if (!$_SESSION[$this->sessionPrefix . "_pagesize"]) {
         $_SESSION[$this->sessionPrefix . "_pagesize"] = -1;
     }
     // a temporary fix
     if (!$_SESSION[$this->sessionPrefix . "_pagenumber"]) {
         $_SESSION[$this->sessionPrefix . "_pagenumber"] = 1;
     }
     if (isset($_REQUEST["all"]) && $_REQUEST["all"]) {
         $PageSize = -1;
         $pagestart = 0;
         $this->jsSettings['tableSettings'][$this->tName]['reportPrintMode'] = 1;
     } else {
         $PageSize = $_SESSION[$this->sessionPrefix . "_pagesize"];
         $pagestart = ($_SESSION[$this->sessionPrefix . "_pagenumber"] - 1) * $PageSize;
     }
     $whereComponents = $this->getWhereComponents();
     $sqlArray = $this->getReportSQLData();
     $rb = new Report($sqlArray, $this->pSet->GetTableData(".orderindexes"), $this->connection, $PageSize, $_options, $whereComponents["searchWhere"], $whereComponents["searchHaving"], $this);
     $this->arrReport = $rb->getReport($pagestart);
     $this->standardReportCommonAssign();
 }
開發者ID:kcallow,項目名稱:MatchMe,代碼行數:28,代碼來源:reportprintpage.php

示例5: elseif

        } elseif ($date_type == 'last_year') {
            $str = date('Y-m-d', strtotime('-1 year ' . date('Y-m-d')));
            list($y, $m, $d) = explode('-', $str);
            $start_date = "{$y}-01-01";
            $end_date = "{$y}-12-31";
            $condition .= " and inv.invoice_date>='{$start_date}' and inv.invoice_date<='{$end_date}'";
        }
    }
    if ($client_id != '') {
        $condition .= " and c.client_id='{$client_id}'";
    }
    if ($product_id != '') {
        $condition .= " and p.product_id='{$product_id}'";
    }
}
$invoice_list = $report->getReport($condition);
if (!$invoice_list) {
    $html .= '<tr><td colspan="6" align="center">No data found for selected filter </td><tr>';
} else {
    foreach ($invoice_list as $key => $value) {
        $html .= '
		<tr>
		<td>' . $value['invoice_num'] . '</td>
		<td>' . date('d/m/Y', strtotime($value['invoice_date'])) . '</td>
		<td>' . $value['product_description'] . '</td>
		<td>' . $value['qty'] . '</td>
		<td>' . $value['price'] . '</td>
		<td>' . round($value['price'] * $value['qty'], 2) . '</td>
		<tr>';
    }
}
開發者ID:consumersketch,項目名稱:Anup,代碼行數:31,代碼來源:ajax_handler.php


注:本文中的Report::getReport方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。