| | |
| | | #include "clientmainwindow.h" |
| | | #include "ui_clientmainwindow.h" |
| | | #include <QDebug> |
| | | |
| | | ClientMainWindow::ClientMainWindow(QWidget *parent) : |
| | | QMainWindow(parent), |
| | | ui(new Ui::ClientMainWindow) |
| | | { |
| | | ui->setupUi(this); |
| | | |
| | | initUi(); |
| | | } |
| | | |
| | | ClientMainWindow::~ClientMainWindow() |
| | | { |
| | | delete ui; |
| | | } |
| | | |
| | | void ClientMainWindow::initUi() |
| | | { |
| | | m_auditPro = new AuditProject(this); |
| | | m_auditworkload = new AuditWorkload(this); |
| | | m_problemMon = new ProblemMoney(this); |
| | | m_problemCnt = new ProblemCount(this); |
| | | m_probleRect = new ProblemRectification(this); |
| | | m_problemNotMon = new ProblemNotMoney(this); |
| | | m_punish = new Punish(this); |
| | | m_caseClue = new CaseClue(this); |
| | | |
| | | ui->stackedWidget->addWidget(m_auditPro); |
| | | ui->stackedWidget->addWidget(m_auditworkload); |
| | | ui->stackedWidget->addWidget(m_problemMon); |
| | | ui->stackedWidget->addWidget(m_problemCnt); |
| | | ui->stackedWidget->addWidget(m_probleRect); |
| | | ui->stackedWidget->addWidget(m_problemNotMon); |
| | | ui->stackedWidget->addWidget(m_punish); |
| | | ui->stackedWidget->addWidget(m_caseClue); |
| | | |
| | | ui->stackedWidget->setCurrentIndex(0); |
| | | } |
| | | |
| | | void ClientMainWindow::on_pushButton_auditPro_clicked() |
| | | { |
| | | ui->stackedWidget->setCurrentIndex(0); |
| | | } |
| | | |
| | | void ClientMainWindow::on_pushButton_auditWorkload_clicked() |
| | | { |
| | | ui->stackedWidget->setCurrentIndex(1); |
| | | } |
| | | |
| | | void ClientMainWindow::on_pushButton_problemMoney_clicked() |
| | | { |
| | | ui->stackedWidget->setCurrentIndex(2); |
| | | } |
| | | |
| | | void ClientMainWindow::on_pushButton_problemCount_clicked() |
| | | { |
| | | ui->stackedWidget->setCurrentIndex(3); |
| | | } |
| | | |
| | | void ClientMainWindow::on_pushButton_problemRectification_clicked() |
| | | { |
| | | ui->stackedWidget->setCurrentIndex(4); |
| | | } |
| | | |
| | | void ClientMainWindow::on_pushButton_problemNotMoney_clicked() |
| | | { |
| | | ui->stackedWidget->setCurrentIndex(5); |
| | | } |
| | | |
| | | void ClientMainWindow::on_pushButton_punish_clicked() |
| | | { |
| | | ui->stackedWidget->setCurrentIndex(6); |
| | | } |
| | | |
| | | void ClientMainWindow::on_pushButton_caseClue_clicked() |
| | | { |
| | | ui->stackedWidget->setCurrentIndex(7); |
| | | } |
| | | |
| | | void ClientMainWindow::on_pushButton_clicked() |
| | | { |
| | | QXlsx::Document doc; |
| | | doc.write(1,2,"mayibase"); |
| | | doc.write(2,2,"is good"); |
| | | doc.write("A1","码蚁软件"); |
| | | doc.mergeCells("A1:A4"); |
| | | doc.mergeCells("B1:C1"); |
| | | if(doc.saveAs("test.xlsx")) |
| | | { |
| | | qDebug()<<"save is ok"; |
| | | }else{ |
| | | qDebug()<<"save is fail"; |
| | | } |
| | | |
| | | } |