* Finish task #38180.

This commit is contained in:
holan20180123
2021-05-14 14:32:26 +08:00
parent 948525dcd3
commit daf14af385
19 changed files with 285 additions and 1 deletions
+30
View File
@@ -2694,6 +2694,36 @@ class execution extends control
}
}
/**
* Story estimate.
*
* @param int $executionID
* @param int $storyID
* @param int $round
* @access public
* @return void
*/
public function storyEstimate($executionID, $storyID, $round = 0)
{
$this->loadModel('story');
if($_POST)
{
$this->story->saveEstimateInfo($storyID);
$this->send(array('result' => 'success', 'message' => $this->lang->saveSuccess, 'locate' => $this->createLink('execution', 'storyEstimate', "executionID=$executionID&storyID=$storyID")));
}
$estimateInfo = $this->story->getEstimateInfo($storyID, $round);
$this->view->estimateInfo = $estimateInfo;
$this->view->round = !empty($estimateInfo->round) ? $estimateInfo->round : 0;
$this->view->rounds = $this->story->getEstimateRounds($storyID);
$this->view->users = $this->loadModel('user')->getPairs('noletter');
$this->view->team = $this->execution->getTeamMembers($executionID);
$this->view->executionID = $executionID;
$this->view->storyID = $storyID;
$this->display();
}
/**
* All execution.
*