。。。

This commit is contained in:
Kane Wang 2020-12-08 07:07:48 +08:00
parent e0f80ea9f4
commit 1667755910
1 changed files with 121 additions and 1 deletions

View File

@ -1,8 +1,9 @@
#include <QFileDialog> #include <QFileDialog>
#include <stdexcept> #include <stdexcept>
#include "QNewRepairMonitorWidget.h"
#include <QMessageBox> #include <QMessageBox>
#include <QtWidgets/QtWidgets>
#include "QNewRepairMonitorWidget.h"
#include "../../Data/DataManipulation/Excel/LoadFromExcel.h" #include "../../Data/DataManipulation/Excel/LoadFromExcel.h"
#include "../../Data/DataManipulation/oracle/ImportToOracle.h" #include "../../Data/DataManipulation/oracle/ImportToOracle.h"
#include "../../util/qt/qt_util.h" #include "../../util/qt/qt_util.h"
@ -124,6 +125,125 @@ void QNewRepairMonitorWidget::showNewRepairMonitorRecords()
pItem->setTextAlignment( Qt::AlignCenter ); pItem->setTextAlignment( Qt::AlignCenter );
ui.pTableWidgeRepairOrder->setItem( rowIndex, columnIndex++, pItem ); ui.pTableWidgeRepairOrder->setItem( rowIndex, columnIndex++, pItem );
//
pItem = new QTableWidgetItem();
pItem->setText(QString::fromStdWString(iterRecord->_));
pItem->setTextAlignment(Qt::AlignCenter);
ui.pTableWidgeRepairOrder->setItem(rowIndex, columnIndex++, pItem);
//报案日期
pItem = new QTableWidgetItem();
pItem->setText(QString::fromStdWString(iterRecord->_));
pItem->setTextAlignment(Qt::AlignCenter);
ui.pTableWidgeRepairOrder->setItem(rowIndex, columnIndex++, pItem);
//出险日期
pItem = new QTableWidgetItem();
pItem->setText(QString::fromStdWString(iterRecord->_));
pItem->setTextAlignment(Qt::AlignCenter);
ui.pTableWidgeRepairOrder->setItem(rowIndex, columnIndex++, pItem);
//出险地点
pItem = new QTableWidgetItem();
pItem->setText(QString::fromStdWString(iterRecord->_));
pItem->setTextAlignment(Qt::AlignCenter);
ui.pTableWidgeRepairOrder->setItem(rowIndex, columnIndex++, pItem);
//事故车目前位置
pItem = new QTableWidgetItem();
pItem->setText(QString::fromStdWString(iterRecord->_));
pItem->setTextAlignment(Qt::AlignCenter);
ui.pTableWidgeRepairOrder->setItem(rowIndex, columnIndex++, pItem);
//车损序号
pItem = new QTableWidgetItem();
pItem->setText(QString::fromStdWString(iterRecord->_));
pItem->setTextAlignment(Qt::AlignCenter);
ui.pTableWidgeRepairOrder->setItem(rowIndex, columnIndex++, pItem);
//车牌号
pItem = new QTableWidgetItem();
pItem->setText(QString::fromStdWString(iterRecord->_));
pItem->setTextAlignment(Qt::AlignCenter);
ui.pTableWidgeRepairOrder->setItem(rowIndex, columnIndex++, pItem);
//vin
pItem = new QTableWidgetItem();
pItem->setText(QString::fromStdWString(iterRecord->vin码_));
pItem->setTextAlignment(Qt::AlignCenter);
ui.pTableWidgeRepairOrder->setItem(rowIndex, columnIndex++, pItem);
//品牌名称
pItem = new QTableWidgetItem();
pItem->setText(QString::fromStdWString(iterRecord->));
pItem->setTextAlignment(Qt::AlignCenter);
ui.pTableWidgeRepairOrder->setItem(rowIndex, columnIndex++, pItem);
//保单号
pItem = new QTableWidgetItem();
pItem->setText(QString::fromStdWString(iterRecord->));
pItem->setTextAlignment(Qt::AlignCenter);
ui.pTableWidgeRepairOrder->setItem(rowIndex, columnIndex++, pItem);
//标的车、三者车
pItem = new QTableWidgetItem();
pItem->setText(QString::fromStdWString(iterRecord->));
pItem->setTextAlignment(Qt::AlignCenter);
ui.pTableWidgeRepairOrder->setItem(rowIndex, columnIndex++, pItem);
//核价金额
pItem = new QTableWidgetItem();
pItem->setText(QString::fromStdWString(iterRecord->));
pItem->setTextAlignment(Qt::AlignCenter);
ui.pTableWidgeRepairOrder->setItem(rowIndex, columnIndex++, pItem);
//结案金额
pItem = new QTableWidgetItem();
pItem->setText(QString::fromStdWString(iterRecord->));
pItem->setTextAlignment(Qt::AlignCenter);
ui.pTableWidgeRepairOrder->setItem(rowIndex, columnIndex++, pItem);
//接报案人分公司
pItem = new QTableWidgetItem();
pItem->setText(QString::fromStdWString(iterRecord->));
pItem->setTextAlignment(Qt::AlignCenter);
ui.pTableWidgeRepairOrder->setItem(rowIndex, columnIndex++, pItem);
//接报案人工号
pItem = new QTableWidgetItem();
pItem->setText(QString::fromStdWString(iterRecord->));
pItem->setTextAlignment(Qt::AlignCenter);
ui.pTableWidgeRepairOrder->setItem(rowIndex, columnIndex++, pItem);
//接报案人
pItem = new QTableWidgetItem();
pItem->setText(QString::fromStdWString(iterRecord->));
pItem->setTextAlignment(Qt::AlignCenter);
ui.pTableWidgeRepairOrder->setItem(rowIndex, columnIndex++, pItem);
//查勘员
pItem = new QTableWidgetItem();
pItem->setText(QString::fromStdWString(iterRecord->));
pItem->setTextAlignment(Qt::AlignCenter);
ui.pTableWidgeRepairOrder->setItem(rowIndex, columnIndex++, pItem);
} }
resizeTableWidgetTab( ui.pTableWidgeRepairOrder, 10 ); resizeTableWidgetTab( ui.pTableWidgeRepairOrder, 10 );