!function(){"use strict";angular.module("sims",["pdf","ngRoute","ui.router","ngCookies","gettext","config","sims.module.core","sims.module.users","sims.module.main","sims.module.dashboard","sims.module.circular","sims.module.student","sims.module.teacher","sims.module.transport","sims.module.parent","sims.module.attendance","sims.module.medical","sims.module.fees","sims.module.calendar","sims.module.incidence","sims.module.agenda","sims.module.handbook","sims.module.gallery","sims.module.reportcard","sims.module.uploadimages","sims.module.lms","sims.module.library","sims.module.sms","sims.module.email","sims.module.suggestion","sims.module.timetable","sims.module.test","sims.module.assignment","sims.module.SJSRptG11Sci","sims.module.SJSRptG1G8","sims.module.SJSrptG12Com","sims.module.MISG1to12","sims.module.sjspp","sims.module.rptSmmEyfs","sims.module.rptSmmPri","sims.module.smmpp","sims.module.rptSnisG1G8","sims.module.rptSnisG9G10","sims.module.news","sims.module.leave","sims.module.fileupload","sims.module.certificate","sims.module.demo","sims.module.reportCardNew","sims.module.documentUpload","sims.module.documentUpload","sims.module.alert","sims.module.social"]).config(["$httpProvider",function(e){e.interceptors.push(function(){return{request:function(e){return e.url&&e.url.endsWith(".html")&&(e.headers.Accept="text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9",console.log(e)),e}}})}])}(),function(){"use strict";angular.module("sims").config(["$stateProvider","$urlRouterProvider","$locationProvider",function(e,t,a){var s={login:{url:"/login",templateUrl:"app/modules/users/views/login.html",controller:"LoginController",isAdded:!0},main:{url:"/main",templateUrl:"app/modules/main/views/main.html",controller:"MainController",isAdded:!0},"main.dashboard":{url:"/dashboard",templateUrl:"app/modules/dashboard/views/dashboard.html",controller:"DashboardController",isAdded:!0}};window.stateSimsProvider=e,window.stateSimsObj=s,e.state("login",{url:"/login",templateUrl:"app/modules/users/views/login.html",controller:"LoginController"}).state("main",{url:"/main",templateUrl:"app/modules/main/views/main.html",controller:"MainController"}).state("main.dashboard",{url:"/dashboard",templateUrl:"app/modules/dashboard/views/dashboard.html",controller:"DashboardController"}).state("main.PC727",{url:"/schoolPolicies",templateUrl:"app/modules/test/views/schoolPolicies.html",controller:"schoolPoliciesController"}).state("main.pp070",{url:"/Gradebook",templateUrl:"app/modules/Gradebook/views/Gradebook.html",controller:"GradebookCont"}).state("main.PP071",{url:"/GradebookNew",templateUrl:"app/modules/Gradebook/views/GradebookNew.html",controller:"GradebookNewCont"}).state("main.PP015",{url:"/circulars",templateUrl:"app/modules/circular/views/circularOld.html",controller:"CircularController",params:{flag:!1}}).state("main.PP015N",{url:"/Consent",templateUrl:"app/modules/circular/views/consent.html",controller:"consentController",params:{flag:!1}}).state("main.PP032",{url:"/leave",templateUrl:"app/modules/leave/views/leave.html",controller:"LeaveController"}).state("main.PP043",{url:"/leave_ihs",templateUrl:"app/modules/leave/views/leave_ihs.html",controller:"Leave_ihsController"}).state("main.PP042",{url:"/Exam",templateUrl:"app/modules/exam/views/Exam.html",controller:"ExamController"}).state("main.PP0421",{url:"/ExamHallTicket",templateUrl:"app/modules/exam/views/ExamHallTicket.html",controller:"ExamHallTicketController"}).state("main.PP0409",{url:"/ExamHallTicketVMS",templateUrl:"app/modules/exam/views/ExamHallTicketVMS.html",controller:"ExamHallTicketVMSController"}).state("main.PP049",{url:"/ExamNew",templateUrl:"app/modules/exam/views/ExamNew.html",controller:"ExamNewController"}).state("main.PP056",{url:"/Photocopy",templateUrl:"app/modules/exam/views/Photocopy.html",controller:"PhotocopyController"}).state("main.PP057",{url:"/Revaluation",templateUrl:"app/modules/exam/views/Revaluation.html",controller:"RevaluationController"}).state("main.PP058",{url:"/Improvement",templateUrl:"app/modules/exam/views/Improvement.html",controller:"ImprovementController"}).state("main.PP442",{url:"/ExamNS",templateUrl:"app/modules/exam/views/Exam_Nacs.html",controller:"ExamController_Nacs"}).state("main.PP443",{url:"/ExmCmb",templateUrl:"app/modules/exam/views/Exam_Combine.html",controller:"ExamController_Combine"}).state("main.PP012",{url:"/news",templateUrl:"app/modules/news/views/news.html",controller:"NewsController"}).state("main.PP909",{url:"/news_classwise",templateUrl:"app/modules/news/views/news_classwise.html",controller:"NewsController_classwise"}).state("main.PP001",{url:"/student",templateUrl:"app/modules/student/views/student.html",controller:"StudentController"}).state("main.PP100",{url:"/gr11admission",templateUrl:"app/modules/student/views/gr11Admission.html",controller:"gr11AdmissionController"}).state("main.PP101",{url:"/gr11progress",templateUrl:"app/modules/student/views/gr11progress.html",controller:"gr11progressController"}).state("main.mojo",{url:"/mojo",templateUrl:"app/modules/student/views/mojo.html",controller:"MojoController"}).state("main.kyc",{url:"/kyc",templateUrl:"app/modules/student/views/kyc.html",controller:"Kyc_Controller"}).state("main.PP0SSD",{url:"/StudentSubject",templateUrl:"app/modules/student/views/StudentSubject.html",controller:"StudentSubjectController"}).state("main.PPP01",{url:"/studentNew",templateUrl:"app/modules/student/views/studentNew.html",controller:"StudentControllerNew"}).state("main.PPP02",{url:"/studentCollege",templateUrl:"app/modules/student/views/studentCollege.html",controller:"StudentCollegeController"}).state("main.INVPPN",{url:"/InvoiceReceiveable",templateUrl:"app/modules/student/views/InvoiceReceiveable.html",controller:"InvoiceReceiveableCont"}).state("main.PP006",{url:"/teacher",templateUrl:"app/modules/teacher/views/teacher.html",controller:"TeacherController"}).state("main.hyplog",{url:"/hyperlinkLogo",templateUrl:"app/modules/hyperlinks/views/Hyperlinkslogo.html",controller:"HyperlinkslogoCont"}).state("main.PPP006",{url:"/communication",templateUrl:"app/modules/teacher/views/communication.html",controller:"communicationController"}).state("main.PP016",{url:"/communication",templateUrl:"app/modules/teacher/views/communication.html",controller:"communicationController"}).state("main.PP011",{url:"/transport",templateUrl:"app/modules/transport/views/transport.html",controller:"TransportController"}).state("main.PP039",{url:"/transportReport",templateUrl:"app/modules/transport/views/transportReport.html",controller:"transportReportController",params:{flag:"SIMR115"}}).state("main.PP040",{url:"/leaveReport",templateUrl:"app/modules/transport/views/transportReport.html",controller:"transportReportController",params:{flag:"SIMR114"}}).state("main.PP019",{url:"/parent",templateUrl:"app/modules/parent/views/parent.html",controller:"ParentController"}).state("main.PP002",{url:"/attendance",templateUrl:"app/modules/test/views/test.html",controller:"TestController"}).state("main.PP0021",{url:"/attendanceTime",templateUrl:"app/modules/test/views/attendanceWithTime.html",controller:"AttendanceWithTimeController"}).state("main.PP045",{url:"/testslip",templateUrl:"app/modules/test/views/exitSlip.html",controller:"ExitSlipController"}).state("main.PP009",{url:"/medical",templateUrl:"app/modules/medical/views/medical.html",controller:"MedicalController",params:{flag:!1}}).state("main.cosen",{url:"/medicalConsent",templateUrl:"app/modules/medical/views/MedicalConsentPPN.html",controller:"MedicalConsentPPNCont"}).state("main.fees1",{url:"/fees1",templateUrl:"app/modules/fees/views/fees2.html",controller:"Fee2Controller"}).state("main.feeiis",{url:"/feesIis",templateUrl:"app/modules/fees/views/feesIis.html",controller:"FeeIisController"}).state("main.feeiin",{url:"/feesIisNew",templateUrl:"app/modules/fees/views/feesiisnew.html",controller:"FeeIisNewController"}).state("main.feerag",{url:"/feesRakaag",templateUrl:"app/modules/fees/views/feesRakaag.html",controller:"FeesRakaagController"}).state("main.feeDvp",{url:"/feeDvps",templateUrl:"app/modules/fees/views/feesDvps.html",controller:"FeeDvpsController"}).state("main.feechr",{url:"/feechrist",templateUrl:"app/modules/fees/views/feeschrist.html",controller:"FeechristController"}).state("main.fechnw",{url:"/feechristNew",templateUrl:"app/modules/fees/views/feeschristNew.html",controller:"FeechristControllerNew"}).state("main.feeExm",{url:"/feesExamchrist",templateUrl:"app/modules/fees/views/feesExamchrist.html",controller:"FeeExamchristController"}).state("main.assmar",{url:"/assignmentmark",templateUrl:"app/modules/attendance/views/AssignmentMarksheet.html",controller:"AssignmentMarksController"}).state("main.asssai",{url:"/assignmentmarksaisd_new",templateUrl:"app/modules/attendance/views/AssignmentMarksheetSaisd.html",controller:"AssignmentMarksSaisdController"}).state("main.coass",{url:"/coassignmentmark",templateUrl:"app/modules/attendance/views/CoAssignmentMarksheet.html",controller:"CoAssignmentMarksheetController"}).state("main.feeAsd",{url:"/feesAsd",templateUrl:"app/modules/fees/views/feesAsd.html",controller:"FeeAsdController"}).state("main.feePea",{url:"/feesPea",templateUrl:"app/modules/fees/views/feesPearl.html",controller:"FeePearlController"}).state("main.feeSvs",{url:"/feesSvs",templateUrl:"app/modules/fees/views/feesSvs.html",controller:"FeesvsController"}).state("main.feeDis",{url:"/feesDis",templateUrl:"app/modules/fees/views/feesdisley.html",controller:"FeedisleyController"}).state("main.feeDpa",{url:"/feespayDis",templateUrl:"app/modules/fees/views/feepaymentsdisley.html",controller:"FeepaymentdisleyController"}).state("main.feeVis",{url:"/feeVis",templateUrl:"app/modules/fees/views/feesVision.html",controller:"feesVisionController"}).state("main.feAhis",{url:"/feeAhis",templateUrl:"app/modules/fees/views/feesAhis.html",controller:"FeeAhisController"}).state("main.feesok",{url:"/feesok",templateUrl:"app/modules/fees/views/feesSok.html",controller:"FeeSokController"}).state("main.feLeam",{url:"/feeLeams",templateUrl:"app/modules/fees/views/feesLeams.html",controller:"FeeLeamsController"}).state("main.FeIISq",{url:"/FeIISq",templateUrl:"app/modules/fees/views/feesIIsqatar.html",controller:"FeeIIsqatarController"}).state("main.feLNew",{url:"/feeLeamsNew",templateUrl:"app/modules/fees/views/feesLeamsnew.html",controller:"FeeLeamsnewController"}).state("main.feIhsO",{url:"/feeIhsonline",templateUrl:"app/modules/fees/views/feesIhsonline.html",controller:"FeeIhsonlineController"}).state("main.feIhsG",{url:"/feeIhsonlinenew",templateUrl:"app/modules/fees/views/feesIhsonlinenew.html",controller:"FeeIhsonlineControllernew"}).state("main.fecli",{url:"/feeclarion",templateUrl:"app/modules/fees/views/feeclarion.html",controller:"FeeclarionController"}).state("main.feseps",{url:"/feeSeps",templateUrl:"app/modules/fees/views/feesSeps.html",controller:"FeeSepsController"}).state("main.feeiat",{url:"/feeiat",templateUrl:"app/modules/fees/views/feesIAT.html",controller:"FeeIATController"}).state("main.CanTnn",{url:"/CanteenSetup",templateUrl:"app/modules/calendar/views/CanteenSetup.html",controller:"CanteenSetupController"}).state("main.fetsis",{url:"/feeschool",templateUrl:"app/modules/fees/views/feestsis.html",controller:"FeetsisController"}).state("main.feemod",{url:"/feeModrNew",templateUrl:"app/modules/fees/views/feesModernNew.html",controller:"FeeModernNewController"}).state("main.feemjr",{url:"/feeModrJr",templateUrl:"app/modules/fees/views/feesModernJr.html",controller:"FeeModernJrController"}).state("main.PP008",{url:"/fees",templateUrl:"app/modules/fees/views/fees.html",controller:"FeeController"}).state("main.PP013N",{url:"/calendar",templateUrl:"app/modules/calendar/views/calendar.html",controller:"CalendarController"}).state("main.daily",{url:"/daily",templateUrl:"app/modules/calendar/views/dailyReport.html",controller:"dailyReportController"}).state("main.AcdCal",{url:"/AcademicCalender",templateUrl:"app/modules/calendar/views/AcademicCalendar.html",controller:"AcademicCalendarController"}).state("main.PP025",{url:"/incidence",templateUrl:"app/modules/incidence/views/incidence.html",controller:"IncidenceController"}).state("main.welben",{url:"/StudentWellBeingCont",templateUrl:"app/modules/incidence/views/StudentWellBeing.html",controller:"StudentWellBeingCont"}).state("main.incwel",{url:"/InclusionParent",templateUrl:"app/modules/incidence/views/InclusionParent.html",controller:"InclusionParentCont"}).state("main.incpar",{url:"/InclusionParent",templateUrl:"app/modules/incidence/views/InclusionParent.html",controller:"InclusionParentCont"}).state("main.inpcrm",{url:"/HappyToHelp",templateUrl:"app/modules/incidence/views/InclusionParentCRM.html",controller:"InclusionParentCRMCont"}).state("main.vireq",{url:"/ViewRequisition",templateUrl:"app/modules/incidence/views/ViewRequisition.html",controller:"ViewRequisitionCont"}).state("main.PP030",{url:"/agenda",templateUrl:"app/modules/agenda/views/agenda.html",controller:"AgendaController",params:{flag:!1}}).state("main.PP036",{url:"/WeeklyAssessmentShow",templateUrl:"app/modules/agenda/views/WeeklyAssessmentShow.html",controller:"WeeklyAssessmentShowCont",params:{flag:!1}}).state("main.PP037",{url:"/materialView",templateUrl:"app/modules/agenda/views/ExamMaterialView.html",controller:"ExamMaterialViewCont",params:{flag:!1}}).state("main.PP018",{url:"/handbook",templateUrl:"app/modules/handbook/views/handbook.html",controller:"HandbookController"}).state("main.PP035",{url:"/LearnArabic",templateUrl:"app/modules/handbook/views/LearnArabic.html",controller:"LearnArabicCont"}).state("main.galary",{url:"/gallery",templateUrl:"app/modules/gallery/views/gallery.html",controller:"GalleryController"}).state("main.PP014",{url:"/gallerynew",templateUrl:"app/modules/gallery/views/albumView.html",controller:"AlbumViewController"}).state("main.PP0BAS",{url:"/BadgeView",templateUrl:"app/modules/gallery/views/BadgeView.html",controller:"BadgeViewCont"}).state("main.reportCardNew",{url:"/reportcard",templateUrl:"app/modules/reportcard/views/reportcard.html",controller:"ReportCardController"}).state("main.PP020",{url:"/uploadimages",templateUrl:"app/modules/uploadimages/views/uploadimages.html",controller:"UploadImageController"}).state("main.feemdp",{url:"/feeModrpg",templateUrl:"app/modules/fees/views/feesModern.html",controller:"FeeModernControllerPG"}).state("main.PP027",{url:"/lms",templateUrl:"app/modules/lms/views/lms.html",controller:"LMSController"}).state("main.PPLMS",{url:"/lms1",templateUrl:"app/modules/lms/views/lms1.html",controller:"LMS1Controller"}).state("main.PPLMS1",{url:"/lms2",templateUrl:"app/modules/lms/views/lms2.html",controller:"LMS2Controller"}).state("main.paRef",{url:"/parentRef",templateUrl:"app/modules/lms/views/ParentRef.html",controller:"ParentRefController"}).state("main.paRefN",{url:"/parentRefN",templateUrl:"app/modules/lms/views/ParentRefNew.html",controller:"ParentRefNewController"}).state("main.paAsd",{url:"/parentAsd",templateUrl:"app/modules/lms/views/ParentAsd.html",controller:"ParentAsdController"}).state("main.haRpt",{url:"/healthReport",templateUrl:"app/modules/medical/views/HealthReport.html",controller:"HealthReportController"}).state("main.trk001",{url:"/bus_track",templateUrl:"app/modules/lms/views/BusTrack.html",controller:"BusTrackController"}).state("main.ttasd",{url:"/timetableAsd",templateUrl:"app/modules/timetable/views/TimeTableClassView.html",controller:"TimeTableClassViewCont"}).state("main.PP028",{url:"/library",templateUrl:"app/modules/library/views/library.html",controller:"LibraryController",params:{flag:!1}}).state("main.Ucw009",{url:"/email",templateUrl:"app/modules/email/views/email.html",controller:"EmailController"}).state("main.Ucw020",{url:"/sms",templateUrl:"app/modules/sms/views/sms.html",controller:"SmsController"}).state("main.Ucw239",{url:"/suggestion",templateUrl:"app/modules/suggestion/views/suggestion.html",controller:"SuggestionController"}).state("main.PP029",{url:"/timetable",templateUrl:"app/modules/timetable/views/timetable.html",controller:"TimetableController"}).state("main.tbleas",{url:"/timetable_asis",templateUrl:"app/modules/timetable/views/timetable_new.html",controller:"TimetableController_new"}).state("main.test",{url:"/test",templateUrl:"app/modules/test/views/test.html",controller:"TestController"}).state("main.PP004",{url:"/assignment",templateUrl:"app/modules/assignment/views/assignment.html",controller:"AssignmentController",params:{flag:!1}}).state("main.upload",{url:"/upload",templateUrl:"app/modules/fileUpload/views/fileupload.html",controller:"FileuploadController"}).state("main.PP003",{url:"/demo",templateUrl:"app/modules/demo/views/demo.html",controller:"DemoController"}).state("main.PP00003",{url:"/reportCard11",templateUrl:"app/modules/reportCardNew/views/reportCardNew.html",controller:"reportCardNewController"}).state("main.PP0333",{url:"/reportCard_Leams",templateUrl:"app/modules/reportCardNew/views/reportCardNew_Skill.html",controller:"reportCardNewController_Skill"}).state("main.PP333",{url:"/reportCard_Leams_n",templateUrl:"app/modules/reportCardNew/views/reportCardNew_SkillNew1.html",controller:"reportCardNewController_SkillNew1"}).state("main.REPPER",{url:"/ReportCardPerformance",templateUrl:"app/modules/reportCardNew/views/ReportCardPerformance.html",controller:"ReportCardPerformanceCont"}).state("main.PP334",{url:"/reportCard_Leams_n_V2",templateUrl:"app/modules/reportCardNew/views/reportCardNew_SkillNew1_V2.html",controller:"reportCardNewController_SkillNew1_V2"}).state("main.PP3333",{url:"/reportCard_IISQ",templateUrl:"app/modules/reportCardNew/views/reportCard_SkillfeeModrNew.html",controller:"reportCardController_SkillNew"}).state("main.PP0334",{url:"/ReportCardViewNew",templateUrl:"app/modules/reportCardNew/views/reportCardNew_Skill_New.html",controller:"reportCardNewController_Skill_New"}).state("main.PP0335",{url:"/ReportCardViewDownload",templateUrl:"app/modules/reportCardNew/views/reportCardNew_View_Download.html",controller:"reportCardNewController_View_Download"}).state("main.confirmationReport",{url:"/confirmationReport",templateUrl:"app/modules/reportCardNew/views/confirmationReport.html",controller:"confirmationReportController"}).state("main.PP0031",{url:"/reportCardsmm",templateUrl:"app/modules/reportCardNew/views/reportCardSmmNew.html",controller:"reportCardSmmController"}).state("main.Sportr",{url:"/SportsEvaluationReport",templateUrl:"app/modules/reportCardNew/views/ReportSportsEvaluation.html",controller:"ReportSportsEvaluationController"}).state("main.feeCla",{url:"/feeclara",templateUrl:"app/modules/fees/views/feesclara.html",controller:"FeeClaraController"}).state("main.ReportCardParameter",{url:"/ReportCardParameter",templateUrl:"app/modules/reportCardNew/views/ReportCardParameter.html",controller:"ReportCardParameterCont"}).state("main.alert",{url:"/alert",templateUrl:"app/modules/alert/views/alert.html",controller:"alertController"}).state("main.alerts",{url:"/alert",templateUrl:"app/modules/alert/views/alert.html",controller:"alertController"}).state("main.Feerim",{url:"/Feerim",templateUrl:"app/modules/alert/views/FeeReminder.html",controller:"FeeReminderController"}).state("main.certificate",{url:"/certificate",templateUrl:"app/modules/certificate/views/certificate.html",controller:"CertificateController"}).state("main.PP033",{url:"/tcertificate",templateUrl:"app/modules/TCCertificate/views/TCCertificate.html",controller:"TCCertificateController"}).state("main.tcLeam",{url:"/tcertificateLeams",templateUrl:"app/modules/TCCertificate/views/TCCertificateLeams.html",controller:"TCCertificateLeamsController"}).state("main.tcihso",{url:"/TCCertificateNew",templateUrl:"app/modules/TCCertificate/views/TCCertificateIhso.html",controller:"TCCertificateIhsoController"}).state("main.tcertificateper",{url:"/tcertificateper",templateUrl:"app/modules/TCCertificate/views/TCApplicationPearl.html",controller:"TCApplicationPearlCont"}).state("main.tcertificateadis",{url:"/tcertificateadis",templateUrl:"app/modules/TCCertificate/views/TCApplication_Adis.html",controller:"TCApplication_AdisCont"}).state("main.3",{url:"/online",templateUrl:"app/modules/lms/views/onlineAdmission.html",controller:"OnlineAdmissionController"}).state("main.feCesc",{url:"/feeCesc",templateUrl:"app/modules/fees/views/feesCesc.html",controller:"FeeCescController"}).state("main.feVMs",{url:"/feeVMs",templateUrl:"app/modules/fees/views/feesVMIIHE.html",controller:"FeeVMIIHEController"}).state("main.PP0321",{url:"/documentUploadNew",templateUrl:"app/modules/documentUpload/views/documentUploadAdis.html",controller:"documentUploadAdisController"}).state("main.PP0322",{url:"/documentUpload",templateUrl:"app/modules/documentUpload/views/documentUpload.html",controller:"documentUploadController"}).state("main.PP0323",{url:"/documentUploadcorv",templateUrl:"app/modules/documentUpload/views/documentUploadCorv.html",controller:"documentUploadCorvController"}).state("main.rptcrd",{url:"/reportCardAdiswnew",templateUrl:"app/modules/reportCardAdisw/views/reportCardAdisw.html",controller:"reportCardAdiswController"}).state("main.survy",{url:"/Survey",templateUrl:"app/modules/suggestion/views/Survey.html",controller:"SurveyCont"}).state("main.PP038",{url:"/SurveySelection",templateUrl:"app/modules/suggestion/views/SurveySelection.html",controller:"SurveySelectionCont"}).state("main.SrSeNe",{url:"/SurveySelectionNew",templateUrl:"app/modules/suggestion/views/SurveySelectionNew.html",controller:"SurveySelectionNewCont"}).state("main.SrSeTR",{url:"/SurveySelectionNewTeacher",templateUrl:"app/modules/suggestion/views/SurveySelectionNewTeacher.html",controller:"SurveySelectionNewTeacherCont"}).state("main.FeeParent",{url:"/FeeDetailsParent",templateUrl:"app/modules/fees/views/FeeTransactionDetailsParent.html",controller:"FeeTransactionDetailsCont"}).state("main.FeePdmc",{url:"/FeeDetailsParent_dmc",templateUrl:"app/modules/fees/views/FeeTransactionDetailsParent_dmc.html",controller:"FeeTransactionDetailsCont_dmc"}).state("main.PP034",{url:"/ViewExamPaper",templateUrl:"app/modules/agenda/views/ViewExamPaper.html",controller:"ViewExamPaperCont"}).state("main.viwexa",{url:"/ViewExamPaper",templateUrl:"app/modules/agenda/views/ViewExamPaper.html",controller:"ViewExamPaperCont"}).state("main.PP005",{url:"/syllabus",templateUrl:"app/modules/syllabus/views/SyllabusView.html",controller:"SyllabusViewCont"}).state("main.gradeb",{url:"/gradebook",templateUrl:"app/modules/Gradebook/views/Gradebook.html",controller:"GradebookCont"}).state("main.feeSmf",{url:"/feeSmfc",templateUrl:"app/modules/fees/views/feeSmfc.html",controller:"feeSmfcController"}).state("main.feeDmc",{url:"/feeDmc",templateUrl:"app/modules/fees/views/feeDmc.html",controller:"feeDmcController"}).state("main.stdidc",{url:"/studentidcard",templateUrl:"app/modules/studentid/views/studentid.html",controller:"StudentControllerId"}).state("main.stdid",{url:"/studentidcardreport",templateUrl:"app/modules/studentid/views/studentidcard.html",controller:"StudentidcardController"}).state("main.feeSmm",{url:"/feeSmsm",templateUrl:"app/modules/fees/views/feeSmsm.html",controller:"feeSmsmController"}).state("main.feeSmn",{url:"/feeSmsmNew",templateUrl:"app/modules/fees/views/feeSmsmNew.html",controller:"feeSmsmNewController"}).state("main.facbok",{url:"/facebook",templateUrl:"app/modules/social/views/facebook.html",controller:"facebookCont"}).state("main.twiter",{url:"/twitter",templateUrl:"app/modules/social/views/twitter.html",controller:"twitterCont"}).state("main.Check",{url:"/Check",templateUrl:"app/modules/Check/views/Check.html",controller:"CheckController"}).state("main.SAQ01",{url:"/MeritDemerit",templateUrl:"app/modules/merit/views/StudentMeritDemerit_parent.html",controller:"StudentMeritDemerit_parentCont"}).state("main.web001",{url:"/Web",templateUrl:"app/modules/social/views/web.html",controller:"webCont"}).state("main.instag",{url:"/insta",templateUrl:"app/modules/social/views/instagram.html",controller:"InstaCont"}).state("main.PP013",{url:"/calendarO",templateUrl:"app/modules/calendar/views/Oldcalendar.html",controller:"OldCalendarController"}).state("main.gradeB",{url:"/GradebookAhis",templateUrl:"app/modules/Gradebook/views/GradebookReport.html",controller:"GradebookReportCont"}).state("main.comhis",{url:"/CommunicationHis",templateUrl:"app/modules/communicationhistory/views/CommunicationHistory.html",controller:"CommunicationHistoryController"}).state("main.PP041",{url:"/QuestionBank",templateUrl:"app/modules/suggestion/views/Questionbank.html",controller:"QuestionbankCont"}).state("main.feeAbq",{url:"/feeAbq",templateUrl:"app/modules/fees/views/feeAbq.html",controller:"feeAbqController"}).state("main.feCofM",{url:"/feeCof_m",templateUrl:"app/modules/demo/views/StudentConfimation_modern.html",controller:"StudentConfimationController_modern"}).state("main.feeCof",{url:"/feeCof",templateUrl:"app/modules/demo/views/StudentConfimation.html",controller:"StudentConfimationController"}).state("main.fecoff",{url:"/feeCof_Facp",templateUrl:"app/modules/exam/views/StudentConfimationFacp.html",controller:"StudentConfimationFacpController"}).state("main.feCofD",{url:"/feeCof_d",templateUrl:"app/modules/demo/views/StudentConfimation_dmc.html",controller:"StudentConfimationController_dmc"}).state("main.feCoRG",{url:"/feeCof_new",templateUrl:"app/modules/demo/views/StudentConfimation_rakaa.html",controller:"StudentConfimationController_rakaa"}).state("main.feCofL",{url:"/feeCof_leams",templateUrl:"app/modules/demo/views/StudentConfimation_leams.html",controller:"StudentConfimationController_leams"}).state("main.feCofH",{url:"/feeCof_ahis",templateUrl:"app/modules/demo/views/StudentConfimation_ahis.html",controller:"StudentConfimationController_ahis"}).state("main.feCofS",{url:"/feeCof_sok",templateUrl:"app/modules/demo/views/StudentConfimation_sok.html",controller:"StudentConfimationController_sok"}).state("main.feCoSv",{url:"/feeCof_svs",templateUrl:"app/modules/demo/views/StudentConfirmation_svs.html",controller:"StudentConfirmationController_svs"}).state("main.itmrqs",{url:"/itemRequest",templateUrl:"app/modules/itemRequest/views/ItemReq.html",controller:"ItemReqCont"}).state("main.itmrqi",{url:"/itemRequestNew",templateUrl:"app/modules/itemRequest/views/ItemReqNew.html",controller:"ItemReqNewCont"}).state("main.itmrds",{url:"/itemRequestDS",templateUrl:"app/modules/itemRequest/views/ItemReqNew_DS.html",controller:"ItemReqNew_DSCont"}).state("main.itmrbk",{url:"/itemRequestDSBook",templateUrl:"app/modules/itemRequest/views/ItemReqNew_DS_Book.html",controller:"ItemReqNew_DS_BookCont"}).state("main.itmrqd",{url:"/itemRequestS",templateUrl:"app/modules/itemRequest/views/ItemReqSIA.html",controller:"ItemReqSIACont"}).state("main.itmrqM",{url:"/itemRequestSMSM",templateUrl:"app/modules/itemRequest/views/ItemReqSMSM.html",controller:"ItemReqSMSMCont"}).state("main.vires",{url:"/ViewVoucher",templateUrl:"app/modules/itemRequest/views/ViewRequisitionnew.html",controller:"ViewRequisitionContnew"}).state("main.storrqs",{url:"/StoresRequest",templateUrl:"app/modules/itemRequest/views/StoresRequest.html",controller:"StoresRequestCont"}).state("main.saleIn",{url:"/ViewSaleInvoice",templateUrl:"app/modules/itemRequest/views/ViewSaleInvoice.html",controller:"ViewSaleInvoiceCont"}).state("main.subatt",{url:"/subattendance",templateUrl:"app/modules/attendance/views/subjectattendance.html",controller:"SubAttendanceController"}).state("main.gpsatt",{url:"/gpsattendance",templateUrl:"app/modules/attendance/views/GpsAttendance.html",controller:"GpsAttendanceController"}).state("main.regDmc",{url:"/reregistrationDmc",templateUrl:"app/modules/demo/views/reregistrationDmc.html",controller:"ExamReRegistrationCont"}).state("main.assgkp",{url:"/assignmentmarkgkp",templateUrl:"app/modules/attendance/views/AssignmentMarksheetGkp.html",controller:"AssignmentMarksGkpController"}).state("main.tcModn",{url:"/tcertificateModern",templateUrl:"app/modules/TCCertificate/views/TCCertificateModern.html",controller:"TCCertificateModernController"}).state("main.StGrad",{url:"/SetTargetGrade",templateUrl:"app/modules/Gradebook/views/SetTargetGrade.html",controller:"SetTargetGradeCont"}).state("main.ViGrad",{url:"/ViewTargetGrade",templateUrl:"app/modules/Gradebook/views/ViewTargetGrade.html",controller:"ViewTargetGradeCont"}).state("main.sttask",{url:"/studenttask",templateUrl:"app/modules/Gradebook/views/StudentTask.html",controller:"StudentTaskCont"}).state("main.ascorv",{url:"/assignmentmarkcorv",templateUrl:"app/modules/attendance/views/AssignmentMarksheetCorv.html",controller:"AssignmentMarksCorvController"}).state("main.traihs",{url:"/transportIHS",templateUrl:"app/modules/transport/views/TransportIHS.html",controller:"TransportIHSController"}).state("main.trareq",{url:"/transportRequest",templateUrl:"app/modules/transport/views/TransportRequest.html",controller:"TransportRequestCont"}).state("main.feenet",{url:"/feesNetwork",templateUrl:"app/modules/fees/views/feesNetwork.html",controller:"FeesNetworkController"}).state("main.paylnk",{url:"/PayByLink",templateUrl:"app/modules/fees/views/PayByLink.html",controller:"PayByLinkController"}).state("main.feSisd",{url:"/feesaisd",templateUrl:"app/modules/fees/views/feesSaisd.html",controller:"FeeSaisdController"}).state("main.PP046",{url:"/RegistrationInfo",templateUrl:"app/modules/test/views/RegistrationInfo.html",controller:"RegistrationInfoCont"}),a.html5Mode(!0);var o=location.pathname.split("/");o="/"+o[o.length-1];for(var n=Object.keys(s),r=0;r0&&"Y"==e.footervisible[0].sims_appl_form_field_value4?(e.footershow=!0,i.get(e.apiUrl+"api/common/getDataParameter?sims_appl_code=Common&sims_appl_form_field=Footer").then(function(t){e.termofuse=t.data,console.log(e.termofuse)})):e.footershow=!1}),e.display=!1,i.get(l.apiUrl+"api/common/getSchoolDetails").then(function(t){e.display=!0,e.obj1=t.data,e.SchoolDetails=t.data}),i.get(l.apiUrl+"api/common/getSSODetails?sso=SSOµsoftppn=MicrosoftPPN").then(function(t){e.ssodata=t.data,console.log(e.ssodata.table);for(var a=0;e.ssodata.table.length>a;a++)if("MicrosoftPPN"==e.ssodata.table[a].app_parameter1){e.client_id=e.ssodata.table[a].app_parameter2,e.tentant_id=e.ssodata.table[a].app_parameter3,e.redirectUrl=e.ssodata.table[a].app_parameter5,"Y"==e.ssodata.table[a].app_parameter_status&&(e.btnvisible=!0);break}window.config={tenant:e.tentant_id,clientId:e.client_id,postLogoutRedirectUri:e.redirectUrl};var s=new AuthenticationContext(config);e.microsoftLogin=function(){s.login()};var o=s.isCallback(window.location.hash);s.handleWindowCallback(),o&&!s.getLoginError()&&(window.location=s._getItem(s.CONSTANTS.STORAGE.LOGIN_REQUEST),console.log(window.location));var n=s.getCachedUser();n&&(console.log(n.userName),i.get(l.apiUrl+"api/common/getuserpass?email_id="+n.userName).then(function(t){console.log(t.data),""==t.data?(swal({title:"Alert",text:"Your email Id is not found please contact to administrator",imageUrl:"assets/img/notification-alert.png"}),e.show_auth=!1):1==t.data.length&&e.Login_microsoft(t.data[0].comn_user_name,t.data[0].comn_user_password)}))}),i.get(l.apiUrl+"api/common/getSSODetails?sso=SSOµsoftppn=gmailPPN").then(function(t){if(!t.data||!1!==t.data.sso){e.ssodata=t.data;for(var a=0;e.ssodata.table.length>a;a++)if("gmailPPN"==e.ssodata.table[a].app_parameter1){e.client_id_gmail=e.ssodata.table[a].app_parameter2,e.redirectUrl_gmail=e.ssodata.table[a].app_parameter5,window.localStorage.ClientSecret=e.ssodata.table[a].app_parameter3,"Y"==e.ssodata.table[a].app_parameter_status&&(e.gmail=!0);break}}}),e.login_google=function(){var t=e.client_id_gmail;window.localStorage.ClientId=t;var a=e.redirectUrl_gmail,s=document.createElement("form");s.setAttribute("method","GET"),s.setAttribute("action","https://accounts.google.com/o/oauth2/v2/auth");var o={client_id:t,redirect_uri:a,discoveryDocs:["https://www.googleapis.com/discovery/v1/apis/classroom/v1/rest"],scope:"https://www.googleapis.com/auth/classroom.courses https://www.googleapis.com/auth/classroom.coursework.students https://www.googleapis.com/auth/drive.metadata.readonly https://www.googleapis.com/auth/classroom.rosters",state:"try_sample_request",include_granted_scopes:"true",response_type:"token"};for(var n in o){var r=document.createElement("input");r.setAttribute("type","hidden"),r.setAttribute("name",n),r.setAttribute("value",o[n]),s.appendChild(r)}document.body.appendChild(s),s.submit()};var a=JSON.parse(localStorage.getItem("oauth2-test-params"));if(!jQuery.isEmptyObject(a)&&a&&a.access_token){var o=new XMLHttpRequest;o.open("GET","https://www.googleapis.com/drive/v3/about?fields=user&access_token="+a.access_token),o.onreadystatechange=function(t){if(4===o.readyState&&200===o.status){var a=JSON.parse(o.response);i.get(l.apiUrl+"api/common/getuserpass?email_id="+a.user.emailAddress).then(function(t){""==t.data?(swal({title:"Alert",text:"Your email id is not found. Please contact the administrator.",imageUrl:"assets/img/notification-alert.png"}),e.show_auth=!1):1==t.data.length&&(window.localStorage.login_google=!0,e.Login_microsoft(t.data[0].comn_user_name,t.data[0].comn_user_password))})}else 4===o.readyState&&401===o.status&&e.login_google()},o.send(null)}};e.showSchoolConnection=window.location.href.includes(".mograsys.co.in")||window.location.href.includes("localhost"),e.showSchoolConnection?i.get(l.kindoApi+"api/common/getAllConnections").then(function(t){e.schoolList=t.data}).catch(function(e){console.error(e)}):m(d),e.onChangeSchool=function(){m(e.school_id)},e.Login=function(){if(e.showForgetPaaword)e.toggleLoginScreen();else{e.userid=e.username.toLowerCase();var n=e.userid.split(".");["saiss"].includes(i.defaults.headers.common.schoolId)?i.get(l.apiUrl+"api/common/getLoginUserType?uname="+e.userid).then(function(t){t.data.length>0?e.username2=t.data.toLowerCase():n.length>0&&(1==n.length?e.username2=n[0]:e.username2=n[1])}):n.length>0&&(1==n.length?e.username2=n[0]:e.username2=n[1]),e.showMessage=!1,i.get(l.apiUrl+"api/common/getlastLogin?uname="+e.username2).then(function(n){e.isfistTimeLog=n.data,a.isfistTimeLog=e.isfistTimeLog,i.get(l.apiUrl+"api/common/getUname?name="+e.username2).then(function(a){""!=a.data?(e.uname=a.data,s.Login(e.uname,e.password,function(a){console.log(a),e.showMessage=!0,0==a.success?(e.showMessage=!0,e.messageClass="alert alert-warning alert-dismissable",e.message="Invalid username or password!!!"):(e.showMessage=!0,e.messageClass="alert alert-success alert-dismissable",AuthenticationSerdashboardvice.ClearCredentials(),s.SetCredentials(e.uname,e.password),e.message="Successfully Authenticated!!!",o(function(){window.localStorage.removeItem("Finn_comp"),t.go("main.")}))})):s.Login(e.username2,e.password,function(a){console.log(a),e.showMessage=!0,0==a.success?(e.showMessage=!0,e.messageClass="alert alert-warning alert-dismissable",e.message="Invalid username or password!!!"):(e.showMessage=!0,e.messageClass="alert alert-success alert-dismissable",s.SetCredentials(e.username2,e.password),e.message="Successfully Authenticated!!!",o(function(){window.localStorage.removeItem("Finn_comp"),"slis"==i.defaults.headers.common.schoolId?t.go("main"):t.go("main.dashboard")}))})})})}};var c=n.search();if(!angular.equals({},c)){e.display_login=!0,c.q.split("-").length>=2&&(e.username=c.q.substring(c.q.indexOf("-")+1,c.q.length),e.password=s.Base64.decode(c.q.substring(0,c.q.indexOf("-"))),["tiadxb","tosdxb","tiashj","staging2","staging"].includes(i.defaults.headers.common.schoolId)&&(window.localStorage.loginFromLeamsPortal=!0),["asis","abqis","siso"].includes(i.defaults.headers.common.schoolId)&&(window.localStorage.loginFromAbqPortal=!0)),e.Login()}e.Login_microsoft=function(n,r){e.showForgetPaaword?e.toggleLoginScreen():(e.showMessage=!1,i.get(l.apiUrl+"api/common/getlastLogin?uname="+n).then(function(l){a.isfistTimeLog=l.data,s.Login(n,r,function(a){console.log(a),e.showMessage=!0,0==a.success?(e.showMessage=!0,e.messageClass="alert alert-warning alert-dismissable",e.message="Invalid username or password!!!"):(e.showMessage=!0,e.messageClass="alert alert-success alert-dismissable",s.ClearCredentials(),s.SetCredentials(n,r),e.message="Successfully Authenticated!!!",o(function(){window.localStorage.microsoft_flg=!0,window.localStorage.removeItem("Finn_comp"),"slis"==i.defaults.headers.common.schoolId?t.go("main"):t.go("main.dashboard")}))})}))},e.onKeyPress=function(t){13==t.keyCode&&e.Login()},e.forgotPassword_link=function(){e.email_id=!1,i.get(l.apiUrl+"api/authenticate/GetGroups").then(function(t){e.grp=t.data})},e.getemailId=function(){e.email_id=!0},e.Save=function(){if(void 0!=e.edt.sims_email_id){i.get(l.apiUrl+"api/authenticate/GetUserName?strEmailID="+e.edt.sims_email_id+"&strCode=&strgroupname="+e.edt.comn_user_group_code).then(function(t){e.emaildata=t.data,console.log(e.emaildata),"false"!=t.data?e.edt.mail_success="Your Username is :'"+e.emaildata+"'":e.edt.mail_success="No User Name is Found!!!"})}void 0==e.edt.sims_email_id&&(e.edt.mail_success="Please Enter Email")},e.Cancel=function(){e.edt.mail_success_lbl="",e.edt.mail_success="",e.edt.sims_email_id="",e.edt.comn_user_group_code=null,e.email_id=!1},e.Cancel1=function(){e.edt.sims_user_name_en="",e.edt.pwd_success="",e.edt.pwd_success_lbl="",e.edt.sims_seq_ans="",e.edt.sims_seq_que="",e.edt.comn_user_group_code="",$("#UploadDocModal").modal("hide")},e.getparam=function(){i.get(l.apiUrl+"api/authenticate/Getparam").then(function(t){e.obj=t.data,e.Parameter=e.obj[0].parameter,e.Email_temp=e.obj[0].email_temp,e.Phone_temp=e.obj[0].phone_temp,"M"==e.Parameter&&(e.flgMobi=!0)})},e.getsecurity=function(){null==e.edt.sims_user_name_en||""==e.edt.sims_user_name_en||void 0==e.edt.sims_user_name_en?(e.pwd=!0,e.edt.pwd_success="Please Enter User Name!!!"):(e.pwd=!1,"M"==e.Parameter&&(e.flgMobi=!0,i.get(l.apiUrl+"api/authenticate/GetMobile?strUsername="+e.edt.sims_user_name_en).then(function(t){e.securitydata=t.data,""==t.data&&swal({title:"Alert",text:"Your email and mobile number is not found please contact to administrator",imageUrl:"assets/img/notification-alert.png"})})),"E"==e.Parameter&&i.get(l.apiUrl+"api/authenticate/GetEmail?strUsername="+e.edt.sims_user_name_en).then(function(t){e.securitydata=t.data}))},e.footerClick=function(e){"OPAC"==e.sims_appl_parameter?t.go(e.sims_appl_form_field_value2):window.open(e.sims_appl_form_field_value2,"_new")}}])}(),function(){"use strict";function e(e,a,s,o,n,r){var i={Login:function(t,a,s){e.post(n.apiUrl+"api/authenticate",{username:t,password:a}).success(function(t,a,o,n){t.token&&(localStorage.setItem("token",t.token),localStorage.setItem("_token",t.token),e.defaults.headers.common.Authorization="Bearer "+t.token),s(t)}).error(function(e,t,a,o){switch(t){case 401:s({success:!1})}})},SetCredentials:function(e,t){s.globals={currentUser:{username:e}},localStorage.setItem("globals",JSON.stringify(s.globals))},ClearCredentials:function(){s.globals={},localStorage.removeItem("globals"),localStorage.removeItem("schoolId"),localStorage.removeItem("token"),localStorage.removeItem("_token")}};if(i.getSchooldId=l,i.deleyc=function(e){var t,a,s,o,n,r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",i="",l="",d="",m=0;/[^A-Za-z0-9\+\/\=]/g.exec(e)&&window.alert("There were invalid base64 characters in the input text.\nValid base64 characters are A-Z, a-z, 0-9, '+', '/',and '='\nExpect errors in decoding.");e=e.replace(/[^A-Za-z0-9\+\/\=]/g,"");do{s=r.indexOf(e.charAt(m++)),o=r.indexOf(e.charAt(m++)),n=r.indexOf(e.charAt(m++)),d=r.indexOf(e.charAt(m++)),t=s<<2|o>>4,a=(15&o)<<4|n>>2,l=(3&n)<<6|d,i+=String.fromCharCode(t),64!=n&&(i+=String.fromCharCode(a)),64!=d&&(i+=String.fromCharCode(l)),t=a=l="",s=o=n=d=""}while(m>2,o=(3&t)<<4|(a=e.charCodeAt(d++))>>4,n=(15&a)<<2|(i=e.charCodeAt(d++))>>6,l=63&i,isNaN(a)?n=l=64:isNaN(i)&&(l=64),r=r+this.keyStr.charAt(s)+this.keyStr.charAt(o)+this.keyStr.charAt(n)+this.keyStr.charAt(l),t=a=i="",s=o=n=l=""}while(d<% for (var i=0; i
  • <%if(segments[i].label){%><%=segments[i].label%><%}%>
  • <%}%>',tooltipTemplate:"<%=value %> <%=label%> users"}),$(document).ready(function(){$("#t1").addClass("disableTab"),$("#t2").addClass("disableTab")}),r.get(i.apiUrl+"api/dashboard/getMessage").then(function(t){if(e.Message_detail=[],t.data.length>0){e.filedata1=t.data;for(var a=0;a0){e.filedata2=t.data;for(var a=0;a0){e.filedata4=t.data;for(var a=0;a0){e.filedata5=t.data;for(var o=0;o").replace(/\</g,"<")}}])}(),function(){"use strict";angular.module("sims.module.circular",["sims","gettext"])}(),function(){"use strict";angular.module("sims.module.circular").controller("CircularController",["$scope","$state","$rootScope","$timeout","$stateParams","gettextCatalog","$http","ENV",function(e,t,a,s,o,n,r,i){e.display=!1,e.grid=!0,e.itemsPerPage="5",e.currentPage=0,e.obj=[];e.edt=[],e.user_name=a.globals.currentUser.username,e.temp=[],e.archivelst=[],e.chk_school=!1,e.flg_asd=!1,"asd"!=r.defaults.headers.common.schoolId&&"aps"!=r.defaults.headers.common.schoolId&&"lwg"!=r.defaults.headers.common.schoolId&&"aelc"!=r.defaults.headers.common.schoolId||(e.flg_asd=!0),"pearl"!=r.defaults.headers.common.schoolId&&"tiadxb"!=r.defaults.headers.common.schoolId&&"tiashj"!=r.defaults.headers.common.schoolId&&"aisdxb"!=r.defaults.headers.common.schoolId&&"tosdxb"!=r.defaults.headers.common.schoolId&&"staging1"!=r.defaults.headers.common.schoolId&&"staging2"!=r.defaults.headers.common.schoolId&&"staging3"!=r.defaults.headers.common.schoolId&&"staging4"!=r.defaults.headers.common.schoolId||(e.flg_pearl=!0),e.month=[{month_nm:"January",month_code:"01"},{month_nm:"February",month_code:"02"},{month_nm:"March",month_code:"03"},{month_nm:"April",month_code:"04"},{month_nm:"May",month_code:"05"},{month_nm:"June",month_code:"06"},{month_nm:"July",month_code:"07"},{month_nm:"August",month_code:"08"},{month_nm:"September",month_code:"09"},{month_nm:"October",month_code:"10"},{month_nm:"November",month_code:"11"},{month_nm:"December",month_code:"12"}];var l,d=(l=new Date).getDate(),m=l.getMonth()+1,c=l.getFullYear();d=(l=new Date).getDate(),a.globals.currentUser.username;d<10&&(d="0"+d),(m=l.getMonth()+1)<10&&(m="0"+m);c=l.getFullYear();if(e.current_date=d+"-"+m+"-"+c,e.search_Archive_click=function(){void 0==e.temp.month_code&&(e.temp.month_code=""),r.get(i.apiUrl+"api/circular/GetArchiveCirculers?academic_year="+e.temp.sims_academic_year+"&month="+e.temp.month_code).then(function(t){e.display=!0,e.obj=t.data,e.currentPage=0})},e.getCircularDetails=function(t){e.temp=[],e.enrollno=a.globals.currentStudent.sims_student_enroll_number,e.cur_code=a.globals.currentStudent.sims_cur_code,e.acad_yr=a.globals.currentStudent.sims_acad_yr;var s=new Date,o=s.getDate()+"-"+(s.getMonth()+1)+"-"+s.getFullYear();e.edt.sdate=moment(o,"DD-MM-YYYY").format("DD-MM-YYYY"),e.edt.edate=moment(o,"DD-MM-YYYY").format("DD-MM-YYYY"),"kipling"==r.defaults.headers.common.schoolId?r.get(i.apiUrl+"api/circular/getCircularByDatesKipling?fromDate="+void 0+"&toDate="+void 0+"&cur="+a.globals.currentStudent.sims_cur_code+"&acad_year="+a.globals.currentStudent.sims_acad_yr+"&user_name="+e.user_name+"&enroll_no="+e.enrollno).then(function(t){e.display=!0,e.grid=!0,e.obj=t.data}):r.get(i.apiUrl+"api/circular/getCircularByDates?fromDate="+void 0+"&toDate="+void 0+"&cur="+a.globals.currentStudent.sims_cur_code+"&acad_year="+a.globals.currentStudent.sims_acad_yr+"&user_name="+e.user_name).then(function(t){e.display=!0,e.grid=!0,e.obj=t.data}),r.get(i.apiUrl+"api/common/getCuriculum").then(function(t){e.display=!0,e.cur_data=t.data,t.data.length>0&&(e.edt.sims_attendance_cur_code=e.cur_code,r.get(i.apiUrl+"api/common/getAllAcademicYear?cur_code="+e.cur_code).then(function(t){e.display=!0,e.acad_data=t.data,e.edt.sims_academic_year=e.acad_yr}))}),e.getAcademicYr=function(t){r.get(i.apiUrl+"api/common/getAllAcademicYear?cur_code="+t).then(function(t){e.display=!0,e.acad_data=t.data})},e.sims_cur_code=a.globals.currentStudent.sims_cur_code,r.get(i.apiUrl+"api/circular/GetAcademicYear?cur="+e.sims_cur_code).then(function(t){e.rcmbAcademic=t.data,e.temp.sims_academic_year=e.acad_yr})},e.size=function(t){e.itemsPerPage=t},e.range=function(){var t,a=[];(t=e.currentPage)>e.pageCount()-5&&(t=e.pageCount()-5+1);for(var s=t;s=0&&a.push(s);return a},e.prevPage=function(){try{var t="#page-"+e.currentPage;$(t).css({"background-color":"transparent"})}catch(e){}if(e.currentPage>0){e.currentPage--;var a="#page-"+e.currentPage;$(a).css({"background-color":"#000"})}},e.prevPageDisabled=function(){return 0===e.currentPage?"disabled":""},e.pageCount=function(){return Math.ceil(e.obj.length/e.itemsPerPage)-1},e.nextPage=function(){e.currentPage0)for(var s=0;sp(e.current_date)&&(swal({title:"Alert",text:"From date should not be greater then today date",imageUrl:"assets/img/notification-alert.png"}),e.edt.sdate="")},e.$on("student_change",function(t,a){e.getCircularDetails()}),a.globals.studentsLoaded&&e.getCircularDetails()}])}(),function(){"use strict";angular.module("sims.module.student",["sims","gettext"])}(),function(){"use strict";var e=angular.module("sims.module.student");e.controller("StudentController",["$scope","$state","$rootScope","$timeout","gettextCatalog","$http","ENV",function(e,t,a,s,o,n,r,i){function l(e){if(null!=e){var t=new Date(e),a=t.getMonth()+1,s=t.getDate();return a<10&&(a="0"+a),s<10&&(s="0"+s),t.getFullYear()+"-"+a+"-"+s}}e.display=!1,e.btnEdit=!0,e.btnCancel=!1,e.btnSave=!1,e.btnEdit1=!0,e.btnCancel1=!1,e.btnSave1=!1,e.btnEdit2=!0,e.btnCancel2=!1,e.btnSave2=!1,e.btnEdit3=!0,e.btnCancel3=!1,e.btnSave3=!1,e.btnEdit4=!0,e.btnCancel4=!1,e.btnSave4=!1,e.prev_img="",e.uploading_path="",e.d_sims_student_emergency_contact_name1=!1,e.d_sims_student_emergency_contact_name2=!1,e.d_sims_student_remark=!1,e.d_sims_student_emergency_contact_number1=!1,e.d_sims_student_emergency_contact_number2=!1,e.d_sims_student_passport_number=!1,e.otherDetailsReadonly=!0,e.otherDetailshow=!1,e.Passportshow=!1,e.PassportReadonly=!0,e.is_studentpco=!0,e.Nationalshow=!1,e.NationalReadonly=!0,e.Departmentshow=!1,e.DepartmentReadonly=!0,e.div_hide=!1,e.show=!0,e.hide=!1,e.chk_school=!1,$(".loader").hide(),["aics","tiadxb","staging1","staging2","staging3","tiashj","staging4","aisdxb","tosdxb"].includes(n.defaults.headers.common.schoolId)&&(e.flg_leams=!0,e.visa_hide=!0,e.hide_Ministry=!0),["misqatar","sisqatar","eiama","eiand","eiagps","tiadxb","tiashj","tosdxb","aisdxb"].includes(n.defaults.headers.common.schoolId)&&(e.hide_Ministry=!0),"hedgewar"==n.defaults.headers.common.schoolId&&(e.show_adhar=!0),["amps","sisqatar","abqis","asis","siso","ges","smsm","saiss","saisu","saisd","saisa"].includes(n.defaults.headers.common.schoolId)&&(e.is_student=!0,e.is_student_aboutus=!0),["abqis","asis","siso"].includes(n.defaults.headers.common.schoolId)&&(e.flg_house=!0),["abqis","asis","siso"].includes(n.defaults.headers.common.schoolId)&&(e.is_studentpco=!1),"abqis"==n.defaults.headers.common.schoolId||"siso"==n.defaults.headers.common.schoolId||"asis"==n.defaults.headers.common.schoolId?e.profile_abq=!1:e.profile_abq=!0,e.national1=!0,e.national2=!1,e.id_number="Emirates ID number","aas"!=n.defaults.headers.common.schoolId&&"iisqatar"!=n.defaults.headers.common.schoolId&&"sisqatar"!=n.defaults.headers.common.schoolId||(e.national1=!1,e.national2=!0,e.id_number="Quatar ID number"),"sisqatar"==n.defaults.headers.common.schoolId&&(e.d_sims_student_emergency_contact_name1=!0,e.d_sims_student_emergency_contact_name2=!0,e.d_sims_student_emergency_contact_number1=!0,e.d_sims_student_emergency_contact_number2=!0,e.d_sims_student_remark=!0,e.d_sims_student_passport_number=!0),["ihsonlineom","mstagingdso","iisonlinedso","mstagingag","ihsonlineag","mstagingom","portaldso","portalag"].includes(n.defaults.headers.common.schoolId)?(e.is_student_aboutus=!0,e.tile_hide=!0,e.contactinfo=!0):e.contactinfo=!1,e.getstudentList=function(){e.student_grade_section(),e.studentName=a.globals.currentStudent.sims_student_passport_fullname,e.enroll_number=a.globals.currentStudent.sims_student_enroll_number,e.grade=a.globals.currentStudent.sims_grade_name_en,e.section=a.globals.currentStudent.sims_section_name_en,e.schoolCode=n.defaults.headers.common.schoolId,e.apiurlpath=r.apiUrl,"asd"==n.defaults.headers.common.schoolId&&(e.chk_school=!0),["asis","abqis","siso"].includes(n.defaults.headers.common.schoolId)&&(e.tile_hide=!0,e.visa_hide=!0,e.hide_Ministry=!0),n.get(r.apiUrl+"api/student/getStudentInfo?student_enroll="+a.globals.currentStudent.enroll_number).then(function(t){e.display=!0,e.obj=t.data,e.getimg()}),n.get(r.apiUrl+"api/device/GetRegIdNew?username="+a.globals.currentUser.username).then(function(t){e.device=t.data}),e.updateDevice=function(t){n.post(r.apiUrl+"api/device/UpdateRegId?opr=X&obj="+JSON.stringify(t)).then(function(t){e.devi=t.data})},n.get(r.apiUrl+"api/student/getStudentpco?student_enroll="+a.globals.currentStudent.enroll_number).then(function(t){e.display=!0,e.studentpco=t.data,e.div_hide=!0})},e.Save=function(){var t=new Object;t.student_enroll_no=a.globals.currentStudent.sims_student_enroll_number,t.sims_parent_number=a.globals.currentUser.username,t.sims_student_image=e.obj.sims_student_image,t.sims_student_passport_first_name_en=e.obj.sims_student_passport_first_name_en,t.sims_student_passport_middle_name_en=e.obj.sims_student_passport_middle_name_en,t.sims_student_passport_last_name_en=e.obj.sims_student_passport_last_name_en,t.sims_student_family_name_en=e.obj.sims_student_family_name_en,t.sims_student_passport_first_name_ot=e.obj.sims_student_passport_first_name_ot,t.sims_student_passport_middle_name_ot=e.obj.sims_student_passport_middle_name_ot,t.sims_student_passport_last_name_ot=e.obj.sims_student_passport_last_name_ot,t.sims_student_family_name_ot=e.obj.sims_student_family_name_ot,t.sims_student_nickname=e.obj.sims_student_nickname,t.sims_appl_parameter_gender=e.obj.sims_appl_parameter_gender,t.sims_student_dob=l(e.obj.sims_student_dob),t.sims_student_birth_country_code=e.obj.sims_student_birth_country_code,t.sims_nationality_code=e.obj.sims_nationality_code,t.sims_ethnicity_code=e.obj.sims_ethnicity_code,t.sims_religion_code=e.obj.sims_religion_code,t.sims_parent_father_summary_address=e.obj.sims_parent_father_summary_address,t.sims_parent_father_city=e.obj.sims_parent_father_city,t.sims_parent_father_state=e.obj.sims_parent_father_state,t.sims_parent_father_country_code=e.obj.sims_parent_country_code,t.sims_parent_father_phone=e.obj.sims_parent_father_phone,t.sims_parent_father_mobile=e.obj.sims_parent_father_mobile,t.sims_parent_father_email=e.obj.sims_parent_father_email,t.sims_parent_father_fax=e.obj.sims_parent_father_fax,t.sims_parent_father_po_box=e.obj.sims_parent_father_po_box,t.sims_student_current_school_code=e.obj.sims_student_current_school_code,t.sims_student_date=l(e.obj.sims_student_date),t.sims_student_commence_date=l(e.obj.sims_student_commence_date),t.sims_student_academic_status=e.obj.sims_appl_parameter_Academic_Status_Code,t.sims_student_class_rank=e.obj.sims_student_class_rank,t.sims_student_house=e.obj.sims_student_house,t.sims_student_transport_status=e.obj.sims_student_transport_status,t.sims_student_main_language=e.obj.sims_language_code,t.sims_student_other_language=e.obj.sims_student_other_language,t.sims_appl_parameter_legal=e.obj.sims_appl_parameter_legal,t.sims_student_last_login=l(e.obj.sims_student_last_login),t.sims_student_remark=e.obj.sims_student_remark,t.sims_student_emergency_contact_name1=e.obj.sims_student_emergency_contact_name1,t.sims_student_emergency_contact_name2=e.obj.sims_student_emergency_contact_name2,t.sims_student_emergency_contact_number1=e.obj.sims_student_emergency_contact_number1,t.sims_student_emergency_contact_number2=e.obj.sims_student_emergency_contact_number2,t.sims_student_passport_number=e.obj.sims_student_passport_number,t.sims_student_passport_issue_date=l(e.obj.sims_student_passport_issue_date),t.sims_student_passport_expiry_date=l(e.obj.sims_student_passport_expiry_date),t.sims_student_passport_issuing_authority=e.obj.sims_student_passport_issuing_authority,t.sims_student_passport_issue_place=e.obj.sims_student_passport_issue_place,t.sims_student_national_id=e.obj.sims_student_national_id,t.sims_student_national_id_issue_date=l(e.obj.sims_student_national_id_issue_date),t.sims_student_national_id_expiry_date=l(e.obj.sims_student_national_id_expiry_date),t.sims_student_visa_number=e.obj.sims_student_visa_number,t.sims_student_visa_issue_date=l(e.obj.sims_student_visa_issue_date),t.sims_student_visa_expiry_date=l(e.obj.sims_student_visa_expiry_date),t.sims_student_visa_issuing_place=e.obj.sims_student_visa_issuing_place,t.sims_student_visa_issuing_authority=e.obj.sims_student_visa_issuing_authority,t.sims_student_visa_type=e.obj.sims_student_visa_type,t.sims_student_ea_number=e.obj.sims_student_ea_number,t.sims_student_ea_registration_date=l(e.obj.sims_student_ea_registration_date),t.sims_student_ea_transfer=e.obj.sims_student_ea_transfer,t.sims_student_ea_status=e.obj.sims_student_ea_status,n.delete(r.apiUrl+"api/student/studentupdate",{data:t,headers:{"Content-Type":"application/json"}},null).then(function(t){n.get(r.apiUrl+"api/student/getStudentInfo?student_enroll="+a.globals.currentStudent.enroll_number).then(function(t){e.display=!0,e.obj=t.data,e.div_hide=!1,e.show=!0,e.hide=!1,e.div_hide=!0,e.btnEdit=!0,e.btnCancel=!1,e.btnSave=!1,e.btnEdit1=!0,e.btnCancel1=!1,e.btnSave1=!1,e.btnEdit2=!0,e.btnCancel2=!1,e.btnSave2=!1,e.btnEdit3=!0,e.btnCancel3=!1,e.btnSave3=!1,e.btnEdit4=!0,e.btnCancel4=!1,e.btnSave4=!1})},function(e){})},e.student_grade_section=function(){n.get(r.apiUrl+"api/student/getStudentGradeSection?enroll_num="+a.globals.currentStudent.sims_student_enroll_number).then(function(t){e.class=t.data[0].grade_sec})},e.edit=function(){e.btnEdit=!1,e.btnSave=!0,e.btnCancel=!0,e.btnEdit1=!1,e.btnSave1=!0,e.btnCancel1=!0,e.btnEdit2=!1,e.btnCancel2=!0,e.btnSave2=!0,e.btnEdit3=!1,e.btnCancel3=!0,e.btnSave3=!0,e.btnEdit4=!1,e.btnCancel4=!0,e.btnSave4=!0,e.hide=!0,e.show=!1},e.Cancel=function(){e.btnEdit=!0,e.btnSave=!1,e.btnCancel=!1,e.btnEdit1=!0,e.btnSave1=!1,e.btnCancel1=!1,e.btnEdit2=!0,e.btnCancel2=!1,e.btnSave2=!1,e.btnEdit3=!0,e.btnCancel3=!1,e.btnSave3=!1,e.btnEdit4=!0,e.btnCancel4=!1,e.btnSave4=!1,e.hide=!1,e.show=!0},n.get(r.apiUrl+"api/common/getAllComboBoxValues?academicYear=2015&routeCode=01").then(function(t){e.display=!0,e.obj2=t.data}),e.Getinfo1=function(t){n.get(r.apiUrl+"api/common/getState?CountryCode="+t).then(function(t){e.display=!0,e.obj3=t.data})},e.Getinfo2=function(t){n.get(r.apiUrl+"api/common/getCity?StateCode="+t).then(function(t){e.display=!0,e.obj4=t.data})},$('*[data-datepicker="true"] input[type="text"]').datepicker({todayBtn:!0,orientation:"top left",autoclose:!0,todayHighlight:!0}),e.model=function(){$("#myModal").modal("show")};var d=new FormData;e.getTheFiles=function(e){angular.forEach(e,function(e,t){d.append(t,e)})},e.file_changed=function(t){e.flg_check_photo=!1;var a=t.files[0];imageConversion.compressAccurately(a,{type:"image/jpeg",width:168,size:100}).then(t=>{e.sims_photo_compressed=new File([t],"compressed_photo",{type:"image/jpeg"})}),e.photo_filename=a.type;var s=a.name.toLowerCase().split(".");if(s=s[s.length-1],t.files[0].size<8e6)if("jpeg"==s||"jpg"==s||"png"==s){var o=new FileReader;o.onload=function(t){e.$apply(function(){e.prev_img=t.target.result})},o.readAsDataURL(a)}else swal({title:"File format not Supported. Supporting formats are jpeg , jpg , png",imageUrl:"assets/img/notification-alert.png",showCloseButton:!0,width:380}),e.flg_check_photo=!0,e.ImgClickFShow=!1;else swal({title:"Error : File size should be less than 8MB.",imageUrl:"assets/img/notification-alert.png"}),e.flg_check_photo=!0,e.uploadImgClickFShow=!1},e.uploadImgClickF=function(){e.uploadImgClickFShow=!0},e.uploadImgCancel=function(){e.uploadImgClickFShow=!1},e.getimg=function(){if(e.prev_img="",e.uploading_path="",!angular.isUndefined(a.pp_url_lst)){if(a.pp_url_lst.length>0)for(var t=0;t0?(e.seeForm=!0,e.seebutton=!1,e.saved=!1,e.prefsel=!1,e.tcbtn=!1):e.seebutton=!0}),r.get(i.apiUrl+"api/Gradebook/getSupervisorChoice?enroll_number="+e.enrollno).then(function(t){e.Supervisor_list=t.data,e.fchoice=e.Supervisor_list[0].sims_choice_code,e.resrec=e.Supervisor_list[0].sims_status}),r.get(i.apiUrl+"api/Gradebook/getRejectedList?enroll_number="+e.enrollno).then(function(t){e.RejectedList=t.data}),e.Accept=function(){e.not_accept_btn=!1;var t=[],s={opr:"WX",sims_enroll_number:e.enrollno,sims_fee_academic_year:a.globals.currentStudent.sims_acad_yr,sims_fee_category:"01",sims_fee_cur_code:"01",sims_fee_grade_code:a.globals.currentStudent.sims_grade_code,sims_fee_section_code:a.globals.currentStudent.sims_section_code,sims_fee_code:e.student.fee_code,sims_choice_code:e.fchoice};t.push(s),r.post(i.apiUrl+"api/Gradebook/Assign_fee_to_studentNewGR11",t).then(function(t){e.Accepted_Res=t.data,1==e.Accepted_Res?(e.status_refresh(),swal.fire({title:"",text:"Your confirmation has been saved",width:"300px",height:"300px"}),e.accept_btn=!1):swal.fire({title:"",text:"Response not saved please try again",width:"300px",height:"300px"})})},e.edt=[],e.Not_Accept_Reason_Submit=function(){var t=[];console.log(e.edt);var a={opr:"I",sims_student_enroll_number:e.enrollno,sims_choice_code:e.fchoice,parent_reason_for_rejection:e.edt.parent_reason_for_rejection};t.push(a),r.post(i.apiUrl+"api/Gradebook/updateParentReason",t).then(function(t){e.Accepted_Reason=t.data,1==e.Accepted_Reason?(e.status_refresh(),swal.fire({title:"",text:"Your reason has been saved",width:"300px",height:"300px"}),$("#myModal").modal("hide"),$(".modal-backdrop").removeClass("modal-backdrop"),r.get(i.apiUrl+"api/Gradebook/getRejectedList?enroll_number="+e.enrollno).then(function(t){e.RejectedList=t.data})):(swal.fire({title:"",text:"Response not saved please try again",width:"300px",height:"300px"}),$("#myModal").modal("hide"),$(".modal-backdrop").removeClass("modal-backdrop"))})},e.status_refresh=function(){r.get(i.apiUrl+"api/Gradebook/getSupervisorChoice?enroll_number="+e.enrollno).then(function(t){e.Supervisor_list=t.data,e.fchoice=e.Supervisor_list[0].sims_choice_code,e.resrec=e.Supervisor_list[0].sims_status})},e.Not_Accept=function(){$("#myModal").modal("show")},e.test=function(e){console.log(e)},e.reset=(()=>{e.prferance_list=[],e.saved_list=[],console.log("SS",e.chosen_list)}),e.Save=function(){e.dup_preferance=!1,e.prferance_list=[];for(var t=0;t{console.log("NNN",t),1==t.isConfirmed?(console.log("YES",t),r.post(i.apiUrl+"api/Gradebook/saveSubjectGR11",e.saved_list).then(function(t){!0===t.data?(swal.fire({title:"",text:"Saved Successfully",width:"300px",height:"300px"}),document.getElementById("savebtn").disabled=!0,e.prefsel=!1,e.tcbtn=!1,e.seebutton=!1,e.saved=!1):(swal.fire({title:"",text:"Record Not Saved",width:"300px",height:"300px"}),e.reset())})):e.reset()})}else swal.fire({title:"",text:"Please Select Three Preferences",width:"300px",height:"300px"});else swal.fire({title:"",text:"Please Select Unique Preferences",width:"300px",height:"300px"})},e.get_tc=function(){console.log("ABC",e.student),window.open(e.student.terms_n_conditions)},e.Check=function(t){var a=document.getElementById(t.sims_choice_code);if(1==t.checkbox){for(var s=0,o=0;o=3&&(t.checkbox=!1,swal.fire({title:"",text:"Only Three Preferences Are Allowed",width:"300px",height:"300px"})),s=""}if(0==t.checkbox){t.preferance=null,$(a).attr("disabled","disabled"),$(a).val("");for(var n=0;n0?(e.seeForm=!0,r.get(i.apiUrl+"api/Gradebook/Geteligilibity?year_code="+e.year_code+"&enroll_no="+e.enroll_no).then(function(t){e.eligibility_data=t.data,e.allexams=[],e.combinations=[],angular.forEach(e.eligibility_data,function(t){var a=t.sims_progress_name;-1===e.allexams.indexOf(a)&&e.allexams.push(a)}),angular.forEach(e.eligibility_data,function(t){var a=t.sims_stream_code+t.sims_choice_code,s=t.sims_progress_name,o=t.sims_eligibility_status,n=(t.sims_choice_name,t.sims_stream_name,t.sims_stream_code,t.sims_choice_code,t.sims_progress_code,e.combinations.find(function(e){return e.code===a}));n||(n={name:t.sims_stream_name,code:t.sims_stream_code+t.sims_choice_code,choice_name:t.sims_choice_name,stream_code1:t.sims_stream_code,choice_code1:t.sims_choice_code,progress_code1:t.sims_progress_code,exams:{}},e.combinations.push(n)),n.exams[s]={status:o}}),angular.forEach(e.combinations,function(t){angular.forEach(e.allexams,function(e){t.exams[e]||(t.exams[e]={status:"N"})})}),e.preprocessedData=[];let a=0;e.colors={};const s=["#d6e6ff","#d7f9f8","#ffffea","#fff0d4","#fbe0e0","#e8cef9","#e5d4ef","#f2eaf7"];let o={};angular.forEach(e.combinations,function(t){o[t.name]||(o[t.name]=0,e.colors[t.name]||(e.colors[t.name]=s[a%s.length],a++)),o[t.name]++}),e.preprocessedData=[],angular.forEach(e.combinations,function(t){e.preprocessedData.push({name:t.name,choice_name:t.choice_name,stream_code1:t.stream_code1,choice_code1:t.choice_code1,progress_code1:t.progress_code1,exams:t.exams,rowspan:o[t.name],color:e.colors[t.name]})})})):swal.fire({title:"",text:"Progress Eligibility list not initiated",width:"300px",height:"300px"})}),e.geteligidetails=function(t,a,s,o,n,l){e.eligibleDetails=[],e.progress_code=n,e.markdetails=!1,r.get(i.apiUrl+"api/Gradebook/Geteligibilitylistdetails?year_code="+e.year_code+"&progress_code="+n+"&enroll_no="+l+"&stream_code="+s+"&choice_code="+o).then(function(t){$("#MyModaleligiblity").modal("show"),e.eligibleDetails=t.data})},e.details=function(t,a){e.enroll=t,e.name=a,r.get(i.apiUrl+"api/Gradebook/Getcalculationdetails?year_code="+e.year_code+"&progress_code="+e.progress_code+"&enroll_no="+e.enroll_no).then(function(t){e.details_progress=t.data,e.markdetails=!0,e.allexams=[],e.subjects=[],angular.forEach(e.details_progress,function(t){var a=t.sims_reportcard_name+"("+parseFloat(t.sims_reportcard_weightage).toFixed(0)+")";-1===e.allexams.indexOf(a)&&e.allexams.push(a)}),angular.forEach(e.details_progress,function(t){var a=t.sims_subject_code,s=t.sims_reportcard_name+"("+parseFloat(t.sims_reportcard_weightage).toFixed(0)+")",o=t.sims_student_category_received_point,n=t.sims_report_card_assign_points_possible,r=t.sims_reportcard_calculated_subject_aggregate,i=t.sims_reportcard_calculated_overall_aggregate,l=t.sims_reportcard_weightage,d=e.subjects.find(function(e){return e.code===a});d||(d={name:t.sims_subject_name_en,code:t.sims_subject_code,exams:{}},e.subjects.push(d)),d.exams[s]={recevied:o,max:n,sub_agg:r,overall_agg:i,weightage:l}}),angular.forEach(e.subjects,function(t){angular.forEach(e.allexams,function(e){t.exams[e]||(t.exams[e]={recevied:"0.00",max:"0.00",sub_agg:"0.00",overall_agg:"0.00",weightage:"0.00"})})})})}}])}(),function(){"use strict";angular.module("sims.module.student").controller("MojoController",["$scope","$state","$rootScope","$timeout","gettextCatalog","$http","ENV",function(e,t,a,s,o,n,r,i){e.div_hide=!1,e.show=!0,e.hide=!1,e.chk_school=!1,e.getstudentList=function(){var t=document.getElementById("btn1"),s=document.getElementById("btn2");e.studentName=a.globals.currentStudent.sims_student_passport_fullname,e.enroll_number=a.globals.currentStudent.sims_student_enroll_number,e.grade=a.globals.currentStudent.sims_grade_name_en,e.section=a.globals.currentStudent.sims_section_name_en,e.class=e.grade+"-"+e.section,e.schoolCode=n.defaults.headers.common.schoolId,e.apiurlpath=r.apiUrl,e.Positive_panel=!0,e.Negative_panel=!1,e.imageUrl="https://assets.mograsys.com/Content/"+n.defaults.headers.common.schoolId+"/Images/StudentImages/",e.skill_img="https://assets.mograsys.com/Images/mojo/skills/",n.get(r.apiUrl+"api/student/getMojoStudent?cur_code="+a.globals.currentStudent.sims_cur_code+"&acd_year="+a.globals.currentStudent.sims_acad_yr+"&grade_code="+a.globals.currentStudent.sims_grade_code+"§ion_code="+a.globals.currentStudent.sims_section_code+"&enroll="+a.globals.currentStudent.sims_student_enroll_number).then(function(t){e.stud_details=t.data,e.data={student_name:e.stud_details[0].sims_student_full_name,student_img:e.imageUrl+e.stud_details[0].sims_student_img,student_enroll:a.globals.currentStudent.sims_student_enroll_number}}),n.get(r.apiUrl+"api/student/getMojoRating?cur_code="+a.globals.currentStudent.sims_cur_code+"&acd_year="+a.globals.currentStudent.sims_acad_yr+"&grade_code="+a.globals.currentStudent.sims_grade_code+"§ion_code="+a.globals.currentStudent.sims_section_code+"&enroll="+a.globals.currentStudent.sims_student_enroll_number).then(function(a){e.rating_details=a.data,0==e.rating_details.length&&swal({title:"Alert",text:"No Data Found",imageUrl:"assets/img/notification-alert.png"}),t.classList.remove("btn_fade"),s.classList.remove("btn_fade2")}),n.get(r.apiUrl+"api/student/getMojoRatingHistory?cur_code="+a.globals.currentStudent.sims_cur_code+"&acd_year="+a.globals.currentStudent.sims_acad_yr+"&grade_code="+a.globals.currentStudent.sims_grade_code+"§ion_code="+a.globals.currentStudent.sims_section_code+"&enroll="+a.globals.currentStudent.sims_student_enroll_number).then(function(a){e.allRatings=a.data,t.classList.remove("btn_fade"),s.classList.remove("btn_fade2")}),e.Positive=function(){e.Positive_panel=!0,e.Negative_panel=!1,t.classList.remove("btn_fade"),t.classList.toggle("btn_fade1"),s.classList.remove("btn_fade2"),s.classList.toggle("btn_fade"),t.disabled=!0,s.disabled=!1},e.Negative=function(){e.Positive_panel=!1,e.Negative_panel=!0,t.classList.remove("btn_fade1"),t.classList.toggle("btn_fade"),s.disabled=!0,t.disabled=!1,s.classList.toggle("btn_fade2"),s.classList.remove("btn_fade")},e.View=function(){e.view_all_transaction=!0},n.get(r.apiUrl+"api/student/getStudentpco?student_enroll="+a.globals.currentStudent.enroll_number).then(function(t){e.display=!0,e.studentpco=t.data,e.div_hide=!0})},a.globals.studentsLoaded&&e.getstudentList(),e.$on("student_change",function(){e.getstudentList()})}])}(),function(){"use strict";var e=angular.module("sims.module.student");e.controller("StudentControllerNew",["$scope","$state","$rootScope","$timeout","gettextCatalog","$http","ENV","$filter",function(e,t,a,s,o,n,r,i){function l(e){if(null!=e){var t=new Date(e),a=t.getMonth()+1,s=t.getDate();return a<10&&(a="0"+a),s<10&&(s="0"+s),t.getFullYear()+"-"+a+"-"+s}}e.display=!1,e.btnEdit=!0,e.btnCancel=!1,e.btnSave=!1,e.btnEdit1=!0,e.btnCancel1=!1,e.btnSave1=!1,e.btnEdit2=!0,e.btnCancel2=!1,e.btnSave2=!1,e.btnEdit3=!0,e.btnCancel3=!1,e.btnSave3=!1,e.btnEdit4=!0,e.btnCancel4=!1,e.btnSave4=!1,e.prev_img="",e.d_sims_student_emergency_contact_name1=!1,e.d_sims_student_emergency_contact_name2=!1,e.d_sims_student_remark=!1,e.d_sims_student_emergency_contact_number1=!1,e.d_sims_student_emergency_contact_number2=!1,e.d_sims_student_passport_number=!1,e.otherDetailsReadonly=!0,e.otherDetailshow=!1,e.Passportshow=!1,e.PassportReadonly=!0,e.is_studentpco=!0,e.Nationalshow=!1,e.NationalReadonly=!0,e.Departmentshow=!1,e.DepartmentReadonly=!0,e.div_hide=!1,e.show=!0,e.hide=!1,e.chk_school=!1,"tiadxb"!=n.defaults.headers.common.schoolId&&"staging1"!=n.defaults.headers.common.schoolId&&"staging2"!=n.defaults.headers.common.schoolId&&"staging3"!=n.defaults.headers.common.schoolId&&"staging4"!=n.defaults.headers.common.schoolId&&"tiashj"!=n.defaults.headers.common.schoolId&&"tosdxb"!=n.defaults.headers.common.schoolId&&"aisdxb"!=n.defaults.headers.common.schoolId||(e.flg_leams=!0,e.visa_hide=!0,e.hide_Ministry=!0),"misqatar"!=n.defaults.headers.common.schoolId&&"sisqatar"!=n.defaults.headers.common.schoolId&&"eiama"!=n.defaults.headers.common.schoolId&&"eiand"!=n.defaults.headers.common.schoolId&&"eiagps"!=n.defaults.headers.common.schoolId&&"tiadxb"!=n.defaults.headers.common.schoolId&&"tiashj"!=n.defaults.headers.common.schoolId&&"tiashj"!=n.defaults.headers.common.schoolId&&"tosdxb"!=n.defaults.headers.common.schoolId&&"aisdxb"!=n.defaults.headers.common.schoolId||(e.hide_Ministry=!0),"hedgewar"==n.defaults.headers.common.schoolId&&(e.show_adhar=!0),"sisqatar"!=n.defaults.headers.common.schoolId&&"abqis"!=n.defaults.headers.common.schoolId&&"asis"!=n.defaults.headers.common.schoolId&&"siso"!=n.defaults.headers.common.schoolId&&"ges"!=n.defaults.headers.common.schoolId&&"smsm"!=n.defaults.headers.common.schoolId||(e.is_student=!0),"abqis"!=n.defaults.headers.common.schoolId&&"asis"!=n.defaults.headers.common.schoolId&&"siso"!=n.defaults.headers.common.schoolId||(e.flg_house=!0),"abqis"!=n.defaults.headers.common.schoolId&&"asis"!=n.defaults.headers.common.schoolId&&"siso"!=n.defaults.headers.common.schoolId||(e.is_studentpco=!1),"sisqatar"==n.defaults.headers.common.schoolId&&(e.d_sims_student_emergency_contact_name1=!0,e.d_sims_student_emergency_contact_name2=!0,e.d_sims_student_emergency_contact_number1=!0,e.d_sims_student_emergency_contact_number2=!0,e.d_sims_student_remark=!0,e.d_sims_student_passport_number=!0),e.getstudentList=function(){e.studentName=a.globals.currentStudent.sims_student_passport_fullname,e.enroll_number=a.globals.currentStudent.sims_student_enroll_number,e.grade=a.globals.currentStudent.sims_grade_name_en,e.section=a.globals.currentStudent.sims_section_name_en,e.class=e.grade+"-"+e.section,e.schoolCode=n.defaults.headers.common.schoolId,e.apiurlpath=r.apiUrl,e.docurl=r.docUrl+e.schoolCode,"asd"==n.defaults.headers.common.schoolId&&(e.chk_school=!0),"asis"!=n.defaults.headers.common.schoolId&&"abqis"!=n.defaults.headers.common.schoolId&&"siso"!=n.defaults.headers.common.schoolId||(e.tile_hide=!0,e.visa_hide=!0,e.hide_Ministry=!0),n.get(r.apiUrl+"api/student/getStudentInfo?student_enroll="+a.globals.currentStudent.enroll_number).then(function(t){e.display=!0,e.obj=t.data,e.getimg(),console.log(" $scope.obj",e.obj),e.div_hide=!0,n.get(r.apiUrl+"api/student/GetCriteriaName?student_roll_number="+e.obj.student_enroll_no).then(function(t){e.Upload_doc_datails=t.data;for(var a=0;a0)for(var t=0;t2e6&&(e.filesize=!1,swal({title:"Error : Cannot upload files larger than 2Mb.",imageUrl:"assets/img/notification-alert.png"}))})},e.uploadClick=function(t){e.filesize=!0,e.edt1=t,console.log(e.edt1),e.edt1.photoStatus=!0,e.ins=!1,c=new FormData},e.file_changed=function(t,a){var s=t.files[0];e.photo_filename=s.type,d=t.files;var o=s.name.split(".")[1];if("jpeg"==o||"jpg"==o||"png"==o||"pdf"==o||"docx"==o||"doc"==o){var l=new FileReader;if(l.onload=function(t){e.$apply(function(){e.prev_image=t.target.result})},d.length){m=new FormData;for(var _=0;_0)for(var t=0;t0?e.studFeeDetails=e.InvoiceReceivable_Data:swal({title:"Alert",text:"Invoice Not Found",width:300,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()},a.globals.studentsLoaded&&e.getFeesDetails()}])}(),function(){"use strict";angular.module("sims.module.student").controller("Kyc_Controller",["$scope","$state","$rootScope","$timeout","$stateParams","gettextCatalog","$http","ENV",function(e,t,a,s,o,n,r,i){e.kyc_data=[],r.get(i.apiUrl+"api/dashboard/getprofession_codes").then(function(t){e.prof_data=t.data}),e.edt={},e.data={},e.student=[],e.All_Student_Details=[],r.get(i.apiUrl+"api/dashboard/getKYC_Survey_Details?acad_year="+a.globals.currentStudent.sims_acad_yr+"&pid="+a.globals.currentUser.username).then(function(t){e.kyc_data=t.data,console.log("Length",e.kyc_data.length),e.edt={sims_kyc_user_type:e.kyc_data[0].sims_kyc_user_type,sims_student_emergency_contact_name1:e.kyc_data[0].sims_student_emergency_contact_name1,sims_student_visa_number:e.kyc_data[0].sims_student_visa_number,sims_student_visa_issue_date:e.kyc_data[0].sims_student_visa_issue_date,sims_student_visa_expiry_date:e.kyc_data[0].sims_student_visa_expiry_date,sims_student_national_id_issue_date:e.kyc_data[0].sims_student_national_id_issue_date,sims_student_national_id_expiry_date:e.kyc_data[0].sims_student_national_id_expiry_date,sims_student_primary_contact_pref:e.kyc_data[0].sims_student_primary_contact_pref,sims_student_legal_custody:e.kyc_data[0].sims_student_legal_custody,sims_student_emergency_contact_name1:e.kyc_data[0].sims_student_emergency_contact_name1,sims_student_emergency_contact_name2:e.kyc_data[0].sims_student_emergency_contact_name2,sims_student_emergency_contact_number1:e.kyc_data[0].sims_student_emergency_contact_number1,sims_student_emergency_contact_number2:e.kyc_data[0].sims_student_emergency_contact_number2,sims_student_passport_number:e.kyc_data[0].sims_student_passport_number,sims_student_passport_issue_date:e.kyc_data[0].sims_student_passport_issue_date,sims_student_passport_expiry_date:e.kyc_data[0].sims_student_passport_expiry_date,sims_student_passport_issuing_authority:e.kyc_data[0].sims_student_passport_issuing_authority,sims_student_passport_issue_place:e.kyc_data[0].sims_student_passport_issue_place},e.edt_father={sims_parent_father_salutation_code:e.kyc_data[0].sims_parent_father_salutation_code,sims_parent_father_nationality2_code:e.kyc_data[0].sims_parent_father_nationality2_code,sims_parent_father_appartment_number:e.kyc_data[0].sims_parent_father_appartment_number,sims_parent_father_building_number:e.kyc_data[0].sims_parent_father_building_number,sims_parent_father_street_number:e.kyc_data[0].sims_parent_father_street_number,sims_parent_father_area_number:e.kyc_data[0].sims_parent_father_area_number,sims_parent_father_summary_address:e.kyc_data[0].sims_parent_father_summary_address,sims_parent_father_summary_address_local_language:e.kyc_data[0].sims_parent_father_summary_address_local_language,sims_parent_father_city:e.kyc_data[0].sims_parent_father_city,sims_parent_father_state:e.kyc_data[0].sims_parent_father_state,sims_parent_father_country_code:e.kyc_data[0].sims_parent_father_country_code,sims_parent_father_phone:e.kyc_data[0].sims_parent_father_phone,sims_parent_father_mobile:e.kyc_data[0].sims_parent_father_mobile,sims_parent_father_email:e.kyc_data[0].sims_parent_father_email,sims_parent_father_fax:e.kyc_data[0].sims_parent_father_fax,sims_parent_father_po_box:e.kyc_data[0].sims_parent_father_po_box,sims_parent_father_occupation:e.kyc_data[0].sims_parent_father_occupation,sims_parent_father_occupation_local_language:e.kyc_data[0].sims_parent_father_occupation_local_language,sims_parent_father_occupation_location_local_language:e.kyc_data[0].sims_parent_father_occupation_location_local_language,sims_parent_father_company:e.kyc_data[0].sims_parent_father_company,sims_parent_father_passport_number:e.kyc_data[0].sims_parent_father_passport_number,sims_parent_father_passport_issue_date:e.kyc_data[0].sims_parent_father_passport_issue_date,sims_parent_father_passport_expiry_date:e.kyc_data[0].sims_parent_father_passport_expiry_date,sims_parent_father_national_id:e.kyc_data[0].sims_parent_father_national_id,sims_parent_father_national_id_issue_date:e.kyc_data[0].sims_parent_father_national_id_issue_date,sims_parent_father_national_id__expiry_date:e.kyc_data[0].sims_parent_father_national_id__expiry_date,sims_parent_father_qualification:e.kyc_data[0].sims_parent_father_qualification,sims_parent_father_passing_year:e.kyc_data[0].sims_parent_father_passing_year,sims_parent_father_profession_code:e.kyc_data[0].sims_parent_father_profession_code,sims_parent_father_specialization_code:e.kyc_data[0].sims_parent_father_specialization_code,sims_parent_father_profession_value:e.kyc_data[0].sims_parent_father_profession_value,sims_parent_father_company_address:e.kyc_data[0].sims_parent_father_company_address,sims_parent_father_company_joining_year:e.kyc_data[0].sims_parent_father_company_joining_year,sims_parent_father_isalumni:e.kyc_data[0].sims_parent_father_isalumni},e.edt_mother={sims_parent_mother_salutation_code:e.kyc_data[0].sims_parent_mother_salutation_code,sims_parent_mother_last_name:e.kyc_data[0].sims_parent_mother_salutation_code,sims_parent_mother_family_name:e.kyc_data[0].sims_parent_mother_salutation_code,sims_parent_mother_nationality2_code:e.kyc_data[0].sims_parent_mother_nationality2_code,sims_parent_mother_appartment_number:e.kyc_data[0].sims_parent_mother_appartment_number,sims_parent_mother_building_number:e.kyc_data[0].sims_parent_mother_building_number,sims_parent_mother_street_number:e.kyc_data[0].sims_parent_mother_street_number,sims_parent_mother_area_number:e.kyc_data[0].sims_parent_mother_area_number,sims_parent_mother_summary_address:e.kyc_data[0].sims_parent_mother_summary_address,sims_parent_mother_city:e.kyc_data[0].sims_parent_mother_city,sims_parent_mother_state:e.kyc_data[0].sims_parent_mother_state,sims_parent_mother_country_code:e.kyc_data[0].sims_parent_mother_country_code,sims_parent_mother_phone:e.kyc_data[0].sims_parent_mother_phone,sims_parent_mother_mobile:e.kyc_data[0].sims_parent_mother_mobile,sims_parent_mother_email:e.kyc_data[0].sims_parent_mother_email,sims_parent_mother_fax:e.kyc_data[0].sims_parent_mother_fax,sims_parent_mother_po_box:e.kyc_data[0].sims_parent_mother_po_box,sims_parent_mother_occupation:e.kyc_data[0].sims_parent_mother_occupation,sims_parent_mother_occupation_local_language:e.kyc_data[0].sims_parent_mother_occupation_local_language,sims_parent_mother_company:e.kyc_data[0].sims_parent_mother_company,sims_parent_mother_passport_number:e.kyc_data[0].sims_parent_mother_passport_number,sims_parent_mother_passport_issue_date:e.kyc_data[0].sims_parent_mother_passport_issue_date,sims_parent_mother_passport_expiry_date:e.kyc_data[0].sims_parent_mother_passport_expiry_date,sims_parent_mother_national_id:e.kyc_data[0].sims_parent_mother_national_id,sims_parent_mother_national_id_issue_date:e.kyc_data[0].sims_parent_mother_national_id_issue_date,sims_parent_mother_national_id_expiry_date:e.kyc_data[0].sims_parent_mother_national_id_expiry_date,sims_parent_mother_qualification:e.kyc_data[0].sims_parent_mother_qualification,sims_parent_mother_passing_year:e.kyc_data[0].sims_parent_mother_passing_year,sims_parent_mother_profession_code:e.kyc_data[0].sims_parent_mother_profession_code,sims_parent_mother_specialization_code:e.kyc_data[0].sims_parent_mother_specialization_code,sims_parent_mother_profession_value:e.kyc_data[0].sims_parent_mother_profession_value,sims_parent_mother_company_address:e.kyc_data[0].sims_parent_mother_company_address,sims_parent_mother_company_joining_year:e.kyc_data[0].sims_parent_mother_company_joining_year,sims_parent_mother_isalumni:e.kyc_data[0].sims_parent_mother_isalumni},(e.kyc_data.length=0)&&swal({title:"Alert",text:"No Survey Defined",width:300,height:200})}),r.get(i.apiUrl+"api/dashboard/get_Kyc_Sibling?opr=D&pid="+a.globals.currentUser.username+"&acad_year="+a.globals.currentStudent.sims_acad_yr).then(function(t){e.sibling_data=t.data,e.All_Student_Details=e.sibling_data,console.log(e.All_Student_Details)}),e.getSpecialization_F=function(){r.get(i.apiUrl+"api/dashboard/getSpecialization_F?sims_father_profession="+e.data.sims_parent_father_profession_code).then(function(t){e.specialization_dataF=t.data}),console.log(specialization_data)},e.getSpecialization_M=function(){r.get(i.apiUrl+"api/dashboard/getSpecialization_M?sims_mother_profession="+e.data.sims_parent_mother_profession_code).then(function(t){e.specialization_dataM=t.data}),console.log(specialization_data)},e.Submit=function(t){if(console.log("Saving Data"),console.log("Enroll Num",a.globals.currentStudent.sims_student_enroll_number),t){var s={sims_kyc_student_id:a.globals.currentStudent.sims_student_enroll_number,sims_kyc_transaction_no:a.globals.currentStudent.sims_student_enroll_number,sims_student_visa_number:t.sims_student_visa_number,sims_student_visa_issue_date:t.sims_student_visa_issue_date,sims_student_visa_expiry_date:t.sims_student_visa_expiry_date,sims_student_national_id_issue_date:t.sims_student_national_id_issue_date,sims_student_national_id_expiry_date:t.sims_student_national_id_expiry_date,sims_student_primary_contact_pref:t.sims_student_primary_contact_pref,sims_student_legal_custody:t.sims_student_legal_custody,sims_student_emergency_contact_name1:t.sims_student_emergency_contact_name1,sims_student_emergency_contact_name2:t.sims_student_emergency_contact_name2,sims_student_emergency_contact_number1:t.sims_student_emergency_contact_number1,sims_student_emergency_contact_number2:t.sims_student_emergency_contact_number2,sims_student_passport_number:t.sims_student_passport_number,sims_student_passport_issue_date:t.sims_student_passport_issue_date,sims_student_passport_expiry_date:t.sims_student_passport_expiry_date,sims_student_passport_issuing_authority:t.sims_student_passport_issuing_authority,sims_student_passport_issue_place:t.sims_student_passport_issue_place,student_status:t.status=!1};r.post(i.apiUrl+"api/dashboard/student_kyc_tranaction?opr=B&student_details="+JSON.stringify(s)).then(function(a){e.transaction_student=a.data,1==e.transaction_student?(t.status=!0,swal({title:"Alert",text:"KYC Updated Successfully",imageUrl:"assets/img/check.png"})):swal({title:"Alert",text:"Record Not Updated",imageUrl:"assets/img/notification-alert.png"})}),console.log(t)}},e.Submit_P=function(t){if(console.log("Saving Data"),console.log("Enroll Num",a.globals.currentStudent.sims_student_enroll_number),t){document.getElementById("parent_submit").disabled=!0;var s={sims_kyc_parent_id:a.globals.currentUser.username,sims_kyc_transaction_no:a.globals.currentUser.username,sims_parent_father_salutation_code:e.data.sims_parent_father_salutation_code,sims_parent_father_nationality2_code:e.data.sims_parent_father_nationality2_code,sims_parent_father_appartment_number:e.data.sims_parent_father_appartment_number,sims_parent_father_building_number:e.data.sims_parent_father_building_number,sims_parent_father_street_number:e.data.sims_parent_father_street_number,sims_parent_father_area_number:e.data.sims_parent_father_area_number,sims_parent_father_summary_address:e.data.sims_parent_father_summary_address,sims_parent_father_summary_address_local_language:e.data.sims_parent_father_summary_address_local_language,sims_parent_father_city:e.data.sims_parent_father_city,sims_parent_father_state:e.data.sims_parent_father_state,sims_parent_father_country_code:e.data.sims_parent_father_country_code,sims_parent_father_phone:e.data.sims_parent_father_phone,sims_parent_father_mobile:e.data.sims_parent_father_mobile,sims_parent_father_email:e.data.sims_parent_father_email,sims_parent_father_fax:e.data.sims_parent_father_fax,sims_parent_father_po_box:e.data.sims_parent_father_po_box,sims_parent_father_occupation:e.data.sims_parent_father_occupation,sims_parent_father_occupation_local_language:e.data.sims_parent_father_occupation_local_language,sims_parent_father_company:e.data.sims_parent_father_company,sims_parent_father_passport_number:e.data.sims_parent_father_passport_number,sims_parent_father_passport_issue_date:e.data.sims_parent_father_passport_issue_date,sims_parent_father_passport_expiry_date:e.data.sims_parent_father_passport_expiry_date,sims_parent_father_national_id:e.data.sims_parent_father_national_id,sims_parent_father_national_id_issue_date:e.data.sims_parent_father_national_id_issue_date,sims_parent_father_national_id__expiry_date:e.data.sims_parent_father_national_id__expiry_date,sims_parent_father_qualification:e.data.sims_parent_father_qualification,sims_parent_father_passing_year:e.data.sims_parent_father_passing_year,sims_parent_father_profession_code:e.data.sims_parent_father_profession_code,sims_parent_father_specialization_code:e.data.sims_parent_father_specialization_code,sims_parent_father_profession_value:e.data.sims_parent_father_profession_value,sims_parent_father_company_address:e.data.sims_parent_father_company_address,sims_parent_father_company_joining_year:e.data.sims_parent_father_company_joining_year,sims_parent_father_isalumni:e.data.sims_parent_father_isalumni,sims_parent_mother_salutation_code:e.data.sims_parent_mother_salutation_code,sims_parent_mother_family_name:e.data.sims_parent_mother_salutation_code,sims_parent_mother_nationality2_code:e.data.sims_parent_mother_nationality2_code,sims_parent_mother_appartment_number:e.data.sims_parent_mother_appartment_number,sims_parent_mother_building_number:e.data.sims_parent_mother_building_number,sims_parent_mother_street_number:e.data.sims_parent_mother_street_number,sims_parent_mother_area_number:e.data.sims_parent_mother_area_number,sims_parent_mother_last_name:e.data.sims_parent_mother_salutation_code,sims_parent_mother_summary_address:e.data.sims_parent_mother_summary_address,sims_parent_mother_city:e.data.sims_parent_mother_city,sims_parent_mother_state:e.data.sims_parent_mother_state,sims_parent_mother_country_code:e.data.sims_parent_mother_country_code,sims_parent_mother_phone:e.data.sims_parent_mother_phone,sims_parent_mother_mobile:e.data.sims_parent_mother_mobile,sims_parent_mother_email:e.data.sims_parent_mother_email,sims_parent_mother_fax:e.data.sims_parent_mother_fax,sims_parent_mother_po_box:e.data.sims_parent_mother_po_box,sims_parent_mother_occupation:e.data.sims_parent_mother_occupation,sims_parent_mother_occupation_local_language:e.data.sims_parent_mother_occupation_local_language,sims_parent_mother_company:e.data.sims_parent_mother_company,sims_parent_mother_passport_number:e.data.sims_parent_mother_passport_number,sims_parent_mother_passport_issue_date:e.data.sims_parent_mother_passport_issue_date,sims_parent_mother_passport_expiry_date:e.data.sims_parent_mother_passport_expiry_date,sims_parent_mother_national_id:e.data.sims_parent_mother_national_id,sims_parent_mother_national_id_issue_date:e.data.sims_parent_mother_national_id_issue_date,sims_parent_mother_national_id_expiry_date:e.data.sims_parent_mother_national_id_expiry_date,sims_parent_mother_qualification:e.data.sims_parent_mother_qualification,sims_parent_mother_passing_year:e.data.sims_parent_mother_passing_year,sims_parent_mother_profession_code:e.data.sims_parent_mother_profession_code,sims_parent_mother_specialization_code:e.data.sims_parent_mother_specialization_code,sims_parent_mother_profession_value:e.data.sims_parent_mother_profession_value,sims_parent_mother_company_address:e.data.sims_parent_mother_company_address,sims_parent_mother_company_joining_year:e.data.sims_parent_mother_company_joining_year,sims_parent_mother_isalumni:e.data.sims_parent_mother_isalumni};r.post(i.apiUrl+"api/dashboard/parent_kyc_tranaction?opr=C&parent_details="+JSON.stringify(s)).then(function(t){e.transaction_parent=t.data,1==e.transaction_parent?swal({title:"Alert",text:"KYC Updated Successfully",imageUrl:"assets/img/check.png"}):swal({title:"Alert",text:"Record Not Updated",imageUrl:"assets/img/notification-alert.png"})}),console.log(data)}}}])}(),function(){"use strict";angular.module("sims.module.student").controller("StudentControllerId",["$scope","$state","$rootScope","$timeout","gettextCatalog","$http","ENV",function(e,t,a,s,o,n,r,i){$(".preloader").fadeIn(),e.display=!1,e.btnEdit=!0,e.btnCancel=!1,e.btnSave=!1,e.btnEdit1=!0,e.btnCancel1=!1,e.btnSave1=!1,e.btnEdit2=!0,e.btnCancel2=!1,e.btnSave2=!1,e.btnEdit3=!0,e.btnCancel3=!1,e.btnSave3=!1,e.btnEdit4=!0,e.btnCancel4=!1,e.btnSave4=!1,e.qrcodeString="",e.size=200,e.correctionLevel="",e.typeNumber=0,e.inputMode="",e.image=!0,e.otherDetailsReadonly=!0,e.otherDetailshow=!1,e.Passportshow=!1,e.PassportReadonly=!0,e.Nationalshow=!1,e.NationalReadonly=!0,e.Departmentshow=!1,e.DepartmentReadonly=!0,e.filteredTodos=[],e.abqis=!1;window.localStorage.UploadUrl;n.get(r.apiUrl+"api/dashboard/getDashboardData").then(function(t){if(t.data.length>0){e.portal_data=t.data,console.log(e.portal_data);for(var a=0;e.portal_data.length>a;a++){if("StudentImgUpload"==e.portal_data[a].sims_field_name&&"N"==e.portal_data[a].sims_field_iseditable){$("#stimg").css({"pointer-events":"none"});break}$("#stimg").css({"pointer-events":""})}}}),e.div_hide=!1,e.show=!0,e.hide=!1,e.obj=[],e.obj2=[],e.obj3=[],e.obj4=[];n.defaults.headers.common.schoolId.toLowerCase();e.getstudentList=function(){e.studentName=a.globals.currentStudent.sims_student_passport_fullname,e.enroll_number=a.globals.currentStudent.sims_student_enroll_number,e.grade=a.globals.currentStudent.sims_grade_name_en,e.section=a.globals.currentStudent.sims_section_name_en,e.class=e.grade+"-"+e.section,e.url=a.globals.currentSchool.lic_website_url,console.log(a.globals.currentStudent.sims_student_img),e.studImg=a.globals.currentStudent.sims_student_img,e.sims_parent_father_phone=e.obj.sims_parent_father_phone,e.sims_academic_year_description=a.globals.currentStudent.sims_academic_year_description,e.schoolCode=n.defaults.headers.common.schoolId,e.apiurlpath=r.apiUrl,n.get(r.apiUrl+"api/student/getStudentInfo?student_enroll="+a.globals.currentStudent.enroll_number).then(function(t){e.display=!0,e.obj=t.data,console.log(e.obj),e.div_hide=!0,e.getimg(),e.getdata(),e.student_data(),window.localStorage.StudentInfo=JSON.stringify(e.obj)},function(t){0==t.status&&(e.obj=JSON.parse(window.localStorage.StudentInfo),e.getimg())}),e.student_data=function(){n.get(r.apiUrl+"api/student/getStudentInfo?student_enroll="+a.globals.currentStudent.enroll_number).then(function(t){e.display=!0,e.obj=t.data})},n.get(r.apiUrl+"api/student/getidcarddetails?enrollno="+a.globals.currentStudent.enroll_number).then(function(t){e.mainlead1=t.data,e.totalItems=e.mainlead1.length,0==e.mainlead1.length?e.tablehide=!1:e.tablehide=!0}),n.get(r.apiUrl+"api/student/getTransportRoute?student_enroll="+a.globals.currentStudent.enroll_number+"&sims_acad_yr="+a.globals.currentStudent.sims_acad_yr).then(function(t){e.transpp=[],e.display=!0,e.transpp=t.data,0==e.transpp.length||"I"==e.transpp[0].status_code?(e.transportt=!1,e.transportsch=!0):(e.transportt=!0,e.transportsch=!1,e.edt.sims_transport_route_short_name=e.transpp[0].sims_transport_route_short_name,e.transpp.status_code=e.transpp[0].status_code)}),n.get(r.apiUrl+"api/parent/getParentDetailm?parentCode="+a.globals.currentUser.username).then(function(t){e.display=!0,e.objrt=t.data})},e.clcik_check=function(){"1"==e.edt.sims_id_acknowlegde_flag?e.main_edt1=!0:e.main_edt1=!1},e.clcik_1=function(){"1"==e.edt.student_id_wrong?e.main_edt=!0:e.main_edt=!1},e.declationcheck=function(t){t?e.disable_btn=!1:(e.disable_btn=!0,swal({title:"",text:"Please indicate that you have read and agreed to the terms to proceed with the order."}))},e.save=function(){if(1==e.edt.sims_id_acknowlegde_flag||1==e.edt.student_id_wrong&&void 0!==e.edt.sims_student_id_remaks)var t={sims_cur_code:a.globals.currentStudent.sims_cur_code,enroll_number:a.globals.currentStudent.sims_student_enroll_number,sims_id_acknowlegde_flag:e.edt.sims_id_acknowlegde_flag,sims_student_id_remaks:e.edt.sims_student_id_remaks,sims_acad_yr:a.globals.currentStudent.sims_acad_yr};n.post(r.apiUrl+"api/student/CUDstudentdata",t).then(function(t){if(e.msg1=t.data,1==e.msg1){swal({title:"Alert",text:"Successfully Submitted",width:450,height:200}),e.getdata()}else swal({title:"Alert",text:"Please Confirm the details",width:450,height:200})})},e.getdata=function(){n.get(r.apiUrl+"api/student/getidcarddetails?enrollno="+a.globals.currentStudent.enroll_number).then(function(t){e.mainlead1=[],e.mainlead1=t.data,e.totalItems=e.mainlead1.length,"S"==e.mainlead1[0].sims_id_status?e.disbled=!0:e.disbled=!1,e.mainlead1.length,e.tablehide=!1})},n.get(r.apiUrl+"api/parent/getParentDetail?parentCode="+a.globals.currentUser.username).then(function(t){e.display=!0,e.objrt=t.data}),n.get(r.apiUrl+"api/student/getAcademicyearID?student_enroll="+a.globals.currentStudent.enroll_number).then(function(t){e.transp=[],e.display=!0,e.transp=t.data,e.edt.sims_academic_year=e.transp[0].sims_academic_year,console.log("acadyear",e.edt.sims_academic_year)}),n.get(r.apiUrl+"api/reportcardnew/getAllAcademicYears?cur_code="+a.globals.currentStudent.sims_cur_code).then(function(t){e.grid=!0,e.obj=t.data,console.log(e.obj),e.edt={},e.edt.academic_year=e.obj[0].academic_year,e.objAcademic=t.data}),e.updateAboutMe=function(){a.globals.currentStudent.enroll_number;var t={sims_student_birth_country_code:e.obj.sims_student_birth_country_code,sims_student_nationality_code:e.obj.sims_nationality_code,sims_student_gender:e.obj.sims_appl_parameter_gender,sims_student_dob:e.obj.sims_student_dob,sims_student_enroll_number:a.globals.currentStudent.enroll_number,sims_religion_code:e.obj.sims_religion_code};n.post(r.apiUrl+"api/student/updateStudentDetails?opr=AM&student_details="+JSON.stringify(t)).then(function(t){e.abt=t.data,e.abt?(e.getstudentList(),swal({title:"Updated",text:"Update Successfully",imageUrl:"assets/img/check.png"})):(e.getstudentList(),swal({title:"Alert",text:"Record Not Updated",imageUrl:"assets/img/notification-alert.png"}))})},n.get(r.apiUrl+"api/common/getDataParameter?sims_appl_code=Common&sims_appl_form_field=qrcodeString").then(function(t){e.qrdata=t.data,console.log(e.qrdata),e.qrdata.length>0&&"Y"==e.qrdata[0].sims_appl_form_field_value4?e.qrcodeString=e.qrdata[0].sims_appl_form_field_value1:e.qrcodeString="Roll Number -"+a.globals.currentStudent.sims_student_enroll_number}),e.getimg=function(){if(e.prev_img="",e.uploading_path="",!angular.isUndefined(a.pp_url_lst)&&a.pp_url_lst.length>0)for(var t=0;t0&&("N"==t.data[0].sims_appl_form_field_value2?e.saveDisable=!0:e.saveDisable=!1)}),e.getAcademicyear=function(){n.post(r.apiUrl+"api/transport/TransportInstruction",{opr:"AC"}).then(function(t){if(e.academics=t.data.table,!jQuery.isEmptyObject(e.academics))for(let t=0;e.academics.length>t;t++)e.academics[t].sims_academic_year==a.globals.currentStudent.sims_acad_yr&&(e.start_academicyear=e.academics[t].sims_academic_year_start_date,e.end_academicyear=e.academics[t].sims_academic_year_end_date,e.setAcademicDatetoDatepicker())})},e.setAcademicDatetoDatepicker=function(){$("#effective_from_date").kendoDatePicker({value:"",format:"dd-MM-yyyy",defaultOption:null,min:new Date(e.start_academicyear),max:new Date(e.end_academicyear),month:{empty:'#= data.value #'}}),$("#effective_upto_date").kendoDatePicker({value:"",format:"dd-MM-yyyy",defaultOption:null,min:new Date(e.start_academicyear),max:new Date(e.end_academicyear),month:{empty:'#= data.value #'}})},"brs"==n.defaults.headers.common.schoolId?(e.brspies=!0,e.transportcode="1"):"pies"==n.defaults.headers.common.schoolId?(e.brspies=!0,e.transportcode="6"):e.brspies=!1,"asis"!=n.defaults.headers.common.schoolId&&"abqis"!=n.defaults.headers.common.schoolId||(e.saveDisable=!0),e.routeChange=function(t){n.get(r.apiUrl+"api/transport/GetAllStudRouteDirection?route_code="+t+"&academic_year=2016").then(function(t){e.RouteDirection=t.data}),n.get(r.apiUrl+"api/transport/GetAllStudRouteStop?route_code="+t+"&academic_year=2016").then(function(t){e.RouteStop=t.data})},e.editstud=function(t){e.obj={},e.savedata=!1,e.readonly=!1,e.y=!1,e.n=!0,e.obj=t,e.routeChange(e.obj.sims_transport_route_code),e.obj.sims_transport_route_direction=t.sims_transport_route_direction},e.trackClick=function(e){window.open(e,"_new")},e.getTransportDetails=function(t){e.studentName=a.globals.currentStudent.sims_student_passport_fullname,e.weburl=a.globals.currentSchool.lic_website_url,e.trackUrl="http://www.mysafetravel.net/l.php?s="+e.transportcode+"&e="+a.globals.currentStudent.enroll_number,n.get(r.apiUrl+"api/transport/GetAllStudRouteCode").then(function(t){e.Route=t.data}),n.get(r.apiUrl+"api/transport/getTransportDetailsNew?enroll_number="+a.globals.currentStudent.enroll_number).then(function(t){e.objold=t.data,e.objold?e.show_no_record=!1:e.show_no_record=!0}),n.get(r.apiUrl+"api/transport/getTransportDetails?enroll_number="+a.globals.currentStudent.enroll_number).then(function(t){e.obj1=t.data;for(let a=0;a0){let t=a.results[0].formatted_address,s=t.split(",");_=s.length,i=s[_-1],m=s[_-2],l=s[_-3],d=s[_-4];let o=s[_-5],n=m.split(" "),r=n[n.length-1],m=m.replace(r," ");e.sims_transport_share_location=o+", "+d+", "+l+", "+m+", "+i+", "+r+"."}else document.getElementById("message").innerHTML="No location available for provided details."},t.send()}()}navigator.geolocation&&navigator.geolocation.getCurrentPosition(h),e.obj=null}])}(),function(){"use strict";angular.module("sims.module.transport").controller("TransportRequestCont",["$scope","$state","$rootScope","$timeout","gettextCatalog","$http","ENV",function(e,t,a,s,o,n,r){e.display=!1,e.readonly=!1,e.y=!0,e.n=!1,e.savedata=!0,e.showMessage=!1,e.saveDisable=!1,e.disable_btn=!0,e.applytransport=!1,e.transporttable=!1,e.firstPage=!0,e.obj1=[],e.changdisable_btn=!1,e.canceltransport=!1,e.savebtn=!0,e.feedetail=!0,e.showdata=!0,e.canceldata=!0,e.temp={};n.post(r.apiUrl+"api/transport/TransportInstruction",{opr:"DE"}).then(function(t){e.transportTermUrl=t.data.table,e.termscondition=e.transportTermUrl[0].termUrl}),n.get(r.apiUrl+"api/common/getTransportFlag").then(function(t){t.data.length>0&&("N"==t.data[0].sims_appl_form_field_value2?e.saveDisable=!0:e.saveDisable=!1)});var i={opr:"IN"};n.post(r.apiUrl+"api/transport/TransportInstruction",i).then(function(t){e.instructions=t.data.table});i={opr:"TD"};n.post(r.apiUrl+"api/transport/TransportInstruction",i).then(function(t){e.decimalcur=t.data.table,e.curdecimal=e.decimalcur[0].decimal}),n.get(r.apiUrl+"api/transport/getBusCode").then(function(t){e.BusCode_Data=t.data}),e.declationcheck=function(t){if(t){var a=new Date;e.undertakingdate=moment(a).format("YYYY-MM-DD HH:MM:SS"),e.disable_btn=!1}else e.undertakingdate="",e.disable_btn=!0,swal({title:"",text:"Please indicate that you have read and agreed to the terms to proceed with the request."})},e.transportcode="6",e.applyTransport=function(){e.getAcademicYear(),e.feedetail=!0,e.temp={};var t={opr:"ED",sims_transport_enroll_number:a.globals.currentStudent.enroll_number};n.post(r.apiUrl+"api/transport/TransportInstruction",t).then(function(t){if(e.applied=t.data.table,e.appliedflag=e.applied[0].alreadyapplied,"true"==e.appliedflag)swal({title:e.applied[0].titlemsg,text:e.applied[0].textmsg,type:"warning",showCancelButton:!0,confirmButtonColor:"#DD6B55",confirmButtonText:"Yes",cancelButtonText:"No",closeOnConfirm:!1,closeOnCancel:!1},function(t){t?(s(function(){e.changebtnClick()},300),swal.close()):swal.close()});else{var a=new Date;e.sims_transport_effective_from=moment(a).format("DD-MM-YYYY"),e.applytransport=!0,e.transporttable=!1,e.firstPage=!1,e.canceltransport=!1,e.savebtn=!0}})},e.check_from_date=function(){var t=$("#effective_from_date").data("kendoDatePicker").value();t.setMonth(t.getMonth()),$("#effective_upto_date").kendoDatePicker({format:"dd-MM-yyyy",min:new Date(t),max:new Date(e.yearEndDate),month:{empty:'#= data.value #'}})},e.hidefeedetails=function(){e.feedetail=!0},e.feedetails=function(){if(void 0!=e.temp.sims_transport_academic_year)if(void 0!=e.temp.sims_transport_route_code){var t=moment(e.sims_transport_effective_from,"DD-MM-YYYY").format("YYYY-MM-DD"),s=moment(e.sims_transport_effective_upto,"DD-MM-YYYY").format("YYYY-MM-DD"),o={opr:"FG",sims_transport_academic_year:e.temp.sims_transport_academic_year,sims_transport_route_code:e.temp.sims_transport_route_code,sims_transport_enroll_number:a.globals.currentStudent.enroll_number,sims_transport_effective_from:t,sims_transort_effective_upto:s};n.post(r.apiUrl+"api/transport/TransportInstruction",o).then(function(t){e.transportfee=t.data.table,e.feedetail=!1})}else swal("Select route name to see fee details");else swal("Select academic year to see fee details")},e.changebtnClick=function(){e.feedetail=!0,e.transporttable=!0,e.applytransport=!1,e.firstPage=!1,e.canceltransport=!1,e.savebtn=!0,e.showdata=!0,e.getAcademicYear()},e.cancelTransport=function(){e.getAcademicYear(),e.canceldata=!0,e.transporttable=!1,e.applytransport=!1,e.firstPage=!1,e.canceltransport=!0,e.feedetail=!0},e.academicChange=function(){for(var t=0;e.academics.length>t;t++)e.academics[t].sims_academic_year===e.temp.sims_transport_academic_year&&(e.sims_transport_effective_upto=moment(e.academics[t].sims_academic_year_end_date).format("DD-MM-YYYY"),e.yearEndDate=new Date(e.academics[t].sims_academic_year_end_date),$("#effective_upto_date").kendoDatePicker({format:"dd-MM-yyyy",max:new Date(e.yearEndDate),month:{empty:'#= data.value #'}}),e.getroutebybuscode())},e.routeChange=function(t){n.get(r.apiUrl+"api/transport/GetAllStudRouteDirection?route_code="+t+"&academic_year=2016").then(function(t){e.RouteDirection=t.data}),n.get(r.apiUrl+"api/transport/GetAllStudRouteStop?route_code="+t+"&academic_year=2016").then(function(t){e.RouteStop=t.data})},e.editstud=function(t){e.getAcademicYear(),e.getroutebybuscode(),e.savedata=!1,e.savebtn=!1,e.temp.sims_transport_academic_year=t.sims_transport_academic_year;for(var a=0;e.RouteNameByBusCode_Data.length>a;a++)if(e.RouteNameByBusCode_Data[a].sims_transport_route_code===t.sims_transport_route_code){e.temp.sims_transport_route_code=e.RouteNameByBusCode_Data[a].sims_transport_route_code;break}e.temp.sims_transport_pickup_stop_code=t.sims_transport_pickup_stop_code,e.temp.sims_transport_academic_year=t.sims_transport_academic_year,e.sims_transport_effective_from=t.sims_transport_effective_from,e.sims_transport_effective_upto=t.sims_transport_effective_upto,e.temp.sims_transport_landmark=t.sims_transport_landmark,e.temp.sims_transport_route_student_code=t.sims_transport_route_student_code,e.applytransport=!0,e.transporttable=!1,e.firstPage=!1,e.canceltransport=!1},e.chaneRouteRequest=function(t){var a={opr:"DD",sims_transport_enroll_number:t.sims_transport_enroll_number};n.post(r.apiUrl+"api/transport/TransportInstruction",a).then(function(a){e.change_Date=moment(moment(e.sysdate[0].systemDate,"DD-MM-YYYY").format("YYYY-MM-DD")).add(1,"M").format("DD-MM-YYYY"),e.changerouteflag=a.data.table,$("#change_effective_from_date").kendoDatePicker({value:new Date,format:"dd-MM-yyyy",min:new Date(moment(e.change_Date,"DD-MM-YYYY").format("YYYY-MM-DD")),month:{empty:'#= data.value #'}}),swal(e.changerouteflag[0].mesg),e.showdata=!1,e.getAcademicYear(),e.savedata=!1,e.temp.sims_transport_route_code=t.sims_transport_route_code,e.temp.sims_transport_pickup_stop_code=t.sims_transport_pickup_stop_code,e.temp.sims_transport_academic_year=t.sims_transport_academic_year,e.sims_transport_effective_from=e.change_Date,e.sims_transport_effective_upto=t.sims_transport_effective_upto,e.temp.sims_transport_landmark=t.sims_transport_landmark,e.temp.sims_transport_route_student_code=t.sims_transport_route_student_code,e.applytransport=!1,e.transporttable=!0,e.firstPage=!1,e.canceltransport=!1})},e.trackClick=function(e){window.open(e,"_new")},e.getTransportDetails=function(t){jQuery.isEmptyObject(a.globals.currentStudent)||(e.studentClass=a.globals.currentStudent.sims_grade_name_en+"("+a.globals.currentStudent.sims_section_name_en+")",e.studentfullName=a.globals.currentStudent.sims_student_passport_fullname_new+" "+e.studentClass,e.studentEnroll=a.globals.currentStudent.enroll_number),e.studentName=a.globals.currentStudent.sims_student_passport_fullname,e.weburl=a.globals.currentSchool.lic_website_url,e.trackUrl="http://www.mysafetravel.net/l.php?s="+e.transportcode+"&e="+a.globals.currentStudent.enroll_number,n.get(r.apiUrl+"api/transport/GetAllStudRouteCode").then(function(t){e.Route=t.data}),n.get(r.apiUrl+"api/transport/getTransportDetailsNew?enroll_number="+a.globals.currentStudent.enroll_number).then(function(t){e.objold=t.data,e.objold?e.show_no_record=!1:e.show_no_record=!0});var s={opr:"S",sims_transport_enroll_number:a.globals.currentStudent.enroll_number};n.post(r.apiUrl+"api/transport/TransportInstruction",s).then(function(t){e.obj1=t.data.table;for(var a=0;a#= data.value #'}})}),e.getroutebybuscode=function(){var t={opr:"M",sims_transport_academic_year:e.temp.sims_transport_academic_year};n.post(r.apiUrl+"api/transport/TransportInstruction",t).then(function(t){e.RouteNameByBusCode_Data=t.data.table,e.getStopbyRoute()})},e.getStopbyRoute=function(){n.get(r.apiUrl+"api/transport/getDirectionByRouteCodeName?route_code="+e.temp.sims_transport_route_code+"&aca_year="+e.temp.sims_transport_academic_year).then(function(t){e.DirectionName=t.data}),n.get(r.apiUrl+"api/transport/getStopByRoute?route_code="+e.temp.sims_transport_route_code+"&aca_year="+e.temp.sims_transport_academic_year).then(function(t){e.StopByRoute_Data=t.data})},e.cancel=function(){e.applytransport=!1,e.firstPage=!0,e.canceltransport=!1,e.showMessage=!1,e.transporttable=!1,e.savebtn=!0,e.showdata=!0},e.close=function(){e.showMessage=!1,e.message=""},e.save=function(){e.pendingFlag=!1;for(var t=0;e.obj1.length>t;t++)if("P"==e.obj1[t].sims_transport_route_student_status){e.pendingFlag=!0;break}if(e.pendingFlag)swal({title:"",text:"You already have a pending transport request.You may edit the same.",type:"",showCancelButton:!1,confirmButtonColor:"#DD6B55",confirmButtonText:"Ok",closeOnConfirm:!0},function(e){swal.close()});else{for(var s=0;e.RouteNameByBusCode_Data.length>s;s++)if(e.RouteNameByBusCode_Data[s].sims_transport_route_code===e.temp.sims_transport_route_code){e.routeName=e.RouteNameByBusCode_Data[s].routename,e.routedirection=e.RouteNameByBusCode_Data[s].sims_transport_route_direction;break}var o=moment(e.sims_transport_effective_from,"DD-MM-YYYY").format("YYYY-MM-DD"),i=moment(e.sims_transport_effective_upto,"DD-MM-YYYY").format("YYYY-MM-DD");if(void 0!=e.routeName&&""!=e.routeName)if(void 0!=e.temp.sims_transport_pickup_stop_code&&""!=e.temp.sims_transport_pickup_stop_code){e.datasend=[];var l={opr:"I",sims_transport_share_location:e.sims_transport_share_location,sims_transport_route_student_code:e.temp.sims_transport_route_student_code,sims_transport_enroll_number:a.globals.currentStudent.enroll_number,sims_transport_academic_year:e.temp.sims_transport_academic_year,sims_transport_route_code:e.routeName,sims_transport_route_direction:e.routedirection,sims_transport_effective_from:o,sims_transport_effective_upto:i,sims_transport_pickup_stop_code:e.temp.sims_transport_pickup_stop_code,sims_transport_drop_stop_code:e.temp.sims_transport_pickup_stop_code,sims_transport_landmark:e.temp.sims_transport_landmark,sims_transport_route_student_request_by:a.globals.currentUser.username,sims_transport_route_student_status:"P"};e.datasend.push(l),e.datasend.length>0&&n.post(r.apiUrl+"api/transport/Insert_updateTransportData",e.datasend).then(function(t){e.othr=t.data,t.data?(e.fb_subject=null,e.fb_msg=null,e.showMessage=!0,e.messageClass="alert-success",e.message="School transport request submitted successfully!!",e.getTransportDetails()):(e.showMessage=!0,e.messageClass="alert-error",e.message="Unable to submit transport request!!")})}else swal("Select pick-up/drop stop");else swal("Select route name")}},e.update=function(){for(var t=0;e.RouteNameByBusCode_Data.length>t;t++)if(e.RouteNameByBusCode_Data[t].sims_transport_route_code===e.temp.sims_transport_route_code){e.routeName=e.RouteNameByBusCode_Data[t].routename,e.routedirection=e.RouteNameByBusCode_Data[t].sims_transport_route_direction;break}var s=moment(e.sims_transport_effective_from,"DD-MM-YYYY").format("YYYY-MM-DD"),o=moment(e.sims_transport_effective_upto,"DD-MM-YYYY").format("YYYY-MM-DD");if(void 0!=e.routeName&&""!=e.routeName)if(void 0!=e.temp.sims_transport_pickup_stop_code&&""!=e.temp.sims_transport_pickup_stop_code){e.datasend=[];var i={opr:"UU",sims_transport_route_student_code:e.temp.sims_transport_route_student_code,sims_transport_enroll_number:a.globals.currentStudent.enroll_number,sims_transport_academic_year:e.temp.sims_transport_academic_year,sims_transport_route_code:e.routeName,sims_transport_route_direction:e.routedirection,sims_transport_effective_from:s,sims_transport_effective_upto:o,sims_transport_pickup_stop_code:e.temp.sims_transport_pickup_stop_code,sims_transport_drop_stop_code:e.temp.sims_transport_pickup_stop_code,sims_transport_landmark:e.temp.sims_transport_landmark,sims_transport_route_student_request_by:a.globals.currentUser.username,sims_transport_route_student_status:"P"};e.datasend.push(i),n.post(r.apiUrl+"api/transport/Insert_updateTransportData",e.datasend).then(function(t){e.othr=t.data,t.data?(e.fb_subject=null,e.fb_msg=null,e.showMessage=!0,e.messageClass="alert-success",e.message="Updated Sucessfully",e.getTransportDetails()):(e.showMessage=!0,e.messageClass="alert-error",e.message="Not Updated")})}else swal("Select pick-up/drop stop");else swal("Select route name")},e.applyforcancel=function(t){var a={opr:"CD",sims_transport_enroll_number:t.sims_transport_enroll_number};n.post(r.apiUrl+"api/transport/TransportInstruction",a).then(function(a){e.changerouteflag=a.data.table,e.changerouteflag[0].canceltransport,e.blockCanel=e.changerouteflag[0].cancelblock,swal(e.changerouteflag[0].cancelmesg),"true"==e.blockCanel&&(e.canceldata=!1,e.appliedDate=t.sims_transport_effective_from,e.temp.sims_transport_route_code=t.sims_transport_route_code,e.temp.sims_transport_pickup_stop_code=t.sims_transport_pickup_stop_code,e.temp.sims_transport_academic_year=t.sims_transport_academic_year,e.sims_transport_effective_from=t.sims_transport_effective_from,e.sims_transport_effective_upto=t.sims_transport_effective_upto,e.temp.sims_transport_landmark=t.sims_transport_landmark,e.temp.sims_transport_route_student_code=t.sims_transport_route_student_code)})},e.sendChangeRequest=function(){e.changerequestFlag=!1;for(var t=0;e.obj1.length>t;t++)if("R"==e.obj1[t].sims_transport_route_student_status){e.changerequestFlag=!0;break}if(e.changerequestFlag)swal({title:"",text:"You already have a pending change transport request.",type:"",showCancelButton:!1,confirmButtonColor:"#DD6B55",confirmButtonText:"Ok",closeOnConfirm:!0},function(e){swal.close()});else{for(var s=0;e.RouteNameByBusCode_Data.length>s;s++)if(e.RouteNameByBusCode_Data[s].sims_transport_route_code===e.temp.sims_transport_route_code){e.routeName=e.RouteNameByBusCode_Data[s].routename,e.routedirection=e.RouteNameByBusCode_Data[s].sims_transport_route_direction;break}var o=moment(e.sims_transport_effective_from,"DD-MM-YYYY").format("YYYY-MM-DD"),i=moment(e.sims_transport_effective_upto,"DD-MM-YYYY").format("YYYY-MM-DD");e.datasend=[];var l={opr:"CR",sims_transport_share_location:e.sims_transport_share_location,sims_transport_route_student_code:e.temp.sims_transport_route_student_code,sims_transport_enroll_number:a.globals.currentStudent.enroll_number,sims_transport_academic_year:e.temp.sims_transport_academic_year,sims_transport_route_code:e.routeName,sims_transport_route_direction:e.routedirection,sims_transport_effective_from:o,sims_transport_effective_upto:i,sims_transport_pickup_stop_code:e.temp.sims_transport_pickup_stop_code,sims_transport_drop_stop_code:e.temp.sims_transport_pickup_stop_code,sims_transport_landmark:e.temp.sims_transport_landmark,sims_transport_route_student_request_by:a.globals.currentUser.username,sims_transport_route_student_status:"P"};e.datasend.push(l),e.datasend.length>0&&n.post(r.apiUrl+"api/transport/Insert_updateTransportData",e.datasend).then(function(t){e.othr=t.data,t.data?(e.fb_subject=null,e.fb_msg=null,e.showMessage=!0,e.messageClass="alert-success",e.message="Record Inserted Sucessfully",e.getTransportDetails()):(e.showMessage=!0,e.messageClass="alert-error",e.message="Record Not Inserted")})}},e.cancel_from_date=function(e){},e.cancelTrans=function(){var t=moment(e.sims_transport_cancel_effective_from,"DD-MM-YYYY").format("YYYY-MM-DD");if(void 0!=e.temp.reason_cancellation){e.datasend=[];var s={opr:"CC",sims_transport_route_student_code:e.temp.sims_transport_route_student_code,sims_transport_enroll_number:a.globals.currentStudent.enroll_number,sims_transport_academic_year:e.temp.sims_transport_academic_year,sims_transport_route_code:e.temp.sims_transport_route_code,sims_transport_pickup_stop_code:e.temp.sims_transport_pickup_stop_code,sims_transport_drop_stop_code:e.temp.sims_transport_pickup_stop_code,sims_transport_route_student_status:"C",sims_transport_route_cancel_reason:e.temp.reason_cancellation,sims_transport_effective_from:t};e.datasend.push(s),n.post(r.apiUrl+"api/transport/Insert_updateTransportData",e.datasend).then(function(t){e.othr=t.data,t.data?(e.fb_subject=null,e.fb_msg=null,e.showMessage=!0,e.messageClass="alert-success",e.message="Request sent for cancellation",e.getTransportDetails()):(e.showMessage=!0,e.messageClass="alert-error",e.message="Failed to send request for cancellation")})}else swal("Enter reason for cancellation")},e.printUnderTaking=function(t){var o;if(r.AWS.includes(n.defaults.headers.common.schoolId)&&"reports-","tiadxb"==n.defaults.headers.common.schoolId||"tiashj"==n.defaults.headers.common.schoolId||"staging1"==n.defaults.headers.common.schoolId||"staging2"==n.defaults.headers.common.schoolId||"staging3"==n.defaults.headers.common.schoolId||"staging4"==n.defaults.headers.common.schoolId||"aisdxb"==n.defaults.headers.common.schoolId||"tosdxb"==n.defaults.headers.common.schoolId)var i="https://reports.leamseducation.com/"+n.defaults.headers.common.schoolId.toLowerCase()+"/api/reports/";else if("ihsonlineom"==n.defaults.headers.common.schoolId||"mstagingom"==n.defaults.headers.common.schoolId||"ihsonlineag"==n.defaults.headers.common.schoolId||"mstagingag"==n.defaults.headers.common.schoolId||"iisonlinedso"==n.defaults.headers.common.schoolId||"mstagingdso"==n.defaults.headers.common.schoolId||"portalag"==n.defaults.headers.common.schoolId||"portalom"==n.defaults.headers.common.schoolId||"portaldso"==n.defaults.headers.common.schoolId){"portalom"==n.defaults.headers.common.schoolId.toLowerCase()&&(e.schoolcode="ihsonlineom"),"portaldso"==n.defaults.headers.common.schoolId.toLowerCase()&&(e.schoolcode="iisonlinedso"),"portalag"==n.defaults.headers.common.schoolId.toLowerCase()&&(e.schoolcode="ihsonlineag");i="https://"+e.schoolcode+".ihsdubai.org/report/api/reports/"}else i=r.newReportUrl+n.defaults.headers.common.schoolId+"/api/reports/";o={acad_year:t.sims_transport_academic_year,enroll:a.globals.currentStudent.enroll_number,route_code:t.sims_transport_route_code},$("#reportViewer1").telerik_ReportViewer({serviceUrl:i,viewMode:telerikReportViewer.ViewModes.INTERACTIVE,scaleMode:telerikReportViewer.ScaleModes.SPECIFIC,scale:1,ready:function(){}}),$("#reportViewer1").data("telerik_ReportViewer").reportSource({report:"SimsReports.Fleet.FLER42IHS1,SimsReports",parameters:o}),setTimeout(function(){$("#reportViewer1").data("telerik_ReportViewer").commands.export.exec("pdf")},1e3),setInterval(function(){$(".trv-nav li").css({display:"block"}),$(".trv-nav li:nth-child(3)").css({display:"none"}),$(".trv-nav li:nth-child(4)").css({display:"none"}),$(".trv-side-menu li:eq(3)").css({display:"none"}),$(".trv-side-menu li:eq(4)").css({display:"none"}),$(".trv-report-viewer input[type=number]").css({"min-height":"0px","margin-top":"-5px"})},1e3),s(function(){$(".trv-nav li").css({display:"block"}),$(".trv-nav li:nth-child(3)").css({display:"none"}),$(".trv-nav li:nth-child(4)").css({display:"none"}),$(".trv-side-menu li:eq(3)").css({display:"none"}),$(".trv-side-menu li:eq(4)").css({display:"none"}),$(".trv-report-viewer input[type=number]").css({"min-height":"0px","margin-top":"-5px"})},100)},e.$on("student_change",function(t,a){e.getTransportDetails()}),$('*[data-datepicker="true"] input[type="text"]').datepicker({todayBtn:!0,orientation:"top left",autoclose:!0,todayHighlight:!0}),$(document).on("touch click",'*[data-datepicker="true"] .add-on',function(e){$('input[type="text"]',$(this).parent()).focus()}),a.globals.studentsLoaded&&e.getTransportDetails();var l,d,m,c,_,u,p=document.getElementById("latitude"),h=document.getElementById("longitude");function g(t){p.value=t.coords.latitude,h.value=t.coords.longitude,function(){c=document.getElementById("latitude").value,_=document.getElementById("longitude").value;var t=function(e,t){var a=new XMLHttpRequest;"withCredentials"in a?a.open(e,t,!0):"undefined"!=typeof XDomainRequest?(a=new XDomainRequest).open(e,t):a=null;return a}("POST","http://maps.googleapis.com/maps/api/geocode/json?latlng="+c+","+_+"&sensor=true");t.onload=function(){var a=JSON.parse(t.responseText);if(a.results.length>0){var s=a.results[0].formatted_address,o=s.split(",");u=o.length,l=o[u-1],c=o[u-2],d=o[u-3],m=o[u-4];var n=o[u-5],r=c.split(" "),i=r[r.length-1],c=c.replace(i," ");e.sims_transport_share_location=n+", "+m+", "+d+", "+c+", "+l+", "+i+"."}else document.getElementById("message").innerHTML="No location available for provided details."},t.send()}()}navigator.geolocation&&navigator.geolocation.getCurrentPosition(g),e.obj=null}])}();