NodeMatrixService.h 3.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  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. };
  54. #endif // NODEMATRIXSERVICE_H