尝试中文变量名
This commit is contained in:
parent
f927673fa3
commit
a129349734
|
@ -1,4 +1,226 @@
|
|||
|
||||
#pragma once
|
||||
|
||||
#include <QString>
|
||||
#include <iostream>
|
||||
|
||||
class repair_suggestion_record
|
||||
{
|
||||
public:
|
||||
|
||||
repair_suggestion_record(const QString& 工单号,
|
||||
const QString& 工单类型,
|
||||
const QString& 报案号,
|
||||
const QString& 推荐车商代码,
|
||||
const QString& 推荐车商名称,
|
||||
const QString& 出险日期,
|
||||
const QString& 车牌号,
|
||||
const QString& 品牌名称,
|
||||
const QString& 短信类型,
|
||||
const QString& 发送时间,
|
||||
const QString& 数据来源)
|
||||
: 工单号_(工单号),
|
||||
工单类型_(工单类型),
|
||||
报案号_(报案号),
|
||||
推荐车商代码_(推荐车商代码),
|
||||
推荐车商名称_(推荐车商名称),
|
||||
出险日期_(出险日期),
|
||||
车牌号_(车牌号),
|
||||
品牌名称_(品牌名称),
|
||||
短信类型_(短信类型),
|
||||
发送时间_(发送时间),
|
||||
数据来源_(数据来源)
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
repair_suggestion_record(const repair_suggestion_record& other)
|
||||
: 工单号_(other.工单号_),
|
||||
工单类型_(other.工单类型_),
|
||||
报案号_(other.报案号_),
|
||||
推荐车商代码_(other.推荐车商代码_),
|
||||
推荐车商名称_(other.推荐车商名称_),
|
||||
出险日期_(other.出险日期_),
|
||||
车牌号_(other.车牌号_),
|
||||
品牌名称_(other.品牌名称_),
|
||||
短信类型_(other.短信类型_),
|
||||
发送时间_(other.发送时间_),
|
||||
数据来源_(other.数据来源_)
|
||||
{
|
||||
}
|
||||
|
||||
repair_suggestion_record(repair_suggestion_record&& other)
|
||||
: 工单号_(std::move(other.工单号_)),
|
||||
工单类型_(std::move(other.工单类型_)),
|
||||
报案号_(std::move(other.报案号_)),
|
||||
推荐车商代码_(std::move(other.推荐车商代码_)),
|
||||
推荐车商名称_(std::move(other.推荐车商名称_)),
|
||||
出险日期_(std::move(other.出险日期_)),
|
||||
车牌号_(std::move(other.车牌号_)),
|
||||
品牌名称_(std::move(other.品牌名称_)),
|
||||
短信类型_(std::move(other.短信类型_)),
|
||||
发送时间_(std::move(other.发送时间_)),
|
||||
数据来源_(std::move(other.数据来源_))
|
||||
{
|
||||
}
|
||||
|
||||
repair_suggestion_record& operator=(const repair_suggestion_record& other)
|
||||
{
|
||||
if (this == &other)
|
||||
return *this;
|
||||
工单号_ = other.工单号_;
|
||||
工单类型_ = other.工单类型_;
|
||||
报案号_ = other.报案号_;
|
||||
推荐车商代码_ = other.推荐车商代码_;
|
||||
推荐车商名称_ = other.推荐车商名称_;
|
||||
出险日期_ = other.出险日期_;
|
||||
车牌号_ = other.车牌号_;
|
||||
品牌名称_ = other.品牌名称_;
|
||||
短信类型_ = other.短信类型_;
|
||||
发送时间_ = other.发送时间_;
|
||||
数据来源_ = other.数据来源_;
|
||||
return *this;
|
||||
}
|
||||
|
||||
repair_suggestion_record& operator=(repair_suggestion_record&& other)
|
||||
{
|
||||
if (this == &other)
|
||||
return *this;
|
||||
工单号_ = std::move(other.工单号_);
|
||||
工单类型_ = std::move(other.工单类型_);
|
||||
报案号_ = std::move(other.报案号_);
|
||||
推荐车商代码_ = std::move(other.推荐车商代码_);
|
||||
推荐车商名称_ = std::move(other.推荐车商名称_);
|
||||
出险日期_ = std::move(other.出险日期_);
|
||||
车牌号_ = std::move(other.车牌号_);
|
||||
品牌名称_ = std::move(other.品牌名称_);
|
||||
短信类型_ = std::move(other.短信类型_);
|
||||
发送时间_ = std::move(other.发送时间_);
|
||||
数据来源_ = std::move(other.数据来源_);
|
||||
return *this;
|
||||
}
|
||||
|
||||
|
||||
QString get工单号() const
|
||||
{
|
||||
return 工单号_;
|
||||
}
|
||||
|
||||
void set工单号(const QString& 工单号)
|
||||
{
|
||||
工单号_ = 工单号;
|
||||
}
|
||||
|
||||
QString get工单类型() const
|
||||
{
|
||||
return 工单类型_;
|
||||
}
|
||||
|
||||
void set工单类型(const QString& 工单类型)
|
||||
{
|
||||
工单类型_ = 工单类型;
|
||||
}
|
||||
|
||||
QString get报案号() const
|
||||
{
|
||||
return 报案号_;
|
||||
}
|
||||
|
||||
void set报案号(const QString& 报案号)
|
||||
{
|
||||
报案号_ = 报案号;
|
||||
}
|
||||
|
||||
QString get推荐车商代码() const
|
||||
{
|
||||
return 推荐车商代码_;
|
||||
}
|
||||
|
||||
void set推荐车商代码(const QString& 推荐车商代码)
|
||||
{
|
||||
推荐车商代码_ = 推荐车商代码;
|
||||
}
|
||||
|
||||
QString get推荐车商名称() const
|
||||
{
|
||||
return 推荐车商名称_;
|
||||
}
|
||||
|
||||
void set推荐车商名称(const QString& 推荐车商名称)
|
||||
{
|
||||
推荐车商名称_ = 推荐车商名称;
|
||||
}
|
||||
|
||||
QString get出险日期() const
|
||||
{
|
||||
return 出险日期_;
|
||||
}
|
||||
|
||||
void set出险日期(const QString& 出险日期)
|
||||
{
|
||||
出险日期_ = 出险日期;
|
||||
}
|
||||
|
||||
QString get车牌号() const
|
||||
{
|
||||
return 车牌号_;
|
||||
}
|
||||
|
||||
void set车牌号(const QString& 车牌号)
|
||||
{
|
||||
车牌号_ = 车牌号;
|
||||
}
|
||||
|
||||
QString get品牌名称() const
|
||||
{
|
||||
return 品牌名称_;
|
||||
}
|
||||
|
||||
void set品牌名称(const QString& 品牌名称)
|
||||
{
|
||||
品牌名称_ = 品牌名称;
|
||||
}
|
||||
|
||||
QString get短信类型() const
|
||||
{
|
||||
return 短信类型_;
|
||||
}
|
||||
|
||||
void set短信类型(const QString& 短信类型)
|
||||
{
|
||||
短信类型_ = 短信类型;
|
||||
}
|
||||
|
||||
QString get发送时间() const
|
||||
{
|
||||
return 发送时间_;
|
||||
}
|
||||
|
||||
void set发送时间(const QString& 发送时间)
|
||||
{
|
||||
发送时间_ = 发送时间;
|
||||
}
|
||||
|
||||
QString get数据来源() const
|
||||
{
|
||||
return 数据来源_;
|
||||
}
|
||||
|
||||
void set数据来源(const QString& 数据来源)
|
||||
{
|
||||
数据来源_ = 数据来源;
|
||||
}
|
||||
|
||||
private:
|
||||
QString 工单号_;
|
||||
QString 工单类型_;
|
||||
QString 报案号_;
|
||||
QString 推荐车商代码_;
|
||||
QString 推荐车商名称_;
|
||||
QString 出险日期_;
|
||||
QString 车牌号_;
|
||||
QString 品牌名称_;
|
||||
QString 短信类型_;
|
||||
QString 发送时间_;
|
||||
QString 数据来源_;
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue