weekly->summary;?>
| weekly->progress;?> | ++ weekly->progress;?> + + | weekly->analysisResult;?> |
diff --git a/module/block/control.php b/module/block/control.php index d026675666..0832bfbda1 100755 --- a/module/block/control.php +++ b/module/block/control.php @@ -1237,7 +1237,8 @@ class block extends control $this->view->sv = $this->weekly->getSV($this->view->ev, $this->view->pv); $this->view->cv = $this->weekly->getCV($this->view->ev, $this->view->ac); - $progress = !empty($this->view->pv) ? floor($this->view->ac / $this->view->pv * 1000) / 1000 * 100 : 0; + $left = (float)$this->weekly->getLeft($this->session->project, $today); + $progress = (!empty($this->view->ac) or !empty($left)) ? floor($this->view->ac / ($this->view->ac + $left) * 1000) / 1000 * 100 : 0; $this->view->progress = $progress > 100 ? 100 : $progress; $this->view->current = $current; } @@ -1261,7 +1262,8 @@ class block extends control $this->view->sv = $this->weekly->getSV($this->view->ev, $this->view->pv); $this->view->cv = $this->weekly->getCV($this->view->ev, $this->view->ac); - $progress = !empty($this->view->pv) ? floor($this->view->ac / $this->view->pv * 1000) / 1000 * 100 : 0; + $left = (float)$data['left']; + $progress = (!empty($this->view->ac) or !empty($left)) ? floor($this->view->ac / ($this->view->ac + $left) * 1000) / 1000 * 100 : 0; $this->view->progress = $progress > 100 ? 100 : $progress; } diff --git a/module/block/view/waterfallreportblock.html.php b/module/block/view/waterfallreportblock.html.php index 30af25e1cf..ba76bea5e7 100644 --- a/module/block/view/waterfallreportblock.html.php +++ b/module/block/view/waterfallreportblock.html.php @@ -14,9 +14,30 @@ .block-waterfallreport .progress {position: absolute; left: 45px; top: 90px; right: 40px;} .block-waterfallreport .progress-num {font-size: 20px; font-weight: 700;} .block-waterfallreport .col-right .tile-amount {font-size: 20px;} - -
Statistical range:
+1) Start date of this week: 00:00:00 on Monday End date of this week: determined according to the calculation of working days and holidays +Statistical range:
+1) Tasks whose work consumption is not 0 before the end date of this week +Statistical range:
+1) All consumed man hours include task, requirement, bug, use case, version, test sheet, problem, risk, document and review time +Statistical range:
+1) The total consumed man hours include task, demand, bug, use case, version, test sheet, problem, risk, document and review time +Statistical range:
+1) Start date of this week: 00:00:00 on Monday End date of this week: determined according to the calculation of working days and holidays +Statistical range:
+1) Tasks whose work consumption is not 0 before the end date of this week +Statistical range:
+1) All consumed man hours include task, requirement, bug, use case, version, test sheet, problem, risk, document and review time +Statistical range:
+1) Start date of this week: 00:00:00 on Monday End date of this week: determined according to the calculation of working days and holidays +Statistical range:
+1) Tasks whose work consumption is not 0 before the end date of this week +Statistical range:
+1) All consumed man hours include task, requirement, bug, use case, version, test sheet, problem, risk, document and review time +Statistical range:
+1) The total consumed man hours include task, demand, bug, use case, version, test sheet, problem, risk, document and review time +Statistical range:
+1) Start date of this week: 00:00:00 on Monday End date of this week: determined according to the calculation of working days and holidays +Statistical range:
+1) Tasks whose work consumption is not 0 before the end date of this week +Statistical range:
+1) All consumed man hours include task, requirement, bug, use case, version, test sheet, problem, risk, document and review time +Statistical range:
+1) Start date of this week: 00:00:00 on Monday End date of this week: determined according to the calculation of working days and holidays +Statistical range:
+1) Tasks whose work consumption is not 0 before the end date of this week +Statistical range:
+1) All consumed man hours include task, requirement, bug, use case, version, test sheet, problem, risk, document and review time +Statistical range:
+1) The total consumed man hours include task, demand, bug, use case, version, test sheet, problem, risk, document and review time +Statistical range:
+1) Start date of this week: 00:00:00 on Monday End date of this week: determined according to the calculation of working days and holidays +Statistical range:
+1) Tasks whose work consumption is not 0 before the end date of this week +Statistical range:
+1) All consumed man hours include task, requirement, bug, use case, version, test sheet, problem, risk, document and review time +统计范围:
+1)本周开始日期:周一 00:00:00 本周结束日期:根据工作日和节假日的计算来确定 +统计范围:
+1)本周结束日期之前消耗工时不为0的任务 +统计范围:
+1)所有消耗的工时包括任务、需求、Bug、用例、版本、测试单、问题、风险、文档、评审的耗时 +统计范围:
+1)总消耗的工时包括任务、需求、Bug、用例、版本、测试单、问题、风险、文档、评审的耗时 +统计范围:
+1)本周开始日期:周一 00:00:00 本周结束日期:根据工作日和节假日的计算来确定 +统计范围:
+1)本周结束日期之前消耗工时不为0的任务 +统计范围:
+1)所有消耗的工时包括任务、需求、Bug、用例、版本、测试单、问题、风险、文档、评审的耗时 +