This commit is contained in:
Kane Wang 2020-05-12 16:51:41 +08:00
commit 2d3e5a8e69
16 changed files with 474 additions and 32 deletions

View File

@ -32,6 +32,7 @@
<ClCompile Include="..\..\..\source\main.cpp" />
<ClCompile Include="..\..\..\source\system\system_util.cpp" />
<ClCompile Include="..\..\..\source\test\test.cpp" />
<ClCompile Include="..\..\..\source\widgets\ContentWidget\QDataManagementWidget\QDataManagementWidget.cpp" />
<ClCompile Include="..\..\..\source\widgets\LoginWidget\QLoginDialog.cpp" />
<ClCompile Include="..\..\..\source\Widgets\MainFrame\QMainFrame.cpp" />
</ItemGroup>
@ -39,6 +40,7 @@
<QtRcc Include="..\..\..\source\resource.qrc" />
</ItemGroup>
<ItemGroup>
<QtUic Include="..\..\..\source\widgets\ContentWidget\QDataManagementWidget\QDataManagementWidget.ui" />
<QtUic Include="..\..\..\source\widgets\LoginWidget\QLoginDialog.ui" />
<QtUic Include="..\..\..\source\Widgets\MainFrame\QMainFrame.ui" />
</ItemGroup>
@ -60,6 +62,7 @@
<ClInclude Include="..\..\..\source\db\ocilib\db_oper.h" />
<ClInclude Include="..\..\..\source\system\system_util.h" />
<ClInclude Include="..\..\..\source\test\test.h" />
<QtMoc Include="..\..\..\source\widgets\ContentWidget\QDataManagementWidget\QDataManagementWidget.h" />
<QtMoc Include="..\..\..\source\widgets\LoginWidget\QLoginDialog.h" />
</ItemGroup>
<PropertyGroup Label="Globals">
@ -136,7 +139,7 @@
<PrecompiledHeaderFile>stdafx.h</PrecompiledHeaderFile>
<PrecompiledHeaderOutputFile>$(IntDir)$(TargetName).pch</PrecompiledHeaderOutputFile>
<AdditionalOptions>/utf-8 %(AdditionalOptions)</AdditionalOptions>
<AdditionalIncludeDirectories>..\..\..\source\widgets\LoginWidget;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
<AdditionalIncludeDirectories>..\..\..\source\widgets\LoginWidget;..\..\..\source\widgets\ContentWidget\QDataManagementWidget;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
</ClCompile>
<Link>
<SubSystem>Console</SubSystem>
@ -164,7 +167,7 @@
<PrecompiledHeaderFile>stdafx.h</PrecompiledHeaderFile>
<PrecompiledHeaderOutputFile>$(IntDir)$(TargetName).pch</PrecompiledHeaderOutputFile>
<AdditionalOptions>/utf-8 %(AdditionalOptions)</AdditionalOptions>
<AdditionalIncludeDirectories>..\..\..\source\widgets\LoginWidget;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
<AdditionalIncludeDirectories>..\..\..\source\widgets\LoginWidget;..\..\..\source\widgets\ContentWidget\QDataManagementWidget;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
</ClCompile>
<Link>
<SubSystem>Windows</SubSystem>

View File

@ -86,6 +86,9 @@
<Filter Include="数据\数据管理\导入导出\直接导入导出">
<UniqueIdentifier>{ef490558-0c27-4a12-a626-583699d6a35f}</UniqueIdentifier>
</Filter>
<Filter Include="窗口\内容窗口">
<UniqueIdentifier>{c8f4e91d-d7b8-43e9-98c2-ba4d6336404f}</UniqueIdentifier>
</Filter>
</ItemGroup>
<ItemGroup>
<ClCompile Include="..\..\..\source\main.cpp">
@ -139,6 +142,9 @@
<ClCompile Include="..\..\..\source\data\DataManipulation\FromExcelToOracle\FromExcelToOracle.cpp">
<Filter>数据\数据管理\导入导出\直接导入导出</Filter>
</ClCompile>
<ClCompile Include="..\..\..\source\widgets\ContentWidget\QDataManagementWidget\QDataManagementWidget.cpp">
<Filter>窗口\内容窗口</Filter>
</ClCompile>
</ItemGroup>
<ItemGroup>
<QtRcc Include="..\..\..\source\resource.qrc">
@ -152,6 +158,9 @@
<QtUic Include="..\..\..\source\widgets\LoginWidget\QLoginDialog.ui">
<Filter>窗口\登录窗口</Filter>
</QtUic>
<QtUic Include="..\..\..\source\widgets\ContentWidget\QDataManagementWidget\QDataManagementWidget.ui">
<Filter>窗口\内容窗口</Filter>
</QtUic>
</ItemGroup>
<ItemGroup>
<QtMoc Include="..\..\..\source\Widgets\MainFrame\QMainFrame.h">
@ -160,6 +169,9 @@
<QtMoc Include="..\..\..\source\widgets\LoginWidget\QLoginDialog.h">
<Filter>窗口\登录窗口</Filter>
</QtMoc>
<QtMoc Include="..\..\..\source\widgets\ContentWidget\QDataManagementWidget\QDataManagementWidget.h">
<Filter>窗口\内容窗口</Filter>
</QtMoc>
</ItemGroup>
<ItemGroup>
<Image Include="..\..\..\source\car_dealer_util.ico">

View File

@ -0,0 +1,95 @@
/****************************************************************************
** Meta object code from reading C++ file 'QDataManagementWidget.h'
**
** Created by: The Qt Meta Object Compiler version 67 (Qt 5.13.1)
**
** WARNING! All changes made in this file will be lost!
*****************************************************************************/
#include <memory>
#include "../../../../../../../source/widgets/ContentWidget/QDataManagementWidget/QDataManagementWidget.h"
#include <QtCore/qbytearray.h>
#include <QtCore/qmetatype.h>
#if !defined(Q_MOC_OUTPUT_REVISION)
#error "The header file 'QDataManagementWidget.h' doesn't include <QObject>."
#elif Q_MOC_OUTPUT_REVISION != 67
#error "This file was generated using the moc from 5.13.1. It"
#error "cannot be used with the include files from this version of Qt."
#error "(The moc has changed too much.)"
#endif
QT_BEGIN_MOC_NAMESPACE
QT_WARNING_PUSH
QT_WARNING_DISABLE_DEPRECATED
struct qt_meta_stringdata_QDataManagementWidget_t {
QByteArrayData data[1];
char stringdata0[22];
};
#define QT_MOC_LITERAL(idx, ofs, len) \
Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
qptrdiff(offsetof(qt_meta_stringdata_QDataManagementWidget_t, stringdata0) + ofs \
- idx * sizeof(QByteArrayData)) \
)
static const qt_meta_stringdata_QDataManagementWidget_t qt_meta_stringdata_QDataManagementWidget = {
{
QT_MOC_LITERAL(0, 0, 21) // "QDataManagementWidget"
},
"QDataManagementWidget"
};
#undef QT_MOC_LITERAL
static const uint qt_meta_data_QDataManagementWidget[] = {
// content:
8, // revision
0, // classname
0, 0, // classinfo
0, 0, // methods
0, 0, // properties
0, 0, // enums/sets
0, 0, // constructors
0, // flags
0, // signalCount
0 // eod
};
void QDataManagementWidget::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
Q_UNUSED(_o);
Q_UNUSED(_id);
Q_UNUSED(_c);
Q_UNUSED(_a);
}
QT_INIT_METAOBJECT const QMetaObject QDataManagementWidget::staticMetaObject = { {
&QWidget::staticMetaObject,
qt_meta_stringdata_QDataManagementWidget.data,
qt_meta_data_QDataManagementWidget,
qt_static_metacall,
nullptr,
nullptr
} };
const QMetaObject *QDataManagementWidget::metaObject() const
{
return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject;
}
void *QDataManagementWidget::qt_metacast(const char *_clname)
{
if (!_clname) return nullptr;
if (!strcmp(_clname, qt_meta_stringdata_QDataManagementWidget.stringdata0))
return static_cast<void*>(this);
return QWidget::qt_metacast(_clname);
}
int QDataManagementWidget::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
_id = QWidget::qt_metacall(_c, _id, _a);
return _id;
}
QT_WARNING_POP
QT_END_MOC_NAMESPACE

View File

@ -0,0 +1,87 @@
/********************************************************************************
** Form generated from reading UI file 'QDataManagementWidget.ui'
**
** Created by: Qt User Interface Compiler version 5.13.1
**
** WARNING! All changes made in this file will be lost when recompiling UI file!
********************************************************************************/
#ifndef UI_QDATAMANAGEMENTWIDGET_H
#define UI_QDATAMANAGEMENTWIDGET_H
#include <QtCore/QVariant>
#include <QtWidgets/QApplication>
#include <QtWidgets/QGridLayout>
#include <QtWidgets/QTabWidget>
#include <QtWidgets/QWidget>
QT_BEGIN_NAMESPACE
class Ui_QDataManagementWidget
{
public:
QWidget *gridLayoutWidget;
QGridLayout *pLayoutMain;
QTabWidget *tabWidget;
QWidget *tab;
QWidget *tab_2;
QWidget *tab_3;
QWidget *tab_4;
void setupUi(QWidget *QDataManagementWidget)
{
if (QDataManagementWidget->objectName().isEmpty())
QDataManagementWidget->setObjectName(QString::fromUtf8("QDataManagementWidget"));
QDataManagementWidget->resize(759, 487);
gridLayoutWidget = new QWidget(QDataManagementWidget);
gridLayoutWidget->setObjectName(QString::fromUtf8("gridLayoutWidget"));
gridLayoutWidget->setGeometry(QRect(30, 20, 681, 431));
pLayoutMain = new QGridLayout(gridLayoutWidget);
pLayoutMain->setSpacing(6);
pLayoutMain->setContentsMargins(11, 11, 11, 11);
pLayoutMain->setObjectName(QString::fromUtf8("pLayoutMain"));
pLayoutMain->setContentsMargins(5, 5, 5, 0);
tabWidget = new QTabWidget(gridLayoutWidget);
tabWidget->setObjectName(QString::fromUtf8("tabWidget"));
tab = new QWidget();
tab->setObjectName(QString::fromUtf8("tab"));
tabWidget->addTab(tab, QString());
tab_2 = new QWidget();
tab_2->setObjectName(QString::fromUtf8("tab_2"));
tabWidget->addTab(tab_2, QString());
tab_3 = new QWidget();
tab_3->setObjectName(QString::fromUtf8("tab_3"));
tabWidget->addTab(tab_3, QString());
tab_4 = new QWidget();
tab_4->setObjectName(QString::fromUtf8("tab_4"));
tabWidget->addTab(tab_4, QString());
pLayoutMain->addWidget(tabWidget, 0, 0, 1, 1);
retranslateUi(QDataManagementWidget);
tabWidget->setCurrentIndex(3);
QMetaObject::connectSlotsByName(QDataManagementWidget);
} // setupUi
void retranslateUi(QWidget *QDataManagementWidget)
{
QDataManagementWidget->setWindowTitle(QCoreApplication::translate("QDataManagementWidget", "QDataManagementWidget", nullptr));
tabWidget->setTabText(tabWidget->indexOf(tab), QCoreApplication::translate("QDataManagementWidget", "\350\275\246\345\225\206\344\270\232\347\273\251\350\241\250", nullptr));
tabWidget->setTabText(tabWidget->indexOf(tab_2), QCoreApplication::translate("QDataManagementWidget", "\350\275\246\345\225\206\346\226\271\346\241\210\350\241\250", nullptr));
tabWidget->setTabText(tabWidget->indexOf(tab_3), QCoreApplication::translate("QDataManagementWidget", "\351\200\201\350\277\224\344\277\256\345\267\245\345\215\225", nullptr));
tabWidget->setTabText(tabWidget->indexOf(tab_4), QCoreApplication::translate("QDataManagementWidget", "\346\226\260\351\200\201\350\277\224\344\277\256\347\233\221\346\216\247\346\212\245\350\241\250", nullptr));
} // retranslateUi
};
namespace Ui {
class QDataManagementWidget: public Ui_QDataManagementWidget {};
} // namespace Ui
QT_END_NAMESPACE
#endif // UI_QDATAMANAGEMENTWIDGET_H

View File

@ -10,8 +10,10 @@
#define UI_QMAINFRAME_H
#include <QtCore/QVariant>
#include <QtWidgets/QAction>
#include <QtWidgets/QApplication>
#include <QtWidgets/QMainWindow>
#include <QtWidgets/QMenu>
#include <QtWidgets/QMenuBar>
#include <QtWidgets/QStatusBar>
#include <QtWidgets/QToolBar>
@ -22,29 +24,68 @@ QT_BEGIN_NAMESPACE
class Ui_QMainFrameClass
{
public:
QMenuBar *menuBar;
QToolBar *mainToolBar;
QAction *pActionExit;
QAction *pActionAbout;
QAction *pActionDataManagement;
QAction *pActionParamentersManagement;
QWidget *centralWidget;
QMenuBar *menuBar;
QMenu *menu;
QMenu *menu_2;
QToolBar *mainToolBar;
QStatusBar *statusBar;
void setupUi(QMainWindow *QMainFrameClass)
{
if (QMainFrameClass->objectName().isEmpty())
QMainFrameClass->setObjectName(QString::fromUtf8("QMainFrameClass"));
QMainFrameClass->resize(600, 400);
menuBar = new QMenuBar(QMainFrameClass);
menuBar->setObjectName(QString::fromUtf8("menuBar"));
QMainFrameClass->setMenuBar(menuBar);
mainToolBar = new QToolBar(QMainFrameClass);
mainToolBar->setObjectName(QString::fromUtf8("mainToolBar"));
QMainFrameClass->addToolBar(mainToolBar);
QMainFrameClass->resize(796, 558);
pActionExit = new QAction(QMainFrameClass);
pActionExit->setObjectName(QString::fromUtf8("pActionExit"));
QIcon icon;
icon.addFile(QString::fromUtf8(":/QMainFrame/Resources/quit.png"), QSize(), QIcon::Normal, QIcon::Off);
pActionExit->setIcon(icon);
pActionAbout = new QAction(QMainFrameClass);
pActionAbout->setObjectName(QString::fromUtf8("pActionAbout"));
QIcon icon1;
icon1.addFile(QString::fromUtf8(":/QMainFrame/Resources/cat.png"), QSize(), QIcon::Normal, QIcon::Off);
pActionAbout->setIcon(icon1);
pActionDataManagement = new QAction(QMainFrameClass);
pActionDataManagement->setObjectName(QString::fromUtf8("pActionDataManagement"));
QIcon icon2;
icon2.addFile(QString::fromUtf8(":/QMainFrame/Resources/excel.png"), QSize(), QIcon::Normal, QIcon::Off);
pActionDataManagement->setIcon(icon2);
pActionParamentersManagement = new QAction(QMainFrameClass);
pActionParamentersManagement->setObjectName(QString::fromUtf8("pActionParamentersManagement"));
QIcon icon3;
icon3.addFile(QString::fromUtf8(":/QMainFrame/Resources/option.png"), QSize(), QIcon::Normal, QIcon::Off);
pActionParamentersManagement->setIcon(icon3);
centralWidget = new QWidget(QMainFrameClass);
centralWidget->setObjectName(QString::fromUtf8("centralWidget"));
QMainFrameClass->setCentralWidget(centralWidget);
menuBar = new QMenuBar(QMainFrameClass);
menuBar->setObjectName(QString::fromUtf8("menuBar"));
menuBar->setGeometry(QRect(0, 0, 796, 23));
menu = new QMenu(menuBar);
menu->setObjectName(QString::fromUtf8("menu"));
menu_2 = new QMenu(menuBar);
menu_2->setObjectName(QString::fromUtf8("menu_2"));
QMainFrameClass->setMenuBar(menuBar);
mainToolBar = new QToolBar(QMainFrameClass);
mainToolBar->setObjectName(QString::fromUtf8("mainToolBar"));
mainToolBar->setIconSize(QSize(36, 36));
QMainFrameClass->addToolBar(Qt::TopToolBarArea, mainToolBar);
statusBar = new QStatusBar(QMainFrameClass);
statusBar->setObjectName(QString::fromUtf8("statusBar"));
QMainFrameClass->setStatusBar(statusBar);
menuBar->addAction(menu->menuAction());
menuBar->addAction(menu_2->menuAction());
menu->addAction(pActionExit);
menu_2->addAction(pActionAbout);
mainToolBar->addAction(pActionDataManagement);
mainToolBar->addAction(pActionParamentersManagement);
retranslateUi(QMainFrameClass);
QMetaObject::connectSlotsByName(QMainFrameClass);
@ -53,6 +94,12 @@ public:
void retranslateUi(QMainWindow *QMainFrameClass)
{
QMainFrameClass->setWindowTitle(QCoreApplication::translate("QMainFrameClass", "QMainFrame", nullptr));
pActionExit->setText(QCoreApplication::translate("QMainFrameClass", "\351\200\200\345\207\272", nullptr));
pActionAbout->setText(QCoreApplication::translate("QMainFrameClass", "\345\205\263\344\272\216", nullptr));
pActionDataManagement->setText(QCoreApplication::translate("QMainFrameClass", "\346\225\260\346\215\256\347\256\241\347\220\206", nullptr));
pActionParamentersManagement->setText(QCoreApplication::translate("QMainFrameClass", "\345\217\202\346\225\260\347\256\241\347\220\206", nullptr));
menu->setTitle(QCoreApplication::translate("QMainFrameClass", "\347\263\273\347\273\237", nullptr));
menu_2->setTitle(QCoreApplication::translate("QMainFrameClass", "\345\270\256\345\212\251", nullptr));
} // retranslateUi
};

View File

@ -11,13 +11,13 @@ using namespace std;;
using namespace ocilib;
using namespace libxl;
void RepairMonitoringFromExcelToOracle(const std::wstring& filePath,
unsigned int sheetIndex,
unsigned int titleRowIndex,
unsigned int firstRowIndex,
const std::string& tnsName,
const std::string& userName,
const std::string& password)
void RepairMonitoringFromExcelToOracle( const std::wstring & filePath,
unsigned int sheetIndex,
bool hasTitleRow,
const std::string & tnsName,
const std::string & userName,
const std::string & password )
{
//防御性验证
if (filePath.empty() == true ||
@ -67,6 +67,21 @@ void RepairMonitoringFromExcelToOracle(const std::wstring& filePath,
unsigned int rowIndex = firstRowIndex;
//保存标题
<<<<<<< HEAD
if (hasTitleRow)
{
while (index <= lastColumnIndex)
{
wstring&& title = ReadCellStringFromXlsx(pBook, sheetIndex, firstRowIndex, index, false);
titleMap.insert(pair<int, wstring>(index, title));
++index;
}
}
//逐行保存数据
=======
while (colIndex <= lastColumnIndex)
{
wstring&& title = ReadCellStringFromXlsx(pBook, sheetIndex, titleRowIndex, colIndex, false);
@ -92,4 +107,5 @@ void RepairMonitoringFromExcelToOracle(const std::wstring& filePath,
}
}
>>>>>>> 1c61f5c9c59d272bf37edf8d9217c4389b802ceb
}

View File

@ -4,8 +4,7 @@
void RepairMonitoringFromExcelToOracle( const std::wstring & filePath,
unsigned int sheetIndex,
unsigned int titleRowIndex,
unsigned int firstRowIndex,
bool hasTitleRow,
const std::string & tnsName,
const std::string & userName,
const std::string & password );

View File

@ -8,8 +8,6 @@
using namespace std;
UserInfo queryUserInfo( const string & userName,
const string & password,
const string & tnsName,

View File

@ -5,4 +5,30 @@ QMainFrame::QMainFrame(QWidget* parent)
: QMainWindow(parent)
{
ui.setupUi(this);
init();
}
void QMainFrame::init()
{
initData();
initWidgets();
initSignal();
}
void QMainFrame::initData()
{
pStackedWidget = new QStackedWidget(this);
pWidgetDataManagement = new QDataManagementWidget(pStackedWidget);
}
void QMainFrame::initWidgets()
{
pStackedWidget->addWidget(pWidgetDataManagement);
setCentralWidget(pStackedWidget);
}
void QMainFrame::initSignal()
{
}

View File

@ -1,15 +1,25 @@
#pragma once
#include <QtWidgets/QMainWindow>
#include <QtWidgets/QStackedWidget>
#include "QDataManagementWidget.h"
#include "ui_QMainFrame.h"
class QMainFrame : public QMainWindow
{
Q_OBJECT
Q_OBJECT
public:
QMainFrame(QWidget* parent = Q_NULLPTR);
QMainFrame( QWidget * parent = Q_NULLPTR );
private:
Ui::QMainFrameClass ui;
void init();
void initData();
void initWidgets();
void initSignal();
private:
Ui::QMainFrameClass ui;
QStackedWidget * pStackedWidget;
QDataManagementWidget * pWidgetDataManagement;
};

View File

@ -6,8 +6,8 @@
<rect>
<x>0</x>
<y>0</y>
<width>600</width>
<height>400</height>
<width>796</width>
<height>558</height>
</rect>
</property>
<property name="windowTitle">
@ -19,7 +19,7 @@
<rect>
<x>0</x>
<y>0</y>
<width>600</width>
<width>796</width>
<height>23</height>
</rect>
</property>
@ -39,18 +39,26 @@
<addaction name="menu_2"/>
</widget>
<widget class="QToolBar" name="mainToolBar">
<property name="iconSize">
<size>
<width>36</width>
<height>36</height>
</size>
</property>
<attribute name="toolBarArea">
<enum>TopToolBarArea</enum>
</attribute>
<attribute name="toolBarBreak">
<bool>false</bool>
</attribute>
<addaction name="pActionDataManagement"/>
<addaction name="pActionParamentersManagement"/>
</widget>
<widget class="QStatusBar" name="statusBar"/>
<action name="pActionExit">
<property name="icon">
<iconset resource="../../resource.qrc">
<normaloff>:/QMainFrame/Resources/x.png</normaloff>:/QMainFrame/Resources/x.png</iconset>
<normaloff>:/QMainFrame/Resources/quit.png</normaloff>:/QMainFrame/Resources/quit.png</iconset>
</property>
<property name="text">
<string>退出</string>
@ -59,12 +67,30 @@
<action name="pActionAbout">
<property name="icon">
<iconset resource="../../resource.qrc">
<normaloff>:/QMainFrame/Resources/face.png</normaloff>:/QMainFrame/Resources/face.png</iconset>
<normaloff>:/QMainFrame/Resources/cat.png</normaloff>:/QMainFrame/Resources/cat.png</iconset>
</property>
<property name="text">
<string>关于</string>
</property>
</action>
<action name="pActionDataManagement">
<property name="icon">
<iconset resource="../../resource.qrc">
<normaloff>:/QMainFrame/Resources/excel.png</normaloff>:/QMainFrame/Resources/excel.png</iconset>
</property>
<property name="text">
<string>数据管理</string>
</property>
</action>
<action name="pActionParamentersManagement">
<property name="icon">
<iconset resource="../../resource.qrc">
<normaloff>:/QMainFrame/Resources/option.png</normaloff>:/QMainFrame/Resources/option.png</iconset>
</property>
<property name="text">
<string>参数管理</string>
</property>
</action>
</widget>
<layoutdefault spacing="6" margin="11"/>
<resources>

View File

@ -29,7 +29,7 @@ int main( int argc, char * argv[] )
test();
return 1;
//return 1;
//登录界面
try

View File

@ -13,7 +13,7 @@ void test_username();
void test()
{
excelTest();
//excelTest();
}
void excelTest()

View File

@ -0,0 +1,33 @@
#include "QDataManagementWidget.h"
QDataManagementWidget::QDataManagementWidget( QWidget * parent )
: QWidget( parent )
{
ui.setupUi( this );
init();
}
QDataManagementWidget::~QDataManagementWidget()
{
}
void QDataManagementWidget::init()
{
initData();
initWidgets();
initSignal();
}
void QDataManagementWidget::initData()
{
}
void QDataManagementWidget::initWidgets()
{
setLayout( ui.pLayoutMain );
}
void QDataManagementWidget::initSignal()
{
}

View File

@ -0,0 +1,22 @@
#pragma once
#include <QWidget>
#include "ui_QDataManagementWidget.h"
class QDataManagementWidget : public QWidget
{
Q_OBJECT
public:
QDataManagementWidget(QWidget *parent = Q_NULLPTR);
~QDataManagementWidget();
private:
void init();
void initData();
void initWidgets();
void initSignal();
private:
Ui::QDataManagementWidget ui;
};

View File

@ -0,0 +1,68 @@
<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
<class>QDataManagementWidget</class>
<widget class="QWidget" name="QDataManagementWidget">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>759</width>
<height>487</height>
</rect>
</property>
<property name="windowTitle">
<string>QDataManagementWidget</string>
</property>
<widget class="QWidget" name="gridLayoutWidget">
<property name="geometry">
<rect>
<x>30</x>
<y>20</y>
<width>681</width>
<height>431</height>
</rect>
</property>
<layout class="QGridLayout" name="pLayoutMain">
<property name="leftMargin">
<number>5</number>
</property>
<property name="topMargin">
<number>5</number>
</property>
<property name="rightMargin">
<number>5</number>
</property>
<item row="0" column="0">
<widget class="QTabWidget" name="tabWidget">
<property name="currentIndex">
<number>3</number>
</property>
<widget class="QWidget" name="tab">
<attribute name="title">
<string>车商业绩表</string>
</attribute>
</widget>
<widget class="QWidget" name="tab_2">
<attribute name="title">
<string>车商方案表</string>
</attribute>
</widget>
<widget class="QWidget" name="tab_3">
<attribute name="title">
<string>送返修工单</string>
</attribute>
</widget>
<widget class="QWidget" name="tab_4">
<attribute name="title">
<string>新送返修监控报表</string>
</attribute>
</widget>
</widget>
</item>
</layout>
</widget>
</widget>
<layoutdefault spacing="6" margin="11"/>
<resources/>
<connections/>
</ui>