修改web版功能
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
#include "PolicyRecord.h"
|
||||
|
||||
|
||||
|
||||
PolicyRecord::PolicyRecord()
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
PolicyRecord::~PolicyRecord()
|
||||
{
|
||||
}
|
@@ -0,0 +1,293 @@
|
||||
#ifndef POLICY_RECORD_H__
|
||||
#define POLICY_RECORD_H__
|
||||
|
||||
#include <QtCore/QString>
|
||||
|
||||
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
|
@@ -0,0 +1,12 @@
|
||||
#include "QueriedPolicy.h"
|
||||
|
||||
|
||||
|
||||
QueriedPolicy::QueriedPolicy()
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
QueriedPolicy::~QueriedPolicy()
|
||||
{
|
||||
}
|
@@ -0,0 +1,189 @@
|
||||
|
||||
#ifndef QUERIEDPOLICY_H__
|
||||
#define QUERIEDPOLICY_H__
|
||||
|
||||
#include <QtCore/QString>
|
||||
|
||||
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
|
@@ -26,6 +26,8 @@
|
||||
<ClCompile Include="..\..\..\source\StringCodeConverter.cpp" />
|
||||
<ClCompile Include="..\..\..\source\SystemData.cpp" />
|
||||
<ClCompile Include="..\..\..\source\SystemDataQuery.cpp" />
|
||||
<ClCompile Include="PolicyRecord.cpp" />
|
||||
<ClCompile Include="QueriedPolicy.cpp" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ClInclude Include="..\..\..\source\DataManipulation.h" />
|
||||
@@ -33,6 +35,8 @@
|
||||
<ClInclude Include="..\..\..\source\StringCodeConverter.h" />
|
||||
<ClInclude Include="..\..\..\source\SystemData.h" />
|
||||
<ClInclude Include="..\..\..\source\SystemDataQuery.h" />
|
||||
<ClInclude Include="PolicyRecord.h" />
|
||||
<ClInclude Include="QueriedPolicy.h" />
|
||||
<QtMoc Include="..\..\..\source\QTelSalePolicyInfoQuery.h" />
|
||||
<QtMoc Include="..\..\..\source\QTelSalePolicyInfoInputWidget.h" />
|
||||
<QtMoc Include="..\..\..\source\QRapidInputWidget.h" />
|
||||
@@ -183,14 +187,15 @@
|
||||
<ImportGroup Label="Shared" />
|
||||
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
|
||||
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
||||
<Import Project="..\..\..\..\..\..\..\..\sdk\cpp\libxl\libxl-3.8.1.0\libxl_3.8.1.0_x64.props" />
|
||||
<Import Project="..\..\..\..\..\..\..\..\sdk\cpp\sqlapi\4.2.2\sql_api_4.2.2_vs2017_x64_debug.props" />
|
||||
<Import Project="..\..\..\..\..\..\..\..\sdk\cpp\ocilib\4.5.1\ocilib_4.5.1_x64.props" />
|
||||
<Import Project="..\..\..\..\..\..\..\..\..\sdk\cpp\libxl\libxl-3.8.1.0\libxl_3.8.1.0_x64.props" />
|
||||
<Import Project="..\..\..\..\..\..\..\..\..\sdk\cpp\ocilib\4.5.1\ocilib_4.5.1_x64.props" />
|
||||
<Import Project="..\..\..\..\..\..\..\..\..\sdk\cpp\sqlapi\4.2.2\sql_api_4.2.2_vs2017_x64_debug.props" />
|
||||
</ImportGroup>
|
||||
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
|
||||
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
||||
<Import Project="..\..\..\..\..\..\..\..\sdk\cpp\libxl\libxl-3.8.1.0\libxl_3.8.1.0_x64.props" />
|
||||
<Import Project="..\..\..\..\..\..\..\..\sdk\cpp\sqlapi\4.2.2\sql_api_4.2.2_vs2017_x64_release.props" />
|
||||
<Import Project="..\..\..\..\..\..\..\..\..\sdk\cpp\libxl\libxl-3.8.1.0\libxl_3.8.1.0_x64.props" />
|
||||
<Import Project="..\..\..\..\..\..\..\..\..\sdk\cpp\ocilib\4.5.1\ocilib_4.5.1_x64.props" />
|
||||
<Import Project="..\..\..\..\..\..\..\..\..\sdk\cpp\sqlapi\4.2.2\sql_api_4.2.2_vs2017_x64_release.props" />
|
||||
</ImportGroup>
|
||||
<PropertyGroup Label="UserMacros" />
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
|
||||
|
@@ -73,6 +73,15 @@
|
||||
<Filter Include="窗口\层叠窗口\层叠子窗口">
|
||||
<UniqueIdentifier>{5ed8d50c-a7a1-44fb-9a70-d0706a101021}</UniqueIdentifier>
|
||||
</Filter>
|
||||
<Filter Include="数据\数据库操作\对象">
|
||||
<UniqueIdentifier>{fe2000bd-b5b0-4e6e-8f01-523f4ea4d2d2}</UniqueIdentifier>
|
||||
</Filter>
|
||||
<Filter Include="数据\数据库操作\对象\查询用对象">
|
||||
<UniqueIdentifier>{90d33bfa-f36b-4430-a704-06f5c57f9462}</UniqueIdentifier>
|
||||
</Filter>
|
||||
<Filter Include="数据\数据库操作\对象\保单对象">
|
||||
<UniqueIdentifier>{1c207223-121f-4a0e-a313-ccb5c23c1a76}</UniqueIdentifier>
|
||||
</Filter>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ClCompile Include="..\..\..\source\sqlite\sqlite3.c">
|
||||
@@ -120,6 +129,12 @@
|
||||
<ClCompile Include="..\..\..\source\QMainWidget.cpp">
|
||||
<Filter>窗口\层叠窗口\层叠子窗口</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="QueriedPolicy.cpp">
|
||||
<Filter>数据\数据库操作\对象\查询用对象</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="PolicyRecord.cpp">
|
||||
<Filter>数据\数据库操作\对象\保单对象</Filter>
|
||||
</ClCompile>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ClInclude Include="..\..\..\source\sqlite\sqlite3.h">
|
||||
@@ -143,6 +158,12 @@
|
||||
<ClInclude Include="..\..\..\source\Parameters.h">
|
||||
<Filter>数据\参数管理</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="QueriedPolicy.h">
|
||||
<Filter>数据\数据库操作\对象\查询用对象</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="PolicyRecord.h">
|
||||
<Filter>数据\数据库操作\对象\保单对象</Filter>
|
||||
</ClInclude>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Image Include="..\..\..\source\Resources\car.png">
|
||||
|
Reference in New Issue
Block a user