From 7eecf4b27f3bfe5970ef4ff23fc2dd179519f468 Mon Sep 17 00:00:00 2001 From: Yagami <976204163@qq.com> Date: Wed, 14 Oct 2020 09:52:56 +0800 Subject: [PATCH] * Finish task #8116. --- db/update20.0.sql | 2 +- db/zentao.sql | 2 +- module/my/view/program.html.php | 12 +- module/stakeholder/control.php | 175 ------------------ module/stakeholder/lang/zh-cn.php | 81 +++----- module/stakeholder/model.php | 36 +--- module/stakeholder/view/createexpect.html.php | 44 ----- module/stakeholder/view/editexpect.html.php | 45 ----- module/stakeholder/view/expectation.html.php | 77 -------- module/stakeholder/view/plan.html.php | 130 ------------- module/stakeholder/view/view.html.php | 2 +- module/stakeholder/view/viewexpect.html.php | 110 ----------- 12 files changed, 39 insertions(+), 677 deletions(-) delete mode 100644 module/stakeholder/view/createexpect.html.php delete mode 100644 module/stakeholder/view/editexpect.html.php delete mode 100644 module/stakeholder/view/expectation.html.php delete mode 100644 module/stakeholder/view/plan.html.php delete mode 100644 module/stakeholder/view/viewexpect.html.php diff --git a/db/update20.0.sql b/db/update20.0.sql index cb7333579e..f65b35f90e 100644 --- a/db/update20.0.sql +++ b/db/update20.0.sql @@ -80,7 +80,7 @@ CREATE TABLE `zt_stakeholder` ( -- DROP TABLE IF EXISTS `zt_expect`; CREATE TABLE `zt_expect` ( - `id` mediumint(8) NOT NULL, + `id` mediumint(8) NOT NULL AUTO_INCREMENT, `userID` mediumint(8) NOT NULL, `program` mediumint(8) NOT NULL DEFAULT 0, `expect` text NOT NULL, diff --git a/db/zentao.sql b/db/zentao.sql index 3a7ec7f41f..47f1bd619c 100644 --- a/db/zentao.sql +++ b/db/zentao.sql @@ -1301,7 +1301,7 @@ CREATE TABLE IF NOT EXISTS `zt_entry` ( ) ENGINE=MyISAM DEFAULT CHARSET=utf8; -- DROP TABLE IF EXISTS `zt_expect`; CREATE TABLE `zt_expect` ( - `id` mediumint(8) NOT NULL, + `id` mediumint(8) NOT NULL AUTO_INCREMENT, `userID` mediumint(8) NOT NULL, `program` mediumint(8) NOT NULL DEFAULT 0, `expect` text NOT NULL, diff --git a/module/my/view/program.html.php b/module/my/view/program.html.php index a2e9acec50..57e6da5093 100644 --- a/module/my/view/program.html.php +++ b/module/my/view/program.html.php @@ -37,13 +37,13 @@
stakeholder->noPlan;?>
-| stakeholder->name;?> | -name?> | -
|---|---|
| lang->stakeholder->type;?> | -stakeholder->typeList, $user->type, '');?> | -
| lang->stakeholder->company;?> | -companyName;?> | -
| lang->stakeholder->phone;?> | -phone;?> | -
| lang->stakeholder->qq;?> | -qq;?> | -
| lang->stakeholder->weixin;?> | -weixin;?> | -
| lang->stakeholder->email;?> | -email;?> | -
| lang->stakeholder->isKey;?> | -stakeholder->keyList, $user->key, '');?> | -
| lang->stakeholder->from;?> | -stakeholder->fromList, $user->from, '');?> | -