From c6c185ff7f0ed28917f3627d239d7d5fe06c0dcd Mon Sep 17 00:00:00 2001
From: wumu <mayi@mayi.com>
Date: 星期三, 24 五月 2023 23:16:59 +0800
Subject: [PATCH] 0524-2

---
 internal_system_v1/auditproject.cpp |   20 ++++
 internal_system_v1/auditproject.ui  |  234 ++++++++++++++++++++++++++++++++++++++++++++++
 internal_system_v1/auditproject.h   |    3 
 3 files changed, 257 insertions(+), 0 deletions(-)

diff --git a/internal_system_v1/auditproject.cpp b/internal_system_v1/auditproject.cpp
index 97accbf..406ac45 100644
--- a/internal_system_v1/auditproject.cpp
+++ b/internal_system_v1/auditproject.cpp
@@ -6,9 +6,29 @@
     ui(new Ui::AuditProject)
 {
     ui->setupUi(this);
+
+    for(int i=0;i<ui->tableWidget->rowCount()-1;++i){
+        for(int j=0;j<ui->tableWidget->columnCount()-1;++j){
+            auto item = ui->tableWidget->item(i,j);
+            item->setFlags(item->flags() & (~Qt::ItemIsEditable));
+        }
+    }
+    ui->tableWidget->setColumnWidth(0,300);
+
 }
 
 AuditProject::~AuditProject()
 {
     delete ui;
 }
+
+void AuditProject::on_tableWidget_clicked(const QModelIndex &index)
+{
+    if(index.row() < 9){
+        int sum = 0;
+        for(int i=1;i<9;++i){
+            sum += ui->tableWidget->item(i,2)->text().toInt();
+        }
+        ui->tableWidget->setItem(0,2,new QTableWidgetItem(QString::number(sum)));
+    }
+}
diff --git a/internal_system_v1/auditproject.h b/internal_system_v1/auditproject.h
index 7cabf67..13244d4 100644
--- a/internal_system_v1/auditproject.h
+++ b/internal_system_v1/auditproject.h
@@ -15,6 +15,9 @@
     explicit AuditProject(QWidget *parent = 0);
     ~AuditProject();
 
+private slots:
+    void on_tableWidget_clicked(const QModelIndex &index);
+
 private:
     Ui::AuditProject *ui;
 };
diff --git a/internal_system_v1/auditproject.ui b/internal_system_v1/auditproject.ui
index 4515c23..abe6655 100644
--- a/internal_system_v1/auditproject.ui
+++ b/internal_system_v1/auditproject.ui
@@ -27,6 +27,240 @@
      <string>瀹¤椤圭洰</string>
     </property>
    </widget>
+   <widget class="QTableWidget" name="tableWidget">
+    <property name="geometry">
+     <rect>
+      <x>50</x>
+      <y>110</y>
+      <width>711</width>
+      <height>431</height>
+     </rect>
+    </property>
+    <attribute name="verticalHeaderVisible">
+     <bool>false</bool>
+    </attribute>
+    <row>
+     <property name="text">
+      <string>1</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>
+    <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>
+    <item row="0" column="0">
+     <property name="text">
+      <string>瀹¤椤圭洰</string>
+     </property>
+     <property name="font">
+      <font>
+       <weight>75</weight>
+       <bold>true</bold>
+      </font>
+     </property>
+    </item>
+    <item row="0" column="1">
+     <property name="text">
+      <string>020100</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>020101</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>020102</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>020103</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>020104</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>缁忔祹璐d换瀹¤</string>
+     </property>
+    </item>
+    <item row="5" column="1">
+     <property name="text">
+      <string>020105</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>020106</string>
+     </property>
+    </item>
+    <item row="6" column="2">
+     <property name="text">
+      <string>0</string>
+     </property>
+    </item>
+    <item row="7" column="0">
+     <property name="text">
+      <string>澧冨瀹¤</string>
+     </property>
+    </item>
+    <item row="7" column="1">
+     <property name="text">
+      <string>020107</string>
+     </property>
+    </item>
+    <item row="7" column="2">
+     <property name="text">
+      <string>0</string>
+     </property>
+    </item>
+    <item row="8" column="0">
+     <property name="text">
+      <string>鍏朵粬</string>
+     </property>
+    </item>
+    <item row="8" column="1">
+     <property name="text">
+      <string>020108</string>
+     </property>
+    </item>
+    <item row="8" column="2">
+     <property name="text">
+      <string>0</string>
+     </property>
+    </item>
+    <item row="9" column="0">
+     <property name="text">
+      <string>濮旀墭澶栧寘椤圭洰</string>
+     </property>
+    </item>
+    <item row="9" column="1">
+     <property name="text">
+      <string>020111</string>
+     </property>
+    </item>
+    <item row="9" column="2">
+     <property name="text">
+      <string>0</string>
+     </property>
+    </item>
+   </widget>
   </widget>
   <widget class="QMenuBar" name="menubar">
    <property name="geometry">

--
Gitblit v1.8.0