Constant.cs 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130
  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 html = @"
  25. <!DOCTYPE html>
  26. <html>
  27. <head>
  28. <meta charset=""UTF-8"">
  29. <meta http-equiv=""X-UA-Compatible"" content=""IE=edge"">
  30. <meta name=""viewport"" content=""width=device-width, initial-scale=1.0"">
  31. <title>校本研修活动完成情况</title>
  32. <style>
  33. body {
  34. font-family: ""fangsong"";
  35. display: flex;
  36. flex-direction: column;
  37. align-items: center;
  38. }
  39. .tch-table,
  40. .details-table {
  41. width: 100%;
  42. }
  43. .tch-table table {
  44. width: 100%;
  45. margin: 15px 0;
  46. border: 0;
  47. }
  48. .tch-table th {
  49. background-color: #c5c5c5;
  50. color: #222222;
  51. }
  52. .tch-table,
  53. .tch-table th,
  54. .tch-table td {
  55. font-size: 0.95em;
  56. text-align: center;
  57. padding: 4px;
  58. border-collapse: collapse;
  59. font-weight: bolder;
  60. }
  61. .tch-table th,
  62. .tch-table td {
  63. border-bottom: 1px solid #918b8c;
  64. border-width: 1px 0 1px 0;
  65. }
  66. .tch-table tr {
  67. border: 1px solid #ffffff;
  68. height: 3.2em;
  69. }
  70. .title {
  71. font-weight: bold;
  72. align-self: flex-start;
  73. margin: 30px 5px;
  74. }
  75. .title::before {
  76. content: """";
  77. width: 10px;
  78. height: 10px;
  79. background: #3a3a3a;
  80. display: inline-block;
  81. margin-right: 10px;
  82. }
  83. </style>
  84. </head>
  85. <body>
  86. <h1 style=""text-align:center;font-weight: bold;"">校本研修活动完成情况</h1>
  87. <p class=""title"">教师信息</p>
  88. <table class=""tch-table"" id=""tchTable"">
  89. <tr>
  90. <th style=""width: 33.3%;"">教师姓名</th>
  91. <th style=""width: 33.3%;"">机构</th>
  92. <th style=""width: 33.3%;"">教研组</th>
  93. </tr>
  94. <tr>
  95. <td>{c.cname}</td>
  96. <td>{c.sname}</td>
  97. <td>{c.gname}</td>
  98. </tr>
  99. </table>
  100. <p class=""title"">活动明细</p>
  101. <table class=""tch-table"" id=""acTable"">
  102. <tr>
  103. <th style=""width: 25%;"">活动主题</th>
  104. <th style=""width: 15%;"">活动类型</th>
  105. <th style=""width: 5%;"">任务学时</th>
  106. <th style=""width: 5%;"">完成学时</th>
  107. <th style=""width: 20%;"">活动时间</th>
  108. <th style=""width: 10%;"">活动内容</th>
  109. <th style=""width: 10%;"">活动任务</th>
  110. <th style=""width: 10%;"">状态</th>
  111. </tr>
  112. {c.details}
  113. </table>
  114. </body>
  115. </html>
  116. ";
  117. }
  118. }