123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340 |
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- namespace OASystem.Domain.ViewModels.QiYeWeChat
- {
- #region 企业微信 API 获取企业打卡规则
-
-
-
- public class CorpCheckInRuleView : ResponseBase
- {
-
-
-
- public List<GroupItem>? group { get; set; }
- }
- public class GroupItem
- {
-
-
-
- public int grouptype { get; set; }
-
-
-
- public int groupid { get; set; }
-
-
-
- public string groupname { get; set; }
-
-
-
- public List<spe_offdaysItem> spe_offdays { get; set; }
- }
-
-
-
- public class spe_offdaysItem
- {
-
-
-
- public string notes { get; set; }
- public long timestamp { get; set; }
- public List<long> checkintime { get; set; }
- public int type { get; set; }
-
-
-
- public long begtime { get; set; }
-
-
-
- public DateTime begtime_dt
- {
- get
- {
- return new DateTime(begtime * 10000000 + 621355968000000000L).ToLocalTime();
- }
- }
- public long endtime { get; set; }
-
-
-
- public DateTime endtime_dt
- {
- get
- {
- return new DateTime(endtime * 10000000 + 621355968000000000L).ToLocalTime();
- }
- }
- }
- #endregion
-
-
-
-
- public class CheckInView:ResponseBase
- {
-
-
-
- public List<Data>? datas { get; set; }
- }
-
-
-
- public class Data
- {
-
-
-
- public Base_Info? base_info { get; set; }
-
-
-
- public Summary_Info? summary_info { get; set; }
-
-
-
- public List<Exception_Info>? exception_infos { get; set; }
-
-
-
- public List<Sp_Item>? sp_items { get; set; }
-
-
-
- public Overwork_Info? overwork_info { get; set; }
- }
-
-
-
- public class Base_Info
- {
-
-
-
- public int record_type { get; set; }
-
-
-
- public string? name { get; set; }
-
-
-
- public string? name_ex { get; set; }
-
-
-
- public string? departs_name { get; set; }
-
-
-
- public string? acctid { get; set; }
-
-
-
- public Rule_Info? rule_info { get; set; }
- }
-
-
-
- public class Rule_Info
- {
-
-
-
- public int groupid { get; set; }
-
-
-
- public string? groupname { get; set; }
- }
-
-
-
- public class Summary_Info
- {
-
-
-
- public int work_days { get; set; }
-
-
-
- public int regular_days { get; set; }
-
-
-
- public int except_days { get; set; }
-
-
-
- public int regular_work_sec { get; set; }
-
-
-
- public int standard_work_sec { get; set; }
- }
-
-
-
- public class Exception_Info
- {
-
-
-
- public int exception { get; set; }
-
-
-
- public int count { get; set; }
-
-
-
- public int duration { get; set; }
- }
-
-
-
- public class Sp_Item
- {
-
-
-
- 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; }
- }
-
-
-
- public class Overwork_Info
- {
-
-
-
- public int? workday_over_sec { get; set; }
-
-
-
- public int? holidays_over_sec { get; set; }
-
-
-
- public int? restdays_over_sec { get; set; }
- }
- public class AssessmentByUserListView : ResponseBase
- {
- public List<AssessmentByUserView> Data { get; set; }
- }
- public class AssessmentByUserView
- {
- public string Name { get; set; }
- public string Accid { get; set; }
- public int Regular_days { get; set; }
- public int Except_days { get; set; }
- public List<Exception_info> Exception_info_List { get; set; }
- public int Work_days { get; set; }
- }
- public class Exception_info
- {
- public ErrorType Type { get; set; }
- public DateTime Date { get; set; }
- public string Info { get; set; }
- }
- public enum ErrorType
- {
- 迟到 = 1,
- 早退 = 2,
- 缺卡 = 3,
- 旷工 = 4,
- 地点异常 = 5,
- 设备异常 = 6
- }
- }
|