。。。
This commit is contained in:
parent
e0f80ea9f4
commit
1667755910
|
@ -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 );
|
||||||
|
|
Loading…
Reference in New Issue