* Remove hourunit.

This commit is contained in:
Yagami
2021-01-20 15:48:58 +08:00
parent 36067c51cc
commit d03194717d
8 changed files with 18 additions and 21 deletions
+1 -1
View File
@@ -35,7 +35,7 @@
</td>
<?php if($longBlock):?>
<td><?php echo $project->teamCount;?></td>
<td><?php echo $project->consumed . ' ' . $config->hourUnit;?></td>
<td><?php echo $project->consumed;?></td>
<td><?php echo $project->budget . ' ' . zget($lang->program->unitList, $project->budgetUnit);?></td>
<td><?php echo $project->leftStories;?></td>
<td><?php echo $project->leftTasks;?></td>
+3 -3
View File
@@ -51,9 +51,9 @@
<span class="status-project status-<?php echo $execution->status?>" title='<?php echo $statusName;?>'><?php echo $statusName;?></span>
<?php endif;?>
</td>
<td class="c-hours"><?php echo $execution->hours->totalEstimate . ' ' . $config->hourUnit;?></td>
<td class="c-hours"><?php echo $execution->hours->totalConsumed . ' ' . $config->hourUnit;?></td>
<td class="c-hours"><?php echo $execution->hours->totalLeft . ' ' . $config->hourUnit;?></td>
<td class="c-hours"><?php echo $execution->hours->totalEstimate;?></td>
<td class="c-hours"><?php echo $execution->hours->totalConsumed;?></td>
<td class="c-hours"><?php echo $execution->hours->totalLeft;?></td>
<?php endif;?>
<td class="c-progress">
<div class="progress progress-text-left">
+1 -1
View File
@@ -46,7 +46,7 @@
<td class='c-pri <?php if($longBlock) echo "c-pri-long"?>'><span class='label-pri label-pri-<?php echo $task->pri;?>' title='<?php echo zget($lang->task->priList, $task->pri, $task->pri)?>'><?php echo zget($lang->task->priList, $task->pri, $task->pri)?></span></td>
<td class='c-name' style='color: <?php echo $task->color?>' title='<?php echo $task->name?>'><?php echo html::a($this->createLink('task', 'view', "taskID=$task->id", '', '', $task->PRJ), $task->name)?></td>
<?php if($longBlock):?>
<td class='c-estimate text-center'><?php echo $task->estimate . ' ' . $config->hourUnit;?></td>
<td class='c-estimate text-center'><?php echo $task->estimate;?></td>
<td class='c-deadline'><?php if(substr($task->deadline, 0, 4) > 0) echo $task->deadline;?></td>
<?php endif;?>
<?php $status = $this->processStatus('task', $task);?>
+3 -3
View File
@@ -99,9 +99,9 @@
<?php if($type != 'finishedBy'): ?>
<td class='c-user'><?php echo zget($users, $task->finishedBy);?></td>
<?php endif;?>
<td class='c-hours'><?php echo round($task->estimate, 1) . ' ' . $config->hourUnit;?></td>
<td class='c-hours'><?php echo round($task->consumed, 1) . ' ' . $config->hourUnit;?></td>
<td class='c-hours'><?php echo round($task->left, 1) . ' ' . $config->hourUnit;?></td>
<td class='c-hours'><?php echo round($task->estimate, 1);?></td>
<td class='c-hours'><?php echo round($task->consumed, 1);?></td>
<td class='c-hours'><?php echo round($task->left, 1);?></td>
<td class='c-status'>
<?php $storyChanged = (!empty($task->storyStatus) and $task->storyStatus == 'active' and $task->latestStoryVersion > $task->storyVersion and !in_array($task->status, array('cancel', 'closed')));?>
<?php !empty($storyChanged) ? print("<span class='status-story status-changed'>{$this->lang->my->storyChanged}</span>") : print("<span class='status-task status-{$task->status}'> " . $this->processStatus('task', $task) . "</span>");?>
+2 -2
View File
@@ -94,13 +94,13 @@ $config->program->datatable->fieldList['teamCount']['sort'] = 'no';
$config->program->datatable->fieldList['PRJEstimate']['title'] = 'PRJEstimate';
$config->program->datatable->fieldList['PRJEstimate']['fixed'] = 'no';
$config->program->datatable->fieldList['PRJEstimate']['width'] = '70';
$config->program->datatable->fieldList['PRJEstimate']['width'] = '60';
$config->program->datatable->fieldList['PRJEstimate']['required'] = 'no';
$config->program->datatable->fieldList['PRJEstimate']['sort'] = 'no';
$config->program->datatable->fieldList['PRJConsume']['title'] = 'PRJConsume';
$config->program->datatable->fieldList['PRJConsume']['fixed'] = 'no';
$config->program->datatable->fieldList['PRJConsume']['width'] = '70';
$config->program->datatable->fieldList['PRJConsume']['width'] = '60';
$config->program->datatable->fieldList['PRJConsume']['required'] = 'no';
$config->program->datatable->fieldList['PRJConsume']['sort'] = 'no';
+2 -5
View File
@@ -1729,9 +1729,6 @@ class programModel extends model
$title = "title='{$PRJProgram}'";
}
if($id == 'PRJEstimate') $title = "title={$project->hours->totalEstimate}{$this->config->hourUnit}";
if($id == 'PRJConsume') $title = "title={$project->hours->totalConsumed}{$this->config->hourUnit}";
echo "<td class='c-name " . $class . "' $title>";
switch($id)
{
@@ -1769,10 +1766,10 @@ class programModel extends model
echo $project->teamCount;
break;
case 'PRJEstimate':
echo $project->hours->totalEstimate . ' ' . $this->config->hourUnit;
echo $project->hours->totalEstimate;
break;
case 'PRJConsume':
echo $project->hours->totalConsumed . ' ' . $this->config->hourUnit;
echo $project->hours->totalConsumed;
break;
case 'PRJSurplus':
echo $project->hours->totalLeft;
+3 -3
View File
@@ -77,17 +77,17 @@ $config->task->datatable->fieldList['status']['required'] = 'no';
$config->task->datatable->fieldList['estimate']['title'] = 'estimateAB';
$config->task->datatable->fieldList['estimate']['fixed'] = 'no';
$config->task->datatable->fieldList['estimate']['width'] = '80';
$config->task->datatable->fieldList['estimate']['width'] = '60';
$config->task->datatable->fieldList['estimate']['required'] = 'no';
$config->task->datatable->fieldList['consumed']['title'] = 'consumedAB';
$config->task->datatable->fieldList['consumed']['fixed'] = 'no';
$config->task->datatable->fieldList['consumed']['width'] = '80';
$config->task->datatable->fieldList['consumed']['width'] = '60';
$config->task->datatable->fieldList['consumed']['required'] = 'no';
$config->task->datatable->fieldList['left']['title'] = 'leftAB';
$config->task->datatable->fieldList['left']['fixed'] = 'no';
$config->task->datatable->fieldList['left']['width'] = '80';
$config->task->datatable->fieldList['left']['width'] = '60';
$config->task->datatable->fieldList['left']['required'] = 'no';
$config->task->datatable->fieldList['progress']['title'] = 'progressAB';
+3 -3
View File
@@ -2963,13 +2963,13 @@ class taskModel extends model
$storyChanged ? print("<span class='status-story status-changed'>{$this->lang->story->changed}</span>") : print("<span class='status-task status-{$task->status}'> " . $this->processStatus('task', $task) . "</span>");
break;
case 'estimate':
echo round($task->estimate, 1) . ' ' . $this->config->hourUnit;
echo round($task->estimate, 1);
break;
case 'consumed':
echo round($task->consumed, 1) . ' ' . $this->config->hourUnit;
echo round($task->consumed, 1);
break;
case 'left':
echo round($task->left, 1) . ' ' . $this->config->hourUnit;
echo round($task->left, 1);
break;
case 'progress':
echo "{$task->progress}%";