From 4d95c0c0fc2c2983ca44d6f903e718f0fc2969bb Mon Sep 17 00:00:00 2001 From: sunguangming Date: Sat, 11 May 2024 13:21:47 +0800 Subject: [PATCH] * Add import to lib func. --- module/projectstory/control.php | 26 +++++++++++++++++++++++++- 1 file changed, 25 insertions(+), 1 deletion(-) diff --git a/module/projectstory/control.php b/module/projectstory/control.php index 0c88d38155..1851b65f80 100644 --- a/module/projectstory/control.php +++ b/module/projectstory/control.php @@ -356,5 +356,29 @@ class projectStory extends control { echo $this->fetch('story', 'exportTemplate', "productID=$productID&branch=$branch&storyType=$storyType"); } -} + /** + * 批量导入需求到需求库。 + * Batch import the data of the requiremens to the library. + * + * @access public + * @return void + */ + public function batchImportToLib() + { + echo $this->fetch('story', 'batchImportToLib'); + } + + /** + * 导入需求到需求库。 + * Import the data of the requiremens to the library. + * + * @param int $storyID + * @access public + * @return void + */ + public function importToLib($storyID) + { + echo $this->fetch('story', 'importToLib', "storyID=$storyID"); + } +}