From f846d3139a747fa23e8e3308e0f1886767c6a45b Mon Sep 17 00:00:00 2001 From: Yagami <976204163@qq.com> Date: Thu, 25 Feb 2021 11:25:32 +0800 Subject: [PATCH 1/4] * Fix code detail. --- config/zentaopms.php | 2 -- module/common/lang/de.php | 5 +++++ module/common/lang/en.php | 5 +++++ module/common/lang/fr.php | 5 +++++ module/common/lang/vi.php | 6 +++++- module/common/lang/zh-cn.php | 5 +++++ module/product/lang/zh-cn.php | 10 +++++++++- module/stakeholder/view/batchcreate.html.php | 2 +- 8 files changed, 35 insertions(+), 5 deletions(-) diff --git a/config/zentaopms.php b/config/zentaopms.php index cc41d94abd..6cba065977 100644 --- a/config/zentaopms.php +++ b/config/zentaopms.php @@ -223,8 +223,6 @@ $config->objectTables['module'] = TABLE_MODULE; $config->objectTables['caselib'] = TABLE_TESTSUITE; $config->objectTables['entry'] = TABLE_ENTRY; $config->objectTables['webhook'] = TABLE_WEBHOOK; -$config->objectTables['risk'] = TABLE_RISK; -$config->objectTables['issue'] = TABLE_ISSUE; $config->objectTables['design'] = TABLE_DESIGN; $config->objectTables['stakeholder'] = TABLE_STAKEHOLDER; $config->objectTables['budget'] = TABLE_BUDGET; diff --git a/module/common/lang/de.php b/module/common/lang/de.php index 087aff2b3a..71df050fca 100644 --- a/module/common/lang/de.php +++ b/module/common/lang/de.php @@ -920,9 +920,14 @@ $lang->menu->scrum->qa = 'QA|qa|index'; $lang->menu->scrum->ci = 'Code|repo|browse'; $lang->menu->scrum->projectbuild = array('link' => 'Build|projectbuild|browse|project={PROJECT}'); $lang->menu->scrum->projectrelease = array('link' => 'Release|projectrelease|browse'); +$lang->menu->scrum->other = array('link' => 'Other|project|other', 'class' => 'dropdown dropdown-hover waterfall-list', 'subModule' => 'issue,risk,stakeholder'); $lang->menu->scrum->projectsetting = array('link' => 'Setting|program|prjview|project={PROJECT}', 'alias' => 'prjedit,prjmanageproducts,prjgroup,prjmanagemembers,prjmanageview,prjmanagepriv,prjwhitelist,prjaddwhitelist'); $lang->scrum = new stdclass(); +$lang->scrum->subMenu = new stdclass(); +$lang->scrum->subMenu->other = new stdclass(); +$lang->scrum->subMenu->other->stakeholder = array('link' => 'Stakeholder|stakeholder|browse|', 'subModule' => 'stakeholder'); + $lang->scrum->setMenu = new stdclass(); $lang->scrum->setMenu->view = array('link' => 'View|program|prjview|project={PROJECT}'); $lang->scrum->setMenu->products = array('link' => 'Product|program|PRJManageProducts|project={PROJECT}', 'alias' => 'prjmanageproducts'); diff --git a/module/common/lang/en.php b/module/common/lang/en.php index 359fa4de08..7e3404d3d0 100644 --- a/module/common/lang/en.php +++ b/module/common/lang/en.php @@ -920,9 +920,14 @@ $lang->menu->scrum->qa = 'QA|qa|index'; $lang->menu->scrum->ci = 'Code|repo|browse'; $lang->menu->scrum->projectbuild = array('link' => 'Build|projectbuild|browse|project={PROJECT}'); $lang->menu->scrum->projectrelease = array('link' => 'Release|projectrelease|browse'); +$lang->menu->scrum->other = array('link' => 'Other|project|other', 'class' => 'dropdown dropdown-hover waterfall-list', 'subModule' => 'issue,risk,stakeholder'); $lang->menu->scrum->projectsetting = array('link' => 'Setting|program|prjview|project={PROJECT}', 'alias' => 'prjedit,prjmanageproducts,prjgroup,prjmanagemembers,prjmanageview,prjmanagepriv,prjwhitelist,prjaddwhitelist'); $lang->scrum = new stdclass(); +$lang->scrum->subMenu = new stdclass(); +$lang->scrum->subMenu->other = new stdclass(); +$lang->scrum->subMenu->other->stakeholder = array('link' => '干系人|stakeholder|browse|', 'subModule' => 'stakeholder'); + $lang->scrum->setMenu = new stdclass(); $lang->scrum->setMenu->view = array('link' => 'View|program|prjview|project={PROJECT}'); $lang->scrum->setMenu->products = array('link' => 'Product|program|PRJManageProducts|project={PROJECT}', 'alias' => 'prjmanageproducts'); diff --git a/module/common/lang/fr.php b/module/common/lang/fr.php index 14f71167f1..599a9e7dfd 100644 --- a/module/common/lang/fr.php +++ b/module/common/lang/fr.php @@ -920,9 +920,14 @@ $lang->menu->scrum->qa = 'QA|qa|index'; $lang->menu->scrum->ci = 'Code|repo|browse'; $lang->menu->scrum->projectbuild = array('link' => 'Build|projectbuild|browse|project={PROJECT}'); $lang->menu->scrum->projectrelease = array('link' => 'Release|projectrelease|browse'); +$lang->menu->scrum->other = array('link' => 'Other|project|other', 'class' => 'dropdown dropdown-hover waterfall-list', 'subModule' => 'issue,risk,stakeholder'); $lang->menu->scrum->projectsetting = array('link' => 'Setting|program|prjview|project={PROJECT}', 'alias' => 'prjedit,prjmanageproducts,prjgroup,prjmanagemembers,prjmanageview,prjmanagepriv,prjwhitelist,prjaddwhitelist'); $lang->scrum = new stdclass(); +$lang->scrum->subMenu = new stdclass(); +$lang->scrum->subMenu->other = new stdclass(); +$lang->scrum->subMenu->other->stakeholder = array('link' => 'Stakeholder|stakeholder|browse|', 'subModule' => 'stakeholder'); + $lang->scrum->setMenu = new stdclass(); $lang->scrum->setMenu->view = array('link' => 'View|program|prjview|project={PROJECT}'); $lang->scrum->setMenu->products = array('link' => 'Product|program|PRJManageProducts|project={PROJECT}', 'alias' => 'prjmanageproducts'); diff --git a/module/common/lang/vi.php b/module/common/lang/vi.php index 2de695ab63..8f8c64b959 100644 --- a/module/common/lang/vi.php +++ b/module/common/lang/vi.php @@ -919,10 +919,14 @@ $lang->menu->scrum->doc = 'Doc|doc|index|'; $lang->menu->scrum->qa = 'QA|qa|index'; $lang->menu->scrum->ci = 'Code|repo|browse'; $lang->menu->scrum->projectbuild = array('link' => 'Build|projectbuild|browse|project={PROJECT}'); -$lang->menu->scrum->projectrelease = array('link' => 'Release|projectrelease|browse'); +$lang->menu->scrum->other = array('link' => 'Other|project|other', 'class' => 'dropdown dropdown-hover waterfall-list', 'subModule' => 'issue,risk,stakeholder'); $lang->menu->scrum->projectsetting = array('link' => 'Setting|program|prjview|project={PROJECT}', 'alias' => 'prjedit,prjmanageproducts,prjgroup,prjmanagemembers,prjmanageview,prjmanagepriv,prjwhitelist,prjaddwhitelist'); $lang->scrum = new stdclass(); +$lang->scrum->subMenu = new stdclass(); +$lang->scrum->subMenu->other = new stdclass(); +$lang->scrum->subMenu->other->stakeholder = array('link' => 'Stakeholder|stakeholder|browse|', 'subModule' => 'stakeholder'); + $lang->scrum->setMenu = new stdclass(); $lang->scrum->setMenu->view = array('link' => 'View|program|prjview|project={PROJECT}'); $lang->scrum->setMenu->products = array('link' => 'Product|program|PRJManageProducts|project={PROJECT}', 'alias' => 'prjmanageproducts'); diff --git a/module/common/lang/zh-cn.php b/module/common/lang/zh-cn.php index 320b1ff279..615526c81f 100644 --- a/module/common/lang/zh-cn.php +++ b/module/common/lang/zh-cn.php @@ -918,9 +918,14 @@ $lang->menu->scrum->qa = '测试|qa|index'; $lang->menu->scrum->ci = '代码|repo|browse'; $lang->menu->scrum->projectbuild = array('link' => '版本|projectbuild|browse|project={PROJECT}'); $lang->menu->scrum->projectrelease = array('link' => '发布|projectrelease|browse'); +$lang->menu->scrum->other = array('link' => '其他|project|other', 'class' => 'dropdown dropdown-hover waterfall-list', 'subModule' => 'issue,risk,stakeholder'); $lang->menu->scrum->projectsetting = array('link' => '设置|program|prjview|project={PROJECT}', 'alias' => 'prjedit,prjmanageproducts,prjgroup,prjmanagemembers,prjmanageview,prjmanagepriv,prjwhitelist,prjaddwhitelist'); $lang->scrum = new stdclass(); +$lang->scrum->subMenu = new stdclass(); +$lang->scrum->subMenu->other = new stdclass(); +$lang->scrum->subMenu->other->stakeholder = array('link' => '干系人|stakeholder|browse|', 'subModule' => 'stakeholder'); + $lang->scrum->setMenu = new stdclass(); $lang->scrum->setMenu->view = array('link' => '概况|program|prjview|project={PROJECT}', 'alias' => 'prjedit'); $lang->scrum->setMenu->products = array('link' => '产品|program|PRJManageProducts|project={PROJECT}', 'alias' => 'prjmanageproducts'); diff --git a/module/product/lang/zh-cn.php b/module/product/lang/zh-cn.php index 64371edf63..b6412c30de 100644 --- a/module/product/lang/zh-cn.php +++ b/module/product/lang/zh-cn.php @@ -141,7 +141,15 @@ $lang->product->statusList[''] = ''; $lang->product->statusList['normal'] = '正常'; $lang->product->statusList['closed'] = '结束'; -$lang->product->aclList['private'] = "私有({$lang->productCommon}相关负责人、所属项目集的干系人、相关联项目的团队成员和干系人可访问)"; +global $config; +if($config->systemMode == 'new') +{ + $lang->product->aclList['private'] = "私有({$lang->productCommon}相关负责人、所属项目集的干系人、相关联项目的团队成员和干系人可访问)"; +} +else +{ + $lang->product->aclList['private'] = "私有({$lang->productCommon}相关负责人、相关联{$lang->executionCommon}的团队成员可访问)"; +} $lang->product->aclList['open'] = "公开(有{$lang->productCommon}视图权限,即可访问)"; //$lang->product->aclList['custom'] = '自定义白名单(团队成员和白名单的成员可以访问)'; diff --git a/module/stakeholder/view/batchcreate.html.php b/module/stakeholder/view/batchcreate.html.php index 376c1ab8b9..05753ada97 100644 --- a/module/stakeholder/view/batchcreate.html.php +++ b/module/stakeholder/view/batchcreate.html.php @@ -21,7 +21,7 @@ project->selectDept?> project->selectDeptTitle}'");?> - parent):?> + parent and $config->systemMode == 'new'):?> createLink('stakeholder', 'batchcreate', "dept=&parent=$project->parent"), $lang->program->importStakeholder, '', 'class="btn btn-primary"');?> From 811f4dc6c35e6123b62babadb509e2ff4ba8b372 Mon Sep 17 00:00:00 2001 From: tianshujie98 Date: Thu, 25 Feb 2021 11:28:28 +0800 Subject: [PATCH 2/4] * Finish task #36067. --- module/story/control.php | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/module/story/control.php b/module/story/control.php index da02601ff6..ef15300913 100644 --- a/module/story/control.php +++ b/module/story/control.php @@ -458,6 +458,11 @@ class story extends control $showFields = str_replace(array(0 => ",branch,", 1 => ",platform,"), '', ",$showFields,"); $showFields = trim($showFields, ','); } + if($type == 'requirement') + { + unset($customFields['plan']); + $showFields = str_replace('plan', '', $showFields); + } $this->view->customFields = $customFields; $this->view->showFields = $showFields; @@ -705,8 +710,14 @@ class story extends control /* Set Custom*/ foreach(explode(',', $this->config->story->list->customBatchEditFields) as $field) $customFields[$field] = $this->lang->story->$field; + $showFields = $this->config->story->custom->batchEditFields; + if($storyType == 'requirement') + { + unset($customFields['plan']); + $showFields = str_replace('plan', '', $showFields); + } $this->view->customFields = $customFields; - $this->view->showFields = $this->config->story->custom->batchEditFields; + $this->view->showFields = $showFields; /* Judge whether the editedStories is too large and set session. */ $countInputVars = count($stories) * (count(explode(',', $this->config->story->custom->batchEditFields)) + 3); From 8415d3831a346de0100b957682bc339b88547f75 Mon Sep 17 00:00:00 2001 From: Yagami <976204163@qq.com> Date: Thu, 25 Feb 2021 13:02:34 +0800 Subject: [PATCH 3/4] * Move durationestimation to max. --- config/zentaopms.php | 3 - db/update15.0.sql | 18 --- db/zentao.sql | 17 --- module/block/control.php | 2 +- .../view/waterfallestimateblock.html.php | 2 + 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/durationestimation/config.php | 6 - module/durationestimation/control.php | 137 ------------------ module/durationestimation/js/create.js | 55 ------- module/durationestimation/lang/de.php | 24 --- module/durationestimation/lang/en.php | 24 --- module/durationestimation/lang/fr.php | 24 --- module/durationestimation/lang/vi.php | 24 --- module/durationestimation/lang/zh-cn.php | 24 --- module/durationestimation/lang/zh-tw.php | 24 --- module/durationestimation/model.php | 51 ------- .../durationestimation/view/create.html.php | 66 --------- module/durationestimation/view/index.html.php | 43 ------ module/group/lang/resource.php | 9 -- module/productset/config.php | 0 module/productset/control.php | 8 - module/productset/model.php | 5 - module/productset/view/browse.html.php | 15 -- 27 files changed, 3 insertions(+), 608 deletions(-) delete mode 100644 module/durationestimation/config.php delete mode 100644 module/durationestimation/control.php delete mode 100644 module/durationestimation/js/create.js delete mode 100644 module/durationestimation/lang/de.php delete mode 100644 module/durationestimation/lang/en.php delete mode 100644 module/durationestimation/lang/fr.php delete mode 100644 module/durationestimation/lang/vi.php delete mode 100644 module/durationestimation/lang/zh-cn.php delete mode 100644 module/durationestimation/lang/zh-tw.php delete mode 100644 module/durationestimation/model.php delete mode 100644 module/durationestimation/view/create.html.php delete mode 100644 module/durationestimation/view/index.html.php delete mode 100644 module/productset/config.php delete mode 100644 module/productset/control.php delete mode 100644 module/productset/model.php delete mode 100644 module/productset/view/browse.html.php diff --git a/config/zentaopms.php b/config/zentaopms.php index 6cba065977..9d3653bd3f 100644 --- a/config/zentaopms.php +++ b/config/zentaopms.php @@ -188,11 +188,8 @@ define('TABLE_REPOBRANCH', '`' . $config->db->prefix . 'repobranch`'); if(!defined('TABLE_LANG')) define('TABLE_LANG', '`' . $config->db->prefix . 'lang`'); if(!defined('TABLE_DESIGN')) define('TABLE_DESIGN', '`' . $config->db->prefix . 'design`'); if(!defined('TABLE_DESIGNSPEC')) define('TABLE_DESIGNSPEC', '`' . $config->db->prefix . 'designspec`'); -if(!defined('TABLE_ISSUE')) define('TABLE_ISSUE', '`' . $config->db->prefix . 'issue`'); -if(!defined('TABLE_RISK')) define('TABLE_RISK', '`' . $config->db->prefix . 'risk`'); if(!defined('TABLE_PROJECTSPEC')) define('TABLE_PROJECTSPEC', '`' . $config->db->prefix . 'projectspec`'); if(!defined('TABLE_WORKESTIMATION')) define('TABLE_WORKESTIMATION', '`' . $config->db->prefix . 'workestimation`'); -if(!defined('TABLE_DURATIONESTIMATION')) define('TABLE_DURATIONESTIMATION', '`' . $config->db->prefix . 'durationestimation`'); if(!defined('TABLE_BUDGET')) define('TABLE_BUDGET', '`' . $config->db->prefix . 'budget`'); if(!defined('TABLE_SEARCHINDEX')) define('TABLE_SEARCHINDEX', $config->db->prefix . 'searchindex'); diff --git a/db/update15.0.sql b/db/update15.0.sql index a8c199b968..480588439b 100644 --- a/db/update15.0.sql +++ b/db/update15.0.sql @@ -146,24 +146,6 @@ CREATE TABLE IF NOT EXISTS `zt_budget` ( PRIMARY KEY (`id`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8; --- DROP TABLE IF EXISTS `zt_durationestimation`; -CREATE TABLE IF NOT EXISTS `zt_durationestimation` ( - `id` mediumint(8) unsigned NOT NULL AUTO_INCREMENT, - `PRJ` mediumint(8) unsigned NOT NULL, - `stage` mediumint(9) NOT NULL, - `workload` varchar(255) NOT NULL, - `worktimeRate` varchar(255) NOT NULL, - `people` varchar(255) NOT NULL, - `startDate` date NOT NULL, - `endDate` date NOT NULL, - `createdBy` varchar(30) NOT NULL, - `createdDate` datetime NOT NULL, - `editedBy` varchar(30) NOT NULL, - `editedDate` datetime NOT NULL, - `deleted` enum('0','1') NOT NULL DEFAULT '0', - PRIMARY KEY (`id`) -) ENGINE=MyISAM DEFAULT CHARSET=utf8; - -- DROP TABLE IF EXISTS `zt_workestimation`; CREATE TABLE IF NOT EXISTS `zt_workestimation` ( `id` mediumint(8) unsigned NOT NULL AUTO_INCREMENT, diff --git a/db/zentao.sql b/db/zentao.sql index 0e2998ad6f..379df175cc 100644 --- a/db/zentao.sql +++ b/db/zentao.sql @@ -439,23 +439,6 @@ CREATE TABLE IF NOT EXISTS `zt_doclib` ( KEY `product` (`product`), KEY `project` (`project`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8; --- DROP TABLE IF EXISTS `zt_durationestimation`; -CREATE TABLE IF NOT EXISTS `zt_durationestimation` ( - `id` mediumint(8) unsigned NOT NULL AUTO_INCREMENT, - `PRJ` mediumint(8) unsigned NOT NULL, - `stage` mediumint(9) NOT NULL, - `workload` varchar(255) NOT NULL, - `worktimeRate` varchar(255) NOT NULL, - `people` varchar(255) NOT NULL, - `startDate` date NOT NULL, - `endDate` date NOT NULL, - `createdBy` varchar(30) NOT NULL, - `createdDate` datetime NOT NULL, - `editedBy` varchar(30) NOT NULL, - `editedDate` datetime NOT NULL, - `deleted` enum('0','1') NOT NULL DEFAULT '0', - PRIMARY KEY (`id`) -) ENGINE=MyISAM DEFAULT CHARSET=utf8; -- DROP TABLE IF EXISTS `zt_effort`; CREATE TABLE IF NOT EXISTS `zt_effort` ( `id` mediumint(8) unsigned NOT NULL auto_increment, diff --git a/module/block/control.php b/module/block/control.php index 06377dddb3..8e1fa1c3cb 100644 --- a/module/block/control.php +++ b/module/block/control.php @@ -1245,7 +1245,7 @@ class block extends control */ public function printWaterfallEstimateBlock() { - $this->app->loadLang('durationestimation'); + if(isset($this->config->maxVersion)) $this->app->loadLang('durationestimation'); $programID = $this->session->PRJ; $members = $this->loadModel('project')->getTeamMemberPairs($programID); $budget = $this->loadModel('workestimation')->getBudget($programID); diff --git a/module/block/view/waterfallestimateblock.html.php b/module/block/view/waterfallestimateblock.html.php index 7b2b8c1e8e..f643e03f2f 100644 --- a/module/block/view/waterfallestimateblock.html.php +++ b/module/block/view/waterfallestimateblock.html.php @@ -1,11 +1,13 @@ + maxVersion)):?> + diff --git a/module/common/lang/de.php b/module/common/lang/de.php index 71df050fca..5eeed15559 100644 --- a/module/common/lang/de.php +++ b/module/common/lang/de.php @@ -684,8 +684,6 @@ $lang->navGroup->compile = 'project'; $lang->navGroup->report = 'project'; $lang->navGroup->measrecord = 'project'; -$lang->navGroup->durationestimation = 'project'; - $lang->navGroup->sqlbuilder = 'system'; $lang->navGroup->auditcl = 'system'; $lang->navGroup->cmcl = 'system'; @@ -947,7 +945,6 @@ $lang->cm = new stdclass(); $lang->nc = new stdclass(); $lang->pssp = new stdclass(); $lang->stakeholder = new stdclass(); -$lang->durationestimation = new stdclass(); $lang->projectstory = new stdclass(); $lang->workestimation->menu = new stdclass(); @@ -961,14 +958,11 @@ $lang->cm->menu = new stdclass(); $lang->pssp->menu = new stdclass(); $lang->stakeholder->menu = new stdclass(); $lang->waterfallproduct->menu = new stdclass(); -$lang->durationestimation->menu = new stdclass(); $lang->projectstory->menu = new stdclass(); $lang->workestimation->menu->workestimation = 'Work Estimation|workestimation|index|project={PROJECT}'; -$lang->workestimation->menu->duration = array('link' => 'Duration Estimation|durationestimation|index|project={PROJECT}', 'subModule' => 'durationestimation'); $lang->workestimation->menu->budget = array('link' => 'Budget|budget|summary|', 'subModule' => 'budget'); -$lang->durationestimation->menu = $lang->workestimation->menu; $lang->budget->menu = $lang->workestimation->menu; $lang->stakeholder->menu->list = array('link' => 'Stakeholder List|stakeholder|browse|', 'alias' => 'create,edit,view,batchcreate'); diff --git a/module/common/lang/en.php b/module/common/lang/en.php index 7e3404d3d0..a0785018aa 100644 --- a/module/common/lang/en.php +++ b/module/common/lang/en.php @@ -684,8 +684,6 @@ $lang->navGroup->compile = 'project'; $lang->navGroup->report = 'project'; $lang->navGroup->measrecord = 'project'; -$lang->navGroup->durationestimation = 'project'; - $lang->navGroup->sqlbuilder = 'system'; $lang->navGroup->auditcl = 'system'; $lang->navGroup->cmcl = 'system'; @@ -947,7 +945,6 @@ $lang->cm = new stdclass(); $lang->nc = new stdclass(); $lang->pssp = new stdclass(); $lang->stakeholder = new stdclass(); -$lang->durationestimation = new stdclass(); $lang->projectstory = new stdclass(); $lang->workestimation->menu = new stdclass(); @@ -961,14 +958,11 @@ $lang->cm->menu = new stdclass(); $lang->pssp->menu = new stdclass(); $lang->stakeholder->menu = new stdclass(); $lang->waterfallproduct->menu = new stdclass(); -$lang->durationestimation->menu = new stdclass(); $lang->projectstory->menu = new stdclass(); $lang->workestimation->menu->workestimation = 'Work Estimation|workestimation|index|project={PROJECT}'; -$lang->workestimation->menu->duration = array('link' => 'Duration Estimation|durationestimation|index|project={PROJECT}', 'subModule' => 'durationestimation'); $lang->workestimation->menu->budget = array('link' => 'Budget|budget|summary|', 'subModule' => 'budget'); -$lang->durationestimation->menu = $lang->workestimation->menu; $lang->budget->menu = $lang->workestimation->menu; $lang->stakeholder->menu->list = array('link' => 'Stakeholder List|stakeholder|browse|', 'alias' => 'create,edit,view,batchcreate'); diff --git a/module/common/lang/fr.php b/module/common/lang/fr.php index 599a9e7dfd..2f78bd8ca5 100644 --- a/module/common/lang/fr.php +++ b/module/common/lang/fr.php @@ -684,8 +684,6 @@ $lang->navGroup->compile = 'project'; $lang->navGroup->report = 'project'; $lang->navGroup->measrecord = 'project'; -$lang->navGroup->durationestimation = 'project'; - $lang->navGroup->sqlbuilder = 'system'; $lang->navGroup->auditcl = 'system'; $lang->navGroup->cmcl = 'system'; @@ -947,7 +945,6 @@ $lang->cm = new stdclass(); $lang->nc = new stdclass(); $lang->pssp = new stdclass(); $lang->stakeholder = new stdclass(); -$lang->durationestimation = new stdclass(); $lang->projectstory = new stdclass(); $lang->workestimation->menu = new stdclass(); @@ -961,14 +958,11 @@ $lang->cm->menu = new stdclass(); $lang->pssp->menu = new stdclass(); $lang->stakeholder->menu = new stdclass(); $lang->waterfallproduct->menu = new stdclass(); -$lang->durationestimation->menu = new stdclass(); $lang->projectstory->menu = new stdclass(); $lang->workestimation->menu->workestimation = 'Work Estimation|workestimation|index|project={PROJECT}'; -$lang->workestimation->menu->duration = array('link' => 'Duration Estimation|durationestimation|index|project={PROJECT}', 'subModule' => 'durationestimation'); $lang->workestimation->menu->budget = array('link' => 'Budget|budget|summary|', 'subModule' => 'budget'); -$lang->durationestimation->menu = $lang->workestimation->menu; $lang->budget->menu = $lang->workestimation->menu; $lang->stakeholder->menu->list = array('link' => 'Stakeholder List|stakeholder|browse|', 'alias' => 'create,edit,view,batchcreate'); diff --git a/module/common/lang/vi.php b/module/common/lang/vi.php index 8f8c64b959..61b62b204b 100644 --- a/module/common/lang/vi.php +++ b/module/common/lang/vi.php @@ -684,8 +684,6 @@ $lang->navGroup->compile = 'project'; $lang->navGroup->report = 'project'; $lang->navGroup->measrecord = 'project'; -$lang->navGroup->durationestimation = 'project'; - $lang->navGroup->sqlbuilder = 'system'; $lang->navGroup->auditcl = 'system'; $lang->navGroup->cmcl = 'system'; @@ -946,7 +944,6 @@ $lang->cm = new stdclass(); $lang->nc = new stdclass(); $lang->pssp = new stdclass(); $lang->stakeholder = new stdclass(); -$lang->durationestimation = new stdclass(); $lang->projectstory = new stdclass(); $lang->workestimation->menu = new stdclass(); @@ -960,14 +957,11 @@ $lang->cm->menu = new stdclass(); $lang->pssp->menu = new stdclass(); $lang->stakeholder->menu = new stdclass(); $lang->waterfallproduct->menu = new stdclass(); -$lang->durationestimation->menu = new stdclass(); $lang->projectstory->menu = new stdclass(); $lang->workestimation->menu->workestimation = 'Work Estimation|workestimation|index|project={PROJECT}'; -$lang->workestimation->menu->duration = array('link' => 'Duration Estimation|durationestimation|index|project={PROJECT}', 'subModule' => 'durationestimation'); $lang->workestimation->menu->budget = array('link' => 'Budget|budget|summary|', 'subModule' => 'budget'); -$lang->durationestimation->menu = $lang->workestimation->menu; $lang->budget->menu = $lang->workestimation->menu; $lang->stakeholder->menu->list = array('link' => 'Stakeholder List|stakeholder|browse|', 'alias' => 'create,edit,view,batchcreate'); diff --git a/module/common/lang/zh-cn.php b/module/common/lang/zh-cn.php index 615526c81f..0bedde05ed 100644 --- a/module/common/lang/zh-cn.php +++ b/module/common/lang/zh-cn.php @@ -682,8 +682,6 @@ $lang->navGroup->compile = 'project'; $lang->navGroup->report = 'project'; $lang->navGroup->measrecord = 'project'; -$lang->navGroup->durationestimation = 'project'; - $lang->navGroup->sqlbuilder = 'system'; $lang->navGroup->auditcl = 'system'; $lang->navGroup->cmcl = 'system'; @@ -945,7 +943,6 @@ $lang->cm = new stdclass(); $lang->nc = new stdclass(); $lang->pssp = new stdclass(); $lang->stakeholder = new stdclass(); -$lang->durationestimation = new stdclass(); $lang->projectstory = new stdclass(); $lang->workestimation->menu = new stdclass(); @@ -959,14 +956,11 @@ $lang->cm->menu = new stdclass(); $lang->pssp->menu = new stdclass(); $lang->stakeholder->menu = new stdclass(); $lang->waterfallproduct->menu = new stdclass(); -$lang->durationestimation->menu = new stdclass(); $lang->projectstory->menu = new stdclass(); $lang->workestimation->menu->workestimation = '工作量估算|workestimation|index|project={PROJECT}'; -$lang->workestimation->menu->duration = array('link' => '工期估算|durationestimation|index|project={PROJECT}', 'subModule' => 'durationestimation'); $lang->workestimation->menu->budget = array('link' => '费用估算|budget|summary|', 'subModule' => 'budget'); -$lang->durationestimation->menu = $lang->workestimation->menu; $lang->budget->menu = $lang->workestimation->menu; $lang->stakeholder->menu->list = array('link' => '干系人列表|stakeholder|browse|', 'alias' => 'create,edit,view,batchcreate'); diff --git a/module/durationestimation/config.php b/module/durationestimation/config.php deleted file mode 100644 index 8a42d3deee..0000000000 --- a/module/durationestimation/config.php +++ /dev/null @@ -1,6 +0,0 @@ -durationestimation = new stdclass(); -$config->durationestimation->index = new stdclass(); -$config->durationestimation->index->requiredFields = 'scale,productivity,scale,duration,unitLaborCost,totalLaborCost'; - -$config->durationestimation->workloadTotal = 100; diff --git a/module/durationestimation/control.php b/module/durationestimation/control.php deleted file mode 100644 index b26826300a..0000000000 --- a/module/durationestimation/control.php +++ /dev/null @@ -1,137 +0,0 @@ - - * @package durationestimation - * @version $Id$ - * @link http://www.zentao.net - */ -class durationestimation extends control -{ - /** - * Project duration estimation. - * - * @param int $projectID - * @access public - * @return void - */ - public function index($projectID) - { - $workestimation = $this->loadModel('workestimation')->getBudget($projectID); - if(empty($workestimation)) - { - echo js::alert($this->lang->durationestimation->setWorkestimation); - die(js::locate($this->createLink('workestimation', 'index', "projectID=$projectID"))); - } - - $this->app->loadLang('programplan'); - $project = $this->loadModel('program')->getPRJByID($projectID); - $stages = $this->loadModel('stage')->getStages('id_asc'); - - $estimationList = $this->durationestimation->getListByProject($projectID); - if(empty($estimationList)) $this->locate(inlink('create', "projectID=$projectID")); - - $this->view->title = $this->lang->durationestimation->common . $this->lang->colon . $project->name; - $this->view->position[] = $this->lang->durationestimation->common; - $this->view->workestimation = $workestimation; - $this->view->estimationList = $estimationList; - $this->view->project = $project; - $this->view->stages = $stages; - $this->display(); - } - - /** - * Save the project duration estimate. - * - * @param int $projectID - * @access public - * @return void - */ - public function create($projectID = 0) - { - $workestimation = $this->loadModel('workestimation')->getBudget($projectID); - if(empty($workestimation)) - { - echo js::alert($this->lang->durationestimation->setWorkestimation); - die(js::locate($this->createLink('workestimation', 'index', "projectID=$projectID"))); - } - - $this->app->loadLang('programplan'); - if(!empty($_POST)) - { - $total = 0; - foreach($this->post->workload as $value) $total += $value; - - $workloadTotal = $this->config->durationestimation->workloadTotal; - if($total != $workloadTotal) $this->send(array('result' => 'fail', 'message' => $this->lang->durationestimation->workloadError)); - - $this->durationestimation->save($projectID); - - if(dao::isError()) $this->send(array('result' => 'fail', 'message' => dao::getError())); - $this->send(array('result' => 'success', 'message' => $this->lang->saveSuccess, 'locate' => inlink('index', "projectID={$projectID}"))); - } - - $project = $this->loadModel('program')->getPRJByID($projectID); - - $this->view->title = $this->lang->durationestimation->common . $this->lang->colon . $project->name; - $this->view->position[] = $this->lang->durationestimation->common; - $this->view->project = $project; - $this->view->stages = $this->loadModel('stage')->getStages('id_asc'); - $this->view->estimationList = $this->durationestimation->getListByProject($projectID); - $this->view->workestimation = $workestimation; - - $this->display(); - } - - /** - * Calculate the end time of the duration. - * - * @param int $projectID - * @param int $stage - * @param int $workload - * @param int $worktimeRate - * @param int $people - * @param string $startDate - * @access public - * @return void - */ - public function ajaxGetDuration($projectID, $stage, $workload, $worktimeRate, $people, $startDate) - { - $startDate = str_replace('_', '-', $startDate); - if($startDate == '0000-00-00') $this->send(array('result' => 'success', 'endDate' => '0000-00-00')); - - $estimation = $this->loadModel('workestimation')->getBudget($projectID); - $duration = $estimation->duration * $workload / 100; - $divisor = ($people == 0 || $estimation->dayHour == 0) ? 0 : $worktimeRate / 100 * $people * $estimation->dayHour; - $duration = $divisor == 0 ? 0 : $duration / $divisor; - if(!$divisor) $this->send(array('result' => 'fail')); - - $holidays = array(); - $workDays = array(); - $i = 0; - - $this->loadModel('project'); - - $startedTime = strtotime($startDate); - $days = 0; - for($i = 0; $days < $duration; $i ++) - { - $day = date('N', strtotime("+ $i days", $startedTime)); - if($this->config->project->weekend == 2) - { - if($day > 5) continue; - } - if($this->config->project->weekend == 1) - { - if($day > 6) continue; - } - $lastDay = date('Y-m-d', strtotime("+ $i days", $startedTime)); - $days ++; - } - - $this->send(array('result' => 'success', 'endDate' => $lastDay)); - } -} diff --git a/module/durationestimation/js/create.js b/module/durationestimation/js/create.js deleted file mode 100644 index 3951f85f7a..0000000000 --- a/module/durationestimation/js/create.js +++ /dev/null @@ -1,55 +0,0 @@ -$().ready(function() -{ - $(':input[name*=people]').change(function() - { - var peopleNumber = 0; - $(':input[name*=people]').each(function() - { - var people = $(this).val(); - if(people) peopleNumber += parseInt(people); - }); - $('#totalStaff').html(peopleNumber); - }); - - $(':input[name*=workload]').change(function() - { - rate = parseFloat($(this).val()); - workload = estimation.scale * rate / 100; - $(this).parents('td').next().find(':input').val(workload); - totalWorkload = 0; - $(':input[name*=workload]').each(function() - { - rate = parseFloat($(this).val()); - workload = estimation.scale * rate / 100; - totalWorkload += workload; - }); - $('#totalWorkload').html(totalWorkload.toFixed(2)); - }); - - - $(':input').change(function() - { - var that = $(this); - projectID = project.id; - stage = $(this).parents('tr').find('[name*=stage]').val(); - workload = $(this).parents('tr').find('[name*=workload]').val(); - worktimeRate = $(this).parents('tr').find('[name*=worktimeRate]').val(); - people = $(this).parents('tr').find('[name*=people]').val(); - startDate = $(this).parents('tr').find('[name*=startDate]').val(); - if(startDate) startDate = startDate.replace(/-/g, '_'); - - if(isNaN(workload) || isNaN(worktimeRate) || isNaN(people) || startDate == '') return false; - url = createLink('durationestimation', 'ajaxGetDuration', 'projectID=' + projectID + '&stage=' + stage + '&workload=' + workload + '&worktimeRate=' + worktimeRate + '&people=' + people + '&startDate=' + startDate), - $.getJSON( - url, - function(response) - { - if(response.result == 'success') - { - that.parents('tr').find('[name*=endDate]').val(response.endDate); - } - } - ); - }); - $(':input').change(); -}) diff --git a/module/durationestimation/lang/de.php b/module/durationestimation/lang/de.php deleted file mode 100644 index f7230ba90b..0000000000 --- a/module/durationestimation/lang/de.php +++ /dev/null @@ -1,24 +0,0 @@ -durationestimation->index = 'Duration Home'; -$lang->durationestimation->create = 'Settings'; -$lang->durationestimation->common = 'Estimate Duration'; -$lang->durationestimation->stage = 'Stage'; -$lang->durationestimation->workloadRate = 'Workload %'; -$lang->durationestimation->workload = 'Workload'; -$lang->durationestimation->worktimeRate = 'Full-time %'; -$lang->durationestimation->people = 'Estimated Man'; -$lang->durationestimation->members = 'Actual Man'; -$lang->durationestimation->startDate = 'Begin'; -$lang->durationestimation->endDate = 'End'; -$lang->durationestimation->setting = 'Settings'; - -$lang->durationestimation->setWorkestimation = "Enter the estimated workload information first."; -$lang->durationestimation->summary = "Project scale: %s {$lang->hourCommon}; Estimated workload: 0; Total number of men: 0"; -$lang->durationestimation->workloadError = "The sum of the workload % should be 100%."; - -$lang->durationestimation->placeholder = new stdclass(); -$lang->durationestimation->placeholder->scale = ''; -$lang->durationestimation->placeholder->productivity = ''; -$lang->durationestimation->placeholder->duration = ''; -$lang->durationestimation->placeholder->unitLaborCost = ''; -$lang->durationestimation->placeholder->totalLaborCost = ''; diff --git a/module/durationestimation/lang/en.php b/module/durationestimation/lang/en.php deleted file mode 100644 index f7230ba90b..0000000000 --- a/module/durationestimation/lang/en.php +++ /dev/null @@ -1,24 +0,0 @@ -durationestimation->index = 'Duration Home'; -$lang->durationestimation->create = 'Settings'; -$lang->durationestimation->common = 'Estimate Duration'; -$lang->durationestimation->stage = 'Stage'; -$lang->durationestimation->workloadRate = 'Workload %'; -$lang->durationestimation->workload = 'Workload'; -$lang->durationestimation->worktimeRate = 'Full-time %'; -$lang->durationestimation->people = 'Estimated Man'; -$lang->durationestimation->members = 'Actual Man'; -$lang->durationestimation->startDate = 'Begin'; -$lang->durationestimation->endDate = 'End'; -$lang->durationestimation->setting = 'Settings'; - -$lang->durationestimation->setWorkestimation = "Enter the estimated workload information first."; -$lang->durationestimation->summary = "Project scale: %s {$lang->hourCommon}; Estimated workload: 0; Total number of men: 0"; -$lang->durationestimation->workloadError = "The sum of the workload % should be 100%."; - -$lang->durationestimation->placeholder = new stdclass(); -$lang->durationestimation->placeholder->scale = ''; -$lang->durationestimation->placeholder->productivity = ''; -$lang->durationestimation->placeholder->duration = ''; -$lang->durationestimation->placeholder->unitLaborCost = ''; -$lang->durationestimation->placeholder->totalLaborCost = ''; diff --git a/module/durationestimation/lang/fr.php b/module/durationestimation/lang/fr.php deleted file mode 100644 index f7230ba90b..0000000000 --- a/module/durationestimation/lang/fr.php +++ /dev/null @@ -1,24 +0,0 @@ -durationestimation->index = 'Duration Home'; -$lang->durationestimation->create = 'Settings'; -$lang->durationestimation->common = 'Estimate Duration'; -$lang->durationestimation->stage = 'Stage'; -$lang->durationestimation->workloadRate = 'Workload %'; -$lang->durationestimation->workload = 'Workload'; -$lang->durationestimation->worktimeRate = 'Full-time %'; -$lang->durationestimation->people = 'Estimated Man'; -$lang->durationestimation->members = 'Actual Man'; -$lang->durationestimation->startDate = 'Begin'; -$lang->durationestimation->endDate = 'End'; -$lang->durationestimation->setting = 'Settings'; - -$lang->durationestimation->setWorkestimation = "Enter the estimated workload information first."; -$lang->durationestimation->summary = "Project scale: %s {$lang->hourCommon}; Estimated workload: 0; Total number of men: 0"; -$lang->durationestimation->workloadError = "The sum of the workload % should be 100%."; - -$lang->durationestimation->placeholder = new stdclass(); -$lang->durationestimation->placeholder->scale = ''; -$lang->durationestimation->placeholder->productivity = ''; -$lang->durationestimation->placeholder->duration = ''; -$lang->durationestimation->placeholder->unitLaborCost = ''; -$lang->durationestimation->placeholder->totalLaborCost = ''; diff --git a/module/durationestimation/lang/vi.php b/module/durationestimation/lang/vi.php deleted file mode 100644 index f7230ba90b..0000000000 --- a/module/durationestimation/lang/vi.php +++ /dev/null @@ -1,24 +0,0 @@ -durationestimation->index = 'Duration Home'; -$lang->durationestimation->create = 'Settings'; -$lang->durationestimation->common = 'Estimate Duration'; -$lang->durationestimation->stage = 'Stage'; -$lang->durationestimation->workloadRate = 'Workload %'; -$lang->durationestimation->workload = 'Workload'; -$lang->durationestimation->worktimeRate = 'Full-time %'; -$lang->durationestimation->people = 'Estimated Man'; -$lang->durationestimation->members = 'Actual Man'; -$lang->durationestimation->startDate = 'Begin'; -$lang->durationestimation->endDate = 'End'; -$lang->durationestimation->setting = 'Settings'; - -$lang->durationestimation->setWorkestimation = "Enter the estimated workload information first."; -$lang->durationestimation->summary = "Project scale: %s {$lang->hourCommon}; Estimated workload: 0; Total number of men: 0"; -$lang->durationestimation->workloadError = "The sum of the workload % should be 100%."; - -$lang->durationestimation->placeholder = new stdclass(); -$lang->durationestimation->placeholder->scale = ''; -$lang->durationestimation->placeholder->productivity = ''; -$lang->durationestimation->placeholder->duration = ''; -$lang->durationestimation->placeholder->unitLaborCost = ''; -$lang->durationestimation->placeholder->totalLaborCost = ''; diff --git a/module/durationestimation/lang/zh-cn.php b/module/durationestimation/lang/zh-cn.php deleted file mode 100644 index ca14a4ac9c..0000000000 --- a/module/durationestimation/lang/zh-cn.php +++ /dev/null @@ -1,24 +0,0 @@ -durationestimation->index = '工期估算首页'; -$lang->durationestimation->create = '工期估算设置'; -$lang->durationestimation->common = '项目工期估算'; -$lang->durationestimation->stage = '阶段'; -$lang->durationestimation->workloadRate = '工作量占比'; -$lang->durationestimation->workload = '工作量'; -$lang->durationestimation->worktimeRate = '全时率'; -$lang->durationestimation->people = '估算人数'; -$lang->durationestimation->members = '投入人数'; -$lang->durationestimation->startDate = '开始日期'; -$lang->durationestimation->endDate = '结束日期'; -$lang->durationestimation->setting = '设置'; - -$lang->durationestimation->setWorkestimation = "请先录入工作量估算信息"; -$lang->durationestimation->summary = "项目规模: %s {$lang->hourCommon}, 估算工作量: 0, 总投入人数: 0"; -$lang->durationestimation->workloadError = "工作量占比之和必须是100%"; - -$lang->durationestimation->placeholder = new stdclass(); -$lang->durationestimation->placeholder->scale = ''; -$lang->durationestimation->placeholder->productivity = ''; -$lang->durationestimation->placeholder->duration = ''; -$lang->durationestimation->placeholder->unitLaborCost = ''; -$lang->durationestimation->placeholder->totalLaborCost = ''; diff --git a/module/durationestimation/lang/zh-tw.php b/module/durationestimation/lang/zh-tw.php deleted file mode 100644 index cee927d8f5..0000000000 --- a/module/durationestimation/lang/zh-tw.php +++ /dev/null @@ -1,24 +0,0 @@ -durationestimation->index = '工期估算首頁'; -$lang->durationestimation->create = '工期估算設置'; -$lang->durationestimation->common = '項目工期估算'; -$lang->durationestimation->stage = '階段'; -$lang->durationestimation->workloadRate = '工作量占比'; -$lang->durationestimation->workload = '工作量'; -$lang->durationestimation->worktimeRate = '全時率'; -$lang->durationestimation->people = '估算人數'; -$lang->durationestimation->members = '投入人數'; -$lang->durationestimation->startDate = '開始日期'; -$lang->durationestimation->endDate = '結束日期'; -$lang->durationestimation->setting = '設置'; - -$lang->durationestimation->setWorkestimation = "請先錄入工作量估算信息"; -$lang->durationestimation->summary = "項目規模: %s {$lang->hourCommon}, 估算工作量: 0, 總投入人數: 0"; -$lang->durationestimation->workloadError = "工作量占比之和必須是100%"; - -$lang->durationestimation->placeholder = new stdclass(); -$lang->durationestimation->placeholder->scale = ''; -$lang->durationestimation->placeholder->productivity = ''; -$lang->durationestimation->placeholder->duration = ''; -$lang->durationestimation->placeholder->unitLaborCost = ''; -$lang->durationestimation->placeholder->totalLaborCost = ''; diff --git a/module/durationestimation/model.php b/module/durationestimation/model.php deleted file mode 100644 index afb5abe32e..0000000000 --- a/module/durationestimation/model.php +++ /dev/null @@ -1,51 +0,0 @@ - - * @package durationestimation - * @version $Id$ - * @link http://www.zentao.net - */ -class durationestimationModel extends model -{ - /** - * Get the project duration estimate. - * - * @param int $projectID - * @access public - * @return void - */ - public function getListByProject($projectID) - { - return $this->dao->select('*')->from(TABLE_DURATIONESTIMATION)->where('PRJ')->eq($projectID)->fetchAll('stage'); - } - - /** - * Save the project duration estimate. - * - * @param int $projectID - * @access public - * @return void - */ - public function save($projectID) - { - $this->dao->delete()->from(TABLE_DURATIONESTIMATION)->where('PRJ')->eq($projectID); - foreach($this->post->stage as $i => $stage) - { - $data = new stdclass; - $data->PRJ = $projectID; - $data->stage = $stage; - $data->workload = $this->post->workload[$i]; - $data->worktimeRate = $this->post->worktimeRate[$i]; - $data->people = $this->post->people[$i]; - $data->startDate = $this->post->startDate[$i]; - $data->endDate = $this->post->endDate[$i]; - $this->dao->insert(TABLE_DURATIONESTIMATION)->data($data)->exec(); - } - - return !dao::isError(); - } -} diff --git a/module/durationestimation/view/create.html.php b/module/durationestimation/view/create.html.php deleted file mode 100644 index b27f3abfb6..0000000000 --- a/module/durationestimation/view/create.html.php +++ /dev/null @@ -1,66 +0,0 @@ - - - -
-
-
durationestimation->people;?> durationestimation->members;?>
workestimation->duration;?>
- - - - - - - - - - - - - - - - id, array());?> - - - - - - - - - - - - - - - - - - - - - -
durationestimation->stage;?>durationestimation->workloadRate;?>durationestimation->workload;?>durationestimation->worktimeRate;?>durationestimation->people;?>durationestimation->startDate;?>durationestimation->endDate;?>
- name;?> - id);?> - -
- percent); ?>' class='form-control' /> - % -
-
-
- - hourCommon;?> -
-
-
- ' class='form-control' /> - % -
-
' class='form-control' />' class='form-control form-date' />' class='form-control form-date' />
durationestimation->summary, zget($workestimation, 'scale', ''));?>
- - - - diff --git a/module/durationestimation/view/index.html.php b/module/durationestimation/view/index.html.php deleted file mode 100644 index 46cae13537..0000000000 --- a/module/durationestimation/view/index.html.php +++ /dev/null @@ -1,43 +0,0 @@ - -
-
- - - - - - - - - - - - - - - id, 0);?> - - - - - - - - - - - - - - - - -
durationestimation->stage;?>durationestimation->workload;?>durationestimation->worktimeRate;?>durationestimation->people;?>durationestimation->startDate;?>durationestimation->endDate;?>
- name;?> - id);?> - % %
- id}"), $lang->durationestimation->setting, '', "class='btn btn-primary'");?> -
-
-
- diff --git a/module/group/lang/resource.php b/module/group/lang/resource.php index 43b6e0520a..924d7535fa 100644 --- a/module/group/lang/resource.php +++ b/module/group/lang/resource.php @@ -66,7 +66,6 @@ $lang->moduleOrder[215] = 'programplan'; $lang->moduleOrder[235] = 'budget'; $lang->moduleOrder[240] = 'workestimation'; -$lang->moduleOrder[245] = 'durationestimation'; $lang->resource = new stdclass(); @@ -1198,14 +1197,6 @@ $lang->resource->workestimation->index = 'index'; $lang->workestimation->methodOrder[0] = 'index'; -/* Duration estimation. */ -$lang->resource->durationestimation = new stdclass(); -$lang->resource->durationestimation->index = 'index'; -$lang->resource->durationestimation->create = 'create'; - -$lang->durationestimation->methodOrder[0] = 'index'; -$lang->durationestimation->methodOrder[5] = 'create'; - /* Budget. */ $lang->resource->budget = new stdclass(); $lang->resource->budget->browse = 'browse'; diff --git a/module/productset/config.php b/module/productset/config.php deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/module/productset/control.php b/module/productset/control.php deleted file mode 100644 index c32cd35b9b..0000000000 --- a/module/productset/control.php +++ /dev/null @@ -1,8 +0,0 @@ -display(); - } -} diff --git a/module/productset/model.php b/module/productset/model.php deleted file mode 100644 index 0953c4ed8d..0000000000 --- a/module/productset/model.php +++ /dev/null @@ -1,5 +0,0 @@ - - * @package productset - * @version $Id: browse.html.php 4707 2013-05-02 06:57:41Z chencongzhi520@gmail.com $ - * @link http://www.zentao.net - */ -?> - - - From 2c75e1bd672a466ec35b1cefc5a73eb173d5cb52 Mon Sep 17 00:00:00 2001 From: hufangzhou <746775970@qq.com> Date: Thu, 25 Feb 2021 12:28:02 +0800 Subject: [PATCH 4/4] * Replace the icon of link cases. --- module/testtask/view/cases.html.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/testtask/view/cases.html.php b/module/testtask/view/cases.html.php index f584b30993..b840310574 100644 --- a/module/testtask/view/cases.html.php +++ b/module/testtask/view/cases.html.php @@ -141,7 +141,7 @@
-

testcase->noCase;?> " . $lang->testtask->linkCase, '', "class='btn btn-info'");?>

+

testcase->noCase;?> " . $lang->testtask->linkCase, '', "class='btn btn-info'");?>