added number cards, bug fixes
added permission for exam cell users to submit hall allocation
This commit is contained in:
parent
481b73f7b3
commit
230a2de0b4
|
@ -21,6 +21,7 @@ class AutoExamGroup(Document):
|
|||
|
||||
@staticmethod
|
||||
def get_list(args):
|
||||
print(args)
|
||||
list_of_dates_and_session = []
|
||||
exams = frappe.get_all("Exam")
|
||||
for exam in exams:
|
||||
|
@ -46,7 +47,7 @@ class AutoExamGroup(Document):
|
|||
|
||||
@staticmethod
|
||||
def get_count(args):
|
||||
pass
|
||||
return len(AutoExamGroup.get_list(args))
|
||||
|
||||
@staticmethod
|
||||
def get_stats(args):
|
||||
|
|
|
@ -17,10 +17,7 @@ frappe.ui.form.on("Exam Group", {
|
|||
exam_group: frm.doc.name,
|
||||
})
|
||||
.then((doc) => {
|
||||
frm.set_value("hall_allocation", doc.name).then(() => {
|
||||
frm.save();
|
||||
frappe.set_route("Form", "Hall Allocation", doc.name);
|
||||
});
|
||||
frappe.set_route("Form", "Hall Allocation", doc.name);
|
||||
});
|
||||
},
|
||||
});
|
||||
|
|
|
@ -12,8 +12,7 @@
|
|||
"date",
|
||||
"session",
|
||||
"exams",
|
||||
"number_of_students",
|
||||
"hall_allocation"
|
||||
"number_of_students"
|
||||
],
|
||||
"fields": [
|
||||
{
|
||||
|
@ -42,17 +41,11 @@
|
|||
"fieldtype": "Int",
|
||||
"label": "Number of students",
|
||||
"read_only": 1
|
||||
},
|
||||
{
|
||||
"fieldname": "hall_allocation",
|
||||
"fieldtype": "Link",
|
||||
"label": "Hall Allocation",
|
||||
"options": "Hall Allocation"
|
||||
}
|
||||
],
|
||||
"index_web_pages_for_search": 1,
|
||||
"links": [],
|
||||
"modified": "2023-04-06 11:31:06.650210",
|
||||
"modified": "2023-04-07 13:32:33.002382",
|
||||
"modified_by": "Administrator",
|
||||
"module": "Exam Helper",
|
||||
"name": "Exam Group",
|
||||
|
|
|
@ -57,7 +57,7 @@
|
|||
"index_web_pages_for_search": 1,
|
||||
"is_submittable": 1,
|
||||
"links": [],
|
||||
"modified": "2023-04-06 12:19:47.819643",
|
||||
"modified": "2023-04-07 13:33:42.695127",
|
||||
"modified_by": "Administrator",
|
||||
"module": "Exam Helper",
|
||||
"name": "Hall Allocation",
|
||||
|
@ -74,6 +74,7 @@
|
|||
"report": 1,
|
||||
"role": "System Manager",
|
||||
"share": 1,
|
||||
"submit": 1,
|
||||
"write": 1
|
||||
},
|
||||
{
|
||||
|
@ -86,6 +87,7 @@
|
|||
"report": 1,
|
||||
"role": "Exam Cell Staff",
|
||||
"share": 1,
|
||||
"submit": 1,
|
||||
"write": 1
|
||||
}
|
||||
],
|
||||
|
|
|
@ -0,0 +1,21 @@
|
|||
{
|
||||
"creation": "2023-04-02 11:57:06.266876",
|
||||
"docstatus": 0,
|
||||
"doctype": "Number Card",
|
||||
"document_type": "Staff",
|
||||
"filters_json": "[]",
|
||||
"function": "Count",
|
||||
"idx": 0,
|
||||
"is_public": 0,
|
||||
"is_standard": 1,
|
||||
"label": "Total Staff",
|
||||
"modified": "2023-04-07 13:32:04.942552",
|
||||
"modified_by": "Administrator",
|
||||
"module": "Exam Helper",
|
||||
"name": "Total Staff",
|
||||
"owner": "Administrator",
|
||||
"report_function": "Sum",
|
||||
"show_percentage_stats": 0,
|
||||
"stats_time_interval": "Daily",
|
||||
"type": "Document Type"
|
||||
}
|
|
@ -0,0 +1,24 @@
|
|||
{
|
||||
"aggregate_function_based_on": "",
|
||||
"creation": "2023-04-07 13:57:52.760651",
|
||||
"docstatus": 0,
|
||||
"doctype": "Number Card",
|
||||
"document_type": "Auto Exam Group",
|
||||
"dynamic_filters_json": "[]",
|
||||
"filters_json": "[]",
|
||||
"function": "Count",
|
||||
"idx": 0,
|
||||
"is_public": 1,
|
||||
"is_standard": 1,
|
||||
"label": "Unallocated exams",
|
||||
"modified": "2023-04-07 13:57:52.760651",
|
||||
"modified_by": "Administrator",
|
||||
"module": "Exam Helper",
|
||||
"name": "Unallocated exams",
|
||||
"owner": "Administrator",
|
||||
"parent_document_type": "",
|
||||
"report_function": "Sum",
|
||||
"show_percentage_stats": 0,
|
||||
"stats_time_interval": "Daily",
|
||||
"type": "Document Type"
|
||||
}
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"charts": [],
|
||||
"content": "[{\"id\":\"suN4lkqxEo\",\"type\":\"header\",\"data\":{\"text\":\"<span class=\\\"h4\\\">Quick Glance</span>\",\"col\":12}},{\"id\":\"Z3UwpHWn6i\",\"type\":\"number_card\",\"data\":{\"number_card_name\":\"Total Staff\",\"col\":4}},{\"id\":\"OD4i1tFW8E\",\"type\":\"spacer\",\"data\":{\"col\":12}},{\"id\":\"-PRIXtwFvV\",\"type\":\"quick_list\",\"data\":{\"quick_list_name\":\"Exam\",\"col\":4}},{\"id\":\"qdAHvNCHpp\",\"type\":\"quick_list\",\"data\":{\"quick_list_name\":\"Exam Hall\",\"col\":4}},{\"id\":\"bxgO5Ntggs\",\"type\":\"quick_list\",\"data\":{\"quick_list_name\":\"Staff\",\"col\":4}},{\"id\":\"8dgJ_ssXPB\",\"type\":\"quick_list\",\"data\":{\"quick_list_name\":\"Class\",\"col\":4}},{\"id\":\"kH3yWooSbF\",\"type\":\"quick_list\",\"data\":{\"quick_list_name\":\"Exam Cell Staff\",\"col\":4}},{\"id\":\"2lsnZcsb2Q\",\"type\":\"quick_list\",\"data\":{\"quick_list_name\":\"Exam Group\",\"col\":4}}]",
|
||||
"content": "[{\"id\":\"suN4lkqxEo\",\"type\":\"header\",\"data\":{\"text\":\"<span class=\\\"h4\\\">Quick Glance</span>\",\"col\":12}},{\"id\":\"Z3UwpHWn6i\",\"type\":\"number_card\",\"data\":{\"number_card_name\":\"Total Staff\",\"col\":4}},{\"id\":\"aYKjl0Mvyb\",\"type\":\"number_card\",\"data\":{\"number_card_name\":\"Unallocated exams\",\"col\":4}},{\"id\":\"OD4i1tFW8E\",\"type\":\"spacer\",\"data\":{\"col\":12}},{\"id\":\"-PRIXtwFvV\",\"type\":\"quick_list\",\"data\":{\"quick_list_name\":\"Exam\",\"col\":4}},{\"id\":\"qdAHvNCHpp\",\"type\":\"quick_list\",\"data\":{\"quick_list_name\":\"Exam Hall\",\"col\":4}},{\"id\":\"bxgO5Ntggs\",\"type\":\"quick_list\",\"data\":{\"quick_list_name\":\"Staff\",\"col\":4}},{\"id\":\"8dgJ_ssXPB\",\"type\":\"quick_list\",\"data\":{\"quick_list_name\":\"Class\",\"col\":4}},{\"id\":\"kH3yWooSbF\",\"type\":\"quick_list\",\"data\":{\"quick_list_name\":\"Exam Cell Staff\",\"col\":4}},{\"id\":\"2lsnZcsb2Q\",\"type\":\"quick_list\",\"data\":{\"quick_list_name\":\"Exam Group\",\"col\":4}}]",
|
||||
"creation": "2023-04-02 12:01:34.549910",
|
||||
"docstatus": 0,
|
||||
"doctype": "Workspace",
|
||||
|
@ -11,7 +11,7 @@
|
|||
"is_hidden": 0,
|
||||
"label": "Quick Glance",
|
||||
"links": [],
|
||||
"modified": "2023-04-02 12:05:39.147350",
|
||||
"modified": "2023-04-07 13:58:17.487256",
|
||||
"modified_by": "Administrator",
|
||||
"module": "Exam Helper",
|
||||
"name": "Quick Glance",
|
||||
|
@ -19,6 +19,10 @@
|
|||
{
|
||||
"label": "Total Staff",
|
||||
"number_card_name": "Total Staff"
|
||||
},
|
||||
{
|
||||
"label": "Unallocated exams",
|
||||
"number_card_name": "Unallocated exams"
|
||||
}
|
||||
],
|
||||
"owner": "Administrator",
|
||||
|
|
Loading…
Reference in New Issue