提交信息!
This commit is contained in:
@@ -1,6 +1,8 @@
|
||||
#include <QFileDialog>
|
||||
#include "QCarDealerAchievementWidget.h"
|
||||
|
||||
|
||||
#include <QMessageBox>
|
||||
#include <stdexcept>
|
||||
|
||||
|
||||
@@ -42,18 +44,27 @@ void QCarDealerAchievementWidget::onImport()
|
||||
//以后要修改
|
||||
string userName = "car_dealer";
|
||||
string password = "cpic123456";
|
||||
string tnsName = "xmcx1";
|
||||
string tnsName = "xmcx1";
|
||||
|
||||
try
|
||||
{
|
||||
ImportCarDealerAchievementToOracleCpp(userName, password, tnsName, achievementVector);
|
||||
ImportCarDealerAchievementToOracleCpp( userName, password, tnsName, achievementVector );
|
||||
}
|
||||
catch ( runtime_error & error )
|
||||
{
|
||||
|
||||
QMessageBox::critical( this,
|
||||
"错误",
|
||||
error.what() );
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
void QCarDealerAchievementWidget::onShowCarDealerAchievement()
|
||||
{
|
||||
ui.pTableWidgetAchievement->clearContents();
|
||||
}
|
||||
|
||||
void QCarDealerAchievementWidget::init()
|
||||
|
@@ -14,15 +14,14 @@ public:
|
||||
|
||||
protected Q_SLOTS:
|
||||
void onImport();
|
||||
void onShowCarDealerAchievement();
|
||||
|
||||
private:
|
||||
void init();
|
||||
void initData();
|
||||
void initWidgets();
|
||||
void initSignal();
|
||||
|
||||
|
||||
|
||||
private:
|
||||
Ui::QCarDealerAchievementWidget ui;
|
||||
|
||||
|
@@ -71,7 +71,7 @@
|
||||
</layout>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QTableWidget" name="tableWidget">
|
||||
<widget class="QTableWidget" name="pTableWidgetAchievement">
|
||||
<column>
|
||||
<property name="text">
|
||||
<string>年度</string>
|
||||
|
Reference in New Issue
Block a user