wumu
2023-05-31 fd303ca4450d098693760090ea450a057c3cb8f2
0531
3个文件已修改
215 ■■■■■ 已修改文件
internal_system_v1/problemcount.cpp 31 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
internal_system_v1/problemcount.h 5 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
internal_system_v1/problemcount.ui 179 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
internal_system_v1/problemcount.cpp
@@ -1,14 +1,45 @@
#include "problemcount.h"
#include "ui_problemcount.h"
#include <QDebug>
ProblemCount::ProblemCount(QWidget *parent) :
    QMainWindow(parent),
    ui(new Ui::ProblemCount)
{
    ui->setupUi(this);
    ui->tableWidget->setColumnWidth(0,300);
}
ProblemCount::~ProblemCount()
{
    delete ui;
}
void ProblemCount::on_tableWidget_clicked(const QModelIndex &index)
{
    qDebug()<<"index"<<index;
    int noMonCnt = 0;
    for(int i=3;i<=6;++i){
        noMonCnt += ui->tableWidget->item(i,2)->text().toInt();
    }
    ui->tableWidget->setItem(2,2,new QTableWidgetItem(QString::number(noMonCnt)));
    int allCnt = ui->tableWidget->item(1,2)->text().toInt()+ui->tableWidget->item(2,2)->text().toInt();
    ui->tableWidget->setItem(0,2,new QTableWidgetItem(QString::number(allCnt)));
}
void ProblemCount::on_tableWidget_activated(const QModelIndex &index)
{
    qDebug()<<"activated index"<<index;
    int noMonCnt = 0;
    for(int i=3;i<=6;++i){
        noMonCnt += ui->tableWidget->item(i,2)->text().toInt();
    }
    ui->tableWidget->setItem(2,2,new QTableWidgetItem(QString::number(noMonCnt)));
    int allCnt = ui->tableWidget->item(1,2)->text().toInt()+ui->tableWidget->item(2,2)->text().toInt();
    ui->tableWidget->setItem(0,2,new QTableWidgetItem(QString::number(allCnt)));
}
internal_system_v1/problemcount.h
@@ -15,6 +15,11 @@
    explicit ProblemCount(QWidget *parent = 0);
    ~ProblemCount();
private slots:
    void on_tableWidget_clicked(const QModelIndex &index);
    void on_tableWidget_activated(const QModelIndex &index);
private:
    Ui::ProblemCount *ui;
};
internal_system_v1/problemcount.ui
@@ -17,8 +17,8 @@
   <widget class="QLabel" name="label">
    <property name="geometry">
     <rect>
      <x>190</x>
      <y>120</y>
      <x>120</x>
      <y>20</y>
      <width>421</width>
      <height>91</height>
     </rect>
@@ -27,6 +27,179 @@
     <string>问题个数</string>
    </property>
   </widget>
   <widget class="QTableWidget" name="tableWidget">
    <property name="geometry">
     <rect>
      <x>40</x>
      <y>130</y>
      <width>741</width>
      <height>411</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>代码</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>020400</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>020410</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>020420</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>020421</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>020422</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>020423</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>020424</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>