Constant.cs 6.0 KB

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