using System;
using System.Xml.Serialization;
using System.Collections.Generic;
using Top.Api;
namespace DingTalk.Api.Response
{
///
/// OapiAttendanceVacationTypeListResponse.
///
public class OapiAttendanceVacationTypeListResponse : DingTalkResponse
{
///
/// dingOpenErrcode
///
[XmlElement("errcode")]
public long Errcode { get; set; }
///
/// errorMsg
///
[XmlElement("errmsg")]
public string Errmsg { get; set; }
///
/// result
///
[XmlArray("result")]
[XmlArrayItem("result")]
public List Result { get; set; }
///
/// 是否正确访问
///
[XmlElement("success")]
public bool Success { get; set; }
///
/// LeaveVisibilityRuleVoDomain Data Structure.
///
[Serializable]
public class LeaveVisibilityRuleVoDomain : TopObject
{
///
/// 规则类型:dept-部门;staff-员工;label-角色
///
[XmlElement("type")]
public string Type { get; set; }
///
/// 规则数据:当type=staff时,为员工userId列表;当type=dept时,为部门id列表;当type=label时,为角色id列表
///
[XmlArray("visible")]
[XmlArrayItem("string")]
public List Visible { get; set; }
}
///
/// LeaveCertificateVoDomain Data Structure.
///
[Serializable]
public class LeaveCertificateVoDomain : TopObject
{
///
/// 超过多长时间需提供请假证明
///
[XmlElement("duration")]
public long Duration { get; set; }
///
/// 是否开启请假证明
///
[XmlElement("enable")]
public bool Enable { get; set; }
///
/// 请假提示文案
///
[XmlElement("prompt_information")]
public string PromptInformation { get; set; }
///
/// 请假证明单位hour,day
///
[XmlElement("unit")]
public string Unit { get; set; }
}
///
/// SubmitTimeRuleVoDomain Data Structure.
///
[Serializable]
public class SubmitTimeRuleVoDomain : TopObject
{
///
/// 是否开启限时提交功能:仅且为true时开启
///
[XmlElement("enable_time_limit")]
public bool EnableTimeLimit { get; set; }
///
/// 限制类型:before-提前;after-补交
///
[XmlElement("time_type")]
public string TimeType { get; set; }
///
/// 时间单位:day-天;hour-小时
///
[XmlElement("time_unit")]
public string TimeUnit { get; set; }
///
/// 限制值:timeUnit=day时,有效值范围[0~30] 天;timeUnit=hour时,有效值范围[0~24] 小时
///
[XmlElement("time_value")]
public long TimeValue { get; set; }
}
///
/// ResultDomain Data Structure.
///
[Serializable]
public class ResultDomain : TopObject
{
///
/// 假期类型,普通假期或者加班转调休假期。(general_leave、lieu_leave其中一种)
///
[XmlElement("biz_type")]
public string BizType { get; set; }
///
/// 不需要余额控制的请假类型(如事假)
///
[XmlElement("freedom_leave")]
public bool FreedomLeave { get; set; }
///
/// 每天折算的工作时长(百分之一 例如1天=10小时=1000)
///
[XmlElement("hours_in_per_day")]
public long HoursInPerDay { get; set; }
///
/// 请假证明类
///
[XmlElement("leave_certificate")]
public LeaveCertificateVoDomain LeaveCertificate { get; set; }
///
/// 假期类型唯一标识
///
[XmlElement("leave_code")]
public string LeaveCode { get; set; }
///
/// 取整字段, up或者down
///
[XmlElement("leave_hour_ceil")]
public string LeaveHourCeil { get; set; }
///
/// 假期名称
///
[XmlElement("leave_name")]
public string LeaveName { get; set; }
///
/// 是否开启请假时长是否向上取整
///
[XmlElement("leave_time_ceil")]
public bool LeaveTimeCeil { get; set; }
///
/// 请假时长向上取整时的最小时长单位:hour-不足1小时按照1小时计算;halfHour-不足半小时按照半小时计算
///
[XmlElement("leave_time_ceil_min_unit")]
public string LeaveTimeCeilMinUnit { get; set; }
///
/// 请假单位,可以按照天半天或者小时请假。(day、halfDay、hour其中一种)
///
[XmlElement("leave_view_unit")]
public string LeaveViewUnit { get; set; }
///
/// 最大请假时间
///
[XmlElement("max_leave_time")]
public long MaxLeaveTime { get; set; }
///
/// 请假时,最小请假时长(请假单位为hour时生效),请假时长小于该值时自动取该值,有效值:[0, 23]
///
[XmlElement("min_leave_hour")]
public long MinLeaveHour { get; set; }
///
/// 是否按照自然日统计请假时长,当为false的时候,用户发起请假时候会根据用户在请假时间段内的排班情况来计算请假时长。
///
[XmlElement("natural_day_leave")]
public string NaturalDayLeave { get; set; }
///
/// 是否带薪假期
///
[XmlElement("paid_leave")]
public bool PaidLeave { get; set; }
///
/// 开放接口自定义的:external oa后台新建的:inner
///
[XmlElement("source")]
public string Source { get; set; }
///
/// 限时提交规则
///
[XmlElement("submit_time_rule")]
public SubmitTimeRuleVoDomain SubmitTimeRule { get; set; }
///
/// 有效类型 absolute_time(绝对时间)、relative_time(相对时间)其中一种
///
[XmlElement("validity_type")]
public string ValidityType { get; set; }
///
/// 延长日期(当validity_type为absolute_time该值该值不为空且满足yy-mm格式 validity_type为relative_time该值为大于1的整数)
///
[XmlElement("validity_value")]
public string ValidityValue { get; set; }
///
/// 适用范围规则列表:哪些部门/员工可以使用该假期类型
///
[XmlArray("visibility_rules")]
[XmlArrayItem("leave_visibility_rule_vo")]
public List VisibilityRules { get; set; }
///
/// 新员工请假:何时可以请假(entry-入职开始 、formal-转正后)
///
[XmlElement("when_can_leave")]
public string WhenCanLeave { get; set; }
}
}
}