ClassSet.h 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210
  1. #ifndef CLASSSET_H
  2. #define CLASSSET_H
  3. #include <QObject>
  4. #include <QDate>
  5. const int QF_CODE_COMPLETED = 1000;
  6. const int QF_CODE_ALREADY_LOGIN = 1001;
  7. const int QF_CODE_FAILED = 2000;
  8. const int QF_CODE_EMPTY_USERNAME = 2001;
  9. const int QF_CODE_EMPTY_PASSWORD = 2002;
  10. const int QF_CODE_USER_NOT_EXISTS = 2003;
  11. const int QF_CODE_WRONG_PASSWORD = 2004;
  12. const int QF_CODE_NOT_LOGIN = 2005;
  13. /**
  14. * @projectName QFD
  15. * @author cyh
  16. * @date 2021-05-12
  17. * @desc 节点矩阵信息
  18. */
  19. class NodeMatrixInfo
  20. {
  21. public:
  22. int id = -1;
  23. QString expertName; //专家名称
  24. QString expertId; //专家id
  25. int engineerId; //工程id
  26. int mindId; //脑图名称
  27. QString node; //节点
  28. QString abscissa; //横坐标
  29. QString ordinate; //纵坐标
  30. QString nodeValue; //节点值
  31. QDateTime writeDate; //填写时间
  32. QString mark; //页码
  33. QString tableMsg;
  34. int tabIndex; // tab索引
  35. };
  36. class ClassSet
  37. {
  38. public:
  39. explicit ClassSet();
  40. static QList<NodeMatrixInfo *> datas;
  41. };
  42. /**
  43. * @projectName QFD
  44. * @author cyh
  45. * @date 2021-05-12
  46. * @desc 工程信息
  47. */
  48. class EngineerInfo
  49. {
  50. public:
  51. int engineerId = -1; //工程id
  52. QString engineerName; //工程名称
  53. int indexSetId = -1; //指标体系id
  54. int measureFunctionId = -1; //测量方法id
  55. int schemaEvalId = -1; //方案评估id
  56. QString remark; //备注
  57. QString effectNameStr; //生效列(逗号分割)
  58. };
  59. /**
  60. * @projectName QFD
  61. * @author cyh
  62. * @date 2021-05-12
  63. * @desc 用户信息
  64. */
  65. class QFUser
  66. {
  67. public:
  68. enum Role
  69. {
  70. SuperAdmin,
  71. GerneralAdmin,
  72. Expert
  73. };
  74. int id = -1; // id
  75. QString userName; //用户名称
  76. QString userNo; //用户账号
  77. QString password; //用户密码
  78. Role role; //角色 0-超级管理员,1-普通管理员,2-专家
  79. QString post; //职务
  80. QString major; //专业
  81. QString workPosition; //工作单位
  82. QString educationDegree; //文化程度
  83. QString phone; //联系方式
  84. QString remark; //注释信息
  85. QString projectId; //工程编号
  86. QString writeTime; //填写时间
  87. QFUser();
  88. QFUser(const QString userId, const QString password);
  89. static QFUser *currentUser();
  90. int login();
  91. static int logout();
  92. private:
  93. QString rawPassword;
  94. };
  95. /**
  96. * @projectName QFD
  97. * @author cyh
  98. * @date 2021-05-12
  99. * @desc 评估方案信息类
  100. */
  101. class PlanInfo
  102. {
  103. public:
  104. int id = -1; // id
  105. QString planName; //方案名称
  106. int engineerId; //关联工程id
  107. QString desc; //方案描述
  108. };
  109. /**
  110. * @projectName QFD
  111. * @author cyh
  112. * @date 2021-05-12
  113. * @desc 评估方案信息与指标体系关系表
  114. */
  115. class IndexSetPlanInfo
  116. {
  117. public:
  118. int id = -1; // id
  119. int indexSetId; //指标体系id
  120. int planId; //方案id
  121. double weight; //权重值
  122. };
  123. /**
  124. * @projectName QFD
  125. * @author mimang
  126. * @date 2022-01-10
  127. * @desc 能力重要度评估指标体系 需求权重重要度
  128. */
  129. class DemandWeight
  130. {
  131. public:
  132. int id = -1; // id
  133. int engineerId; // 工程id
  134. QString expertId; // 专家id
  135. QString nodeName; //节点名称
  136. double nodeValue; //需求重要度
  137. double nodeWeight; //权重值
  138. int tableIndex; //表格索引
  139. int isValid; //是否有效
  140. int pageIndex; //页码
  141. QString tableMsg;
  142. };
  143. /**
  144. * @projectName QFD
  145. * @author mimang
  146. * @date 2022-01-10
  147. * @desc 能力重要度评估指标体系 需求权重重要度
  148. */
  149. class SchemaEval
  150. {
  151. public:
  152. int id = -1; // id
  153. int engineerId; // 工程id
  154. QString name; // 专家id
  155. QString remark; //节点名称
  156. QString valueStr; //指标得分
  157. double score; //得分
  158. };
  159. /**
  160. * @projectName QFD
  161. * @author mimang
  162. * @date 2022-01-11
  163. * @desc 技术措施重要度评估对象 技术重要度
  164. */
  165. class TechnicalImport
  166. {
  167. public:
  168. int id = -1; // id
  169. int engineerId; // 工程id
  170. int expertId; // 专家id
  171. QString nodeName; //节点名称
  172. double nodeValue; //技术重要度
  173. };
  174. /**
  175. * @brief 用户配置信息
  176. */
  177. class UserConfig
  178. {
  179. public:
  180. int id = -1;
  181. int userId; //用户id
  182. QString userName; //用户名称
  183. int engineerId; //工程id
  184. double weight; //工程权重
  185. QString createTime; //创建时间
  186. QString updateTime; //更新时间
  187. };
  188. #endif // CLASSSET_H