using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using static Google.Protobuf.Reflection.SourceCodeInfo.Types;
namespace OASystem.Domain.ViewModels.QiYeWeChat
{
///
/// 审批模板详情 View
///
public class TemplateDetailView:ResponseBase
{
///
/// 文本描述
///
public List template_names { get; set; }
///
/// 模板控件信息
///
public Template_content template_content { get; set; }
public VacationItem vacation_list { get; set; }
}
public class VacationItem
{
public List item { get; set; }
}
public class VacationItemInfo
{
///
/// 类型Id
///
public int id { get; set; }
///
/// 类型值
///
public List name { get; set; }
}
public class VacationLeaveTypeView
{
///
/// 请假 类型id
///
public int id { get; set; }
///
/// 请假 类型名称
///
public string name { get; set; }
}
///
/// 文本描述 中\英文
///
public class ValueItem
{
///
/// 中文描述
///
public string text { get; set; }
///
/// 英文描述
///
public string lang { get; set; }
}
///
/// 模板控件属性,包含了模板内控件的各种属性信息
///
public class Property
{
///
/// 控件类型:Text-文本;Textarea-多行文本;Number-数字;Money-金额;Date-日期/日期+时间;Selector-单选/多选;
/// Contact-成员/部门;Tips-说明文字;File-附件;Table-明细;Attendance-假勤控件;Vacation-请假控件;Location-位置;
/// RelatedApproval-关联审批单;Formula-公式;DateRange-时长
///
public string control { get; set; }
///
/// 控件id
///
public string id { get; set; }
///
/// 控件名称,若配置了多语言则会包含中英文的控件名称,默认为zh_CN中文
///
public List title { get; set; }
///
/// 控件说明,向申请者展示的控件填写说明,若配置了多语言则会包含中英文的控件说明,默认为zh_CN中文
///
public List placeholder { get; set; }
///
/// 是否必填:1-必填;0-非必填
///
public int require { get; set; }
///
/// 是否参与打印:1-不参与打印;0-参与打印
///
public int un_print { get; set; }
}
public class Config
{
///
///
///
public Selector selector { get; set; }
}
///
/// 模板控件数组。模板详情由多个不同类型的控件组成,控件类型详细说明见附录。
///
public class ControlsItem
{
///
/// 模板控件属性,包含了模板内控件的各种属性信息
///
public Property property { get; set; }
///
///
///
public Config config { get; set; }
}
public class Template_content
{
///
///
///
public List controls { get; set; }
}
}