ClassSet.h 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215
  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. int id = -1; // id
  78. QString userName; //用户名称
  79. QString userNo; //用户账号
  80. QString password; //用户密码
  81. Role role; //角色 0-超级管理员,1-普通管理员,2-专家
  82. QString post; //职务
  83. QString major; //专业
  84. QString workPosition; //工作单位
  85. QString educationDegree; //文化程度
  86. QString phone; //联系方式
  87. QString remark; //注释信息
  88. QString projectId; //工程编号
  89. QString writeTime; //填写时间
  90. QFUser();
  91. QFUser(const QString userId, const QString password);
  92. static QFUser *currentUser();
  93. int login(); // 登录
  94. static int logout(); // 退出
  95. int resetAdmin(QString account, QString password, QString repeatPassword); // 修改管理员账号
  96. private:
  97. QString rawPassword;
  98. };
  99. /**
  100. * @projectName QFD
  101. * @author cyh
  102. * @date 2021-05-12
  103. * @desc 评估方案信息类
  104. */
  105. class PlanInfo
  106. {
  107. public:
  108. int id = -1; // id
  109. QString planName; //方案名称
  110. int engineerId; //关联工程id
  111. QString desc; //方案描述
  112. };
  113. /**
  114. * @projectName QFD
  115. * @author cyh
  116. * @date 2021-05-12
  117. * @desc 评估方案信息与指标体系关系表
  118. */
  119. class IndexSetPlanInfo
  120. {
  121. public:
  122. int id = -1; // id
  123. int indexSetId; //指标体系id
  124. int planId; //方案id
  125. double weight; //权重值
  126. };
  127. /**
  128. * @projectName QFD
  129. * @author mimang
  130. * @date 2022-01-10
  131. * @desc 能力重要度评估指标体系 需求权重重要度
  132. */
  133. class DemandWeight
  134. {
  135. public:
  136. int id = -1; // id
  137. int engineerId; // 工程id
  138. QString expertId; // 专家id
  139. QString nodeName; //节点名称
  140. double nodeValue; //需求重要度
  141. double nodeWeight; //权重值
  142. int tableIndex; //表格索引
  143. int isValid; //是否有效
  144. int pageIndex; //页码
  145. QString tableMsg;
  146. };
  147. /**
  148. * @projectName QFD
  149. * @author mimang
  150. * @date 2022-01-10
  151. * @desc 能力重要度评估指标体系 需求权重重要度
  152. */
  153. class SchemaEval
  154. {
  155. public:
  156. int id = -1; // id
  157. int engineerId; // 工程id
  158. QString name; // 专家id
  159. QString remark; //节点名称
  160. QString valueStr; //指标得分
  161. double score; //得分
  162. };
  163. /**
  164. * @projectName QFD
  165. * @author mimang
  166. * @date 2022-01-11
  167. * @desc 技术措施重要度评估对象 技术重要度
  168. */
  169. class TechnicalImport
  170. {
  171. public:
  172. int id = -1; // id
  173. int engineerId; // 工程id
  174. int expertId; // 专家id
  175. QString nodeName; //节点名称
  176. double nodeValue; //技术重要度
  177. };
  178. /**
  179. * @brief 用户配置信息
  180. */
  181. class UserConfig
  182. {
  183. public:
  184. int id = -1;
  185. int userId; //用户id
  186. QString userName; //用户名称
  187. int engineerId; //工程id
  188. double weight; //工程权重
  189. QString createTime; //创建时间
  190. QString updateTime; //更新时间
  191. };
  192. #endif // CLASSSET_H