models.py 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217
  1. #coding:utf-8
  2. from django.db import models
  3. # Create your models here.
  4. class Article(models.Model):
  5. title = models.CharField(u'标题',max_length = 256)
  6. content = models.TextField(u'内容')
  7. pub_date = models.DateTimeField(u'发表时间',auto_now_add = True, editable = True)
  8. update_time = models.DateTimeField(u'更新时间',auto_now = True,null = True)
  9. def __str__(self):
  10. return self.title
  11. class Kecheng(object):
  12. pass
  13. class StudyPlan(models.Model):
  14. wid = models.TextField(u'WID', max_length=100) ### String
  15. pyfamc = models.TextField(u'培养方案名称', max_length=500) ### String
  16. njdm = models.TextField(u'年级', max_length=100) ### String
  17. dwdm = models.TextField(u'院系', max_length=100) ### String
  18. zydm = models.TextField(u'专业', max_length=100) ### String
  19. zyfxdm = models.TextField(u'专业方向', max_length=100) ### String
  20. xdlxdm = models.TextField(u'修读类型', max_length=100) ### String
  21. xqlxdm = models.TextField(u'学期类型', max_length=100) ### String
  22. xznx = models.IntegerField(u'学制') ### int
  23. xwdm = models.TextField(u'学位', max_length=100) ### String
  24. ksxndm = models.TextField(u'开始学年', max_length=100) ### String
  25. ksxqdm = models.TextField(u'开始学期', max_length=100) ### String
  26. zsyqxf = models.FloatField(u'最少要求学分') ### double
  27. pymb = models.TextField(u'培养目标', max_length=4096) ### String
  28. xdyq = models.TextField(u'培养要求', max_length=4096) ### String
  29. fats = models.TextField(u'核心知识领域', max_length=2048) ### String
  30. zgxk = models.TextField(u'主干学科', max_length=500) ### String
  31. zyzysy = models.TextField(u'主要专业实验', max_length=100) ### String
  32. zgkc = models.TextField(u'核心课程', max_length=2048) ### String
  33. pyfadm = models.TextField(u'PYFADM', max_length=100) ### String
  34. shr = models.TextField(u'SHR', max_length=100) ### String
  35. shyj = models.TextField(u'SHYJ', max_length=100) ### String
  36. xlccdm = models.TextField(u'XLCCDM', max_length=100) ### String
  37. czr = models.TextField(u'CZR', max_length=100) ### String
  38. bz = models.TextField(u'BZ', max_length=100) ### String
  39. faccdm = models.TextField(u'FACCDM', max_length=100) ### String
  40. czsj = models.DateTimeField(u'CZSJ') ### Timestamp
  41. czip = models.TextField(u'CZIP', max_length=100) ### String
  42. kzzd4 = models.TextField(u'KZZD4', max_length=100) ### String
  43. kzzd3 = models.TextField(u'KZZD3', max_length=100) ### String
  44. kzzd2 = models.TextField(u'KZZD2', max_length=100) ### String
  45. kzzd1 = models.TextField(u'KZZD1', max_length=100) ### String
  46. kzzd5 = models.TextField(u'KZZD5', max_length=100) ### String
  47. mbdm = models.TextField(u'MBDM', max_length=100) ### String
  48. shsj = models.DateTimeField(u'SHSJ') ### Timestamp
  49. sffb = models.FloatField(u'SFFB') ### double
  50. shrxm = models.TextField(u'SHRXM', max_length=100) ### String
  51. ship = models.TextField(u'SHIP', max_length=100) ### String
  52. czrxm = models.TextField(u'CZRXM', max_length=100) ### String
  53. faztdm = models.TextField(u'FAZTDM', max_length=100) ### String
  54. sldm = models.TextField(u'SLDM', max_length=100) ### String
  55. njdm_display = models.TextField(u'年级代码V', max_length=100)
  56. ksxqdm_display = models.TextField(u'开始学期V', max_length=100)
  57. ksxndm_display = models.TextField(u'开始学年V', max_length=100)
  58. zyfxdm_display = models.TextField(u'专业方向代码V', max_length=100)
  59. zydm_display = models.TextField(u'专业代码V', max_length=100)
  60. xqlxdm_display = models.TextField(u'学期类型代码V', max_length=100)
  61. xdlxdm_display = models.TextField(u'修读类型代码V', max_length=100)
  62. xwdm_display = models.TextField(u'学位V', max_length=100)
  63. dwdm_display = models.TextField(u'院系代码V', max_length=100)
  64. class PlanNode(models.Model):
  65. wid = models.TextField(u'WID')
  66. kch = models.TextField(u'课程号')
  67. xdxq = models.TextField(u'修读学期')
  68. pyfadm = models.TextField(u'培养方案代码')
  69. sfzgkc_display = models.TextField(u'学分核心课程V')
  70. xdxnxq = models.TextField(u'XDXNXQ')
  71. xs = models.TextField(u'学时')
  72. kcxzdm_display = models.TextField(u'课程性质代码V', "")
  73. xnxq_display = models.TextField(u'XNXQ_DISPLAY')
  74. kslxdm = models.TextField(u'KSLXDM')
  75. jhxqdm = models.TextField(u'JHXQDM')
  76. kzh = models.TextField(u'课组号')
  77. tykcbs = models.TextField(u'TYKCBS')
  78. bz = models.TextField(u'BZ')
  79. xxkc = models.TextField(u'XXKC')
  80. xnxq = models.TextField(u'XNXQ')
  81. sfzgkc = models.TextField(u'SFZGKC')
  82. xf = models.TextField(u'XF')
  83. kslxdm_display = models.TextField(u'KSLXDM_DISPLAY')
  84. jhxndm = models.TextField(u'JHXNDM')
  85. cxxq = models.TextField(u'CXXQ')
  86. kcm = models.TextField(u'KCM')
  87. kcxzdm = models.TextField(u'KCXZDM')
  88. px = models.TextField(u'PX')
  89. class Courses(models.Model):
  90. kch = models.TextField(u'课程号', max_length=100) ### String
  91. kcm = models.TextField(u'课程名', max_length=100) ### String
  92. kxh = models.TextField(u'课序号', max_length=100) ### String
  93. kkdwdm = models.TextField(u'开课单位', max_length=100) ### String
  94. pkdwdm = models.TextField(u'排课单位', max_length=100) ### String
  95. xs = models.FloatField(u'学时') ### double
  96. xf = models.FloatField(u'学分') ### double
  97. skjs = models.TextField(u'上课教师', max_length=100) ### String
  98. skbj = models.TextField(u'上课班级', max_length=100) ### String
  99. ypsjdd = models.TextField(u'已排时间地点', max_length=100) ### String
  100. skzcmc = models.TextField(u'周次', max_length=100) ### String
  101. skxqjc = models.TextField(u'星期节次', max_length=100) ### String
  102. skdd = models.TextField(u'上课地点', max_length=100) ### String
  103. xxxqdm = models.TextField(u'学校校区', max_length=100) ### String
  104. by6 = models.TextField(u'备用6', max_length=100) ### String
  105. by5 = models.TextField(u'备用5', max_length=100) ### String
  106. by4 = models.TextField(u'备用4', max_length=100) ### String
  107. wid = models.TextField(u'数据的唯一标识', max_length=100) ### String
  108. by3 = models.TextField(u'备用3', max_length=100) ### String
  109. by2 = models.TextField(u'备用2', max_length=100) ### String
  110. by1 = models.TextField(u'备用1', max_length=100) ### String
  111. by7 = models.TextField(u'备用7', max_length=100) ### String
  112. by8 = models.TextField(u'备用8', max_length=100) ### String
  113. by9 = models.TextField(u'备用9', max_length=100) ### String
  114. rzlbdm = models.TextField(u'任职类别代码,有的接口需要作为数据权限过滤的依据', max_length=100) ### String
  115. orderfilter = models.TextField(u'接口被字典使用时需要使用这个字段传入排序方式,比如+PX,-WID等', max_length=100) ### String
  116. by10 = models.TextField(u'备用10', max_length=100) ### String
  117. xkrwxz = models.TextField(u'选课任务限制', max_length=100) ### String
  118. sfxyjas = models.TextField(u'是否需要教室', max_length=100) ### String
  119. kyl = models.IntegerField(u'课余量') ### int
  120. xkxzsm = models.TextField(u'选课限制说明', max_length=100) ### String
  121. xnxqdm = models.TextField(u'学年学期', max_length=100) ### String
  122. zdpkyy = models.TextField(u'自动排课原因', max_length=100) ### String
  123. nsxkrs = models.IntegerField(u'男生选课人数') ### int
  124. jaslxdm = models.TextField(u'教室类型代码', max_length=100) ### String
  125. kslxdm = models.TextField(u'考试类型', max_length=100) ### String
  126. pkpcdm = models.TextField(u'排课批次', max_length=100) ### String
  127. syxs = models.FloatField(u'实验学时') ### double
  128. xkcldm = models.TextField(u'选课策略', max_length=100) ### String
  129. sfkfxk = models.TextField(u'是否开放选课', max_length=100) ### String
  130. rwztdm = models.TextField(u'任务状态', max_length=100) ### String
  131. tskh = models.TextField(u'同时课号', max_length=100) ### String
  132. sfszpkpc = models.TextField(u'是否设置排课批次', max_length=100) ### String
  133. pbsjxx = models.TextField(u'屏蔽时间信息', max_length=100) ### String
  134. krl = models.IntegerField(u'限选人数') ### int
  135. jxfsdm = models.TextField(u'教学方式', max_length=100) ### String
  136. nsrs = models.IntegerField(u'男生人数') ### int
  137. jsxx = models.TextField(u'教师信息', max_length=100) ### String
  138. sjixs = models.FloatField(u'设计学时') ### double
  139. pkctbjdm = models.TextField(u'排课冲突标记', max_length=100) ### String
  140. sffb = models.TextField(u'是否分班', max_length=100) ### String
  141. jasdm = models.TextField(u'教室代码', max_length=100) ### String
  142. sfxzxb = models.TextField(u'是否限制性别', max_length=100) ### String
  143. px = models.IntegerField(u'排序') ### int
  144. lrdwdm = models.TextField(u'录入单位', max_length=100) ### String
  145. nvsrs = models.IntegerField(u'女生人数') ### int
  146. nvsxkrs = models.IntegerField(u'女生选课人数') ### int
  147. xkrwxzbj = models.TextField(u'选课任务限制班级', max_length=100) ### String
  148. jxbmc = models.TextField(u'教学班名称', max_length=100) ### String
  149. zxsxx = models.TextField(u'周学时信息', max_length=100) ### String
  150. zdsjxx = models.TextField(u'指定时间信息', max_length=100) ### String
  151. newpkpcdm = models.TextField(u'新排课批次代码', max_length=100) ### String
  152. xkzrs = models.IntegerField(u'选课总人数') ### int
  153. sfxzxk = models.TextField(u'是否限制选课', max_length=100) ### String
  154. sjzdfsdm = models.TextField(u'时间指定方式', max_length=100) ### String
  155. pkztdm = models.TextField(u'排课状态', max_length=100) ### String
  156. jasxqdm = models.TextField(u'教室需求', max_length=100) ### String
  157. sjxs = models.FloatField(u'上机学时') ### double
  158. xkkzh = models.TextField(u'选课课组号', max_length=100) ### String
  159. skxs = models.FloatField(u'授课学时') ### double
  160. kcxzdm = models.TextField(u'课程性质代码', max_length=100) ### String
  161. jxbid = models.TextField(u'教学班ID', max_length=100) ### String
  162. knzxs = models.FloatField(u'课内周学时') ### double
  163. ppsjxx = models.TextField(u'匹配时间信息', max_length=100) ### String
  164. jcjg = models.TextField(u'检查结果', max_length=100) ### String
  165. sfcxb = models.TextField(u'是否重修班', max_length=100) ### String
  166. sfkxq = models.TextField(u'是否跨校区', max_length=100) ### String
  167. bjdm = models.TextField(u'班级代码', max_length=100) ### String
  168. bjxx = models.TextField(u'班级信息', max_length=100) ### String
  169. kclbdm = models.TextField(u'课程类别', max_length=100) ### String
  170. sfxgxk = models.TextField(u'是否校公选课', max_length=100) ### String
  171. xgxklbdm = models.TextField(u'校公选课类别', max_length=100) ### String
  172. pksxdm = models.TextField(u'排课属性', max_length=100) ### String
  173. ypxs = models.IntegerField(u'已排学时') ### int
  174. jxldm = models.TextField(u'教学楼代码', max_length=100) ### String
  175. tlxs = models.TextField(u'讨论学时', max_length=100) ### String
  176. sfxypk = models.TextField(u'是否需要安排', max_length=100) ### String
  177. xkwzsm = models.TextField(u'备注', max_length=100) ### String
  178. tyxmdm = models.TextField(u'体育项目', max_length=100) ### String
  179. skzc = models.TextField(u'上课周次', max_length=100) ### String
  180. skxq = models.TextField(u'上课星期', max_length=100) ### String
  181. ksjc = models.TextField(u'开始节次', max_length=100) ### String
  182. jsjc = models.TextField(u'结束节次', max_length=100) ### String
  183. xflbdm = models.TextField(u'文理学分', max_length=100) ### String
  184. xkrs = models.TextField(u'选课人数', max_length=100) ### String
  185. class Person(models.Model):
  186. first_name = models.CharField(max_length = 50)
  187. last_name = models.CharField(max_length = 50)
  188. def my_property(self):
  189. return self.first_name + ' '+self.last_name
  190. my_property.short_description = 'Full name of the Person'
  191. full_name = property(my_property)
  192. class Scheme(models.Model):
  193. grade = models.CharField(max_length=20)
  194. academy = models.CharField(max_length=100)
  195. major = models.CharField(max_length = 300)
  196. scheme_name = models.CharField(max_length = 300)
  197. key = models.CharField(max_length = 200)
  198. def __str__(self):
  199. return self.scheme_name
  200. class specificScheme(models.Model):
  201. key = models.CharField(max_length = 200)
  202. content = models.CharField(max_length = 120000)
  203. def __str__(self):
  204. return self.content