From b8a40381a1136f00f417af5cf1041f1321d597ca Mon Sep 17 00:00:00 2001
From: wumu <mayi@mayi.com>
Date: 星期四, 01 六月 2023 22:57:44 +0800
Subject: [PATCH] 0601

---
 internal_system_v1/problemrectification.cpp |   10 ++
 internal_system_v1/problemrectification.h   |    3 
 internal_system_v1/problemrectification.ui  |  179 ++++++++++++++++++++++++++++++++++++++++++++
 3 files changed, 189 insertions(+), 3 deletions(-)

diff --git a/internal_system_v1/problemrectification.cpp b/internal_system_v1/problemrectification.cpp
index 146dcb4..b013cad 100644
--- a/internal_system_v1/problemrectification.cpp
+++ b/internal_system_v1/problemrectification.cpp
@@ -6,9 +6,19 @@
     ui(new Ui::ProblemRectification)
 {
     ui->setupUi(this);
+    ui->tableWidget->setColumnWidth(0,300);
 }
 
 ProblemRectification::~ProblemRectification()
 {
     delete ui;
 }
+
+void ProblemRectification::on_tableWidget_clicked(const QModelIndex &index)
+{
+    int allCnt = 0;
+    for(int i=1;i<ui->tableWidget->rowCount();++i){
+        allCnt += ui->tableWidget->item(i,2)->text().toInt();
+    }
+    ui->tableWidget->setItem(0,2,new QTableWidgetItem(QString::number(allCnt)));
+}
diff --git a/internal_system_v1/problemrectification.h b/internal_system_v1/problemrectification.h
index 67ebff1..8956cf1 100644
--- a/internal_system_v1/problemrectification.h
+++ b/internal_system_v1/problemrectification.h
@@ -15,6 +15,9 @@
     explicit ProblemRectification(QWidget *parent = 0);
     ~ProblemRectification();
 
+private slots:
+    void on_tableWidget_clicked(const QModelIndex &index);
+
 private:
     Ui::ProblemRectification *ui;
 };
diff --git a/internal_system_v1/problemrectification.ui b/internal_system_v1/problemrectification.ui
index ba3a3b5..8caa809 100644
--- a/internal_system_v1/problemrectification.ui
+++ b/internal_system_v1/problemrectification.ui
@@ -17,8 +17,8 @@
    <widget class="QLabel" name="label">
     <property name="geometry">
      <rect>
-      <x>130</x>
-      <y>120</y>
+      <x>110</x>
+      <y>20</y>
       <width>521</width>
       <height>111</height>
      </rect>
@@ -27,6 +27,179 @@
      <string>闂鏁存敼</string>
     </property>
    </widget>
+   <widget class="QTableWidget" name="tableWidget">
+    <property name="geometry">
+     <rect>
+      <x>20</x>
+      <y>120</y>
+      <width>761</width>
+      <height>441</height>
+     </rect>
+    </property>
+    <attribute name="verticalHeaderVisible">
+     <bool>false</bool>
+    </attribute>
+    <row>
+     <property name="text">
+      <string>鏂板缓琛�</string>
+     </property>
+    </row>
+    <row>
+     <property name="text">
+      <string>鏂板缓琛�</string>
+     </property>
+    </row>
+    <row>
+     <property name="text">
+      <string>鏂板缓琛�</string>
+     </property>
+    </row>
+    <row>
+     <property name="text">
+      <string>鏂板缓琛�</string>
+     </property>
+    </row>
+    <row>
+     <property name="text">
+      <string>鏂板缓琛�</string>
+     </property>
+    </row>
+    <row>
+     <property name="text">
+      <string>鏂板缓琛�</string>
+     </property>
+    </row>
+    <row>
+     <property name="text">
+      <string>鏂板缓琛�</string>
+     </property>
+    </row>
+    <column>
+     <property name="text">
+      <string>鎸囨爣鍚嶇О</string>
+     </property>
+    </column>
+    <column>
+     <property name="text">
+      <string>浠g爜</string>
+     </property>
+    </column>
+    <column>
+     <property name="text">
+      <string>鏁伴噺(鍏�)</string>
+     </property>
+    </column>
+    <column>
+     <property name="text">
+      <string>涓婁紶浣愯瘉璧勬枡</string>
+     </property>
+    </column>
+    <item row="0" column="0">
+     <property name="text">
+      <string>瀹¤鍙戠幇闂鏁存敼锛堥噾棰濈被锛�</string>
+     </property>
+    </item>
+    <item row="0" column="1">
+     <property name="text">
+      <string>020500</string>
+     </property>
+    </item>
+    <item row="0" column="2">
+     <property name="text">
+      <string>0</string>
+     </property>
+    </item>
+    <item row="1" column="0">
+     <property name="text">
+      <string>璋冩暣浼氳璐︾洰</string>
+     </property>
+    </item>
+    <item row="1" column="1">
+     <property name="text">
+      <string>020501</string>
+     </property>
+    </item>
+    <item row="1" column="2">
+     <property name="text">
+      <string>0</string>
+     </property>
+    </item>
+    <item row="2" column="0">
+     <property name="text">
+      <string>鏀跺洖璧勯噾</string>
+     </property>
+    </item>
+    <item row="2" column="1">
+     <property name="text">
+      <string>020502</string>
+     </property>
+    </item>
+    <item row="2" column="2">
+     <property name="text">
+      <string>0</string>
+     </property>
+    </item>
+    <item row="3" column="0">
+     <property name="text">
+      <string>鎸藉洖鎹熷け</string>
+     </property>
+    </item>
+    <item row="3" column="1">
+     <property name="text">
+      <string>020503</string>
+     </property>
+    </item>
+    <item row="3" column="2">
+     <property name="text">
+      <string>0</string>
+     </property>
+    </item>
+    <item row="4" column="0">
+     <property name="text">
+      <string>褰掕繕鍘熻祫閲戞笭閬�</string>
+     </property>
+    </item>
+    <item row="4" column="1">
+     <property name="text">
+      <string>020504</string>
+     </property>
+    </item>
+    <item row="4" column="2">
+     <property name="text">
+      <string>0</string>
+     </property>
+    </item>
+    <item row="5" column="0">
+     <property name="text">
+      <string>琛ョ即绋庤垂</string>
+     </property>
+    </item>
+    <item row="5" column="1">
+     <property name="text">
+      <string>020505</string>
+     </property>
+    </item>
+    <item row="5" column="2">
+     <property name="text">
+      <string>0</string>
+     </property>
+    </item>
+    <item row="6" column="0">
+     <property name="text">
+      <string>鍏朵粬</string>
+     </property>
+    </item>
+    <item row="6" column="1">
+     <property name="text">
+      <string>020506</string>
+     </property>
+    </item>
+    <item row="6" column="2">
+     <property name="text">
+      <string>0</string>
+     </property>
+    </item>
+   </widget>
   </widget>
   <widget class="QMenuBar" name="menubar">
    <property name="geometry">
@@ -34,7 +207,7 @@
      <x>0</x>
      <y>0</y>
      <width>800</width>
-     <height>25</height>
+     <height>26</height>
     </rect>
    </property>
   </widget>

--
Gitblit v1.8.0