⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 servicechargetransaction.cpp

📁 著名的uncle Bob的Agile software development的代码
💻 CPP
字号:
#include "ServiceChargeTransaction.h"#include "Employee.h"#include "ServiceCharge.h"#include "PayrollDatabase.h"#include "UnionAffiliation.h"extern PayrollDatabase GpayrollDatabase;ServiceChargeTransaction::~ServiceChargeTransaction(){}ServiceChargeTransaction::ServiceChargeTransaction(int memberId, const Date& date, double charge):itsMemberId(memberId), itsDate(date), itsCharge(charge){}void ServiceChargeTransaction::Execute(){  Employee* e = GpayrollDatabase.GetUnionMember(itsMemberId);  Affiliation* af = e->GetAffiliation();  if (UnionAffiliation* uaf = dynamic_cast<UnionAffiliation*>(af)) {    uaf->AddServiceCharge(itsDate, itsCharge);  }}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -