* finished the task #446

This commit is contained in:
shiyangyangwork@yahoo.cn
2011-04-21 09:31:50 +00:00
parent fce645a160
commit 94f70a528b
2 changed files with 2 additions and 3 deletions
+2 -2
View File
@@ -530,7 +530,7 @@ class storyModel extends model
*/
public function getProjectStoryPairs($projectID = 0, $productID = 0)
{
$stories = $this->dao->select('t2.id, t2.title, t2.module, t3.name AS product')
$stories = $this->dao->select('t2.id, t2.title, t2.module, t2.pri, t2.estimate, t3.name AS product')
->from(TABLE_PROJECTSTORY)->alias('t1')
->leftJoin(TABLE_STORY)->alias('t2')
->on('t1.story = t2.id')
@@ -665,7 +665,7 @@ class storyModel extends model
/* Format these stories. */
$storyPairs = array('' => '');
foreach($stories as $story) $storyPairs[$story->id] = $story->id . ':' . $story->title;
foreach($stories as $story) $storyPairs[$story->id] ='ID:' . $story->id . ' ; ' . '优先级:' . $story->pri . ' ; ' . '预计工时:' . $story->estimate . ' ; ' .'需求名称 ' . ':' . $story->title;
return $storyPairs;
}
-1
View File
@@ -71,7 +71,6 @@ class task extends control
$stories = $this->story->getProjectStoryPairs($projectID);
$members = $this->project->getTeamMemberPairs($projectID, 'nodeleted');
$header['title'] = $project->name . $this->lang->colon . $this->lang->task->create;
$position[] = html::a($browseProjectLink, $project->name);
$position[] = $this->lang->task->create;