当前位置: 首页>>代码示例>>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;未经允许,请勿转载。