EngineerService.h 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. #ifndef ENGINEERSERVICE_H
  2. #define ENGINEERSERVICE_H
  3. #include "ClassSet.h"
  4. class EngineerService
  5. {
  6. public:
  7. EngineerService(QObject *parent = nullptr);
  8. //////////////////////工程信息表-start////////////////////
  9. //添加信息
  10. bool AddEngineerInfo(const EngineerInfo &engineerInfo);
  11. int AddEngineerInfoReturnId(const EngineerInfo &engineerInfo);
  12. /*修改节点值*/
  13. bool UpdateEngineerInfo(const EngineerInfo &engineerInfo);
  14. bool UpdateEngineerIndex(int enjId, int indexId);
  15. bool UpdateEngineerMessaure(int enjId, int messaureId);
  16. bool UpdateEngineerSchema(int enjId, int schemaId);
  17. bool UpdateNameById(QString name, int id);
  18. /*根据指标体系id查询工程信息*/
  19. bool QueryEngineerByEngineerId(EngineerInfo *engineerInfo, int engineerId);
  20. /*根据指标体系名查询工程信息*/
  21. bool QueryEngineerByEngineerName(EngineerInfo *engineerInfo, QString engineerName);
  22. /*根据指标体系id查询工程信息*/
  23. bool QueryEngineerList(QList<EngineerInfo *> *engineerInfoList);
  24. bool QueryEngineerListByName(QList<EngineerInfo *> *engineerInfoList, QString engineerName);
  25. /*根据指标体系id查询工程信息*/
  26. bool QueryEngineerListByIndexSetId(QList<EngineerInfo *> *engineerInfoList, int indexSetId);
  27. /*根据测量方法ig查询对应的工程信息*/
  28. bool QueryEngineerListByMeasureFunctionId(QList<EngineerInfo *> *engineerInfoList, int measureFunctionId);
  29. /*根据工程编号删除工程信息*/
  30. bool DeleteEngineerByEngineerId(int engineerId);
  31. /*根据指标体系编号删除工程信息*/
  32. bool DeleteEngineerByIndexSetId(int indexSetId);
  33. /*根据测量方法编号删除工程信息*/
  34. bool DeleteEngineerByMeasureFunctionId(int measureFunctionId);
  35. /*删除所有工程*/
  36. bool DeleteEngineers();
  37. //删除其他工程id
  38. bool DeleteEngineerNotInId(int id, QString dbPath);
  39. bool QueryChlidNodeByPId(int pid, QString dbName, QString mindPath);
  40. //////////////////////工程信息表-end////////////////////
  41. };
  42. #endif // ENGINEERSERVICE_H