From dbc0a6c9bb68a2e1a73b62dd961da73b0fe8fd4e Mon Sep 17 00:00:00 2001 From: holan20180123 <56391770@qq.com> Date: Wed, 3 Mar 2021 09:05:46 +0800 Subject: [PATCH] * Code for task #36060. --- framework/router.class.php | 6 +- module/common/lang/de.php | 6 +- module/common/lang/en.php | 6 +- module/common/lang/fr.php | 6 +- module/common/lang/vi.php | 6 +- module/common/lang/zh-cn.php | 6 +- module/custom/control.php | 24 ++++++++ module/custom/lang/de.php | 22 ++++--- module/custom/lang/en.php | 22 ++++--- module/custom/lang/fr.php | 22 ++++--- module/custom/lang/vi.php | 22 ++++--- module/custom/lang/zh-cn.php | 26 +++++--- module/custom/view/flow.html.php | 55 +++++++++++++++++ module/story/model.php | 99 +++++++++++++++++-------------- module/story/view/create.html.php | 2 +- module/story/view/track.html.php | 4 ++ module/story/view/view.html.php | 8 ++- 17 files changed, 243 insertions(+), 99 deletions(-) create mode 100644 module/custom/view/flow.html.php diff --git a/framework/router.class.php b/framework/router.class.php index aee3096281..b71096c903 100755 --- a/framework/router.class.php +++ b/framework/router.class.php @@ -171,7 +171,7 @@ class router extends baseRouter $commonSettings = array(); try { - $commonSettings = $this->dbh->query('SELECT section, `key`, value FROM' . TABLE_CONFIG . "WHERE `owner`='system' AND (`module`='custom' or `module`='common') and `key` in ('sprintConcept', 'hourPoint', 'URSR', 'mode')")->fetchAll(); + $commonSettings = $this->dbh->query('SELECT section, `key`, value FROM' . TABLE_CONFIG . "WHERE `owner`='system' AND (`module`='custom' or `module`='common') and `key` in ('sprintConcept', 'hourPoint', 'URSR', 'mode', 'URAndSR')")->fetchAll(); } catch (PDOException $exception) { @@ -179,7 +179,7 @@ class router extends baseRouter } } - $hourKey = $planKey = $URSR = 0; + $hourKey = $planKey = $URSR = $URAndSR = 0; $mode = 'new'; $projectKey = empty($this->config->isINT) ? ITERATION_KEY : SPRINT_KEY; @@ -188,6 +188,7 @@ class router extends baseRouter if($setting->key == 'sprintConcept') $projectKey = $setting->value; if($setting->key == 'hourPoint') $hourKey = $setting->value; if($setting->key == 'URSR') $URSR = $setting->value; + if($setting->key == 'URAndSR') $URAndSR = $setting->value; if($setting->key == 'mode' and $setting->section == 'global') $mode = $setting->value; } @@ -215,6 +216,7 @@ class router extends baseRouter /* User preference init. */ $config->URSR = $URSR; + $config->URAndSR = $URAndSR; $config->programLink = 'program-pgmbrowse'; $config->productLink = 'product-all'; $config->projectLink = 'program-prjbrowse'; diff --git a/module/common/lang/de.php b/module/common/lang/de.php index c0b62c9fc3..39b96ddc9e 100644 --- a/module/common/lang/de.php +++ b/module/common/lang/de.php @@ -188,7 +188,7 @@ $lang->product->menu->home = 'Home|product|index|'; $lang->product->menu->list = array('link' => $lang->productCommon . '|product|all|', 'alias' => 'create,batchedit'); $lang->product->viewMenu = new stdclass(); -$lang->product->viewMenu->requirement = array('link' => "$lang->URCommon|product|browse|productID=%s&branch=&browseType=unclosed¶m=0&storyType=requirement", 'alias' => 'batchedit', 'subModule' => 'story'); +if($config->URAndSR) $lang->product->viewMenu->requirement = array('link' => "$lang->URCommon|product|browse|productID=%s&branch=&browseType=unclosed¶m=0&storyType=requirement", 'alias' => 'batchedit', 'subModule' => 'story'); $lang->product->viewMenu->story = array('link' => "$lang->SRCommon|product|browse|productID=%s", 'alias' => 'batchedit', 'subModule' => 'story'); $lang->product->viewMenu->plan = array('link' => "Plan|productplan|browse|productID=%s", 'subModule' => 'productplan'); $lang->product->viewMenu->release = array('link' => "Release|release|browse|productID=%s", 'subModule' => 'release'); @@ -307,7 +307,7 @@ $lang->my->menu->contacts = 'Contacts|my|managecontacts|'; $lang->my->workMenu = new stdclass(); $lang->my->workMenu->task = 'Task|my|work|mode=task'; -$lang->my->workMenu->requirement = "$lang->URCommon|my|work|mode=requirement"; +if($config->URAndSR) $lang->my->workMenu->requirement = "$lang->URCommon|my|work|mode=requirement"; $lang->my->workMenu->story = "$lang->SRCommon|my|work|mode=story"; $lang->my->workMenu->bug = 'Bug|my|work|mode=bug'; $lang->my->workMenu->testcase = 'Test Case|my|work|mode=testcase&type=assigntome'; @@ -315,7 +315,7 @@ $lang->my->workMenu->testtask = 'Test Task|my|work|mode=testtask&type=wait'; $lang->my->contributeMenu = new stdclass(); $lang->my->contributeMenu->task = 'Task|my|contribute|mode=task'; -$lang->my->contributeMenu->requirement = "$lang->URCommon|my|contribute|mode=requirement"; +f($config->URAndSR) $lang->my->contributeMenu->requirement = "$lang->URCommon|my|contribute|mode=requirement"; $lang->my->contributeMenu->story = "$lang->SRCommon|my|contribute|mode=story"; $lang->my->contributeMenu->bug = 'Bug|my|contribute|mode=bug'; $lang->my->contributeMenu->testcase = 'Test Case|my|contribute|mode=testtask&type=openedbyme'; diff --git a/module/common/lang/en.php b/module/common/lang/en.php index 83c54a65fc..51ffd4dbb7 100644 --- a/module/common/lang/en.php +++ b/module/common/lang/en.php @@ -188,7 +188,7 @@ $lang->product->menu->home = 'Home|product|index|'; $lang->product->menu->list = array('link' => $lang->productCommon . '|product|all|', 'alias' => 'create,batchedit'); $lang->product->viewMenu = new stdclass(); -$lang->product->viewMenu->requirement = array('link' => "$lang->URCommon|product|browse|productID=%s&branch=&browseType=unclosed¶m=0&storyType=requirement", 'alias' => 'batchedit', 'subModule' => 'story'); +if($config->URAndSR) $lang->product->viewMenu->requirement = array('link' => "$lang->URCommon|product|browse|productID=%s&branch=&browseType=unclosed¶m=0&storyType=requirement", 'alias' => 'batchedit', 'subModule' => 'story'); $lang->product->viewMenu->story = array('link' => "$lang->SRCommon|product|browse|productID=%s", 'alias' => 'batchedit', 'subModule' => 'story'); $lang->product->viewMenu->plan = array('link' => "Plan|productplan|browse|productID=%s", 'subModule' => 'productplan'); $lang->product->viewMenu->release = array('link' => "Release|release|browse|productID=%s", 'subModule' => 'release'); @@ -307,7 +307,7 @@ $lang->my->menu->contacts = 'Contacts|my|managecontacts|'; $lang->my->workMenu = new stdclass(); $lang->my->workMenu->task = 'Task|my|work|mode=task'; -$lang->my->workMenu->requirement = "$lang->URCommon|my|work|mode=requirement"; +if($config->URAndSR) $lang->my->workMenu->requirement = "$lang->URCommon|my|work|mode=requirement"; $lang->my->workMenu->story = "$lang->SRCommon|my|work|mode=story"; $lang->my->workMenu->bug = 'Bug|my|work|mode=bug'; $lang->my->workMenu->testcase = 'Test Case|my|work|mode=testcase&type=assigntome'; @@ -315,7 +315,7 @@ $lang->my->workMenu->testtask = 'Test Task|my|work|mode=testtask&type=wait'; $lang->my->contributeMenu = new stdclass(); $lang->my->contributeMenu->task = 'Task|my|contribute|mode=task'; -$lang->my->contributeMenu->requirement = "$lang->URCommon|my|contribute|mode=requirement"; +if($config->URAndSR) $lang->my->contributeMenu->requirement = "$lang->URCommon|my|contribute|mode=requirement"; $lang->my->contributeMenu->story = "$lang->SRCommon|my|contribute|mode=story"; $lang->my->contributeMenu->bug = 'Bug|my|contribute|mode=bug'; $lang->my->contributeMenu->testcase = 'Test Case|my|contribute|mode=testtask&type=openedbyme'; diff --git a/module/common/lang/fr.php b/module/common/lang/fr.php index ab2d3ef38b..107b0c6cae 100644 --- a/module/common/lang/fr.php +++ b/module/common/lang/fr.php @@ -188,7 +188,7 @@ $lang->product->menu->home = 'Home|product|index|'; $lang->product->menu->list = array('link' => $lang->productCommon . '|product|all|', 'alias' => 'create,batchedit'); $lang->product->viewMenu = new stdclass(); -$lang->product->viewMenu->requirement = array('link' => "$lang->URCommon|product|browse|productID=%s&branch=&browseType=unclosed¶m=0&storyType=requirement", 'alias' => 'batchedit', 'subModule' => 'story'); +if($config->URAndSR) $lang->product->viewMenu->requirement = array('link' => "$lang->URCommon|product|browse|productID=%s&branch=&browseType=unclosed¶m=0&storyType=requirement", 'alias' => 'batchedit', 'subModule' => 'story'); $lang->product->viewMenu->story = array('link' => "$lang->SRCommon|product|browse|productID=%s", 'alias' => 'batchedit', 'subModule' => 'story'); $lang->product->viewMenu->plan = array('link' => "Plan|productplan|browse|productID=%s", 'subModule' => 'productplan'); $lang->product->viewMenu->release = array('link' => "Release|release|browse|productID=%s", 'subModule' => 'release'); @@ -307,7 +307,7 @@ $lang->my->menu->contacts = 'Contacts|my|managecontacts|'; $lang->my->workMenu = new stdclass(); $lang->my->workMenu->task = 'Task|my|work|mode=task'; -$lang->my->workMenu->requirement = "$lang->URCommon|my|work|mode=requirement"; +if($config->URAndSR) $lang->my->workMenu->requirement = "$lang->URCommon|my|work|mode=requirement"; $lang->my->workMenu->story = "$lang->SRCommon|my|work|mode=story"; $lang->my->workMenu->bug = 'Bug|my|work|mode=bug'; $lang->my->workMenu->testcase = 'Test Case|my|work|mode=testcase&type=assigntome'; @@ -315,7 +315,7 @@ $lang->my->workMenu->testtask = 'Test Task|my|work|mode=testtask&type=wait'; $lang->my->contributeMenu = new stdclass(); $lang->my->contributeMenu->task = 'Task|my|contribute|mode=task'; -$lang->my->contributeMenu->requirement = "$lang->URCommon|my|contribute|mode=requirement"; +if($config->URAndSR) $lang->my->contributeMenu->requirement = "$lang->URCommon|my|contribute|mode=requirement"; $lang->my->contributeMenu->story = "$lang->SRCommon|my|contribute|mode=story"; $lang->my->contributeMenu->bug = 'Bug|my|contribute|mode=bug'; $lang->my->contributeMenu->testcase = 'Test Case|my|contribute|mode=testtask&type=openedbyme'; diff --git a/module/common/lang/vi.php b/module/common/lang/vi.php index 5610bb9788..53ad90ddf3 100644 --- a/module/common/lang/vi.php +++ b/module/common/lang/vi.php @@ -188,7 +188,7 @@ $lang->product->menu->home = 'Home|product|index|'; $lang->product->menu->list = array('link' => $lang->productCommon . '|product|all|', 'alias' => 'create,batchedit'); $lang->product->viewMenu = new stdclass(); -$lang->product->viewMenu->requirement = array('link' => "$lang->URCommon|product|browse|productID=%s&branch=&browseType=unclosed¶m=0&storyType=requirement", 'alias' => 'batchedit', 'subModule' => 'story'); +if($config->URAndSR) $lang->product->viewMenu->requirement = array('link' => "$lang->URCommon|product|browse|productID=%s&branch=&browseType=unclosed¶m=0&storyType=requirement", 'alias' => 'batchedit', 'subModule' => 'story'); $lang->product->viewMenu->story = array('link' => "$lang->SRCommon|product|browse|productID=%s", 'alias' => 'batchedit', 'subModule' => 'story'); $lang->product->viewMenu->plan = array('link' => "Plan|productplan|browse|productID=%s", 'subModule' => 'productplan'); $lang->product->viewMenu->release = array('link' => "Release|release|browse|productID=%s", 'subModule' => 'release'); @@ -307,7 +307,7 @@ $lang->my->menu->contacts = 'Contacts|my|managecontacts|'; $lang->my->workMenu = new stdclass(); $lang->my->workMenu->task = 'Task|my|work|mode=task'; -$lang->my->workMenu->requirement = "$lang->URCommon|my|work|mode=requirement"; +if($config->URAndSR) $lang->my->workMenu->requirement = "$lang->URCommon|my|work|mode=requirement"; $lang->my->workMenu->story = "$lang->SRCommon|my|work|mode=story"; $lang->my->workMenu->bug = 'Bug|my|work|mode=bug'; $lang->my->workMenu->testcase = 'Test Case|my|work|mode=testcase&type=assigntome'; @@ -315,7 +315,7 @@ $lang->my->workMenu->testtask = 'Test Task|my|work|mode=testtask&type=wait'; $lang->my->contributeMenu = new stdclass(); $lang->my->contributeMenu->task = 'Task|my|contribute|mode=task'; -$lang->my->contributeMenu->requirement = "$lang->URCommon|my|contribute|mode=requirement"; +if($config->URAndSR) $lang->my->contributeMenu->requirement = "$lang->URCommon|my|contribute|mode=requirement"; $lang->my->contributeMenu->story = "$lang->SRCommon|my|contribute|mode=story"; $lang->my->contributeMenu->bug = 'Bug|my|contribute|mode=bug'; $lang->my->contributeMenu->testcase = 'Test Case|my|contribute|mode=testtask&type=openedbyme'; diff --git a/module/common/lang/zh-cn.php b/module/common/lang/zh-cn.php index 44cb83090b..0dc21f04ad 100644 --- a/module/common/lang/zh-cn.php +++ b/module/common/lang/zh-cn.php @@ -187,7 +187,7 @@ $lang->product->menu->home = '主页|product|index|'; $lang->product->menu->list = array('link' => $lang->productCommon . '|product|all|', 'alias' => 'create,batchedit,manageline'); $lang->product->viewMenu = new stdclass(); -$lang->product->viewMenu->requirement = array('link' => "$lang->URCommon|product|browse|productID=%s&branch=&browseType=unclosed¶m=0&storyType=requirement", 'alias' => 'batchedit', 'subModule' => 'story'); +if($config->URAndSR) $lang->product->viewMenu->requirement = array('link' => "$lang->URCommon|product|browse|productID=%s&branch=&browseType=unclosed¶m=0&storyType=requirement", 'alias' => 'batchedit', 'subModule' => 'story'); $lang->product->viewMenu->story = array('link' => "$lang->SRCommon|product|browse|productID=%s", 'alias' => 'batchedit', 'subModule' => 'story'); $lang->product->viewMenu->plan = array('link' => "计划|productplan|browse|productID=%s", 'subModule' => 'productplan'); $lang->product->viewMenu->release = array('link' => '发布|release|browse|productID=%s', 'subModule' => 'release'); @@ -306,7 +306,7 @@ $lang->my->menu->contacts = '联系人|my|managecontacts|'; $lang->my->workMenu = new stdclass(); $lang->my->workMenu->task = '任务|my|work|mode=task'; -$lang->my->workMenu->requirement = "$lang->URCommon|my|work|mode=requirement"; +if($config->URAndSR) $lang->my->workMenu->requirement = "$lang->URCommon|my|work|mode=requirement"; $lang->my->workMenu->story = "$lang->SRCommon|my|work|mode=story"; $lang->my->workMenu->bug = 'Bug|my|work|mode=bug'; $lang->my->workMenu->testcase = '用例|my|work|mode=testcase&type=assigntome'; @@ -314,7 +314,7 @@ $lang->my->workMenu->testtask = '测试单|my|work|mode=testtask&type=wait'; $lang->my->contributeMenu = new stdclass(); $lang->my->contributeMenu->task = '任务|my|contribute|mode=task'; -$lang->my->contributeMenu->requirement = "$lang->URCommon|my|contribute|mode=requirement"; +if($config->URAndSR) $lang->my->contributeMenu->requirement = "$lang->URCommon|my|contribute|mode=requirement"; $lang->my->contributeMenu->story = "$lang->SRCommon|my|contribute|mode=story"; $lang->my->contributeMenu->bug = 'Bug|my|contribute|mode=bug'; $lang->my->contributeMenu->testcase = '用例|my|contribute|mode=testcase&type=openedbyme'; diff --git a/module/custom/control.php b/module/custom/control.php index 9ad1379ab2..f60d9166b8 100644 --- a/module/custom/control.php +++ b/module/custom/control.php @@ -538,6 +538,30 @@ class custom extends control $this->display(); } + /** + * Set flow. + * + * @access public + * @return void + */ + public function flow() + { + if($_POST) + { + $this->custom->setConcept(); + $this->loadModel('setting')->setItem('system.custom.URAndSR', $this->post->URAndSR); + + $this->app->loadLang('common'); + $locate = inlink('flow'); + + $this->send(array('result' => 'success', 'message' => $this->lang->saveSuccess, 'locate' => $locate)); + } + + $this->view->title = $this->lang->custom->flow; + $this->view->position[] = $this->lang->custom->flow; + $this->display(); + } + /** * Set Mode. * diff --git a/module/custom/lang/de.php b/module/custom/lang/de.php index 70282247f6..913c5536f9 100644 --- a/module/custom/lang/de.php +++ b/module/custom/lang/de.php @@ -139,7 +139,7 @@ $lang->custom->user->fields['statusList'] = 'Status'; $lang->custom->user->fields['contactField'] = 'Available Contact'; $lang->custom->user->fields['deleted'] = 'Show deleted user'; -$lang->custom->system = array('required', 'score'); +$lang->custom->system = array('required', 'flow', 'score'); $lang->custom->block = new stdclass(); $lang->custom->block->fields['closed'] = 'Closed Block'; @@ -190,8 +190,18 @@ $lang->custom->weekend = 'Weekend'; $lang->custom->weekendList[2] = '2-Day Off'; $lang->custom->weekendList[1] = '1-Day Off'; -$lang->custom->sprintConceptList[0] = 'Program - Product - Iteration'; -$lang->custom->sprintConceptList[1] = 'Program - Product - Sprint'; +global $config; +if($config->systemMode == 'classic') +{ + $lang->custom->sprintConceptList[0] = 'Product - Project'; + $lang->custom->sprintConceptList[1] = 'Product - Iteration'; + $lang->custom->sprintConceptList[2] = 'Product - Sprint'; +} +else +{ + $lang->custom->sprintConceptList[0] = 'Program - Product - Iteration'; + $lang->custom->sprintConceptList[1] = 'Program - Product - Sprint'; +} $lang->custom->workingList['full'] = 'Full Management of Dev'; @@ -212,10 +222,8 @@ $lang->custom->moduleName['product'] = $lang->productCommon; $lang->custom->moduleName['productplan'] = 'Plan'; $lang->custom->moduleName['project'] = $lang->sprintCommon; -$lang->custom->conceptQuestions['overview'] = "1. Which combination of management fits your company?"; -$lang->custom->conceptQuestions['story'] = "2. Do you use the concept of requirement or user story in your company?"; -$lang->custom->conceptQuestions['requirementpoint'] = "3. Do you use hours or function points to make estimations in your company?"; -$lang->custom->conceptQuestions['storypoint'] = "3. Do you use hours or story points to make estimations in your company?"; +$lang->custom->conceptQuestions['overview'] = "1. Which combination of management fits your company?"; +$lang->custom->conceptQuestions['URAndSR'] = "2. Do you want to use the concept of {$lang->URCommon} and {$lang->SRCommon} in ZenTao?"; $lang->custom->conceptOptions = new stdclass; $lang->custom->conceptOptions->story = array(); diff --git a/module/custom/lang/en.php b/module/custom/lang/en.php index ebb9666dcd..9220f1fc5d 100644 --- a/module/custom/lang/en.php +++ b/module/custom/lang/en.php @@ -139,7 +139,7 @@ $lang->custom->user->fields['statusList'] = 'Status'; $lang->custom->user->fields['contactField'] = 'Available Contact'; $lang->custom->user->fields['deleted'] = 'Deleted User'; -$lang->custom->system = array('required', 'score'); +$lang->custom->system = array('required', 'flow', 'score'); $lang->custom->block = new stdclass(); $lang->custom->block->fields['closed'] = 'Closed Block'; @@ -190,8 +190,18 @@ $lang->custom->weekend = 'Weekend'; $lang->custom->weekendList[2] = '2-Day Off'; $lang->custom->weekendList[1] = '1-Day Off'; -$lang->custom->sprintConceptList[0] = 'Program - Product - Iteration'; -$lang->custom->sprintConceptList[1] = 'Program - Product - Sprint'; +global $config; +if($config->systemMode == 'classic') +{ + $lang->custom->sprintConceptList[0] = 'Product - Project'; + $lang->custom->sprintConceptList[1] = 'Product - Iteration'; + $lang->custom->sprintConceptList[2] = 'Product - Sprint'; +} +else +{ + $lang->custom->sprintConceptList[0] = 'Program - Product - Iteration'; + $lang->custom->sprintConceptList[1] = 'Program - Product - Sprint'; +} $lang->custom->workingList['full'] = 'Application Lifecycle Management'; @@ -212,10 +222,8 @@ $lang->custom->moduleName['product'] = $lang->productCommon; $lang->custom->moduleName['productplan'] = 'Plan'; $lang->custom->moduleName['project'] = $lang->sprintCommon; -$lang->custom->conceptQuestions['overview'] = "1. Which combination of management fits your company?"; -$lang->custom->conceptQuestions['story'] = "2. Do you use the concept of requirement or user story in your company?"; -$lang->custom->conceptQuestions['requirementpoint'] = "3. Do you use hours or function points to make estimations in your company?"; -$lang->custom->conceptQuestions['storypoint'] = "3. Do you use hours or story points to make estimations in your company?"; +$lang->custom->conceptQuestions['overview'] = "1. Which combination of management fits your company?"; +$lang->custom->conceptQuestions['URAndSR'] = "2. Do you want to use the concept of {$lang->URCommon} and {$lang->SRCommon} in ZenTao?"; $lang->custom->conceptOptions = new stdclass; $lang->custom->conceptOptions->story = array(); diff --git a/module/custom/lang/fr.php b/module/custom/lang/fr.php index b828db4755..6246dd2560 100644 --- a/module/custom/lang/fr.php +++ b/module/custom/lang/fr.php @@ -139,7 +139,7 @@ $lang->custom->user->fields['statusList'] = 'Statut'; $lang->custom->user->fields['contactField'] = 'Contact'; $lang->custom->user->fields['deleted'] = 'Parti'; -$lang->custom->system = array('required', 'score'); +$lang->custom->system = array('required', 'flow', 'score'); $lang->custom->block = new stdclass(); $lang->custom->block->fields['closed'] = 'Bloc Fermé'; @@ -190,8 +190,18 @@ $lang->custom->weekend = 'Weekend'; $lang->custom->weekendList[2] = '2-Jour'; $lang->custom->weekendList[1] = '1-Jour'; -$lang->custom->sprintConceptList[0] = 'Program - Product - Iteration'; -$lang->custom->sprintConceptList[1] = 'Program - Product - Sprint'; +global $config; +if($config->systemMode == 'classic') +{ + $lang->custom->sprintConceptList[0] = 'Product - Project'; + $lang->custom->sprintConceptList[1] = 'Product - Iteration'; + $lang->custom->sprintConceptList[2] = 'Product - Sprint'; +} +else +{ + $lang->custom->sprintConceptList[0] = 'Program - Product - Iteration'; + $lang->custom->sprintConceptList[1] = 'Program - Product - Sprint'; +} $lang->custom->workingList['full'] = 'Application Lifecycle Management'; @@ -212,10 +222,8 @@ $lang->custom->moduleName['product'] = $lang->productCommon; $lang->custom->moduleName['productplan'] = 'Plan'; $lang->custom->moduleName['project'] = $lang->sprintCommon; -$lang->custom->conceptQuestions['overview'] = "1. Quelle combinaison de gestion convient le mieux à votre entreprise ?"; -$lang->custom->conceptQuestions['story'] = "2. Utilisez-vous le concept d'exigence ou de user story dans votre entreprise ?"; -$lang->custom->conceptQuestions['requirementpoint'] = "3. Utilisez-vous des heures ou des points de fonction pour faire des estimations dans votre entreprise ?"; -$lang->custom->conceptQuestions['storypoint'] = "3. Utilisez-vous des heures ou des points de Story pour faire des estimations dans votre entreprise ?"; +$lang->custom->conceptQuestions['overview'] = "1. Quelle combinaison de gestion convient le mieux à votre entreprise ?"; +$lang->custom->conceptQuestions['URAndSR'] = "2. Do you want to use the concept of {$lang->URCommon} and {$lang->SRCommon} in ZenTao?"; $lang->custom->conceptOptions = new stdclass; $lang->custom->conceptOptions->story = array(); diff --git a/module/custom/lang/vi.php b/module/custom/lang/vi.php index a2721dc0cd..9337d25954 100644 --- a/module/custom/lang/vi.php +++ b/module/custom/lang/vi.php @@ -139,7 +139,7 @@ $lang->custom->user->fields['statusList'] = 'Tình trạng'; $lang->custom->user->fields['contactField'] = 'Liên hệ có sẵn'; $lang->custom->user->fields['deleted'] = 'Người dùng đã xóa'; -$lang->custom->system = array('required', 'score'); +$lang->custom->system = array('required', 'flow', 'score'); $lang->custom->block = new stdclass(); $lang->custom->block->fields['closed'] = 'Đã đóng Block'; @@ -190,8 +190,18 @@ $lang->custom->weekend = 'Cuối tuần'; $lang->custom->weekendList[2] = '2 ngày nghỉ'; $lang->custom->weekendList[1] = '1 ngày nghỉ'; -$lang->custom->sprintConceptList[0] = 'Program - Product - Iteration'; -$lang->custom->sprintConceptList[1] = 'Program - Product - Sprint'; +global $config; +if($config->systemMode == 'classic') +{ + $lang->custom->sprintConceptList[0] = 'Product - Project'; + $lang->custom->sprintConceptList[1] = 'Product - Iteration'; + $lang->custom->sprintConceptList[2] = 'Product - Sprint'; +} +else +{ + $lang->custom->sprintConceptList[0] = 'Program - Product - Iteration'; + $lang->custom->sprintConceptList[1] = 'Program - Product - Sprint'; +} $lang->custom->workingList['full'] = 'Quản lý vòng đời ứng dụng'; @@ -212,10 +222,8 @@ $lang->custom->moduleName['product'] = $lang->productCommon; $lang->custom->moduleName['productplan'] = 'Kế hoạch'; $lang->custom->moduleName['project'] = $lang->sprintCommon; -$lang->custom->conceptQuestions['overview'] = "1. Sự kết hợp quản lý nào phù hợp với công ty của bạn?"; -$lang->custom->conceptQuestions['story'] = "2. Bạn có sử dụng mô hình điều kiện hay câu chuyện người dùng trong doanh nghiệp của bạn?"; -$lang->custom->conceptQuestions['requirementpoint'] = "3. Do you use hours or function points to make estimations in your company?"; -$lang->custom->conceptQuestions['storypoint'] = "3. Bạn có dùng giờ hoặc điểm để tạo dự kiến trong doanh nghiệp của bạn ?"; +$lang->custom->conceptQuestions['overview'] = "1. Sự kết hợp quản lý nào phù hợp với công ty của bạn?"; +$lang->custom->conceptQuestions['URAndSR'] = "2. Do you want to use the concept of {$lang->URCommon} and {$lang->SRCommon} in ZenTao?"; $lang->custom->conceptOptions = new stdclass; $lang->custom->conceptOptions->story = array(); diff --git a/module/custom/lang/zh-cn.php b/module/custom/lang/zh-cn.php index d364ee1ac9..b944677153 100644 --- a/module/custom/lang/zh-cn.php +++ b/module/custom/lang/zh-cn.php @@ -140,7 +140,7 @@ $lang->custom->user->fields['statusList'] = '状态'; $lang->custom->user->fields['contactField'] = '可用联系方式'; $lang->custom->user->fields['deleted'] = '列出已删除用户'; -$lang->custom->system = array('required', 'score'); +$lang->custom->system = array('required', 'flow', 'score'); $lang->custom->block = new stdclass(); $lang->custom->block->fields['closed'] = '关闭的区块'; @@ -191,8 +191,18 @@ $lang->custom->weekend = '休息日'; $lang->custom->weekendList[2] = '双休'; $lang->custom->weekendList[1] = '单休'; -$lang->custom->sprintConceptList[0] = '项目 - 产品 - 迭代'; -$lang->custom->sprintConceptList[1] = '项目 - 产品 - 冲刺'; +global $config; +if($config->systemMode == 'classic') +{ + $lang->custom->sprintConceptList[0] = '产品 - 项目'; + $lang->custom->sprintConceptList[1] = '产品 - 迭代'; + $lang->custom->sprintConceptList[2] = '产品 - 冲刺'; +} +else +{ + $lang->custom->sprintConceptList[0] = '项目 - 产品 - 迭代'; + $lang->custom->sprintConceptList[1] = '项目 - 产品 - 冲刺'; +} $lang->custom->workingList['full'] = '完整研发管理工具'; @@ -213,16 +223,18 @@ $lang->custom->moduleName['product'] = $lang->productCommon; $lang->custom->moduleName['productplan'] = '计划'; $lang->custom->moduleName['project'] = $lang->sprintCommon; -$lang->custom->conceptQuestions['overview'] = "1. 下述哪种组合方式更适合您公司的管理现状?"; -$lang->custom->conceptQuestions['story'] = "2. 您公司是在使用需求概念还是用户故事概念?"; -$lang->custom->conceptQuestions['requirementpoint'] = "3. 您公司是在使用工时还是功能点来做规模估算?"; -$lang->custom->conceptQuestions['storypoint'] = "3. 您公司是在使用工时还是故事点来做规模估算?"; +$lang->custom->conceptQuestions['overview'] = "1. 下述哪种组合方式更适合您公司的管理现状?"; +$lang->custom->conceptQuestions['URAndSR'] = "2. 是否启用{$lang->URCommon}和{$lang->SRCommon}概念?"; $lang->custom->conceptOptions = new stdclass; $lang->custom->conceptOptions->story = array(); $lang->custom->conceptOptions->story['0'] = '需求'; $lang->custom->conceptOptions->story['1'] = '故事'; +$lang->custom->conceptOptions->URAndSR = array(); +$lang->custom->conceptOptions->URAndSR['1'] = '是'; +$lang->custom->conceptOptions->URAndSR['0'] = '否'; + $lang->custom->conceptOptions->hourPoint = array(); $lang->custom->conceptOptions->hourPoint['0'] = '工时'; $lang->custom->conceptOptions->hourPoint['1'] = '故事点'; diff --git a/module/custom/view/flow.html.php b/module/custom/view/flow.html.php new file mode 100644 index 0000000000..9b45db4f56 --- /dev/null +++ b/module/custom/view/flow.html.php @@ -0,0 +1,55 @@ + + * @package ZenTaoPMS + * @version $Id: deny.html.php 4129 2013-01-18 01:58:14Z wwccss $ + */ +?> +config->conceptSetted)):?> + + + + +config->conceptSetted)):?> +