TemplateDetailView.cs 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6. using static Google.Protobuf.Reflection.SourceCodeInfo.Types;
  7. namespace OASystem.Domain.ViewModels.QiYeWeChat
  8. {
  9. /// <summary>
  10. /// 审批模板详情 View
  11. /// </summary>
  12. public class TemplateDetailView:ResponseBase
  13. {
  14. /// <summary>
  15. /// 文本描述
  16. /// </summary>
  17. public List<ValueItem> template_names { get; set; }
  18. /// <summary>
  19. /// 模板控件信息
  20. /// </summary>
  21. public Template_content template_content { get; set; }
  22. public VacationItem vacation_list { get; set; }
  23. }
  24. public class VacationItem
  25. {
  26. public List<VacationItemInfo> item { get; set; }
  27. }
  28. public class VacationItemInfo
  29. {
  30. /// <summary>
  31. /// 类型Id
  32. /// </summary>
  33. public int id { get; set; }
  34. /// <summary>
  35. /// 类型值
  36. /// </summary>
  37. public List<ValueItem> name { get; set; }
  38. }
  39. public class VacationLeaveTypeView
  40. {
  41. /// <summary>
  42. /// 请假 类型id
  43. /// </summary>
  44. public int id { get; set; }
  45. /// <summary>
  46. /// 请假 类型名称
  47. /// </summary>
  48. public string name { get; set; }
  49. }
  50. /// <summary>
  51. /// 文本描述 中\英文
  52. /// </summary>
  53. public class ValueItem
  54. {
  55. /// <summary>
  56. /// 中文描述
  57. /// </summary>
  58. public string text { get; set; }
  59. /// <summary>
  60. /// 英文描述
  61. /// </summary>
  62. public string lang { get; set; }
  63. }
  64. /// <summary>
  65. /// 模板控件属性,包含了模板内控件的各种属性信息
  66. /// </summary>
  67. public class Property
  68. {
  69. /// <summary>
  70. /// 控件类型:Text-文本;Textarea-多行文本;Number-数字;Money-金额;Date-日期/日期+时间;Selector-单选/多选;
  71. /// Contact-成员/部门;Tips-说明文字;File-附件;Table-明细;Attendance-假勤控件;Vacation-请假控件;Location-位置;
  72. /// RelatedApproval-关联审批单;Formula-公式;DateRange-时长
  73. /// </summary>
  74. public string control { get; set; }
  75. /// <summary>
  76. /// 控件id
  77. /// </summary>
  78. public string id { get; set; }
  79. /// <summary>
  80. /// 控件名称,若配置了多语言则会包含中英文的控件名称,默认为zh_CN中文
  81. /// </summary>
  82. public List<ValueItem> title { get; set; }
  83. /// <summary>
  84. /// 控件说明,向申请者展示的控件填写说明,若配置了多语言则会包含中英文的控件说明,默认为zh_CN中文
  85. /// </summary>
  86. public List<ValueItem> placeholder { get; set; }
  87. /// <summary>
  88. /// 是否必填:1-必填;0-非必填
  89. /// </summary>
  90. public int require { get; set; }
  91. /// <summary>
  92. /// 是否参与打印:1-不参与打印;0-参与打印
  93. /// </summary>
  94. public int un_print { get; set; }
  95. }
  96. public class Config
  97. {
  98. /// <summary>
  99. ///
  100. /// </summary>
  101. public Selector selector { get; set; }
  102. }
  103. /// <summary>
  104. /// 模板控件数组。模板详情由多个不同类型的控件组成,控件类型详细说明见附录。
  105. /// </summary>
  106. public class ControlsItem
  107. {
  108. /// <summary>
  109. /// 模板控件属性,包含了模板内控件的各种属性信息
  110. /// </summary>
  111. public Property property { get; set; }
  112. /// <summary>
  113. ///
  114. /// </summary>
  115. public Config config { get; set; }
  116. }
  117. public class Template_content
  118. {
  119. /// <summary>
  120. ///
  121. /// </summary>
  122. public List<ControlsItem> controls { get; set; }
  123. }
  124. }