* finish task #2242.

This commit is contained in:
wangyidong
2015-05-06 15:42:23 +08:00
parent dca976c86a
commit ba83f43b15
4 changed files with 151 additions and 113 deletions
+5 -2
View File
@@ -526,7 +526,7 @@ class project extends control
* @access public
* @return void
*/
public function story($projectID = 0, $orderBy = '')
public function story($projectID = 0, $orderBy = '', $type = 'byModule', $param = 0)
{
/* Load these models. */
$this->loadModel('story');
@@ -552,7 +552,7 @@ class project extends control
$position[] = $this->lang->project->story;
/* The pager. */
$stories = $this->story->getProjectStories($projectID, $sort);
$stories = $this->story->getProjectStories($projectID, $sort, $type, $param);
$this->loadModel('common')->saveQueryCondition($this->dao->get(), 'story', false);
$storyTasks = $this->task->getStoryTaskCounts(array_keys($stories), $projectID);
$users = $this->user->getPairs('noletter');
@@ -574,7 +574,10 @@ class project extends control
$this->view->stories = $stories;
$this->view->summary = $this->product->summary($stories);
$this->view->orderBy = $orderBy;
$this->view->type = $type;
$this->view->param = $param;
$this->view->storyTasks = $storyTasks;
$this->view->moduleTree = $this->loadModel('tree')->getTaskTreeMenu($projectID, $productID = 0, $startModuleID = 0, array('treeModel', 'createProjectStoryLink'));
$this->view->tabID = 'story';
$this->view->users = $users;