Finish task#3278 增加项目->需求看板模式。,cost:4 left:0

This commit is contained in:
wangyidong
2017-10-26 08:55:43 +08:00
parent 87ce0c4f00
commit b4379937b5
8 changed files with 359 additions and 2 deletions
+41
View File
@@ -1425,6 +1425,47 @@ class project extends control
$this->display();
}
/**
* Story kanban.
*
* @param int $projectID
* @access public
* @return void
*/
public function storyKanban($projectID)
{
/* Save to session. */
$uri = $this->app->getURI(true);
$this->app->session->set('storyList', $uri);
/* Compatibility IE8*/
if(strpos($this->server->http_user_agent, 'MSIE 8.0') !== false) header("X-UA-Compatible: IE=EmulateIE7");
$this->project->setMenu($this->projects, $projectID);
$project = $this->loadModel('project')->getById($projectID);
$stories = $this->loadModel('story')->getProjectStories($projectID);
$this->loadModel('common')->saveQueryCondition($this->dao->get(), 'story', false);
/* Get project's product. */
$productID = 0;
$productPairs = $this->loadModel('product')->getProductsByProject($projectID);
if($productPairs) $productID = key($productPairs);
$this->view->title = $this->lang->project->kanban;
$this->view->position[] = html::a($this->createLink('project', 'story', "projectID=$projectID"), $project->name);
$this->view->position[] = $this->lang->project->kanban;
$this->view->stories = $this->story->getKanbanGroupData($stories);
$this->view->realnames = $this->loadModel('user')->getPairs('noletter');
$this->view->projectID = $projectID;
$this->view->project = $project;
$this->view->productID = $productID;
$kanbanSetting = $this->project->getKanbanSetting($projectID);
$this->view->showOption = $kanbanSetting->showOption;
$this->display();
}
/**
* Delete a project.
*