Constant.cs 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Text;
  4. namespace TEAMModelOS.SDK.DI
  5. {
  6. public class Constant
  7. {
  8. public static readonly List<string> BlobPrefix = new List<string> { "exam", "vote", "survey", "item", "paper", "syllabus", "records", "doc", "image", "res", "video", "audio", "other", "thum", "train", "temp", "jyzx" };
  9. public static readonly List<string> ContentPrefix = new List<string> { "doc", "image", "res", "video", "audio", "other" };
  10. public static readonly string TEAMModelOS = "TEAMModelOS";
  11. public static readonly string ScopeTeacher = "teacher";
  12. public static readonly string ScopeTmdUser = "tmduser";
  13. public static readonly string ScopeStudent = "student";
  14. public static readonly string ScopeBusiness = "business";
  15. public static readonly string RowKey = "RowKey";
  16. public static readonly string PartitionKey = "PartitionKey";
  17. public static readonly string School = "School";
  18. public static readonly string Normal = "Normal";
  19. public static readonly string Common = "Common";
  20. public static readonly string Teacher = "Teacher";
  21. public static readonly string Student = "Student";
  22. public static readonly int private_lesson_limit = 50;
  23. public static readonly int private_lesson_expire = 7;
  24. public static readonly int school_lesson_expire = 7;
  25. //目前IES的tag只有"IES",待動態更新架構完成後再還原為"IES_{類別}"
  26. //public static readonly string NotifyType_IES5_Management = "IES_Management";
  27. //public static readonly string NotifyType_IES5_Course = "IES_Course";
  28. //public static readonly string NotifyType_IES5_Task = "IES_Task";
  29. //public static readonly string NotifyType_IES5_Contect = "IES_Contect";
  30. public static readonly string NotifyType_IES5_Management = "IES";
  31. public static readonly string NotifyType_IES5_Course = "IES";
  32. public static readonly string NotifyType_IES5_Task = "IES";
  33. public static readonly string NotifyType_IES5_Contect = "IES";
  34. public static readonly Dictionary<string, string> DefaultPeriod = new Dictionary<string, string> {
  35. {"pre" ,"学前"},
  36. {"primary","小学"},
  37. {"junior","初中"},
  38. {"senior","高中" },
  39. {"secondary","中职(中专,技校,职高)" },
  40. {"college","高职(专科)"},
  41. {"university","大学本科"},
  42. {"special","特殊教育"},
  43. {"edu-bureau","教育局"},
  44. {"elecedu-dept","电教部门"},
  45. // {"master","硕士研究生学段"},
  46. // {"doctor","博士研究生学段"},
  47. // {"adult-secondary","成人中专"},
  48. // {"adult-higher","成人高教"},
  49. //{"other","其它"}
  50. };
  51. public static readonly string html = @"
  52. <!DOCTYPE html>
  53. <html>
  54. <head>
  55. <meta charset=""UTF-8"">
  56. <meta http-equiv=""X-UA-Compatible"" content=""IE=edge"">
  57. <meta name=""viewport"" content=""width=device-width, initial-scale=1.0"">
  58. <title>校本研修活动完成情况</title>
  59. <style>
  60. body {
  61. font-family: ""fangsong"";
  62. display: flex;
  63. flex-direction: column;
  64. align-items: center;
  65. }
  66. .tch-table,
  67. .details-table {
  68. width: 100%;
  69. }
  70. .tch-table table {
  71. width: 100%;
  72. margin: 15px 0;
  73. border: 0;
  74. }
  75. .tch-table th {
  76. background-color: #c5c5c5;
  77. color: #222222;
  78. }
  79. .tch-table,
  80. .tch-table th,
  81. .tch-table td {
  82. font-size: 0.95em;
  83. text-align: center;
  84. padding: 4px;
  85. border-collapse: collapse;
  86. font-weight: bolder;
  87. }
  88. .tch-table th,
  89. .tch-table td {
  90. border-bottom: 1px solid #918b8c;
  91. border-width: 1px 0 1px 0;
  92. }
  93. .tch-table tr {
  94. border: 1px solid #ffffff;
  95. height: 3.2em;
  96. }
  97. .title {
  98. font-weight: bold;
  99. align-self: flex-start;
  100. margin: 30px 5px;
  101. }
  102. .title::before {
  103. content: """";
  104. width: 10px;
  105. height: 10px;
  106. background: #3a3a3a;
  107. display: inline-block;
  108. margin-right: 10px;
  109. }
  110. </style>
  111. </head>
  112. <body>
  113. <h1 style=""text-align:center;font-weight: bold;"">校本研修活动完成情况</h1>
  114. <p class=""title"">教师信息</p>
  115. <table class=""tch-table"" id=""tchTable"">
  116. <tr>
  117. <th style=""width: 33.3%;"">教师姓名</th>
  118. <th style=""width: 33.3%;"">机构</th>
  119. <th style=""width: 33.3%;"">教研组</th>
  120. </tr>
  121. <tr>
  122. <td>{c.cname}</td>
  123. <td>{c.sname}</td>
  124. <td>{c.gname}</td>
  125. </tr>
  126. </table>
  127. <p class=""title"">活动明细</p>
  128. <table class=""tch-table"" id=""acTable"">
  129. <tr>
  130. <th style=""width: 25%;"">活动主题</th>
  131. <th style=""width: 15%;"">活动类型</th>
  132. <th style=""width: 5%;"">任务学时</th>
  133. <th style=""width: 5%;"">完成学时</th>
  134. <th style=""width: 20%;"">活动时间</th>
  135. <th style=""width: 10%;"">活动内容</th>
  136. <th style=""width: 10%;"">活动任务</th>
  137. <th style=""width: 10%;"">状态</th>
  138. </tr>
  139. {c.details}
  140. </table>
  141. </body>
  142. </html>
  143. ";
  144. }
  145. }