chengxr há 1 ano atrás
pai
commit
66a8a87629

+ 2 - 6
QFD/dbService/ClassSet.cpp

@@ -222,8 +222,6 @@ int QFUser::login()
 QString EngineerInfo::nameOFEvalType(EngineerInfo::EvalType t)
 {
     switch (t) {
-    case UnknownEval:
-        return "未知评估类型";
     case Importance:
         return "能力与技术重要度评估";
     case TechSchema:
@@ -234,8 +232,6 @@ QString EngineerInfo::nameOFEvalType(EngineerInfo::EvalType t)
 QString EngineerInfo::nameOFIndexType(EngineerInfo::IndexType t)
 {
     switch (t) {
-    case UnknownIndex:
-        return "未知指标体系";
     case Capability:
         return "能力重要度评估指标体系";
     case TechMessaures:
@@ -262,11 +258,11 @@ QList<EngineerInfo::IndexType> EngineerInfo::indexListOfEvalFlags(EvalFlags flag
 
 EngineerInfo::EvalFlags EngineerInfo::evalFlags() const
 {
-    EvalFlags flags = UnknownEval;
+    EvalFlags flags;
+
     if (remark.contains("能力与技术重要度评估")) {
         flags |= Importance;
     }
-
     if (remark.contains("技术方案评估")) {
         flags |= TechSchema;
     }

+ 2 - 4
QFD/dbService/ClassSet.h

@@ -68,9 +68,8 @@ public:
     /// 评估方案类型
     enum EvalType
     {
-        UnknownEval = 0,
-        Importance  = 0x001 | 0x010,  // 能力与技术重要度评估
-        TechSchema  = 0x100,          // 技术方案评估
+        Importance = 0x001 | 0x010,  // 能力与技术重要度评估
+        TechSchema = 0x100,          // 技术方案评估
     };
 
     Q_DECLARE_FLAGS(EvalFlags, EvalType)
@@ -80,7 +79,6 @@ public:
     /// 指标体系类型
     enum IndexType
     {
-        UnknownIndex  = 0,
         Capability    = 0x001,  // 能力重要度评估指标体系
         TechMessaures = 0x010,  // 技术措施重要度评估对象
         SchemaEval    = 0x100,  // 方案评估指标体系

+ 2 - 2
QFD/widgets/ProjectStateWidget.cpp

@@ -31,7 +31,7 @@ void ProjectStateWidget::showProjects(QList<EngineerInfo *> proList)
     int row = 0;
 
     for (int i = 0; i < proList.count(); i++) {
-        QColor color = i % 2 ? QColor(244, 244, 255) : QColor(255, 255, 255);
+        QColor color = i % 2 ? QColor(238, 238, 255) : QColor(255, 255, 255);
 
         // 工程名,第0列
         EngineerInfo *proj     = proList[i];
@@ -70,7 +70,7 @@ void ProjectStateWidget::showProjects(QList<EngineerInfo *> proList)
                 setItem(row + k, 3, loadItem, color);
             }
 
-            row += std::max(1, proj->configs.count());
+            row += configs.count();
         }
     }
 }