diff --git a/module/execution/control.php b/module/execution/control.php index 2077b548e1..c05bf53dc9 100644 --- a/module/execution/control.php +++ b/module/execution/control.php @@ -3051,6 +3051,7 @@ class execution extends control { $this->app->loadLang('my'); $this->app->loadLang('product'); + $this->app->loadLang('stage'); $this->app->loadLang('programplan'); $from = $this->app->tab; @@ -3059,6 +3060,7 @@ class execution extends control { $projects = $this->project->getPairsByProgram(); $projectID = $this->project->saveState($projectID, $projects); + $this->view->project = $this->loadModel('project')->getByID($projectID); $this->project->setMenu($projectID); } @@ -3085,6 +3087,7 @@ class execution extends control $this->view->position[] = $this->lang->execution->allExecutions; $this->view->executionStats = $this->project->getStats($projectID, $status, $productID, 0, 30, $orderBy, $pager); + $this->view->productList = $this->loadModel('product')->getProductPairsByProject($projectID); $this->view->productID = $productID; $this->view->projectID = $projectID; $this->view->projects = array('') + $this->project->getPairsByProgram(); diff --git a/module/execution/view/all.html.php b/module/execution/view/all.html.php index b2afc320ed..3ee0f126e4 100644 --- a/module/execution/view/all.html.php +++ b/module/execution/view/all.html.php @@ -13,6 +13,21 @@ @@ -53,14 +71,24 @@ idAB);?> systemMode == 'new')) ? $lang->execution->execName : $lang->execution->name);?> + + model == 'waterfall'):?> + programplan->percent);?> + programplan->attribute);?> + execution->begin);?> + execution->end);?> + execution->realBegan);?> + execution->realEnd);?> + execution->owner);?> - execution->end);?> execution->execStatus : $lang->execution->status);?> execution->totalEstimate;?> execution->totalConsumed;?> execution->totalLeft;?> execution->progress;?> + model == 'scrum'):?> execution->burn;?> + execution->getFlowExtendFields(); foreach($extendFields as $extendField) echo "{$extendField->name}"; @@ -91,8 +119,15 @@ - PM);?> + type == 'stage'):?> + percent;?> + stage->typeList, $execution->attribute, '');?> + begin;?> end;?> + realBegan;?> + realEnd;?> + + PM);?> processStatus('execution', $execution);?> @@ -144,7 +179,9 @@
hours->progress);?>
+ model == 'scrum'):?> burns);?>'> + " . $this->loadModel('flow')->getFieldValue($extendField, $child) . "";?> diff --git a/module/programplan/control.php b/module/programplan/control.php index 457fed7b61..17c77aacc4 100644 --- a/module/programplan/control.php +++ b/module/programplan/control.php @@ -119,7 +119,7 @@ class programplan extends control $this->programplan->create($projectID, $this->productID, $planID); if(dao::isError()) return $this->send(array('result' => 'fail', 'message' => dao::getError())); - $locate = $this->session->projectPlanList ? $this->session->projectPlanList : $this->createLink('programplan', 'browse', "projectID=$projectID"); + $locate = $this->createLink('project', 'execution', "status=all&projectID=$projectID"); return $this->send(array('result' => 'success', 'message' => $this->lang->saveSuccess, 'locate' => $locate)); } diff --git a/module/programplan/model.php b/module/programplan/model.php index 35c9b4f375..2ec418fe6b 100644 --- a/module/programplan/model.php +++ b/module/programplan/model.php @@ -56,8 +56,7 @@ class programplanModel extends model $plans = $this->dao->select('t2.*')->from(TABLE_PROJECTPRODUCT)->alias('t1') ->leftJoin(TABLE_PROJECT)->alias('t2')->on('t1.project = t2.id') - ->where('t1.product')->eq($productID) - ->andWhere('t2.type')->eq('stage') + ->where('t2.type')->eq('stage') ->beginIF($browseType == 'all')->andWhere('t2.project')->eq($executionID)->fi() ->beginIF($browseType == 'parent')->andWhere('t2.parent')->eq($executionID)->fi() ->beginIF(!$this->app->user->admin)->andWhere('t2.id')->in($this->app->user->view->sprints)->fi() diff --git a/module/project/model.php b/module/project/model.php index 68616da49d..2dadc62f81 100644 --- a/module/project/model.php +++ b/module/project/model.php @@ -1839,7 +1839,7 @@ class projectModel extends model else { $executions = $this->dao->select('t2.*')->from(TABLE_PROJECTPRODUCT)->alias('t1') - ->leftJoin(TABLE_EXECUTION)->alias('t2')->on('t1.execution=t2.id') + ->leftJoin(TABLE_EXECUTION)->alias('t2')->on('t1.project=t2.id') ->where('t1.product')->eq($productID) ->beginIF($projectID)->andWhere('t2.project')->eq($projectID)->fi() ->beginIF($status == 'undone')->andWhere('t2.status')->notIN('done,closed')->fi()