/************************************************************************/ /* Copyright (C), 2016-2020, [IT], 保留所有权利; /* 模 块 名:; /* 描 述:; /* /* 版 本:[V]; /* 作 者:[IT]; /* 日 期:[12/3/2016]; /* /* /* 注 意:; /* /* 修改记录:[IT]; /* 修改日期:; /* 修改版本:; /* 修改内容:; /************************************************************************/ #pragma once #define WAGE_EARLY_PHOTOGRAPHER _T("摄影前期") #ifdef CHILD_VERSION #define WAGE_EARLY_MAKEUPARTIST _T("引导前期") #else #define WAGE_EARLY_MAKEUPARTIST _T("化妆前期") #endif #define WAGE_EARLY_SALES _T("门市前期") #define WAGE_SEL_SALES _T("选片二销") #define WAGE_SEC_PHOTOGRAPHER _T("摄影二销") #define WAGE_UPG_PACKAGE _T("套系升级") #define WAGE_SEL_PHOTOGRAPHER _T("摄影选片二销") #ifdef CHILD_VERSION #define WAGE_SEL_MAKEUPARTIST _T("引导选片二销") #define WAGE_SEC_MAKEUPARTIST _T("引导二销") #else #define WAGE_SEL_MAKEUPARTIST _T("化妆选片二销") #define WAGE_SEC_MAKEUPARTIST _T("化妆二销") #endif class CStaffWage { public: CStaffWage(void); ~CStaffWage(void); public: CString m_strStaffName; CString m_strWageStartDate; CString m_strWageEndofDate; // 所有员工详情; CArray m_AryStaffDetail; // 指定收款日期的所有收款记录; CArray m_AryReceiptRecords; // 指定收款日期和员工的所有订单详情; CArray m_AryOrderDetail; // 指定收款日期的其他收入(散客消费)记录; CArray m_AryOtherIncomeRecord; // 指定收款日期的摄影师与化妆师的景点工作记录; CArray m_ArySceneryWorkRecord; // 指定收款日期的员工的我的工作记录; CArray m_AryMyWorkRecord; // 指定收款日期的员工的数码工作记录; CArray m_AryDigitalWorkRecord; // 计件式提成比例; CArray m_AryWorkrate; // 解析出来的结果; CArray m_AryEarlyResult; // 每项工资类型结果; CStringArray m_AryWageType; // 工资类型结果金额累加值; CArray m_AryWageTypeMoney; // 前期业绩金额; FLOAT m_fEaryResultMoney; // 选片二销; FLOAT m_fSelectMoney; public: // 清空数据; void ClearStaffWageData(); // 查询指定员工和工资日期的所有相关数据; BOOL GetStaffWageData(IN CString strStaffName, IN CString strWageStartDate, IN CString strWageEndofDate); // 是否有摄影师和化妆服务记录; void GetPhotographerAndMakeupArtistServeRecord(IN CString strOrderNum, IN BOOL &bPhotographer, IN BOOL &bMakeupArtist, IN FLOAT &fPhotographerPercent, IN FLOAT &fMakeupArtistPercent); // 是否有门市(销售)服务记录; void GetSalesServerRecord(IN CString strOrderNum, IN BOOL &bSalesperson1, IN BOOL &bSalesperson2, IN FLOAT &fbSalesperson1Percent, IN FLOAT &fbSalesperson2Percent); // 获取前期业绩(错误:这里不仅仅是前期业绩,还包含后期业绩也就是二销); BOOL GetEarlyResults(IN CArray& AryEarlyResult); public: CString GetRule(CString name); float GetSalaryFromRule(float fmoney, CString rule); // 是否有摄影师和化妆服务记录; void GetPhotographerAndMakeupArtistServeRecord(IN CString strStaffName, IN CString strOrderNum, IN BOOL &bPhotographer, IN BOOL &bMakeupArtist, IN FLOAT &fPhotographerPercent, IN FLOAT &fMakeupArtistPercent); // 是否有门市(销售)服务记录; void GetSalesServerRecord(IN CString strStaffName, IN CString strOrderNum, IN BOOL &bSalesperson1, IN BOOL &bSalesperson2, IN FLOAT &fbSalesperson1Percent, IN FLOAT &fbSalesperson2Percent); // 查询指定员工和工资日期的所有相关数据; BOOL GetAllStaffWageData(IN CString strWageStartDate, IN CString strWageEndofDate); // 获取员工前期业绩(错误:这里不仅仅是前期业绩,还包含后期业绩也就是二销); BOOL GetEarlyResults(IN CString strStaffName); // 获取员工门市前期业绩工资; FLOAT GetStaffSignerWage(IN CString strSaffName); // 获取员工摄影/化妆前期业绩工资; FLOAT GetStaffPhotograhperMakeupArtistWage(IN CString strStaffName); // 获取员工后期业绩工资; FLOAT GetStaffLateWage(IN CString strStaffName,OUT FLOAT &fTotalMoney); // 获取员工计件式提成金额; FLOAT GetStaffDigitalWage(IN CString strStaffName); // 获取员工总工资; FLOAT GetStaffTotalWage(IN CString strStaffName); };