Constant.cs 5.1 KB

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