12345678910111213141516171819202122232425262728293031 |
- #ifndef PROJECTSERVICE_H
- #define PROJECTSERVICE_H
- #include "ClassSet.h"
- class ProjectService
- {
- public:
- ProjectService(QObject *parent = nullptr);
-
- int AddProjectInfo(const ProjectInfo &projectInfo);
-
- bool UpdateProjectInfo(const ProjectInfo &projectInfo);
-
- bool UpdateDemandById(int enjId, int demandId);
- bool UpdateProgrammeById(int enjId, int programmeId);
- bool UpdateGeneralById(int enjId, int generalId);
-
- bool QueryProjectById(ProjectInfo *proJectInfo, int id);
-
- bool QueryProjectByName(QString name);
-
- bool QueryAll(QList<ProjectInfo *> *projectInfoList);
-
- bool DeleteById(int id);
- };
- #endif
|