...
This commit is contained in:
parent
30115756b3
commit
eb6bdf43a0
@ -1,5 +1,230 @@
|
||||
#pragma once
|
||||
|
||||
#include <string>
|
||||
|
||||
class CarDealerAchievement
|
||||
{
|
||||
};
|
||||
public:
|
||||
|
||||
CarDealerAchievement( const std::wstring & theYear,
|
||||
const std::wstring & theMonth,
|
||||
const std::wstring & carDealerCode,
|
||||
const long double checkedAchievement,
|
||||
const int policyAmount,
|
||||
const int cpicAmount,
|
||||
const int piccAmount,
|
||||
const int pinganAmount,
|
||||
const int othersAmount )
|
||||
: theYear( theYear ),
|
||||
theMonth( theMonth ),
|
||||
carDealerCode( carDealerCode ),
|
||||
checkedAchievement( checkedAchievement ),
|
||||
policyAmount( policyAmount ),
|
||||
cpicAmount( cpicAmount ),
|
||||
piccAmount( piccAmount ),
|
||||
pinganAmount( pinganAmount ),
|
||||
othersAmount( othersAmount )
|
||||
{
|
||||
}
|
||||
|
||||
CarDealerAchievement( const wchar_t * theYear,
|
||||
const wchar_t * theMonth,
|
||||
const wchar_t * carDealerCode,
|
||||
const long double checkedAchievement,
|
||||
const int policyAmount,
|
||||
const int cpicAmount,
|
||||
const int piccAmount,
|
||||
const int pinganAmount,
|
||||
const int othersAmount )
|
||||
: theYear( theYear ),
|
||||
theMonth( theMonth ),
|
||||
carDealerCode( carDealerCode ),
|
||||
checkedAchievement( checkedAchievement ),
|
||||
policyAmount( policyAmount ),
|
||||
cpicAmount( cpicAmount ),
|
||||
piccAmount( piccAmount ),
|
||||
pinganAmount( pinganAmount ),
|
||||
othersAmount( othersAmount )
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
CarDealerAchievement( const CarDealerAchievement & other )
|
||||
: theYear( other.theYear ),
|
||||
theMonth( other.theMonth ),
|
||||
carDealerCode( other.carDealerCode ),
|
||||
checkedAchievement( other.checkedAchievement ),
|
||||
policyAmount( other.policyAmount ),
|
||||
cpicAmount( other.cpicAmount ),
|
||||
piccAmount( other.piccAmount ),
|
||||
pinganAmount( other.pinganAmount ),
|
||||
othersAmount( other.othersAmount )
|
||||
{
|
||||
}
|
||||
|
||||
CarDealerAchievement( CarDealerAchievement && other )
|
||||
: theYear( std::move(other.theYear) ),
|
||||
theMonth( std::move(other.theMonth) ),
|
||||
carDealerCode( std::move(other.carDealerCode) ),
|
||||
checkedAchievement( other.checkedAchievement ),
|
||||
policyAmount( other.policyAmount ),
|
||||
cpicAmount( other.cpicAmount ),
|
||||
piccAmount( other.piccAmount ),
|
||||
pinganAmount( other.pinganAmount ),
|
||||
othersAmount( other.othersAmount )
|
||||
{
|
||||
}
|
||||
|
||||
CarDealerAchievement & operator=( const CarDealerAchievement & other )
|
||||
{
|
||||
if ( this == &other )
|
||||
return *this;
|
||||
theYear = other.theYear;
|
||||
theMonth = other.theMonth;
|
||||
carDealerCode = other.carDealerCode;
|
||||
checkedAchievement = other.checkedAchievement;
|
||||
policyAmount = other.policyAmount;
|
||||
cpicAmount = other.cpicAmount;
|
||||
piccAmount = other.piccAmount;
|
||||
pinganAmount = other.pinganAmount;
|
||||
othersAmount = other.othersAmount;
|
||||
return *this;
|
||||
}
|
||||
|
||||
CarDealerAchievement & operator=( CarDealerAchievement && other )
|
||||
{
|
||||
if ( this == &other )
|
||||
return *this;
|
||||
theYear = std::move( other.theYear );
|
||||
theMonth = std::move( other.theMonth );
|
||||
carDealerCode = std::move( other.carDealerCode );
|
||||
checkedAchievement = other.checkedAchievement;
|
||||
policyAmount = other.policyAmount;
|
||||
cpicAmount = other.cpicAmount;
|
||||
piccAmount = other.piccAmount;
|
||||
pinganAmount = other.pinganAmount;
|
||||
othersAmount = other.othersAmount;
|
||||
return *this;
|
||||
}
|
||||
|
||||
|
||||
friend bool operator==( const CarDealerAchievement & lhs, const CarDealerAchievement & rhs )
|
||||
{
|
||||
return lhs.theYear == rhs.theYear
|
||||
&& lhs.theMonth == rhs.theMonth
|
||||
&& lhs.carDealerCode == rhs.carDealerCode
|
||||
&& lhs.checkedAchievement == rhs.checkedAchievement
|
||||
&& lhs.policyAmount == rhs.policyAmount
|
||||
&& lhs.cpicAmount == rhs.cpicAmount
|
||||
&& lhs.piccAmount == rhs.piccAmount
|
||||
&& lhs.pinganAmount == rhs.pinganAmount
|
||||
&& lhs.othersAmount == rhs.othersAmount;
|
||||
}
|
||||
|
||||
friend bool operator!=( const CarDealerAchievement & lhs, const CarDealerAchievement & rhs )
|
||||
{
|
||||
return !(lhs == rhs);
|
||||
}
|
||||
|
||||
|
||||
std::wstring getTheYear() const
|
||||
{
|
||||
return theYear;
|
||||
}
|
||||
|
||||
void setTheYear( const std::wstring & theYear )
|
||||
{
|
||||
this->theYear = theYear;
|
||||
}
|
||||
|
||||
std::wstring getTheMonth() const
|
||||
{
|
||||
return theMonth;
|
||||
}
|
||||
|
||||
void setTheMonth( const std::wstring & theMonth )
|
||||
{
|
||||
this->theMonth = theMonth;
|
||||
}
|
||||
|
||||
std::wstring getCarDealerCode() const
|
||||
{
|
||||
return carDealerCode;
|
||||
}
|
||||
|
||||
void setCarDealerCode( const std::wstring & carDealerCode )
|
||||
{
|
||||
this->carDealerCode = carDealerCode;
|
||||
}
|
||||
|
||||
long double getCheckedAchievement() const
|
||||
{
|
||||
return checkedAchievement;
|
||||
}
|
||||
|
||||
void setCheckedAchievement( const long double checkedAchievement )
|
||||
{
|
||||
this->checkedAchievement = checkedAchievement;
|
||||
}
|
||||
|
||||
int getPolicyAmount() const
|
||||
{
|
||||
return policyAmount;
|
||||
}
|
||||
|
||||
void setPolicyAmount( const int policyAmount )
|
||||
{
|
||||
this->policyAmount = policyAmount;
|
||||
}
|
||||
|
||||
int getCpicAmount() const
|
||||
{
|
||||
return cpicAmount;
|
||||
}
|
||||
|
||||
void setCpicAmount( const int cpicAmount )
|
||||
{
|
||||
this->cpicAmount = cpicAmount;
|
||||
}
|
||||
|
||||
int getPiccAmount() const
|
||||
{
|
||||
return piccAmount;
|
||||
}
|
||||
|
||||
void setPiccAmount( const int piccAmount )
|
||||
{
|
||||
this->piccAmount = piccAmount;
|
||||
}
|
||||
|
||||
int getPinganAmount() const
|
||||
{
|
||||
return pinganAmount;
|
||||
}
|
||||
|
||||
void setPinganAmount( const int pinganAmount )
|
||||
{
|
||||
this->pinganAmount = pinganAmount;
|
||||
}
|
||||
|
||||
int getOthersAmount() const
|
||||
{
|
||||
return othersAmount;
|
||||
}
|
||||
|
||||
void setOthersAmount( const int othersAmount )
|
||||
{
|
||||
this->othersAmount = othersAmount;
|
||||
}
|
||||
|
||||
private:
|
||||
std::wstring theYear;
|
||||
std::wstring theMonth;
|
||||
std::wstring carDealerCode;
|
||||
long double checkedAchievement;
|
||||
int policyAmount;
|
||||
int cpicAmount;
|
||||
int piccAmount;
|
||||
int pinganAmount;
|
||||
int othersAmount;
|
||||
};
|
||||
|
@ -1,6 +1,19 @@
|
||||
#pragma once
|
||||
|
||||
#include <string>
|
||||
|
||||
class CarDealerScheme
|
||||
{
|
||||
public:
|
||||
|
||||
private:
|
||||
std::wstring theYear;
|
||||
std::wstring theMonth;
|
||||
std::wstring carDealerCode;
|
||||
std::wstring manHourPrice;
|
||||
std::wstring partPrice;
|
||||
std::wstring claimSupport; //理赔支持
|
||||
std::wstring scheme;
|
||||
std::wstring isQualified; //是否达成预期
|
||||
};
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user