* add comment of report.

This commit is contained in:
zhujinyong
2012-07-01 13:20:13 +00:00
parent 460898e122
commit 24a65cfbb8
2 changed files with 52 additions and 0 deletions
+32
View File
@@ -11,11 +11,23 @@
*/
class report extends control
{
/**
* The index of report, goto project deviation.
*
* @access public
* @return void
*/
public function index()
{
$this->locate(inlink('projectdeviation'));
}
/**
* Project deviation report.
*
* @access public
* @return void
*/
public function projectDeviation()
{
$this->view->header->title = $this->lang->report->projectDeviation;
@@ -23,6 +35,12 @@ class report extends control
$this->display();
}
/**
* Product information report.
*
* @access public
* @return void
*/
public function productInfo()
{
$this->app->loadLang('product');
@@ -33,6 +51,14 @@ class report extends control
$this->display();
}
/**
* Bug summary report.
*
* @param int $begin
* @param int $end
* @access public
* @return void
*/
public function bugSummary($begin = 0, $end = 0)
{
$this->app->loadLang('bug');
@@ -59,6 +85,12 @@ class report extends control
$this->display();
}
/**
* Workload report.
*
* @access public
* @return void
*/
public function workload()
{
$this->view->header->title = $this->lang->report->workload;
+20
View File
@@ -272,6 +272,12 @@ EOT;
return $projects;
}
/**
* Get products.
*
* @access public
* @return array
*/
public function getProducts()
{
$products = $this->dao->select('id, code, name, PO')->from(TABLE_PRODUCT)->where('deleted')->eq(0)->fetchAll('id');
@@ -292,6 +298,14 @@ EOT;
return $products;
}
/**
* Get bugs
*
* @param int $begin
* @param int $end
* @access public
* @return array
*/
public function getBugs($begin, $end)
{
$bugGroups = $this->dao->select('id, resolution, openedBy')->from(TABLE_BUG)
@@ -311,6 +325,12 @@ EOT;
return $bugSummary;
}
/**
* Get workload.
*
* @access public
* @return array
*/
public function getWorkload()
{
$tasks = $this->dao->select('t1.*, t2.name as projectName')