StaffWage.h 2.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. /************************************************************************/
  2. /* Copyright (C), 2016-2020, [IT], 保留所有权利;
  3. /* 模 块 名:;
  4. /* 描 述:;
  5. /*
  6. /* 版 本:[V];
  7. /* 作 者:[IT];
  8. /* 日 期:[12/3/2016];
  9. /*
  10. /*
  11. /* 注 意:;
  12. /*
  13. /* 修改记录:[IT];
  14. /* 修改日期:;
  15. /* 修改版本:;
  16. /* 修改内容:;
  17. /************************************************************************/
  18. #pragma once
  19. #define WAGE_EARLY_PHOTOGRAPHER _T("摄影前期")
  20. #define WAGE_EARLY_MAKEUPARTIST _T("化妆前期")
  21. #define WAGE_EARLY_SALES _T("门市前期")
  22. #define WAGE_SEL_SALES _T("选片二销")
  23. #define WAGE_SEC_PHOTOGRAPHER _T("摄影二销")
  24. #define WAGE_UPG_PACKAGE _T("套系升级")
  25. #define WAGE_SEL_PHOTOGRAPHER _T("摄影选片二销")
  26. #ifdef CHILD_VERSION
  27. #define WAGE_SEL_MAKEUPARTIST _T("引导选片二销")
  28. #define WAGE_SEC_MAKEUPARTIST _T("引导二销")
  29. #else
  30. #define WAGE_SEL_MAKEUPARTIST _T("化妆选片二销")
  31. #define WAGE_SEC_MAKEUPARTIST _T("化妆二销")
  32. #endif
  33. class CStaffWage
  34. {
  35. public:
  36. CStaffWage(void);
  37. ~CStaffWage(void);
  38. public:
  39. CString m_strStaffName;
  40. CString m_strWageStartDate;
  41. CString m_strWageEndofDate;
  42. // 所有员工详情;
  43. CArray<CStringArray, CStringArray> m_AryStaffDetail;
  44. // 指定收款日期的所有收款记录;
  45. CArray<CStringArray, CStringArray> m_AryReceiptRecords;
  46. // 指定收款日期和员工的所有订单详情;
  47. CArray<CStringArray, CStringArray> m_AryOrderDetail;
  48. // 指定收款日期的其他收入(散客消费)记录;
  49. CArray<CStringArray, CStringArray> m_AryOtherIncomeRecord;
  50. // 指定收款日期的摄影师与化妆师的景点工作记录;
  51. CArray<CStringArray, CStringArray> m_ArySceneryWorkRecord;
  52. // 指定收款日期的员工的我的工作记录;
  53. CArray<CStringArray, CStringArray> m_AryMyWorkRecord;
  54. // 指定收款日期的员工的数码工作记录;
  55. CArray<CStringArray, CStringArray> m_AryDigitalWorkRecord;
  56. // 解析出来的结果;
  57. CArray<CStringArray, CStringArray> m_AryEarlyResult;
  58. // 每项工资类型结果;
  59. CStringArray m_AryWageType;
  60. // 工资类型结果金额累加值;
  61. CArray<FLOAT, FLOAT> m_AryWageTypeMoney;
  62. // 前期业绩金额;
  63. FLOAT m_fEaryResultMoney;
  64. // 选片二销;
  65. FLOAT m_fSelectMoney;
  66. public:
  67. // 清空数据;
  68. void ClearStaffWageData();
  69. // 查询指定员工和工资日期的所有相关数据;
  70. BOOL GetStaffWageData(IN CString strStaffName, IN CString strWageStartDate, IN CString strWageEndofDate);
  71. // 是否有摄影师和化妆服务记录;
  72. void GetPhotographerAndMakeupArtistServeRecord(IN CString strOrderNum, IN BOOL &bPhotographer, IN BOOL &bMakeupArtist, IN FLOAT &fPhotographerPercent, IN FLOAT &fMakeupArtistPercent);
  73. // 是否有门市(销售)服务记录;
  74. void GetSalesServerRecord(IN CString strOrderNum, IN BOOL &bSalesperson1, IN BOOL &bSalesperson2, IN FLOAT &fbSalesperson1Percent, IN FLOAT &fbSalesperson2Percent);
  75. // 获取前期业绩;
  76. BOOL GetEarlyReuslts(IN CArray<CStringArray, CStringArray>& AryEarlyResult);
  77. };