NodeMatrixService.h 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. #ifndef NODEMATRIXSERVICE_H
  2. #define NODEMATRIXSERVICE_H
  3. #include "ClassSet.h"
  4. class NodeMatrixService
  5. {
  6. public:
  7. NodeMatrixService(QObject *parent = nullptr);
  8. /*单个节点信息新增*/
  9. //添加信息
  10. bool AddNodeMatrixInfo(const NodeMatrixInfo &nodeMatrixInfo);
  11. /*批量节点信息新增*/
  12. bool AddNodeMatrixInfoList(const QList<NodeMatrixInfo *> &jbInfoList);
  13. /*批量节点信息新增----专家端*/
  14. bool AddNodeMatrixInfoList2(const QList<NodeMatrixInfo *> &jbInfoList);
  15. /*修改节点值*/
  16. bool UpdateNodeMatrixNodeValue(const NodeMatrixInfo &nodeMatrixInfo);
  17. /*批量修改节点值*/
  18. bool UpdateNodeMatrixNodeValueList(const QList<NodeMatrixInfo *> jbInfoList);
  19. /*批量修改节点值--专家端*/
  20. bool UpdateNodeMatrixNodeValueList2(const QList<NodeMatrixInfo *> jbInfoList);
  21. /*根据专家姓名查询对应的节点信息*/
  22. bool QueryNodeMatrixListByExpertName(QList<NodeMatrixInfo *> *nodeMatrixInfoList, QString expertName);
  23. bool QueryNodeMatrixListByExpertNameAndEngineerId(QString expertName, int engineerId, QString tableMsg,
  24. QString mark);
  25. /*根据专家id查询对应的节点信息*/
  26. bool QueryNodeMatrixListByExpertIdAndEngineerId(QString expertId, int engineerId, QString tableMsg);
  27. /*根据专家名称和工程ID查询对应的节点信息*/
  28. bool QueryNodeMatrixListByExpertNameAndEngineerId(QList<NodeMatrixInfo *> *nodeMatrixInfoList, QString expertName,
  29. int engineerId);
  30. /*根据专家名称和工程ID查询对应的节点信息--专家端*/
  31. bool QueryNodeMatrixListByExpertNameAndEngineerId2(QString expertName, int engineerId, QString tableMsg,
  32. QString mark, int tabIndex);
  33. bool QueryNodesByExpertNameAndEngineerId2(QList<NodeMatrixInfo *> *nodeMatrixInfoList, QString expertName,
  34. int engineerId, QString tableMsg, QString mark, int tabIndex);
  35. /*根据专家id和工程ID查询对应的节点信息*/
  36. bool QueryNodeMatrixListByExpertIdAndEngineerId(QList<NodeMatrixInfo *> *nodeMatrixInfoList, int expertId,
  37. int engineerId, QString tableMsg);
  38. /*判断专家是否已录入数据*/
  39. bool QueryNodeValueByUserIdAndEngineerId(int experId, int engineerId);
  40. /*根据专家id和工程ID查询对应的节点信息 ---专家端*/
  41. bool QueryNodeMatrixListByExpertIdAndEngineerId2(QList<NodeMatrixInfo *> *nodeMatrixInfoList, int expertId,
  42. int engineerId, QString tableMsg);
  43. /*根据专家编号查询对应的节点信息*/
  44. bool QueryNodeMatrixListByExpertId(QList<NodeMatrixInfo *> *nodeMatrixInfoList, int expertId);
  45. /*根据工程编号查询节点矩阵信息*/
  46. bool QueryNodeMatrixListByEngineerId(QList<NodeMatrixInfo *> *nodeMatrixInfoList, int engineerId);
  47. /*根据工程编号删除节点信息*/
  48. bool DeleteNodeMatrixListByEngineerId(int engineerId);
  49. /*根据专家姓名删除节点信息*/
  50. bool DeleteNodeMatrixListByExpertName(QString expertName);
  51. /*根据专家编号删除节点信息*/
  52. bool DeleteNodeMatrixListByExpertId(int expertId);
  53. /*根据指标体系类型和工程ID查询实测数据信息*/
  54. bool QueryMeaureDataByProjectAndIndex(QList<NodeMatrixInfo *> *dataList, QString index, int projId);
  55. /*根据指标体系类型和工程ID查询专家数据信息*/
  56. bool QueryExpertDataByProjectAndIndex(QList<NodeMatrixInfo *> *dataList, QString index, int projId);
  57. /*根据指标体系类型和工程ID查询专家数据信息*/
  58. /* dataSource, 0:专家数据, 1:实测数据*/
  59. bool QueryDataByProjectAndIndex(QList<NodeMatrixInfo *> *dataList, QString index, int projId, int dataSource);
  60. /*修改节点值*/
  61. bool UpdateMeasureData(const NodeMatrixInfo &info);
  62. /*删除实测数据*/
  63. bool deleteMeasureData(int projId, QString index, QString uuid);
  64. bool deleteExpertData(int projId, int expertId);
  65. /*查询是否已录入数据*/
  66. bool hasMeasureData(int projId, QString index);
  67. bool hasExpertData(int projId, QString index, int expertId);
  68. };
  69. #endif // NODEMATRIXSERVICE_H