!function(){"use strict";var e=angular.module("sims.module.Fee");e.run(["$rootScope","$templateCache",function(e,t){e.$on("$viewContentLoaded",function(){t.removeAll()})}]),e.controller("StudentFeeDetailsNewCont",["$scope","$state","$rootScope","$timeout","gettextCatalog","$http","ENV","AuthenticationService",function(o,e,t,a,s,n,r,i){function d(e,t){for(var a="",s=0;s_)&&(_=c.length)}n["!cols"][i]={wch:_}}a=XLSX.utils.book_new(),o=(XLSX.utils.book_append_sheet(a,n,"Sheet1"),XLSX.write(a,{bookType:"xlsx",type:"binary"})),e=new Blob([function(e){for(var t=new ArrayBuffer(e.length),a=new Uint8Array(t),s=0;so.to_date1)&&swal({title:"Please Select Date from selected Financial year",width:380,height:100})},o.vatProfile=function(){r.get(i.apiUrl+"api/VATFiling/getVATProfile?comp_code="+o.temp.comp_code).then(function(e){o.vatProfileCode=e.data,setTimeout(function(){$("#vat_type").change(function(){console.log($(this).val())}).multipleSelect({width:"100%"})},1e3)})},r.get(i.apiUrl+"api/VATRegister/getcolumn_selection?").then(function(e){o.cloumn_lst=e.data,o.flg1=!0,o.flg2=!0,o.flg3=!0,o.flg4=!0,o.flg5=!0,o.flg6=!0,o.flg7=!0,o.flg8=!0,o.flg9=!0,o.flg10=!0,o.flg11=!0,o.flg12=!0,o.flg13=!0,o.flg14=!1,o.flg15=!1,o.flg16=!1,o.flg17=!1,o.flg18=!1,o.flg19=!1,o.flg20=!1,o.flg21=!1,o.flg22=!1,o.flg23=!1,o.flg24=!1,o.flg25=!1,o.flg26=!1,o.flg27=!1,o.flg28=!1,o.flg29=!1,o.flg30=!1,setTimeout(function(){$("#idpc").change(function(){0o.edt.to_date&&(swal({title:"Please Select future Date",width:380,height:100}),o.edt.to_date="")},t(function(){$("#fixTable").tableHeadFixer({top:1})},100),t(function(){$("#fixTable1").tableHeadFixer({top:1})},100),o.Show=function(){o.total_vat_amount="0",o.total_trans_amount="0",null!=o.edt.search&&""!=o.edt.search||(o.edt.search=""),o.table1=!0,o.prdocdata=[],o.filteredTodos=[],o.pagesize="All",o.currentPage=1,o.numPerPage=20,o.busy=!0,o.tax_amount_dr_total=0,o.tax_amount_cr_total=0,o.closing_dr_total=0,o.closing_cr_total=0,o.vd_dr_total=0,o.vd_cr_total=0,r.get(i.apiUrl+"api/VATFiling/getAllVATFillingDataNew?from_date="+o.temp.from_date+"&to_date="+o.temp.to_date+"&search="+o.edt.search+"&comp_code="+o.temp.comp_code+"&financial_year="+o.edt.sims_financial_year+"&vat_profile="+o.edt.vat_code).then(function(e){if(o.table1=!0,o.vat_data=e.data,0=o.report_data[t].two?(o.report_data[t].two_line_total=o.report_data[t].two,o.report_data[t].nFive-o.report_data[t].two>o.report_data[t].three?(o.report_data[t].three_line_total=o.report_data[t].three,o.report_data[t].nFive-o.report_data[t].two-o.report_data[t].three>o.report_data[t].four?(o.report_data[t].four_line_total=o.report_data[t].four,o.report_data[t].nFive-o.report_data[t].two-o.report_data[t].three-o.report_data[t].four>o.report_data[t].five?(o.report_data[t].five_line_total=o.report_data[t].five,o.report_data[t].nFive-o.report_data[t].two-o.report_data[t].three-o.report_data[t].four-o.report_data[t].five>o.report_data[t].six?(o.report_data[t].six_line_total=o.report_data[t].six,0"+e+''+t+""),s.close(),a.focus(),o.getdetailNew()),o.getdetailNew()})},o.reset_data=function(){o.filteredTodos=[],o.temp.sims_grade_code="",o.temp.sims_section_code="",o.sims_appl_parameter=!1,o.grade="",o.section="",o.total_length="",o.status="",o.searchText="",o.cur="",o.acad="",o.temp.one_total=0,o.temp.two_total=0,o.temp.three_total=0,o.temp.four_total=0,o.temp.nFive_total=0,o.temp.grand_total=0,o.busy=!1,o.pager=!1;try{$("#cmb_grade_code").multipleSelect("uncheckAll")}catch(e){}try{$("#cmb_section_code").multipleSelect("uncheckAll")}catch(e){}try{$("#cmb_status").multipleSelect("checkAll")}catch(e){}},o.sortBy=function(e){o.reverse=o.propertyName===e&&!o.reverse,o.propertyName=e},o.size=function(e){"All"==e?(o.currentPage=1,o.filteredTodos=o.report_data,o.pager=!1):(o.pager=!0,o.pagesize=e,o.currentPage=1,o.numPerPage=e,o.makeTodos())},o.index=function(e){o.pageindex=e,o.currentPage=e,o.makeTodos(),main.checked=!1,o.CheckAllChecked()},o.filteredTodos=[],o.currentPage=1,o.numPerPage=50,o.maxSize=5,o.makeTodos=function(){var e=parseInt(o.totalItems%o.numPerPage),e=(o.pagersize="0"==e?parseInt(o.totalItems/o.numPerPage):parseInt(o.totalItems/o.numPerPage)+1,(o.currentPage-1)*o.numPerPage),t=parseInt(e)+parseInt(o.numPerPage);o.filteredTodos=o.todos.slice(e,t)}}])}(),function(){"use strict";var e=angular.module("sims.module.Finance");e.run(["$rootScope","$templateCache",function(e,t){e.$on("$viewContentLoaded",function(){t.removeAll()})}]),e.controller("SLView_IHSCont",["$scope","$state","$rootScope","$timeout","gettextCatalog","$http","ENV","AuthenticationService",function(n,t,e,a,s,r,i,o){n.pagesize="5",n.edt="",n.operation=!0,n.table1=!1,n.addbtn=!0,n.print_pdf=!1,n.btnDelete=!1,n.users=[];n.chkcost_Ac=!1,n.data=[],n.Bankdetails="",n.Bankdetails=[],n.chkcost=!1,n.cost_combo=!1,n.crAmount=0,n.TotalAmount=0,n.drAmount=0,n.edt5=[],e.globals.currentUser.username.toLowerCase();n.finnDetail=JSON.parse(window.localStorage.Finn_comp);var _=n.finnDetail.company,d=n.finnDetail.year,e=(r.get(i.apiUrl+"api/JVCreation/GetReportUrl?opr=J&sub_opr=Single").then(function(e){n.final_doc_url=e.data}),r.get(i.apiUrl+"api/SLView_IHS/getDate_SL_Query?finance_year="+d).then(function(e){n.getDates=e.data,0moment(e)&&(n.edt.FromDate="",swal({title:"Alert",text:"Please select date between "+n.sDate+" to "+n.eDate+" in financial year",showCloseButton:!0,width:380}))},n.onChange=function(){var e=moment(n.sDate,"DD-MM-YYYY").format("YYYY-MM-DD"),t=moment(n.edt.FromDate,"DD-MM-YYYY").format("YYYY-MM-DD");moment(t)"+t+''+a+""),o.close(),s.focus()},n.exportStaffResigned=function(){swal({title:"",text:"Are you sure you want to Save "+n.acct_name+"_SLQueryDetails.xls ?",showCloseButton:!0,showCancelButton:!0,confirmButtonText:"Yes",width:390,cancelButtonText:"No"}).then(function(e){e&&(e=new Blob([document.getElementById("printdata3").innerHTML],{type:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet;charset=utf-8"}),saveAs(e,n.obj1.lic_school_name+n.acct_name+"_SLQueryDetails.xls"))})},n.back=function(){n.report_show=!0},n.report_show=!0,n.Report=function(){n.report_show=!1;var e={location:n.final_doc_url,parameter:{comp_detail:_,doc_code:n.temp_doc.gltd_doc_code,doc_no:n.temp_doc.gltd_final_doc_no},state:"main.Fin123"};window.localStorage.ReportDetails=JSON.stringify(e);try{n.rpt=JSON.parse(window.localStorage.ReportDetails),n.location=n.rpt.location,n.parameter=n.rpt.parameter,n.state=n.rpt.state}catch(e){}var e="SimsReports."+n.location+",SimsReports",t=o.GetRpt_url();console.log(t),n.parameters={},$("#reportViewer1").telerik_ReportViewer({serviceUrl:t,viewMode:telerikReportViewer.ViewModes.INTERACTIVE,scaleMode:telerikReportViewer.ScaleModes.SPECIFIC,scale:1,ready:function(){}}),$("#reportViewer1").data("telerik_ReportViewer").reportSource({report:e,parameters:n.parameter}),setInterval(function(){$("#k-item k-state-default k-state-disabled").css({display:"block"}),$(".trv-report-viewer input[type=number]").css({"min-height":"0px"})},1e3),a(function(){$("#k-item k-state-default k-state-disabled").css({display:"block"}),$(".trv-report-viewer input[type=number]").css({"min-height":"0px"})},100)}}])}(),function(){"use strict";var n,e=angular.module("sims.module.Student");e.run(["$rootScope","$templateCache",function(e,t){e.$on("$viewContentLoaded",function(){t.removeAll()})}]),e.controller("BillWiseAllocationCont",["$scope","$state","$rootScope","$timeout","gettextCatalog","$filter","$http","ENV",function(r,e,t,a,s,o,i,_){r.operation=!0,r.table=!1,r.table1=!1,r.pagesize="*",r.pageindex=0,console.clear(),r.pager_data=!1,a(function(){$("#example").tableHeadFixer({top:1})},100);new FormData,t.globals.currentUser.username.toLowerCase();r.finnDetail=JSON.parse(window.localStorage.Finn_comp);var d=r.finnDetail.company,c=r.finnDetail.year;r.filteredTodos=[],r.currentPage=1,r.numPerPage=10,r.maxSize=10,r.size=function(e){r.pager=10==e||20==e,"*"==e?(r.numPerPage=r.studlist.length,r.filteredTodos=r.studlist):(r.pagesize=e,r.currentPage=1,r.numPerPage=e),r.makeTodos()},r.index=function(e){r.pageindex=e,r.currentPage=e,r.makeTodos(),1==(n=document.getElementById("mainchk")).checked&&(n.checked=!1,r.row1="",r.color="#edefef")},r.makeTodos=function(){var e=parseInt(r.totalItems%r.numPerPage),e=(r.pagersize="0"==e?parseInt(r.totalItems/r.numPerPage):parseInt(r.totalItems/r.numPerPage)+1,(r.currentPage-1)*r.numPerPage),t=parseInt(e)+parseInt(r.numPerPage);r.filteredTodos=r.todos.slice(e,t)},i.get(_.apiUrl+"api/GLSLQuery/getDate_SL_Query?finance_year="+c).then(function(e){r.getDates=e.data;var e=new Date,t=String(e.getDate()).padStart(2,"0"),a=String(e.getMonth()+1).padStart(2,"0"),e=e.getFullYear();0e);)a.pop().remove();0==a.length&&s&&s.remove()}function g(i,_,e,d,c){c=c||0;var l=l||angular.element,t=(l(_.currentTarget).addClass("context"),l("
")),m=(s?t=s:s=t,t.addClass("dropdown clearfix"),l('
'+t.sims_teacher_name+"
",a=m(a)(l);0<$("#"+t.sims_bell_day_code+"_"+t.sims_bell_slot_code+" .lectureData").children(".sub_tec_cont").length&&$("#"+t.sims_bell_day_code+"_"+t.sims_bell_slot_code+" .lectureData").addClass("group"),$("#"+t.sims_bell_day_code+"_"+t.sims_bell_slot_code+" .lectureData").addClass("occupied").append(a)}),$(".lec_count").html($(".occupied").length),l.showTeacher=!0,l.showDLec=!1,l.showLectureName=!0,l.showLectureTime=!0},l.toggleTeacher=function(){l.showTeacher=!l.showTeacher},l.toggleDLec=function(){l.showDLec=!l.showDLec},l.toggleLectureName=function(){l.showLectureName=!l.showLectureName},l.toggleLectureTime=function(){l.showLectureTime=!l.showLectureTime},l.genGrid=function(){var t='',t=(t+="")+""+'';for(let e=0;e'+l.oSlotDayNames[e]+"";t+="";for(var e=0;e ";for(var n=0;n
'+i+'
'+_+"
"}}var c=m(t=(t+="
")+""+"
D/Lec
'+a+'['+s+" to "+(o[0]+":"+o[1])+"]
")(l);$("#CVgrid").html(c)},l.getdays=function(){n.post(r.apiUrl+"api/SchoolTimeTable/TimeTableCommon",{opr:"Q"}).then(function(e){l.oSlotDayNamestemp=e.data.table,l.oSlotDayNames=[],$(l.oSlotDayNamestemp).each(function(e,t){l.oSlotDayNames[parseInt(t.sims_appl_parameter)-1]=t.sims_appl_form_field_value1})})},l.printDiv=function(){var e={location:"Schedulling.SCHR05",parameter:{acad_year:l.aca_year,bell:l.sims_bell_code,gradecode:l.grade_code,seccode:l.sec_code,disp_lect:!0===l.showLectureName?1:0,disp_tim:!0===l.showLectureTime?1:0,disp_d_lect:!0===l.showDLec?1:0,disp_teac:!0===l.showTeacher?1:0},state:"main.TtClVw",ready:function(){this.refreshReport()}};window.localStorage.ReportDetails=JSON.stringify(e),goToState("main.ReportCardParameter")},$(document).ready(function(){l.getCurriculum(),l.getdays()})}])}(),function(){"use strict";angular.module("sims.module.TimeTable").controller("TimeTableTeacherViewCont",["$scope","$compile","$state","$rootScope","$timeout","gettextCatalog","$locale","$http","ENV",function(l,m,e,t,a,s,o,n,r){l.getCurriculum=function(){n.get(r.apiUrl+"api/common/getCuriculum").then(function(e){l.Allcurriculum=e.data,l.cur_code=l.Allcurriculum[0].sims_cur_code,l.getAcademicYear()})},l.getAcademicYear=function(){var e={opr:"A",cur_code:l.cur_code};n.post(r.apiUrl+"api/SchoolTimeTable/TimeTableCommon",e).then(function(e){l.AllAcademicYear=e.data.table,$(l.AllAcademicYear).each(function(e,t){if("C"===t.sims_academic_year_status)return l.aca_year=t.sims_academic_year,l.getBellData(),!1})})},l.getBellData=function(){var e={Opr:"B",cur_code:"",AcaYear:l.aca_year};n.post(r.apiUrl+"api/SchoolTimeTable/TimeTableImport",e).then(function(e){l.AllBellData=e.data.table,0 Academic Year: '+o+' |
Teacher: '+t+' | Teacher Code: '+l.employee_code+"
"),$(".grid-body").removeClass("hide"),l.slot_count=e.data.table[0].column1,l.day_count=e.data.table1[0].column1,l.time_break_detail=e.data.table3,l.myTmpData=e.data.table4,l.min_day=parseInt(e.data.table5[0].min_day,10),new Array(l.day_count)),s=-2;$(l.myTmpData).each(function(e,t){(-2===s||s'+t.sims_subject_name_en+'
['+t.sims_grade_name_en+" "+t.sims_section_name_en+"]
",a=m(a)(l);0<$("#"+t.sims_bell_day_code+"_"+t.sims_bell_slot_code).children(".sub_tec_cont").length&&$("#"+t.sims_bell_day_code+"_"+t.sims_bell_slot_code).addClass("group"),$("#"+t.sims_bell_day_code+"_"+t.sims_bell_slot_code+" .lectureData").addClass("occupied").append(a)}),$(".lec_count").html($(".occupied").length),l.showDLec=!1,l.showLectureName=!0,l.showLectureTime=!0})},l.toggleDLec=function(){l.showDLec=!l.showDLec},l.toggleLectureName=function(){l.showLectureName=!l.showLectureName},l.toggleLectureTime=function(){l.showLectureTime=!l.showLectureTime},l.genGrid=function(){var t='',t=(t+="")+""+'';for(let e=0;e'+l.oSlotDayNames[e]+"";t+="";for(var e=0;e ";for(var n=0;n
'+i+'
'+_+"
"}}var c=m(t=(t+="
")+""+"
D/Lec
'+a+'['+s+" to "+(o[0]+":"+o[1])+"]
")(l);$("#TVgrid").html(c)},l.getdays=function(){n.post(r.apiUrl+"api/SchoolTimeTable/TimeTableCommon",{opr:"Q"}).then(function(e){l.oSlotDayNamestemp=e.data.table,l.oSlotDayNames=[],$(l.oSlotDayNamestemp).each(function(e,t){l.oSlotDayNames[parseInt(t.sims_appl_parameter)-1]=t.sims_appl_form_field_value1})})},$(document).ready(function(){l.getCurriculum(),l.getdays()})}])}(),function(){"use strict";angular.module("sims.module.TimeTable").controller("LectureSubstitutionCont",["$scope","$compile","$state","$rootScope","$timeout","gettextCatalog","$locale","$http","ENV",function(c,l,e,t,a,s,o,n,r){c.getAssignedData=function(){var e={opr:"F",aca_year:c.aca_year,bell_code:c.bell_code,teacher_code:c.abteacher_code};n.post(r.apiUrl+"api/LectureSubstitution/LectureSubstitutionCommon",e).then(function(e){c.AllAssignedData=e.data.table,c.assignFlag=!0})},c.getAcademicYear=function(){n.post(r.apiUrl+"api/SchoolTimeTable/TimeTableCommon",{opr:"A",cur_code:""}).then(function(e){c.AllAcademicYear=e.data.table,$(c.AllAcademicYear).each(function(e,t){if("C"===t.sims_academic_year_status)return c.aca_year=t.sims_academic_year,c.getBellData(),!1})})},c.getBellData=function(){var e={Opr:"B",AcaYear:c.aca_year,cur_code:""};n.post(r.apiUrl+"api/SchoolTimeTable/TimeTableImport",e).then(function(e){c.AllBellData=e.data.table,0",e=l((e+='')+''+"")(c);$("#"+t).html(e)})},c.loadData=function(){c.getGradeSection(),c.genTeachersView()},c.loadReasonData=function(){n.post(r.apiUrl+"api/LectureSubstitution/LectureSubstitutionCommon",{Opr:"J"}).then(function(e){c.AllReason=e.data.table,c.reason=c.AllReason[0].sims_appl_parameter,c.loadData()})},c.getGradeSection=function(){var e={Opr:"C",AcaYear:c.aca_year,bellCode:c.bell_code};n.post(r.apiUrl+"api/SchoolTimeTable/TimeTableInitial",e).then(function(e){c.iSlotCount=[];for(var t=0;t
'+t.sims_subject_name_en+"
",a=l(a)(c);0<$("#"+t.sims_bell_grade_code+"_"+t.sims_bell_section_code+"_"+t.sims_bell_slot_code).children(".sub_tec_cont").length&&$("#"+t.sims_bell_grade_code+"_"+t.sims_bell_section_code+"_"+t.sims_bell_slot_code).addClass("group"),$("#"+t.sims_bell_grade_code+"_"+t.sims_bell_section_code+"_"+t.sims_bell_slot_code).addClass("occupied").append(a),0<$("#"+t.sims_bell_grade_code+"_"+t.sims_bell_section_code+"_"+t.sims_bell_slot_code).children(".lec_sub").length||($("#"+t.sims_bell_grade_code+"_"+t.sims_bell_section_code+"_"+t.sims_bell_slot_code).append(l('')(c)),$("#"+t.sims_bell_grade_code+"_"+t.sims_bell_section_code+"_"+t.sims_bell_slot_code).attr("subject_code",t.sims_bell_subject_code))}),!0===c.assignFlag&&$(c.AllAssignedData).each(function(e,t){0===$("#"+t.sims_bell_grade_code+"_"+t.sims_bell_section_code+"_"+t.sims_bell_slot_code).find("h6").length&&($("#"+t.sims_bell_grade_code+"_"+t.sims_bell_section_code+"_"+t.sims_bell_slot_code).prepend('
Assigned to: '+t.sims_teacher_name+"
").attr({"subs-teacher-code":t.sims_bell_substitution_teacher_code,"subs-subject-code":t.sims_bell_substitution_subject_code,slotroom:t.sims_bell_slot_room,slotgroup:t.sims_bell_slot_group}).addClass("assigned"),$("#"+t.sims_bell_grade_code+"_"+t.sims_bell_section_code+"_"+t.sims_bell_slot_code).find(".cvsubname ").text(t.sims_subject_name_en))})})},c.allocatetoOther=function(e){e=$(e.currentTarget).parents("td").attr("id");c.oldhtml=$("#"+e).html(),0<$("#"+e).find("h6").length?c.alreadyAssigned=!0:c.alreadyAssigned=!1,c.slot_code=$("#"+e).data("slotcode"),$("#"+e).html(''),c.getFreeTeachers(e)},c.assignSubstitution=function(e,t,a){var s=$("#"+t).find("option:selected").data("teachername"),o=$("#"+t).find("option:selected").val(),n=$("#"+t).find("option:selected").data("subject"),r=$("#"+t).find("option:selected").data("subjectcode"),i=$("#"+t).find("option:selected").data("slotgroup"),_=$("#"+t).find("option:selected").data("slotroom"),d=l(c.oldhtml)(c);c.alreadyAssigned?($("#"+t).html(d),$("#"+t).find("h6").text("Assigned to: "+s)):$("#"+t).html(d).prepend('
Assigned to: '+s+"
"),$("#"+t).find(".sub_tec_cont").each(function(e,t){$(t).find(".cvsubname").text(n)}),c.assignedTeacher="",$("#"+t).addClass("assigned").attr({"subs-teacher-code":o,"subs-subject-code":r,slotroom:_,slotgroup:i})},c.assignToOtherShow=function(e,t){("td"===t?($(e.target).parent().siblings().find(".lec_sub").hide(),$(e.target)):($(e.target).parents("td").siblings().find(".lec_sub").hide(),$(e.target).parents("td"))).find(".lec_sub").show()},c.genGrid=function(){c.clickAttr="";for(var r='',r=(r+="")+""+'',e=0;e['+c.time_break_detail[e].sims_bell_start_time+" to "+c.time_break_detail[e].sims_bell_end_time+"]"}r+="",$(c.AllGradeSec).each(function(e,t){r+='";for(var a=0;a'}r+=""});var a=l(r=r+""+"
D/Lec
'+t.sims_grade_name_en+" "+t.sims_section_name_en+"
")(c);$("#TVgrid").html(a)},c.saveSubstitution=function(){c.loaderShow=!0;var d=[];$(".assigned .sub_tec_cont").each(function(e,t){var a=$(t).parents("td").attr("id"),s=$("#"+a).data("slotcode"),o=$("#"+a).attr("subs-teacher-code"),n=$("#"+a).attr("subs-subject-code"),r=$("#"+a).attr("slotgroup"),i=$("#"+a).attr("slotroom"),a=$("#"+a).attr("subject_code"),_=$(t).data("grade"),t=$(t).data("section");d.push({aca_year:c.aca_year,bell_code:c.bell_code,grade_code:_,sec_code:t,day_code:c.day_code,slot_code:s,slot_group:r,slot_room:i,teacher_code:c.abteacher_code,subject_code:a,filter_date:c.filter_date,subs_teacher_code:o,subs_subject_code:n,substitution_status:"A",substitution_acknowledgement_status:"P",substitution_remark:c.reason})}),n.post(r.apiUrl+"api/LectureSubstitution/SaveSubjectSubstitution",d).then(function(e){!0===e.data&&(c.loaderShow=!1,c.messageShow=!0,c.message="Substitution Saved Sucessfully")})},c.getdays=function(){n.post(r.apiUrl+"api/SchoolTimeTable/TimeTableCommon",{opr:"Q"}).then(function(e){c.oSlotDayNamestemp=e.data.table,c.oSlotDayNames=[],$(c.oSlotDayNamestemp).each(function(e,t){c.oSlotDayNames[parseInt(t.sims_appl_parameter)-1]=t.sims_appl_form_field_value1})})},$(document).ready(function(){c.getAcademicYear(),c.getdays(),c.loaderShow=!1})}])}(),function(){"use strict";angular.module("sims.module.TimeTable").controller("FreeTeacherCont",["$scope","$compile","$state","$rootScope","$timeout","gettextCatalog","$locale","$http","ENV",function(a,e,t,s,o,n,r,i,_){var d=new Date,c=d.getDate(),l=(c<10&&(c="0"+c),d.getMonth()+1),m=(l<10&&(l="0"+l),d.getFullYear());a.filter_date=c+"-"+l+"-"+m,a.getCurriculum=function(){i.get(_.apiUrl+"api/common/getCuriculum").then(function(e){a.Allcurriculum=e.data,a.cur_code=a.Allcurriculum[0].sims_cur_code,a.getAcademicYear()})},a.getAcademicYear=function(){var e={opr:"A",cur_code:a.cur_code};i.post(_.apiUrl+"api/SchoolTimeTable/TimeTableCommon",e).then(function(e){a.AllAcademicYear=e.data.table,$(a.AllAcademicYear).each(function(e,t){if("C"===t.sims_academic_year_status)return a.aca_year=t.sims_academic_year,a.getBellData(),!1})})},a.getTeachers=function(){a.teacher_code="";var e={opr:"O",AcaYear:a.aca_year,bellCode:a.bell_code};i.post(_.apiUrl+"api/FreeTeacher/TimeTableView",e).then(function(e){a.AllTeachers=e.data.table,a.teacher_code=a.AllTeachers[0].sims_bell_teacher_code,a.genTeachersView()})},a.getBellData=function(){var e={Opr:"B",AcaYear:a.aca_year,cur_code:a.cur_code};i.post(_.apiUrl+"api/SchoolTimeTable/TimeTableImport",e).then(function(e){a.AllBellData=e.data.table,0=parseFloat(t)&&0"+t+''+a+""),n.close(),o.focus(),r.detailsField=!1):(t=document.head.outerHTML,a=document.getElementById("pdf_print1").outerHTML,s="location=yes, statusbar=no, menubar=no, titlebar=no, toolbar=no,dependent=no, width=800, height=600, resizable=yes, screenX=250, screenY=10, personalbar=no, scrollbars=yes",(n=(o=window.open("","_blank",s)).document).open(),n.write(""+t+''+a+""),n.close(),o.focus()),r.detailsField=!1,r.colsvis=!1,r.getDetails())})},r.report_show=!0,r.Report_call=function(a){$("#feemodal").modal("show"),r.report_show=!1,o.get(n.apiUrl+"api/family_statement/getReport").then(function(e){r.result1=e.data,e="S"==r.temp.report_status?{location:r.result1[0].sims_appl_form_field_value1,parameter:{cur_code:r.temp.sims_cur_code,acad_year:r.temp.sims_academic_year,parent_flag:1,user_no:a.sims_enroll_number,from_date:moment(r.from_date,"DD-MM-YYYY").format("YYYY-MM-DD"),other_fee_flag:r.temp.other_fee_flag,cumfeeflag:r.temp.cumfeeflag,printedby:m,as_date:r.from_date},state:"main.FMLANA",ready:function(){this.refreshReport()}}:{location:r.result1[0].sims_appl_form_field_value1,parameter:{cur_code:r.temp.sims_cur_code,acad_year:r.temp.sims_academic_year,parent_flag:2,user_no:a.sims_parent_number,from_date:moment(r.from_date,"DD-MM-YYYY").format("YYYY-MM-DD"),other_fee_flag:r.temp.other_fee_flag,cumfeeflag:r.temp.cumfeeflag,printedby:m,as_date:r.from_date},state:"main.FMLANA",ready:function(){this.refreshReport()}},window.localStorage.ReportDetails=JSON.stringify(e);try{r.rpt=JSON.parse(window.localStorage.ReportDetails),r.location=r.rpt.location,r.parameter=r.rpt.parameter,r.state=r.rpt.state}catch(e){}var e="SimsReports."+r.location+",SimsReports",t=i.GetRpt_url();console.log(t),r.parameters={},$("#reportViewer1").telerik_ReportViewer({serviceUrl:t,viewMode:telerikReportViewer.ViewModes.INTERACTIVE,scaleMode:telerikReportViewer.ScaleModes.SPECIFIC,scale:1,ready:function(){}}),$("#reportViewer1").data("telerik_ReportViewer").reportSource({report:e,parameters:r.parameter}),setInterval(function(){$("#k-item k-state-default k-state-disabled").css({display:"block"}),$(".trv-report-viewer input[type=number]").css({"min-height":"0px"})},1e3),s(function(){$("#k-item k-state-default k-state-disabled").css({display:"block"}),$(".trv-report-viewer input[type=number]").css({"min-height":"0px"})},100)})},r.reset=function(){r.filteredTodos=[],r.pager=!1,r.temp.sltr_tran_amt_dr_total=0,r.temp.sltr_tran_amt_cr_total=0,r.temp.pdc_amount_total=0,r.temp.net_amt_total=0,r.temp.perc_amt_total=0,r.temp.previpus_year_outstanding_total=0},r.sortBy=function(e){r.reverse=r.propertyName===e&&!r.reverse,r.propertyName=e},r.ischeck=function(){r.checklick=function(){var e=document.getElementById("expire");1==e.checked&&e.checked}},r.communication=function(t){var e={opr:"V",sims_parent_number:t.sims_parent_number};o.post(n.apiUrl+"api/FamilyAnalysisABQ/familyanalysiscommon",e).then(function(e){r.studcontactdata=e.data.table,$("#feemodal").modal("hide"),r.busy=!0,r.parentstudent=[],r.paymentPlanDetails=[],r.registration_status="",r.fees_payment_plan="",r.sims_promote_remark="",r.check_remark_flag=!1,r.sims_edit_remark=!0,r.parent_id=t.sims_parent_number,r.parent_name=t.father_name,r.payemnt_plan_desc=t.payemnt_plan_desc,r.father_contact=r.studcontactdata[0].sims_parent_father_mobile,r.mother_contact=r.studcontactdata[0].sims_parent_mother_mobile,r.guardian_contact=r.studcontactdata[0].sims_parent_guardian_mobile,r.sims_student_primary_contact_preference=r.studcontactdata[0].sims_student_primary_contact_pref,r.getcommunicationdetailsl(r.parent_id),r.IP={},r.IP.cur_shrt_name=t.sims_cur_code,r.IP.sims_academic_year=t.sims_academic_year,r.IP.sims_student_enroll_number=t.sims_parent_number,o.get(n.apiUrl+"api/StudentReport/getAdmRemarkStudList_ABQIS?data="+JSON.stringify(r.IP)).then(function(e){r.paymentPlanDetails=e.data.table,0=t?e:("0".repeat(t)+e).slice(-1*t)}})}(),function(){"use strict";var i=angular.module("sims.module.HRMS");i.controller("TeachingStaffCareerProfileleamsCont",["$scope","$compile","$state","$rootScope","$timeout","gettextCatalog","$locale","$http","$filter","ENV",function(_,e,t,a,s,o,n,d,c,l){var a=a.globals.currentUser.username,m=(_.Emp_ID=a,_.updatebtn=!0,_.imgupload=!0,_.disableihs=!1,"clarionschool"==d.defaults.headers.common.schoolId?(_.updatebtn=!1,_.imgupload=!1):(_.updatebtn=!0,_.imgupload=!0),_.officialmailid=!0,_.designation=!0,_.disaledfields=!0,_.hidefiels=!1,_.qualiList=[],_.ExperienceList=[],d.get(l.apiUrl+"api/EmpProfile/GetEPData").then(function(e){_.obj=e.data,console.log("INformation",_.obj),_.getQualiByEmpcode=function(e){d.get(l.apiUrl+"api/Qualification/getQualificationByEmployee?emp_code="+_.Emp_ID).then(function(e){_.qualiList=e.data,console.log("qualiList",_.qualiList),_.combo_multiple=!0})},_.getQualiByEmpcode(),_.getExpByEmpcode(),d.get(l.apiUrl+"api/EmpExp/getEmployeeExp?em_login_code="+_.Emp_ID).then(function(e){_.ExperienceList=e.data,console.log("ExperienceList",_.ExperienceList),_.showExperinceList=!0}),_.showEmpDocumentList(_.Emp_ID),_.operation=!0,_.Save_btn=!0,_.display=!0}),d.get(l.apiUrl+"api/HRMS/getCompany").then(function(e){_.company_data=e.data,_.getdept(_.company_data[0].em_Company_Code),_.getdsig(_.company_data[0].em_Company_Code)}),_.getdept=function(e){d.get(l.apiUrl+"api/HRMS/getDepartmenyByCompany?company_code="+e).then(function(e){_.deptt=e.data,console.log("departments",_.deptt)})},_.getdsig=function(e){d.get(l.apiUrl+"api/HRMS/getDesignationByCompany?company_code="+e).then(function(e){_.design=e.data,console.log("design",_.design)})},_.getgrade=function(e){d.get(l.apiUrl+"api/HRMS/getGradeByCompany?company_code="+_.temp.em_Company_Code).then(function(e){_.grade=e.data,console.log("Grade",_.grade)})},_.getstate=function(e){d.get(l.apiUrl+"api/HRMS/lems/getState?em_Country_Code="+e).then(function(e){_.stt=e.data})},_.getcity=function(e){d.get(l.apiUrl+"api/HRMS/lems/getCity?em_State_Code="+e).then(function(e){_.ctt=e.data})},d.get(l.apiUrl+"api/Qualification/getQualificationName").then(function(e){_.Qualification_Name=e.data}),d.get(l.apiUrl+"api/Qualification/getQualificationType").then(function(e){_.qual_type_data=e.data}),d.get(l.apiUrl+"api/EmpExp/getMonthName").then(function(e){_.month_data=e.data}),_.addCol=function(e){_.combo_multiple=!0;for(var t=document.getElementById("qual_name"),t=t.options[t.selectedIndex].text,a=0;a<_.qualiList.length;a++)if(_.qualiList[a].emp_qual_qual_code==e)return swal({text:"Qualification Already Added !!",timer:5e3}),!1;_.qualiList.push({emp_qual_qual_name:t,emp_qual_qual_code:e}),_.Myform.$setPristine(),_.Myform.$setUntouched()},_.AddEnable=function(){_.addDisabled=!1},_.addExperience=function(){_.showExperinceList=!0;_.ExperienceList.push({enroll_number:"",prev_company_name:"",prev_job_title:"",from_year:"",from_month:"",to_year:"",to_month:"",prev_job_remark:"",prev_job_responsibilities:"",prev_job_salary:"",job_status:"",em_previous_job_line_no:""})},_.RemoveExperinceRow=function(e,t,a){a.splice(t,1)},_.saveExperience=function(e){var t=[];if(0<_.ExperienceList.length){for(var a=0;a<_.ExperienceList.length;a++){var s={enroll_number:e,co_company_code:"1",prev_company_name:_.ExperienceList[a].prev_company_name,prev_job_title:_.ExperienceList[a].prev_job_title,from_year:_.ExperienceList[a].from_year,from_month:_.ExperienceList[a].from_month,to_year:_.ExperienceList[a].to_year,to_month:_.ExperienceList[a].to_month,prev_job_responsibilities:_.ExperienceList[a].prev_job_responsibilities,prev_job_salary:_.ExperienceList[a].prev_job_salary,job_status:_.ExperienceList[a].job_status,opr:"I"};t.push(s)}d.post(l.apiUrl+"api/EmpExp/CUDEmployeeExperience",t).then(function(e){_.msgexp=e.data,console.log("emp exp",_.msgexp),_.ExperienceList=[],_.showExperinceList=!1})}},_.saveQualification=function(e){var t=[];if(0<_.qualiList.length){for(var a=0;a<_.qualiList.length;a++){var s={emp_qual_em_code:e,emp_qual_qual_code:_.qualiList[a].emp_qual_qual_code,emp_qual_institute:_.qualiList[a].emp_qual_institute,emp_qual_type_code:_.qualiList[a].emp_qual_type_code,em_qual_from_year:_.qualiList[a].em_qual_from_year,em_qual_year:_.qualiList[a].em_qual_to_year,emp_qual_percentage:_.qualiList[a].emp_qual_percentage,emp_qual_remark:_.qualiList[a].emp_qual_remark,em_qual_status:_.qualiList[a].em_qual_status,opr:"I"};t.push(s)}d.post(l.apiUrl+"api/Qualification/CUDQualification?year=",t).then(function(e){_.qualificationmsg=e.data,console.log("qualificationmsg ",_.qualificationmsg),_.qualiList=[],_.combo_multiple=!1})}},_.updateQualification=function(){var e=[];if(0<_.qualiList.length){for(var t=0;t<_.qualiList.length;t++){var a=_.qualiList[t].emp_qual_qual_code,a={emp_qual_em_code:_.temp.em_login_code,emp_qual_qual_code:a,emp_qual_institute:_.qualiList[t].emp_qual_institute,emp_qual_type_code:_.qualiList[t].emp_qual_type_code,em_qual_from_year:_.qualiList[t].em_qual_from_year,em_qual_year:_.qualiList[t].em_qual_to_year,emp_qual_percentage:_.qualiList[t].emp_qual_percentage,emp_qual_remark:_.qualiList[t].emp_qual_remark,em_qual_status:_.qualiList[t].em_qual_status,opr:"U"};e.push(a)}0!=_.qualiList.length?d.post(l.apiUrl+"api/Qualification/UpadateQualification?simsobj2=",e).then(function(e){_.updateQualimsg1=e.data,console.log(_.updateQualimsg1),_.qualiList=[],_.combo_multiple=!1}):swal({text:"You not edit correct record",timer:5e3})}},_.updateExperience=function(){var e=[];if(0<_.ExperienceList.length){for(var t=0;t<_.ExperienceList.length;t++){var a={enroll_number:_.temp.em_login_code,co_company_code:"1",prev_company_name:_.ExperienceList[t].prev_company_name,prev_job_title:_.ExperienceList[t].prev_job_title,from_year:_.ExperienceList[t].from_year,from_month:_.ExperienceList[t].from_month,to_year:_.ExperienceList[t].to_year,to_month:_.ExperienceList[t].to_month,prev_job_responsibilities:_.ExperienceList[t].prev_job_responsibilities,prev_job_salary:_.ExperienceList[t].prev_job_salary,job_status:_.ExperienceList[t].job_status,em_previous_job_line_no:_.ExperienceList[t].em_previous_job_line_no,opr:"U"};e.push(a)}d.post(l.apiUrl+"api/EmpExp/CUDEmployeeExperience",e).then(function(e){_.updateQualification(),_.msgupdateExp=e.data,console.log("emp exp update",_.msgupdateExp),_.updateQualification(),_.updateExperience(),_.ExperienceList=[],_.showExperinceList=!1})}},d.get(l.apiUrl+"api/studentdatabase/getdemo").then(function(e){_.demo_values=e.data,console.log("demo",_.demo_values)}),_.getcode1=function(){d.get(l.apiUrl+"api/studentdatabase/getisdd?country_code="+_.edt.mobile_number).then(function(e){_.isdcode1=e.data,console.log("isdcode",_.isdcode1),null!=_.temp.em_mobile&&"-"!=_.temp.em_mobile&&(null!=_.oldisdcode?(_.temp.em_mobile=_.temp.em_mobile,_.temp.em_mobile=_.temp.em_mobile.replace(_.oldisdcode,_.isdcode1[0].sims_country_isd_code),console.log("mobilenumber",_.temp.em_mobile)):_.temp.em_mobile=_.isdcode1[0].sims_country_isd_code+_.temp.em_mobile),null==_.temp.em_mobile&&(_.temp.em_mobile=_.isdcode1[0].sims_country_isd_code),_.olisdcode()})},_.olisdcode=function(){0<_.isdcode1.length&&(_.oldisdcode=_.isdcode1[0].sims_country_isd_code)},_.getcode3=function(){d.get(l.apiUrl+"api/studentdatabase/getisdd?country_code="+_.edt.Contact_number).then(function(e){_.isdcode3=e.data,console.log("isdcode3",_.isdcode3),null!=_.temp.em_emergency_contact_number1&&"-"!=_.temp.em_emergency_contact_number1&&(null!=_.oldisdcode2?(_.temp.em_emergency_contact_number1=_.temp.em_emergency_contact_number1,_.temp.em_emergency_contact_number1=_.temp.em_emergency_contact_number1.replace(_.oldisdcode2,_.isdcode3[0].sims_country_isd_code),console.log("Emerphonenumber",_.temp.em_emergency_contact_number1)):_.temp.em_emergency_contact_number1=_.isdcode3[0].sims_country_isd_code+_.temp.em_emergency_contact_number1),null==_.temp.em_emergency_contact_number1&&(_.temp.em_emergency_contact_number1=_.isdcode3[0].sims_country_isd_code),_.olisdcode2()})},_.olisdcode2=function(){0<_.isdcode3.length&&(_.oldisdcode2=_.isdcode3[0].sims_country_isd_code)},_.setProbationCompletionReminderDate=function(){var e;_.Probation=!0,null!=_.temp.em_date_of_join&&(console.log(_.temp.em_date_of_join),e=moment(_.temp.em_date_of_join,"DD-MM-YYYY"),console.log(e),_.temp.em_probation_completion_date=e.add(parseInt(_.temp.em_probation_period_days),"days").format("DD-MM-YYYY"),console.log(_.temp.em_probation_completion_date),console.log("em_probation_confirmation_date",_.temp.em_probation_completion_date))},_.getdata=function(){d.get(l.apiUrl+"api/EmpProfile/GetEmployeeProfileDataLeams?em_login_code="+_.Emp_ID).then(function(e){_.temp1=e.data,console.log("DATA",_.temp1),_.temp={em_login_code:_.temp1[0].em_login_code,em_number:_.temp1[0].em_number,em_service_status_code:_.temp1[0].em_service_status_code,em_status_code:_.temp1[0].em_status_code,em_apartment_number:_.temp1[0].em_apartment_number,em_family_name:_.temp1[0].em_family_name,em_street_number:_.temp1[0].em_street_number,em_area_number:_.temp1[0].em_area_number,em_phone:_.temp1[0].em_phone,em_fax:_.temp1[0].em_fax,em_post:_.temp1[0].em_post,em_emergency_contact_name2:_.temp1[0].em_emergency_contact_name2,em_emergency_contact_number2:_.temp1[0].em_emergency_contact_number2,em_joining_ref:_.temp1[0].em_joining_ref,em_ethnicity_code:_.temp1[0].em_ethnicity_code,em_handicap_status:_.temp1[0].em_handicap_status,em_stop_salary_indicator:_.temp1[0].em_stop_salary_indicator,em_agreement:_.temp1[0].em_agreement,em_punching_status:_.temp1[0].em_punching_status,em_bank_cash_tag:_.temp1[0].em_bank_cash_tag,em_citi_exp_tag:_.temp1[0].em_citi_exp_tag,em_leave_tag:_.temp1[0].em_leave_tag,em_passport_issue_place:_.temp1[0].em_passport_issue_place,em_passport_issuing_authority:_.temp1[0].em_passport_issuing_authority,em_pssport_exp_rem_date:_.temp1[0].em_pssport_exp_rem_date,em_visa_issuing_place:_.temp1[0].em_visa_issuing_place,em_visa_issuing_authority:_.temp1[0].em_visa_issuing_authority,em_visa_exp_rem_date:_.temp1[0].em_visa_exp_rem_date,em_visa_type_code:_.temp1[0].em_visa_type_code,em_agreement_start_date:_.temp1[0].em_agreement_start_date,em_agreement_exp_date:_.temp1[0].em_agreement_exp_date,em_agreemet_exp_rem_date:_.temp1[0].em_agreemet_exp_rem_date,em_punching_id:_.temp1[0].em_punching_id,em_dependant_full:_.temp1[0].em_dependant_full,em_dependant_half:_.temp1[0].em_dependant_half,em_dependant_infant:_.temp1[0].em_dependant_infant,em_Bank_Code:_.temp1[0].em_Bank_Code,em_bank_ac_no:_.temp1[0].em_bank_ac_no,em_iban_no:_.temp1[0].em_iban_no,em_route_code:_.temp1[0].em_route_code,em_bank_swift_code:_.temp1[0].em_bank_swift_code,em_gpf_ac_no:_.temp1[0].em_gpf_ac_no,em_pan_no:_.temp1[0].em_pan_no,em_labour_card_no:_.temp1[0].em_labour_card_no,em_gosi_ac_no:_.temp1[0].em_gosi_ac_no,em_gosi_start_date:_.temp1[0].em_gosi_start_date,em_national_id:_.temp1[0].em_national_id,em_secret_question_code:_.temp1[0].em_secret_question_code,em_secret_answer:_.temp1[0].em_secret_answer,em_building_number:_.temp1[0].em_building_number,em_Company_Code:_.temp1[0].em_Company_Code,em_Dept_Code:_.temp1[0].em_Dept_Code,em_Designation_Code:_.temp1[0].em_Designation_Code,em_Dest_Code:_.temp1[0].em_Dest_Code,em_Grade_Code:_.temp1[0].em_Grade_Code,em_Marital_Status_Code:_.temp1[0].em_Marital_Status_Code,em_Nation_Code:_.temp1[0].em_Nation_Code,em_Country_Code:_.temp1[0].em_Country_Code,em_State_Code:_.temp1[0].em_State_Code,em_City_Code:_.temp1[0].em_City_Code,em_Religion_Code:_.temp1[0].em_Religion_Code,em_Salutation_Code:_.temp1[0].em_Salutation_Code,em_Sex_Code:_.temp1[0].em_Sex_Code,em_Staff_Type_Code:_.temp1[0].em_Staff_Type_Code,em_blood_group_code:_.temp1[0].em_blood_group_code,em_date_of_birth:_.temp1[0].em_date_of_birth,em_date_of_join:_.temp1[0].em_date_of_join,em_dept_effect_from:_.temp1[0].em_dept_effect_from,em_email:_.temp1[0].em_email,em_emergency_contact_name1:_.temp1[0].em_emergency_contact_name1,em_emergency_contact_number1:_.temp1[0].em_emergency_contact_number1,em_first_name:_.temp1[0].em_first_name,em_grade_effect_from:_.temp1[0].em_grade_effect_from,em_last_name:_.temp1[0].em_last_name,em_middle_name:_.temp1[0].em_middle_name,em_mobile:_.temp1[0].em_mobile,em_name_ot:_.temp1[0].em_name_ot,em_national_id_expiry_date:_.temp1[0].em_national_id_expiry_date,em_national_id_issue_date:_.temp1[0].em_national_id_issue_date,em_passport_expiry_date:_.temp1[0].em_passport_expiry_date,em_passport_issue_date:_.temp1[0].em_passport_issue_date,em_passport_no:_.temp1[0].em_passport_no,em_summary_address:_.temp1[0].em_summary_address,em_summary_address_local_language:_.temp1[0].em_summary_address_local_language,em_visa_exp_date:_.temp1[0].em_visa_exp_date,em_stop_salary_from:_.temp1[0].em_stop_salary_from,em_visa_issue_date:_.temp1[0].em_visa_issue_date,em_visa_no:_.temp1[0].em_visa_no,em_img:_.temp1[0].em_img,em_resident_in_qatar_since:_.temp1[0].em_resident_in_qatar_since,em_remarks_awards:_.temp1[0].em_remarks_awards,em_name_of_spouse:_.temp1[0].em_name_of_spouse,em_Spouse_Designation_Code:_.temp1[0].em_Spouse_Designation_Code,em_spouse_organization:_.temp1[0].em_spouse_organization,em_spouse_qatar_id:_.temp1[0].em_spouse_qatar_id,em_spouse_contact_number:_.temp1[0].em_spouse_contact_number,pays_work_type_code:_.temp1[0].pays_work_type_code,pays_work_type_name:_.temp1[0].pays_work_type_name,em_labour_card_no:_.temp1[0].em_labour_card_no,em_work_permit_issue_date:_.temp1[0].em_work_permit_issue_date,em_work_permit_expiry_date:_.temp1[0].em_work_permit_expiry_date,em_personalemail:_.temp1[0].em_personalemail,em_passport_issue_date:_.temp1[0].em_passport_issue_date,em_passport_number:_.temp1[0].em_passport_number,em_summary_address:_.temp1[0].em_summary_address,em_summary_address_local_language:_.temp1[0].em_summary_address_local_language,em_visa_exp_date:_.temp1[0].em_visa_exp_date,em_stop_salary_from:_.temp1[0].em_stop_salary_from,em_visa_issue_date:_.temp1[0].em_visa_issue_date,em_visa_no:_.temp1[0].em_visa_no,em_sponser_name:_.temp1[0].em_sponser_name,em_relation:_.temp1[0].em_relation,visa_num:_.temp1[0].visa_num,visa_issue_date:_.temp1[0].visa_issue_date,visa_exp_date:_.temp1[0].visa_exp_date,em_probation_period_days:_.temp1[0].em_probation_period_days,em_probation_completion_date:_.temp1[0].em_probation_completion_date,en_labour_card_expiry_date:_.temp1[0].en_labour_card_expiry_date,em_emergency_relation1:_.temp1[0].em_emergency_relation1},console.log(_.imageUrl+_.temp.em_img),console.log("temp",_.temp),_.getstate(_.temp.em_Country_Code),_.getcity(_.temp.em_State_Code),_.showEmpDocumentList(_.Emp_ID),_.getQualiByEmpcode=function(e){d.get(l.apiUrl+"api/Qualification/getQualificationByEmployee?emp_code="+_.Emp_ID).then(function(e){_.qualiList=e.data,console.log("qualiListt",_.qualiList),_.combo_multiple=!0})},_.getQualiByEmpcode(),d.get(l.apiUrl+"api/EmpExp/getEmployeeExp?em_login_code="+_.Emp_ID).then(function(e){_.ExperienceList=e.data,console.log("ExperienceList",_.ExperienceList),_.showExperinceList=!0})})},_.getdata(),_.getQualiByEmpcode=function(e){d.get(l.apiUrl+"api/Qualification/getQualificationByEmployee?emp_code="+_.Emp_ID).then(function(e){_.qualiList=e.data,_.showQualiMsg=!1,0<_.qualiList.length?_.showQualiMsg=!1:_.showQualiMsg=!0})},_.getExpByEmpcode=function(e){d.get(l.apiUrl+"api/EmpProfile/GetSpecificEmployeeExp?em_login_code="+_.Emp_ID).then(function(e){_.expList=e.data,_.showExperinceList=!0,_.experience=0,_.showMsg=!1,0<_.expList.length?(angular.forEach(_.expList,function(e,t){_.experience=parseFloat(_.experience)+parseFloat(e.total_experience)}),_.total_experience=_.experience,_.showMsg=!1):_.showMsg=!0})},_.UpdateData=function(e){e?(e=_.temp,void 0!==_.photo_filename&&(_.temp.em_img="",e.em_img=_.temp.em_login_code+"."+_.type),e.opr="U",d.post(l.apiUrl+"api/EmpProfile/UpdateProileLeams",e).then(function(e){_.CUDobj=e.data,swal({text:_.CUDobj.strMessage,timer:1e4,width:360}),_.updateQualification(),_.updateExperience(),_.getdata()}),1==_.ImgLoaded&&(e={method:"POST",url:l.apiUrl+"api/AssignmentUpload/upload1?filename="+_.temp.em_login_code+"."+_.type+"&location=Images/EmployeeImages/",data:m,headers:{"Content-Type":void 0}},d(e).success(function(e){})),_.searchText=!1):swal({text:"Kindly fill mandatory field",timer:5e3,width:360})},_.showEmpDocumentList=function(e){d.post(l.apiUrl+"api/EmpDocumentupload/DocumentdetailData",{pays_doc_empl_id:e,show:"all"}).then(function(e){_.DocumentdetailsData=e.data,console.log("abc",_.DocumentdetailsData);for(var t=0;t<_.DocumentdetailsData.length;t++)_.DocumentdetailsData[t]=e.data[t],_.visible=[],_.visible=e.data[t].pays_doc_path.split(","),_.DocumentdetailsData[t].path=_.visible;console.log("doc",_.DocumentdetailsData)})},_.UploadDocumentModal=function(e){_.filenameassigningData=e,$("#DocumenModal").modal("show"),console.log("str ",e)},_.hideDocModal=function(){_.showFileName=!0,_.filename1=_.filename_doc,null!=_.filename1&&""!=_.filename1&&null!=_.filename1||(_.showFileName=!1),_.filenameassigningData.pays_doc_path=_.filename1,$("#DocumenModal").modal("hide")},_.getTheDocFiles=function(e){angular.forEach(e,function(e,t){r.append(t,e)})},_.uploadClick=function(e){_.filesize=!0,_.edt1=e,console.log(_.edt1),_.edt1.photoStatus=!0,_.ins=!1,r=new FormData},[]),r=(_.file_changed1=function(e,t){var a=e.files[0],s=(_.photo_filename=a.type,_.filename1=a.name,console.log("file",_.filename1),a.name.split(".")[1]);if("jpeg"==s||"jpg"==s||"png"==s||"pdf"==s||"docx"==s||"doc"==s){var o=e.files;if(o.length){m=new FormData;for(var n=0;nnew Date(n.obj_age[o].sims_birth_date_to))&&(e=n.edt.birth_date="",swal({title:"Alert",text:"Age criteria is not met.",showCloseButton:!0,width:450}))},n.Save=function(e){var t=[];e&&(n.BUSY=!0,"G"==n.edt.legal_custody_code&&(n.edt.guardian_first_name=n.edt.father_first_name,n.edt.guardian_last_name=n.edt.father_last_name,n.edt.guardian_middle_name=n.edt.father_middle_name,n.edt.guardian_mobile=n.edt.father_mobile,n.edt.guardian_email=n.edt.father_email,n.edt.guardian_summary_address=n.edt.father_summary_address,n.edt.guardian_nationality1_code=n.edt.father_nationality1_code,n.edt.sims_parent_guardian_national_id=n.edt.sims_parent_father_national_id),e={admission_number:n.edt.admission_number,appl_num:n.edt.appl_num,pros_num:n.edt.pros_num,pros_appl_num:n.edt.pros_appl_num,admission_date:n.edt.admission_date,school_code:n.edt.school_code,curr_code:n.edt.curr_code,academic_year:n.edt.academic_year,grade_code:n.edt.grade_code,section_code:n.edt.section_code,term_code:n.edt.term_code,tent_join_date:n.edt.tent_join_date,sims_book_tour_preferred_date:n.sims_book_tour_preferred_date,sims_student_emergency_contact_number1:n.edt.sims_student_emergency_contact_number1,sims_student_emergency_contact_name1:n.edt.sims_student_emergency_contact_name1,first_name:n.edt.first_name,middle_name:n.edt.middle_name,last_name:n.edt.last_name,family_name:n.edt.family_name,first_name_ot:n.edt.first_name_ot,midd_name_ot:n.edt.midd_name_ot,last_name_ot:n.edt.last_name_ot,family_name_ot:n.edt.family_name_ot,nicke_name:n.edt.nicke_name,birth_date:n.edt.birth_date,comm_date:n.edt.comm_date,birth_country_code:n.edt.birth_country_code,nationality_code:n.edt.nationality_code,ethinicity_code:n.edt.ethinicity_code,gender_code:n.edt.gender_code,religion_code:n.edt.religion_code,passport_num:n.edt.passport_num,passport_issue_date:n.edt.passport_issue_date,passport_expiry:n.edt.passport_expiry,passport_issue_auth:n.edt.passport_issue_auth,passport_issue_place:n.edt.passport_issue_place,visa_number:n.edt.visa_number,visa_type:n.edt.visa_type,visa_issuing_authority:n.edt.visa_issuing_authority,visa_issue_date:n.edt.visa_issue_date,visa_expiry_date:n.edt.visa_expiry_date,visa_issuing_place:n.edt.visa_issuing_place,national_id:n.edt.national_id,national_id_issue_date:n.edt.national_id_issue_date,national_id_expiry_date:n.edt.national_id_expiry_date,sibling_status:n.edt.sibling_status,parent_id:n.edt.sims_parent_number,sibling_enroll:n.edt.sibling_enroll,sibling_name:n.edt.sibling_name,sibling_dob:n.edt.sibling_dob,sibling_school_code:n.edt.sibling_school_code,employee_type:n.edt.employee_type,employee_code:n.edt.employee_code,employee_school_code:n.edt.employee_school_code,motherTounge_language_code:n.edt.motherTounge_language_code,main_language_code:n.edt.main_language_code,main_language_r_code:n.edt.main_language_r_code,main_language_w_code:n.edt.main_language_w_code,main_language_s_code:n.edt.main_language_s_code,primary_contact_code:n.edt.primary_contact_code,primary_contact_pref_code:n.edt.primary_contact_pref_code,fee_payment_contact_pref_code:n.edt.fee_payment_contact_pref_code,transport_status:n.edt.transport_status,transport_desc:n.edt.transport_desc,father_salutation_code:n.edt.father_salutation_code,father_first_name:n.edt.father_first_name,father_middle_name:n.edt.father_middle_name,father_last_name:n.edt.father_last_name,father_family_name:n.edt.father_family_name,father_family_name_ot:n.edt.father_family_name_ot,father_nationality1_code:n.edt.father_nationality1_code,father_nationality2_code:n.edt.father_nationality2_code,father_appartment_number:n.edt.father_appartment_number,father_building_number:n.edt.father_building_number,father_street_number:n.edt.father_street_number,father_area_number:n.edt.father_area_number,father_city:n.edt.father_city,father_state:n.edt.father_state,father_country_code:n.edt.father_country_code,father_summary_address:n.edt.father_summary_address,father_po_box:n.edt.father_po_box,father_phone:n.edt.father_phone,father_email:n.edt.father_email,father_mobile:n.edt.father_mobile,father_fax:n.edt.father_fax,father_occupation:n.edt.father_occupation,father_company:n.edt.father_company,father_passport_number:n.edt.father_passport_number,sims_admission_father_national_id:n.edt.sims_admission_father_national_id,guardian_salutation_code:n.edt.guardian_salutation_code,guardian_first_name:n.edt.guardian_first_name,guardian_middle_name:n.edt.guardian_middle_name,guardian_last_name:n.edt.guardian_last_name,guardian_family_name:n.edt.guardian_family_name,guardian_nationality1_code:n.edt.guardian_nationality1_code,guardian_nationality2_code:n.edt.guardian_nationality2_code,guardian_appartment_number:n.edt.guardian_appartment_number,guardian_building_number:n.edt.guardian_building_number,guardian_street_number:n.edt.guardian_street_number,guardian_area_number:n.edt.guardian_area_number,guardian_city:n.edt.guardian_city,guardian_state:n.edt.guardian_state,guardian_country_code:n.edt.guardian_country_code,guardian_summary_address:n.edt.guardian_summary_address,guardian_po_box:n.edt.guardian_po_box,guardian_phone:n.edt.guardian_phone,guardian_mobile:n.edt.guardian_mobile,guardian_fax:n.edt.guardian_fax,guardian_email:n.edt.guardian_email,guardian_occupation:n.edt.guardian_occupation,guardian_company:n.edt.guardian_company,guardian_passport_number:n.edt.guardian_passport_number,guardian_relationship_code:n.edt.guardian_relationship_code,mother_salutation_code:n.edt.mother_salutation_code,mother_first_name:n.edt.mother_first_name,mother_middle_name:n.edt.mother_middle_name,mother_last_name:n.edt.mother_last_name,mother_family_name:n.edt.mother_family_name,mother_name_ot:n.edt.mother_name_ot,mother_nationality1_code:n.edt.mother_nationality1_code,mother_nationality2_code:n.edt.mother_nationality2_code,mother_appartment_number:n.edt.mother_appartment_number,mother_building_number:n.edt.mother_building_number,mother_street_number:n.edt.mother_street_number,mother_area_number:n.edt.mother_area_number,mother_city:n.edt.mother_city,mother_state:n.edt.mother_state,mother_country_code:n.edt.mother_country_code,mother_summary_address:n.edt.mother_summary_address,mother_po_box:n.edt.mother_po_box,mother_phone:n.edt.mother_phone,mother_mobile:n.edt.mother_mobile,mother_fax:n.edt.mother_fax,mother_email:n.edt.mother_email,mother_occupation:n.edt.mother_occupation,mother_passport_number:n.edt.mother_passport_number,current_school_status:n.edt.current_school_status,current_school_name:n.edt.current_school_name,current_school_enroll_number:n.edt.current_school_enroll_number,current_school_grade:n.edt.current_school_grade,current_school_cur:n.edt.current_school_cur,current_school_from_date:n.edt.current_school_from_date,current_school_to_date:n.edt.current_school_to_date,current_school_language:n.edt.current_school_language,current_school_head_teacher:n.edt.current_school_head_teacher,current_school_phone:n.edt.current_school_phone,current_school_fax:n.edt.current_school_fax,current_school_city:n.edt.current_school_city,current_school_country_code:n.edt.current_school_country_code,current_school_address:n.edt.current_school_address,marketing_code:n.edt.marketing_code,marketing_description:n.edt.marketing_description,parent_status_code:n.edt.parent_status_code,legal_custody_code:n.edt.legal_custody_code,health_card_number:n.edt.health_card_number,health_card_issue_date:n.edt.health_card_issue_date,health_card_issuing_authority:n.edt.health_card_issuing_authority,blood_group_code:n.edt.blood_group_code,medication_status:n.edt.medication_status,medication_desc:n.edt.medication_desc,disability_status:n.edt.disability_status,disability_desc:n.edt.disability_desc,behaviour_status:n.edt.behaviour_status,behaviour_desc:n.edt.behaviour_desc,health_restriction_status:n.edt.health_restriction_status,health_restriction_desc:n.edt.health_restriction_desc,health_hearing_status:n.edt.health_hearing_status,health_hearing_desc:n.edt.health_hearing_desc,health_vision_status:n.edt.health_vision_status,health_vision_desc:n.edt.health_vision_desc,health_other_status:n.edt.health_other_status,health_other_desc:n.edt.health_other_desc,gifted_status:n.edt.gifted_status,gifted_desc:n.edt.gifted_desc,music_status:n.edt.music_status,music_desc:n.edt.music_desc,sports_status:n.edt.sports_status,sports_desc:n.edt.sports_desc,language_support_status:n.edt.language_support_status,language_support_desc:n.edt.language_support_desc,declaration_status:n.edt.declaration_status,fees_paid_status:n.edt.fees_paid_status,fee_category_code:n.edt.fee_category_code,ip:n.edt.ip,dns:n.edt.dns,user_code:n.edt.user_code,status:n.edt.status,sims_student_attribute1:n.edt.sims_student_attribute1,sims_student_attribute2:n.edt.sims_student_attribute2,sims_student_attribute3:n.edt.sims_student_attribute3,sims_student_attribute4:n.edt.sims_student_attribute4,sims_student_health_respiratory_status:n.edt.sims_student_health_respiratory_status,sims_student_health_respiratory_desc:n.edt.sims_student_health_respiratory_desc,sims_student_health_hay_fever_status:n.edt.sims_student_health_hay_fever_status,sims_student_health_hay_fever_desc:n.edt.sims_student_health_hay_fever_desc,sims_student_health_epilepsy_status:n.edt.sims_student_health_epilepsy_status,sims_student_health_epilepsy_desc:n.edt.sims_student_health_epilepsy_desc,sims_student_health_skin_status:n.edt.sims_student_health_skin_status,sims_student_health_skin_desc:n.edt.sims_student_health_skin_desc,sims_student_health_diabetes_status:n.edt.sims_student_health_diabetes_status,sims_student_health_diabetes_desc:n.edt.sims_student_health_diabetes_desc,sims_student_health_surgery_status:n.edt.sims_student_health_surgery_status,sims_student_health_surgery_desc:n.edt.sims_student_health_surgery_desc,quota_code:n.edt.quota_code,sims_admission_mother_national_id:n.edt.sims_admission_mother_national_id,category_code:n.edt.category_code,opr:"I"},t.push(e),r.post(_.apiUrl+"api/common/ProspectDashboard/CUDUpdateProspectAdmission_Csd",t).then(function(e){n.display=!0,n.msg1=e.data,console.log(n.msg1),1==n.msg1.status&&swal({title:"Alert",text:n.msg1.strMessage,showCloseButton:!0,width:380}).then(function(e){e?n.Cancel():swal({title:"Alert",text:"Please fill mandatory fields.",showCloseButton:!0,width:380})})}))},n.get_legaldetails=function(e){"F"==e&&(n.edt.father_first_name=n.msg1.father_first_name,n.edt.father_middle_name=n.msg1.father_middle_name,n.edt.father_last_name=n.msg1.father_last_name,n.edt.father_summary_address=n.msg1.father_summary_address,n.edt.father_mobile=n.msg1.father_mobile,n.edt.father_email=n.msg1.father_email,n.edt.sims_admission_father_national_id=n.msg1.sims_parent_father_national_id,n.edt.father_nationality1_code=n.msg1.father_nationality1_code),"M"==e&&(n.edt.father_first_name=n.msg1.mother_first_name,n.edt.father_middle_name=n.msg1.mother_middle_name,n.edt.father_last_name=n.msg1.mother_last_name,n.edt.father_summary_address=n.msg1.mother_summary_address,n.edt.father_mobile=n.msg1.mother_mobile,n.edt.father_email=n.msg1.mother_email,n.edt.sims_admission_father_national_id=n.msg1.sims_parent_mother_national_id,n.edt.mother_nationality1_code=n.msg1.mother_nationality1_code),"G"==e&&(n.edt.father_first_name=n.msg1.guardian_first_name,n.edt.father_middle_name=n.msg1.guardian_middle_name,n.edt.father_last_name=n.msg1.guardian_last_name,n.edt.father_summary_address=n.msg1.guardian_summary_address,n.edt.father_mobile=n.msg1.guardian_mobile_no,n.edt.father_email=n.msg1.guardian_email_id,n.edt.sims_admission_father_national_id=n.msg1.sims_parent_guardian_national_id,n.edt.guardian_nationality1_code=n.msg1.guardian_nationality1_code)},n.getgrid=function(){n.edt=[],n.msg1="",n.myForm.$setPristine(),n.myForm.$setUntouched(),$('.nav-tabs a[href="#tab1"]').tab("show")},n.Update=function(e){var t=[];e&&(e={admission_number:n.edt.admission_number,appl_num:n.edt.appl_num,pros_num:n.edt.pros_num,pros_appl_num:n.edt.pros_appl_num,admission_date:n.edt.admission_date,school_code:n.edt.school_code,curr_code:n.edt.curr_code,academic_year:n.edt.academic_year,grade_code:n.edt.grade_code,section_code:n.edt.section_code,term_code:n.edt.term_code,tent_join_date:n.edt.tent_join_date,sims_student_emergency_contact_number1:n.edt.sims_student_emergency_contact_number1,sims_student_emergency_contact_name1:n.edt.sims_student_emergency_contact_name1,first_name:n.edt.first_name,middle_name:n.edt.middle_name,last_name:n.edt.last_name,family_name:n.edt.family_name,first_name_ot:n.edt.first_name_ot,midd_name_ot:n.edt.midd_name_ot,last_name_ot:n.edt.last_name_ot,family_name_ot:n.edt.family_name_ot,nicke_name:n.edt.nicke_name,birth_date:n.edt.birth_date,comm_date:n.edt.comm_date,birth_country_code:n.edt.birth_country_code,nationality_code:n.edt.nationality_code,ethinicity_code:n.edt.ethinicity_code,gender_code:n.edt.gender_code,religion_code:n.edt.religion_code,passport_num:n.edt.passport_num,passport_issue_date:n.edt.passport_issue_date,passport_expiry:n.edt.passport_expiry,passport_issue_auth:n.edt.passport_issue_auth,passport_issue_place:n.edt.passport_issue_place,visa_number:n.edt.visa_number,visa_type:n.edt.visa_type,visa_issuing_authority:n.edt.visa_issuing_authority,visa_issue_date:n.edt.visa_issue_date,visa_expiry_date:n.edt.visa_expiry_date,visa_issuing_place:n.edt.visa_issuing_place,national_id:n.edt.national_id,national_id_issue_date:n.edt.national_id_issue_date,national_id_expiry_date:n.edt.national_id_expiry_date,sibling_status:n.edt.sibling_status,parent_id:n.edt.parent_id,sibling_enroll:n.edt.sibling_enroll,sibling_name:n.edt.sibling_name,sibling_dob:n.edt.sibling_dob,sibling_school_code:n.edt.sibling_school_code,employee_type:n.edt.employee_type,employee_code:n.edt.employee_code,employee_school_code:n.edt.employee_school_code,motherTounge_language_code:n.edt.motherTounge_language_code,main_language_code:n.edt.main_language_code,main_language_r_code:n.edt.main_language_r_code,main_language_w_code:n.edt.main_language_w_code,main_language_s_code:n.edt.main_language_s_code,primary_contact_code:n.edt.primary_contact_code,primary_contact_pref_code:n.edt.primary_contact_pref_code,fee_payment_contact_pref_code:n.edt.fee_payment_contact_pref_code,transport_status:n.edt.transport_status,transport_desc:n.edt.transport_desc,father_salutation_code:n.edt.father_salutation_code,father_first_name:n.edt.father_first_name,father_middle_name:n.edt.father_middle_name,father_last_name:n.edt.father_last_name,father_family_name:n.edt.father_family_name,father_family_name_ot:n.edt.father_family_name_ot,father_nationality1_code:n.edt.father_nationality1_code,father_nationality2_code:n.edt.father_nationality2_code,father_appartment_number:n.edt.father_appartment_number,father_building_number:n.edt.father_building_number,father_street_number:n.edt.father_street_number,father_area_number:n.edt.father_area_number,father_city:n.edt.father_city,father_state:n.edt.father_state,father_country_code:n.edt.father_country_code,father_summary_address:n.edt.father_summary_address,father_po_box:n.edt.father_po_box,father_phone:n.edt.father_phone,father_email:n.edt.father_email,father_mobile:n.edt.father_mobile,father_fax:n.edt.father_fax,father_occupation:n.edt.father_occupation,father_company:n.edt.father_company,father_passport_number:n.edt.father_passport_number,sims_admission_father_national_id:n.edt.sims_admission_father_national_id,guardian_salutation_code:n.edt.guardian_salutation_code,guardian_first_name:n.edt.guardian_first_name,guardian_middle_name:n.edt.guardian_middle_name,guardian_last_name:n.edt.guardian_last_name,guardian_family_name:n.edt.guardian_family_name,guardian_nationality1_code:n.edt.guardian_nationality1_code,guardian_nationality2_code:n.edt.guardian_nationality2_code,guardian_appartment_number:n.edt.guardian_appartment_number,guardian_building_number:n.edt.guardian_building_number,guardian_street_number:n.edt.guardian_street_number,guardian_area_number:n.edt.guardian_area_number,guardian_city:n.edt.guardian_city,guardian_state:n.edt.guardian_state,guardian_country_code:n.edt.guardian_country_code,guardian_summary_address:n.edt.guardian_summary_address,guardian_po_box:n.edt.guardian_po_box,guardian_phone:n.edt.guardian_phone,guardian_mobile:n.edt.guardian_mobile,guardian_fax:n.edt.guardian_fax,guardian_email:n.edt.guardian_email,guardian_occupation:n.edt.guardian_occupation,guardian_company:n.edt.guardian_company,guardian_passport_number:n.edt.guardian_passport_number,guardian_relationship_code:n.edt.guardian_relationship_code,mother_salutation_code:n.edt.mother_salutation_code,mother_first_name:n.edt.mother_first_name,mother_middle_name:n.edt.mother_middle_name,mother_last_name:n.edt.mother_last_name,mother_family_name:n.edt.mother_family_name,mother_name_ot:n.edt.mother_name_ot,mother_nationality1_code:n.edt.mother_nationality1_code,mother_nationality2_code:n.edt.mother_nationality2_code,mother_appartment_number:n.edt.mother_appartment_number,mother_building_number:n.edt.mother_building_number,mother_street_number:n.edt.mother_street_number,mother_area_number:n.edt.mother_area_number,mother_city:n.edt.mother_city,mother_state:n.edt.mother_state,mother_country_code:n.edt.mother_country_code,mother_summary_address:n.edt.mother_summary_address,mother_po_box:n.edt.mother_po_box,mother_phone:n.edt.mother_phone,mother_mobile:n.edt.mother_mobile,mother_fax:n.edt.mother_fax,mother_email:n.edt.mother_email,mother_occupation:n.edt.mother_occupation,mother_passport_number:n.edt.mother_passport_number,current_school_status:n.edt.current_school_status,current_school_name:n.edt.current_school_name,current_school_enroll_number:n.edt.current_school_enroll_number,current_school_grade:n.edt.current_school_grade,current_school_cur:n.edt.current_school_cur,current_school_from_date:n.edt.current_school_from_date,current_school_to_date:n.edt.current_school_to_date,current_school_language:n.edt.current_school_language,current_school_head_teacher:n.edt.current_school_head_teacher,current_school_phone:n.edt.current_school_phone,current_school_fax:n.edt.current_school_fax,current_school_city:n.edt.current_school_city,current_school_country_code:n.edt.current_school_country_code,current_school_address:n.edt.current_school_address,marketing_code:n.edt.marketing_code,marketing_description:n.edt.marketing_description,parent_status_code:n.edt.parent_status_code,legal_custody_code:n.edt.legal_custody_code,health_card_number:n.edt.health_card_number,health_card_issue_date:n.edt.health_card_issue_date,health_card_issuing_authority:n.edt.health_card_issuing_authority,blood_group_code:n.edt.blood_group_code,medication_status:n.edt.medication_status,medication_desc:n.edt.medication_desc,disability_status:n.edt.disability_status,disability_desc:n.edt.disability_desc,behaviour_status:n.edt.behaviour_status,behaviour_desc:n.edt.behaviour_desc,health_restriction_status:n.edt.health_restriction_status,health_restriction_desc:n.edt.health_restriction_desc,health_hearing_status:n.edt.health_hearing_status,health_hearing_desc:n.edt.health_hearing_desc,health_vision_status:n.edt.health_vision_status,health_vision_desc:n.edt.health_vision_desc,health_other_status:n.edt.health_other_status,health_other_desc:n.edt.health_other_desc,gifted_status:n.edt.gifted_status,gifted_desc:n.edt.gifted_desc,music_status:n.edt.music_status,music_desc:n.edt.music_desc,sports_status:n.edt.sports_status,sports_desc:n.edt.sports_desc,language_support_status:n.edt.language_support_status,language_support_desc:n.edt.language_support_desc,declaration_status:n.edt.declaration_status,fees_paid_status:n.edt.fees_paid_status,fee_category_code:n.edt.fee_category_code,ip:n.edt.ip,dns:n.edt.dns,user_code:n.edt.user_code,status:n.edt.status,sims_student_attribute1:n.edt.sims_student_attribute1,sims_student_attribute2:n.edt.sims_student_attribute2,sims_student_attribute3:n.edt.sims_student_attribute3,sims_student_attribute4:n.edt.sims_student_attribute4,sims_student_health_respiratory_status:n.edt.sims_student_health_respiratory_status,sims_student_health_respiratory_desc:n.edt.sims_student_health_respiratory_desc,sims_student_health_hay_fever_status:n.edt.sims_student_health_hay_fever_status,sims_student_health_hay_fever_desc:n.edt.sims_student_health_hay_fever_desc,sims_student_health_epilepsy_status:n.edt.sims_student_health_epilepsy_status,sims_student_health_epilepsy_desc:n.edt.sims_student_health_epilepsy_desc,sims_student_health_skin_status:n.edt.sims_student_health_skin_status,sims_student_health_skin_desc:n.edt.sims_student_health_skin_desc,sims_student_health_diabetes_status:n.edt.sims_student_health_diabetes_status,sims_student_health_diabetes_desc:n.edt.sims_student_health_diabetes_desc,sims_student_health_surgery_status:n.edt.sims_student_health_surgery_status,sims_student_health_surgery_desc:n.edt.sims_student_health_surgery_desc,quota_code:n.edt.quota_code,sims_admission_recommendation:n.edt.sims_admission_recommendation,category_code:n.edt.category_code,sims_book_tour_preferred_date:n.edt.sims_book_tour_preferred_date,opr:"U"},t.push(e),r.post(_.apiUrl+"api/common/ProspectDashboard/CUDUpdateProspectAdmission_Csd",t).then(function(e){n.display=!0,n.msg1=e.data,console.log(n.msg1),1==n.msg1.status&&swal({title:"Alert",text:n.msg1.strMessage,showCloseButton:!0,width:380}).then(function(e){e&&n.modal_cancel()})}))},n.modal_cancel=function(){"clarionschool"==r.defaults.headers.common.schoolId||"alpha"==r.defaults.headers.common.schoolId?e.go("main.PrCsd",{Class:t.Class}):e.go("main.Prsiso",{Class:t.Class}),console.log(t.Class)},n.back=function(){n.modal_cancel()},n.schoolcheck=function(){1==n.edt.current_school_status?n.school_edit=!1:n.school_edit=!0},n.chk_desc=function(){1==n.edt.marketing_code?n.desc_edit=!1:n.desc_edit=!0},n.chk_cicumstances=function(){1==n.edt.parent_status_code?n.circum_edit=!1:n.circum_edit=!0},n.chk_disab_status=function(){1==n.edt.disability_status?n.disab_edit=!1:n.disab_edit=!0},n.chk_health_res=function(){1==n.edt.health_restriction_status?n.healthres_edit=!1:n.healthres_edit=!0},n.chk_medic_status=function(){1==n.edt.medication_status?n.med_edit=!1:n.med_edit=!0},n.chk_other=function(){1==n.edt.health_other_status?n.other_edit=!1:n.other_edit=!0},n.chk_hearing=function(){1==n.edt.health_hearing_status?n.hearing_edit=!1:n.hearing_edit=!0},n.chk_vision=function(){1==n.edt.health_vision_status?n.health_vision_edit=!1:n.health_vision_edit=!0},n.chk_behaviour=function(){1==n.edt.behaviour_status?n.behaviour_edit=!1:n.behaviour_edit=!0},n.chk_gifted_status=function(){1==n.edt.gifted_status?n.gifted_edit=!1:n.gifted_edit=!0},n.chk_music_pro=function(){1==n.edt.music_status?n.music_edit=!1:n.music_edit=!0},n.chk_sport_pro=function(){1==n.edt.sports_status?n.sport_edit=!1:n.sport_edit=!0},n.chk_lang_sup=function(){1==n.edt.language_support_status?n.lang_sup_edit=!1:n.lang_sup_edit=!0},n.chk_Pri_contact=function(){1==n.edt.primary_contact_code?n.pricont_edit=!1:n.pricont_edit=!0},n.chk_transport_requin=function(){1==n.edt.transport_status?n.transreq_edit=!1:n.transreq_edit=!0},n.chk_employee=function(){1==n.edt.employee_type?n.emp_edit=!1:n.emp_edit=!0},n.chk_studyingin=function(){1==n.edt.sibling_status?(n.Study_edit=!1,document.getElementById("t3"),document.getElementById("t4"),document.getElementById("t5"),n.t=!1):(n.Study_edit=!0,document.getElementById("t3"),document.getElementById("t4"),document.getElementById("t5"),n.t=!0)},n.chk_ticking=function(){1==n.edt.declaration_status?(n.tick_edit=!1,n.confirm_edit=!0):(n.tick_edit=!0,n.confirm_edit=!1)},n.chk_copy_mother_add=function(){1==n.edt.copy_add?(n.edt.mother_appartment_number=n.edt.father_appartment_number,n.edt.mother_area_number=n.edt.father_area_number,n.edt.mother_building_number=n.edt.father_building_number,n.edt.mother_street_number=n.edt.father_street_number,n.edt.mother_city=n.edt.father_city,n.edt.mother_state=n.edt.father_state,n.edt.mother_country_code=n.edt.father_country_code,n.edt.mother_po_box=n.edt.father_po_box,n.edt.mother_nationality1_code=n.edt.father_nationality1_code,n.edt.mother_nationality2_code=n.edt.father_nationality2_code,n.edt.mother_summary_address=n.edt.father_summary_address,n.edt.mother_phone=n.edt.father_phone,n.edt.mother_po_box=n.edt.father_po_box,n.edt.mother_mobile=n.edt.father_mobile,n.edt.mother_occupation=n.edt.father_occupation,n.edt.mother_email=n.edt.father_email,n.edt.mother_company=n.edt.father_company):(n.edt.mother_appartment_number="",n.edt.mother_area_number="",n.edt.mother_building_number="",n.edt.mother_street_number="",n.edt.mother_city="",n.edt.mother_state="",n.edt.mother_country_code="",n.edt.mother_po_box="",n.edt.mother_nationality1_code="",n.edt.mother_nationality2_code="",n.edt.mother_summary_address="",n.edt.mother_phone="",n.edt.mother_po_box="",n.edt.mother_mobile="",n.edt.mother_occupation="",n.edt.mother_email="",n.edt.mother_company="")},n.chk_copy_guar_add1=function(){1==n.edt.copy_add1?(n.edt.guardian_appartment_number=n.edt.father_appartment_number,n.edt.guardian_area_number=n.edt.father_area_number,n.edt.guardian_building_number=n.edt.father_building_number,n.edt.guardian_street_number=n.edt.father_street_number,n.edt.guardian_city=n.edt.father_city,n.edt.guardian_state=n.edt.father_state,n.edt.guardian_country_code=n.edt.father_country_code,n.edt.guardian_po_box=n.edt.father_po_box,n.edt.guardian_nationality1_code=n.edt.father_nationality1_code,n.edt.guardian_nationality2_code=n.edt.father_nationality2_code,n.edt.guardian_summary_address=n.edt.father_summary_address,n.edt.guardian_phone=n.edt.father_phone,n.edt.guardian_po_box=n.edt.father_po_box,n.edt.guardian_mobile=n.edt.father_mobile,n.edt.guardian_occupation=n.edt.father_occupation,n.edt.guardian_email=n.edt.father_email,n.edt.guardian_company=n.edt.father_company):(n.edt.guardian_appartment_number="",n.edt.guardian_area_number="",n.edt.guardian_building_number="",n.edt.guardian_street_number="",n.edt.guardian_city="",n.edt.guardian_state="",n.edt.guardian_country_code="",n.edt.guardian_po_box="",n.edt.guardian_nationality1_code="",n.edt.guardian_nationality2_code="",n.edt.guardian_summary_address="",n.edt.guardian_phone="",n.edt.guardian_po_box="",n.edt.guardian_mobile="",n.edt.guardian_occupation="",n.edt.guardian_email="",n.edt.guardian_company="")},n.GetFatherSumAddr=function(){var e=document.getElementById("cmb_father_country").options[document.getElementById("cmb_father_country").selectedIndex].text,t=($("#txt_father_aprt").val().length,$("#txt_father_build").val().length,$("#txt_father_Street").val().length,$("#txt_father_area").val().length),a=$("#txt_father_city").val().length,s=$("#txt_father_state").val().length,o=$("#cmb_father_country").val().length,n=$("#txt_father_pobox").val().length;document.getElementById("txt_father_summary_add").value=0<$("#txt_father_aprt").val().length?document.getElementById("txt_father_aprt").value+",":"",document.getElementById("txt_father_summary_add").value+=0<$("#txt_father_build").val().length?document.getElementById("txt_father_build").value+",":"",document.getElementById("txt_father_summary_add").value+=0<$("#txt_father_Street").val().length?document.getElementById("txt_father_Street").value+",":"",document.getElementById("txt_father_summary_add").value+=0{o.finalOBJ=[],o.finalOBJ.sims_grade_code=a,o.distinct_attendance_code.forEach(t=>{o.gradeObj=o.daily_attendance_code_wise_status.filter(e=>{e.sims_grade_code===a&&e.sims_attendance_day_attendance_code===t&&(o.finalOBJ.sims_grade_name_en=e.sims_grade_name_en,o.finalOBJ[e.sims_attendance_day_attendance_code]=e.sims_attendance_value_count)})}),o.finalOBJList.push(o.finalOBJ)})}),n.get(r.apiUrl+"api/attendanceDashAnalysis/getAttendanceAnalysis_new?opr=G").then(function(e){o.daily_attendance_code_wise_status=e.data,o.unique=[],o.distinct_grade=[],o.distinct_attendance_code=[],o.distinct_attendance_description=[];for(let e=0;e{o.finalOBJ=[],o.finalOBJ.sims_grade_code=a,o.distinct_attendance_code.forEach(t=>{o.gradeObj=o.daily_attendance_code_wise_status.filter(e=>{e.sims_grade_code===a&&e.sims_attendance_day_attendance_code===t&&(o.finalOBJ.sims_grade_name_en=e.sims_grade_name_en,o.finalOBJ[e.sims_attendance_day_attendance_code]=e.sims_attendance_value_count)})}),o.finalOBJList1.push(o.finalOBJ)})}),n.get(r.apiUrl+"api/attendanceDashAnalysis/getAttendanceAnalysis_new?opr=H").then(function(e){o.daily_attendance_code_wise_status=e.data,o.unique=[],o.distinct_grade=[],o.distinct_attendance_code=[],o.distinct_attendance_description=[];for(let e=0;e{o.finalOBJ=[],o.finalOBJ.sims_grade_code=a,o.distinct_attendance_code.forEach(t=>{o.gradeObj=o.daily_attendance_code_wise_status.filter(e=>{e.sims_grade_code===a&&e.sims_attendance_day_attendance_code===t&&(o.finalOBJ.sims_grade_name_en=e.sims_grade_name_en,o.finalOBJ[e.sims_attendance_day_attendance_code]=e.sims_attendance_value_count)})}),o.finalOBJList2.push(o.finalOBJ)})}),n.get(r.apiUrl+"api/attendanceDashAnalysis/getAttendanceAnalysis_total").then(function(e){o.daily_status_total=e.data}),n.get(r.apiUrl+"api/attendanceDashAnalysis/getAbsentStudentList").then(function(e){o.absent_list=e.data}),n.get(r.apiUrl+"api/attendanceDashAnalysis/getmonth").then(function(e){if(o.months=e.data,0t;t++)0==o.studentIntakeData[t].enquiry_cnt&&0==o.studentIntakeData[t].reg_stud&&0==o.studentIntakeData[t].paid_stud?o.errormsg="Data Not Available":(o.dash1_total_lst.push(o.studentIntakeData[t].enquiry_cnt),o.dash1_total_lst.push(o.studentIntakeData[t].reg_stud),o.dash1_total_lst.push(o.studentIntakeData[t].paid_stud)),0==o.studentIntakeData[t].per_stud_reg_to_enq&&0==o.studentIntakeData[t].per_stud_paid_to_enq&&o.studentIntakeData[t].per_stud_paid_to_reg?o.errormsg="Data Not Available":(o.dash1_recieved_lst.push(o.studentIntakeData[t].per_stud_paid_to_enq),o.dash1_recieved_lst.push(o.studentIntakeData[t].per_stud_reg_to_enq),o.dash1_recieved_lst.push(o.studentIntakeData[t].per_stud_paid_to_reg));setTimeout(function(){var e=document.getElementById("compBarChart2").getContext("2d"),t={labels:["Enq.Recieved","Stud Reg","Paid Fee"],datasets:[{label:"Total No.",backgroundColor:["#FF5A5E","#5AD3D1","#9467bd"],borderColor:["#FF5A5E","#5AD3D1","#9467bd"],data:o.dash1_total_lst}]};window.bar3=new Chart(e,{type:"bar",data:t,options:{legend:{display:!1},title:{display:!0,text:"Total No. Of Student",position:"bottom"}}})},300);var e=document.getElementById("compBarChart4").getContext("2d"),a={labels:["Reg.Student enq. recieved(%)","Student paid to enq. recieved(%)","Student paid to reg.students(%)"],datasets:[{data:o.dash1_recieved_lst,backgroundColor:["#FF5A5E","#5AD3D1","#9467bd"]}]};window.bar4=new Chart(e,{type:"pie",data:a,options:{legend:{display:!0,labels:{boxWidth:10,fontSize:10}},title:{display:!0,text:"Percentage Of Student",position:"bottom"}}})})},o.getDatafirstGraph=function(e,t){o.dash1_recieved_lst=[],o.dash1_total_lst=[],null!=window.bar&&window.bar.destroy(),null!=window.bar1&&window.bar1.destroy(),n.get(r.apiUrl+"api/analysisreport/getStudentIntakeData?curCode="+e+"&acaYear="+t).then(function(e){if(o.studentIntakeData=e.data,0t;t++)0==o.studentIntakeData[t].enquiry_cnt&&0==o.studentIntakeData[t].reg_stud&&0==o.studentIntakeData[t].paid_stud?o.errormsg="Data Not Available":(o.dash1_total_lst.push(o.studentIntakeData[t].enquiry_cnt),o.dash1_total_lst.push(o.studentIntakeData[t].reg_stud),o.dash1_total_lst.push(o.studentIntakeData[t].paid_stud)),0==o.studentIntakeData[t].per_stud_reg_to_enq&&0==o.studentIntakeData[t].per_stud_paid_to_enq&&o.studentIntakeData[t].per_stud_paid_to_reg?o.errormsg="Data Not Available":(o.dash1_recieved_lst.push(o.studentIntakeData[t].per_stud_paid_to_enq),o.dash1_recieved_lst.push(o.studentIntakeData[t].per_stud_reg_to_enq),o.dash1_recieved_lst.push(o.studentIntakeData[t].per_stud_paid_to_reg));var e=document.getElementById("compBarChart").getContext("2d"),a=(e.canvas.parentNode.style.height="120px",{labels:["Enq Rec","Stud Reg","Paid Fee"],datasets:[{label:"Total No.",backgroundColor:["#FF5A5E","#5AD3D1","#9467bd"],borderColor:["#FF5A5E","#5AD3D1","#9467bd"],data:o.dash1_total_lst}]}),e=(window.bar=new Chart(e,{type:"bar",data:a,options:{legend:{display:!1},title:{display:!0,text:"Total No. Of Student",position:"bottom"}}}),document.getElementById("compBarChart3").getContext("2d")),a=(e.canvas.parentNode.style.height="128px",{labels:["Reg.Student enq. recieved(%)","Student paid to enq. recieved(%)","Student paid to reg.students(%)"],datasets:[{data:o.dash1_recieved_lst,backgroundColor:["#FF5A5E","#5AD3D1","#9467bd"]}]});window.bar1=new Chart(e,{type:"pie",data:a,options:{legend:{display:!1,labels:{boxWidth:10,fontSize:10,position:"bottom"}},title:{display:!0,text:"Percentage Of Student",position:"bottom"}}})}else o.errormsg="Data Not Available"})},o.showTableData=function(){o.hideGraph=!1},o.showGraph=function(){o.hideGraph=!0},o.showsecondgraphTablemonth=function(){o.hideGraph=!1},o.showsecondgraphmonth=function(){o.hideGraph=!0},o.getSecondAcademicYearmonth=function(e){n.get(r.apiUrl+"api/analysisreport/getAcademicYear?cur_code="+e).then(function(e){o.secondacademicYears=e.data,o.edt.academic_year_statmonth=o.secondacademicYears[0].academic_year,o.graphStudentStatusmonth(o.edt.cur_code_statmonth,o.edt.academic_year_statmonth)})},o.graphStudentStatusmonth=function(e,t){o.month_grades_lst=[],o.month_att_month_lst=[],o.month_sims_attendance_date_lst=[],o.month_present_lst=[],o.month_absent_lst=[],o.month_others_students_lst=[],o.month_unmark_lst=[],null!=window.bar5&&window.bar5.destroy(),n.get(r.apiUrl+"api/attendanceDashAnalysis/getStudentAnalysisGraph1?curCode="+e+"&acaYear="+t+"&month="+o.edt.sims_appl_parameter).then(function(e){o.studStsChartDatamonth=e.data;for(var t=0;td.temp.sims_elective_subject){swal("Select Max "+d.temp.sims_elective_subject+" Subject"),d.temp.subject_code="";try{$("#cmb_subject").multipleSelect("uncheckAll")}catch(e){}}else if(d.selectedsubs.lengthd.temp.sims_elective_subject)swal("Select Max "+d.temp.sims_elective_subject+" Subject"),d.temp.subject_code="",$("#cmb_subject").multipleSelect("setSelects","");else if(d.selectedsubs.lengthn.subleng&&(n.sub=o.split(","),e="#cmb_Subject_code"+a,swal({title:"Alert",text:"Please select max "+n.subleng+" compulsory subject.",width:380,height:200}),$(e).multipleSelect("setSelects",n.sub))},n.CheckAllChecked=function(){if(1==(d=document.getElementById("mainchk")).checked)for(var e=0;e
"+o.getString("Form Field Value 1")+" "+o.getString("Form Field Value 2")+" "+o.getString("Form Field Value 3")+""+o.getString("Form Field Value 4")+""+o.getString("Form Field Value 5")+"
"+e.comn_appl_form_field_value1+" "+e.comn_appl_form_field_value2+" "+e.comn_appl_form_field_value3+""+e.comn_appl_form_field_value4+""+e.comn_appl_form_field_value5+"
"),$(t.currentTarget).parents("tr").after(i),a.flag=!1):($("#innerRow").css({display:"none"}),e.icon="fa fa-plus-circle",a.flag=!0)},a.size=function(e){"All"==e?(a.currentPage="1",a.filteredTodos=a.parameter_data,a.pager=!1):(a.pager=!0,a.pagesize=e,a.currentPage=1,a.numPerPage=e,a.makeTodos())},a.index=function(e){a.pageindex=e,a.currentPage=e,console.log("currentPage="+a.currentPage),a.makeTodos()},a.searched=function(e,a){return _.filter(e,function(e){return t=a,-1<(e=e).comn_mod_name.toLowerCase().indexOf(t.toLowerCase())||-1d.temp.sims_agenda_edate&&(swal({title:"Alert",text:"End date should be greater than Start date",showCloseButton:!0,width:300,height:200}),d.temp.sims_agenda_edate="")},d.clear=function(){d.temp="",d.filteredTodos=[],d.agenda_grid=!1,d.PageSize_Search=!1,d.pageSize_txt=!1,d.search_txt=!1},c.get(l.apiUrl+"api/Agenda/getAll_Agenda_Details").then(function(e){d.agenda_Details=e.data,d.totalItems=d.agenda_Details.length,d.todos=d.agenda_Details,d.makeTodos(),console.log(d.agenda_Details)}),d.printDiv=function(e){var t=document.head.outerHTML,e=document.getElementById(e).outerHTML,a=window.open("","_blank","location=yes, statusbar=no, menubar=no, titlebar=no, toolbar=no,dependent=no, width=865, height=600, resizable=yes, screenX=200, screenY=200, personalbar=no, scrollbars=yes"),s=a.document;s.open(),s.write(""+t+''+e+""),s.close(),a.focus()},d.exportAction=function(){$("#test").tableExport({type:"pdf",pdfFontSize:"7",escape:"false"})},d.exportData=function(){swal({title:"",text:"Are you sure you want to Save?",showCloseButton:!0,showCancelButton:!0,confirmButtonText:"Yes",width:380,cancelButtonText:"No"}).then(function(e){e&&(e=new Blob([document.getElementById("example_wrapper").innerHTML],{type:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet;charset=utf-8"}),saveAs(e,"Report.xls"))})},d.expand=function(e,t){"none"==e.sims_isexpanded?(e.sims_icon="fa fa-minus-circle",e.sims_isexpanded="grid"):(e.sims_icon="fa fa-plus-circle",e.sims_isexpanded="none")},d.teacher_data=function(e,t,a,s,o,n,r){c.get(l.apiUrl+"api/getComnFile/getTeacherObservation_ASD?cur_code="+e+"&acad_year="+t+"&grade="+a+"§ion="+s+"&subject="+o+"&from_date="+n+"&to_date="+r).then(function(e){d.teacher_Details=e.data,0=s.temp.em_date_of_join&&(swal({title:"Alert",text:"Date Of Join Should greater than Date of Birth",width:300,height:200}),s.temp.em_date_of_join="")},s.checkPassport=function(){s.temp.em_passport_exp_datee.section_fee_type_display_order-t.section_fee_type_display_order),o.searhcResult.sort((e,t)=>t.section_fee_status-e.section_fee_status);for(let e=0;e
JanuaryFebruary March AprilMay JuneJulyAugustSeptemberOctoberNovemberDecember
"+'
"),$(t.currentTarget).parents("tr").after(d),o.flag=!1;else{$("#innerRow").css({display:"none"});for(let e=0;e{Object.keys(t).forEach(e=>{e.startsWith("sims_fee_period")&&(t[e]=parseFloat(t[e]).toFixed(2)),t.hasOwnProperty("sims_fee_amount")&&(t.sims_fee_amount=parseFloat(t.sims_fee_amount).toFixed(2)),t.hasOwnProperty("sims_fee_installment_min_amount")&&(t.sims_fee_installment_min_amount=parseFloat(t.sims_fee_installment_min_amount).toFixed(2))})}),n.loading=!1,0"+t+''+a+""),n.close(),o.focus(),r.detailsField=!1):(t=document.head.outerHTML,a=document.getElementById("pdf_print1").outerHTML,s="location=yes, statusbar=no, menubar=no, titlebar=no, toolbar=no,dependent=no, width=800, height=600, resizable=yes, screenX=250, screenY=10, personalbar=no, scrollbars=yes",(n=(o=window.open("","_blank",s)).document).open(),n.write(""+t+''+a+""),n.close(),o.focus()),r.detailsField=!1,r.colsvis=!1,r.getDetails())})},r.report_show=!0,r.Report_call=function(a){$("#feemodal").modal("show"),r.report_show=!1,o.get(n.apiUrl+"api/family_statement/getReport").then(function(e){r.result1=e.data,e="R"==r.temp.report_status?{location:r.result1[0].sims_appl_form_field_value1,parameter:{cur_code:r.temp.sims_cur_code,acad_year:r.temp.sims_academic_year,parent_flag:1,user_no:a.sims_enroll_number,from_date:moment(r.from_date,"DD-MM-YYYY").format("YYYY-MM-DD"),other_fee_flag:r.temp.other_fee_flag,cumfeeflag:r.temp.cumfeeflag,printedby:m,as_date:r.from_date},state:"main.FMLANA",ready:function(){this.refreshReport()}}:{location:r.result1[0].sims_appl_form_field_value1,parameter:{cur_code:r.temp.sims_cur_code,acad_year:r.temp.sims_academic_year,parent_flag:2,user_no:a.sims_parent_number,from_date:moment(r.from_date,"DD-MM-YYYY").format("YYYY-MM-DD"),other_fee_flag:r.temp.other_fee_flag,cumfeeflag:r.temp.cumfeeflag,printedby:m,as_date:r.from_date},state:"main.FMLANA",ready:function(){this.refreshReport()}},window.localStorage.ReportDetails=JSON.stringify(e);try{r.rpt=JSON.parse(window.localStorage.ReportDetails),r.location=r.rpt.location,r.parameter=r.rpt.parameter,r.state=r.rpt.state}catch(e){}var e="SimsReports."+r.location+",SimsReports",t=i.GetRpt_url();console.log(t),r.parameters={},$("#reportViewer1").telerik_ReportViewer({serviceUrl:t,viewMode:telerikReportViewer.ViewModes.INTERACTIVE,scaleMode:telerikReportViewer.ScaleModes.SPECIFIC,scale:1,ready:function(){}}),$("#reportViewer1").data("telerik_ReportViewer").reportSource({report:e,parameters:r.parameter}),setInterval(function(){$("#k-item k-state-default k-state-disabled").css({display:"block"}),$(".trv-report-viewer input[type=number]").css({"min-height":"0px"})},1e3),s(function(){$("#k-item k-state-default k-state-disabled").css({display:"block"}),$(".trv-report-viewer input[type=number]").css({"min-height":"0px"})},100)})},r.reset=function(){r.filteredTodos=[],r.pager=!1,r.temp.sltr_tran_amt_dr_total=0,r.temp.sltr_tran_amt_cr_total=0,r.temp.pdc_amount_total=0,r.temp.net_amt_total=0,r.temp.perc_amt_total=0},r.sortBy=function(e){r.reverse=r.propertyName===e&&!r.reverse,r.propertyName=e},r.ischeck=function(){r.checklick=function(){var e=document.getElementById("expire");1==e.checked&&e.checked}},r.communication=function(e){$("#feemodal").modal("hide"),r.busy=!0,r.parentstudent=[],r.parent_id=e.sims_parent_number,r.parent_name=e.father_name,r.parent_contact=e.parent_contact_number,r.getcommunicationdetailsl(r.parent_id),r.IP={},r.IP.cur_shrt_name=e.sims_cur_code,r.IP.sims_academic_year=e.sims_academic_year,r.IP.sims_student_enroll_number=e.sims_parent_number,o.get(n.apiUrl+"api/StudentReport/getAdmRemarkStudList_ABQIS?data="+JSON.stringify(r.IP)).then(function(e){r.paymentPlanDetails=e.data.table,0"+t+''+a+""),n.close(),o.focus(),r.detailsField=!1):(t=document.head.outerHTML,a=document.getElementById("pdf_print1").outerHTML,s="location=yes, statusbar=no, menubar=no, titlebar=no, toolbar=no,dependent=no, width=800, height=600, resizable=yes, screenX=250, screenY=10, personalbar=no, scrollbars=yes",(n=(o=window.open("","_blank",s)).document).open(),n.write(""+t+''+a+""),n.close(),o.focus()),r.detailsField=!1,r.colsvis=!1,r.getDetails())})},r.report_show=!0,r.Report_call=function(a){$("#feemodal").modal("show"),r.report_show=!1,o.get(n.apiUrl+"api/family_statement/getReport").then(function(e){r.result1=e.data,e="R"==r.temp.report_status?{location:r.result1[0].sims_appl_form_field_value1,parameter:{cur_code:r.temp.sims_cur_code,acad_year:r.temp.sims_academic_year,parent_flag:1,user_no:a.sims_enroll_number,from_date:moment(r.from_date,"DD-MM-YYYY").format("YYYY-MM-DD"),other_fee_flag:r.temp.other_fee_flag,cumfeeflag:r.temp.cumfeeflag,printedby:m,as_date:r.from_date},state:"main.FMLANA",ready:function(){this.refreshReport()}}:{location:r.result1[0].sims_appl_form_field_value1,parameter:{cur_code:r.temp.sims_cur_code,acad_year:r.temp.sims_academic_year,parent_flag:2,user_no:a.sims_parent_number,from_date:moment(r.from_date,"DD-MM-YYYY").format("YYYY-MM-DD"),other_fee_flag:r.temp.other_fee_flag,cumfeeflag:r.temp.cumfeeflag,printedby:m,as_date:r.from_date},state:"main.FMLANA",ready:function(){this.refreshReport()}},window.localStorage.ReportDetails=JSON.stringify(e);try{r.rpt=JSON.parse(window.localStorage.ReportDetails),r.location=r.rpt.location,r.parameter=r.rpt.parameter,r.state=r.rpt.state}catch(e){}var e="SimsReports."+r.location+",SimsReports",t=i.GetRpt_url();console.log(t),r.parameters={},$("#reportViewer1").telerik_ReportViewer({serviceUrl:t,viewMode:telerikReportViewer.ViewModes.INTERACTIVE,scaleMode:telerikReportViewer.ScaleModes.SPECIFIC,scale:1,ready:function(){}}),$("#reportViewer1").data("telerik_ReportViewer").reportSource({report:e,parameters:r.parameter}),setInterval(function(){$("#k-item k-state-default k-state-disabled").css({display:"block"}),$(".trv-report-viewer input[type=number]").css({"min-height":"0px"})},1e3),s(function(){$("#k-item k-state-default k-state-disabled").css({display:"block"}),$(".trv-report-viewer input[type=number]").css({"min-height":"0px"})},100)})},r.reset=function(){r.filteredTodos=[],r.pager=!1,r.temp.sltr_tran_amt_dr_total=0,r.temp.sltr_tran_amt_cr_total=0,r.temp.pdc_amount_total=0,r.temp.net_amt_total=0,r.temp.perc_amt_total=0},r.sortBy=function(e){r.reverse=r.propertyName===e&&!r.reverse,r.propertyName=e},r.ischeck=function(){r.checklick=function(){var e=document.getElementById("expire");1==e.checked&&e.checked}},r.communication=function(t){$("#feemodal").modal("hide"),r.busy=!0,r.parentstudent=[],r.paymentPlanDetails=[],r.registration_status="",r.fees_payment_plan="",r.sims_promote_remark="",r.check_remark_flag=!1,r.sims_edit_remark=!0,r.parent_id=t.sims_parent_number,r.parent_name=t.father_name,r.parent_contact=t.parent_contact_number,r.getcommunicationdetailsl(r.parent_id),r.IP={},r.IP.cur_shrt_name=t.sims_cur_code,r.IP.sims_academic_year=t.sims_academic_year,r.IP.sims_student_enroll_number=t.sims_parent_number,o.get(n.apiUrl+"api/StudentReport/getAdmRemarkStudList_ABQIS?data="+JSON.stringify(r.IP)).then(function(e){r.paymentPlanDetails=e.data.table,0=parseFloat(t)&&0"+t+''+a+""),n.close(),o.focus(),r.detailsField=!1):(t=document.head.outerHTML,a=document.getElementById("pdf_print1").outerHTML,s="location=yes, statusbar=no, menubar=no, titlebar=no, toolbar=no,dependent=no, width=800, height=600, resizable=yes, screenX=250, screenY=10, personalbar=no, scrollbars=yes",(n=(o=window.open("","_blank",s)).document).open(),n.write(""+t+''+a+""),n.close(),o.focus()),r.detailsField=!1,r.colsvis=!1,r.getDetails())})},r.report_show=!0,r.Report_call=function(a){$("#feemodal").modal("show"),r.report_show=!1,o.get(n.apiUrl+"api/family_statement/getReport").then(function(e){r.result1=e.data,e="S"==r.temp.report_status?{location:r.result1[0].sims_appl_form_field_value1,parameter:{cur_code:r.temp.sims_cur_code,acad_year:r.temp.sims_academic_year,parent_flag:1,user_no:a.sims_enroll_number,from_date:moment(r.from_date,"DD-MM-YYYY").format("YYYY-MM-DD"),other_fee_flag:r.temp.other_fee_flag,cumfeeflag:r.temp.cumfeeflag,printedby:m,as_date:r.from_date},state:"main.FMLANA",ready:function(){this.refreshReport()}}:{location:r.result1[0].sims_appl_form_field_value1,parameter:{cur_code:r.temp.sims_cur_code,acad_year:r.temp.sims_academic_year,parent_flag:2,user_no:a.sims_parent_number,other_fee_flag:r.temp.other_fee_flag,cumfeeflag:r.temp.cumfeeflag,printedby:m,as_date:r.from_date},state:"main.FMLANA",ready:function(){this.refreshReport()}},window.localStorage.ReportDetails=JSON.stringify(e);try{r.rpt=JSON.parse(window.localStorage.ReportDetails),r.location=r.rpt.location,r.parameter=r.rpt.parameter,r.state=r.rpt.state}catch(e){}var e="SimsReports."+r.location+",SimsReports",t=i.GetRpt_url();console.log(t),r.parameters={},$("#reportViewer1").telerik_ReportViewer({serviceUrl:t,viewMode:telerikReportViewer.ViewModes.INTERACTIVE,scaleMode:telerikReportViewer.ScaleModes.SPECIFIC,scale:1,ready:function(){}}),$("#reportViewer1").data("telerik_ReportViewer").reportSource({report:e,parameters:r.parameter}),setInterval(function(){$("#k-item k-state-default k-state-disabled").css({display:"block"}),$(".trv-report-viewer input[type=number]").css({"min-height":"0px"})},1e3),s(function(){$("#k-item k-state-default k-state-disabled").css({display:"block"}),$(".trv-report-viewer input[type=number]").css({"min-height":"0px"})},100)})},r.reset=function(){r.filteredTodos=[],r.pager=!1,r.temp.sltr_tran_amt_dr_total=0,r.temp.sltr_tran_amt_cr_total=0,r.temp.pdc_amount_total=0,r.temp.net_amt_total=0,r.temp.perc_amt_total=0},r.sortBy=function(e){r.reverse=r.propertyName===e&&!r.reverse,r.propertyName=e},r.ischeck=function(){r.checklick=function(){var e=document.getElementById("expire");1==e.checked&&e.checked}},r.communication=function(t){"A"==t.legal_case?r.legal_status_visible=!0:r.legal_status_visible=!1;var e={opr:"V",sims_parent_number:t.sims_parent_number};o.post(n.apiUrl+"api/FamilyAnalysisABQ/familyanalysiscommon",e).then(function(e){r.studcontactdata=e.data.table,$("#feemodal").modal("hide"),r.busy=!0,r.parentstudent=[],r.paymentPlanDetails=[],r.registration_status="",r.fees_payment_plan="",r.sims_promote_remark="",r.check_remark_flag=!1,r.sims_edit_remark=!0,r.parent_id=t.sims_parent_number,r.parent_name=t.father_name,r.father_contact=r.studcontactdata[0].sims_parent_father_mobile,r.mother_contact=r.studcontactdata[0].sims_parent_mother_mobile,r.guardian_contact=r.studcontactdata[0].sims_parent_guardian_mobile,r.father_email=r.studcontactdata[0].sims_parent_father_email,r.mother_email=r.studcontactdata[0].sims_parent_mother_email,r.guardian_email=r.studcontactdata[0].sims_parent_guardian_email,r.sims_student_primary_contact_preference=r.studcontactdata[0].sims_student_primary_contact_pref,r.sims_legal_case_status=r.studcontactdata[0].sims_legal_case_status,"A"==r.studcontactdata[0].legal_case?r.legal_case=!0:r.legal_case=!1,r.getcommunicationdetailsl(r.parent_id),r.IP={},r.IP.cur_shrt_name=t.sims_cur_code,r.IP.sims_academic_year=t.sims_academic_year,r.IP.sims_student_enroll_number=t.sims_parent_number,o.get(n.apiUrl+"api/StudentReport/getAdmRemarkStudList_ABQIS?data="+JSON.stringify(r.IP)).then(function(e){r.paymentPlanDetails=e.data.table,0