* Adjust estimate unit settings.

This commit is contained in:
leiyong
2020-09-07 15:35:54 +08:00
parent 10a9a84dd3
commit 5bce51622b
3 changed files with 31 additions and 32 deletions
+18 -18
View File
@@ -85,29 +85,29 @@ $config->storyCommonList['vi'][0] = 'Câu chuyện';
$config->storyCommonList['vi'][1] = 'Câu chuyện';
/* Story common list. */
$config->hourPointCommonList['zh-cn'][0] = '工时';
$config->hourPointCommonList['zh-cn'][1] = '故事点';
$config->hourPointCommonList['zh-cn'][2] = '功能点';
$config->hourPointCommonList['zh-cn'][0] = '故事点';
$config->hourPointCommonList['zh-cn'][1] = '功能点';
$config->hourPointCommonList['zh-cn'][2] = '代码行';
$config->hourPointCommonList['zh-tw'][0] = '工时';
$config->hourPointCommonList['zh-tw'][1] = '故事点';
$config->hourPointCommonList['zh-tw'][2] = '功能点';
$config->hourPointCommonList['zh-tw'][0] = '故事点';
$config->hourPointCommonList['zh-tw'][1] = '功能点';
$config->hourPointCommonList['zh-tw'][2] = '代碼行';
$config->hourPointCommonList['en'][0] = 'hour';
$config->hourPointCommonList['en'][1] = 'story point';
$config->hourPointCommonList['en'][2] = 'function point';
$config->hourPointCommonList['en'][0] = 'story point';
$config->hourPointCommonList['en'][1] = 'function point';
$config->hourPointCommonList['en'][2] = 'loc point';
$config->hourPointCommonList['de'][0] = 'hour';
$config->hourPointCommonList['de'][1] = 'story point';
$config->hourPointCommonList['de'][2] = 'function point';
$config->hourPointCommonList['de'][0] = 'story point';
$config->hourPointCommonList['de'][1] = 'function point';
$config->hourPointCommonList['de'][2] = 'loc point';
$config->hourPointCommonList['fr'][0] = 'hour';
$config->hourPointCommonList['fr'][1] = 'story point';
$config->hourPointCommonList['fr'][2] = 'function point';
$config->hourPointCommonList['fr'][0] = 'story point';
$config->hourPointCommonList['fr'][1] = 'function point';
$config->hourPointCommonList['fr'][2] = 'loc point';
$config->hourPointCommonList['vi'][0] = 'giờ';
$config->hourPointCommonList['vi'][1] = 'điểm';
$config->hourPointCommonList['vi'][2] = 'function point';
$config->hourPointCommonList['vi'][0] = 'điểm';
$config->hourPointCommonList['vi'][1] = 'function point';
$config->hourPointCommonList['vi'][2] = 'loc point';
/* Plan common list. */
$config->planCommonList['zh-cn'][0] = '计划';
+8 -13
View File
@@ -28,14 +28,9 @@ $lang->custom->system[] = 'estimate';
<?php echo html::input('efficiency', $efficiency, "class='form-control'");?>
<span class='input-group-addon unify-padding'>
<?php
if($unit == 3)
{
echo $lang->custom->unitList['manhour'] . $lang->custom->unitList['loc'];
}
else
{
echo $lang->custom->unitList['efficiency'] . $lang->hourCommon;
}
if($unit == 0) echo $lang->custom->unitList['efficiency'] . $lang->custom->conceptOptions->hourPoint[0];
if($unit == 1) echo $lang->custom->unitList['efficiency'] . $lang->custom->conceptOptions->hourPoint[1];
if($unit == 2) echo $lang->custom->unitList['manhour'] . $lang->custom->unitList['loc'];
?>
</span>
</div>
@@ -85,8 +80,8 @@ $lang->custom->system[] = 'estimate';
</form>
</div>
</div>
<?php js::set('storyPoint', $lang->custom->conceptOptions->hourPoint[1]);?>
<?php js::set('functionPoint', $lang->custom->conceptOptions->hourPoint[2]);?>
<?php js::set('storyPoint', $lang->custom->conceptOptions->hourPoint[0]);?>
<?php js::set('functionPoint', $lang->custom->conceptOptions->hourPoint[1]);?>
<?php js::set('loc', $lang->custom->unitList['loc']);?>
<?php js::set('efficiency', $lang->custom->unitList['efficiency']);?>
<?php js::set('manhour', $lang->custom->unitList['manhour']);?>
@@ -94,9 +89,9 @@ $lang->custom->system[] = 'estimate';
$('#estimateTab').addClass('btn-active-text');
$('input[name="hourPoint"]').change(function()
{
if($(this).val() == 1) $('#efficiency + span').text(efficiency + storyPoint);
if($(this).val() == 2) $('#efficiency + span').text(efficiency + functionPoint);
if($(this).val() == 3) $('#efficiency + span').text(manhour + loc);
if($(this).val() == 0) $('#efficiency + span').text(efficiency + storyPoint);
if($(this).val() == 1) $('#efficiency + span').text(efficiency + functionPoint);
if($(this).val() == 2) $('#efficiency + span').text(manhour + loc);
})
</script>
<?php include '../../common/view/footer.html.php';?>
+5 -1
View File
@@ -38,7 +38,11 @@
<div class='input-group'>
<?php echo html::input('productivity', zget($budget, 'productivity', ''), "class='form-control'");?>
<span class='input-group-addon unify-padding'>
<?php echo $hourPoint == 3 ? $lang->custom->unitList['manhour'] . $lang->custom->unitList['loc'] : $lang->custom->unitList['efficiency'] . $lang->hourCommon;?>
<?php
if($hourPoint == 0) echo $lang->custom->unitList['efficiency'] . $lang->hourCommon;
if($hourPoint == 1) echo $lang->custom->unitList['efficiency'] . $lang->hourCommon;
if($hourPoint == 2) echo $lang->custom->unitList['manhour'] . $lang->custom->unitList['loc'];
?>
</span>
</div>
</td>