added doctypes

This commit is contained in:
Pranav Jerry 2023-03-26 10:07:26 +05:30
parent 3be691b4a5
commit 4d5067ba8f
Signed by: pranav
GPG Key ID: F1DCDC4FED0A0C5B
25 changed files with 446 additions and 0 deletions

View File

@ -0,0 +1,8 @@
// Copyright (c) 2023, CSE 2020 Batch and contributors
// For license information, please see license.txt
// frappe.ui.form.on("Class", {
// refresh(frm) {
// },
// });

View File

@ -0,0 +1,60 @@
{
"actions": [],
"allow_import": 1,
"allow_rename": 1,
"autoname": "prompt",
"creation": "2023-03-25 22:23:27.804002",
"default_view": "List",
"doctype": "DocType",
"editable_grid": 1,
"engine": "InnoDB",
"field_order": [
"students"
],
"fields": [
{
"fieldname": "students",
"fieldtype": "Table",
"label": "Students",
"options": "Student",
"reqd": 1
}
],
"index_web_pages_for_search": 1,
"links": [],
"modified": "2023-03-25 22:23:44.157433",
"modified_by": "Administrator",
"module": "Exam Helper",
"name": "Class",
"naming_rule": "Set by user",
"owner": "Administrator",
"permissions": [
{
"create": 1,
"delete": 1,
"email": 1,
"export": 1,
"print": 1,
"read": 1,
"report": 1,
"role": "System Manager",
"share": 1,
"write": 1
},
{
"create": 1,
"delete": 1,
"email": 1,
"export": 1,
"print": 1,
"read": 1,
"report": 1,
"role": "Exam Cell Staff",
"share": 1,
"write": 1
}
],
"sort_field": "modified",
"sort_order": "DESC",
"states": []
}

View File

@ -0,0 +1,9 @@
# Copyright (c) 2023, CSE 2020 Batch and contributors
# For license information, please see license.txt
# import frappe
from frappe.model.document import Document
class Class(Document):
pass

View File

@ -0,0 +1,9 @@
# Copyright (c) 2023, CSE 2020 Batch and Contributors
# See license.txt
# import frappe
from frappe.tests.utils import FrappeTestCase
class TestClass(FrappeTestCase):
pass

View File

@ -0,0 +1,8 @@
// Copyright (c) 2023, CSE 2020 Batch and contributors
// For license information, please see license.txt
// frappe.ui.form.on("Exam", {
// refresh(frm) {
// },
// });

View File

@ -0,0 +1,102 @@
{
"actions": [],
"allow_rename": 1,
"autoname": "format:EXAM-{#####}-{date}-{session}-{course_code}",
"creation": "2023-03-25 22:45:56.163304",
"default_view": "List",
"doctype": "DocType",
"editable_grid": 1,
"engine": "InnoDB",
"field_order": [
"course_code",
"section_break_1u0b",
"date",
"session",
"candidates_tab",
"classes",
"students"
],
"fields": [
{
"fieldname": "course_code",
"fieldtype": "Data",
"in_list_view": 1,
"label": "Course code",
"reqd": 1
},
{
"fieldname": "section_break_1u0b",
"fieldtype": "Section Break"
},
{
"fieldname": "date",
"fieldtype": "Date",
"in_list_view": 1,
"label": "Date",
"reqd": 1
},
{
"fieldname": "session",
"fieldtype": "Select",
"in_list_view": 1,
"label": "Session",
"options": "Forenoon\nAfternoon",
"reqd": 1
},
{
"fieldname": "candidates_tab",
"fieldtype": "Tab Break",
"label": "Candidates"
},
{
"description": "Groups of students writing the exam",
"fieldname": "classes",
"fieldtype": "Table MultiSelect",
"label": "Classes",
"options": "Exam Class"
},
{
"fieldname": "students",
"fieldtype": "Table MultiSelect",
"label": "Students",
"options": "Exam Student"
}
],
"index_web_pages_for_search": 1,
"links": [],
"modified": "2023-03-26 09:47:03.643769",
"modified_by": "Administrator",
"module": "Exam Helper",
"name": "Exam",
"naming_rule": "Expression",
"owner": "Administrator",
"permissions": [
{
"create": 1,
"delete": 1,
"email": 1,
"export": 1,
"print": 1,
"read": 1,
"report": 1,
"role": "System Manager",
"share": 1,
"write": 1
},
{
"create": 1,
"delete": 1,
"email": 1,
"export": 1,
"print": 1,
"read": 1,
"report": 1,
"role": "Exam Cell Staff",
"share": 1,
"write": 1
}
],
"sort_field": "modified",
"sort_order": "DESC",
"states": []
}

View File

@ -0,0 +1,9 @@
# Copyright (c) 2023, CSE 2020 Batch and contributors
# For license information, please see license.txt
# import frappe
from frappe.model.document import Document
class Exam(Document):
pass

View File

@ -0,0 +1,9 @@
# Copyright (c) 2023, CSE 2020 Batch and Contributors
# See license.txt
# import frappe
from frappe.tests.utils import FrappeTestCase
class TestExam(FrappeTestCase):
pass

View File

@ -0,0 +1,33 @@
{
"actions": [],
"allow_rename": 1,
"creation": "2023-03-25 22:52:03.510657",
"doctype": "DocType",
"editable_grid": 1,
"engine": "InnoDB",
"field_order": [
"name1"
],
"fields": [
{
"fieldname": "name1",
"fieldtype": "Link",
"in_list_view": 1,
"label": "Name",
"options": "Class",
"reqd": 1
}
],
"index_web_pages_for_search": 1,
"istable": 1,
"links": [],
"modified": "2023-03-25 22:52:03.510657",
"modified_by": "Administrator",
"module": "Exam Helper",
"name": "Exam Class",
"owner": "Administrator",
"permissions": [],
"sort_field": "modified",
"sort_order": "DESC",
"states": []
}

View File

@ -0,0 +1,9 @@
# Copyright (c) 2023, CSE 2020 Batch and contributors
# For license information, please see license.txt
# import frappe
from frappe.model.document import Document
class ExamClass(Document):
pass

View File

@ -0,0 +1,8 @@
// Copyright (c) 2023, CSE 2020 Batch and contributors
// For license information, please see license.txt
// frappe.ui.form.on("Exam Hall", {
// refresh(frm) {
// },
// });

View File

@ -0,0 +1,72 @@
{
"actions": [],
"allow_import": 1,
"allow_rename": 1,
"autoname": "field:room_number",
"creation": "2023-03-25 22:10:13.057650",
"default_view": "List",
"doctype": "DocType",
"editable_grid": 1,
"engine": "InnoDB",
"field_order": [
"room_number",
"seating_capacity"
],
"fields": [
{
"fieldname": "room_number",
"fieldtype": "Data",
"in_list_view": 1,
"label": "Room number",
"reqd": 1,
"unique": 1
},
{
"fieldname": "seating_capacity",
"fieldtype": "Int",
"in_list_view": 1,
"label": "Seating capacity",
"reqd": 1
}
],
"index_web_pages_for_search": 1,
"links": [],
"modified": "2023-03-25 22:15:58.703253",
"modified_by": "Administrator",
"module": "Exam Helper",
"name": "Exam Hall",
"naming_rule": "By fieldname",
"owner": "Administrator",
"permissions": [
{
"create": 1,
"delete": 1,
"email": 1,
"export": 1,
"print": 1,
"read": 1,
"report": 1,
"role": "System Manager",
"select": 1,
"share": 1,
"write": 1
},
{
"create": 1,
"delete": 1,
"email": 1,
"export": 1,
"print": 1,
"read": 1,
"report": 1,
"role": "Exam Cell Staff",
"select": 1,
"share": 1,
"write": 1
}
],
"quick_entry": 1,
"sort_field": "modified",
"sort_order": "DESC",
"states": []
}

View File

@ -0,0 +1,9 @@
# Copyright (c) 2023, CSE 2020 Batch and contributors
# For license information, please see license.txt
# import frappe
from frappe.model.document import Document
class ExamHall(Document):
pass

View File

@ -0,0 +1,9 @@
# Copyright (c) 2023, CSE 2020 Batch and Contributors
# See license.txt
# import frappe
from frappe.tests.utils import FrappeTestCase
class TestExamHall(FrappeTestCase):
pass

View File

@ -0,0 +1,33 @@
{
"actions": [],
"allow_rename": 1,
"creation": "2023-03-26 09:46:26.729500",
"doctype": "DocType",
"editable_grid": 1,
"engine": "InnoDB",
"field_order": [
"id"
],
"fields": [
{
"fieldname": "id",
"fieldtype": "Link",
"in_list_view": 1,
"label": "ID",
"options": "Student",
"reqd": 1
}
],
"index_web_pages_for_search": 1,
"istable": 1,
"links": [],
"modified": "2023-03-26 09:46:26.729500",
"modified_by": "Administrator",
"module": "Exam Helper",
"name": "Exam Student",
"owner": "Administrator",
"permissions": [],
"sort_field": "modified",
"sort_order": "DESC",
"states": []
}

View File

@ -0,0 +1,9 @@
# Copyright (c) 2023, CSE 2020 Batch and contributors
# For license information, please see license.txt
# import frappe
from frappe.model.document import Document
class ExamStudent(Document):
pass

View File

@ -0,0 +1,41 @@
{
"actions": [],
"allow_rename": 1,
"autoname": "field:id",
"creation": "2023-03-25 22:21:02.700909",
"doctype": "DocType",
"editable_grid": 1,
"engine": "InnoDB",
"field_order": [
"id",
"full_name"
],
"fields": [
{
"fieldname": "id",
"fieldtype": "Data",
"in_list_view": 1,
"label": "ID",
"reqd": 1,
"unique": 1
},
{
"fieldname": "full_name",
"fieldtype": "Data",
"label": "Full name"
}
],
"index_web_pages_for_search": 1,
"istable": 1,
"links": [],
"modified": "2023-03-25 22:21:02.700909",
"modified_by": "Administrator",
"module": "Exam Helper",
"name": "Student",
"naming_rule": "By fieldname",
"owner": "Administrator",
"permissions": [],
"sort_field": "modified",
"sort_order": "DESC",
"states": []
}

View File

@ -0,0 +1,9 @@
# Copyright (c) 2023, CSE 2020 Batch and contributors
# For license information, please see license.txt
# import frappe
from frappe.model.document import Document
class Student(Document):
pass