|
@@ -0,0 +1,34 @@
|
|
|
+#include "area_business_car_attendance.h"
|
|
|
+
|
|
|
+struct car_attendance_data:business_data
|
|
|
+{
|
|
|
+ car_attendance_data():m_is_attendance(false)
|
|
|
+ ,m_attendance_start_time(std::chrono::seconds(0))
|
|
|
+ {
|
|
|
+ }
|
|
|
+
|
|
|
+ ///考勤状态 0初始状态 1 没在考勤 2 考勤;参看ATTENDANCE_STATUS
|
|
|
+ bool m_is_attendance;
|
|
|
+ ///考勤开始时间
|
|
|
+ std::chrono::system_clock::time_point m_attendance_start_time;
|
|
|
+};
|
|
|
+
|
|
|
+area_business_car_attendance::area_business_car_attendance()
|
|
|
+{
|
|
|
+}
|
|
|
+
|
|
|
+
|
|
|
+//记录进入时间等信息,结束考勤,根据离开的时间和距离,判断是否记录一条新的考勤记录
|
|
|
+void on_enter(const std::shared_ptr<area_hover>&a,const std::shared_ptr<card_location_base>&c,std::shared_ptr<business_data>&ptr)
|
|
|
+{
|
|
|
+
|
|
|
+}
|
|
|
+void on_hover(const std::shared_ptr<area_hover>&a,const std::shared_ptr<card_location_base>&c,std::shared_ptr<business_data> ptr)
|
|
|
+{
|
|
|
+
|
|
|
+}
|
|
|
+//记录离开考勤区域信息,开始考勤
|
|
|
+void on_leave(const std::shared_ptr<area_hover>&a,const std::shared_ptr<card_location_base>&c,std::shared_ptr<business_data> ptr)
|
|
|
+{
|
|
|
+
|
|
|
+}
|