TranscriptSheet.js 917 B

123456789101112131415161718192021222324252627282930313233
  1. import { Model, Collection } from 'js-abstract-model'
  2. class TranscriptSheet extends Model {
  3. constructor (data) {
  4. super(data, [
  5. { key: 'id' },
  6. { key: 'attendance_score' },
  7. { key: 'highest_test_score' },
  8. { key: 'final_score' },
  9. { key: 'is_sent_by_post' },
  10. { key: 'certification' },
  11. { key: 'status' }
  12. ], {
  13. status: {
  14. infoKey: 'status_info',
  15. enumListKey: 'statusEnums',
  16. enums: [
  17. { value: 'CLEAN_PASSED', label: 'قبول' },
  18. { value: 'CONDITIONAL_PASSED', label: 'قبول مشروط' },
  19. { value: 'FAILED', label: 'مردود' },
  20. { value: 'FAILED_DUE_TO_PRE_CONDITIONAL', label: 'مردود(سابقه قبول مشروط)' }
  21. ]
  22. }
  23. })
  24. }
  25. }
  26. class TranscriptSheetList extends Collection {
  27. model () {
  28. return TranscriptSheet
  29. }
  30. }
  31. export { TranscriptSheet, TranscriptSheetList }