| | |
| | | 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); |
| | | } |