Constant.cs 4.8 KB

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