大创项目管理系统 代码

大创项目管理系统代码

随着大创活动的不断开展,学生们需要进行各种项目的制作和实施,这给学校的工作带来了很大的压力。因此,为了解决这些问题,学校开发了一个大创项目管理系统,来帮助学生们更好的完成项目。本文将介绍该系统的代码实现。

该系统包括以下功能:

1. 项目创建:学生可以创建一个新的项目,并填写项目基本信息,如项目名称、项目描述、项目进度等。

2. 项目管理:学生可以管理自己的项目,包括修改项目信息、添加项目成员、修改项目进度等。

3. 任务分配:学生可以将任务分配给其他学生,并查看任务的状态和完成情况。

4. 协作交流:学生可以与其他项目成员进行协作交流,包括讨论问题、共享资源等。

5. 报告生成:学生可以生成项目报告,包括项目总结、项目进度报告等。

下面是该系统的代码实现:

“`python
# 项目管理系统

class ProjectManager:
def __init__(self, project_name):
self.project_name = project_name
self.project_list = []
self.manager = None
self.user_list = []

def add_project(self, project_name):
self.project_list.append(project_name)

def remove_project(self, project_name):
self.project_list.remove(project_name)

def update_project(self, project_name):
self.project_list.append(project_name)

def get_project_list(self):
return self.project_list

def add_user(self, user_name):
self.user_list.append(user_name)

def remove_user(self, user_name):
self.user_list.remove(user_name)

def update_user(self, user_name):
self.user_list.append(user_name)

def get_user_list(self):
return self.user_list

def show_project_list(self):
project_list = []
for project_name in self.project_list:
project_list.append(project_name)
print(f\”{project_name} – {self.project_list[project_name]}\”)

def add_task(self, task_name, user):
task_list = []
for user_name in self.user_list:
if user_name not in self.project_list:
print(f\”User {user_name} not found in project list.\”)
continue
if user == \”manager\”:
task_list.append(f\”Task {task_name} – {user_name}\”)
else:
task_list.append(f\”Task {task_name} – {user}\”)
for task_name in task_list:
task_list.remove(task_name)
self.project_list.append(task_name)
print(f\”{task_name} – {self.project_list[task_name]}\”)

def remove_task(self, task_name):
for task_name in self.project_list:
if task_name == task_name:
self.project_list.remove(task_name)
print(f\”{task_name} – removed from project list.\”)
return
print(f\”{task_name} – not found in project list.\”)

def get_task_list(self, task_name):
return self.project_list[task_name]

def add_user_task(self, user, task_name):
task_list = []
for user_name in self.user_list:
if user_name not in self.project_list:
print(f\”User {user_name} not found in project list.\”)
continue
if user == \”manager\”:
task_list.append(f\”Task {task_name} – {user_name}\”)
else:
task_list.append(f\”Task {task_name} – {user}\”)
for task_name in task_list:
task_list.remove(task_name)
self.project_list.append(task_name)
print(f\”{task_name} – {self.project_list[task_name]}\”)

def remove_user_task(self, user, task_name):
for task_name in self.project_list:
if task_name == task_name:
self.project_list.remove(task_name)
print(f\”{task_name} – removed from project list.\”)
return
print(f\”{task_name} – not found in project list.\”)

def get_user_tasks(self, user):
return self.project_list[user]

def add_user_ task(self, user, task_name):
user_tasks = []
for task_name in self.project_list:
if task_name == task_name:
user_tasks.append(f\”Task {task_name} – {user}\”)
else:
user_tasks.append(f\”Task {task_name} – {user}\”)
self.project_list.append(user_tasks)
print(f\”Task {task_name} – added to user tasks.\”)

def remove_user_task(self, user, task_name):
for task_name in self.project_list:
if task_name == task_name:
self.project_list.remove(task_name)
print(f\”Task {task_name} – removed from project list.\”)
return
print(f\”Task {task_name} – not found in project list.\”)

def get_user_tasks_all(self):
return self.project_list

def show_project_list_all(self):
print(f\”Project list:\”)
for project_name in self.project_list:
print(f\”{project_name} – {self.project_list[project_name]}\”)

def show_task_list_all(self):
print(f\”Task list:\”)
for task_name in self.project_list:
print(f\”{task_name} – {self.project_list[task_

版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容, 请发送邮件至 举报,一经查实,本站将立刻删除。

(0)
上一篇 37分钟前
下一篇 25分钟前

相关推荐