added starting point for hall allocation

This commit is contained in:
Pranav Jerry 2023-03-26 16:24:29 +05:30
parent 3bfa294b24
commit 409ea83c00
Signed by: pranav
GPG Key ID: F1DCDC4FED0A0C5B
12 changed files with 198 additions and 2 deletions

View File

@ -0,0 +1,33 @@
{
"actions": [],
"allow_rename": 1,
"creation": "2023-03-26 16:14:18.456620",
"doctype": "DocType",
"editable_grid": 1,
"engine": "InnoDB",
"field_order": [
"id"
],
"fields": [
{
"fieldname": "id",
"fieldtype": "Link",
"in_list_view": 1,
"label": "ID",
"options": "Exam",
"reqd": 1
}
],
"index_web_pages_for_search": 1,
"istable": 1,
"links": [],
"modified": "2023-03-26 16:14:18.456620",
"modified_by": "Administrator",
"module": "Exam Helper",
"name": "Exam Child",
"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 ExamChild(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 Group", {
// refresh(frm) {
// },
// });

View File

@ -0,0 +1,82 @@
{
"actions": [],
"allow_rename": 1,
"creation": "2023-03-26 16:17:47.979688",
"default_view": "List",
"description": "Create group of exams from date and session",
"doctype": "DocType",
"editable_grid": 1,
"engine": "InnoDB",
"field_order": [
"date",
"session",
"exams",
"exam_halls"
],
"fields": [
{
"fieldname": "exams",
"fieldtype": "Table MultiSelect",
"label": "Exams",
"options": "Exam Child"
},
{
"fieldname": "exam_halls",
"fieldtype": "Table MultiSelect",
"label": "Exam halls",
"options": "Exam Hall Child",
"read_only": 1
},
{
"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
}
],
"index_web_pages_for_search": 1,
"links": [],
"modified": "2023-03-26 16:22:50.735964",
"modified_by": "Administrator",
"module": "Exam Helper",
"name": "Exam Group",
"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 ExamGroup(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 TestExamGroup(FrappeTestCase):
pass

View File

@ -0,0 +1,33 @@
{
"actions": [],
"allow_rename": 1,
"creation": "2023-03-26 16:19:25.251010",
"doctype": "DocType",
"editable_grid": 1,
"engine": "InnoDB",
"field_order": [
"id"
],
"fields": [
{
"fieldname": "id",
"fieldtype": "Link",
"in_list_view": 1,
"label": "ID",
"options": "Exam Hall",
"reqd": 1
}
],
"index_web_pages_for_search": 1,
"istable": 1,
"links": [],
"modified": "2023-03-26 16:19:25.251010",
"modified_by": "Administrator",
"module": "Exam Helper",
"name": "Exam Hall Child",
"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 ExamHallChild(Document):
pass

View File

@ -1,6 +1,6 @@
{
"charts": [],
"content": "[{\"id\":\"EpEN4H-bro\",\"type\":\"header\",\"data\":{\"text\":\"<span class=\\\"h4\\\">Home</span>\",\"col\":12}},{\"id\":\"v61j6hrUCm\",\"type\":\"shortcut\",\"data\":{\"shortcut_name\":\"Exam\",\"col\":3}},{\"id\":\"UoB7pAE7LB\",\"type\":\"shortcut\",\"data\":{\"shortcut_name\":\"Exam Cell Staff\",\"col\":3}},{\"id\":\"LFtWFqYATl\",\"type\":\"spacer\",\"data\":{\"col\":12}},{\"id\":\"ou7RlM73oj\",\"type\":\"quick_list\",\"data\":{\"quick_list_name\":\"Exam Hall\",\"col\":4}},{\"id\":\"GL0vmECDPt\",\"type\":\"quick_list\",\"data\":{\"quick_list_name\":\"Staff\",\"col\":4}},{\"id\":\"8cD3Hs9JJI\",\"type\":\"quick_list\",\"data\":{\"quick_list_name\":\"Class\",\"col\":4}}]",
"content": "[{\"id\":\"EpEN4H-bro\",\"type\":\"header\",\"data\":{\"text\":\"<span class=\\\"h4\\\">Home</span>\",\"col\":12}},{\"id\":\"v61j6hrUCm\",\"type\":\"shortcut\",\"data\":{\"shortcut_name\":\"Exam\",\"col\":3}},{\"id\":\"UoB7pAE7LB\",\"type\":\"shortcut\",\"data\":{\"shortcut_name\":\"Exam Cell Staff\",\"col\":3}},{\"id\":\"LFtWFqYATl\",\"type\":\"spacer\",\"data\":{\"col\":12}},{\"id\":\"ou7RlM73oj\",\"type\":\"quick_list\",\"data\":{\"quick_list_name\":\"Exam Hall\",\"col\":4}},{\"id\":\"GL0vmECDPt\",\"type\":\"quick_list\",\"data\":{\"quick_list_name\":\"Staff\",\"col\":4}},{\"id\":\"8cD3Hs9JJI\",\"type\":\"quick_list\",\"data\":{\"quick_list_name\":\"Class\",\"col\":4}},{\"id\":\"4kQX3h851L\",\"type\":\"quick_list\",\"data\":{\"quick_list_name\":\"Exam\",\"col\":4}}]",
"creation": "2023-03-26 16:03:41.749794",
"docstatus": 0,
"doctype": "Workspace",
@ -11,7 +11,7 @@
"is_hidden": 0,
"label": "Home",
"links": [],
"modified": "2023-03-26 16:05:55.922980",
"modified": "2023-03-26 16:23:26.269964",
"modified_by": "Administrator",
"module": "Exam Helper",
"name": "Home",
@ -24,6 +24,10 @@
"document_type": "Exam Hall",
"label": "Exam Hall"
},
{
"document_type": "Exam",
"label": "Exam"
},
{
"document_type": "Staff",
"label": "Staff"