| | |
| | | #include <QSqlRecord> |
| | | |
| | | extern int g_comId; |
| | | extern QString g_dataRootPath; |
| | | QString g_auditDate; |
| | | |
| | | ClientMainWindow::ClientMainWindow(QWidget *parent) : |
| | |
| | | #include <QSqlRecord> |
| | | |
| | | int g_comId = 0; // å
¨å±åéï¼ä¿ååä½id |
| | | QString g_dataRootPath; // æ°æ®çæ ¹ç®å½ |
| | | |
| | | CoverInfo::CoverInfo(QWidget *parent) : |
| | | QMainWindow(parent), |
| | |
| | | if(dirRe.exists()){ |
| | | dirPath = dirPathRelease; |
| | | } |
| | | g_dataRootPath = dirPath; // å°æ ¹ç®å½ä¿åèµ·æ¥ |
| | | QStringList list; |
| | | QDirIterator it(dirPath, {"*.xls","*.xlsx"}, QDir::Files | QDir::NoSymLinks | QDir::NoDotAndDotDot, QDirIterator::Subdirectories); |
| | | while(it.hasNext()) |
| | |
| | | #include "ui_problemcount.h" |
| | | #include <QDebug> |
| | | #include <QFileDialog> |
| | | #include <QProcess> |
| | | #include <QPushButton> |
| | | #include <QSqlQuery> |
| | | |
| | | extern int g_comId; |
| | | extern QString g_auditDate; |
| | | extern QString g_dataRootPath; |
| | | |
| | | ProblemCount::ProblemCount(QWidget *parent) : |
| | | QMainWindow(parent), |
| | |
| | | QStringList files = QFileDialog::getOpenFileNames(); |
| | | QString str; |
| | | for(auto f:files){ |
| | | str += f + " "; |
| | | copyFile(f); |
| | | QString targetPath = g_dataRootPath + QString("/%1/%2").arg(g_comId).arg(f.split("/").back()); |
| | | str += targetPath + " "; |
| | | } |
| | | ui->tableWidget->setItem(i,4,new QTableWidgetItem(str)); |
| | | }); |
| | | |
| | | // æ¥çä½è¯ |
| | | QPushButton *lookBtn = new QPushButton("æ¥ç",this); |
| | | ui->tableWidget->setCellWidget(i,5,lookBtn); |
| | | connect(lookBtn,&QPushButton::clicked,this,[=]{ |
| | | QStringList files = ui->tableWidget->item(i,4)->text().split(" "); |
| | | if(files.size() > 0 ){ |
| | | QString f = files.at(0); |
| | | qDebug()<<"f:"<<f; |
| | | if(f.size() > 10){ |
| | | f.replace("/", "\\"); //win32䏿¿æ¢ææ |
| | | QProcess process; |
| | | process.startDetached("explorer", QStringList() << QString("/select,") << QString("%1").arg(f)); |
| | | } |
| | | } |
| | | }); |
| | | } |
| | | } |
| | |
| | | delete ui; |
| | | } |
| | | |
| | | void ProblemCount::copyFile(QString path) |
| | | { |
| | | QStringList paths = path.split("/"); |
| | | QString comPath = g_dataRootPath + QString("/%1").arg(g_comId); |
| | | QDir comDir(comPath); |
| | | if(!comDir.exists()){ |
| | | // åå»ºè·¯å¾ |
| | | if(QDir().mkdir(comPath)){ |
| | | qDebug()<<"å建ç®å½æå:"<<comPath; |
| | | } |
| | | } |
| | | QString targetPath = g_dataRootPath + QString("/%1/%2").arg(g_comId).arg(paths.back()); |
| | | qDebug()<<"targetPath"<<targetPath; |
| | | if(QFile::copy(path,targetPath)){ |
| | | qDebug()<<"æåæ·è´:"<<path; |
| | | }else{ |
| | | qDebug()<<"æ·è´å¤±è´¥"<<path; |
| | | } |
| | | } |
| | | void ProblemCount::on_tableWidget_clicked(const QModelIndex &index) |
| | | { |
| | | qDebug()<<"index"<<index; |
| | |
| | | explicit ProblemCount(QWidget *parent = 0); |
| | | ~ProblemCount(); |
| | | |
| | | void copyFile(QString path); |
| | | private slots: |
| | | void on_tableWidget_clicked(const QModelIndex &index); |
| | | |
| | |
| | | <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="4"> |
| | | <property name="text"> |
| | | <string>æ </string> |
| | | </property> |
| | | </item> |
| | | <item row="0" column="5"> |
| | | <property name="text"> |
| | | <string>0</string> |
| | | </property> |
| | | </item> |
| | | <item row="1" column="0"> |
| | |
| | | <string>æ </string> |
| | | </property> |
| | | </item> |
| | | <item row="1" column="5"> |
| | | <property name="text"> |
| | | <string>0</string> |
| | | </property> |
| | | </item> |
| | | <item row="2" column="0"> |
| | | <property name="text"> |
| | | <string>ééé¢ç±»é®é¢ä¸ªæ°</string> |
| | |
| | | <item row="2" column="4"> |
| | | <property name="text"> |
| | | <string>æ </string> |
| | | </property> |
| | | </item> |
| | | <item row="2" column="5"> |
| | | <property name="text"> |
| | | <string>0</string> |
| | | </property> |
| | | </item> |
| | | <item row="3" column="0"> |
| | |
| | | <string>æ </string> |
| | | </property> |
| | | </item> |
| | | <item row="3" column="5"> |
| | | <property name="text"> |
| | | <string>0</string> |
| | | </property> |
| | | </item> |
| | | <item row="4" column="0"> |
| | | <property name="text"> |
| | | <string>åå±è§å䏿ç¥å³çæ¹é¢</string> |
| | |
| | | <item row="4" column="4"> |
| | | <property name="text"> |
| | | <string>æ </string> |
| | | </property> |
| | | </item> |
| | | <item row="4" column="5"> |
| | | <property name="text"> |
| | | <string>0</string> |
| | | </property> |
| | | </item> |
| | | <item row="5" column="0"> |
| | |
| | | <string>æ </string> |
| | | </property> |
| | | </item> |
| | | <item row="5" column="5"> |
| | | <property name="text"> |
| | | <string>0</string> |
| | | </property> |
| | | </item> |
| | | <item row="6" column="0"> |
| | | <property name="text"> |
| | | <string>å
¶ä»</string> |
| | |
| | | <string>æ </string> |
| | | </property> |
| | | </item> |
| | | <item row="6" column="5"> |
| | | <property name="text"> |
| | | <string>0</string> |
| | | </property> |
| | | </item> |
| | | </widget> |
| | | </item> |
| | | <item row="2" column="0"> |
| | |
| | | #include <QPushButton> |
| | | #include <QDebug> |
| | | #include <QSqlQuery> |
| | | #include <QFile> |
| | | #include <QProcess> |
| | | |
| | | extern int g_comId; |
| | | extern QString g_auditDate; |
| | | extern QString g_dataRootPath; |
| | | |
| | | ProblemMoney::ProblemMoney(QWidget *parent) : |
| | | QMainWindow(parent), |
| | |
| | | QStringList files = QFileDialog::getOpenFileNames(); |
| | | QString str; |
| | | for(auto f:files){ |
| | | str += f + " "; |
| | | copyFile(f); |
| | | QString targetPath = g_dataRootPath + QString("/%1/%2").arg(g_comId).arg(f.split("/").back()); |
| | | str += targetPath + " "; |
| | | } |
| | | ui->tableWidget->setItem(i,4,new QTableWidgetItem(str)); |
| | | }); |
| | | |
| | | // æ¥çä½è¯ |
| | | QPushButton *lookBtn = new QPushButton("æ¥ç",this); |
| | | ui->tableWidget->setCellWidget(i,5,lookBtn); |
| | | connect(lookBtn,&QPushButton::clicked,this,[=]{ |
| | | QStringList files = ui->tableWidget->item(i,4)->text().split(" "); |
| | | if(files.size() > 0 ){ |
| | | QString f = files.at(0); |
| | | qDebug()<<"f:"<<f; |
| | | if(f.size() > 10){ |
| | | f.replace("/", "\\"); //win32䏿¿æ¢ææ |
| | | QProcess process; |
| | | process.startDetached("explorer", QStringList() << QString("/select,") << QString("%1").arg(f)); |
| | | } |
| | | } |
| | | }); |
| | | } |
| | | } |
| | |
| | | ProblemMoney::~ProblemMoney() |
| | | { |
| | | delete ui; |
| | | } |
| | | |
| | | void ProblemMoney::copyFile(QString path) |
| | | { |
| | | QStringList paths = path.split("/"); |
| | | QString comPath = g_dataRootPath + QString("/%1").arg(g_comId); |
| | | QDir comDir(comPath); |
| | | if(!comDir.exists()){ |
| | | // åå»ºè·¯å¾ |
| | | if(QDir().mkdir(comPath)){ |
| | | qDebug()<<"å建ç®å½æå:"<<comPath; |
| | | } |
| | | } |
| | | QString targetPath = g_dataRootPath + QString("/%1/%2").arg(g_comId).arg(paths.back()); |
| | | qDebug()<<"targetPath"<<targetPath; |
| | | if(QFile::copy(path,targetPath)){ |
| | | qDebug()<<"æåæ·è´:"<<path; |
| | | }else{ |
| | | qDebug()<<"æ·è´å¤±è´¥"<<path; |
| | | } |
| | | } |
| | | |
| | | void ProblemMoney::on_pushButton_clicked() |
| | |
| | | } |
| | | // ç»è®¡ |
| | | on_tableWidget_activated(QModelIndex()); |
| | | qDebug()<<"g_dataRootPath"<<g_dataRootPath; |
| | | |
| | | } |
| | | |
| | | void ProblemMoney::on_tableWidget_activated(const QModelIndex &index) |
| | |
| | | explicit ProblemMoney(QWidget *parent = 0); |
| | | ~ProblemMoney(); |
| | | |
| | | void copyFile(QString path); |
| | | private slots: |
| | | void on_pushButton_clicked(); |
| | | |
| | |
| | | <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="4"> |
| | | <property name="text"> |
| | | <string>æ </string> |
| | | </property> |
| | | </item> |
| | | <item row="0" column="5"> |
| | | <property name="text"> |
| | | <string>0</string> |
| | | </property> |
| | | </item> |
| | | <item row="1" column="0"> |
| | |
| | | <string>æ </string> |
| | | </property> |
| | | </item> |
| | | <item row="1" column="5"> |
| | | <property name="text"> |
| | | <string>0</string> |
| | | </property> |
| | | </item> |
| | | <item row="2" column="0"> |
| | | <property name="text"> |
| | | <string>åè§æ§é®é¢éé¢</string> |
| | |
| | | <item row="2" column="4"> |
| | | <property name="text"> |
| | | <string>æ </string> |
| | | </property> |
| | | </item> |
| | | <item row="2" column="5"> |
| | | <property name="text"> |
| | | <string>0</string> |
| | | </property> |
| | | </item> |
| | | <item row="3" column="0"> |
| | |
| | | <string>æ </string> |
| | | </property> |
| | | </item> |
| | | <item row="3" column="5"> |
| | | <property name="text"> |
| | | <string>0</string> |
| | | </property> |
| | | </item> |
| | | <item row="4" column="0"> |
| | | <property name="text"> |
| | | <string>è¿è§ä½¿ç¨èµé</string> |
| | |
| | | <item row="4" column="4"> |
| | | <property name="text"> |
| | | <string>æ </string> |
| | | </property> |
| | | </item> |
| | | <item row="4" column="5"> |
| | | <property name="text"> |
| | | <string>0</string> |
| | | </property> |
| | | </item> |
| | | <item row="5" column="0"> |
| | |
| | | <string>æ </string> |
| | | </property> |
| | | </item> |
| | | <item row="5" column="5"> |
| | | <property name="text"> |
| | | <string>0</string> |
| | | </property> |
| | | </item> |
| | | <item row="6" column="0"> |
| | | <property name="text"> |
| | | <string>æå¤±æµªè´¹</string> |
| | |
| | | <item row="6" column="4"> |
| | | <property name="text"> |
| | | <string>æ </string> |
| | | </property> |
| | | </item> |
| | | <item row="6" column="5"> |
| | | <property name="text"> |
| | | <string>0</string> |
| | | </property> |
| | | </item> |
| | | <item row="7" column="0"> |
| | |
| | | <string>æ </string> |
| | | </property> |
| | | </item> |
| | | <item row="7" column="5"> |
| | | <property name="text"> |
| | | <string>0</string> |
| | | </property> |
| | | </item> |
| | | <item row="8" column="0"> |
| | | <property name="text"> |
| | | <string>å·æ¼ç¨è´¹</string> |
| | |
| | | <item row="8" column="4"> |
| | | <property name="text"> |
| | | <string>æ </string> |
| | | </property> |
| | | </item> |
| | | <item row="8" column="5"> |
| | | <property name="text"> |
| | | <string>0</string> |
| | | </property> |
| | | </item> |
| | | <item row="9" column="0"> |
| | |
| | | <string>æ </string> |
| | | </property> |
| | | </item> |
| | | <item row="9" column="5"> |
| | | <property name="text"> |
| | | <string>0</string> |
| | | </property> |
| | | </item> |
| | | <item row="10" column="0"> |
| | | <property name="text"> |
| | | <string>å
¶ä»</string> |
| | |
| | | <string>æ </string> |
| | | </property> |
| | | </item> |
| | | <item row="10" column="5"> |
| | | <property name="text"> |
| | | <string>0</string> |
| | | </property> |
| | | </item> |
| | | </widget> |
| | | </item> |
| | | <item row="0" column="0"> |
| | |
| | | #include <QPushButton> |
| | | #include <QSqlQuery> |
| | | #include <QDebug> |
| | | #include <QProcess> |
| | | |
| | | extern int g_comId; |
| | | extern QString g_auditDate; |
| | | extern QString g_dataRootPath; |
| | | |
| | | ProblemNotMoney::ProblemNotMoney(QWidget *parent) : |
| | | QMainWindow(parent), |
| | |
| | | QStringList files = QFileDialog::getOpenFileNames(); |
| | | QString str; |
| | | for(auto f:files){ |
| | | str += f + " "; |
| | | copyFile(f); |
| | | QString targetPath = g_dataRootPath + QString("/%1/%2").arg(g_comId).arg(f.split("/").back()); |
| | | str += targetPath + " "; |
| | | } |
| | | ui->tableWidget->setItem(i,4,new QTableWidgetItem(str)); |
| | | }); |
| | | |
| | | // æ¥çä½è¯ |
| | | QPushButton *lookBtn = new QPushButton("æ¥ç",this); |
| | | ui->tableWidget->setCellWidget(i,5,lookBtn); |
| | | connect(lookBtn,&QPushButton::clicked,this,[=]{ |
| | | QStringList files = ui->tableWidget->item(i,4)->text().split(" "); |
| | | if(files.size() > 0 ){ |
| | | QString f = files.at(0); |
| | | qDebug()<<"f:"<<f; |
| | | if(f.size() > 10){ |
| | | f.replace("/", "\\"); //win32䏿¿æ¢ææ |
| | | QProcess process; |
| | | process.startDetached("explorer", QStringList() << QString("/select,") << QString("%1").arg(f)); |
| | | } |
| | | } |
| | | }); |
| | | } |
| | | } |
| | |
| | | delete ui; |
| | | } |
| | | |
| | | void ProblemNotMoney::copyFile(QString path) |
| | | { |
| | | QStringList paths = path.split("/"); |
| | | QString comPath = g_dataRootPath + QString("/%1").arg(g_comId); |
| | | QDir comDir(comPath); |
| | | if(!comDir.exists()){ |
| | | // åå»ºè·¯å¾ |
| | | if(QDir().mkdir(comPath)){ |
| | | qDebug()<<"å建ç®å½æå:"<<comPath; |
| | | } |
| | | } |
| | | QString targetPath = g_dataRootPath + QString("/%1/%2").arg(g_comId).arg(paths.back()); |
| | | qDebug()<<"targetPath"<<targetPath; |
| | | if(QFile::copy(path,targetPath)){ |
| | | qDebug()<<"æåæ·è´:"<<path; |
| | | }else{ |
| | | qDebug()<<"æ·è´å¤±è´¥"<<path; |
| | | } |
| | | } |
| | | |
| | | void ProblemNotMoney::on_tableWidget_clicked(const QModelIndex &index) |
| | | { |
| | | int allCnt = 0; |
| | |
| | | explicit ProblemNotMoney(QWidget *parent = 0); |
| | | ~ProblemNotMoney(); |
| | | |
| | | void copyFile(QString path); |
| | | private slots: |
| | | void on_tableWidget_clicked(const QModelIndex &index); |
| | | |
| | |
| | | <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="4"> |
| | | <property name="text"> |
| | | <string>æ </string> |
| | | </property> |
| | | </item> |
| | | <item row="0" column="5"> |
| | | <property name="text"> |
| | | <string>0</string> |
| | | </property> |
| | | </item> |
| | | <item row="1" column="0"> |
| | |
| | | <string>æ </string> |
| | | </property> |
| | | </item> |
| | | <item row="1" column="5"> |
| | | <property name="text"> |
| | | <string>0</string> |
| | | </property> |
| | | </item> |
| | | <item row="2" column="0"> |
| | | <property name="text"> |
| | | <string>修订å®åå¶åº¦</string> |
| | |
| | | <item row="2" column="4"> |
| | | <property name="text"> |
| | | <string>æ </string> |
| | | </property> |
| | | </item> |
| | | <item row="2" column="5"> |
| | | <property name="text"> |
| | | <string>0</string> |
| | | </property> |
| | | </item> |
| | | <item row="3" column="0"> |
| | |
| | | <string>æ </string> |
| | | </property> |
| | | </item> |
| | | <item row="3" column="5"> |
| | | <property name="text"> |
| | | <string>0</string> |
| | | </property> |
| | | </item> |
| | | <item row="4" column="0"> |
| | | <property name="text"> |
| | | <string>å
¶ä»</string> |
| | |
| | | <string>æ </string> |
| | | </property> |
| | | </item> |
| | | <item row="4" column="5"> |
| | | <property name="text"> |
| | | <string>0</string> |
| | | </property> |
| | | </item> |
| | | </widget> |
| | | </item> |
| | | <item row="2" column="0"> |
| | |
| | | #include <QPushButton> |
| | | #include <QSqlQuery> |
| | | #include <QDebug> |
| | | #include <QProcess> |
| | | |
| | | extern int g_comId; |
| | | extern QString g_auditDate; |
| | | extern QString g_dataRootPath; |
| | | |
| | | ProblemRectification::ProblemRectification(QWidget *parent) : |
| | | QMainWindow(parent), |
| | |
| | | QStringList files = QFileDialog::getOpenFileNames(); |
| | | QString str; |
| | | for(auto f:files){ |
| | | str += f + " "; |
| | | copyFile(f); |
| | | QString targetPath = g_dataRootPath + QString("/%1/%2").arg(g_comId).arg(f.split("/").back()); |
| | | str += targetPath + " "; |
| | | } |
| | | ui->tableWidget->setItem(i,4,new QTableWidgetItem(str)); |
| | | }); |
| | | |
| | | // æ¥çä½è¯ |
| | | QPushButton *lookBtn = new QPushButton("æ¥ç",this); |
| | | ui->tableWidget->setCellWidget(i,5,lookBtn); |
| | | connect(lookBtn,&QPushButton::clicked,this,[=]{ |
| | | QStringList files = ui->tableWidget->item(i,4)->text().split(" "); |
| | | if(files.size() > 0 ){ |
| | | QString f = files.at(0); |
| | | qDebug()<<"f:"<<f; |
| | | if(f.size() > 10){ |
| | | f.replace("/", "\\"); //win32䏿¿æ¢ææ |
| | | QProcess process; |
| | | process.startDetached("explorer", QStringList() << QString("/select,") << QString("%1").arg(f)); |
| | | } |
| | | } |
| | | }); |
| | | } |
| | | } |
| | |
| | | delete ui; |
| | | } |
| | | |
| | | void ProblemRectification::copyFile(QString path) |
| | | { |
| | | QStringList paths = path.split("/"); |
| | | QString comPath = g_dataRootPath + QString("/%1").arg(g_comId); |
| | | QDir comDir(comPath); |
| | | if(!comDir.exists()){ |
| | | // åå»ºè·¯å¾ |
| | | if(QDir().mkdir(comPath)){ |
| | | qDebug()<<"å建ç®å½æå:"<<comPath; |
| | | } |
| | | } |
| | | QString targetPath = g_dataRootPath + QString("/%1/%2").arg(g_comId).arg(paths.back()); |
| | | qDebug()<<"targetPath"<<targetPath; |
| | | if(QFile::copy(path,targetPath)){ |
| | | qDebug()<<"æåæ·è´:"<<path; |
| | | }else{ |
| | | qDebug()<<"æ·è´å¤±è´¥"<<path; |
| | | } |
| | | } |
| | | |
| | | void ProblemRectification::on_tableWidget_clicked(const QModelIndex &index) |
| | | { |
| | | double allCnt = 0; |
| | |
| | | explicit ProblemRectification(QWidget *parent = 0); |
| | | ~ProblemRectification(); |
| | | |
| | | void copyFile(QString path); |
| | | private slots: |
| | | void on_tableWidget_clicked(const QModelIndex &index); |
| | | |
| | |
| | | <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="4"> |
| | | <property name="text"> |
| | | <string>æ </string> |
| | | </property> |
| | | </item> |
| | | <item row="0" column="5"> |
| | | <property name="text"> |
| | | <string>0</string> |
| | | </property> |
| | | </item> |
| | | <item row="1" column="0"> |
| | |
| | | <string>æ </string> |
| | | </property> |
| | | </item> |
| | | <item row="1" column="5"> |
| | | <property name="text"> |
| | | <string>0</string> |
| | | </property> |
| | | </item> |
| | | <item row="2" column="0"> |
| | | <property name="text"> |
| | | <string>æ¶åèµé</string> |
| | |
| | | <item row="2" column="4"> |
| | | <property name="text"> |
| | | <string>æ </string> |
| | | </property> |
| | | </item> |
| | | <item row="2" column="5"> |
| | | <property name="text"> |
| | | <string>0</string> |
| | | </property> |
| | | </item> |
| | | <item row="3" column="0"> |
| | |
| | | <string>æ </string> |
| | | </property> |
| | | </item> |
| | | <item row="3" column="5"> |
| | | <property name="text"> |
| | | <string>0</string> |
| | | </property> |
| | | </item> |
| | | <item row="4" column="0"> |
| | | <property name="text"> |
| | | <string>å½è¿åèµéæ¸ é</string> |
| | |
| | | <item row="4" column="4"> |
| | | <property name="text"> |
| | | <string>æ </string> |
| | | </property> |
| | | </item> |
| | | <item row="4" column="5"> |
| | | <property name="text"> |
| | | <string>0</string> |
| | | </property> |
| | | </item> |
| | | <item row="5" column="0"> |
| | |
| | | <string>æ </string> |
| | | </property> |
| | | </item> |
| | | <item row="5" column="5"> |
| | | <property name="text"> |
| | | <string>0</string> |
| | | </property> |
| | | </item> |
| | | <item row="6" column="0"> |
| | | <property name="text"> |
| | | <string>å
¶ä»</string> |
| | |
| | | <string>æ </string> |
| | | </property> |
| | | </item> |
| | | <item row="6" column="5"> |
| | | <property name="text"> |
| | | <string>0</string> |
| | | </property> |
| | | </item> |
| | | </widget> |
| | | </item> |
| | | <item row="2" column="0"> |
| | |
| | | QString item = ui->comboBox->currentText(); |
| | | QString comName = ui->comboBox_company->currentText(); |
| | | QString sql = QString("select * from %1 where com_id=%2").arg(m_itemAndTable[item]).arg(m_comInfo[comName]); |
| | | if(ui->checkBox->isChecked()){ // å¾éä¹å |
| | | sql = QString("select * from %1 where com_id=%2 and time between '%3' and '%4'").arg(m_itemAndTable[item]).arg(m_comInfo[comName]) |
| | | .arg(ui->dateEdit_begin->date().toString("yyyy-MM-dd")) |
| | | .arg(ui->dateEdit_end->date().toString("yyyy-MM-dd")); |
| | | } |
| | | qDebug()<<__FUNCTION__<<sql; |
| | | QSqlQuery query; |
| | | if(query.exec(sql)){ |