ClassSet.h 5.1 KB

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