+
custom->setHours;?>
custom->setWeekend;?>
+
createLink('holiday', 'browse'), $lang->custom->setHoliday, '', "class='active'");?>
diff --git a/db/zentao.sql b/db/zentao.sql index 39768146fa..f085f5801c 100755 --- a/db/zentao.sql +++ b/db/zentao.sql @@ -2161,6 +2161,7 @@ INSERT INTO `zt_grouppriv` (`group`, `module`, `method`) VALUES (1,'custom','project'), (1,'custom','restore'), (1,'custom','set'), +(1,'custom','hours'), (1,'custom','setDefaultConcept'), (1,'custom','setPublic'), (1,'custom','setStoryConcept'), @@ -2753,6 +2754,7 @@ INSERT INTO `zt_grouppriv` (`group`, `module`, `method`) VALUES (2,'custom','product'), (2,'custom','restore'), (2,'custom','set'), +(2,'custom','hours'), (2,'custom','setPublic'), (2,'datatable','setGlobal'), (2,'dept','browse'), diff --git a/module/admin/lang/menu.php b/module/admin/lang/menu.php index d7ff4fa7c8..d7e25fd518 100644 --- a/module/admin/lang/menu.php +++ b/module/admin/lang/menu.php @@ -84,12 +84,12 @@ $lang->admin->menuList->model['menuOrder']['15'] = 'waterfall'; $lang->admin->menuList->model['menuOrder']['20'] = 'agileplus'; $lang->admin->menuList->model['menuOrder']['25'] = 'waterfallplus'; -$lang->admin->menuList->model['tabMenu']['common']['project'] = array('link' => "{$lang->project->common}|custom|required|module=project", 'alias' => 'set', 'exclude' => 'custom', 'links' => array('custom|set|')); +$lang->admin->menuList->model['tabMenu']['common']['project'] = array('link' => "{$lang->project->common}|custom|required|module=project", 'alias' => 'set', 'exclude' => 'custom', 'links' => array('custom|set|module=project&field=unitList')); $lang->admin->menuList->model['tabMenu']['common']['stage'] = array('link' => "{$lang->stage->type}|stage|settype|", 'subModule' => 'stage', 'links' => array('stage|browse|')); $lang->admin->menuList->model['tabMenu']['common']['build'] = array('link' => "{$lang->build->common}|custom|required|module=build", 'alias' => 'set', 'exclude' => 'custom'); $lang->admin->menuList->model['tabMenu']['common']['flow'] = array('link' => "{$lang->custom->flow}|custom|flow|", 'divider' => true); $lang->admin->menuList->model['tabMenu']['common']['code'] = array('link' => "{$lang->code}|custom|code|"); -$lang->admin->menuList->model['tabMenu']['common']['hours'] = array('link' => "{$lang->workingHour}|custom|hours|", 'subModule' => 'holiday', 'links' => array('holiday|browse|')); +$lang->admin->menuList->model['tabMenu']['common']['hours'] = array('link' => "{$lang->workingHour}|custom|hours|", 'subModule' => 'holiday', 'links' => array('holiday|browse|', 'custom|hours')); $lang->admin->menuList->model['tabMenu']['waterfall']['stage'] = array('link' => "{$lang->stage->list}|stage|browse|", 'subModule' => 'stage', 'exclude' => 'stage-plusbrowse'); $lang->admin->menuList->model['tabMenu']['waterfallplus']['stage'] = array('link' => "{$lang->stage->list}|stage|plusbrowse|", 'subModule' => 'stage', 'exclude' => 'stage-browse'); $lang->admin->menuList->model['tabMenu']['menuOrder']['common']['5'] = 'project'; diff --git a/module/custom/lang/de.php b/module/custom/lang/de.php index b3140f2c89..1ed0bb6dee 100644 --- a/module/custom/lang/de.php +++ b/module/custom/lang/de.php @@ -10,6 +10,7 @@ $lang->custom->key = 'Key'; $lang->custom->value = 'Value'; $lang->custom->working = 'WorkStyle'; $lang->custom->select = 'Select Concept'; +$lang->custom->hours = 'Hours'; $lang->custom->branch = 'Multi Branch'; $lang->custom->owner = 'Owner'; $lang->custom->module = 'Module'; diff --git a/module/custom/lang/en.php b/module/custom/lang/en.php index 8f2e139a8d..171bc035f2 100644 --- a/module/custom/lang/en.php +++ b/module/custom/lang/en.php @@ -10,6 +10,7 @@ $lang->custom->key = 'Key'; $lang->custom->value = 'Value'; $lang->custom->working = 'Mode'; $lang->custom->select = 'Select Concept'; +$lang->custom->hours = 'Hours'; $lang->custom->branch = 'Multi-Branch'; $lang->custom->owner = 'Owner'; $lang->custom->module = 'Module'; diff --git a/module/custom/lang/fr.php b/module/custom/lang/fr.php index 2e43227781..f434865205 100644 --- a/module/custom/lang/fr.php +++ b/module/custom/lang/fr.php @@ -10,6 +10,7 @@ $lang->custom->key = 'Clé'; $lang->custom->value = 'Valeur'; $lang->custom->working = 'Mode'; $lang->custom->select = 'Choix du Concept'; +$lang->custom->hours = 'Hours'; $lang->custom->branch = 'Multi-Branches'; $lang->custom->owner = 'Propriétaire'; $lang->custom->module = 'Module'; diff --git a/module/custom/lang/zh-cn.php b/module/custom/lang/zh-cn.php index 8ed08ff52c..1ff729cb98 100644 --- a/module/custom/lang/zh-cn.php +++ b/module/custom/lang/zh-cn.php @@ -9,6 +9,7 @@ $lang->custom->restore = '恢复默认'; $lang->custom->key = '键'; $lang->custom->value = '值'; $lang->custom->working = '工作方式'; +$lang->custom->hours = '工时'; $lang->custom->select = '请选择流程:'; $lang->custom->branch = '多分支'; $lang->custom->owner = '所有者'; diff --git a/module/custom/view/hours.html.php b/module/custom/view/hours.html.php index 466398467d..50807ab711 100644 --- a/module/custom/view/hours.html.php +++ b/module/custom/view/hours.html.php @@ -17,7 +17,7 @@
diff --git a/module/execution/model.php b/module/execution/model.php index 3b5386d02f..52724ab8d2 100755 --- a/module/execution/model.php +++ b/module/execution/model.php @@ -1957,7 +1957,7 @@ class executionModel extends model ->andWhere('t1.reviewStatus')->eq('doing') ->fi() ->orderBy($orderBy) - ->page($pager) + ->page($pager, 't1.id') ->fetchAll('id'); if(empty($productID) and !empty($executions)) $projectProductIdList = $this->dao->select('project, product')->from(TABLE_PROJECTPRODUCT)->where('project')->in(array_keys($executions))->fetchPairs(); diff --git a/module/group/lang/resource.php b/module/group/lang/resource.php index d89215cffd..8b3fe28f99 100644 --- a/module/group/lang/resource.php +++ b/module/group/lang/resource.php @@ -1444,6 +1444,7 @@ $lang->resource->custom->setDefaultConcept = 'setDefaultConcept'; $lang->resource->custom->deleteStoryConcept = 'deleteStoryConcept'; $lang->resource->custom->kanban = 'kanban'; $lang->resource->custom->code = 'code'; +$lang->resource->custom->hours = 'hours'; $lang->custom->methodOrder[5] = 'index'; $lang->custom->methodOrder[10] = 'set'; @@ -1461,6 +1462,7 @@ $lang->custom->methodOrder[65] = 'setDefaultConcept'; $lang->custom->methodOrder[70] = 'deleteStoryConcept'; $lang->custom->methodOrder[75] = 'kanban'; $lang->custom->methodOrder[80] = 'code'; +$lang->custom->methodOrder[85] = 'hours'; $lang->resource->datatable = new stdclass(); $lang->resource->datatable->setGlobal = 'setGlobal'; diff --git a/module/holiday/view/browse.html.php b/module/holiday/view/browse.html.php index 0f81948867..8aca520eff 100644 --- a/module/holiday/view/browse.html.php +++ b/module/holiday/view/browse.html.php @@ -15,8 +15,10 @@