Constant.cs 5.6 KB

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