-
+
+
- id == $selected) echo "class='active' id='activeLine'";?> lineID='id;?>'> + name, '', "data-target=#line{$line->id}");?> + + +
+
upgrade->line;?>
+
+
+
+ diff --git a/db/update20.0.sql b/db/update20.0.sql index 73f2e83257..aa979ca17e 100644 --- a/db/update20.0.sql +++ b/db/update20.0.sql @@ -10,7 +10,11 @@ ADD `lifetime` char(30) NOT NULL AFTER `product`, ADD `budget` varchar(30) NOT NULL DEFAULT '0' AFTER `lifetime`, ADD `budgetUnit` char(30) NOT NULL DEFAULT 'yuan' AFTER `budget`, ADD `percent` float unsigned NOT NULL DEFAULT '0' AFTER `budgetUnit`, -ADD `auth` char(30) NOT NULL AFTER `percent`, ADD `milestone` enum('0','1') NOT NULL default '0' AFTER `percent`, ADD `attribute` varchar(30) NOT NULL DEFAULT '' AFTER `budgetUnit`, ADD `realBegan` date NOT NULL AFTER `end`, ADD `realEnd` date NOT NULL AFTER `realStarted`, +ADD `auth` char(30) NOT NULL AFTER `percent`, +ADD `milestone` enum('0','1') NOT NULL default '0' AFTER `percent`, +ADD `attribute` varchar(30) NOT NULL DEFAULT '' AFTER `budgetUnit`, +ADD `realBegan` date NOT NULL AFTER `end`, +ADD `realEnd` date NOT NULL AFTER `realBegan`, ADD `version` smallint(6) NOT NULL AFTER `desc`, ADD `parentVersion` smallint(6) NOT NULL AFTER `version`, ADD `planDuration` int(11) NOT NULL AFTER `parentVersion`, @@ -319,7 +323,7 @@ CREATE TABLE `zt_weeklyreport`( ALTER TABLE `zt_project` ADD `path` varchar(255) NOT NULL AFTER `parent`; ALTER TABLE `zt_project` ADD `grade` tinyint unsigned NOT NULL AFTER `path`; -INSERT INTO `zt_config` (`owner`, `module`, `section`, `key`, `value`) VALUES +REPLACE INTO `zt_config` (`owner`, `module`, `section`, `key`, `value`) VALUES ('system','custom','','hourPoint','1'), ('system','custom','','URAndSR','1'), ('system','custom','waterfall','URSRName','{\"URCommon\":{\"zh-cn\":\"\\u7528\\u6237\\u9700\\u6c42\"},\"SRCommon\":{\"zh-cn\":\"\\u8f6f\\u4ef6\\u9700\\u6c42\"}}'), diff --git a/module/upgrade/css/mergeprogram.css b/module/upgrade/css/mergeprogram.css index b410548550..a49f56cfd9 100644 --- a/module/upgrade/css/mergeprogram.css +++ b/module/upgrade/css/mergeprogram.css @@ -6,3 +6,16 @@ #budget {border-right:0px;} .divider{background:#f1f1f1 !important; width:20px !important; padding:1px !important;} .gray{background:#f1f1f1 !important} + +.main-row{margin-top: 20px; padding: 20px; background: #f1f1f1} +.main-row .side-col .nav li.active a{background: #006af1;color: #fff; border-radius: 4px} + +#source .lineBox{margin-top: 30px} +#source .lineGroup-title .item{float: left;} +#source .lineGroup-title .item:first-child{width: 40%} +#source .lineGroup-title .item:last-child{width: 60%} +#source .lineGroup>div{display: table-cell} +#source .lineGroup{background: #f1f1f1; margin-top:20px; border-radius: 4px; padding:5px;} +#source .lineGroup+.lineGroup{margin-top:10px;} +#source .lineGroup .productList{vertical-align: middle; width: 170px;} +#source .lineGroup .projectList .scroll-handle{max-height: 200px; overflow-y: scroll;} diff --git a/module/upgrade/js/mergeprogram.js b/module/upgrade/js/mergeprogram.js index 97f77ba5e5..4c1c07d269 100644 --- a/module/upgrade/js/mergeprogram.js +++ b/module/upgrade/js/mergeprogram.js @@ -1,5 +1,9 @@ $(function() { + $('.side-col .cell').height($('.side-col').height() - 20); + $('#source .cell').height($('#source').height() - 20); + $('#programBox .cell').height($('#programBox').height() - 20); + pgmBegin = $('.pgmParams #begin').val(); setPgmBegin(pgmBegin); @@ -17,6 +21,25 @@ $(function() setPgmBegin(pgmBegin); }) + $('#lineList li a').click(function() + { + /* Active current li and remove active before li. */ + $(this).closest('ul').find('li').removeClass('active'); + $(this).closest('li').addClass('active'); + + /* Show current data and hide before data. */ + var target = $(this).attr('data-target'); + $('.lineBox').addClass('hidden'); + $(target).removeClass('hidden'); + $(target).closest('tbody').find(':checkbox').prop('checked', false); + $(target).find(":checkbox").prop('checked', true); + + /* Replace program name. */ + $('#name').val($(this).text()); + + setPgmBegin(pgmBegin); + }) + $('[name^=products]').change(function() { value = $(this).val(); diff --git a/module/upgrade/lang/zh-cn.php b/module/upgrade/lang/zh-cn.php index 6e2fbfc65c..98565c2b47 100644 --- a/module/upgrade/lang/zh-cn.php +++ b/module/upgrade/lang/zh-cn.php @@ -36,40 +36,29 @@ $lang->upgrade->setStatusFile = '
我已经仔细阅读上面提示且完成上述工作,继续更新
'; -$lang->upgrade->selectVersion = '选择版本'; -$lang->upgrade->continue = '继续'; -$lang->upgrade->noteVersion = "务必选择正确的版本,否则会造成数据丢失。"; -$lang->upgrade->fromVersion = '原来的版本'; -$lang->upgrade->toVersion = '升级到'; -$lang->upgrade->confirm = '确认要执行的SQL语句'; -$lang->upgrade->sureExecute = '确认执行'; -$lang->upgrade->forbiddenExt = '以下插件与新版本不兼容,已经自动禁用:'; -$lang->upgrade->updateFile = '需要更新附件信息。'; -$lang->upgrade->noticeSQL = '检查到你的数据库跟标准不一致,尝试修复失败。请执行以下SQL语句,再刷新页面检查。'; -$lang->upgrade->afterDeleted = '以上文件未能删除, 删除后刷新!'; -$lang->upgrade->mergeProgram = '数据归并'; -$lang->upgrade->to20Tips = '禅道20版本升级提示'; -$lang->upgrade->to20Button = '我已经做好备份,开始升级吧!'; -$lang->upgrade->to20Desc = <<我们会将之前的产品和项目的数据归并到大项目概念下,并根据你选择管理模型的不同,调整概念为如下:
-禅道自20版本开始权限以大项目为一个基础单位来进行授权,授权的机制为:
-管理员授权给项目管理员 > 项目管理员授权给项目成员
-尊敬的用户,感谢对禅道的支持。自20版本开始,禅道全面升级成为通用的项目管理平台。相关介绍请看如下视频:
友情提示:
| upgrade->line;?> | -upgrade->product;?> | -upgrade->project;?> | -
|---|---|---|
| - id => "{$line->name}"), $i == 0 ? $line->id : 0, "data-lineid='{$line->id}'");?> - | -
-
- id] as $productID => $product):?>
- id]", array($productID => "{$lang->productCommon} #{$product->id} {$product->name}"), $i == 0 ? $product->id : 0, "data-productid='{$product->id}' data-line='{$line->id}' data-begin='{$product->createdDate}'");?>
- id][$productID]", $productID);?>
+
+
+
+
+
+
+
+ id]))
+ {
+ unset($productlines[$line->id]);
+ continue;
+ }
+ ?>
+ upgrade->product;?>
+ upgrade->project;?>
+ lineBox'>
+
+ id] as $productID => $product):?>
+
+
+ id]", array($productID => "{$lang->productCommon} #{$product->id} {$product->name}"), $i == 0 ? $product->id : 0, "data-productid='{$product->id}' data-line='{$line->id}' data-begin='{$product->createdDate}'");?>
+ id][$productID]", $productID);?>
+
+
+ |
- - |