| | |
| | | #include "auditproject.h" |
| | | #include "ui_auditproject.h" |
| | | #include <QDebug> |
| | | #include <QSqlQuery> |
| | | |
| | | AuditProject::AuditProject(QWidget *parent) : |
| | | QMainWindow(parent), |
| | |
| | | } |
| | | } |
| | | ui->tableWidget->setColumnWidth(0,300); |
| | | m_comId = 1; // 单位id |
| | | |
| | | } |
| | | |
| | |
| | | ui->tableWidget->setItem(0,2,new QTableWidgetItem(QString::number(sum))); |
| | | } |
| | | } |
| | | |
| | | void AuditProject::on_pushButton_clicked() |
| | | { |
| | | |
| | | // 再次统计一把 |
| | | 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))); |
| | | |
| | | QString values = ""; |
| | | for(int i=0;i<ui->tableWidget->rowCount();++i){ |
| | | values += QString("('%1','%2',%3,%4),").arg(ui->tableWidget->item(i,0)->text()) |
| | | .arg(ui->tableWidget->item(i,1)->text()).arg(ui->tableWidget->item(i,2)->text().toInt()) |
| | | .arg(m_comId); |
| | | } |
| | | //qDebug()<<values; |
| | | values = values.left(values.length()-1); |
| | | //qDebug()<<values; |
| | | QString sql = QString("insert into audit_project (kpi_name,code,num,com_id) values %1").arg(values); |
| | | qDebug()<<sql; |
| | | QSqlQuery query; |
| | | if(query.exec(sql)){ |
| | | qDebug()<<"OK sql"<<__FUNCTION__; |
| | | }else{ |
| | | qDebug()<<"fail sql"<<__FUNCTION__; |
| | | } |
| | | } |
| | |
| | | private slots: |
| | | void on_tableWidget_clicked(const QModelIndex &index); |
| | | |
| | | void on_pushButton_clicked(); |
| | | |
| | | private: |
| | | Ui::AuditProject *ui; |
| | | int m_comId; |
| | | }; |
| | | |
| | | #endif // AUDITPROJECT_H |
| | |
| | | </item> |
| | | </widget> |
| | | </item> |
| | | <item row="2" column="0"> |
| | | <widget class="QPushButton" name="pushButton"> |
| | | <property name="minimumSize"> |
| | | <size> |
| | | <width>0</width> |
| | | <height>50</height> |
| | | </size> |
| | | </property> |
| | | <property name="text"> |
| | | <string>提交--审计项目</string> |
| | | </property> |
| | | </widget> |
| | | </item> |
| | | </layout> |
| | | </widget> |
| | | <widget class="QMenuBar" name="menubar"> |
| | |
| | | #include "auditworkload.h" |
| | | #include "ui_auditworkload.h" |
| | | #include <QDebug> |
| | | #include <QSqlQuery> |
| | | |
| | | AuditWorkload::AuditWorkload(QWidget *parent) : |
| | | QMainWindow(parent), |
| | |
| | | { |
| | | ui->setupUi(this); |
| | | ui->tableWidget->setColumnWidth(0,260); |
| | | m_comId = 1; |
| | | } |
| | | |
| | | AuditWorkload::~AuditWorkload() |
| | | { |
| | | delete ui; |
| | | } |
| | | |
| | | void AuditWorkload::on_pushButton_clicked() |
| | | { |
| | | QString values = ""; |
| | | for(int i=0;i<ui->tableWidget->rowCount();++i){ |
| | | values += QString("('%1','%2',%3,%4),").arg(ui->tableWidget->item(i,0)->text()) |
| | | .arg(ui->tableWidget->item(i,1)->text()).arg(ui->tableWidget->item(i,2)->text().toInt()) |
| | | .arg(m_comId); |
| | | } |
| | | values = values.left(values.length()-1); |
| | | QString sql = QString("insert into audit_workload (kpi_name,code,num,com_id) values %1").arg(values); |
| | | qDebug()<<sql; |
| | | QSqlQuery query; |
| | | if(query.exec(sql)){ |
| | | qDebug()<<"OK sql"<<__FUNCTION__; |
| | | }else{ |
| | | qDebug()<<"fail sql"<<__FUNCTION__; |
| | | } |
| | | } |
| | |
| | | explicit AuditWorkload(QWidget *parent = 0); |
| | | ~AuditWorkload(); |
| | | |
| | | private slots: |
| | | void on_pushButton_clicked(); |
| | | |
| | | private: |
| | | Ui::AuditWorkload *ui; |
| | | int m_comId; |
| | | }; |
| | | |
| | | #endif // AUDITWORKLOAD_H |
| | |
| | | </item> |
| | | </widget> |
| | | </item> |
| | | <item row="2" column="0"> |
| | | <widget class="QPushButton" name="pushButton"> |
| | | <property name="minimumSize"> |
| | | <size> |
| | | <width>0</width> |
| | | <height>50</height> |
| | | </size> |
| | | </property> |
| | | <property name="text"> |
| | | <string>提交--内审工作量</string> |
| | | </property> |
| | | </widget> |
| | | </item> |
| | | </layout> |
| | | </widget> |
| | | <widget class="QMenuBar" name="menubar"> |
| | |
| | | #include "caseclue.h" |
| | | #include "ui_caseclue.h" |
| | | #include <QDebug> |
| | | #include <QSqlQuery> |
| | | |
| | | CaseClue::CaseClue(QWidget *parent) : |
| | | QMainWindow(parent), |
| | |
| | | { |
| | | ui->setupUi(this); |
| | | ui->tableWidget->setColumnWidth(0,300); |
| | | m_comId = 1; |
| | | } |
| | | |
| | | CaseClue::~CaseClue() |
| | | { |
| | | delete ui; |
| | | } |
| | | |
| | | void CaseClue::on_pushButton_clicked() |
| | | { |
| | | QString values = ""; |
| | | for(int i=0;i<ui->tableWidget->rowCount();++i){ |
| | | values += QString("('%1','%2','%3',%4,%5),").arg(ui->tableWidget->item(i,0)->text()) |
| | | .arg(ui->tableWidget->item(i,1)->text()).arg(ui->tableWidget->item(i,2)->text()) |
| | | .arg(ui->tableWidget->item(i,3)->text().toInt()) |
| | | .arg(m_comId); |
| | | } |
| | | values = values.left(values.length()-1); |
| | | QString sql = QString("insert into case_clue (kpi_name,code,unit,num,com_id) values %1").arg(values); |
| | | qDebug()<<sql; |
| | | QSqlQuery query; |
| | | if(query.exec(sql)){ |
| | | qDebug()<<"OK sql"<<__FUNCTION__; |
| | | }else{ |
| | | qDebug()<<"fail sql"<<__FUNCTION__; |
| | | } |
| | | } |
| | |
| | | explicit CaseClue(QWidget *parent = 0); |
| | | ~CaseClue(); |
| | | |
| | | private slots: |
| | | void on_pushButton_clicked(); |
| | | |
| | | private: |
| | | Ui::CaseClue *ui; |
| | | int m_comId; |
| | | }; |
| | | |
| | | #endif // CASECLUE_H |
| | |
| | | </item> |
| | | </widget> |
| | | </item> |
| | | <item row="2" column="0"> |
| | | <widget class="QPushButton" name="pushButton"> |
| | | <property name="minimumSize"> |
| | | <size> |
| | | <width>0</width> |
| | | <height>50</height> |
| | | </size> |
| | | </property> |
| | | <property name="text"> |
| | | <string>提交--案件线索</string> |
| | | </property> |
| | | </widget> |
| | | </item> |
| | | </layout> |
| | | </widget> |
| | | <widget class="QMenuBar" name="menubar"> |
| | |
| | | <set>Qt::AlignCenter</set> |
| | | </property> |
| | | </widget> |
| | | <widget class="QComboBox" name="comboBox"> |
| | | <property name="geometry"> |
| | | <rect> |
| | | <x>670</x> |
| | | <y>30</y> |
| | | <width>291</width> |
| | | <height>22</height> |
| | | </rect> |
| | | </property> |
| | | <item> |
| | | <property name="text"> |
| | | <string>公司名称</string> |
| | | </property> |
| | | </item> |
| | | </widget> |
| | | </widget> |
| | | <widget class="QMenuBar" name="menubar"> |
| | | <property name="geometry"> |
| | |
| | | #include "problemcount.h" |
| | | #include "ui_problemcount.h" |
| | | #include <QDebug> |
| | | #include <QFileDialog> |
| | | #include <QPushButton> |
| | | #include <QSqlQuery> |
| | | |
| | | ProblemCount::ProblemCount(QWidget *parent) : |
| | | QMainWindow(parent), |
| | |
| | | { |
| | | ui->setupUi(this); |
| | | ui->tableWidget->setColumnWidth(0,300); |
| | | m_comId = 1; |
| | | for(int i=0;i<ui->tableWidget->rowCount();++i){ |
| | | QPushButton *btn = new QPushButton("上传",this); |
| | | ui->tableWidget->setCellWidget(i,3,btn); |
| | | connect(btn,&QPushButton::clicked,this,[=]{ |
| | | QStringList files = QFileDialog::getOpenFileNames(); |
| | | QString str; |
| | | for(auto f:files){ |
| | | str += f + " "; |
| | | } |
| | | ui->tableWidget->setItem(i,4,new QTableWidgetItem(str)); |
| | | }); |
| | | } |
| | | } |
| | | |
| | | ProblemCount::~ProblemCount() |
| | |
| | | ui->tableWidget->setItem(0,2,new QTableWidgetItem(QString::number(allCnt))); |
| | | |
| | | } |
| | | |
| | | void ProblemCount::on_pushButton_clicked() |
| | | { |
| | | // 再统计一把 |
| | | on_tableWidget_activated(QModelIndex()); |
| | | |
| | | |
| | | QString values = ""; |
| | | for(int i=0;i<ui->tableWidget->rowCount();++i){ |
| | | values += QString("('%1','%2',%3,'%4',%5),").arg(ui->tableWidget->item(i,0)->text()) |
| | | .arg(ui->tableWidget->item(i,1)->text()).arg(ui->tableWidget->item(i,2)->text().toInt()) |
| | | .arg(ui->tableWidget->item(i,4)->text()) |
| | | .arg(m_comId); |
| | | } |
| | | values = values.left(values.length()-1); |
| | | QString sql = QString("insert into problem_count (kpi_name,code,num,evidences,com_id) values %1").arg(values); |
| | | qDebug()<<sql; |
| | | QSqlQuery query; |
| | | if(query.exec(sql)){ |
| | | qDebug()<<"OK sql"<<__FUNCTION__; |
| | | }else{ |
| | | qDebug()<<"fail sql"<<__FUNCTION__; |
| | | } |
| | | } |
| | |
| | | |
| | | void on_tableWidget_activated(const QModelIndex &index); |
| | | |
| | | void on_pushButton_clicked(); |
| | | |
| | | private: |
| | | Ui::ProblemCount *ui; |
| | | int m_comId; |
| | | }; |
| | | |
| | | #endif // PROBLEMCOUNT_H |
| | |
| | | <string>上传佐证资料</string> |
| | | </property> |
| | | </column> |
| | | <column> |
| | | <property name="text"> |
| | | <string>佐证资料</string> |
| | | </property> |
| | | </column> |
| | | <item row="0" column="0"> |
| | | <property name="text"> |
| | | <string>审计发现问题个数</string> |
| | |
| | | <item row="0" column="2"> |
| | | <property name="text"> |
| | | <string>0</string> |
| | | </property> |
| | | </item> |
| | | <item row="0" column="4"> |
| | | <property name="text"> |
| | | <string>无</string> |
| | | </property> |
| | | </item> |
| | | <item row="1" column="0"> |
| | |
| | | <string>0</string> |
| | | </property> |
| | | </item> |
| | | <item row="1" column="4"> |
| | | <property name="text"> |
| | | <string>无</string> |
| | | </property> |
| | | </item> |
| | | <item row="2" column="0"> |
| | | <property name="text"> |
| | | <string>非金额类问题个数</string> |
| | |
| | | <item row="2" column="2"> |
| | | <property name="text"> |
| | | <string>0</string> |
| | | </property> |
| | | </item> |
| | | <item row="2" column="4"> |
| | | <property name="text"> |
| | | <string>无</string> |
| | | </property> |
| | | </item> |
| | | <item row="3" column="0"> |
| | |
| | | <string>0</string> |
| | | </property> |
| | | </item> |
| | | <item row="3" column="4"> |
| | | <property name="text"> |
| | | <string>无</string> |
| | | </property> |
| | | </item> |
| | | <item row="4" column="0"> |
| | | <property name="text"> |
| | | <string>发展规划与战略决策方面</string> |
| | |
| | | <item row="4" column="2"> |
| | | <property name="text"> |
| | | <string>0</string> |
| | | </property> |
| | | </item> |
| | | <item row="4" column="4"> |
| | | <property name="text"> |
| | | <string>无</string> |
| | | </property> |
| | | </item> |
| | | <item row="5" column="0"> |
| | |
| | | <string>0</string> |
| | | </property> |
| | | </item> |
| | | <item row="5" column="4"> |
| | | <property name="text"> |
| | | <string>无</string> |
| | | </property> |
| | | </item> |
| | | <item row="6" column="0"> |
| | | <property name="text"> |
| | | <string>其他</string> |
| | |
| | | <string>0</string> |
| | | </property> |
| | | </item> |
| | | <item row="6" column="4"> |
| | | <property name="text"> |
| | | <string>无</string> |
| | | </property> |
| | | </item> |
| | | </widget> |
| | | </item> |
| | | <item row="2" column="0"> |
| | | <widget class="QPushButton" name="pushButton"> |
| | | <property name="minimumSize"> |
| | | <size> |
| | | <width>0</width> |
| | | <height>50</height> |
| | | </size> |
| | | </property> |
| | | <property name="text"> |
| | | <string>提交--问题个数</string> |
| | | </property> |
| | | </widget> |
| | | </item> |
| | | </layout> |
| | |
| | | #include "problemmoney.h" |
| | | #include "ui_problemmoney.h" |
| | | #include <QPushButton> |
| | | #include <QDebug> |
| | | #include <QSqlQuery> |
| | | |
| | | ProblemMoney::ProblemMoney(QWidget *parent) : |
| | | QMainWindow(parent), |
| | |
| | | { |
| | | ui->setupUi(this); |
| | | ui->tableWidget->setColumnWidth(0,300); |
| | | m_comId = 1; |
| | | for(int i=0;i<ui->tableWidget->rowCount();++i){ |
| | | QPushButton *btn = new QPushButton("上传",this); |
| | | ui->tableWidget->setCellWidget(i,3,btn); |
| | | connect(btn,&QPushButton::clicked,this,[=]{ |
| | | QStringList files = QFileDialog::getOpenFileNames(); |
| | | QString str; |
| | | for(auto f:files){ |
| | | str += f + " "; |
| | | } |
| | | ui->tableWidget->setItem(i,4,new QTableWidgetItem(str)); |
| | | }); |
| | | } |
| | | } |
| | | |
| | | ProblemMoney::~ProblemMoney() |
| | | { |
| | | delete ui; |
| | | } |
| | | |
| | | void ProblemMoney::on_pushButton_clicked() |
| | | { |
| | | QString values = ""; |
| | | for(int i=0;i<ui->tableWidget->rowCount();++i){ |
| | | values += QString("('%1','%2',%3,'%4',%5),").arg(ui->tableWidget->item(i,0)->text()) |
| | | .arg(ui->tableWidget->item(i,1)->text()).arg(ui->tableWidget->item(i,2)->text().toInt()) |
| | | .arg(ui->tableWidget->item(i,4)->text()) |
| | | .arg(m_comId); |
| | | } |
| | | values = values.left(values.length()-1); |
| | | QString sql = QString("insert into problem_money (kpi_name,code,num,evidences,com_id) values %1").arg(values); |
| | | qDebug()<<sql; |
| | | QSqlQuery query; |
| | | if(query.exec(sql)){ |
| | | qDebug()<<"OK sql"<<__FUNCTION__; |
| | | }else{ |
| | | qDebug()<<"fail sql"<<__FUNCTION__; |
| | | } |
| | | } |
| | |
| | | #define PROBLEMMONEY_H |
| | | |
| | | #include <QMainWindow> |
| | | #include <QFileDialog> |
| | | |
| | | namespace Ui { |
| | | class ProblemMoney; |
| | |
| | | explicit ProblemMoney(QWidget *parent = 0); |
| | | ~ProblemMoney(); |
| | | |
| | | private slots: |
| | | void on_pushButton_clicked(); |
| | | |
| | | private: |
| | | Ui::ProblemMoney *ui; |
| | | int m_comId; |
| | | }; |
| | | |
| | | #endif // PROBLEMMONEY_H |
| | |
| | | </property> |
| | | <widget class="QWidget" name="centralwidget"> |
| | | <layout class="QGridLayout" name="gridLayout"> |
| | | <item row="0" column="0"> |
| | | <widget class="QLabel" name="label"> |
| | | <property name="text"> |
| | | <string>问题金额</string> |
| | | </property> |
| | | </widget> |
| | | </item> |
| | | <item row="1" column="0"> |
| | | <widget class="QTableWidget" name="tableWidget"> |
| | | <attribute name="verticalHeaderVisible"> |
| | |
| | | <string>上传佐证资料</string> |
| | | </property> |
| | | </column> |
| | | <column> |
| | | <property name="text"> |
| | | <string>佐证资料</string> |
| | | </property> |
| | | </column> |
| | | <item row="0" column="0"> |
| | | <property name="text"> |
| | | <string>审计发现问题金额</string> |
| | |
| | | <item row="0" column="2"> |
| | | <property name="text"> |
| | | <string>0</string> |
| | | </property> |
| | | </item> |
| | | <item row="0" column="4"> |
| | | <property name="text"> |
| | | <string>无</string> |
| | | </property> |
| | | </item> |
| | | <item row="1" column="0"> |
| | |
| | | <string>0</string> |
| | | </property> |
| | | </item> |
| | | <item row="1" column="4"> |
| | | <property name="text"> |
| | | <string>无</string> |
| | | </property> |
| | | </item> |
| | | <item row="2" column="0"> |
| | | <property name="text"> |
| | | <string>合规性问题金额</string> |
| | |
| | | <item row="2" column="2"> |
| | | <property name="text"> |
| | | <string>0</string> |
| | | </property> |
| | | </item> |
| | | <item row="2" column="4"> |
| | | <property name="text"> |
| | | <string>无</string> |
| | | </property> |
| | | </item> |
| | | <item row="3" column="0"> |
| | |
| | | <string>0</string> |
| | | </property> |
| | | </item> |
| | | <item row="3" column="4"> |
| | | <property name="text"> |
| | | <string>无</string> |
| | | </property> |
| | | </item> |
| | | <item row="4" column="0"> |
| | | <property name="text"> |
| | | <string>违规使用资金</string> |
| | |
| | | <item row="4" column="2"> |
| | | <property name="text"> |
| | | <string>0</string> |
| | | </property> |
| | | </item> |
| | | <item row="4" column="4"> |
| | | <property name="text"> |
| | | <string>无</string> |
| | | </property> |
| | | </item> |
| | | <item row="5" column="0"> |
| | |
| | | <string>0</string> |
| | | </property> |
| | | </item> |
| | | <item row="5" column="4"> |
| | | <property name="text"> |
| | | <string>无</string> |
| | | </property> |
| | | </item> |
| | | <item row="6" column="0"> |
| | | <property name="text"> |
| | | <string>损失浪费</string> |
| | |
| | | <item row="6" column="2"> |
| | | <property name="text"> |
| | | <string>0</string> |
| | | </property> |
| | | </item> |
| | | <item row="6" column="4"> |
| | | <property name="text"> |
| | | <string>无</string> |
| | | </property> |
| | | </item> |
| | | <item row="7" column="0"> |
| | |
| | | <string>0</string> |
| | | </property> |
| | | </item> |
| | | <item row="7" column="4"> |
| | | <property name="text"> |
| | | <string>无</string> |
| | | </property> |
| | | </item> |
| | | <item row="8" column="0"> |
| | | <property name="text"> |
| | | <string>偷漏税费</string> |
| | |
| | | <item row="8" column="2"> |
| | | <property name="text"> |
| | | <string>0</string> |
| | | </property> |
| | | </item> |
| | | <item row="8" column="4"> |
| | | <property name="text"> |
| | | <string>无</string> |
| | | </property> |
| | | </item> |
| | | <item row="9" column="0"> |
| | |
| | | <string>0</string> |
| | | </property> |
| | | </item> |
| | | <item row="9" column="4"> |
| | | <property name="text"> |
| | | <string>无</string> |
| | | </property> |
| | | </item> |
| | | <item row="10" column="0"> |
| | | <property name="text"> |
| | | <string>其他</string> |
| | |
| | | <string>0</string> |
| | | </property> |
| | | </item> |
| | | <item row="10" column="4"> |
| | | <property name="text"> |
| | | <string>无</string> |
| | | </property> |
| | | </item> |
| | | </widget> |
| | | </item> |
| | | <item row="0" column="0"> |
| | | <widget class="QLabel" name="label"> |
| | | <property name="text"> |
| | | <string>问题金额</string> |
| | | </property> |
| | | </widget> |
| | | </item> |
| | | <item row="2" column="0"> |
| | | <widget class="QPushButton" name="pushButton"> |
| | | <property name="minimumSize"> |
| | | <size> |
| | | <width>0</width> |
| | | <height>50</height> |
| | | </size> |
| | | </property> |
| | | <property name="text"> |
| | | <string>提交--问题金额</string> |
| | | </property> |
| | | </widget> |
| | | </item> |
| | | </layout> |
| | |
| | | #include "problemnotmoney.h" |
| | | #include "ui_problemnotmoney.h" |
| | | |
| | | #include <QFileDialog> |
| | | #include <QPushButton> |
| | | #include <QSqlQuery> |
| | | #include <QDebug> |
| | | |
| | | ProblemNotMoney::ProblemNotMoney(QWidget *parent) : |
| | | QMainWindow(parent), |
| | | ui(new Ui::ProblemNotMoney) |
| | | { |
| | | ui->setupUi(this); |
| | | ui->tableWidget->setColumnWidth(0,300); |
| | | m_comId = 1; |
| | | for(int i=0;i<ui->tableWidget->rowCount();++i){ |
| | | QPushButton *btn = new QPushButton("上传",this); |
| | | ui->tableWidget->setCellWidget(i,3,btn); |
| | | connect(btn,&QPushButton::clicked,this,[=]{ |
| | | QStringList files = QFileDialog::getOpenFileNames(); |
| | | QString str; |
| | | for(auto f:files){ |
| | | str += f + " "; |
| | | } |
| | | ui->tableWidget->setItem(i,4,new QTableWidgetItem(str)); |
| | | }); |
| | | } |
| | | } |
| | | |
| | | ProblemNotMoney::~ProblemNotMoney() |
| | |
| | | } |
| | | ui->tableWidget->setItem(0,2,new QTableWidgetItem(QString::number(allCnt))); |
| | | } |
| | | |
| | | void ProblemNotMoney::on_pushButton_clicked() |
| | | { |
| | | // 再统计一把 |
| | | on_tableWidget_clicked(QModelIndex()); |
| | | |
| | | QString values = ""; |
| | | for(int i=0;i<ui->tableWidget->rowCount();++i){ |
| | | values += QString("('%1','%2',%3,'%4',%5),").arg(ui->tableWidget->item(i,0)->text()) |
| | | .arg(ui->tableWidget->item(i,1)->text()).arg(ui->tableWidget->item(i,2)->text().toInt()) |
| | | .arg(ui->tableWidget->item(i,4)->text()) |
| | | .arg(m_comId); |
| | | } |
| | | values = values.left(values.length()-1); |
| | | QString sql = QString("insert into problem_no_money (kpi_name,code,num,evidences,com_id) values %1").arg(values); |
| | | qDebug()<<sql; |
| | | QSqlQuery query; |
| | | if(query.exec(sql)){ |
| | | qDebug()<<"OK sql"<<__FUNCTION__; |
| | | }else{ |
| | | qDebug()<<"fail sql"<<__FUNCTION__; |
| | | } |
| | | } |
| | |
| | | private slots: |
| | | void on_tableWidget_clicked(const QModelIndex &index); |
| | | |
| | | void on_pushButton_clicked(); |
| | | |
| | | private: |
| | | Ui::ProblemNotMoney *ui; |
| | | int m_comId; |
| | | }; |
| | | |
| | | #endif // PROBLEMNOTMONEY_H |
| | |
| | | <string>上传佐证资料</string> |
| | | </property> |
| | | </column> |
| | | <column> |
| | | <property name="text"> |
| | | <string>佐证资料</string> |
| | | </property> |
| | | </column> |
| | | <item row="0" column="0"> |
| | | <property name="text"> |
| | | <string>审计发现问题整改(非金额类)</string> |
| | |
| | | <item row="0" column="2"> |
| | | <property name="text"> |
| | | <string>0</string> |
| | | </property> |
| | | </item> |
| | | <item row="0" column="4"> |
| | | <property name="text"> |
| | | <string>无</string> |
| | | </property> |
| | | </item> |
| | | <item row="1" column="0"> |
| | |
| | | <string>0</string> |
| | | </property> |
| | | </item> |
| | | <item row="1" column="4"> |
| | | <property name="text"> |
| | | <string>无</string> |
| | | </property> |
| | | </item> |
| | | <item row="2" column="0"> |
| | | <property name="text"> |
| | | <string>修订完善制度</string> |
| | |
| | | <item row="2" column="2"> |
| | | <property name="text"> |
| | | <string>0</string> |
| | | </property> |
| | | </item> |
| | | <item row="2" column="4"> |
| | | <property name="text"> |
| | | <string>无</string> |
| | | </property> |
| | | </item> |
| | | <item row="3" column="0"> |
| | |
| | | <string>0</string> |
| | | </property> |
| | | </item> |
| | | <item row="3" column="4"> |
| | | <property name="text"> |
| | | <string>无</string> |
| | | </property> |
| | | </item> |
| | | <item row="4" column="0"> |
| | | <property name="text"> |
| | | <string>其他</string> |
| | |
| | | <string>0</string> |
| | | </property> |
| | | </item> |
| | | <item row="4" column="4"> |
| | | <property name="text"> |
| | | <string>无</string> |
| | | </property> |
| | | </item> |
| | | </widget> |
| | | </item> |
| | | <item row="2" column="0"> |
| | | <widget class="QPushButton" name="pushButton"> |
| | | <property name="minimumSize"> |
| | | <size> |
| | | <width>0</width> |
| | | <height>50</height> |
| | | </size> |
| | | </property> |
| | | <property name="text"> |
| | | <string>提交--问题整改非金额</string> |
| | | </property> |
| | | </widget> |
| | | </item> |
| | | </layout> |
| | |
| | | #include "problemrectification.h" |
| | | #include "ui_problemrectification.h" |
| | | |
| | | #include <QFileDialog> |
| | | #include <QPushButton> |
| | | #include <QSqlQuery> |
| | | #include <QDebug> |
| | | |
| | | ProblemRectification::ProblemRectification(QWidget *parent) : |
| | | QMainWindow(parent), |
| | | ui(new Ui::ProblemRectification) |
| | | { |
| | | ui->setupUi(this); |
| | | ui->tableWidget->setColumnWidth(0,300); |
| | | m_comId = 1; |
| | | for(int i=0;i<ui->tableWidget->rowCount();++i){ |
| | | QPushButton *btn = new QPushButton("上传",this); |
| | | ui->tableWidget->setCellWidget(i,3,btn); |
| | | connect(btn,&QPushButton::clicked,this,[=]{ |
| | | QStringList files = QFileDialog::getOpenFileNames(); |
| | | QString str; |
| | | for(auto f:files){ |
| | | str += f + " "; |
| | | } |
| | | ui->tableWidget->setItem(i,4,new QTableWidgetItem(str)); |
| | | }); |
| | | } |
| | | } |
| | | |
| | | ProblemRectification::~ProblemRectification() |
| | |
| | | } |
| | | ui->tableWidget->setItem(0,2,new QTableWidgetItem(QString::number(allCnt))); |
| | | } |
| | | |
| | | void ProblemRectification::on_pushButton_clicked() |
| | | { |
| | | // 再统计一把 |
| | | on_tableWidget_clicked(QModelIndex()); |
| | | |
| | | QString values = ""; |
| | | for(int i=0;i<ui->tableWidget->rowCount();++i){ |
| | | values += QString("('%1','%2',%3,'%4',%5),").arg(ui->tableWidget->item(i,0)->text()) |
| | | .arg(ui->tableWidget->item(i,1)->text()).arg(ui->tableWidget->item(i,2)->text().toInt()) |
| | | .arg(ui->tableWidget->item(i,4)->text()) |
| | | .arg(m_comId); |
| | | } |
| | | values = values.left(values.length()-1); |
| | | QString sql = QString("insert into problem_rectification (kpi_name,code,num,evidences,com_id) values %1").arg(values); |
| | | qDebug()<<sql; |
| | | QSqlQuery query; |
| | | if(query.exec(sql)){ |
| | | qDebug()<<"OK sql"<<__FUNCTION__; |
| | | }else{ |
| | | qDebug()<<"fail sql"<<__FUNCTION__; |
| | | } |
| | | } |
| | |
| | | private slots: |
| | | void on_tableWidget_clicked(const QModelIndex &index); |
| | | |
| | | void on_pushButton_clicked(); |
| | | |
| | | private: |
| | | Ui::ProblemRectification *ui; |
| | | int m_comId; |
| | | }; |
| | | |
| | | #endif // PROBLEMRECTIFICATION_H |
| | |
| | | <string>上传佐证资料</string> |
| | | </property> |
| | | </column> |
| | | <column> |
| | | <property name="text"> |
| | | <string>佐证资料</string> |
| | | </property> |
| | | </column> |
| | | <item row="0" column="0"> |
| | | <property name="text"> |
| | | <string>审计发现问题整改(金额类)</string> |
| | |
| | | <item row="0" column="2"> |
| | | <property name="text"> |
| | | <string>0</string> |
| | | </property> |
| | | </item> |
| | | <item row="0" column="4"> |
| | | <property name="text"> |
| | | <string>无</string> |
| | | </property> |
| | | </item> |
| | | <item row="1" column="0"> |
| | |
| | | <string>0</string> |
| | | </property> |
| | | </item> |
| | | <item row="1" column="4"> |
| | | <property name="text"> |
| | | <string>无</string> |
| | | </property> |
| | | </item> |
| | | <item row="2" column="0"> |
| | | <property name="text"> |
| | | <string>收回资金</string> |
| | |
| | | <item row="2" column="2"> |
| | | <property name="text"> |
| | | <string>0</string> |
| | | </property> |
| | | </item> |
| | | <item row="2" column="4"> |
| | | <property name="text"> |
| | | <string>无</string> |
| | | </property> |
| | | </item> |
| | | <item row="3" column="0"> |
| | |
| | | <string>0</string> |
| | | </property> |
| | | </item> |
| | | <item row="3" column="4"> |
| | | <property name="text"> |
| | | <string>无</string> |
| | | </property> |
| | | </item> |
| | | <item row="4" column="0"> |
| | | <property name="text"> |
| | | <string>归还原资金渠道</string> |
| | |
| | | <item row="4" column="2"> |
| | | <property name="text"> |
| | | <string>0</string> |
| | | </property> |
| | | </item> |
| | | <item row="4" column="4"> |
| | | <property name="text"> |
| | | <string>无</string> |
| | | </property> |
| | | </item> |
| | | <item row="5" column="0"> |
| | |
| | | <string>0</string> |
| | | </property> |
| | | </item> |
| | | <item row="5" column="4"> |
| | | <property name="text"> |
| | | <string>无</string> |
| | | </property> |
| | | </item> |
| | | <item row="6" column="0"> |
| | | <property name="text"> |
| | | <string>其他</string> |
| | |
| | | <string>0</string> |
| | | </property> |
| | | </item> |
| | | <item row="6" column="4"> |
| | | <property name="text"> |
| | | <string>无</string> |
| | | </property> |
| | | </item> |
| | | </widget> |
| | | </item> |
| | | <item row="2" column="0"> |
| | | <widget class="QPushButton" name="pushButton"> |
| | | <property name="minimumSize"> |
| | | <size> |
| | | <width>0</width> |
| | | <height>50</height> |
| | | </size> |
| | | </property> |
| | | <property name="text"> |
| | | <string>提交--问题整改</string> |
| | | </property> |
| | | </widget> |
| | | </item> |
| | | </layout> |
| | |
| | | #include "punish.h" |
| | | #include "ui_punish.h" |
| | | |
| | | #include <QSqlQuery> |
| | | #include <QDebug> |
| | | |
| | | Punish::Punish(QWidget *parent) : |
| | | QMainWindow(parent), |
| | | ui(new Ui::Punish) |
| | | { |
| | | ui->setupUi(this); |
| | | ui->tableWidget->setColumnWidth(0,320); |
| | | m_comId = 1; |
| | | } |
| | | |
| | | Punish::~Punish() |
| | |
| | | } |
| | | ui->tableWidget->setItem(0,2,new QTableWidgetItem(QString::number(allCnt))); |
| | | } |
| | | |
| | | void Punish::on_pushButton_clicked() |
| | | { |
| | | // 再统计一把 |
| | | on_tableWidget_clicked(QModelIndex()); |
| | | |
| | | QString values = ""; |
| | | for(int i=0;i<ui->tableWidget->rowCount();++i){ |
| | | values += QString("('%1','%2',%3,%4),").arg(ui->tableWidget->item(i,0)->text()) |
| | | .arg(ui->tableWidget->item(i,1)->text()).arg(ui->tableWidget->item(i,2)->text().toInt()) |
| | | .arg(m_comId); |
| | | } |
| | | values = values.left(values.length()-1); |
| | | QString sql = QString("insert into punish (kpi_name,code,num,com_id) values %1").arg(values); |
| | | qDebug()<<sql; |
| | | QSqlQuery query; |
| | | if(query.exec(sql)){ |
| | | qDebug()<<"OK sql"<<__FUNCTION__; |
| | | }else{ |
| | | qDebug()<<"fail sql"<<__FUNCTION__; |
| | | } |
| | | } |
| | |
| | | private slots: |
| | | void on_tableWidget_clicked(const QModelIndex &index); |
| | | |
| | | void on_pushButton_clicked(); |
| | | |
| | | private: |
| | | Ui::Punish *ui; |
| | | int m_comId; |
| | | }; |
| | | |
| | | #endif // PUNISH_H |
| | |
| | | </item> |
| | | </widget> |
| | | </item> |
| | | <item row="2" column="0"> |
| | | <widget class="QPushButton" name="pushButton"> |
| | | <property name="minimumSize"> |
| | | <size> |
| | | <width>0</width> |
| | | <height>50</height> |
| | | </size> |
| | | </property> |
| | | <property name="text"> |
| | | <string>提交--处分</string> |
| | | </property> |
| | | </widget> |
| | | </item> |
| | | </layout> |
| | | </widget> |
| | | <widget class="QMenuBar" name="menubar"> |
| | |
| | | #include "searchinfo.h" |
| | | #include "ui_searchinfo.h" |
| | | #include <QDebug> |
| | | #include <QSqlError> |
| | | #include <QSqlQuery> |
| | | |
| | | SearchInfo::SearchInfo(QWidget *parent) : |
| | | QMainWindow(parent), |
| | |
| | | m_db.setDatabaseName("sqlData.db"); |
| | | if(m_db.open()){ |
| | | qDebug()<<"db open ok"; |
| | | m_db.close(); |
| | | createSqlite(); |
| | | //m_db.close(); |
| | | }else{ |
| | | qDebug()<<"db open fail"; |
| | | } |
| | |
| | | |
| | | SearchInfo::~SearchInfo() |
| | | { |
| | | m_db.close(); |
| | | delete ui; |
| | | } |
| | | |
| | | void SearchInfo::createSqlite() |
| | | { |
| | | // 建表 |
| | | QString sql = "create table Internal_1 (id int primary key, name varchar(30), _020100 int)"; |
| | | QSqlQuery query; |
| | | if(query.exec(sql)) |
| | | { |
| | | qDebug()<<"create Internal_1 ok..."; |
| | | }else{ |
| | | qDebug()<<"create Internal_1 fail..."<<query.lastError().text(); |
| | | } |
| | | |
| | | sql = "CREATE TABLE file_up_info (\ |
| | | id INTEGER PRIMARY KEY AUTOINCREMENT,\ |
| | | name VARCHAR (30),\ |
| | | code TEXT,\ |
| | | up_time TEXT\ |
| | | )"; |
| | | if(query.exec(sql)) |
| | | { |
| | | qDebug()<<"create file_up_info ok..."; |
| | | }else{ |
| | | qDebug()<<"create file_up_info fail..."<<query.lastError().text(); |
| | | } |
| | | |
| | | sql = "create table company_info (id INTEGER PRIMARY key AUTOINCREMENT, name varchar(30), code varchar(30))"; |
| | | if(query.exec(sql)) |
| | | { |
| | | qDebug()<<"create company_info ok..."; |
| | | }else{ |
| | | qDebug()<<"create company_info fail..."<<query.lastError().text(); |
| | | } |
| | | |
| | | // 审计项目表 |
| | | createTableNoEvidences("audit_project"); |
| | | |
| | | // 内审工作量表 |
| | | createTableNoEvidences("audit_workload"); |
| | | |
| | | // 问题金额表 |
| | | createTableHasEvidences("problem_money"); |
| | | |
| | | // 问题个数表 |
| | | createTableHasEvidences("problem_count"); |
| | | |
| | | // 问题整改表 |
| | | createTableHasEvidences("problem_rectification"); |
| | | |
| | | // 问题整改--非金额表 |
| | | createTableHasEvidences("problem_no_money"); |
| | | |
| | | // 处分表 |
| | | createTableNoEvidences("punish"); |
| | | |
| | | // 案件线索表 |
| | | createTableHasUnit("case_clue"); |
| | | |
| | | } |
| | | |
| | | void SearchInfo::createTableHasEvidences(QString tableName) |
| | | { |
| | | QString sql =QString( "CREATE TABLE %1 ( \ |
| | | id INTEGER PRIMARY KEY AUTOINCREMENT,\ |
| | | kpi_name TEXT,\ |
| | | code TEXT,\ |
| | | num INTEGER,\ |
| | | evidences TEXT,\ |
| | | com_id INTEGER\ |
| | | )").arg(tableName); |
| | | QSqlQuery query; |
| | | if(query.exec(sql)) |
| | | { |
| | | qDebug()<<QString("create %1 ok...").arg(tableName); |
| | | }else{ |
| | | qDebug()<<QString("create %1 fail...").arg(tableName)<<query.lastError().text(); |
| | | } |
| | | } |
| | | |
| | | void SearchInfo::createTableNoEvidences(QString tableName) |
| | | { |
| | | QString sql = QString("CREATE TABLE %1 (\ |
| | | id INTEGER PRIMARY KEY AUTOINCREMENT,\ |
| | | kpi_name TEXT,\ |
| | | code TEXT,\ |
| | | num INTEGER,\ |
| | | com_id INTEGER\ |
| | | )").arg(tableName); |
| | | QSqlQuery query; |
| | | if(query.exec(sql)) |
| | | { |
| | | qDebug()<<QString("create %1 ok...").arg(tableName); |
| | | }else{ |
| | | qDebug()<<QString("create %1 fail...").arg(tableName)<<query.lastError().text(); |
| | | } |
| | | } |
| | | |
| | | void SearchInfo::createTableHasUnit(QString tableName) |
| | | { |
| | | QString sql = QString("CREATE TABLE %1 (\ |
| | | id INTEGER PRIMARY KEY AUTOINCREMENT,\ |
| | | kpi_name TEXT,\ |
| | | code TEXT,\ |
| | | unit TEXT,\ |
| | | num INTEGER,\ |
| | | com_id INTEGER\ |
| | | )").arg(tableName); |
| | | QSqlQuery query; |
| | | if(query.exec(sql)) |
| | | { |
| | | qDebug()<<QString("create %1 ok...").arg(tableName); |
| | | }else{ |
| | | qDebug()<<QString("create %1 fail...").arg(tableName)<<query.lastError().text(); |
| | | } |
| | | } |
| | |
| | | public: |
| | | explicit SearchInfo(QWidget *parent = 0); |
| | | ~SearchInfo(); |
| | | void createSqlite(); |
| | | void createTableHasEvidences(QString tableName); // 有佐证的表 |
| | | void createTableNoEvidences(QString tableName); // 无佐证的表 |
| | | void createTableHasUnit(QString tableName); // 无佐证的表且有计量单位的表 |
| | | |
| | | private: |
| | | Ui::SearchInfo *ui; |
| | |
| | | </item> |
| | | <item> |
| | | <property name="text"> |
| | | <string>内审工作量</string> |
| | | </property> |
| | | </item> |
| | | <item> |
| | | <property name="text"> |
| | | <string>问题金额</string> |
| | | </property> |
| | | </item> |
| | | <item> |
| | | <property name="text"> |
| | | <string>问题个数</string> |
| | | </property> |
| | | </item> |
| | | <item> |
| | | <property name="text"> |
| | | <string>问题整改</string> |
| | | </property> |
| | | </item> |
| | | <item> |
| | | <property name="text"> |
| | | <string>问题整改--非金额</string> |
| | | </property> |
| | | </item> |
| | | <item> |
| | | <property name="text"> |
| | | <string>处分</string> |
| | | </property> |
| | | </item> |
| | | <item> |
| | | <property name="text"> |
| | | <string>案件线索</string> |
| | | </property> |
| | | </item> |
| | | </widget> |
| | |
| | | </item> |
| | | <item> |
| | | <widget class="QDateTimeEdit" name="dateTimeEdit"> |
| | | <property name="dateTime"> |
| | | <datetime> |
| | | <hour>0</hour> |
| | | <minute>0</minute> |
| | | <second>0</second> |
| | | <year>2022</year> |
| | | <month>1</month> |
| | | <day>1</day> |
| | | </datetime> |
| | | </property> |
| | | <property name="calendarPopup"> |
| | | <bool>true</bool> |
| | | </property> |
| | |
| | | </item> |
| | | <item> |
| | | <widget class="QDateTimeEdit" name="dateTimeEdit_2"> |
| | | <property name="dateTime"> |
| | | <datetime> |
| | | <hour>0</hour> |
| | | <minute>0</minute> |
| | | <second>0</second> |
| | | <year>2023</year> |
| | | <month>1</month> |
| | | <day>1</day> |
| | | </datetime> |
| | | </property> |
| | | <property name="calendarPopup"> |
| | | <bool>true</bool> |
| | | </property> |
New file |
| | |
| | | -- |
| | | -- SQLiteStudio v3.4.3 生成的文件,周五 8月 25 15:43:41 2023 |
| | | -- |
| | | -- 所用的文本编码:System |
| | | -- |
| | | PRAGMA foreign_keys = off; |
| | | BEGIN TRANSACTION; |
| | | |
| | | -- 表:file_up_info |
| | | CREATE TABLE IF NOT EXISTS file_up_info (id int PRIMARY KEY, name varchar (30), code int, up_time TEXT); |
| | | |
| | | -- 表:Internal_1 |
| | | CREATE TABLE IF NOT EXISTS Internal_1 (id int PRIMARY KEY, name varchar (30), _020100 int, _020101 int, _020102 int, _020103 int, _020104 int, _020105 int, _020106 int, _020107 int, _020108 int, _020111 int, _020200 int, _020700 int, _020701 int, _020702 int, _020703 int, _020800 int, _020801 int); |
| | | |
| | | COMMIT TRANSACTION; |
| | | PRAGMA foreign_keys = on; |