diff --git a/trunk/module/productplan/control.php b/trunk/module/productplan/control.php index 808b83cb1e..8ab8e1383f 100644 --- a/trunk/module/productplan/control.php +++ b/trunk/module/productplan/control.php @@ -108,6 +108,8 @@ class productplan extends control /* 关联需求。*/ public function linkStory($planID = 0) { + $this->session->set('storyList', $this->app->getURI(true)); + if(!empty($_POST)) $this->productplan->linkStory($planID); $plan = $this->productplan->getByID($planID); @@ -118,6 +120,7 @@ class productplan extends control $this->view->planStories= $this->story->getPlanStories($planID); $this->view->products = $this->product->getPairs(); $this->view->plan = $plan; + $this->view->plans = $this->dao->select('id, end')->from(TABLE_PRODUCTPLAN)->fetchPairs(); $this->display(); } diff --git a/trunk/module/productplan/view/linkstory.html.php b/trunk/module/productplan/view/linkstory.html.php index 3bb468773c..a9dc1319a3 100644 --- a/trunk/module/productplan/view/linkstory.html.php +++ b/trunk/module/productplan/view/linkstory.html.php @@ -33,21 +33,26 @@ story->id;?> story->pri;?> story->product;?> + story->plan;?> story->title;?> + story->status;?> story->linkStory;?> - id]) or $story->plan) continue;?> + id])) continue; + if(isset($story->plan) and helper::diffDate($plans[$story->plan]->end, helper::today()) > 0) continue; + ?> - id;?> + createLink('story', 'view', "storyID=$story->id"), $story->id);?> pri;?> createLink('product', 'browse', "productID=$story->product"), $products[$story->product], '_blank');?> - title;?> - - - + planTitle;?> + createLink('story', 'view', "storyID=$story->id"), $story->title);?> + story->statusList[$story->status];?> + @@ -73,10 +78,10 @@ - id;?> + createLink('story', 'view', "storyID=$story->id"), $story->id);?> pri;?> createLink('product', 'browse', "productID=$story->product"), $products[$story->product], '_blank');?> - title;?> + createLink('story', 'view', "storyID=$story->id"), $story->title);?> id", $lang->productplan->unlinkStory, 'hiddenwin');?>