diff --git a/代码/cpp/telsale_aux_kit/proj/vs2017/telsale_aux_kit/PolicyRecord.cpp b/代码/cpp/telsale_aux_kit/proj/vs2017/telsale_aux_kit/PolicyRecord.cpp new file mode 100644 index 0000000..28ee4ed --- /dev/null +++ b/代码/cpp/telsale_aux_kit/proj/vs2017/telsale_aux_kit/PolicyRecord.cpp @@ -0,0 +1,12 @@ +#include "PolicyRecord.h" + + + +PolicyRecord::PolicyRecord() +{ +} + + +PolicyRecord::~PolicyRecord() +{ +} diff --git a/代码/cpp/telsale_aux_kit/proj/vs2017/telsale_aux_kit/PolicyRecord.h b/代码/cpp/telsale_aux_kit/proj/vs2017/telsale_aux_kit/PolicyRecord.h new file mode 100644 index 0000000..cdf6e24 --- /dev/null +++ b/代码/cpp/telsale_aux_kit/proj/vs2017/telsale_aux_kit/PolicyRecord.h @@ -0,0 +1,293 @@ +#ifndef POLICY_RECORD_H__ +#define POLICY_RECORD_H__ + +#include + +class PolicyRecord +{ +public: + PolicyRecord(); + ~PolicyRecord(); + + + PolicyRecord( const PolicyRecord & other ) + : policySerial( other.policySerial ), + signDate( other.signDate ), + salerCode( other.salerCode ), + salerName( other.salerName ), + salerDeptCode( other.salerDeptCode ), + salerDeptName( other.salerDeptName ), + salerOfficeCode( other.salerOfficeCode ), + salerOfficeName( other.salerOfficeName ), + autoTraderCode( other.autoTraderCode ), + autoTraderName( other.autoTraderName ), + customerName( other.customerName ), + plateSerial( other.plateSerial ), + frameSerial( other.frameSerial ), + engineSerial( other.engineSerial ), + operatorDate( other.operatorDate ), + operatorCode( other.operatorCode ), + isAutotraderCall( other.isAutotraderCall ) + { + } + + PolicyRecord( PolicyRecord && other ) + : policySerial( std::move(other.policySerial) ), + signDate( std::move(other.signDate) ), + salerCode( std::move(other.salerCode) ), + salerName( std::move(other.salerName) ), + salerDeptCode( std::move(other.salerDeptCode) ), + salerDeptName( std::move(other.salerDeptName) ), + salerOfficeCode( std::move(other.salerOfficeCode) ), + salerOfficeName( std::move(other.salerOfficeName) ), + autoTraderCode( std::move(other.autoTraderCode) ), + autoTraderName( std::move(other.autoTraderName) ), + customerName( std::move(other.customerName) ), + plateSerial( std::move(other.plateSerial) ), + frameSerial( std::move(other.frameSerial) ), + engineSerial( std::move(other.engineSerial) ), + operatorDate( std::move(other.operatorDate) ), + operatorCode( std::move(other.operatorCode) ), + isAutotraderCall( other.isAutotraderCall ) + { + } + + PolicyRecord & operator=( const PolicyRecord & other ) + { + if ( this == &other ) + return *this; + policySerial = other.policySerial; + signDate = other.signDate; + salerCode = other.salerCode; + salerName = other.salerName; + salerDeptCode = other.salerDeptCode; + salerDeptName = other.salerDeptName; + salerOfficeCode = other.salerOfficeCode; + salerOfficeName = other.salerOfficeName; + autoTraderCode = other.autoTraderCode; + autoTraderName = other.autoTraderName; + customerName = other.customerName; + plateSerial = other.plateSerial; + frameSerial = other.frameSerial; + engineSerial = other.engineSerial; + operatorDate = other.operatorDate; + operatorCode = other.operatorCode; + isAutotraderCall = other.isAutotraderCall; + return *this; + } + + PolicyRecord & operator=( PolicyRecord && other ) + { + if ( this == &other ) + return *this; + policySerial = std::move( other.policySerial ); + signDate = std::move( other.signDate ); + salerCode = std::move( other.salerCode ); + salerName = std::move( other.salerName ); + salerDeptCode = std::move( other.salerDeptCode ); + salerDeptName = std::move( other.salerDeptName ); + salerOfficeCode = std::move( other.salerOfficeCode ); + salerOfficeName = std::move( other.salerOfficeName ); + autoTraderCode = std::move( other.autoTraderCode ); + autoTraderName = std::move( other.autoTraderName ); + customerName = std::move( other.customerName ); + plateSerial = std::move( other.plateSerial ); + frameSerial = std::move( other.frameSerial ); + engineSerial = std::move( other.engineSerial ); + operatorDate = std::move( other.operatorDate ); + operatorCode = std::move( other.operatorCode ); + isAutotraderCall = other.isAutotraderCall; + return *this; + } + + QString getPolicySerial() const + { + return policySerial; + } + + void setPolicySerial( const QString & policySerial ) + { + this->policySerial = policySerial; + } + + QString getSignDate() const + { + return signDate; + } + + void setSignDate( const QString & signDate ) + { + this->signDate = signDate; + } + + QString getSalerCode() const + { + return salerCode; + } + + void setSalerCode( const QString & salerCode ) + { + this->salerCode = salerCode; + } + + QString getSalerName() const + { + return salerName; + } + + void setSalerName( const QString & salerName ) + { + this->salerName = salerName; + } + + QString getSalerDeptCode() const + { + return salerDeptCode; + } + + void setSalerDeptCode( const QString & salerDeptCode ) + { + this->salerDeptCode = salerDeptCode; + } + + QString getSalerDeptName() const + { + return salerDeptName; + } + + void setSalerDeptName( const QString & salerDeptName ) + { + this->salerDeptName = salerDeptName; + } + + QString getSalerOfficeCode() const + { + return salerOfficeCode; + } + + void setSalerOfficeCode( const QString & salerOfficeCode ) + { + this->salerOfficeCode = salerOfficeCode; + } + + QString getSalerOfficeName() const + { + return salerOfficeName; + } + + void setSalerOfficeName( const QString & salerOfficeName ) + { + this->salerOfficeName = salerOfficeName; + } + + QString getAutoTraderCode() const + { + return autoTraderCode; + } + + void setAutoTraderCode( const QString & autoTraderCode ) + { + this->autoTraderCode = autoTraderCode; + } + + QString getAutoTraderName() const + { + return autoTraderName; + } + + void setAutoTraderName( const QString & autoTraderName ) + { + this->autoTraderName = autoTraderName; + } + + QString getCustomerName() const + { + return customerName; + } + + void setCustomerName( const QString & customerName ) + { + this->customerName = customerName; + } + + QString getPlateSerial() const + { + return plateSerial; + } + + void setPlateSerial( const QString & plateSerial ) + { + this->plateSerial = plateSerial; + } + + QString getFrameSerial() const + { + return frameSerial; + } + + void setFrameSerial( const QString & frameSerial ) + { + this->frameSerial = frameSerial; + } + + QString getEngineSerial() const + { + return engineSerial; + } + + void setEngineSerial( const QString & engineSerial ) + { + this->engineSerial = engineSerial; + } + + QString getOperatorDate() const + { + return operatorDate; + } + + void setOperatorDate( const QString & operatorDate ) + { + this->operatorDate = operatorDate; + } + + QString getOperatorCode() const + { + return operatorCode; + } + + void setOperatorCode( const QString & operatorCode ) + { + this->operatorCode = operatorCode; + } + + bool isIsAutotraderCall() const + { + return isAutotraderCall; + } + + void setIsAutotraderCall( const bool isAutotraderCall ) + { + this->isAutotraderCall = isAutotraderCall; + } + +private: + QString policySerial; + QString signDate; + QString salerCode; + QString salerName; + QString salerDeptCode; + QString salerDeptName; + QString salerOfficeCode; + QString salerOfficeName; + QString autoTraderCode; + QString autoTraderName; + QString customerName; + QString plateSerial; + QString frameSerial; + QString engineSerial; + QString operatorDate; + QString operatorCode; + bool isAutotraderCall; +}; + +#endif \ No newline at end of file diff --git a/代码/cpp/telsale_aux_kit/proj/vs2017/telsale_aux_kit/QueriedPolicy.cpp b/代码/cpp/telsale_aux_kit/proj/vs2017/telsale_aux_kit/QueriedPolicy.cpp new file mode 100644 index 0000000..d229f12 --- /dev/null +++ b/代码/cpp/telsale_aux_kit/proj/vs2017/telsale_aux_kit/QueriedPolicy.cpp @@ -0,0 +1,12 @@ +#include "QueriedPolicy.h" + + + +QueriedPolicy::QueriedPolicy() +{ +} + + +QueriedPolicy::~QueriedPolicy() +{ +} diff --git a/代码/cpp/telsale_aux_kit/proj/vs2017/telsale_aux_kit/QueriedPolicy.h b/代码/cpp/telsale_aux_kit/proj/vs2017/telsale_aux_kit/QueriedPolicy.h new file mode 100644 index 0000000..73a2afa --- /dev/null +++ b/代码/cpp/telsale_aux_kit/proj/vs2017/telsale_aux_kit/QueriedPolicy.h @@ -0,0 +1,189 @@ + +#ifndef QUERIEDPOLICY_H__ +#define QUERIEDPOLICY_H__ + +#include + +class QueriedPolicy +{ +public: + QueriedPolicy(); + ~QueriedPolicy(); + + QString getPolicySerial() const + { + return policySerial; + } + + void setPolicySerial( const QString & policySerial ) + { + this->policySerial = policySerial; + } + + QString getSalerCode() const + { + return salerCode; + } + + void setSalerCode( const QString & salerCode ) + { + this->salerCode = salerCode; + } + + QString getDeptName() const + { + return deptName; + } + + void setDeptName( const QString & deptName ) + { + this->deptName = deptName; + } + + QString getOfficeName() const + { + return officeName; + } + + void setOfficeName( const QString & officeName ) + { + this->officeName = officeName; + } + + QString getCdlh() const + { + return CDLH; + } + + void setCdlh( const QString & cdlh ) + { + CDLH = cdlh; + } + + QString getAutoTraderCode() const + { + return autoTraderCode; + } + + void setAutoTraderCode( const QString & autoTraderCode ) + { + this->autoTraderCode = autoTraderCode; + } + + QString getAutoTraderName() const + { + return autoTraderName; + } + + void setAutoTraderName( const QString & autoTraderName ) + { + this->autoTraderName = autoTraderName; + } + + QString getGifts() const + { + return gifts; + } + + void setGifts( const QString & gifts ) + { + this->gifts = gifts; + } + + QString getEntryDate() const + { + return entryDate; + } + + void setEntryDate( const QString & entryDate ) + { + this->entryDate = entryDate; + } + + double getGiftPriceSum() const + { + return giftPriceSum; + } + + void setGiftPriceSum( double giftPriceSum ) + { + this->giftPriceSum = giftPriceSum; + } + + + QueriedPolicy( const QueriedPolicy & other ) + : policySerial( other.policySerial ), + salerCode( other.salerCode ), + deptName( other.deptName ), + officeName( other.officeName ), + CDLH( other.CDLH ), + autoTraderCode( other.autoTraderCode ), + autoTraderName( other.autoTraderName ), + gifts( other.gifts ), + entryDate( other.entryDate ), + giftPriceSum( other.giftPriceSum ) + { + } + + QueriedPolicy( QueriedPolicy && other ) noexcept + : policySerial( std::move(other.policySerial) ), + salerCode( std::move(other.salerCode) ), + deptName( std::move(other.deptName) ), + officeName( std::move(other.officeName) ), + CDLH( std::move(other.CDLH) ), + autoTraderCode( std::move(other.autoTraderCode) ), + autoTraderName( std::move(other.autoTraderName) ), + gifts( std::move(other.gifts) ), + entryDate( std::move(other.entryDate) ), + giftPriceSum( other.giftPriceSum ) + { + } + + QueriedPolicy & operator=( const QueriedPolicy & other ) + { + if ( this == &other ) + return *this; + policySerial = other.policySerial; + salerCode = other.salerCode; + deptName = other.deptName; + officeName = other.officeName; + CDLH = other.CDLH; + autoTraderCode = other.autoTraderCode; + autoTraderName = other.autoTraderName; + gifts = other.gifts; + entryDate = other.entryDate; + giftPriceSum = other.giftPriceSum; + return *this; + } + + QueriedPolicy & operator=( QueriedPolicy && other ) noexcept + { + if ( this == &other ) + return *this; + policySerial = std::move( other.policySerial ); + salerCode = std::move( other.salerCode ); + deptName = std::move( other.deptName ); + officeName = std::move( other.officeName ); + CDLH = std::move( other.CDLH ); + autoTraderCode = std::move( other.autoTraderCode ); + autoTraderName = std::move( other.autoTraderName ); + gifts = std::move( other.gifts ); + entryDate = std::move( other.entryDate ); + giftPriceSum = other.giftPriceSum; + return *this; + } + +private: + QString policySerial; + QString salerCode; + QString deptName; + QString officeName; + QString CDLH; + QString autoTraderCode; + QString autoTraderName; + QString gifts; + QString entryDate; + double giftPriceSum; +}; + +#endif \ No newline at end of file diff --git a/代码/cpp/telsale_aux_kit/proj/vs2017/telsale_aux_kit/telsale_aux_kit.vcxproj b/代码/cpp/telsale_aux_kit/proj/vs2017/telsale_aux_kit/telsale_aux_kit.vcxproj index 7cee004..62127c7 100644 --- a/代码/cpp/telsale_aux_kit/proj/vs2017/telsale_aux_kit/telsale_aux_kit.vcxproj +++ b/代码/cpp/telsale_aux_kit/proj/vs2017/telsale_aux_kit/telsale_aux_kit.vcxproj @@ -26,6 +26,8 @@ + + @@ -33,6 +35,8 @@ + + @@ -183,14 +187,15 @@ - - - + + + - - + + + diff --git a/代码/cpp/telsale_aux_kit/proj/vs2017/telsale_aux_kit/telsale_aux_kit.vcxproj.filters b/代码/cpp/telsale_aux_kit/proj/vs2017/telsale_aux_kit/telsale_aux_kit.vcxproj.filters index 664f357..d4a8532 100644 --- a/代码/cpp/telsale_aux_kit/proj/vs2017/telsale_aux_kit/telsale_aux_kit.vcxproj.filters +++ b/代码/cpp/telsale_aux_kit/proj/vs2017/telsale_aux_kit/telsale_aux_kit.vcxproj.filters @@ -73,6 +73,15 @@ {5ed8d50c-a7a1-44fb-9a70-d0706a101021} + + {fe2000bd-b5b0-4e6e-8f01-523f4ea4d2d2} + + + {90d33bfa-f36b-4430-a704-06f5c57f9462} + + + {1c207223-121f-4a0e-a313-ccb5c23c1a76} + @@ -120,6 +129,12 @@ 窗口\层叠窗口\层叠子窗口 + + 数据\数据库操作\对象\查询用对象 + + + 数据\数据库操作\对象\保单对象 + @@ -143,6 +158,12 @@ 数据\参数管理 + + 数据\数据库操作\对象\查询用对象 + + + 数据\数据库操作\对象\保单对象 + diff --git a/代码/cpp/telsale_aux_kit/source/DataManipulation.cpp b/代码/cpp/telsale_aux_kit/source/DataManipulation.cpp index dd7199b..7a837d6 100644 --- a/代码/cpp/telsale_aux_kit/source/DataManipulation.cpp +++ b/代码/cpp/telsale_aux_kit/source/DataManipulation.cpp @@ -45,43 +45,43 @@ const static char g_cszConnstringYwgl[] = const static char g_cszUserNameYwgl[] = "ccx99"; const static char g_cszPasswordYwgl[] = "c92IT09"; -void queryTelsalePolicyGifts(vector& giftList) -{ - SAConnection connection; - SACommand command; - - string strSQL = "select id, trim(name), default_price from w_dx_gifts"; - - command.setConnection(&connection); - command.setCommandText(strSQL.c_str()); - - try - { - connection.Connect(g_cszConnstringYwgl, - g_cszUserNameYwgl, - g_cszPasswordYwgl, - SA_Informix_Client); - - command.Execute(); - } - catch (SAException& error) - { - throw runtime_error(error.ErrText()); - } - - while (command.FetchNext()) - { - TelSalePolicyGift gift; - - gift.Id(command.Field(1).asLong()); - gift.GiftName((const char *)(command.Field(2).asString())); - gift.GiftDefaultPrice((const char *)(command.Field(3).asString())); - - giftList.push_back(gift); - } - - connection.Disconnect(); -} +// void queryTelsalePolicyGifts(vector& giftList) +// { +// SAConnection connection; +// SACommand command; +// +// string strSQL = "select id, trim(name), default_price from w_dx_gifts"; +// +// command.setConnection(&connection); +// command.setCommandText(strSQL.c_str()); +// +// try +// { +// connection.Connect(g_cszConnstringYwgl, +// g_cszUserNameYwgl, +// g_cszPasswordYwgl, +// SA_Informix_Client); +// +// command.Execute(); +// } +// catch (SAException& error) +// { +// throw runtime_error(error.ErrText()); +// } +// +// while (command.FetchNext()) +// { +// TelSalePolicyGift gift; +// +// gift.Id(command.Field(1).asLong()); +// gift.GiftName((const char *)(command.Field(2).asString())); +// gift.GiftDefaultPrice((const char *)(command.Field(3).asString())); +// +// giftList.push_back(gift); +// } +// +// connection.Disconnect(); +// } void SaveTelSalePolicyInfo(const SPolicyRecord& policy, const vector& giftList) { @@ -286,7 +286,7 @@ void QueryTelSalePolicyInfo(const string& strPolicyNo, policy.strInputDate = command.Field("czrq").asString(); policy.strCDLH = command.Field("chdlh").asString(); - QueryPolicyGifts(policy.strPolicySerial, policy.strGifts, policy.dGiftPriceSum); + //QueryPolicyGifts(policy.strPolicySerial, policy.strGifts, policy.dGiftPriceSum); vPolicyInfo.push_back(policy); } @@ -299,66 +299,66 @@ void QueryTelSalePolicyInfo(const string& strPolicyNo, } } -void QueryPolicyGifts(const string& strPolicyNo, string& strGifts, double dGiftPriceSum) -{ - SAConnection connection; - SACommand command; - - string strSQL = - "select gift_name, gift_price " - " from w_dxbd_gift_i " - " where bdh = '" + strPolicyNo + "'"; - - string strSQLSum = - "select sum( gift_price ) " - " from w_dxbd_gift_i " - " where bdh = '" + strPolicyNo + "'"; - - try - { - command.setConnection(&connection); - command.setCommandText(strSQL.c_str()); - - connection.Connect(g_cszConnstringYwgl, - g_cszUserNameYwgl, - g_cszPasswordYwgl, - SA_Informix_Client); - - command.Execute(); - - strGifts.clear(); - dGiftPriceSum = 0.0; - - while (command.FetchNext()) - { - if (!strGifts.empty()) - { - strGifts.append("; "); - } - - strGifts.append(command.Field("gift_name").asString()); - strGifts.append(" "); - strGifts.append(command.Field("gift_price").asString()); - strGifts.append("元"); - - dGiftPriceSum += command.Field("gift_price").asDouble(); - } - - /*command.setCommandText( strSQLSum.c_str() ); - command.Execute(); - - if ( command.FetchNext() ) - { - strGiftPriceSum = command.Field( 0 ).asString(); - }*/ - - connection.Disconnect(); - } - catch (SAException& error) - { - throw runtime_error(error.ErrText()); - } -} +// void QueryPolicyGifts(const string& strPolicyNo, string& strGifts, double dGiftPriceSum) +// { +// SAConnection connection; +// SACommand command; +// +// string strSQL = +// "select gift_name, gift_price " +// " from w_dxbd_gift_i " +// " where bdh = '" + strPolicyNo + "'"; +// +// string strSQLSum = +// "select sum( gift_price ) " +// " from w_dxbd_gift_i " +// " where bdh = '" + strPolicyNo + "'"; +// +// try +// { +// command.setConnection(&connection); +// command.setCommandText(strSQL.c_str()); +// +// connection.Connect(g_cszConnstringYwgl, +// g_cszUserNameYwgl, +// g_cszPasswordYwgl, +// SA_Informix_Client); +// +// command.Execute(); +// +// strGifts.clear(); +// dGiftPriceSum = 0.0; +// +// while (command.FetchNext()) +// { +// if (!strGifts.empty()) +// { +// strGifts.append("; "); +// } +// +// strGifts.append(command.Field("gift_name").asString()); +// strGifts.append(" "); +// strGifts.append(command.Field("gift_price").asString()); +// strGifts.append("元"); +// +// dGiftPriceSum += command.Field("gift_price").asDouble(); +// } +// +// /*command.setCommandText( strSQLSum.c_str() ); +// command.Execute(); +// +// if ( command.FetchNext() ) +// { +// strGiftPriceSum = command.Field( 0 ).asString(); +// }*/ +// +// connection.Disconnect(); +// } +// catch (SAException& error) +// { +// throw runtime_error(error.ErrText()); +// } +// } /*void readTelsaleXlsFile(const string strFilePath, vector & listPolicy, bool hasTitle, bool isXML ) diff --git a/代码/cpp/telsale_aux_kit/source/DataManipulation.h b/代码/cpp/telsale_aux_kit/source/DataManipulation.h index ff2353f..7dd54f5 100644 --- a/代码/cpp/telsale_aux_kit/source/DataManipulation.h +++ b/代码/cpp/telsale_aux_kit/source/DataManipulation.h @@ -47,27 +47,7 @@ typedef struct bool bIsAutotraderCall; } SPolicyRecord; -class PolicyRecord -{ -private: - QString policySerial; - QString signDate; - QString salerCode; - QString salerName; - QString salerDeptCode; - QString salerDeptName; - QString salerOfficeCode; - QString salerOfficeName; - QString autoTraderCode; - QString autoTraderName; - QString customerName; - QString plateSerial; - QString frameSerial; - QString engineSerial; - QString operatorDate; - QString operatorCode; - bool isAutotraderCall; -}; + //准备废弃 typedef struct @@ -84,6 +64,8 @@ typedef struct string strInputDate; } SPolicyQuery; + + class TelSalePolicyGift { public: @@ -91,20 +73,20 @@ public: { }; - TelSalePolicyGift(int id, const string & name, const string & defaultPrice) : m_id(id), - m_giftName(name), - m_giftDefaultPrice(defaultPrice) + TelSalePolicyGift( int id, const string & name, const string & defaultPrice ) : m_id( id ), + m_giftName( name ), + m_giftDefaultPrice( defaultPrice ) { } inline int Id() const { return m_id; } - void Id(int val) { m_id = val; } + void Id( int val ) { m_id = val; } string GiftName() const { return m_giftName; } - void GiftName(string val) { m_giftName = val; } + void GiftName( string val ) { m_giftName = val; } string GiftDefaultPrice() const { return m_giftDefaultPrice; } - void GiftDefaultPrice(string val) { m_giftDefaultPrice = val; } + void GiftDefaultPrice( string val ) { m_giftDefaultPrice = val; } private: int m_id; @@ -121,7 +103,7 @@ private: // Qualifier: 查询礼品信息 // Parameter: vector & giftList 礼品列表 //************************************ -void queryTelsalePolicyGifts(vector & giftList); +//void queryTelsalePolicyGifts(vector & giftList); //************************************ // Method: SaveTelSalePolicyInfo @@ -132,7 +114,7 @@ void queryTelsalePolicyGifts(vector & giftList); // Parameter: const SPolicyRecord & policy // Parameter: const vector & giftList //************************************ -void SaveTelSalePolicyInfo(const SPolicyRecord & policy, const vector & giftList); +void SaveTelSalePolicyInfo( const SPolicyRecord & policy, const vector & giftList ); //************************************ // Method: QueryTelSalePolicyInfo @@ -146,11 +128,11 @@ void SaveTelSalePolicyInfo(const SPolicyRecord & policy, const vector & vPolicyInfo //************************************ -void QueryTelSalePolicyInfo(const string & strPolicyNo, - const string & strOperatorCode, - const string & strStartDate, - const string & strEndDate, - vector & vPolicyInfo); +void QueryTelSalePolicyInfo( const string & strPolicyNo, + const string & strOperatorCode, + const string & strStartDate, + const string & strEndDate, + vector & vPolicyInfo ); //************************************ // Method: QueryPolicyGifts @@ -161,13 +143,13 @@ void QueryTelSalePolicyInfo(const string & strPolicyNo, // Parameter: const string & strPolicyNo // Parameter: string & strGifts //************************************ -void QueryPolicyGifts(const string & strPolicyNo, - string & strGifts, - double dGiftPriceSum); +// void QueryPolicyGifts(const string & strPolicyNo, +// string & strGifts, +// double dGiftPriceSum); //void readTelsaleXlsFile( const string & strFilePath, vector & listPolicy, bool hasTitle, bool isXML ); -void readTelsaleXlsxFile(const wstring & filePath, vector & listPolicy, bool hasTitle); +void readTelsaleXlsxFile( const wstring & filePath, vector & listPolicy, bool hasTitle ); /************************************************ * \brief 读取xls文件的单元格内容,返回std::string @@ -176,7 +158,7 @@ void readTelsaleXlsxFile(const wstring & filePath, vector & listP * \param iColIndex 列索引 * \return 返回读取的单元格内容,以std::string为载体 ************************************************/ -string readXlsCell(ISheetT * pSheet, int iRowIndex, int iColIndex); +string readXlsCell( ISheetT * pSheet, int iRowIndex, int iColIndex ); /************************************************ * \brief 读取xlsx文件的单元格内容,返回std::string @@ -185,6 +167,6 @@ string readXlsCell(ISheetT * pSheet, int iRowIndex, int iColIndex); * \param iColIndex 列索引 * \return 返回读取的单元格内容,以std::string为载体 ************************************************/ -string readXlsxCell(ISheetT * pSheet, int iRowIndex, int iColIndex); +string readXlsxCell( ISheetT * pSheet, int iRowIndex, int iColIndex ); #endif // DataManipulation_h__ diff --git a/代码/cpp/telsale_aux_kit/source/QLoginWidget.ui b/代码/cpp/telsale_aux_kit/source/QLoginWidget.ui index e89ab40..95401c5 100644 --- a/代码/cpp/telsale_aux_kit/source/QLoginWidget.ui +++ b/代码/cpp/telsale_aux_kit/source/QLoginWidget.ui @@ -168,6 +168,9 @@ + + false + 999 @@ -284,7 +287,7 @@ - + diff --git a/代码/cpp/telsale_aux_kit/source/QTelSalePolicyInfoInputWidget.cpp b/代码/cpp/telsale_aux_kit/source/QTelSalePolicyInfoInputWidget.cpp index 4ff37eb..2b17c15 100644 --- a/代码/cpp/telsale_aux_kit/source/QTelSalePolicyInfoInputWidget.cpp +++ b/代码/cpp/telsale_aux_kit/source/QTelSalePolicyInfoInputWidget.cpp @@ -86,7 +86,7 @@ void QTelSalePolicyInfoInputWidget::InitGiftTable() try { - queryTelsalePolicyGifts( giftsList ); + //queryTelsalePolicyGifts( giftsList ); } catch ( runtime_error & error ) {