using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace OASystem.Domain.ViewModels.QiYeWeChat { /// /// 打卡日报数据 View /// public class CheckInDayDataView : ResponseBase { public List datas { get; set; } } public class Root { /// /// /// public Base_info? base_info { get; set; } /// /// /// public Summary_info? summary_info { get; set; } /// /// /// public List? holiday_infos { get; set; } /// /// /// public List? exception_infos { get; set; } /// /// /// public Ot_info? ot_info { get; set; } /// /// /// public List? sp_items { get; set; } } public class Exception_infos { /// /// 校准状态类型:1-迟到;2-早退;3-缺卡;4-旷工;5-地点异常;6-设备异常 /// public int exception { get; set; } /// /// 当日此异常的次数 /// public int count { get; set; } /// /// 当日此异常的时长(迟到/早退/旷工才有值) /// public int duration { get; set; } } public class Holiday_infos { public string? sp_number { get; set; } public Sp_title? sp_title { get; set; } public Sp_description? sp_description { get; set; } } public class Sp_title { public List? data { get; set; } } public class Sp_description { public List? data { get; set; } } public class CheckintimeItem { /// /// /// public int work_sec { get; set; } /// /// /// public int off_work_sec { get; set; } } public class Rule_info { /// /// /// public int groupid { get; set; } /// /// 普通白班 /// public string groupname { get; set; } /// /// /// public int scheduleid { get; set; } /// /// /// public string schedulename { get; set; } /// /// /// public List checkintime { get; set; } } public class Base_info { /// /// 日报日期 /// public long date { get; set; } /// /// 日报日期 dt /// public DateTime dateDt { get { return new DateTime(date * 10000000 + 621355968000000000L).ToLocalTime(); } } /// /// 记录类型:1-固定上下班;2-外出(此报表中不会出现外出打卡数据);3-按班次上下班;4-自由签到;5-加班;7-无规则 /// public int record_type { get; set; } /// /// 打卡人员姓名 /// public string name { get; set; } /// /// 打卡人员别名 /// public string name_ex { get; set; } /// /// 打卡人员所在部门,会显示所有所在部门 /// public string departs_name { get; set; } /// /// 打卡人员账号,即userid /// public string acctid { get; set; } /// /// /// public Rule_info rule_info { get; set; } /// /// 日报类型:0-工作日日报;1-休息日日报 /// public int day_type { get; set; } } public class Summary_info { /// /// /// public int checkin_count { get; set; } /// /// /// public int regular_work_sec { get; set; } /// /// /// public int standard_work_sec { get; set; } /// /// /// public int earliest_time { get; set; } /// /// /// public int lastest_time { get; set; } } public class Ot_info { /// /// /// public int ot_status { get; set; } /// /// /// public int ot_duration { get; set; } /// /// /// public List? exception_duration { get; set; } } public class Sp_items { /// /// /// public int type { get; set; } /// /// /// public int vacation_id { get; set; } /// /// /// public int count { get; set; } /// /// /// public int duration { get; set; } /// /// /// public int time_type { get; set; } /// /// 年假 /// public string name { get; set; } } }