項目信息管理系統java代碼

項目信息管理系統Java代碼

隨著軟件開發的不斷發展,項目信息管理系統已經成為了企業或組織中必不可少的一部分。一個項目信息管理系統可以大大提高項目管理的效率,使組織能夠更加有效地規劃和管理項目。

在項目信息管理系統中,通常需要實現以下功能:

1. 項目信息管理:包括項目基本信息的錄入、修改、刪除和查詢。
2. 任務管理:包括任務基本信息的錄入、修改、刪除和查詢。
3. 進度管理:包括項目進度信息的錄入、修改、刪除和查詢。
4. 成本管理:包括項目成本信息的錄入、修改、刪除和查詢。
5. 報表統計:可以根據不同的維度和條件生成各種報表,方便管理人員對項目進行監控和分析。

為了實現這些功能,可以使用Java語言編寫項目信息管理系統的代碼。下面是一個基本的項目信息管理系統的Java代碼實現:

“`java
import java.util.ArrayList;
import java.util.Scanner;

public class ProjectInfoManager {
private ArrayList projects = new ArrayList();
private ArrayList tasks = new ArrayList();
private ArrayList costs = new ArrayList();

public ProjectInfo createProject(String name) {
ProjectInfo project = new ProjectInfo();
project.setName(name);
return project;
}

public void updateProject(String name, ProjectInfo project) {
project.setName(name);
projects.add(project);
}

public void deleteProject(String name) {
projects.remove(name);
}

public void addTask(String name, TaskInfo task) {
tasks.add(task);
}

public void updateTask(String name, TaskInfo task) {
task.setName(name);
tasks.add(task);
}

public void deleteTask(String name) {
tasks.remove(name);
}

public void addCost(String name, CostInfo cost) {
costs.add(cost);
}

public void updateCost(String name, CostInfo cost) {
cost.setCost(cost.getCost());
costs.add(cost);
}

public void deleteCost(String name) {
costs.remove(name);
}

public ArrayList getProjects() {
return projects;
}

public ArrayList getTasks() {
return tasks;
}

public ArrayList getCosts() {
return costs;
}

public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);

System.out.println(\”Enter the name of the first project: \”);
String name = scanner.nextLine();
ProjectInfo project = createProject(name);
System.out.println(\”Enter the name of the first task: \”);
String name = scanner.nextLine();
TaskInfo task = createTask(name);
System.out.println(\”Enter the name of the first cost: \”);
String name = scanner.nextLine();
CostInfo cost = createCost(name);
System.out.println(\”Enter the name of the first project: \”);
name = scanner.nextLine();
System.out.println(\”Enter the name of the first task: \”);
name = scanner.nextLine();
System.out.println(\”Enter the name of the first cost: \”);
name = scanner.nextLine();
System.out.println(\”Enter the name of the first project: \”);
name = scanner.nextLine();
System.out.println(\”Enter the name of the first task: \”);
name = scanner.nextLine();
System.out.println(\”Enter the name of the first cost: \”);
name = scanner.nextLine();
System.out.println(\”Enter the name of the first project: \”);
name = scanner.nextLine();
System.out.println(\”Enter the name of the first task: \”);
name = scanner.nextLine();
System.out.println(\”Enter the name of the first cost: \”);
name = scanner.nextLine();
project.setName(name);
task.setName(name);
cost.setCost(name);
tasks.add(task);
costs.add(cost);
projects.add(project);

System.out.println(\”Press any key to exit\”);
scanner.nextLine();
System.exit(0);
}
}

class ProjectInfo {
private String name;
private String description;
private String url;
private String images;

public ProjectInfo(String name, String description, String url, String images) {
this.name = name;
this.description = description;
this.url = url;
this.images = images;
}

public String getName() {
return name;
}

public String getDescription() {
return description;
}

public String getUrl() {
return url;
}

public String getImages() {
return images;
}

public void setName(String name) {
this.name = name;
}

public void setDescription(String description) {
this.description = description;
}

public void setUrl(String url) {
this.url = url;
}

public void setImages(String images) {
this.images = images;
}
}

class TaskInfo {
private String name;
private String description;
private String url;
private String images;

public TaskInfo(String name, String description, String url, String images) {
this.name = name;
this.description = description;
this.url = url;
this.images = images;
}

public String getName() {
return name;
}

public String getDescription() {
return description;
}

public String getUrl() {
return url;
}

public String getImages() {
return images;
}

public void setName(String name) {
this.name = name;
}

public void setDescription(String description) {
this.description = description;
}

public void setUrl(String url) {
this.url = url;
}

public void setImages(String images) {
this.images = images;
}
}

class CostInfo {
private String name;
private String description;

版權聲明:本文內容由互聯網用戶自發貢獻,該文觀點僅代表作者本人。本站僅提供信息存儲空間服務,不擁有所有權,不承擔相關法律責任。如發現本站有涉嫌抄襲侵權/違法違規的內容, 請發送郵件至 舉報,一經查實,本站將立刻刪除。

(0)
上一篇 2025年1月21日 上午8:52
下一篇 2025年1月21日 上午9:04

相關推薦

国产精品jizzjizz| 可以看污的网站| 色欲国产麻豆一精品一AV一免费| 国产激情电影综合在线看| 黄色一级黄色片| 国产日产欧美精品| 青青热久免费精品视频精品| 国产成人AV一区二区三区无码| 青青国产在线视频| 国产全黄一级毛片| 中文字幕在线一区二区三区| 樱桃视频直播在线观看免费| 亚洲图片欧美在线| 最近在线2018视频免费观看| 亚洲av无码欧洲av无码网站| 日本老熟老太hd| 久久亚洲欧美国产精品| 日韩精品中文字幕无码专区| 亚洲欧美日韩久久精品第一区| 滴着奶水做着爱中文字幕| 啊灬啊别停灬用力啊动视频| 看全色黄大色黄女片爽毛片| 国产xx在线观看| 男男(h)肉视频网站| 免费一级国产大片| 男生和女生一起差差差很痛视频| 公交车上性配合享受视频| 永久看一二三四线| 伊人久久大香线蕉精品| 狠狠色综合网站久久久久久久高清| 亚洲香蕉久久一区二区三区四区| 欧美巨大xxxx做受中文字幕 | 中国老太大bbw| 成人无遮挡裸免费视频在线观看| 中文字幕亚洲欧美一区| 天堂一区二区三区在线观看| 99精品人妻少妇一区二区| 国产精品久久久久三级| 草莓app在线观看| 又爽又黄又无遮挡的视频| 精品久久久久久亚洲中文字幕|