Linux ip-172-26-7-228 5.4.0-1103-aws #111~18.04.1-Ubuntu SMP Tue May 23 20:04:10 UTC 2023 x86_64
Your IP : 3.149.28.7
Current Path : /var/www/oasis/js/ |
| Current File : /var/www/oasis/js/degree_Subject_Report.js |
function calldegree_subject_report() {
$('#page_main_div').load(
'../html_modules/degree_Subject_Report.html?',
function () {
document.getElementById('display_module_name').innerHTML =
'Degree-Subject Report'
document.getElementById('module_name_for_save').value =
'Degree-Subject Report'
getDefaultHeadFooterLinks('Degree-Subject Report')
loadDegree()
}
)
}
function loadDegree() {
$.ajax({
type: 'GET',
url: $host_url + 'degreeForDegreeSubjectReport',
success: function (res) {
let response = JSON.parse(res)
console.log(response, 'hi')
var opt = `<option value=''>--Select--</option>`
if (response.error_code === 0) {
for (i = 0; i < response.data.length; i++) {
opt += `<option value='${response.data[i].internal_code}'>${response.data[i].VALUE}</option>`
}
document.getElementById('degreeid').innerHTML = opt
}
},
})
}
function handleExamno() {
var degree = document.getElementById('degreeid').value
console.log(degree, 'degree')
$.ajax({
type: 'GET',
url: $host_url + 'examnnoForDegreeSubjectReport',
data: '°ree=' + degree,
success: function (res) {
let response = JSON.parse(res)
var opt = `<option value=''>--Select--</option>`
if (response.error_code === 0) {
for (i = 0; i < response.data.length; i++) {
opt += `<option value='${response.data[i].internal_code}'>${response.data[i].VALUE}</option>`
}
document.getElementById('examnoid').innerHTML = opt
}
},
})
}
function handlerReport() {
var degree = document.getElementById('degreeid').value
var examno = document.getElementById('examnoid').value
var report = document.getElementById('report').value
console.log(degree, examno, report, 'ji')
}
function generatedegree_subjectreport() {
var degree = document.getElementById('degreeid').value
var examno = document.getElementById('examnoid').value
var report = document.getElementById('report').value
if (degree == '') {
alert('Select Degree')
return
} else if (examno == '') {
alert('Select Examno')
return
} else if (report == '') {
alert('Select Report')
return
}
if (report == 'degree') {
window.open(
$host_url +
'degreeDetailsReport°reeid=' +
degree +
'&examno=' +
examno
)
} else if (report == 'subject') {
window.open(
$host_url +
'sujectDetailsReport°reeid=' +
degree +
'&examno=' +
examno
)
}
}
|