!function(){"use strict";angular.module("sims.module.teacher",["sims","gettext"])}(),function(){"use strict";angular.module("sims.module.teacher").controller("TeacherController",["$scope","$state","$rootScope","$timeout","gettextCatalog","$http","ENV",function(e,t,a,s,o,n,r){e.display=!1,e.turl=e.ObjSchoolDetails.lic_website_url,"asd"!=n.defaults.headers.common.schoolId&&"aps"!=n.defaults.headers.common.schoolId&&"lwg"!=n.defaults.headers.common.schoolId&&"aelc"!=n.defaults.headers.common.schoolId&&"smsm"!=n.defaults.headers.common.schoolId||(e.hide_tile=!0),e.getTeachersList=function(){e.studentName=a.globals.currentStudent.sims_student_passport_fullname,"brs"==n.defaults.headers.common.schoolId?n.get(r.apiUrl+"api/teacher/getTeachersListNew?enrollNo="+a.globals.currentStudent.enroll_number).then(function(t){e.display=!0,e.teachers=t.data,e.access=!0}):"asd"==n.defaults.headers.common.schoolId||"aps"==n.defaults.headers.common.schoolId||"lwg"==n.defaults.headers.common.schoolId||"aelc"==n.defaults.headers.common.schoolId||"smsm"==n.defaults.headers.common.schoolId?n.get(r.apiUrl+"api/teacher/getTeachersListAsd?enrollNo="+a.globals.currentStudent.enroll_number).then(function(t){e.display=!0,e.teachers=t.data,t.data.length>0?e.chk_no_found=!1:e.chk_no_found=!0}):n.get(r.apiUrl+"api/teacher/getTeachersList?enrollNo="+a.globals.currentStudent.enroll_number).then(function(t){e.display=!0,e.teachers=t.data,t.data.length>0?e.chk_no_found=!1:e.chk_no_found=!0})},e.open_link=function(e){setTimeout(function(){$("#sidr").toggleChat()},1e3),window.open(e,"_new")},e.contentClick=function(){},a.globals.studentsLoaded&&e.getTeachersList(),e.$on("student_change",function(){e.getTeachersList()})}])}(),angular.module("sims.module.teacher").directive("errSrc",["$scope","gettextCatalog",function(e,t){return{link:function(e,t,a){t.bind("error",function(){a.src!=a.errSrc&&a.$set("src",a.errSrc)})}}}]),function(){"use strict";angular.module("sims.module.teacher").controller("communicationController",["$scope","$state","$rootScope","$timeout","gettextCatalog","$http","ENV",function(e,t,a,s,o,n,r){e.uploading_doc1=!0,e.mainnn=!0,e.display=!1,e.show_subject=!0,e.newchat=!1,e.comm_filename=!1,"asd"!=n.defaults.headers.common.schoolId&&"aps"!=n.defaults.headers.common.schoolId&&"lwg"!=n.defaults.headers.common.schoolId&&"aelc"!=n.defaults.headers.common.schoolId&&"smsm"!=n.defaults.headers.common.schoolId||(e.hide_tile=!0);var i,l=n.defaults.headers.common.schoolId;e.path1=r.docUrl+l+"/Images/MessageFile/",e.link=function(t){window.open(e.path1+t,"_new")},e.path2=r.docUrl+l+"/Docs/Student/",e.comurl=e.ObjSchoolDetails.lic_website_url+"Docs/Student/",e.viewfile=function(t){window.open(e.comurl+t,"_new")},n.get(r.apiUrl+"api/ParentPortal/Communication/getParentID?enrollNumber="+a.globals.currentStudent.enroll_number).then(function(t){e.parent_id2=t.data,e.pid2=e.parent_id2[0].pid2}),e.getTeachersList=function(){e.newchat=!1,e.turl=e.ObjSchoolDetails.lic_website_url+"/",e.prev_img="",e.studentName=a.globals.currentStudent.sims_student_passport_fullname,n.get(r.apiUrl+"api/ParentPortal/Communication/getParentID?enrollNumber="+a.globals.currentStudent.enroll_number).then(function(t){e.parent_id=t.data,e.pid=e.parent_id[0].pid}),"brs"==n.defaults.headers.common.schoolId?n.get(r.apiUrl+"api/teacher/getTeachersListNew?enrollNo="+a.globals.currentStudent.enroll_number).then(function(t){e.display=!0,e.teachers=t.data,e.access=!0}):"asd"==n.defaults.headers.common.schoolId||"aps"==n.defaults.headers.common.schoolId||"lwg"==n.defaults.headers.common.schoolId||"aelc"==n.defaults.headers.common.schoolId||"smsm"==n.defaults.headers.common.schoolId?n.get(r.apiUrl+"api/teacher/getTeachersListAsd?enrollNo="+a.globals.currentStudent.enroll_number).then(function(t){e.display=!0,e.teachers=t.data,t.data.length>0?e.chk_no_found=!1:e.chk_no_found=!0}):n.get(r.apiUrl+"api/teacher/getTeachersList?enrollNo="+a.globals.currentStudent.enroll_number).then(function(t){e.display=!0,e.teachers=t.data,t.data.length>0?e.chk_no_found=!1:e.chk_no_found=!0}),e.previousMessage=function(){if(e.currentIndex>0){e.currentIndex--;const t=e.comm_subject[e.currentIndex];e.onsubjectClk1(t,e.currentIndex)}},e.nextMessage=function(){if(e.currentIndex 1. You can choose to pay the full amount. Minimum payable is 200 OMR per student. If Transport is selected, minimum deposit of 100 OMR will be added. 1)The Re- registration fees of 200 OMR per child and Transport deposit of 100 OMR per child (If required) will be paid at school. You can fill the form online and pay at school accordingly. Please note that the 2021-22 seat will be confirmed after these dues are fully settled. "),$(a.currentTarget).parents("tr").after(i),e.flag=!1;else{$("#innerRow").css({display:"none"});for(var o=0;oParticulars "+s.sims_fee_code_description+" Expected Amount "+s.dd_fee_amount_final+" Fee Amount "+s.dd_fee_amount_final+" Balance "+(s.dd_fee_amount_final-t.dd_fee_amount_discounted)+" Payment Mode "+s.dd_fee_payment_mode+" Cheque/DD No "+s.cheque_number+" Cheque Status "+s.ChequeStatus_Desc+" Date "+s.creation_date+" Received By "+s.creation_user+" 0&&(e.studFeeDetails=e.compareArrays(e.studFeeDetails,e.agent_list),e.term_change(e.std_term_name))})},e.insert_temp=function(){if(void 0==e.card_last_digit&&(e.card_last_digit=""),e.card_last_digit.length<4)swal({title:"Alert",text:"Please enter last 4 digit of card number"});else{for(var t=[],s=0,o=0;o0&&(e.studFeeDetails=e.compareArrays(e.studFeeDetails,e.agent_list),e.term_change(e.std_term_name))})},e.insert_temp=function(){if(void 0==e.card_last_digit&&(e.card_last_digit=""),e.card_last_digit.length<4)swal({title:"Alert",text:"Please enter last 4 digit of card number"});else{for(var t=[],s=0,o=0;o0&&(e.studFeeDetails=e.compareArrays(e.studFeeDetails,e.agent_list),e.term_change(e.std_term_name))})},e.insert_temp=function(t){if(t){e.amount=e.grid.grad_total;for(var s=[],o=0,i=0;i';a+="",a+="
")(e);$("#CVgrid").html(c)},e.getdays=function(){i.post(e.apiurlnew+"api/SchoolTimeTable/TimeTableCommon",{opr:"Q"}).then(function(t){e.oSlotDayNamestemp=t.data.table,e.oSlotDayNames=[],$(e.oSlotDayNamestemp).each(function(t,a){e.oSlotDayNames[parseInt(a.sims_appl_parameter)-1]=a.sims_appl_form_field_value1}),setTimeout(function(){e.genClassView()},500)})},e.printDiv=function(){var t;$("#report_Modal").modal("show"),e.parameters={acad_year:e.aca_year,bell:e.bell_code,gradecode:e.grade_code,seccode:e.sec_code},t="SimsReports.Schedulling.SCHR05,SimsReports";var a=window.location.href,s=a.substring(0,a.indexOf(":"));if("sms"==i.defaults.headers.common.schoolId)if("https"==s)var n="https://"+i.defaults.headers.common.schoolId+".nis.edu.kw/report/api/reports/";else n="http://"+i.defaults.headers.common.schoolId+".nis.edu.kw/report/api/reports/";else if("elcportal"==i.defaults.headers.common.schoolId||"lwgportal"==i.defaults.headers.common.schoolId)if("https"==s)n="https://"+i.defaults.headers.common.schoolId+".amityelc.ae/report/api/reports/";else n="http://"+i.defaults.headers.common.schoolId+".amityelc.ae/report/api/reports/";else n=l.newReportUrl+i.defaults.headers.common.schoolId+"/api/reports/";$("#reportViewer4").telerik_ReportViewer({serviceUrl:n,viewMode:telerikReportViewer.ViewModes.INTERACTIVE,scaleMode:telerikReportViewer.ScaleModes.SPECIFIC,scale:1,ready:function(){}}),$("#reportViewer4").data("telerik_ReportViewer").reportSource({report:t,parameters:e.parameters}),setInterval(function(){$("#k-item k-state-default k-state-disabled").css({display:"block"}),$(".trv-report-viewer input[type=number]").css({"min-height":"0px"}),$(".k-group li:nth-child(2)").css({display:"none"}),$(".k-group li:nth-child(3)").css({display:"none"}),$(".k-group li:nth-child(4)").css({display:"none"}),$(".k-group li:nth-child(5)").css({display:"none"}),$(".k-group li:nth-child(6)").css({display:"none"}),$(".k-group li:nth-child(7)").css({display:"none"})},1e3),o(function(){$("#k-item k-state-default k-state-disabled").css({display:"block"}),$(".trv-report-viewer input[type=number]").css({"min-height":"0px"}),$(".k-group li:nth-child(2)").css({display:"none"}),$(".k-group li:nth-child(3)").css({display:"none"}),$(".k-group li:nth-child(4)").css({display:"none"}),$(".k-group li:nth-child(5)").css({display:"none"}),$(".k-group li:nth-child(6)").css({display:"none"}),$(".k-group li:nth-child(7)").css({display:"none"})},1e3),$("#report_Modal").modal({backdrop:"static",keyboard:!1})},$(document).ready(function(){e.condenseMenu(),e.getdays()})},e.$on("student_change",function(t,a){e.getstudentList()}),s.globals.studentsLoaded&&e.getstudentList()}])}(),function(){"use strict";angular.module("sims.module.fees").controller("FeePearlController",["$scope","$state","$rootScope","$timeout","gettextCatalog","$http","ENV","$location",function(e,t,a,s,o,n,r,i){e.grid={},e.hide_fee=!1,e.chk_disabled=!0,e.username=a.globals.currentUser.username,e.grid.chkAll=!1;var l=i.search();if(!jQuery.isEmptyObject(l)){var d={temp_dd_doc_no:l.vpc_MerchTxnRef,temp_dd_fee_status:l.vpc_TxnResponseCode,temp_dd_fee_transaction_id:l.vpc_TransactionNo,receiptno:l.receiptNo,cardtype:l.cardType,batchno:l.batchNo,authorizeid:l.authorizeID,acqresponsecode:l.acqResponseCode};n.post(r.apiUrl+"api/fees/update_doc1",d).then(function(t){e.msg1=t.data,t.data?swal({title:"Alert",text:"Payement Done Successfully Your Transaction Number is "+l.vpc_TransactionNo,imageUrl:"assets/img/check.png"},function(e){!0===e&&window.open("http://dpsmis.mograsys.com/ppn#/main/fees","_self")}):swal({title:"Alert",text:"Some Problem in Payment plz check agian..",width:380,height:200},function(e){!0===e&&window.open("http://dpsmis.mograsys.com/ppn#/main/fees","_self")})})}e.grid.selectAll=function(){for(var t=0,a=0;a",a+=' ",a+="",a+="";for(s=0;sD/Lec ';for(var s=0;s '+o+'['+r+" to "+(i[0]+":"+i[1])+"] ";for(var l=0;l0&&(e.studFeeDetails=e.compareArrays(e.studFeeDetails,e.agent_list),e.term_change(e.std_term_name))})})},e.getFeesDetails=function(t){n.post(r.apiUrl+"api/reportcardnew/ReportCommon",{opr:"S"}).then(function(t){e.academic_year_lst=t.data.table,e.academic_year=a.globals.currentStudent.sims_acad_yr}),e.get_once(a.globals.currentStudent.sims_acad_yr)},e.insert_temp=function(){for(var t=[],s=0,o=0;o0&&(e.studFeeDetails=e.compareArrays(e.studFeeDetails,e.agent_list),e.term_change(e.std_term_name))})},e.academic_change=function(t){e.studFeeDetails=[],n.get(r.apiUrl+"api/reportcardnew/getAllTerms?cur_code="+a.globals.currentStudent.sims_cur_code+"&acayear="+t+"&enroll="+a.globals.currentStudent.enroll_number+"&opr=R").then(function(t){e.term_list=t.data,t.data.length>0&&(e.std_term_name=t.data[0].sims_term_code)}),e.studentName=a.globals.currentStudent.sims_student_passport_fullname,e.acYear=t,e.std_enroll_number=a.globals.currentStudent.enroll_number,e.std_cur_code=a.globals.currentStudent.sims_cur_code,e.grid.chkAll=!1,e.Student=a.globals.currentStudent,e.IP={StudCurr:e.std_cur_code,StudAcademic:t,StudEnroll:a.globals.currentStudent.enroll_number},n.get(r.apiUrl+"api/fees/GetStudentFee_VAT?data="+JSON.stringify(e.IP)).then(function(t){e.display=!0;var s=t.data.length;e.termwise=[],console.log("fee:",t.data),e.all_Data=t.data;for(var o=0;o=0&&(e.studFeeDetails[n].ischecked=!0,e.grid.select(e.studFeeDetails[n]))}e.agent_list.length>0&&(e.studFeeDetails=e.compareArrays(e.studFeeDetails,e.agent_list),e.term_change(e.std_term_name))})},e.insert_temp=function(){if(void 0==e.card_last_digit&&(e.card_last_digit=""),e.card_last_digit.length<4)swal({title:"Alert",text:"Please enter last 4 digit of card number"});else{for(var t=[],s=0,o=0;o0&&(e.studFeeDetails=e.compareArrays(e.studFeeDetails,e.agent_list),e.term_change(e.std_term_name))})},e.academic_change=function(t){e.studFeeDetails=[],n.get(r.apiUrl+"api/reportcardnew/getAllTerms?cur_code="+a.globals.currentStudent.sims_cur_code+"&acayear="+t+"&enroll="+a.globals.currentStudent.enroll_number+"&opr=R").then(function(t){e.term_list=t.data,t.data.length>0&&(e.std_term_name=t.data[0].sims_term_code)}),e.studentName=a.globals.currentStudent.sims_student_passport_fullname,e.acYear=t,e.std_enroll_number=a.globals.currentStudent.enroll_number,e.std_cur_code=a.globals.currentStudent.sims_cur_code,e.grid.chkAll=!1,e.Student=a.globals.currentStudent,e.IP={StudCurr:e.std_cur_code,StudAcademic:t,StudEnroll:a.globals.currentStudent.enroll_number},n.get(r.apiUrl+"api/fees/GetStudentFee_VAT?data="+JSON.stringify(e.IP)).then(function(t){e.display=!0;var s=t.data.length;e.termwise=[],console.log("fee:",t.data),e.all_Data=t.data;for(var o=0;o=0&&(e.studFeeDetails[n].ischecked=!0,e.grid.select(e.studFeeDetails[n]))}e.agent_list.length>0&&(e.studFeeDetails=e.compareArrays(e.studFeeDetails,e.agent_list),e.term_change(e.std_term_name))})},e.insert_temp=function(){for(var t=[],s=0,o=0;o0&&(e.studFeeDetails=e.compareArrays(e.studFeeDetails,e.agent_list),e.term_change(e.std_term_name))})},e.academic_change=function(t){e.studFeeDetails=[],n.get(r.apiUrl+"api/reportcardnew/getAllTerms?cur_code="+a.globals.currentStudent.sims_cur_code+"&acayear="+t+"&enroll="+a.globals.currentStudent.enroll_number+"&opr=R").then(function(t){e.term_list=t.data,t.data.length>0&&(e.std_term_name=t.data[0].sims_term_code)}),e.studentName=a.globals.currentStudent.sims_student_passport_fullname,e.acYear=t,e.std_enroll_number=a.globals.currentStudent.enroll_number,e.std_cur_code=a.globals.currentStudent.sims_cur_code,e.grid.chkAll=!1,e.Student=a.globals.currentStudent,e.IP={StudCurr:e.std_cur_code,StudAcademic:t,StudEnroll:a.globals.currentStudent.enroll_number},n.get(r.apiUrl+"api/fees/GetStudentFee_VAT?data="+JSON.stringify(e.IP)).then(function(t){e.display=!0;var s=t.data.length;e.termwise=[],console.log("fee:",t.data),e.all_Data=t.data;for(var o=0;o=0&&(e.studFeeDetails[n].ischecked=!0,e.grid.select(e.studFeeDetails[n]))}e.agent_list.length>0&&(e.studFeeDetails=e.compareArrays(e.studFeeDetails,e.agent_list),e.term_change(e.std_term_name))})},e.insert_temp=function(){for(var t=[],s=0,o=0;o0&&t.data[0].sims_appl_form_field_value1?(e.fee_codee=t.data[0].sims_appl_form_field_value1,e.period_codee=t.data[0].sims_appl_form_field_value2,e.custom_amount=t.data[0].sims_appl_form_field_value3,e.sims_advanced_academic_year=t.data[0].sims_advanced_academic_year):console.log("custom fee data is null in paramter, undefined, or empty. Setting a default value."),n.get(r.apiUrl+"api/fees/getAllAcademic?cur_code="+a.globals.currentStudent.sims_cur_code).then(function(t){e.academic_year_lst=t.data}),n.get(r.apiUrl+"api/fees/getAllAcademicYears?cur_code="+a.globals.currentStudent.sims_cur_code).then(function(t){e.acade_year=t.data,e.current_academic_year=e.acade_year[0].academic_year,e.current_academic_year_desc=e.acade_year[0].academic_year_desc,e.academic_year=e.acade_year[0].academic_year,e.fe_enroll=a.globals.currentStudent.enroll_number;a.globals.currentStudent.enroll_number;e.chk_select_disabled="O"==a.globals.currentStudent.sims_academic_year_status,e.acYearDesc=a.globals.currentStudent.sims_academic_year_description,e.studentName=a.globals.currentStudent.sims_student_passport_fullname,e.acYear=e.current_academic_year,e.std_enroll_number=a.globals.currentStudent.enroll_number,e.std_cur_code=a.globals.currentStudent.sims_cur_code,e.grid.chkAll=!1,e.Student=a.globals.currentStudent,e.IP={StudCurr:e.std_cur_code,StudAcademic:e.acYear,StudEnroll:a.globals.currentStudent.enroll_number},n.get(r.apiUrl+"api/common/getDataParameter?sims_appl_code=Common&sims_appl_form_field=Card Payment Charges").then(function(t){e.card_charges=t.data,n.get(r.apiUrl+"api/fees/GetStudentFeeLeams?data="+JSON.stringify(e.IP)).then(function(t){e.display=!0,t.data.length>0&&(e.firstname=t.data[0].parentName);var s=t.data.length;if(e.acYear===e.sims_advanced_academic_year){var o=t.data[0].feeDetails.some(function(t){return t.studFeeCode===e.fee_codee&&t.studFeePeriodNo===e.period_codee&&t.studTotalPaidAMT===e.custom_amount});o||t.data[0].feeDetails.sort(function(t,a){return t.studFeeCode===e.fee_codee&&t.studFeePeriodNo===e.period_codee?-1:a.studFeeCode===e.fee_codee&&a.studFeePeriodNo===e.period_codee?1:0})}for(var n=0;n0&&(l=parseFloat(parseFloat(e.studFeeDetails[i].studBalancePayingAMT)*parseFloat(e.studFeeDetails[i].stud_vat_per))/(100+parseFloat(e.studFeeDetails[i].stud_vat_per)),e.studFeeDetails[i].studBalanceAMT=parseFloat(e.studFeeDetails[i].studBalancePayingAMT)-l);var d={temp_dd_doc_no:"",temp_dd_doc_date:"",temp_dd_enroll_number:e.studFeeDetails[i].studEnroll,temp_dd_line_no:o,temp_dd_fee_number:e.studFeeDetails[i].studFeeNumber,temp_dd_fee_code:e.studFeeDetails[i].studFeeCode,temp_dd_fee_period_code:e.studFeeDetails[i].studFeePeriodNo,temp_dd_fee_amount:e.studFeeDetails[i].studBalanceAMT,temp_dd_fee_amount_discounted:"",temp_dd_fee_amount_final:e.studFeeDetails[i].studBalancePayingAMT,temp_dd_fee_payment_mode:"VC",temp_dd_fee_transaction_id:"",temp_dd_fee_academic_year:e.studFeeDetails[i].studAcademic,temp_dd_fee_status:"P",temp_dd_creation_user:a.globals.currentUser.username,temp_dd_creation_date:"",temp_dd_fee_card_last_number:e.card_last_digit,temp_dd_transaction_type:"C",temp_dd_transaction_from:a.globals.currentUser.username,temp_dd_other_charge_amount:l};o++,s.push(d)}if(e.card_charges.length>0){if("Y"==e.card_charges[0].sims_appl_form_field_value1)d={temp_dd_doc_no:"",temp_dd_doc_date:"",temp_dd_enroll_number:e.studFeeDetails[0].studEnroll,temp_dd_line_no:o,temp_dd_fee_number:"",temp_dd_fee_code:e.card_charges[0].sims_appl_form_field_value4,temp_dd_fee_period_code:s[0].temp_dd_fee_period_code,temp_dd_fee_amount:e.grid.convence_charge,temp_dd_fee_amount_discounted:"",temp_dd_fee_amount_final:e.grid.convence_charge,temp_dd_fee_payment_mode:"VC",temp_dd_fee_transaction_id:"",temp_dd_fee_academic_year:e.studFeeDetails[0].studAcademic,temp_dd_fee_status:"N",temp_dd_creation_user:a.globals.currentUser.username,temp_dd_creation_date:"",temp_dd_fee_card_last_number:e.card_last_digit,temp_dd_transaction_type:"C",temp_dd_transaction_from:a.globals.currentUser.username};s.push(d)}n.post(r.apiUrl+"api/fees/CUD_fee_docAsdNew",s).then(function(t){e.refNumbertrans=parseInt(t.data),""==t.data?swal({title:"Alert",text:"Some Problem in Payment plz try agian..",width:380,height:200}):n.get(r.apiUrl+"api/fees/GetAmount_status?doc_no="+e.refNumbertrans).then(function(t){e.amount_total_ppn_new=t.data,e.amount_total_ppn=e.amount_total_ppn_new[0].temp_dd_fee_amount_final,e.amount_totalPPN=parseFloat(e.amount_total_ppn),console.log("$scope.amount_total_ppn",e.amount_totalPPN),e.amount_totalPPN==e.grid.grad_total?setTimeout(function(){e.pay_ful("creditcard")},100):swal({title:"Alert",text:"Some Problem in Payment plz try agian..",width:380,height:200})})})}else swal({title:"Alert",text:"Please accept the terms and conditions before continuing.",width:380,height:200})},e.onlyNumbers=function(e){var t={escape:27,backspace:8,tab:9,enter:13,del:46,0:48,1:49,2:50,3:51,4:52,5:53,6:54,7:55,8:56,9:57};for(var a in t)if(t.hasOwnProperty(a)&&(e.charCode==t[a]||e.keyCode==t[a]))return;e.preventDefault()},e.goto_history=function(){$("#report_Modal").modal({backdrop:"static",keyboard:!1}),n.get(r.apiUrl+"api/fees/gettransactiondetail?search="+a.globals.currentStudent.sims_student_enroll_number).then(function(t){e.transaction_lst=t.data,console.log("$scope.transaction_lst",e.transaction_lst)})},e.report_cancel=function(){$("#report_Modal").modal("hide")},e.report_cancel1=function(){e.flg_report=!1},e.PreviousFeeDetails=function(){e.show_rpt=!1,e.previous={student_name:a.globals.currentStudent.sims_student_passport_fullname,class1:a.globals.currentStudent.sims_grade_name_en},$("#Pre_report").modal({backdrop:"static",keyboard:!1}),n.get(r.apiUrl+"api/fees/GetPreviousReceiptsNew?ay="+a.globals.currentStudent.sims_acad_yr+"&enroll="+a.globals.currentStudent.enroll_number).then(function(t){e.feesReceiptData=t.data[0],e.feesDisReceiptData=t.data[1],angular.forEach(e.feesDisReceiptData,function(e,t){e.sims_icon="fa fa-minus-circle"}),e.doc_nos=[],angular.forEach(e.feesReceiptData,function(t,a){e.summery.dd_fee_amount_final=parseFloat(e.summery.dd_fee_amount_final)+parseFloat(t.dd_fee_amount_final),e.summery.dd_fee_amount_discounted=parseFloat(e.summery.dd_fee_amount_discounted)+parseFloat(t.dd_fee_amount_discounted),console.log(t)}),e.feesReceiptData.push(e.summery)})},e.printReport=function(t){let a;e.show_rpt=!0,e.parameters={fee_rec_no:t},n.get(r.apiUrl+"api/fees/GetReceipt").then(function(t){let o=t.data;a="SimsReports."+o+",SimsReports";let r=window.location.href;r.substring(0,r.indexOf(":"));var i="https://rep.mograsys.com/"+n.defaults.headers.common.schoolId+"/api/reports/";$("#reportViewer4").telerik_ReportViewer({serviceUrl:i,viewMode:telerikReportViewer.ViewModes.INTERACTIVE,scaleMode:telerikReportViewer.ScaleModes.SPECIFIC,scale:1,ready:function(){}}),$("#reportViewer4").data("telerik_ReportViewer").reportSource({report:a,parameters:e.parameters}),setInterval(function(){$("#k-item k-state-default k-state-disabled").css({display:"block"}),$(".trv-report-viewer input[type=number]").css({"min-height":"0px"}),$(".k-group li:nth-child(2)").css({display:"none"}),$(".k-group li:nth-child(3)").css({display:"none"}),$(".k-group li:nth-child(4)").css({display:"none"}),$(".k-group li:nth-child(5)").css({display:"none"}),$(".k-group li:nth-child(6)").css({display:"none"}),$(".k-group li:nth-child(7)").css({display:"none"})},1e3),s(function(){$("#k-item k-state-default k-state-disabled").css({display:"block"}),$(".trv-report-viewer input[type=number]").css({"min-height":"0px"}),$(".k-group li:nth-child(2)").css({display:"none"}),$(".k-group li:nth-child(3)").css({display:"none"}),$(".k-group li:nth-child(4)").css({display:"none"}),$(".k-group li:nth-child(5)").css({display:"none"}),$(".k-group li:nth-child(6)").css({display:"none"}),$(".k-group li:nth-child(7)").css({display:"none"})},1e3)})},e.printReportnew=function(t){let a;e.parameters={fee_rec_no:t},n.get(r.apiUrl+"api/fees/GetReceipt").then(function(t){let o=t.data;a="SimsReports."+o+",SimsReports";let r=window.location.href;r.substring(0,r.indexOf(":"));var i="https://rep.mograsys.com/"+n.defaults.headers.common.schoolId+"/api/reports/";$("#reportViewer4").telerik_ReportViewer({serviceUrl:i,viewMode:telerikReportViewer.ViewModes.INTERACTIVE,scaleMode:telerikReportViewer.ScaleModes.SPECIFIC,scale:1,ready:function(){}}),$("#reportViewer4").data("telerik_ReportViewer").reportSource({report:a,parameters:e.parameters}),$("#reportViewer4").data("telerik_ReportViewer").commands.export.exec("pdf"),setInterval(function(){$("#k-item k-state-default k-state-disabled").css({display:"block"}),$(".trv-report-viewer input[type=number]").css({"min-height":"0px"}),$(".k-group li:nth-child(2)").css({display:"none"}),$(".k-group li:nth-child(3)").css({display:"none"}),$(".k-group li:nth-child(4)").css({display:"none"}),$(".k-group li:nth-child(5)").css({display:"none"}),$(".k-group li:nth-child(6)").css({display:"none"}),$(".k-group li:nth-child(7)").css({display:"none"})},1e3),s(function(){$("#k-item k-state-default k-state-disabled").css({display:"block"}),$(".trv-report-viewer input[type=number]").css({"min-height":"0px"}),$(".k-group li:nth-child(2)").css({display:"none"}),$(".k-group li:nth-child(3)").css({display:"none"}),$(".k-group li:nth-child(4)").css({display:"none"}),$(".k-group li:nth-child(5)").css({display:"none"}),$(".k-group li:nth-child(6)").css({display:"none"}),$(".k-group li:nth-child(7)").css({display:"none"})},1e3)})},e.print_rpt=function(t,a){var o;e.flg_report=!0,e.parameters={fee_rec_no:t,search:a},o="SimsReports.Sims.SIMR51LEAMSOR,SimsReports";var r=window.location.href,i=(r.substring(0,r.indexOf(":")),"https://rep.mograsys.com/"+n.defaults.headers.common.schoolId+"/api/reports/");$("#reportViewer3").telerik_ReportViewer({serviceUrl:i,viewMode:telerikReportViewer.ViewModes.INTERACTIVE,scaleMode:telerikReportViewer.ScaleModes.SPECIFIC,scale:1,ready:function(){}}),$("#reportViewer3").data("telerik_ReportViewer").reportSource({report:o,parameters:e.parameters}),setInterval(function(){$("#k-item k-state-default k-state-disabled").css({display:"block"}),$(".trv-report-viewer input[type=number]").css({"min-height":"0px"}),$(".k-group li:nth-child(1)").css({display:"none"}),$(".k-group li:nth-child(2)").css({display:"none"}),$(".k-group li:nth-child(3)").css({display:"none"}),$(".k-group li:nth-child(4)").css({display:"none"}),$(".k-group li:nth-child(5)").css({display:"none"}),$(".k-group li:nth-child(6)").css({display:"none"}),$(".k-group li:nth-child(7)").css({display:"none"})},1e3),s(function(){$("#k-item k-state-default k-state-disabled").css({display:"block"}),$(".trv-report-viewer input[type=number]").css({"min-height":"0px"}),$(".k-group li:nth-child(1)").css({display:"none"}),$(".k-group li:nth-child(2)").css({display:"none"}),$(".k-group li:nth-child(3)").css({display:"none"}),$(".k-group li:nth-child(4)").css({display:"none"}),$(".k-group li:nth-child(5)").css({display:"none"}),$(".k-group li:nth-child(6)").css({display:"none"}),$(".k-group li:nth-child(7)").css({display:"none"})},1e3)},n.get(r.apiUrl+"api/common/getDataParameter?sims_appl_code=feSisd&sims_appl_form_field=Fee Terms").then(function(t){t.data.length>0&&(e.terms=t.data[0].sims_appl_form_field_value2)}),e.print_rptnew=function(t,a){var o;e.parameters={fee_rec_no:t,search:a},o="SimsReports.Sims.SIMR51LEAMSOR,SimsReports";var r=window.location.href,i=(r.substring(0,r.indexOf(":")),"https://rep.mograsys.com/"+n.defaults.headers.common.schoolId+"/api/reports/");$("#reportViewer3").telerik_ReportViewer({serviceUrl:i,viewMode:telerikReportViewer.ViewModes.INTERACTIVE,scaleMode:telerikReportViewer.ScaleModes.SPECIFIC,scale:1,ready:function(){}}),$("#reportViewer3").data("telerik_ReportViewer").reportSource({report:o,parameters:e.parameters}),$("#reportViewer3").data("telerik_ReportViewer").commands.export.exec("pdf"),setInterval(function(){$("#k-item k-state-default k-state-disabled").css({display:"block"}),$(".trv-report-viewer input[type=number]").css({"min-height":"0px"}),$(".k-group li:nth-child(2)").css({display:"none"}),$(".k-group li:nth-child(3)").css({display:"none"}),$(".k-group li:nth-child(4)").css({display:"none"}),$(".k-group li:nth-child(5)").css({display:"none"}),$(".k-group li:nth-child(6)").css({display:"none"}),$(".k-group li:nth-child(7)").css({display:"none"})},1e3),s(function(){$("#k-item k-state-default k-state-disabled").css({display:"block"}),$(".trv-report-viewer input[type=number]").css({"min-height":"0px"}),$(".k-group li:nth-child(2)").css({display:"none"}),$(".k-group li:nth-child(3)").css({display:"none"}),$(".k-group li:nth-child(4)").css({display:"none"}),$(".k-group li:nth-child(5)").css({display:"none"}),$(".k-group li:nth-child(6)").css({display:"none"}),$(".k-group li:nth-child(7)").css({display:"none"})},1e3)},e.Pre_report_cancel=function(){$("#Pre_report").modal("hide")},e.Pre_report_cancel1=function(){e.show_rpt=!1},e.pay_ful=function(t){var a=document.createElement("form");a.setAttribute("method","post"),a.setAttribute("action","https://pg.mograsys.com/"+n.defaults.headers.common.schoolId+"/index.php"),a.setAttribute("name","form2");var s=document.createElement("input");s.setAttribute("type","text"),s.setAttribute("name","amount"),s.setAttribute("value",e.grid.grad_total);var o=document.createElement("input");o.setAttribute("type","text"),o.setAttribute("name","description"),o.setAttribute("value",e.username);var r=document.createElement("input");r.setAttribute("type","text"),r.setAttribute("name","trackId"),r.setAttribute("value",e.refNumbertrans);var i=document.createElement("input");i.setAttribute("type","text"),i.setAttribute("name","fname"),i.setAttribute("value",e.username);var l=document.createElement("input");l.setAttribute("type","text"),l.setAttribute("name","lastName"),l.setAttribute("value",e.username);var d=document.createElement("input");d.setAttribute("type","text"),d.setAttribute("name","email"),d.setAttribute("value",e.pemail);var _=document.createElement("input");_.setAttribute("type","text"),_.setAttribute("name","mobile"),_.setAttribute("value",e.pemobile);var c=document.createElement("input");c.setAttribute("type","text"),c.setAttribute("name","phone"),c.setAttribute("value",e.pemobile);var m=document.createElement("input");m.setAttribute("type","submit"),m.setAttribute("value","Submit"),m.setAttribute("name","Submit1"),a.appendChild(s),a.appendChild(o),a.appendChild(r),a.appendChild(i),a.appendChild(l),a.appendChild(d),a.appendChild(_),a.appendChild(c),a.appendChild(m),document.getElementById("sss").appendChild(a),document.form2.Submit1.click()},e.$on("student_change",function(t,a){e.getFeesDetails()}),a.globals.studentsLoaded&&e.getFeesDetails()}])}(),function(){"use strict";angular.module("sims.module.calendar").controller("CanteenSetupController",["$scope","$state","$rootScope","$timeout","gettextCatalog","$http","ENV",function(e,t,a,s,o,n,r){let i=a.globals.currentUser.username,l=new Date;e.currentDate=l;let d=l.getDate(),_=l.getMonth()+1,c=l.getFullYear();d=(d<10?"0":"")+d,_=(_<10?"0":"")+_,e.swalopenModal=!1,e.swalopenModal1=!1;let m=`${d}-${_}-${c}`;function u(){!function(){$("#loader").modal({backdrop:"static",keyboard:!1});let t=new Date(c.toString(),e.currentMonth.getMonth(),1),a=t.getDate(),s=t.getMonth()+1,o=t.getFullYear(),i=`${a=(a<10?"0":"")+a}-${s=(s<10?"0":"")+s}-${o}`;n.get(r.apiUrl+"api/Canteen/getStudentCanteenDetailsForMonth?s_en_no="+localStorage.getItem("enroll_number")+"&date="+i).then(function(t){$("#loader").modal("hide"),e.StudentCanteenDedtails=t.data;let a=[],s=(new Date,new Date(e.currentMonth.getFullYear(),e.currentMonth.getMonth(),1)),o=new Date(e.currentMonth.getFullYear(),e.currentMonth.getMonth()+3,0),n=new Date(s);for(n.setDate(n.getDate()-n.getDay()),e.isRecordSaved=!1,e.cartItemCount=0,e.month=e.currentMonth.getMonth();n<=o;){let t=[];for(let a=0;a<7;a++){let a=null;const s=("0"+(a=new Date(n)).getDate()).slice(-2)+"-"+("0"+(a.getMonth()+1)).slice(-2)+"-"+a.getFullYear();if(e.obj=e.StudentCanteenDedtails.filter(function(e){return e.order_date==s}),e.obj.sort((t,a)=>t.can_menu_type_code===e.menuTypeArr[0].can_menu_type_code&&a.can_menu_type_code!==e.menuTypeArr[0].can_menu_type_code?-1:t.can_menu_type_code!==e.menuTypeArr[0].can_menu_type_code&&a.can_menu_type_code===e.menuTypeArr[0].can_menu_type_code?1:0),e.obj.length>0&&"2"==e.obj[0].tran_pay_status&&(e.payBtnShow=!0),2==e.obj.length)e.isRecordSaved=!0,t.push({date:a,dataB:{day_code:(a.getDay()+1).toLocaleString("en-US",{minimumIntegerDigits:2,useGrouping:!1}),month_code:a.getMonth().toString(),year:a.getFullYear().toString(),can_prod_code_type:e.obj[0].can_menu_type_code,student_enroll_no:localStorage.getItem("enroll_number"),order_date:s,tran_date:m,can_menu_srno:e.obj[0].can_menu_srno,tran_qty:e.obj[0].tran_qty,tran_amt:e.obj[0].tran_amt,tran_value:e.obj[0].tran_value,disabled:!0,tran_pay_status:e.obj[0].tran_pay_status,can_can_code:e.obj[0].can_can_code,can_opr_code:e.obj[0].can_opr_code,can_line_no:e.obj[0].can_line_no,can_prov_no:e.obj[0].can_prov_no},dataL:{day_code:(a.getDay()+1).toLocaleString("en-US",{minimumIntegerDigits:2,useGrouping:!1}),month_code:a.getMonth().toString(),year:a.getFullYear().toString(),can_prod_code_type:e.obj[1].can_menu_type_code,student_enroll_no:localStorage.getItem("enroll_number"),order_date:s,tran_date:m,can_menu_srno:e.obj[1].can_menu_srno,tran_qty:e.obj[1].tran_qty,tran_amt:e.obj[1].tran_amt,tran_value:e.obj[1].tran_value,disabled:!0,tran_pay_status:e.obj[1].tran_pay_status,can_can_code:e.obj[1].can_can_code,can_opr_code:e.obj[1].can_opr_code,can_line_no:e.obj[1].can_line_no,can_prov_no:e.obj[1].can_prov_no},isOutOfMonth:n.getMonth()!==e.currentMonth.getMonth(),selectedImage:e.breakfastImg,selectedImage1:e.lunchImg,fastingImg:e.fastingImg,noFoodItemImg:e.noFoodItemImg,disabled:!0,tran_pay_status:e.obj[0].tran_pay_status});else if(1==e.obj.length)e.isRecordSaved=!0,e.obj[0].can_menu_type_code==e.menuTypeArr[0].can_menu_type_code?t.push({date:a,dataB:{day_code:(a.getDay()+1).toLocaleString("en-US",{minimumIntegerDigits:2,useGrouping:!1}),month_code:a.getMonth().toString(),year:a.getFullYear().toString(),can_prod_code_type:e.obj[0].can_menu_type_code,student_enroll_no:localStorage.getItem("enroll_number"),order_date:s,tran_date:m,can_menu_srno:e.obj[0].can_menu_srno,tran_qty:e.obj[0].tran_qty,tran_amt:e.obj[0].tran_amt,tran_value:e.obj[0].tran_value,disabled:!0,tran_pay_status:e.obj[0].tran_pay_status,can_can_code:e.obj[0].can_can_code,can_opr_code:e.obj[0].can_opr_code,can_line_no:e.obj[0].can_line_no,can_prov_no:e.obj[0].can_prov_no},dataL:{day_code:(a.getDay()+1).toLocaleString("en-US",{minimumIntegerDigits:2,useGrouping:!1}),month_code:a.getMonth().toString(),year:a.getFullYear().toString(),can_prod_code_type:null,student_enroll_no:localStorage.getItem("enroll_number"),order_date:s,tran_date:m,can_menu_srno:null,tran_qty:1,tran_amt:null,tran_value:null,disabled:!1,tran_pay_status:null,can_can_code:null,can_opr_code:null,can_line_no:null,can_prov_no:null},isOutOfMonth:n.getMonth()!==e.currentMonth.getMonth(),selectedImage:e.breakfastImg,fastingImg:e.fastingImg,noFoodItemImg:e.noFoodItemImg,disabled:!0,tran_pay_status:e.obj[0].tran_pay_status}):e.obj[0].can_menu_type_code==e.menuTypeArr[1].can_menu_type_code&&t.push({date:a,dataB:{day_code:(a.getDay()+1).toLocaleString("en-US",{minimumIntegerDigits:2,useGrouping:!1}),month_code:a.getMonth().toString(),year:a.getFullYear().toString(),can_prod_code_type:null,student_enroll_no:localStorage.getItem("enroll_number"),order_date:s,tran_date:m,can_menu_srno:null,tran_qty:1,tran_amt:null,tran_value:null,disabled:!1,tran_pay_status:null,can_can_code:null,can_opr_code:null,can_line_no:null,can_prov_no:null},dataL:{day_code:(a.getDay()+1).toLocaleString("en-US",{minimumIntegerDigits:2,useGrouping:!1}),month_code:a.getMonth().toString(),year:a.getFullYear().toString(),can_prod_code_type:e.obj[0].can_menu_type_code,student_enroll_no:localStorage.getItem("enroll_number"),order_date:s,tran_date:m,can_menu_srno:e.obj[0].can_menu_srno,tran_qty:e.obj[0].tran_qty,tran_amt:e.obj[0].tran_amt,tran_value:e.obj[0].tran_value,disabled:!0,tran_pay_status:e.obj[0].tran_pay_status,can_can_code:e.obj[0].can_can_code,can_opr_code:e.obj[0].can_opr_code,can_line_no:e.obj[0].can_line_no,can_prov_no:e.obj[0].can_prov_no},isOutOfMonth:n.getMonth()!==e.currentMonth.getMonth(),selectedImage1:e.lunchImg,fastingImg:e.fastingImg,noFoodItemImg:e.noFoodItemImg,disabled:!0,tran_pay_status:e.obj[0].tran_pay_status});else{const s=("0"+(a=new Date(n)).getDate()).slice(-2)+"-"+("0"+(a.getMonth()+1)).slice(-2)+"-"+a.getFullYear();t.push({date:a,dataB:{day_code:(a.getDay()+1).toLocaleString("en-US",{minimumIntegerDigits:2,useGrouping:!1}),month_code:a.getMonth().toString(),year:a.getFullYear().toString(),can_prod_code_type:null,student_enroll_no:localStorage.getItem("enroll_number"),order_date:s,tran_date:m,can_menu_srno:null,tran_qty:1,tran_amt:null,tran_value:null,disabled:!1,tran_pay_status:null,can_can_code:null,can_opr_code:null,can_line_no:null},dataL:{day_code:(a.getDay()+1).toLocaleString("en-US",{minimumIntegerDigits:2,useGrouping:!1}),month_code:a.getMonth().toString(),year:a.getFullYear().toString(),can_prod_code_type:null,student_enroll_no:localStorage.getItem("enroll_number"),order_date:s,tran_date:m,can_menu_srno:null,tran_qty:1,tran_amt:null,tran_value:null,disabled:!1,tran_pay_status:null,can_can_code:null,can_opr_code:null,can_line_no:null},isOutOfMonth:n.getMonth()!==e.currentMonth.getMonth(),disabled:!1,tran_pay_status:null,fastingImg:e.fastingImg,noFoodItemImg:e.noFoodItemImg})}n.setDate(n.getDate()+1)}a.push(t)}function r(e){const t=e.split("-").map(Number);return new Date(t[2],t[1]-1,t[0])}e.calendar=a,e.calendar.forEach(t=>{t.forEach(t=>{const a=new Date(t.date);e.holidays.forEach(e=>{const s=r(e.sims_from_date),o=r(e.sims_to_date);a>=s&&a<=o&&(t.sims_calendar_exception_color_code=e.sims_calendar_exception_color_code,t.sims_calendar_exception_description=e.sims_calendar_exception_description)})})}),console.log("$scope.calendar: ",e.calendar),e.addtocart(),$("#loader").modal("hide")})}()}e.fastingImg="https://assets.mograsys.com/Images/Canteen/booking2.png",e.fastingIMG="https://assets.mograsys.com/Images/Canteen/booking2.png",e.fastingGIF="https://assets.mograsys.com/Images/Canteen/booking.gif",e.noFoodItemImg="",e.noFoodItemIMG="",e.noFoodItemGIF="",e.breakfastGIF="https://assets.mograsys.com/Images/Canteen/cookie-and-milk.gif",e.breakfastImg="https://assets.mograsys.com/Images/Canteen/cookie-and-milk2.png",e.lunchImg="https://assets.mograsys.com/Images/Canteen/pasta2.png",e.lunchGIF="https://assets.mograsys.com/Images/Canteen/pasta.gif",e.removeImg="https://assets.mograsys.com/Images/Canteen/canteen-cross-circle.png",e.cartGIF="https://assets.mograsys.com/Images/Canteen/cart.gif",e.cartImg="https://assets.mograsys.com/Images/Canteen/cart2.png",e.weekdays=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],e.currentMonth=new Date,e.prevMonth=function(){e.currentMonth.setMonth(e.currentMonth.getMonth()-1),u()},e.nextMonth=function(){e.currentMonth.setDate(1),e.currentMonth.setMonth(e.currentMonth.getMonth()+1),u()},e.showPrevMonth=function(){new Date;return!0},e.showNextMonth=function(){return e.currentMonth\n\t\t\t\t\t\t\t\t\t\t\t${t.description}\n\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t \n\t\t\t\t\t\t\t\t\t`)}))}}),e.link=function(t){if(e.a_url="",!angular.isUndefined(a.pp_url_lst)&&a.pp_url_lst.length>0)for(let t=0;t
2.\tThe amount payable now will be deducted from total due displayed in above table. The remaining amount will be available for the following payment plans.
3.\tPlease note that seats for next year will be confirmed only upon
a)\tPayment of seat confirmation fee 200 OMR per child.
b)\tReceipt of post dated cheques as per selected payment plan.
c)\tCurrent outstanding amount of '+e.confirm_lst[0].net_balance+" OMR is paid full.
2)The above Table excludes the Re- registration fee of 200 OMR per child and Transport deposit of 100 OMR per child (If selected) which is to be paid at school .
The remaining amount will be available for the following payment plans.
3) Please note that seat for next year will be confirmed only upon
a)\tPayment of seat confirmation fee 200 OMR per child.
b)\tReceipt of post dated cheques as per selected payment plan
c)\tCurrent outstanding amount of '+e.confirm_lst[0].net_balance+" OMR is paid full.
If Transport is selected, minimum transport deposit is OMR 100 per child.",imageUrl:"assets/img/notification-alert.png"}),e.chk_inst_m1=!0,e.grad_total=""):e.chk_inst_m1=!1},e.pay_current_year=function(){t.go("main.feeAbq")},e.check_box=function(t){"P"==t?e.paying&&(e.willing=!1,e.chk_stud()):e.willing&&(e.paying=!1,e.grad_total=0,e.fee_amt=0)},e.check_box_chk=function(t){e.dis_submit=t},e.submit_btn=function(t){if(e.dis_submit=!1,t){$("#report_Modal").modal("hide");for(var s=[],o="",i=0;i
Thank you for filling and submitting the Seat Confirmation Form. Please pay the fees at school. Please note that seat for next year will be confirmed only upon
a) Payment of seat confirmation fee 200 OMR per child.
b)\tReceipt of post dated cheques as per selected payment plan
c)\tCurrent outstanding amount of '+e.confirm_lst[0].net_balance+"OMR is paid full.",imageUrl:"assets/img/check.png"}),e.already_flg=!0,e.chk_inst_m1=!0;else swal({title:"Alert",text:"Data not saved",imageUrl:"assets/img/notification-alert.png"})})}},e.submit_btn1=function(e){e&&$("#report_Modal").modal({backdrop:"static",keyboard:!1})}},$(document).ready(function(){$("#popover").popover({content:'
2.\tThe amount payable now will be deducted from total due displayed in above table. The remaining amount will be available for the following payment plans.
3.\tPlease note that seats for next year will be confirmed only upon
a)\tPayment of seat confirmation fee 200 AED per child.
b)\tReceipt of post dated cheques as per selected payment plan.
c)\tCurrent outstanding amount of '+e.confirm_lst[0].net_balance+" AED is paid full.
1)The Re- registration fees of 200 AED per child and Transport deposit of 100 AED per child (If required) will be paid at school. You can fill the form online and pay at school accordingly.
2)The above Table excludes the Re- registration fee of 200 AED per child and Transport deposit of 100 AED per child (If selected) which is to be paid at school .
The remaining amount will be available for the following payment plans.
3) Please note that seat for next year will be confirmed only upon
a)\tPayment of seat confirmation fee 200 AED per child.
b)\tReceipt of post dated cheques as per selected payment plan
c)\tCurrent outstanding amount of '+e.confirm_lst[0].net_total_balance+" AED is paid full.
Please note that the Next year seat will be confirmed after these dues are fully settled.
',html:!0,placement:"right"})}),e.$on("student_change",function(t,a){e.getFeesDetails()}),a.globals.studentsLoaded&&e.getFeesDetails()}])}(),function(){"use strict";angular.module("sims.module.demo").controller("StudentConfimationController_ahis",["$scope","$state","$rootScope","$timeout","gettextCatalog","$http","ENV","$location","$filter",function(e,t,a,s,o,n,r,i,l){e.today_date=moment(new Date).format("DD-MM-YYYY"),e.already_flg=!1,e.willstatus=!1,e.getFeesDetails=function(){e.school_id=n.defaults.headers.common.schoolId,e.username=a.globals.currentUser.username;var t=i.search();jQuery.isEmptyObject(t)||swal({title:"Alert",text:t.result_msg},function(a){!0===a&&(window.open("https://"+n.defaults.headers.common.schoolId+".mograsys.com/ppn/#/main/feeAhis","_self"),"Success"==t.res&&e.goto_history())}),n.get(r.apiUrl+"api/fees/getStudentConfStatus?cur="+a.globals.currentStudent.sims_cur_code+"&academic="+a.globals.currentStudent.sims_acad_yr+"&parent="+a.globals.currentUser.username).then(function(t){t.data>0?(swal({title:"Alert",text:"Dear Parent,You have already submitted the application for Re-Registration Form.Please contact school for more details.",imageUrl:"assets/img/notification-alert.png"}),e.already_flg1=!0,e.already_flg=!0):e.already_flg1=!1}),e.min_amount=0,n.get(r.apiUrl+"api/common/getDataParameter?sims_appl_code=feCofH&sims_appl_form_field=Payment Amount").then(function(t){t.data.length>0&&(e.min_amount=parseFloat(t.data[0].sims_appl_parameter))}),n.get(r.apiUrl+"api/fees/getStudentConf?cur="+a.globals.currentStudent.sims_cur_code+"&academic="+a.globals.currentStudent.sims_acad_yr+"&parent="+a.globals.currentUser.username).then(function(t){e.confirm_lst=t.data;for(var a=0;a 1)The Re- registration fees of 200 AED per child and Transport deposit of 100 AED per child (If required) will be paid at school. You can fill the form online and pay at school accordingly.
2)The above Table excludes the Re- registration fee of 200 AED per child and Transport deposit of 100 AED per child (If selected) which is to be paid at school .
The remaining amount will be available for the following payment plans.
3) Please note that seat for next year will be confirmed only upon
a)\tPayment of seat confirmation fee 200 AED per child.
b)\tReceipt of post dated cheques as per selected payment plan
c)\tCurrent outstanding amount of '+e.confirm_lst[0].net_total_balance+" AED is paid full.
Please note that the Next year seat will be confirmed after these dues are fully settled.
',html:!0,placement:"right"})}),e.$on("student_change",function(t,a){e.getFeesDetails()}),a.globals.studentsLoaded&&e.getFeesDetails()}])}(),function(){"use strict";angular.module("sims.module.demo").controller("StudentConfimationController_sok",["$scope","$state","$rootScope","$timeout","gettextCatalog","$http","ENV","$location","$filter",function(e,t,a,s,o,n,r,i,l){e.today_date=moment(new Date).format("DD-MM-YYYY"),e.already_flg=!1,e.getFeesDetails=function(){e.school_id=n.defaults.headers.common.schoolId,e.studentName=a.globals.currentStudent.sims_student_passport_fullname,e.acYear=a.globals.currentStudent.sims_acad_yr,e.academic_year=a.globals.currentStudent.sims_acad_yr,e.std_enroll_number=a.globals.currentStudent.enroll_number,e.std_cur_code=a.globals.currentStudent.sims_cur_code,e.username=a.globals.currentUser.username;var t=i.search();if(!jQuery.isEmptyObject(t)){t.status,t.TransactionNo,t.receiptNo;"success"==t.status?swal({title:"Alert",text:"Payement Done Successfully Your Transaction Number is "+t.receiptNo,imageUrl:"assets/img/check.png"},function(e){!0===e&&window.open("http://vision.appsis.co.in/ppn/index.html#/main/feeVis","_self")}):swal({title:"Alert",text:"Some Problem in Payment plz check agian..",width:380,height:200},function(e){!0===e&&window.open("http://vision.appsis.co.in/ppn/index.html#/main/feeVis","_self")})}n.get(r.apiUrl+"api/fees/getStudentConfStatus?cur="+a.globals.currentStudent.sims_cur_code+"&academic="+a.globals.currentStudent.sims_acad_yr+"&parent="+a.globals.currentUser.username).then(function(t){t.data>0?(swal({title:"Alert",text:"Dear Parent,You have already submitted the application for Re-Registration Form.Please contact school for more details.",imageUrl:"assets/img/notification-alert.png"}),e.already_flg1=!0,e.already_flg=!0):e.already_flg1=!1}),e.min_amount=0,n.get(r.apiUrl+"api/common/getDataParameter?sims_appl_code=feCofL&sims_appl_form_field=Payment Amount").then(function(t){t.data.length>0&&(e.min_amount=parseFloat(t.data[0].sims_appl_parameter))}),n.get(r.apiUrl+"api/fees/getStudentConf?cur="+a.globals.currentStudent.sims_cur_code+"&academic="+a.globals.currentStudent.sims_acad_yr+"&parent="+a.globals.currentUser.username).then(function(t){e.confirm_lst=t.data;for(var a=0;a 1)The Re- registration fees of 200 AED per child and Transport deposit of 100 AED per child (If required) will be paid at school. You can fill the form online and pay at school accordingly.
2)The above Table excludes the Re- registration fee of 200 AED per child and Transport deposit of 100 AED per child (If selected) which is to be paid at school .
The remaining amount will be available for the following payment plans.
3) Please note that seat for next year will be confirmed only upon
a)\tPayment of seat confirmation fee 200 AED per child.
b)\tReceipt of post dated cheques as per selected payment plan
c)\tCurrent outstanding amount of '+e.confirm_lst[0].net_total_balance+" AED is paid full.
Please note that the Next year seat will be confirmed after these dues are fully settled.
',html:!0,placement:"right"})}),e.$on("student_change",function(t,a){e.getFeesDetails()}),a.globals.studentsLoaded&&e.getFeesDetails()}])}(),function(){"use strict";angular.module("sims.module.fees").controller("FeeDvpsController",["$scope","$state","$rootScope","$timeout","gettextCatalog","$http","ENV","$location","$filter",function(e,t,a,s,o,n,r,i,l){e.grid={},e.hide_fee=!1,e.chk_disabled=!0,e.username=a.globals.currentUser.username,e.grid.chkAll=!1,e.grid.selectAll=function(){for(var t=0,a=0;a 1)The Re- registration fees of 200 AED per child and Transport deposit of 100 AED per child (If required) will be paid at school. You can fill the form online and pay at school accordingly.
2)The above Table excludes the Re- registration fee of 200 AED per child and Transport deposit of 100 AED per child (If selected) which is to be paid at school .
The remaining amount will be available for the following payment plans.
3) Please note that seat for next year will be confirmed only upon
a)\tPayment of seat confirmation fee 200 AED per child.
b)\tReceipt of post dated cheques as per selected payment plan
c)\tCurrent outstanding amount of '+e.confirm_lst[0].net_total_balance+" AED is paid full.
Please note that the Next year seat will be confirmed after these dues are fully settled.
',html:!0,placement:"right"})}),e.$on("student_change",function(t,a){e.getFeesDetails()}),a.globals.studentsLoaded&&e.getFeesDetails()}])}(),function(){"use strict";angular.module("sims.module.demo").controller("StudentConfirmationController_svs",["$scope","$state","$rootScope","$timeout","gettextCatalog","$http","ENV","$location","$filter",function(e,t,a,s,o,n,r,i,l){e.today_date=moment(new Date).format("DD-MM-YYYY"),e.already_flg=!1,e.willstatus=!1,e.getFeesDetails=function(){e.school_id=n.defaults.headers.common.schoolId,e.username=a.globals.currentUser.username,e.studengrade_name=a.globals.currentStudent.sims_grade_name_en,e.acYearDesc=a.globals.currentStudent.sims_academic_year_description,e.studentFull_name=a.globals.currentStudent.sims_student_passport_fullname_new,e.studentName=a.globals.currentStudent.sims_student_passport_fullname,e.acYear=a.globals.currentStudent.sims_acad_yr,e.std_enroll_number=a.globals.currentStudent.enroll_number;var t=i.search();jQuery.isEmptyObject(t)||swal({title:"Alert",text:t.res+". Your Transaction Number is "+t.temp_dd_fee_transaction_id},function(a){!0===a&&(window.open("https://"+n.defaults.headers.common.schoolId+".mograsys.com/ppn/#/main/feesSvs","_self"),"Success"==t.res&&e.goto_history())}),n.get(r.apiUrl+"api/fees/getStudentConfStatus?cur="+a.globals.currentStudent.sims_cur_code+"&academic="+a.globals.currentStudent.sims_acad_yr+"&parent="+a.globals.currentUser.username).then(function(t){t.data>0?(swal({title:"Alert",text:"Dear Parent,You have already submitted the application for Re-Registration Form.Please contact school for more details.",imageUrl:"assets/img/notification-alert.png"}),e.already_flg1=!0,e.already_flg=!0):e.already_flg1=!1}),e.min_amount=0,n.get(r.apiUrl+"api/common/getDataParameter?sims_appl_code=feCofL&sims_appl_form_field=Payment Amount").then(function(t){t.data.length>0&&(e.min_amount=parseFloat(t.data[0].sims_appl_parameter))}),n.get(r.apiUrl+"api/common/getDataParameter?sims_appl_code=Common&sims_appl_form_field=Re-Reg OB Calculation Mode").then(function(t){if(t.data.length>0){e.OB_Calculation_Mode=t.data;for(var a=0;e.OB_Calculation_Mode.length>a;a++)"A"==e.OB_Calculation_Mode[a].sims_appl_parameter&&(e.obdate=moment(new Date).format("DD/MM/YYYY")),"M"==e.OB_Calculation_Mode[a].sims_appl_parameter&&(e.obdate=e.OB_Calculation_Mode[a].sims_appl_form_field_value3)}else e.obdate=moment(new Date).format("DD/MM/YYYY");console.log(e.OB_Calculation_Mode)}),n.get(r.apiUrl+"api/fees/getStudentConf?cur="+a.globals.currentStudent.sims_cur_code+"&academic="+a.globals.currentStudent.sims_acad_yr+"&parent="+a.globals.currentUser.username).then(function(t){e.confirm_lst=t.data;for(var a=0;a 1)The Re- registration fees of 200 AED per child and Transport deposit of 100 AED per child (If required) will be paid at school. You can fill the form online and pay at school accordingly.
2)The above Table excludes the Re- registration fee of 200 AED per child and Transport deposit of 100 AED per child (If selected) which is to be paid at school .
The remaining amount will be available for the following payment plans.
3) Please note that seat for next year will be confirmed only upon
a)\tPayment of seat confirmation fee 200 AED per child.
b)\tReceipt of post dated cheques as per selected payment plan
c)\tCurrent outstanding amount of '+e.confirm_lst[0].net_total_balance+" AED is paid full.
Please note that the Next year seat will be confirmed after these dues are fully settled.
',html:!0,placement:"right"})}),e.$on("student_change",function(t,a){e.getFeesDetails()}),a.globals.studentsLoaded&&e.getFeesDetails()}])}(),function(){"use strict";angular.module("sims.module.lms").controller("ParentRefNewController",["$scope","$state","$rootScope","$timeout","gettextCatalog","$http","$sce","ENV",function(e,t,a,s,o,n,r,i){e.display=!1,e.schoolcode=n.defaults.headers.common.schoolId.toLowerCase(),e.schoolcode1=angular.copy(e.schoolcode),e.getMedicalDetails=function(t){e.display=!0,e.edt={},n.get(i.apiUrl+"api/common/getMobilecode").then(function(t){e.mobile_code=t.data}),"asis"==e.schoolcode&&(e.flg_asis=!0),"siso"==e.schoolcode&&(e.flg_siso=!0),"abqis"==e.schoolcode&&(e.flg_abqis=!0),"alimtiaz"==e.schoolcode&&(e.flg_alimtiaz=!0),e.school_click=function(t){e.flg_asis&&"asis"!=t&&swal({html:"Dear Parent,
For referring to other schools (ABQ Azzan, ABQ Sohar & Al Imtiaz Private School), please contact:
Ms Jumana Al Ghadani (Head of Marketing and Parent Care, ABQ Education Group)
Direct: +968 24965868
Mobile: +968 94625226
Email: Jumana@abq.edu.om
Ms Jo Marie Tredoux (Communications Advisor, ABQ Education Group)
Direct: +968 2496 5802
Mobile: +968 7997 3990
Email: jmtredoux@abq.edu.om
"}),e.flg_abqis&&"abqis"!=t&&swal({html:"Dear Parent,
For referring to other schools (ABQ Seeb, ABQ Sohar & Al Imtiaz Private School), please contact:
Ms Jumana Al Ghadani (Head of Marketing and Parent Care, ABQ Education Group)
Direct: +968 24965868
Mobile: +968 94625226
Email: Jumana@abq.edu.om
Ms Jo Marie Tredoux (Communications Advisor, ABQ Education Group)
Direct: +968 2496 5802
Mobile: +968 7997 3990
Email: jmtredoux@abq.edu.om
"}),e.flg_siso&&"siso"!=t&&swal({html:"Dear Parent,
For referring to other schools (ABQ Azzan, ABQ Seeb & Al Imtiaz Private School), please contact:
Ms Jumana Al Ghadani (Head of Marketing and Parent Care, ABQ Education Group)
Direct: +968 24965868
Mobile: +968 94625226
Email: Jumana@abq.edu.om
Ms Jo Marie Tredoux (Communications Advisor, ABQ Education Group)
Direct: +968 2496 5802
Mobile: +968 7997 3990
Email: jmtredoux@abq.edu.om
"}),e.flg_alimtiaz&&"alimtiaz"!=t&&swal({html:"Dear Parent,
For referring to other schools (ABQ Azzan, ABQ Seeb & ABQ Sohar International School), please contact:
Ms Jumana Al Ghadani (Head of Marketing and Parent Care, ABQ Education Group)
Direct: +968 24965868
Mobile: +968 94625226
Email: Jumana@abq.edu.om
Ms Jo Marie Tredoux (Communications Advisor, ABQ Education Group)
Direct: +968 2496 5802
Mobile: +968 7997 3990
Email: jmtredoux@abq.edu.om
"}),setTimeout(function(){e.schoolcode1=angular.copy(e.schoolcode),e.$apply()},1e3)},e.academic_year_change=function(t,a){n.get(i.apiUrl+"api/common/getGrade?curCode="+t+"&academic_year="+a).then(function(t){e.grade_lst=t.data})},e.getacademicYear=function(t){n.get(i.apiUrl+"api/common/getAcademicYear_new?curCode="+t).then(function(a){e.ac_year_lst=a.data,e.edt.academic_year=e.ac_year_lst[0].sims_academic_year,e.academic_year_change(t,e.edt.academic_year)})},e.button_click=function(){n.get(i.apiUrl+"api/common/getDataParameter?sims_appl_code=Common&sims_appl_form_field=AMBASSADOR").then(function(e){e.data.length>0&&window.open(e.data[0].sims_appl_form_field_value1,"_new")})},n.get(i.apiUrl+"api/AddExamPaper/getCuriculum").then(function(t){e.cur_data=t.data,e.edt.curr_code=t.data[0].sims_cur_code,e.getacademicYear(t.data[0].sims_cur_code)}),e.Confirm=function(t){t&&(e.edt.father_mobile=e.mobile_code+e.edt.father_mobile1,e.edt.parent_id=a.globals.currentUser.username,n.post(i.apiUrl+"api/common/insertadmission_parent",e.edt).then(function(t){console.log(t.data),""!=t.data&&(e.edt.sims_admission_parent_reg_id=t.data,n.post(i.apiUrl+"api/common/insertadmission_studentABQ",e.edt).then(function(t){t.data?(swal({title:"Alert",text:"Data Inserted Successfully",imageUrl:"assets/img/check.png"}),e.clear()):swal({title:"Alert",text:"Data Not Inserted",imageUrl:"assets/img/notification-alert.png"})}))}))},e.clear=function(){e.edt={},e.myForm.$setPristine(),e.myForm.$setUntouched(),n.get(i.apiUrl+"api/AddExamPaper/getCuriculum").then(function(t){e.cur_data=t.data,e.edt.curr_code=t.data[0].sims_cur_code,e.getacademicYear(t.data[0].sims_cur_code)})},e.New=function(){e.display=!0,e.clear()},e.viewApplied=function(){e.display=!1,n.get(i.apiUrl+"api/common/getAppliedStatus1?parent="+a.globals.currentUser.username).then(function(t){e.Upload_doc_datails=t.data})},e.printReport=function(e){var t;$("#report_Modal").modal("show"),t="SimsReports.Sims.SMR206,SimsReports";var a=window.location.href,o=(a.substring(0,a.indexOf(":")),i.newReportUrl+n.defaults.headers.common.schoolId+"/api/reports/");$("#reportViewer4").telerik_ReportViewer({serviceUrl:o,viewMode:telerikReportViewer.ViewModes.INTERACTIVE,scaleMode:telerikReportViewer.ScaleModes.SPECIFIC,scale:1,ready:function(){this.refreshReport()}}),$("#reportViewer4").data("telerik_ReportViewer").reportSource({report:t,parameters:{parent_ref_id:e}}),setInterval(function(){$("#k-item k-state-default k-state-disabled").css({display:"block"}),$(".trv-report-viewer input[type=number]").css({"min-height":"0px"}),$(".k-group li:nth-child(2)").css({display:"none"}),$(".k-group li:nth-child(3)").css({display:"none"}),$(".k-group li:nth-child(4)").css({display:"none"}),$(".k-group li:nth-child(5)").css({display:"none"}),$(".k-group li:nth-child(6)").css({display:"none"}),$(".k-group li:nth-child(7)").css({display:"none"})},1e3),s(function(){$("#k-item k-state-default k-state-disabled").css({display:"block"}),$(".trv-report-viewer input[type=number]").css({"min-height":"0px"}),$(".k-group li:nth-child(2)").css({display:"none"}),$(".k-group li:nth-child(3)").css({display:"none"}),$(".k-group li:nth-child(4)").css({display:"none"}),$(".k-group li:nth-child(5)").css({display:"none"}),$(".k-group li:nth-child(6)").css({display:"none"}),$(".k-group li:nth-child(7)").css({display:"none"})},100),$("#report_Modal").modal({backdrop:"static",keyboard:!1})}},e.$on("student_change",function(t,a){e.getMedicalDetails()}),a.globals.studentsLoaded&&e.getMedicalDetails()}])}(),function(){"use strict";angular.module("sims.module.fees").controller("FeeAhisController",["$scope","$state","$rootScope","$timeout","gettextCatalog","$http","ENV","$location",function(e,t,a,s,o,n,r,i){e.grid={},e.hide_fee=!1,e.chk_disabled=!0,e.username=a.globals.currentUser.username,e.acYear=a.globals.currentStudent.sims_acad_yr,e.academic_year=a.globals.currentStudent.sims_acad_yr,e.std_enroll_number=a.globals.currentStudent.enroll_number,e.std_cur_code=a.globals.currentStudent.sims_cur_code,e.username=a.globals.currentUser.username,e.grid.chkAll=!1;var l=i.search();if(!jQuery.isEmptyObject(l)){if(""!=l.result_msg)swal({title:"Alert",text:l.result_msg},function(e){!0===e&&window.open("http://ahis.mograsys.com/ppn/#/main/feeAhis","_self")});else l.status,l.TransactionNo,l.receiptNo;"success"==l.status?swal({title:"Alert",text:"Payement Done Successfully Your Transaction Number is "+l.receiptNo,imageUrl:"assets/img/check.png"},function(e){!0===e&&window.open("http://vision.appsis.co.in/ppn/index.html#/main/feeVis","_self")}):swal({title:"Alert",text:"Some Problem in Payment plz check agian..",width:380,height:200},function(e){!0===e&&window.open("http://vision.appsis.co.in/ppn/index.html#/main/feeVis","_self")})}e.grid.selectAll=function(){for(var t=0,a=0;a