!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("TransportFeeTransactionCont",["$scope","$state","$rootScope","$timeout","$stateParams","gettextCatalog","$http","$filter","ENV",function(l,r,c,e,t,a,m,s,u){l.IP=t.IP,l.$$hist=t.sel,l.currentClass=0,l.maxLength=0,l.CHd={},l.CHd.srNo="none",l.SelectedFees=[],l.SelectedFeesBack=[],l.CHd.noOfCheques=1,l.click=!1,l.DefaultPM=void 0;var p="";function o(e,t){var a={};null!=e&&(a.sims_concession_academic_year=e.sims_concession_academic_year,a.sims_concession_applicable_on=e.sims_concession_applicable_on,a.sims_concession_corporate_billing=e.sims_concession_corporate_billing,a.sims_concession_description=e.sims_concession_description,a.sims_concession_discount_type=e.sims_concession_discount_type,a.sims_concession_discount_value=e.sims_concession_discount_value,a.sims_concession_fee_code=e.sims_concession_fee_code,a.sims_concession_number=e.sims_concession_number,a.sims_concession_onward_child=e.sims_concession_onward_child,a.sims_concession_status=e.sims_concession_status,a.sims_concession_type=e.sims_concession_type,a.feeDesc=e.feeDesc,a.didDesc=e.didDesc,a.feeAmt=0,a.enrollNumber=t,a.visible=!1,a.status=!1,l.appliedDD.push(a)),null==l.dis.sDcode[t]&&(l.dis.sDcode[t]=[]),"000"!=e.sims_concession_fee_code&&l.dis.sDcode[t].push(e.sims_concession_fee_code)}function h(){m.get(u.apiUrl+"api/StudentFee/GetPaymentMode").then(function(e){l.PaymentModes=e.data,l.pd=[];for(var t=0;te.valAMT)l.valcc=1;else if(l.valcc=0,null==e)document.getElementById("pm").focus();else if(null==e.FPamt||""==e.FPamt)document.getElementById("pm").focus();else if(null!=e.chequeNo&&""!=e.chequeNo||"1"==e.modeO.pmType){if(e.modeO==l.caPM)for(var a=0;al.pd[o].FPamt){var _=parseFloat(l.SelectedFees[n].FPamt)-_-parseFloat(l.pd[o].FPamt),i=(l.SelectedFees[n].chqNo=l.pd[o].chequeNo,l.SelectedFees[n].chqDate=l.pd[o].chqDate,l.SelectedFees[n].chqBank=l.pd[o].chqBank,l.SelectedFees[n].mode=l.pd[o].modeO,l.SelectedFees[n].FPamt=parseFloat(l.pd[o].FPamt),l.SelectedFees[n].TXNNo=l.pd[o].trxID,l.pd[o].feeNumber=l.SelectedFees[n].feeNumber,l.pd[o].flag=!0,l.SelectedFees[n].flag=!0,{});i.ref=l.SelectedFees[n].$$hashKey,i.pno=l.SelectedFees[n].pno,i.feeNumber=l.SelectedFees[n].feeNumber,i.ID=l.SelectedFees[n].ID,i.flag=!1,i.FD=l.SelectedFees[n].FD,i.enroll=l.SelectedFees[n].enroll,i.studCurr=l.SelectedFees[n].studCurr,i.studAcademic=l.SelectedFees[n].studAcademic,i.studGrade=l.SelectedFees[n].studGrade,i.studSection=l.SelectedFees[n].studSection,i.mode={},i.chqNo="NA",i.isSplitted=!1,i.chqBank="NA",i.chqDate=null,i.trxID="NA",i.sr=l.SelectedFees.length+1,i.ExpAmt=l.SelectedFees[n].studBalanceAMT,i.FPamtORG=l.SelectedFees[n].studBalancePayingAMT,i.FPamt=_,i.FPamtINT=parseFloat(_),i.FeeCat=l.SelectedFees[n].FeeCat,i.FeeCode=l.SelectedFees[n].FeeCode,l.SelectedFees.push(i),o=a,n=s,t=!0;break}}if(t){e();break}}}();for(var o=l.SelectedFees.length,n=0;nt.top+22)return!1;t=window.getComputedStyle(e.target,null),e.dataTransfer.setData("text",parseInt(t.getPropertyValue("left"),10)-e.clientX+","+(parseInt(t.getPropertyValue("top"),10)-e.clientY))},!1),document.body.addEventListener("dragover",function(e){return e.preventDefault(),!1},!1),document.body.addEventListener("drop",function(e){var t=e.dataTransfer.getData("text").split(","),a=document.getElementById("pop-over");return a.style.left=100*(e.clientX+parseInt(t[0],10))/window.innerWidth+"%",a.style.top=e.clientY+parseInt(t[1],10)+"px",e.preventDefault(),!1},!1);t=document.getElementById("pop-content");t.addEventListener("mousedown",function(){document.getElementById("pop-over").setAttribute("draggable","false")},!1),t.addEventListener("mouseup",function(){document.getElementById("pop-over").setAttribute("draggable","true")},!1),l.check=function(){var e=l.$$cre.totalFeeamt();1==l.pd.length&&(l.DefaultPM.FPamt=e-l.$$cre.Damut),l.$$cre.totalamtPM()},l.student_name="",l.onFetchPFRData=function(){l.student_name=l.IP.StudEnroll+"-"+l.studName,l.summery={dd_fee_amount_final:0,dd_fee_amount_discounted:0,doc_status_code:3},m.get(u.apiUrl+"api/Fee/SFS/GetPreviousReceipts?ay="+l.IP.StudAcademic+"&enroll="+l.IP.StudEnroll).then(function(e){l.feesReceiptData=e.data[0],l.feesDisReceiptData=e.data[1],angular.forEach(l.feesDisReceiptData,function(e,t){e.sims_icon="fa fa-minus-circle"}),l.doc_nos=[],angular.forEach(l.feesReceiptData,function(e,t){l.summery.dd_fee_amount_final=parseFloat(l.summery.dd_fee_amount_final)+parseFloat(e.dd_fee_amount_final),l.summery.dd_fee_amount_discounted=parseFloat(l.summery.dd_fee_amount_discounted)+parseFloat(e.dd_fee_amount_discounted)}),l.feesReceiptData.push(l.summery),1o&&(s.s.r=o),s.s.c>n&&(s.s.c=n),s.e.r=t?((t=n.temp).student_name=e.student_name,t.sims_student_enroll_number=e.sims_student_enroll_number,t.classname=n.temp.sims_grade_name_en+" "+n.temp.sims_section_name_en,n.stud_obj=t,n.readonly=!0,n.stud_obj.sims_grade_code_new=n.temp.sims_grade_code,$("#myModal").modal({backdrop:"static"}),_.get(i.apiUrl+"api/common/getAllGradesFeePost?cur_code="+n.edt.sims_cur_code+"&ac_year="+n.edt.sims_academic_year).then(function(e){n.grade_names_obj=e.data,_.get(i.apiUrl+"api/student/UpdateStudentSection/getSectionFee?jsonobj="+JSON.stringify(n.temp)).then(function(e){n.section_fee_obj=e.data,n.getsectionForNIS(n.temp.sims_grade_code)})})):swal({text:"Previous years records cannot be edited",imageUrl:"assets/img/notification-alert.png",showCloseButton:!0,width:370})},n.SaveSectionDetails=function(e){var t=[];if(e){for(var a="",s=0;sc.sectionlst1.section_strength?swal({title:"Alert",text:"Section Strength is Full.If You still want to Continue?",showCloseButton:!0,width:380}).then(function(e){e?c.adm_update():($("#cmb_section").css("background-color","#E5E9EC"),$('.nav-tabs a[href="#admtab1"]').tab("show"))}):c.adm_update())},c.adm_update=function(){null==c.edt.home_country_isdcode&&(c.edt.home_country_isdcode=""),null==c.edt.home_phone&&(c.edt.home_phone="");var e={admission_number:r,appl_num:c.edt.appl_num,pros_num:c.edt.pros_num,pros_appl_num:c.edt.pros_appl_num,admission_date:c.edt.admission_date,school_code:c.edt.school_code,curr_code:c.edt.curr_code,academic_year:c.edt.academic_year,grade_code:c.edt.grade_code,section_code:c.edt.section_code,term_code:c.edt.term_code,tent_join_date:c.edt.tent_join_date,sims_student_emergency_contact_number1:c.edt.sims_student_emergency_contact_number1,sims_student_emergency_contact_name1:c.edt.sims_student_emergency_contact_name1,first_name:c.edt.first_name,middle_name:c.edt.middle_name,last_name:c.edt.last_name,family_name:c.edt.family_name,first_name_ot:c.edt.first_name_ot,midd_name_ot:c.edt.midd_name_ot,last_name_ot:c.edt.last_name_ot,family_name_ot:c.edt.family_name_ot,nicke_name:c.edt.nicke_name,birth_date:c.edt.birth_date,comm_date:c.edt.comm_date,birth_country_code:c.edt.birth_country_code,nationality_code:c.edt.nationality_code,ethinicity_code:c.edt.ethinicity_code,gender_code:c.edt.gender_code,religion_code:c.edt.religion_code,passport_num:c.edt.passport_num,passport_issue_date:c.edt.passport_issue_date,passport_expiry:c.edt.passport_expiry,passport_issue_auth:c.edt.passport_issue_auth,passport_issue_place:c.edt.passport_issue_place,visa_number:c.edt.visa_number,visa_type:c.edt.visa_type,visa_issuing_authority:c.edt.visa_issuing_authority,visa_issue_date:c.edt.visa_issue_date,visa_expiry_date:c.edt.visa_expiry_date,visa_issuing_place:c.edt.visa_issuing_place,national_id:c.edt.national_id,national_id_issue_date:c.edt.national_id_issue_date,national_id_expiry_date:c.edt.national_id_expiry_date,sibling_status:c.edt.sibling_status,parent_id:c.edt.parent_id,sibling_enroll:c.edt.sibling_enroll,sibling_name:c.edt.sibling_name,sibling_dob:c.edt.sibling_dob,sibling_school_code:c.edt.sibling_school_code,employee_type:c.edt.employee_type,employee_code:c.edt.employee_code,employee_school_code:c.edt.employee_school_code,motherTounge_language_code:c.edt.motherTounge_language_code,main_language_code:c.edt.main_language_code,main_language_r_code:c.edt.main_language_r_code,main_language_w_code:c.edt.main_language_w_code,main_language_s_code:c.edt.main_language_s_code,primary_contact_code:c.edt.primary_contact_code,primary_contact_pref_code:c.edt.primary_contact_pref_code,fee_payment_contact_pref_code:c.edt.fee_payment_contact_pref_code,transport_status:c.edt.transport_status,transport_desc:c.edt.transport_desc,father_salutation_code:c.edt.father_salutation_code,father_first_name:c.edt.father_first_name,father_middle_name:c.edt.father_middle_name,father_last_name:c.edt.father_last_name,father_family_name:c.edt.father_family_name,father_family_name_ot:c.edt.father_family_name_ot,father_nationality1_code:c.edt.father_nationality1_code,father_nationality2_code:c.edt.father_nationality2_code,father_appartment_number:c.edt.father_appartment_number,father_building_number:c.edt.father_building_number,father_street_number:c.edt.father_street_number,father_area_number:c.edt.father_area_number,father_city:c.edt.father_city,father_state:c.edt.father_state,father_country_code:c.edt.father_country_code,father_summary_address:c.edt.father_summary_address,father_po_box:c.edt.father_po_box,father_phone:c.edt.father_phone,father_email:c.edt.father_email,father_mobile:c.edt.father_mobile,father_fax:c.edt.father_fax,father_occupation:c.edt.father_occupation,father_company:c.edt.father_company,father_company_address:c.edt.father_company_address,father_company_phone:c.edt.father_company_phone,mother_company_address:c.edt.mother_company_address,mother_company_phone:c.edt.mother_company_phone,father_passport_number:c.edt.father_passport_number,sims_admission_father_national_id:c.edt.sims_admission_father_national_id,guardian_salutation_code:c.edt.guardian_salutation_code,guardian_first_name:c.edt.guardian_first_name,guardian_middle_name:c.edt.guardian_middle_name,guardian_last_name:c.edt.guardian_last_name,guardian_family_name:c.edt.guardian_family_name,guardian_nationality1_code:c.edt.guardian_nationality1_code,guardian_nationality2_code:c.edt.guardian_nationality2_code,guardian_appartment_number:c.edt.guardian_appartment_number,guardian_building_number:c.edt.guardian_building_number,guardian_street_number:c.edt.guardian_street_number,guardian_area_number:c.edt.guardian_area_number,guardian_city:c.edt.guardian_city,guardian_state:c.edt.guardian_state,guardian_country_code:c.edt.guardian_country_code,guardian_summary_address:c.edt.guardian_summary_address,guardian_po_box:c.edt.guardian_po_box,guardian_phone:c.edt.guardian_phone,guardian_mobile:c.edt.guardian_mobile,guardian_fax:c.edt.guardian_fax,guardian_email:c.edt.guardian_email,guardian_occupation:c.edt.guardian_occupation,guardian_company:c.edt.guardian_company,guardian_passport_number:c.edt.guardian_passport_number,guardian_relationship_code:c.edt.guardian_relationship_code,mother_salutation_code:c.edt.mother_salutation_code,mother_first_name:c.edt.mother_first_name,mother_middle_name:c.edt.mother_middle_name,mother_last_name:c.edt.mother_last_name,mother_family_name:c.edt.mother_family_name,mother_name_ot:c.edt.mother_name_ot,mother_nationality1_code:c.edt.mother_nationality1_code,mother_nationality2_code:c.edt.mother_nationality2_code,mother_appartment_number:c.edt.mother_appartment_number,mother_building_number:c.edt.mother_building_number,mother_street_number:c.edt.mother_street_number,mother_area_number:c.edt.mother_area_number,mother_city:c.edt.mother_city,mother_state:c.edt.mother_state,mother_country_code:c.edt.mother_country_code,mother_summary_address:c.edt.mother_summary_address,mother_po_box:c.edt.mother_po_box,mother_phone:c.edt.mother_phone,mother_mobile:c.edt.mother_mobile,mother_fax:c.edt.mother_fax,mother_email:c.edt.mother_email,mother_occupation:c.edt.mother_occupation,mother_passport_number:c.edt.mother_passport_number,current_school_status:c.edt.current_school_status,current_school_name:c.edt.current_school_name,current_school_enroll_number:c.edt.current_school_enroll_number,current_school_grade:c.edt.current_school_grade,current_school_cur:c.edt.current_school_cur,current_school_from_date:c.edt.current_school_from_date,current_school_to_date:c.edt.current_school_to_date,current_school_language:c.edt.current_school_language,current_school_head_teacher:c.edt.current_school_head_teacher,current_school_phone:c.edt.current_school_phone,current_school_fax:c.edt.current_school_fax,current_school_city:c.edt.current_school_city,current_school_country_code:c.edt.current_school_country_code,current_school_address:c.edt.current_school_address,marketing_code:c.edt.marketing_code,marketing_description:c.edt.marketing_description,parent_status_code:c.edt.parent_status_code,legal_custody_code:c.edt.legal_custody_code,health_card_number:c.edt.health_card_number,health_card_issue_date:c.edt.health_card_issue_date,health_card_issuing_authority:c.edt.health_card_issuing_authority,blood_group_code:c.edt.blood_group_code,medication_status:c.edt.medication_status,medication_desc:c.edt.medication_desc,disability_status:c.edt.disability_status,disability_desc:c.edt.disability_desc,behaviour_status:c.edt.behaviour_status,behaviour_desc:c.edt.behaviour_desc,health_restriction_status:c.edt.health_restriction_status,health_restriction_desc:c.edt.health_restriction_desc,health_hearing_status:c.edt.health_hearing_status,health_hearing_desc:c.edt.health_hearing_desc,health_vision_status:c.edt.health_vision_status,health_vision_desc:c.edt.health_vision_desc,health_other_status:c.edt.health_other_status,health_other_desc:c.edt.health_other_desc,gifted_status:c.edt.gifted_status,gifted_desc:c.edt.gifted_desc,music_status:c.edt.music_status,music_desc:c.edt.music_desc,sports_status:c.edt.sports_status,sports_desc:c.edt.sports_desc,language_support_status:c.edt.language_support_status,language_support_desc:c.edt.language_support_desc,declaration_status:c.edt.declaration_status,fees_paid_status:c.edt.fees_paid_status,fee_category_code:c.edt.fee_category_code,ip:c.edt.ip,dns:c.edt.dns,user_code:c.edt.user_code,status:c.edt.status,sims_student_attribute1:c.edt.sims_student_attribute1,sims_student_attribute2:c.edt.sims_student_attribute2,sims_student_attribute3:c.edt.sims_student_attribute3,sims_student_attribute4:c.edt.sims_student_attribute4,sims_student_health_respiratory_status:c.edt.sims_student_health_respiratory_status,sims_student_health_respiratory_desc:c.edt.sims_student_health_respiratory_desc,sims_student_health_hay_fever_status:c.edt.sims_student_health_hay_fever_status,sims_student_health_hay_fever_desc:c.edt.sims_student_health_hay_fever_desc,sims_student_health_epilepsy_status:c.edt.sims_student_health_epilepsy_status,sims_student_health_epilepsy_desc:c.edt.sims_student_health_epilepsy_desc,sims_student_health_skin_status:c.edt.sims_student_health_skin_status,sims_student_health_skin_desc:c.edt.sims_student_health_skin_desc,sims_student_health_diabetes_status:c.edt.sims_student_health_diabetes_status,sims_student_health_diabetes_desc:c.edt.sims_student_health_diabetes_desc,sims_student_health_surgery_status:c.edt.sims_student_health_surgery_status,sims_student_health_surgery_desc:c.edt.sims_student_health_surgery_desc,sims_admission_recommendation:c.edt.sims_admission_recommendation,sims_admission_mother_national_id:c.edt.sims_admission_mother_national_id,sims_admission_guardian_national_id:c.edt.sims_admission_guardian_national_id,sims_fee_month_code:c.edt.sims_fee_month_code,sims_student_attribute5:c.edt.sims_student_attribute5,sims_student_attribute6:c.edt.sims_student_attribute6,sims_student_attribute7:c.edt.sims_student_attribute7,sims_student_attribute8:c.edt.sims_student_attribute8,sims_student_attribute9:c.edt.sims_student_attribute9,sims_student_attribute10:c.edt.sims_student_attribute10,sims_student_attribute11:c.edt.sims_student_attribute11,sims_student_attribute12:c.edt.sims_student_attribute12,sims_admission_second_lang_code:c.edt.sims_admission_second_lang_code,sims_admission_third_lang_code:c.edt.sims_admission_third_lang_code,sims_admission_subject_code:c.edt.sims_admission_second_lang_code+","+c.edt.sims_admission_third_lang_code};d.push(e),n.post(i.apiUrl+"api/common/Admission_dpsd/ApproveStudent",d).then(function(e){c.display=!0,c.msg1=e.data}),c.grid1=!0,$("#myModal1").modal({backdrop:"static",keyboard:!0})},c.modal_cancel=function(){$("#myModal1").modal("hide"),s(function(){"tiadxb"!=n.defaults.headers.common.schoolId&&"tiashj"!=n.defaults.headers.common.schoolId&&"tosdxb"!=n.defaults.headers.common.schoolId&&n.defaults.headers.common.schoolId,e.go("main.dashL",{Class:t.Class})},300)},c.get_studentfee=function(){e.go("main.Sim043")},c.back=function(){c.dd=!0,window.localStorage.Admflag=c.dd,c.modal_cancel()},c.schoolcheck=function(){1==c.edt.current_school_status?c.school_edit=!1:c.school_edit=!0},c.chk_desc=function(){1==c.edt.marketing_code?c.desc_edit=!1:c.desc_edit=!0},c.chk_cicumstances=function(){1==c.edt.parent_status_code?c.circum_edit=!1:c.circum_edit=!0},c.chk_disab_status=function(){1==c.edt.disability_status?c.disab_edit=!1:c.disab_edit=!0},c.chk_health_res=function(){1==c.edt.health_restriction_status?c.healthres_edit=!1:c.healthres_edit=!0},c.chk_medic_status=function(){1==c.edt.medication_status?c.med_edit=!1:c.med_edit=!0},c.chk_other=function(){1==c.edt.health_other_status?c.other_edit=!1:c.other_edit=!0},c.chk_hearing=function(){1==c.edt.health_hearing_status?c.hearing_edit=!1:c.hearing_edit=!0},c.chk_vision=function(){1==c.edt.health_vision_status?c.health_vision_edit=!1:c.health_vision_edit=!0},c.chk_behaviour=function(){1==c.edt.behaviour_status?c.behaviour_edit=!1:c.behaviour_edit=!0},c.chk_gifted_status=function(){1==c.edt.gifted_status?c.gifted_edit=!1:c.gifted_edit=!0},c.chk_music_pro=function(){1==c.edt.music_status?c.music_edit=!1:c.music_edit=!0},c.chk_sport_pro=function(){1==c.edt.sports_status?c.sport_edit=!1:c.sport_edit=!0},c.chk_lang_sup=function(){1==c.edt.language_support_status?c.lang_sup_edit=!1:c.lang_sup_edit=!0},c.chk_Pri_contact=function(){1==c.edt.primary_contact_code?c.pricont_edit=!1:c.pricont_edit=!0},c.chk_transport_requin=function(){1==c.edt.transport_status?c.transreq_edit=!1:c.transreq_edit=!0},c.chk_Sibling_attend=function(){1==c.edt.sibling_status?c.disableparent=!1:c.disableparent=!0},c.chk_employee=function(){1==c.edt.sims_empchk?(c.disableemployee=!1,c.edt.sims_empchk):c.disableemployee=!0},c.chk_learn_ther=function(){1==c.edt.sims_admission_learning_therapy_status?c.learnther_edit=!1:c.learnther_edit=!0},c.chk_spec_edu=function(){1==c.edt.sims_admission_special_education_status?c.spec_edu_edit=!1:c.spec_edu_edit=!0},c.chk_falled_grade=function(){1==c.edt.sims_admission_falled_grade_status?c.falledgrade_edit=!1:c.falledgrade_edit=!0},c.chk_commun=function(){1==c.edt.sims_admission_communication_status?c.commun_edit=!1:c.commun_edit=!0},c.chk_spec_activies=function(){1==c.edt.sims_admission_specialAct_status?c.specActiv_edit=!1:c.specActiv_edit=!0},c.chk_studyingin=function(){1==c.edt.sibling_status?(c.Study_edit=!1,document.getElementById("t3"),document.getElementById("t4"),document.getElementById("t5"),c.t=!1):(c.Study_edit=!0,document.getElementById("t3"),document.getElementById("t4"),document.getElementById("t5"),c.t=!0)},c.chk_ticking=function(){1==c.edt.declaration_status?(c.tick_edit=!1,c.confirm_edit=!1):(c.tick_edit=!0,c.confirm_edit=!0)},c.chk_copy_mother_add=function(){1==c.edt.copy_add?(c.edt.mother_appartment_number=c.edt.father_appartment_number,c.edt.mother_area_number=c.edt.father_area_number,c.edt.mother_building_number=c.edt.father_building_number,c.edt.mother_street_number=c.edt.father_street_number,c.edt.mother_city=c.edt.father_city,c.edt.mother_state=c.edt.father_state,c.edt.mother_country_code=c.edt.father_country_code,c.edt.mother_po_box=c.edt.father_po_box,c.edt.mother_nationality1_code=c.edt.father_nationality1_code,c.edt.mother_nationality2_code=c.edt.father_nationality2_code,c.edt.mother_summary_address=c.edt.father_summary_address,c.edt.mother_phone=c.edt.father_phone,c.edt.mother_po_box=c.edt.father_po_box,c.edt.mother_mobile=c.edt.father_mobile,c.edt.mother_occupation=c.edt.father_occupation,c.edt.mother_email=c.edt.father_email,c.edt.mother_company=c.edt.father_company):(c.edt.mother_appartment_number="",c.edt.mother_area_number="",c.edt.mother_building_number="",c.edt.mother_street_number="",c.edt.mother_city="",c.edt.mother_state="",c.edt.mother_country_code="",c.edt.mother_po_box="",c.edt.mother_nationality1_code="",c.edt.mother_nationality2_code="",c.edt.mother_summary_address="",c.edt.mother_phone="",c.edt.mother_po_box="",c.edt.mother_mobile="",c.edt.mother_occupation="",c.edt.mother_email="",c.edt.mother_company="")},c.chk_copy_guar_add1=function(){1==c.edt.copy_add1?(c.edt.guardian_appartment_number=c.edt.father_appartment_number,c.edt.guardian_area_number=c.edt.father_area_number,c.edt.guardian_building_number=c.edt.father_building_number,c.edt.guardian_street_number=c.edt.father_street_number,c.edt.guardian_city=c.edt.father_city,c.edt.guardian_state=c.edt.father_state,c.edt.guardian_country_code=c.edt.father_country_code,c.edt.guardian_po_box=c.edt.father_po_box,c.edt.guardian_nationality1_code=c.edt.father_nationality1_code,c.edt.guardian_nationality2_code=c.edt.father_nationality2_code,c.edt.guardian_summary_address=c.edt.father_summary_address,c.edt.guardian_phone=c.edt.father_phone,c.edt.guardian_po_box=c.edt.father_po_box,c.edt.guardian_mobile=c.edt.father_mobile,c.edt.guardian_occupation=c.edt.father_occupation,c.edt.guardian_email=c.edt.father_email,c.edt.guardian_company=c.edt.father_company):(c.edt.guardian_appartment_number="",c.edt.guardian_area_number="",c.edt.guardian_building_number="",c.edt.guardian_street_number="",c.edt.guardian_city="",c.edt.guardian_state="",c.edt.guardian_country_code="",c.edt.guardian_po_box="",c.edt.guardian_nationality1_code="",c.edt.guardian_nationality2_code="",c.edt.guardian_summary_address="",c.edt.guardian_phone="",c.edt.guardian_po_box="",c.edt.guardian_mobile="",c.edt.guardian_occupation="",c.edt.guardian_email="",c.edt.guardian_company="")},c.GetMotherSumAddr=function(){var e=$("#txt_mother_aprt").val().length,t=$("#txt_mother_build").val().length,a=$("#txt_mother_street").val().length,s=$("#txt_mother_area").val().length,o=$("#txt_mother_city").val().length,n=$("#txt_mother_state").val().length,_=$("#cmb_mother_country").val().length,i=$("#txt_mother_pobox").val().length,d=document.getElementById("cmb_mother_country").options[document.getElementById("cmb_mother_country").selectedIndex].text;document.getElementById("txt_mother_addr").value=0{_.edt={}},_.GetGrade=function(e,t){n.get(d.apiUrl+"api/common/getAllGrades?cur_code="+e+"&academic_year="+t).then(function(e){_.obj3=e.data,_.edt.grade_code=_.obj3[0].sims_grade_code,_.grade=_.obj3[0].sims_grade_code})},_.getAssessmentscheduleData=function(){_.filteredTodos=[],n.get(d.apiUrl+"api/StudentAssessmentSchedule/GetAssesmentSchedule?cur_code="+_.edt.curr_code+"&acad_yr="+_.edt.academic_year+"&grade_code="+_.edt.grade_code).then(function(e){_.assessmentscheduleData=e.data,0<_.assessmentscheduleData.length?(_.table=!0,_.pager=!0,3<_.countData.length?(_.countData.splice(3,1),_.countData.push({val:_.assessmentscheduleData.length})):_.countData.push({val:_.assessmentscheduleData.length,data:"All"}),_.totalItems=_.assessmentscheduleData.length,_.todos=angular.copy(_.assessmentscheduleData),_.grid=!0,_.makeTodos()):(_.table=!1,swal({title:"Alert",text:"Record Not Found",width:300,height:200}),_.filteredTodos=[])})},_.makeTodos=function(){var e=parseInt(_.totalItems%_.numPerPage),e=(_.pagersize="0"==e?parseInt(_.totalItems/_.numPerPage):parseInt(_.totalItems/_.numPerPage)+1,(_.currentPage-1)*_.numPerPage),t=parseInt(e)+parseInt(_.numPerPage);_.filteredTodos=_.todos.slice(e,t)},_.size=function(e){"All"==e?(_.currentPage="1",_.pager=!1):(_.pager=!0,_.pagesize=e,_.currentPage=1,_.numPerPage=e,_.makeTodos()),_.numPerPage=e},_.index=function(e){_.pageindex=e,_.currentPage=e,_.makeTodos(),r.checked=!1,_.row1=""},_.CheckAllChecked=function(){if(!0===(r=document.getElementById("mainchk")).checked)for(let e=0;e<_.filteredTodos.length;e++)document.getElementById(_.filteredTodos[e].sims_pros_no).checked=!0,$("tr").addClass("row_selected");else for(let e=0;e<_.filteredTodos.length;e++)document.getElementById(_.filteredTodos[e].sims_pros_no).checked=!1,r.checked=!1,_.row1="",$("tr").removeClass("row_selected")},_.check1=function(e){_.sims_admission_father_mail=e.sims_admission_father_email,_.sims_admission_father_mobile=e.sims_admission_father_mobile,_.sims_admission_number=e.sims_pros_no,_.sims_assesment_date=e.sims_assesment_date,_.sims_assesment_time=e.sims_assesment_time,c=e.sims_pros_no;document.getElementById(e.sims_pros_no);$("input[type='checkbox']").change(function(e){$(this).is(":checked")?$(this).closest("tr").addClass("row_selected"):$(this).closest("tr").removeClass("row_selected"),_.color="#edefef"}),!0===(r=document.getElementById("mainchk")).checked&&(r.checked=!1,_.color="#edefef",_.row1="")},_.check=function(){if(r=document.getElementById("mainchk"),del=[],!0===r.checked)for(let e=0;e<_.filteredTodos.length;e++)document.getElementById(_.filteredTodos[e].sims_pros_no).checked=!0,del.push(_.filteredTodos[e].sims_pros_no),$("tr").addClass("row_selected");else for(let e=0;e<_.filteredTodos.length;e++){var t=_.filteredTodos[e].sims_pros_no;document.getElementById(t).checked=!1,del.pop(t),$("tr").removeClass("row_selected")}},_.cancel=function(){_.filteredTodos=[],_.pager=!1},_.save=function(){var e,t=[];let a=[];c=[];for(let e=0;e<_.filteredTodos.length;e++)!0===_.filteredTodos[e].pros_num1&&(c=c+_.filteredTodos[e].sims_pros_no+",");0==c.length?swal({title:"Alert",text:"Please select atleast 1 applicant",showCloseButton:!0,width:380}):null==_.edt.sims_teacher_code?swal({title:"Alert",text:"Please select Assesment Teacher.",showCloseButton:!0,width:380}):(e={sims_cur_code:_.edt.curr_code,sims_acad_yr:_.edt.academic_year,sims_grade_code:_.edt.grade_code,sims_teacher_code:_.edt.sims_teacher_code,sims_assesment_date:_.edt.sims_assesment_date,sims_prosno_list:c,sims_assessment_created_user:s.globals.currentUser.username,sims_assesment_time:_.edt.sims_assesment_time,opr:"I"},t.push(e),e={sims_cur_code:_.edt.curr_code,sims_acad_yr:_.edt.academic_year,sims_grade_code:_.edt.grade_code,sims_teacher_code:_.edt.sims_teacher_code,sims_assesment_date:_.edt.sims_assesment_date,sims_prosno_list:c,sims_assessment_created_user:s.globals.currentUser.username,sims_assesment_time:_.edt.sims_assesment_time,opr:"B"},a.push(e),angular.copy(a),n.post(d.apiUrl+"api/StudentAssessmentSchedule/CUDInsertAssessmentScheduleDetails",t).then(function(e){_.msg1=e.data,!0===_.msg1&&swal({title:"Alert",text:"Record Mapped.",showCloseButton:!0,width:380}).then(function(e){e&&swal({title:"Email",text:"Do you want Send Email.",showCloseButton:!0,showCancelButton:!0,width:380,cancelButtonText:"No"}).then(function(e){e&&n.post(d.apiUrl+"api/StudentAssessmentSchedule/CUDsend_email",a).then(function(e){}),_.getAssessmentscheduleData()})})}))},$("#text-editor1").wysihtml5(),_.chk_email=!0,_.chk_sms=!1,_.edt1={sims_Email:"true",sims_sms_char:"0",sims_sms_length:"0"},n.get(d.apiUrl+"api/common/EmailSms/GetcheckEmailProfile").then(function(e){_.getProfile=e.data}),_.send_mail_details=function(){"true"==_.edt1.sims_Email&&swal({title:"Alert",text:"Do You Want to Send Emails?",showCloseButton:!0,width:380}).then(function(e){e&&_.sendMaildetails()}),"false"==_.edt1.sims_Email&&swal({title:"",text:"Do You Want to Send SMS?",showCloseButton:!0,showCancelButton:!0,confirmButtonText:"Yes",width:380,cancelButtonText:"No"}).then(function(e){e&&_.OnsendSMSdetails()})},_.get_msgtypechecked=function(e){"true"==e?(_.edt1.sims_recepient_id=_.sims_admission_father_mail,_.edt1.sims_body=_.body,_.chk_email=!0,_.chk_sms=!1):"false"==e&&(_.edt1.sims_recepient_id=_.sims_admission_father_mobile,_.edt1.sims_smstext=_.txt4,_.msg_details(_.edt1.sims_smstext),_.chk_email=!1,_.chk_sms=!0,_.edt1.sims_sms_msg="Enter your message below ( max 1000 chars.1 sms is 160 characters.)",_.edt1.sims_sms_subjectblock="These special characters ' ][}{|~^ ' will be treated as two character")},_.get_msgtype=function(e){var t=[];if("past"==e)for(let e=0;e<_.assessmentscheduleData.length;e++)""!=_.assessmentscheduleData[e].sims_assesment_date&&t.push(_.assessmentscheduleData[e]);else for(let e=0;e<_.assessmentscheduleData.length;e++)""==_.assessmentscheduleData[e].sims_assesment_date&&t.push(_.assessmentscheduleData[e]);_.totalItems=t.length,_.todos=t,_.grid=!0,_.makeTodos()},_.getcommunicate=function(e){_.sims_admission_father_mail=e.sims_admission_father_email,_.sims_admission_father_mobile=e.sims_admission_father_mobile,_.sims_admission_number=e.sims_pros_no,_.sims_assesment_date=e.sims_assesment_date,_.sims_assesment_time=e.sims_assesment_time,$("#viewdashDetailsModal1").modal({backdrop:"static",keyboard:!0}),_.get_msgtypechecked(_.edt1.sims_Email),n.get(d.apiUrl+"api/common/Admission_dpsd/GetemailSubjectforInviting").then(function(e){_.emailSubject_datails=e.data,_.edt1.sims_subject=_.emailSubject_datails[0].mailmsg_subject,_.edt1.sims_body=_.emailSubject_datails[0].mailmsg_body;e=document.getElementById("text-editor1");e.value=_.emailSubject_datails[0].mailmsg_body,_.edt1.sims_body=e.value,$("#text-editor1").data("wysihtml5").editor.setValue(_.edt1.sims_body),_.old_str=angular.copy(_.edt1.sims_body);e=_.old_str.replace(/{appl_num}/g,_.sims_admission_number).replace(/{appl_date}/g,_.sims_assesment_date).replace(/{app_time}/g,_.sims_assesment_time);_.body=e,_.edt1.sims_body=_.body,$("#text-editor1").data("wysihtml5").editor.setValue(_.edt1.sims_body)}),n.get(d.apiUrl+"api/common/Admission_dpsd/GetSmsSubjectforInviting").then(function(e){_.smsSubject_datails=e.data,_.edt1.sims_smstext=_.smsSubject_datails[0].mailmsg_body,_.old_str1=angular.copy(_.edt1.sims_smstext);e=_.old_str1.replace(/{appl_num}/g,_.sims_admission_number).replace(/{appl_date}/g,_.sims_assesment_date).replace(/{app_time}/g,_.sims_assesment_time);_.txt4=e,_.edt1.sims_smstext=_.txt4,_.msg_details(_.edt1.sims_smstext)})},_.msg_details=function(t){if(""!=t&&null!=t){let a=0,e;_.edt1.sims_sms_char=0;var s=document.getElementById("txt_smstext").value.length,o=t,n=new Array("[","]","{","}");if(""!=o){for(let e=0,t;t=o.charAt(e);e++)for(let e=0;ed.sectionlst1.section_strength?swal({title:"Alert",text:"Section Strength is Full.If You still want to Continue?",showCloseButton:!0,width:380}).then(function(e){e?d.adm_update():($("#cmb_section").css("background-color","#E5E9EC"),$('.nav-tabs a[href="#admtab1"]').tab("show"))}):d.adm_update())},d.adm_update=function(){null==d.edt.home_country_isdcode&&(d.edt.home_country_isdcode=""),null==d.edt.home_phone&&(d.edt.home_phone="");var e={admission_number:c,appl_num:d.edt.appl_num,pros_num:d.edt.pros_num,pros_appl_num:d.edt.pros_appl_num,admission_date:d.edt.admission_date,school_code:d.edt.school_code,curr_code:d.edt.curr_code,academic_year:d.edt.academic_year,grade_code:d.edt.grade_code,section_code:d.edt.section_code,term_code:d.edt.term_code,tent_join_date:d.edt.tent_join_date,sims_student_emergency_contact_number1:d.edt.sims_student_emergency_contact_number1,sims_student_emergency_contact_name1:d.edt.sims_student_emergency_contact_name1,first_name:d.edt.first_name,middle_name:d.edt.middle_name,last_name:d.edt.last_name,family_name:d.edt.family_name,first_name_ot:d.edt.first_name_ot,midd_name_ot:d.edt.midd_name_ot,last_name_ot:d.edt.last_name_ot,family_name_ot:d.edt.family_name_ot,nicke_name:d.edt.nicke_name,birth_date:d.edt.birth_date,comm_date:d.edt.comm_date,birth_country_code:d.edt.birth_country_code,nationality_code:d.edt.nationality_code,ethinicity_code:d.edt.ethinicity_code,gender_code:d.edt.gender_code,religion_code:d.edt.religion_code,passport_num:d.edt.passport_num,passport_issue_date:d.edt.passport_issue_date,passport_expiry:d.edt.passport_expiry,passport_issue_auth:d.edt.passport_issue_auth,passport_issue_place:d.edt.passport_issue_place,visa_number:d.edt.visa_number,visa_type:d.edt.visa_type,visa_issuing_authority:d.edt.visa_issuing_authority,visa_issue_date:d.edt.visa_issue_date,visa_expiry_date:d.edt.visa_expiry_date,visa_issuing_place:d.edt.visa_issuing_place,national_id:d.edt.national_id,national_id_issue_date:d.edt.national_id_issue_date,national_id_expiry_date:d.edt.national_id_expiry_date,sibling_status:d.edt.sibling_status,parent_id:d.edt.parent_id,sibling_enroll:d.edt.sibling_enroll,sibling_name:d.edt.sibling_name,sibling_dob:d.edt.sibling_dob,sibling_school_code:d.edt.sibling_school_code,employee_type:d.edt.employee_type,employee_code:d.edt.employee_code,employee_school_code:d.edt.employee_school_code,motherTounge_language_code:d.edt.motherTounge_language_code,main_language_code:d.edt.main_language_code,main_language_r_code:d.edt.main_language_r_code,main_language_w_code:d.edt.main_language_w_code,main_language_s_code:d.edt.main_language_s_code,primary_contact_code:d.edt.primary_contact_code,primary_contact_pref_code:d.edt.primary_contact_pref_code,fee_payment_contact_pref_code:d.edt.fee_payment_contact_pref_code,transport_status:d.edt.transport_status,transport_desc:d.edt.transport_desc,father_salutation_code:d.edt.father_salutation_code,father_first_name:d.edt.father_first_name,father_middle_name:d.edt.father_middle_name,father_last_name:d.edt.father_last_name,father_family_name:d.edt.father_family_name,father_family_name_ot:d.edt.father_family_name_ot,father_nationality1_code:d.edt.father_nationality1_code,father_nationality2_code:d.edt.father_nationality2_code,father_appartment_number:d.edt.father_appartment_number,father_building_number:d.edt.father_building_number,father_street_number:d.edt.father_street_number,father_area_number:d.edt.father_area_number,father_city:d.edt.father_city,father_state:d.edt.father_state,father_country_code:d.edt.father_country_code,father_summary_address:d.edt.father_summary_address,father_po_box:d.edt.father_po_box,father_phone:d.edt.father_phone,father_email:d.edt.father_email,father_mobile:d.edt.father_mobile,father_fax:d.edt.father_fax,father_occupation:d.edt.father_occupation,father_company:d.edt.father_company,father_passport_number:d.edt.father_passport_number,sims_admission_father_national_id:d.edt.sims_admission_father_national_id,guardian_salutation_code:d.edt.guardian_salutation_code,guardian_first_name:d.edt.guardian_first_name,guardian_middle_name:d.edt.guardian_middle_name,guardian_last_name:d.edt.guardian_last_name,guardian_family_name:d.edt.guardian_family_name,guardian_nationality1_code:d.edt.guardian_nationality1_code,guardian_nationality2_code:d.edt.guardian_nationality2_code,guardian_appartment_number:d.edt.guardian_appartment_number,guardian_building_number:d.edt.guardian_building_number,guardian_street_number:d.edt.guardian_street_number,guardian_area_number:d.edt.guardian_area_number,guardian_city:d.edt.guardian_city,guardian_state:d.edt.guardian_state,guardian_country_code:d.edt.guardian_country_code,guardian_summary_address:d.edt.guardian_summary_address,guardian_po_box:d.edt.guardian_po_box,guardian_phone:d.edt.guardian_phone,guardian_mobile:d.edt.guardian_mobile,guardian_fax:d.edt.guardian_fax,guardian_email:d.edt.guardian_email,guardian_occupation:d.edt.guardian_occupation,guardian_company:d.edt.guardian_company,guardian_passport_number:d.edt.guardian_passport_number,guardian_relationship_code:d.edt.guardian_relationship_code,mother_salutation_code:d.edt.mother_salutation_code,mother_first_name:d.edt.mother_first_name,mother_middle_name:d.edt.mother_middle_name,mother_last_name:d.edt.mother_last_name,mother_family_name:d.edt.mother_family_name,mother_name_ot:d.edt.mother_name_ot,mother_nationality1_code:d.edt.mother_nationality1_code,mother_nationality2_code:d.edt.mother_nationality2_code,mother_appartment_number:d.edt.mother_appartment_number,mother_building_number:d.edt.mother_building_number,mother_street_number:d.edt.mother_street_number,mother_area_number:d.edt.mother_area_number,mother_city:d.edt.mother_city,mother_state:d.edt.mother_state,mother_country_code:d.edt.mother_country_code,mother_summary_address:d.edt.mother_summary_address,mother_po_box:d.edt.mother_po_box,mother_phone:d.edt.mother_phone,mother_mobile:d.edt.mother_mobile,mother_fax:d.edt.mother_fax,mother_email:d.edt.mother_email,mother_occupation:d.edt.mother_occupation,mother_passport_number:d.edt.mother_passport_number,current_school_status:d.edt.current_school_status,current_school_name:d.edt.current_school_name,current_school_enroll_number:d.edt.current_school_enroll_number,current_school_grade:d.edt.current_school_grade,current_school_cur:d.edt.current_school_cur,current_school_from_date:d.edt.current_school_from_date,current_school_to_date:d.edt.current_school_to_date,current_school_language:d.edt.current_school_language,current_school_head_teacher:d.edt.current_school_head_teacher,current_school_phone:d.edt.current_school_phone,current_school_fax:d.edt.current_school_fax,current_school_city:d.edt.current_school_city,current_school_country_code:d.edt.current_school_country_code,current_school_address:d.edt.current_school_address,marketing_code:d.edt.marketing_code,marketing_description:d.edt.marketing_description,parent_status_code:d.edt.parent_status_code,legal_custody_code:d.edt.legal_custody_code,health_card_number:d.edt.health_card_number,health_card_issue_date:d.edt.health_card_issue_date,health_card_issuing_authority:d.edt.health_card_issuing_authority,blood_group_code:d.edt.blood_group_code,medication_status:d.edt.medication_status,medication_desc:d.edt.medication_desc,disability_status:d.edt.disability_status,disability_desc:d.edt.disability_desc,behaviour_status:d.edt.behaviour_status,behaviour_desc:d.edt.behaviour_desc,health_restriction_status:d.edt.health_restriction_status,health_restriction_desc:d.edt.health_restriction_desc,health_hearing_status:d.edt.health_hearing_status,health_hearing_desc:d.edt.health_hearing_desc,health_vision_status:d.edt.health_vision_status,health_vision_desc:d.edt.health_vision_desc,health_other_status:d.edt.health_other_status,health_other_desc:d.edt.health_other_desc,gifted_status:d.edt.gifted_status,gifted_desc:d.edt.gifted_desc,music_status:d.edt.music_status,music_desc:d.edt.music_desc,sports_status:d.edt.sports_status,sports_desc:d.edt.sports_desc,language_support_status:d.edt.language_support_status,language_support_desc:d.edt.language_support_desc,declaration_status:d.edt.declaration_status,fees_paid_status:d.edt.fees_paid_status,fee_category_code:d.edt.fee_category_code,ip:d.edt.ip,dns:d.edt.dns,user_code:d.edt.user_code,status:d.edt.status,sims_student_attribute1:d.edt.sims_student_attribute1,sims_student_attribute2:d.edt.sims_student_attribute2,sims_student_attribute3:d.edt.sims_student_attribute3,sims_student_attribute4:d.edt.sims_student_attribute4,sims_student_health_respiratory_status:d.edt.sims_student_health_respiratory_status,sims_student_health_respiratory_desc:d.edt.sims_student_health_respiratory_desc,sims_student_health_hay_fever_status:d.edt.sims_student_health_hay_fever_status,sims_student_health_hay_fever_desc:d.edt.sims_student_health_hay_fever_desc,sims_student_health_epilepsy_status:d.edt.sims_student_health_epilepsy_status,sims_student_health_epilepsy_desc:d.edt.sims_student_health_epilepsy_desc,sims_student_health_skin_status:d.edt.sims_student_health_skin_status,sims_student_health_skin_desc:d.edt.sims_student_health_skin_desc,sims_student_health_diabetes_status:d.edt.sims_student_health_diabetes_status,sims_student_health_diabetes_desc:d.edt.sims_student_health_diabetes_desc,sims_student_health_surgery_status:d.edt.sims_student_health_surgery_status,sims_student_health_surgery_desc:d.edt.sims_student_health_surgery_desc,sims_admission_recommendation:d.edt.sims_admission_recommendation,sims_admission_mother_national_id:d.edt.sims_admission_mother_national_id,sims_admission_guardian_national_id:d.edt.sims_admission_guardian_national_id,sims_fee_month_code:d.edt.sims_fee_month_code,sims_student_attribute5:d.edt.sims_student_attribute5,sims_student_attribute6:d.edt.sims_student_attribute6,sims_student_attribute7:d.edt.sims_student_attribute7,sims_student_attribute8:d.edt.sims_student_attribute8,sims_student_attribute9:d.edt.sims_student_attribute9,sims_student_attribute10:d.edt.sims_student_attribute10,sims_student_attribute11:d.edt.sims_student_attribute11,sims_student_attribute12:d.edt.sims_student_attribute12,sims_admission_second_lang_code:d.edt.sims_admission_second_lang_code,sims_admission_third_lang_code:d.edt.sims_admission_third_lang_code,sims_admission_subject_code:d.edt.sims_admission_second_lang_code+","+d.edt.sims_admission_third_lang_code};r.push(e),n.post(i.apiUrl+"api/common/Admission_dpsd/ApproveStudent",r).then(function(e){d.display=!0,d.msg1=e.data,console.log(d.msg1)}),d.grid1=!0,$("#myModal1").modal({backdrop:"static",keyboard:!0})},d.modal_cancel=function(){$("#myModal1").modal("hide"),console.log(t.Class),s(function(){"tiadxb"==n.defaults.headers.common.schoolId||"tiashj"==n.defaults.headers.common.schoolId||"tosdxb"==n.defaults.headers.common.schoolId||"aisdxb"==n.defaults.headers.common.schoolId?e.go("main.dashL",{Class:t.Class}):"faipserp"!=n.defaults.headers.common.schoolId&&("seps"==n.defaults.headers.common.schoolId||"apsportal"==n.defaults.headers.common.schoolId)?e.go("main.Dasdps",{Class:t.Class}):e.go("main.Dasiso",{Class:t.Class})},300)},d.get_studentfee=function(){e.go("main.Sim043")},d.back=function(){d.dd=!0,window.localStorage.Admflag=d.dd,d.modal_cancel()},d.schoolcheck=function(){1==d.edt.current_school_status?d.school_edit=!1:d.school_edit=!0},d.chk_desc=function(){1==d.edt.marketing_code?d.desc_edit=!1:d.desc_edit=!0},d.chk_cicumstances=function(){1==d.edt.parent_status_code?d.circum_edit=!1:d.circum_edit=!0},d.chk_disab_status=function(){1==d.edt.disability_status?d.disab_edit=!1:d.disab_edit=!0},d.chk_health_res=function(){1==d.edt.health_restriction_status?d.healthres_edit=!1:d.healthres_edit=!0},d.chk_medic_status=function(){1==d.edt.medication_status?d.med_edit=!1:d.med_edit=!0},d.chk_other=function(){1==d.edt.health_other_status?d.other_edit=!1:d.other_edit=!0},d.chk_hearing=function(){1==d.edt.health_hearing_status?d.hearing_edit=!1:d.hearing_edit=!0},d.chk_vision=function(){1==d.edt.health_vision_status?d.health_vision_edit=!1:d.health_vision_edit=!0},d.chk_behaviour=function(){1==d.edt.behaviour_status?d.behaviour_edit=!1:d.behaviour_edit=!0},d.chk_gifted_status=function(){1==d.edt.gifted_status?d.gifted_edit=!1:d.gifted_edit=!0},d.chk_music_pro=function(){1==d.edt.music_status?d.music_edit=!1:d.music_edit=!0},d.chk_sport_pro=function(){1==d.edt.sports_status?d.sport_edit=!1:d.sport_edit=!0},d.chk_lang_sup=function(){1==d.edt.language_support_status?d.lang_sup_edit=!1:d.lang_sup_edit=!0},d.chk_Pri_contact=function(){1==d.edt.primary_contact_code?d.pricont_edit=!1:d.pricont_edit=!0},d.chk_transport_requin=function(){1==d.edt.transport_status?d.transreq_edit=!1:d.transreq_edit=!0},d.chk_employee=function(){1==document.getElementById("chk_employee").checked?document.getElementById("txt_emp_code").disabled=!1:document.getElementById("txt_emp_code").disabled=!0},d.chk_Sibling_attend=function(){1==d.edt.sibling_status?d.disableparent=!1:d.disableparent=!0},d.chk_learn_ther=function(){1==d.edt.sims_admission_learning_therapy_status?d.learnther_edit=!1:d.learnther_edit=!0},d.chk_spec_edu=function(){1==d.edt.sims_admission_special_education_status?d.spec_edu_edit=!1:d.spec_edu_edit=!0},d.chk_falled_grade=function(){1==d.edt.sims_admission_falled_grade_status?d.falledgrade_edit=!1:d.falledgrade_edit=!0},d.chk_commun=function(){1==d.edt.sims_admission_communication_status?d.commun_edit=!1:d.commun_edit=!0},d.chk_spec_activies=function(){1==d.edt.sims_admission_specialAct_status?d.specActiv_edit=!1:d.specActiv_edit=!0},d.chk_studyingin=function(){1==d.edt.sibling_status?(d.Study_edit=!1,document.getElementById("t3"),document.getElementById("t4"),document.getElementById("t5"),d.t=!1):(d.Study_edit=!0,document.getElementById("t3"),document.getElementById("t4"),document.getElementById("t5"),d.t=!0)},d.chk_ticking=function(){1==d.edt.declaration_status?(d.tick_edit=!1,d.confirm_edit=!1):(d.tick_edit=!0,d.confirm_edit=!0)},d.chk_copy_mother_add=function(){1==d.edt.copy_add?(d.edt.mother_appartment_number=d.edt.father_appartment_number,d.edt.mother_area_number=d.edt.father_area_number,d.edt.mother_building_number=d.edt.father_building_number,d.edt.mother_street_number=d.edt.father_street_number,d.edt.mother_city=d.edt.father_city,d.edt.mother_state=d.edt.father_state,d.edt.mother_country_code=d.edt.father_country_code,d.edt.mother_po_box=d.edt.father_po_box,d.edt.mother_nationality1_code=d.edt.father_nationality1_code,d.edt.mother_nationality2_code=d.edt.father_nationality2_code,d.edt.mother_summary_address=d.edt.father_summary_address,d.edt.mother_phone=d.edt.father_phone,d.edt.mother_po_box=d.edt.father_po_box,d.edt.mother_mobile=d.edt.father_mobile,d.edt.mother_occupation=d.edt.father_occupation,d.edt.mother_email=d.edt.father_email,d.edt.mother_company=d.edt.father_company):(d.edt.mother_appartment_number="",d.edt.mother_area_number="",d.edt.mother_building_number="",d.edt.mother_street_number="",d.edt.mother_city="",d.edt.mother_state="",d.edt.mother_country_code="",d.edt.mother_po_box="",d.edt.mother_nationality1_code="",d.edt.mother_nationality2_code="",d.edt.mother_summary_address="",d.edt.mother_phone="",d.edt.mother_po_box="",d.edt.mother_mobile="",d.edt.mother_occupation="",d.edt.mother_email="",d.edt.mother_company="")},d.chk_copy_guar_add1=function(){1==d.edt.copy_add1?(d.edt.guardian_appartment_number=d.edt.father_appartment_number,d.edt.guardian_area_number=d.edt.father_area_number,d.edt.guardian_building_number=d.edt.father_building_number,d.edt.guardian_street_number=d.edt.father_street_number,d.edt.guardian_city=d.edt.father_city,d.edt.guardian_state=d.edt.father_state,d.edt.guardian_country_code=d.edt.father_country_code,d.edt.guardian_po_box=d.edt.father_po_box,d.edt.guardian_nationality1_code=d.edt.father_nationality1_code,d.edt.guardian_nationality2_code=d.edt.father_nationality2_code,d.edt.guardian_summary_address=d.edt.father_summary_address,d.edt.guardian_phone=d.edt.father_phone,d.edt.guardian_po_box=d.edt.father_po_box,d.edt.guardian_mobile=d.edt.father_mobile,d.edt.guardian_occupation=d.edt.father_occupation,d.edt.guardian_email=d.edt.father_email,d.edt.guardian_company=d.edt.father_company):(d.edt.guardian_appartment_number="",d.edt.guardian_area_number="",d.edt.guardian_building_number="",d.edt.guardian_street_number="",d.edt.guardian_city="",d.edt.guardian_state="",d.edt.guardian_country_code="",d.edt.guardian_po_box="",d.edt.guardian_nationality1_code="",d.edt.guardian_nationality2_code="",d.edt.guardian_summary_address="",d.edt.guardian_phone="",d.edt.guardian_po_box="",d.edt.guardian_mobile="",d.edt.guardian_occupation="",d.edt.guardian_email="",d.edt.guardian_company="")},d.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+=0Fee Due DetailsEnrollment No:"+i.filteredTodos[e].sims_enroll_number+" Student Name:"+i.filteredTodos[e].student_name+" Grade Name:"+i.filteredTodos[e].grade_name+" Section Name:"+i.filteredTodos[e].section_name+"Fee TypeFee Amount("+i.filteredTodos[e].currency_code+")";for(var t=0;t"+i.defaulterdata[0][t].sims_fee_type_desc+"("+i.defaulterdata[0][t].sims_term_description+")"+parseFloat(i.defaulterdata[0][t].sims_balance_amount).toFixed(2));i.message_details=i.message_details+="Grand Total :"+parseFloat(i.filteredTodos[e].sims_balance_amount_total).toFixed(2),i.message_details=i.message_details+"";var a=document.getElementById("text-editor1").value.replace("{details}",i.message_details);if(1Fee Due DetailsEnrollment No:"+i.filteredTodos[e].sims_enroll_number+" Student Name:"+i.filteredTodos[e].student_name+" Grade Name:"+i.filteredTodos[e].grade_name+" Section Name:"+i.filteredTodos[e].section_name+"Fee DetailsGross FeeConcessionNet Fee";for(t=0;t"+i.defaulterdata[0][t].sims_fee_type_desc+"-"+i.defaulterdata[0][t].sims_term_description+""+i.defaulterdata[0][t].expected_amt+""+i.defaulterdata[0][t].conc_fee_faid+""+i.defaulterdata[0][t].net_amt+""),0;i.message_details=i.message_details+="Gross Total :"+i.filteredTodos[e].gross_fee_amt+"",i.message_details=i.message_details+="VAT Amount :"+i.filteredTodos[e].sims_vat_amt_tot+"",i.message_details=i.message_details+="Grand Total :"+i.filteredTodos[e].sims_balance_amount_total+"",i.message_details=i.message_details+"";a=document.getElementById("text-editor1").value.replace("{details1}",i.message_details)}else if("svs"==n.defaults.headers.common.schoolId){i.message_details="";for(t=0;t"),0;i.message_details=i.message_details+="",i.message_details=i.message_details+"
Fee Due Details
Enrollment No:"+i.filteredTodos[e].sims_enroll_number+"
Student Name:"+i.filteredTodos[e].student_name+"
Grade Name:"+i.filteredTodos[e].grade_name+"
Section Name:"+i.filteredTodos[e].section_name+"
Fee DetailsNet Fee
"+i.defaulterdata[0][t].sims_fee_type_desc+"-"+i.defaulterdata[0][t].sims_term_description+""+i.defaulterdata[0][t].gross_fee_amt+"
Grand Total :"+i.filteredTodos[e].sims_balance_amount_total+"
";a=document.getElementById("text-editor1").value.replace("{details1}",i.message_details)}i.filteredTodos[e].email_message=a+"

",i.data.push(i.filteredTodos[e])}i.data.length<=0?swal({showCloseButton:!0,text:"Please Select student to send Email Message.",imageUrl:"assets/img/notification-alert.png",width:350,showCloseButon:!0}):"asd"==n.defaults.headers.common.schoolId||"svs"==n.defaults.headers.common.schoolId?n.post(d.apiUrl+"api/CommDefaulter/emailtoDefaultersNew_ASD",i.data).then(function(e){!0===e.data?($("#MyModalNew").modal("hide"),i.email_subject="",i.email_message="",swal({showCloseButton:!0,text:"Email Message Scheduled Or Sent Sucessfully.",imageUrl:"assets/img/check.png",width:350,showCloseButon:!0})):swal({showCloseButton:!0,text:"Error in Sending Email Message.",imageUrl:"assets/img/notification-alert.png",width:350,showCloseButon:!0})}):n.post(d.apiUrl+"api/CommDefaulter/emailtoDefaultersNew",i.data).then(function(e){!0===e.data?($("#MyModalNew").modal("hide"),i.email_subject="",i.email_message="",swal({showCloseButton:!0,text:"Email Message Scheduled Or Sent Sucessfully.",imageUrl:"assets/img/check.png",width:350,showCloseButon:!0})):swal({showCloseButton:!0,text:"Error in Sending Email Message.",imageUrl:"assets/img/notification-alert.png",width:350,showCloseButon:!0})})}},n.get(d.apiUrl+"api/Fee/SFS/GetDefaulterEmailMessage").then(function(e){i.email_temp1=e.data}),i.settemplate=function(e){i.template=$("#cmb_template option:selected").text(),i.email={email_subject:i.template};for(var t,a=0;ac.sectionlst1.section_strength?swal({title:"Alert",text:"Section Strength is Full.If You still want to Continue?",showCloseButton:!0,width:380}).then(function(e){e?c.adm_update():($("#cmb_section").css("background-color","#E5E9EC"),$('.nav-tabs a[href="#admtab1"]').tab("show"))}):c.adm_update())},c.adm_update=function(){null==c.edt.home_country_isdcode&&(c.edt.home_country_isdcode=""),null==c.edt.home_phone&&(c.edt.home_phone="");var e={admission_number:param,appl_num:c.edt.appl_num,pros_num:c.edt.pros_num,pros_appl_num:c.edt.pros_appl_num,admission_date:c.edt.admission_date,school_code:c.edt.school_code,curr_code:c.edt.curr_code,academic_year:c.edt.academic_year,grade_code:c.edt.grade_code,section_code:c.edt.section_code,term_code:c.edt.term_code,tent_join_date:c.edt.tent_join_date,sims_student_emergency_contact_number1:c.edt.sims_student_emergency_contact_number1,sims_student_emergency_contact_name1:c.edt.sims_student_emergency_contact_name1,first_name:c.edt.first_name,middle_name:c.edt.middle_name,last_name:c.edt.last_name,family_name:c.edt.family_name,first_name_ot:c.edt.first_name_ot,midd_name_ot:c.edt.midd_name_ot,last_name_ot:c.edt.last_name_ot,family_name_ot:c.edt.family_name_ot,nicke_name:c.edt.nicke_name,birth_date:c.edt.birth_date,comm_date:c.edt.comm_date,birth_country_code:c.edt.birth_country_code,nationality_code:c.edt.nationality_code,ethinicity_code:c.edt.ethinicity_code,gender_code:c.edt.gender_code,religion_code:c.edt.religion_code,passport_num:c.edt.passport_num,passport_issue_date:c.edt.passport_issue_date,passport_expiry:c.edt.passport_expiry,passport_issue_auth:c.edt.passport_issue_auth,passport_issue_place:c.edt.passport_issue_place,visa_number:c.edt.visa_number,visa_type:c.edt.visa_type,visa_issuing_authority:c.edt.visa_issuing_authority,visa_issue_date:c.edt.visa_issue_date,visa_expiry_date:c.edt.visa_expiry_date,visa_issuing_place:c.edt.visa_issuing_place,national_id:c.edt.national_id,national_id_issue_date:c.edt.national_id_issue_date,national_id_expiry_date:c.edt.national_id_expiry_date,sibling_status:c.edt.sibling_status,parent_id:c.edt.parent_id,sibling_enroll:c.edt.sibling_enroll,sibling_name:c.edt.sibling_name,sibling_dob:c.edt.sibling_dob,sibling_school_code:c.edt.sibling_school_code,employee_type:c.edt.employee_type,employee_code:c.edt.employee_code,employee_school_code:c.edt.employee_school_code,motherTounge_language_code:c.edt.motherTounge_language_code,main_language_code:c.edt.main_language_code,main_language_r_code:c.edt.main_language_r_code,main_language_w_code:c.edt.main_language_w_code,main_language_s_code:c.edt.main_language_s_code,primary_contact_code:c.edt.primary_contact_code,primary_contact_pref_code:c.edt.primary_contact_pref_code,fee_payment_contact_pref_code:c.edt.fee_payment_contact_pref_code,transport_status:c.edt.transport_status,transport_desc:c.edt.transport_desc,father_salutation_code:c.edt.father_salutation_code,father_first_name:c.edt.father_first_name,father_middle_name:c.edt.father_middle_name,father_last_name:c.edt.father_last_name,father_family_name:c.edt.father_family_name,father_family_name_ot:c.edt.father_family_name_ot,father_nationality1_code:c.edt.father_nationality1_code,father_nationality2_code:c.edt.father_nationality2_code,father_appartment_number:c.edt.father_appartment_number,father_building_number:c.edt.father_building_number,father_street_number:c.edt.father_street_number,father_area_number:c.edt.father_area_number,father_city:c.edt.father_city,father_state:c.edt.father_state,father_country_code:c.edt.father_country_code,father_summary_address:c.edt.father_summary_address,father_po_box:c.edt.father_po_box,father_phone:c.edt.father_phone,father_email:c.edt.father_email,father_mobile:c.edt.father_mobile,father_fax:c.edt.father_fax,father_occupation:c.edt.father_occupation,father_company:c.edt.father_company,father_passport_number:c.edt.father_passport_number,sims_admission_father_national_id:c.edt.sims_admission_father_national_id,guardian_salutation_code:c.edt.guardian_salutation_code,guardian_first_name:c.edt.guardian_first_name,guardian_middle_name:c.edt.guardian_middle_name,guardian_last_name:c.edt.guardian_last_name,guardian_family_name:c.edt.guardian_family_name,guardian_nationality1_code:c.edt.guardian_nationality1_code,guardian_nationality2_code:c.edt.guardian_nationality2_code,guardian_appartment_number:c.edt.guardian_appartment_number,guardian_building_number:c.edt.guardian_building_number,guardian_street_number:c.edt.guardian_street_number,guardian_area_number:c.edt.guardian_area_number,guardian_city:c.edt.guardian_city,guardian_state:c.edt.guardian_state,guardian_country_code:c.edt.guardian_country_code,guardian_summary_address:c.edt.guardian_summary_address,guardian_po_box:c.edt.guardian_po_box,guardian_phone:c.edt.guardian_phone,guardian_mobile:c.edt.guardian_mobile,guardian_fax:c.edt.guardian_fax,guardian_email:c.edt.guardian_email,guardian_occupation:c.edt.guardian_occupation,guardian_company:c.edt.guardian_company,guardian_passport_number:c.edt.guardian_passport_number,guardian_relationship_code:c.edt.guardian_relationship_code,mother_salutation_code:c.edt.mother_salutation_code,mother_first_name:c.edt.mother_first_name,mother_middle_name:c.edt.mother_middle_name,mother_last_name:c.edt.mother_last_name,mother_family_name:c.edt.mother_family_name,mother_name_ot:c.edt.mother_name_ot,mother_nationality1_code:c.edt.mother_nationality1_code,mother_nationality2_code:c.edt.mother_nationality2_code,mother_appartment_number:c.edt.mother_appartment_number,mother_building_number:c.edt.mother_building_number,mother_street_number:c.edt.mother_street_number,mother_area_number:c.edt.mother_area_number,mother_city:c.edt.mother_city,mother_state:c.edt.mother_state,mother_country_code:c.edt.mother_country_code,mother_summary_address:c.edt.mother_summary_address,mother_po_box:c.edt.mother_po_box,mother_phone:c.edt.mother_phone,mother_mobile:c.edt.mother_mobile,mother_fax:c.edt.mother_fax,mother_email:c.edt.mother_email,mother_occupation:c.edt.mother_occupation,mother_passport_number:c.edt.mother_passport_number,current_school_status:c.edt.current_school_status,current_school_name:c.edt.current_school_name,current_school_enroll_number:c.edt.current_school_enroll_number,current_school_grade:c.edt.current_school_grade,current_school_cur:c.edt.current_school_cur,current_school_from_date:c.edt.current_school_from_date,current_school_to_date:c.edt.current_school_to_date,current_school_language:c.edt.current_school_language,current_school_head_teacher:c.edt.current_school_head_teacher,current_school_phone:c.edt.current_school_phone,current_school_fax:c.edt.current_school_fax,current_school_city:c.edt.current_school_city,current_school_country_code:c.edt.current_school_country_code,current_school_address:c.edt.current_school_address,marketing_code:c.edt.marketing_code,marketing_description:c.edt.marketing_description,parent_status_code:c.edt.parent_status_code,legal_custody_code:c.edt.legal_custody_code,health_card_number:c.edt.health_card_number,health_card_issue_date:c.edt.health_card_issue_date,health_card_issuing_authority:c.edt.health_card_issuing_authority,blood_group_code:c.edt.blood_group_code,medication_status:c.edt.medication_status,medication_desc:c.edt.medication_desc,disability_status:c.edt.disability_status,disability_desc:c.edt.disability_desc,behaviour_status:c.edt.behaviour_status,behaviour_desc:c.edt.behaviour_desc,health_restriction_status:c.edt.health_restriction_status,health_restriction_desc:c.edt.health_restriction_desc,health_hearing_status:c.edt.health_hearing_status,health_hearing_desc:c.edt.health_hearing_desc,health_vision_status:c.edt.health_vision_status,health_vision_desc:c.edt.health_vision_desc,health_other_status:c.edt.health_other_status,health_other_desc:c.edt.health_other_desc,gifted_status:c.edt.gifted_status,gifted_desc:c.edt.gifted_desc,music_status:c.edt.music_status,music_desc:c.edt.music_desc,sports_status:c.edt.sports_status,sports_desc:c.edt.sports_desc,language_support_status:c.edt.language_support_status,language_support_desc:c.edt.language_support_desc,declaration_status:c.edt.declaration_status,fees_paid_status:c.edt.fees_paid_status,fee_category_code:c.edt.fee_category_code,ip:c.edt.ip,dns:c.edt.dns,user_code:c.edt.user_code,status:c.edt.status,sims_student_attribute1:c.edt.sims_student_attribute1,sims_student_attribute2:c.edt.sims_student_attribute2,sims_student_attribute3:c.edt.sims_student_attribute3,sims_student_attribute4:c.edt.sims_student_attribute4,sims_student_health_respiratory_status:c.edt.sims_student_health_respiratory_status,sims_student_health_respiratory_desc:c.edt.sims_student_health_respiratory_desc,sims_student_health_hay_fever_status:c.edt.sims_student_health_hay_fever_status,sims_student_health_hay_fever_desc:c.edt.sims_student_health_hay_fever_desc,sims_student_health_epilepsy_status:c.edt.sims_student_health_epilepsy_status,sims_student_health_epilepsy_desc:c.edt.sims_student_health_epilepsy_desc,sims_student_health_skin_status:c.edt.sims_student_health_skin_status,sims_student_health_skin_desc:c.edt.sims_student_health_skin_desc,sims_student_health_diabetes_status:c.edt.sims_student_health_diabetes_status,sims_student_health_diabetes_desc:c.edt.sims_student_health_diabetes_desc,sims_student_health_surgery_status:c.edt.sims_student_health_surgery_status,sims_student_health_surgery_desc:c.edt.sims_student_health_surgery_desc,sims_admission_recommendation:c.edt.sims_admission_recommendation,sims_admission_mother_national_id:c.edt.sims_admission_mother_national_id,sims_admission_guardian_national_id:c.edt.sims_admission_guardian_national_id,sims_fee_month_code:c.edt.sims_fee_month_code,sims_student_attribute5:c.edt.sims_student_attribute5,sims_student_attribute6:c.edt.sims_student_attribute6,sims_student_attribute7:c.edt.sims_student_attribute7,sims_student_attribute8:c.edt.sims_student_attribute8,sims_student_attribute9:c.edt.sims_student_attribute9,sims_student_attribute10:c.edt.sims_student_attribute10,sims_student_attribute11:c.edt.sims_student_attribute11,sims_student_attribute12:c.edt.sims_student_attribute12,sims_admission_second_lang_code:c.edt.sims_admission_second_lang_code,sims_admission_third_lang_code:c.edt.sims_admission_third_lang_code,sims_admission_subject_code:c.edt.sims_admission_second_lang_code+","+c.edt.sims_admission_third_lang_code};i.push(e),m.post(l.apiUrl+"api/common/Admission_dpsd/ApproveStudent",i).then(function(e){c.display=!0,c.msg1=e.data,console.log(c.msg1)}),c.grid1=!0,$("#myModal1").modal({backdrop:"static",keyboard:!0})},c.get_studentfee=function(){a.go("main.Sim043")},c.schoolcheck=function(){1==c.edt.current_school_status?c.school_edit=!1:c.school_edit=!0},c.chk_desc=function(){1==c.edt.marketing_code?c.desc_edit=!1:c.desc_edit=!0},c.chk_cicumstances=function(){1==c.edt.parent_status_code?c.circum_edit=!1:c.circum_edit=!0},c.chk_disab_status=function(){1==c.edt.disability_status?c.disab_edit=!1:c.disab_edit=!0},c.chk_health_res=function(){1==c.edt.health_restriction_status?c.healthres_edit=!1:c.healthres_edit=!0},c.chk_medic_status=function(){1==c.edt.medication_status?c.med_edit=!1:c.med_edit=!0},c.chk_other=function(){1==c.edt.health_other_status?c.other_edit=!1:c.other_edit=!0},c.chk_hearing=function(){1==c.edt.health_hearing_status?c.hearing_edit=!1:c.hearing_edit=!0},c.chk_vision=function(){1==c.edt.health_vision_status?c.health_vision_edit=!1:c.health_vision_edit=!0},c.chk_behaviour=function(){1==c.edt.behaviour_status?c.behaviour_edit=!1:c.behaviour_edit=!0},c.chk_gifted_status=function(){1==c.edt.gifted_status?c.gifted_edit=!1:c.gifted_edit=!0},c.chk_music_pro=function(){1==c.edt.music_status?c.music_edit=!1:c.music_edit=!0},c.chk_sport_pro=function(){1==c.edt.sports_status?c.sport_edit=!1:c.sport_edit=!0},c.chk_lang_sup=function(){1==c.edt.language_support_status?c.lang_sup_edit=!1:c.lang_sup_edit=!0},c.chk_Pri_contact=function(){1==c.edt.primary_contact_code?c.pricont_edit=!1:c.pricont_edit=!0},c.chk_transport_requin=function(){1==c.edt.transport_status?c.transreq_edit=!1:c.transreq_edit=!0},c.chk_employee=function(){1==document.getElementById("chk_employee").checked?document.getElementById("txt_emp_code").disabled=!1:document.getElementById("txt_emp_code").disabled=!0},c.chk_Sibling_attend=function(){1==c.edt.sibling_status?c.disableparent=!1:c.disableparent=!0},c.chk_learn_ther=function(){1==c.edt.sims_admission_learning_therapy_status?c.learnther_edit=!1:c.learnther_edit=!0},c.chk_spec_edu=function(){1==c.edt.sims_admission_special_education_status?c.spec_edu_edit=!1:c.spec_edu_edit=!0},c.chk_falled_grade=function(){1==c.edt.sims_admission_falled_grade_status?c.falledgrade_edit=!1:c.falledgrade_edit=!0},c.chk_commun=function(){1==c.edt.sims_admission_communication_status?c.commun_edit=!1:c.commun_edit=!0},c.chk_spec_activies=function(){1==c.edt.sims_admission_specialAct_status?c.specActiv_edit=!1:c.specActiv_edit=!0},c.chk_studyingin=function(){1==c.edt.sibling_status?(c.Study_edit=!1,document.getElementById("t3"),document.getElementById("t4"),document.getElementById("t5"),c.t=!1):(c.Study_edit=!0,document.getElementById("t3"),document.getElementById("t4"),document.getElementById("t5"),c.t=!0)},c.chk_ticking=function(){1==c.edt.declaration_status?(c.tick_edit=!1,c.confirm_edit=!1):(c.tick_edit=!0,c.confirm_edit=!0)},c.chk_copy_mother_add=function(){1==c.edt.copy_add?(c.edt.mother_appartment_number=c.edt.father_appartment_number,c.edt.mother_area_number=c.edt.father_area_number,c.edt.mother_building_number=c.edt.father_building_number,c.edt.mother_street_number=c.edt.father_street_number,c.edt.mother_city=c.edt.father_city,c.edt.mother_state=c.edt.father_state,c.edt.mother_country_code=c.edt.father_country_code,c.edt.mother_po_box=c.edt.father_po_box,c.edt.mother_nationality1_code=c.edt.father_nationality1_code,c.edt.mother_nationality2_code=c.edt.father_nationality2_code,c.edt.mother_summary_address=c.edt.father_summary_address,c.edt.mother_phone=c.edt.father_phone,c.edt.mother_po_box=c.edt.father_po_box,c.edt.mother_mobile=c.edt.father_mobile,c.edt.mother_occupation=c.edt.father_occupation,c.edt.mother_email=c.edt.father_email,c.edt.mother_company=c.edt.father_company):(c.edt.mother_appartment_number="",c.edt.mother_area_number="",c.edt.mother_building_number="",c.edt.mother_street_number="",c.edt.mother_city="",c.edt.mother_state="",c.edt.mother_country_code="",c.edt.mother_po_box="",c.edt.mother_nationality1_code="",c.edt.mother_nationality2_code="",c.edt.mother_summary_address="",c.edt.mother_phone="",c.edt.mother_po_box="",c.edt.mother_mobile="",c.edt.mother_occupation="",c.edt.mother_email="",c.edt.mother_company="")},c.chk_copy_guar_add1=function(){1==c.edt.copy_add1?(c.edt.guardian_appartment_number=c.edt.father_appartment_number,c.edt.guardian_area_number=c.edt.father_area_number,c.edt.guardian_building_number=c.edt.father_building_number,c.edt.guardian_street_number=c.edt.father_street_number,c.edt.guardian_city=c.edt.father_city,c.edt.guardian_state=c.edt.father_state,c.edt.guardian_country_code=c.edt.father_country_code,c.edt.guardian_po_box=c.edt.father_po_box,c.edt.guardian_nationality1_code=c.edt.father_nationality1_code,c.edt.guardian_nationality2_code=c.edt.father_nationality2_code,c.edt.guardian_summary_address=c.edt.father_summary_address,c.edt.guardian_phone=c.edt.father_phone,c.edt.guardian_po_box=c.edt.father_po_box,c.edt.guardian_mobile=c.edt.father_mobile,c.edt.guardian_occupation=c.edt.father_occupation,c.edt.guardian_email=c.edt.father_email,c.edt.guardian_company=c.edt.father_company):(c.edt.guardian_appartment_number="",c.edt.guardian_area_number="",c.edt.guardian_building_number="",c.edt.guardian_street_number="",c.edt.guardian_city="",c.edt.guardian_state="",c.edt.guardian_country_code="",c.edt.guardian_po_box="",c.edt.guardian_nationality1_code="",c.edt.guardian_nationality2_code="",c.edt.guardian_summary_address="",c.edt.guardian_phone="",c.edt.guardian_po_box="",c.edt.guardian_mobile="",c.edt.guardian_occupation="",c.edt.guardian_email="",c.edt.guardian_company="")},c.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+=0m.pageCount3()-5?m.pageCount3()-5+1:t;ao&&(s.s.r=o),s.s.c>n&&(s.s.c=n),s.e.rt;t++)c.subData={},c.subData.enq_date=e.sheets.Sheet1[t].Date,c.subData.enq_source=e.sheets.Sheet1[t].Source_of_Enquiry,c.subData.enq_name_parent=e.sheets.Sheet1[t].Name_of_Parent,c.subData.enq_phone=e.sheets.Sheet1[t].Phone,c.subData.enq_email=e.sheets.Sheet1[t].Email,c.subData.enq_childs_name=e.sheets.Sheet1[t].Childs_Name,c.subData.enq_childs_dob=e.sheets.Sheet1[t].Childs_DOB,c.subData.enq_childs_age=e.sheets.Sheet1[t].Childs_AGE,c.subData.enq_admission_grade_class=e.sheets.Sheet1[t].Admission_seeking_for_Grade_Class,c.subData.enq_admission_yes_no=e.sheets.Sheet1[t].Converted_to_Admissions_Yes_No,c.sheetsData.push(c.subData);console.log(c.sheetsData)}),{method:"POST",url:l.apiUrl+"/api/file/uploadDocument?filename="+c.filename.name+n("date")(new Date,"dd-MM-yyyy")+"-"+n("date")(new Date,"HH-mm-ss")+"&location=Docs/EnquiryDashboard",data:h,headers:{"Content-Type":void 0}});m(t).success(function(e){})},c.uploadClick=function(){h=new FormData,c.busy=!1,c.modalbusy=!0},c.cancelData=function(){$("#enquiryuploadModal").modal("hide"),c.busy=!1},c.downloadFormat=function(){c.url=l.docUrl+"format/EnquiryDashboard/enquirydashboardExcel.xlsx",window.open(c.url,"_self","location=yes")},c.update_tel=function(e){var t=[];e&&((e=c.int).opr="U",t.push(e),m.post(l.apiUrl+"api/TelephonicConversationDetails/CUDTelephonicConversationDetails",t).then(function(e){c.msg1=e.data,1==c.msg1?(swal({text:"Record Updated Successfully",imageUrl:"assets/img/check.png",showCloseButton:!0,width:300,height:200}),c.getgrid_tel()):swal({text:"Record Not Update / Order No Is Exists",imageUrl:"assets/img/close.png",showCloseButton:!0,width:300,height:200}),c.searchbutton()}),t=[],c.table=!0,c.display=!1)},c.Cancel_tel=function(){c.temp="",c.table=!0,c.display=!0,c.int=" ",c.editor=!0,c.save_btn=!0,c.Update_btn=!1},$('*[data-datepicker="true"] input[type="text"]').datepicker({todayBtn:!0,orientation:"top left",autoclose:!0,todayHighlight:!0,format:"yyyy-mm-dd"}),$(document).on("touch click",'*[data-datepicker="true"] .add-on',function(e){$('input[type="text"]',$(this).parent()).focus()})}]),e.factory("XLSXReaderService",["$q","$rootScope",function(o,n){function e(e){angular.extend(this,e)}return e.readFile=function(e,t,a){var s=o.defer();return XLSXReader(e,t,a,function(e){n.$apply(function(){s.resolve(e)})}),s.promise},e}])}(),function(){"use strict";var e=angular.module("sims.module.Student");e.run(["$rootScope","$templateCache",function(e,t){e.$on("$viewContentLoaded",function(){t.removeAll()})}]),e.controller("AdmissionShort_NewCont",["$scope","$state","$rootScope","$timeout","gettextCatalog","$http","ENV","$filter",function(o,e,t,a,s,n,_,i){"rakmps"!=n.defaults.headers.common.schoolId&&"portal"!=n.defaults.headers.common.schoolId&&"rmps"!=n.defaults.headers.common.schoolId||(o.hideApplicationNo=!0),o.display=!0,o.pagesize="5",o.pageindex="1",o.grid=!0,o.save1=!0,o.parent_edit=!0,o.father_edit=!0,o.Chk_parent=!1,o.ddMMyyyy=i("date")(new Date,"dd-MM-yyyy");t.visible_stud=!1,t.visible_parent=!0,t.visible_search_parent=!1,t.visible_teacher=!1,t.visible_User=!1,t.visible_Employee=!1,t.chkMulti=!1,o.chk_searchshow=!1,o.chk_show=!0,o.BUSY=!1,o.msg1=[],o.edt={admission_date:o.ddMMyyyy,tent_join_date:o.ddMMyyyy,comm_date:o.ddMMyyyy},n.get(_.apiUrl+"api/common/Admission/religionList_nas").then(function(e){o.religion=e.data,console.log("abc",o.reg)}),n.get(_.apiUrl+"api/common/Admission/religionList_leams").then(function(e){o.religion=e.data,console.log("abc",o.reg)}),n.get(_.apiUrl+"api/common/ProspectDashboard/GetAboutUsData").then(function(e){o.about_lst=e.data,console.log("about school",o.about_lst)}),n.get(_.apiUrl+"api/TransRouteStudDetails/getpickdropLocation").then(function(e){o.location1=e.data,console.log("LOCATION1",o.location1)}),n.get(_.apiUrl+"api/common/Admission/GetRoute").then(function(e){o.location=e.data,console.log("LOCATION",o.location)}),o.getpickuplocation=function(e){e=e.split(":").shift();n.get(_.apiUrl+"api/common/Admission/GetPickupLocation?route_code="+e).then(function(e){o.PickupDrop1=e.data,console.log("PickupDrop1",o.PickupDrop)})},n.get(_.apiUrl+"api/common/Admission/getAdmissionList").then(function(e){o.obj=e.data,console.log(o.obj),o.scholnm=[],o.feecat=[],o.legalcus=[],o.feemonth=[];for(var t=0;t{}]/g,"_"),console.log("space",i.filename_doc),""==e.pays_doc_srno&&(i.showUpdateBtn=!(a=!0),s={pays_doc_empl_id:e.pays_doc_empl_id,pays_doc_mod_code:e.pays_doc_mod_code,pays_doc_code:e.pays_doc_code,pays_doc_desc:e.pays_doc_desc,pays_doc_path:e.pays_doc_path,pays_doc_issue_date:e.pays_doc_issue_date,pays_doc_expiry_date:e.pays_doc_expiry_date,pays_doc_status:!0},t.push(s)),i.pays_doc_empl_id=e.pays_doc_empl_id,i.pays_doc_desc1=e.pays_doc_desc1,i.photo_filename_doc.split(".")[1],i.filename1=i.filename_doc+"."+d,[]),e=[];if(null==i.photo_filename_doc||""==i.photo_filename_doc)swal({title:"Alert",text:"Please Select File",width:300,height:200});else{if(1==a)for(var o=0;o{}]/g,"_"),console.log("space",i.filename_doc),(""==e.pays_doc_srno?(i.showUpdateBtn=!!0,s={pays_doc_empl_id:e.pays_doc_empl_id,pays_doc_mod_code:e.pays_doc_mod_code,pays_doc_code:e.pays_doc_code,pays_doc_desc:e.pays_doc_desc,pays_doc_path:e.pays_doc_path,pays_doc_issue_date:e.pays_doc_issue_date,pays_doc_expiry_date:e.pays_doc_expiry_date,pays_doc_status:!0},[]):(i.showUpdateBtn=!!1,s={pays_doc_srno:e.pays_doc_srno,pays_doc_empl_id:e.pays_doc_empl_id,pays_doc_mod_code:e.pays_doc_mod_code,pays_doc_code:e.pays_doc_code,pays_doc_desc:e.pays_doc_desc,pays_doc_path:e.pays_doc_path,pays_doc_issue_date:e.pays_doc_issue_date,pays_doc_expiry_date:e.pays_doc_expiry_date,pays_doc_status:!0},t)).push(s),i.pays_doc_empl_id=e.pays_doc_empl_id,i.pays_doc_desc1=e.pays_doc_desc1,[]),a=[];if(null==i.photo_filename_doc||""==i.photo_filename_doc||null==i.photo_filename_doc){for(var o=0;oparseInt(r)||parseInt(o.qualiList[a].em_qual_to_year)>parseInt(r))return void swal({title:"Alert",text:"Future year not allowed",timer:5e3,width:320});l=o.qualiList[a].emp_qual_qual_code;var s={emp_qual_em_code:o.Emp_ID,emp_qual_qual_code:l,emp_qual_institute:o.qualiList[a].emp_qual_institute,emp_qual_type_code:o.qualiList[a].emp_qual_type_code,em_qual_from_month:o.qualiList[a].em_qual_from_month,em_qual_from_year:o.qualiList[a].em_qual_from_year,em_qual_to_month:o.qualiList[a].em_qual_to_month,em_qual_year:o.qualiList[a].em_qual_to_year,emp_qual_percentage:o.qualiList[a].emp_qual_percentage,emp_qual_remark:o.qualiList[a].emp_qual_remark,em_qual_status:o.qualiList[a].em_qual_status,pays_qualification_special_subject:o.qualiList[a].pays_qualification_special_subject,pays_qualification_degree_type:o.qualiList[a].pays_qualification_degree_type,opr:"I"};t.push(s)}i.post(d.apiUrl+"api/QualificationISH/CUDQualification?year=",t).then(function(e){o.msg1=e.data,swal({text:o.msg1.strMessage,timer:5e3}),o.display=!1,i.get(d.apiUrl+"api/QualificationISH/getAllQualification?emp_name_id="+o.Emp_ID).then(function(e){o.obj1=e.data,o.totalItems=o.obj1.length,o.todos=o.obj1,o.makeTodos()}),t=[],o.grid=!0,o.display=!1,o.temp.emp_name_id=""})}},o.update=function(e){var t=[];if(e){for(var a=0;aparseInt(r)||parseInt(o.qualiList[a].em_qual_to_year)>parseInt(r))return void swal({title:"Alert",text:"Future year not allowed",timer:5e3,width:320});l=o.qualiList[a].emp_qual_qual_code;var s={emp_qual_em_code:o.Emp_ID,emp_qual_qual_code:l,emp_qual_institute:o.qualiList[a].emp_qual_institute,emp_qual_type_code:o.qualiList[a].emp_qual_type_code,em_qual_from_month:o.qualiList[a].em_qual_from_month,em_qual_from_year:o.qualiList[a].em_qual_from_year,em_qual_to_month:o.qualiList[a].em_qual_to_month,em_qual_year:o.qualiList[a].em_qual_to_year,emp_qual_percentage:o.qualiList[a].emp_qual_percentage,emp_qual_remark:o.qualiList[a].emp_qual_remark,em_qual_status:o.qualiList[a].em_qual_status,pays_qualification_special_subject:o.qualiList[a].pays_qualification_special_subject,pays_qualification_degree_type:o.qualiList[a].pays_qualification_degree_type,opr:"U"};t.push(s)}0!=o.qualiList.length?i.post(d.apiUrl+"api/QualificationISH/UpadateQualification?simsobj2=",t).then(function(e){o.msg1=e.data,swal({text:o.msg1.strMessage,timer:5e3}),o.display=!1;o.popobj.emp_qual_qual_code1,o.popobj.emp_qual_dept_code1,o.popobj.emp_qual_company_code1;i.get(d.apiUrl+"api/QualificationISH/getAllQualification?emp_name_id="+o.Emp_ID).then(function(e){o.obj1=e.data,o.totalItems=o.obj1.length,o.todos=o.obj1,o.makeTodos()}),o.grid=!0,o.display=!1}):swal({text:"You not edit correct record",timer:5e3})}},o.GetData=function(){i.get(d.apiUrl+"api/QualificationISH/getAllQualification?emp_name_id="+o.Emp_ID).then(function(e){o.obj1=e.data,console.log("maindata",o.obj1),o.totalItems=o.obj1.length,o.todos=o.obj1,o.makeTodos()})},o.filteredTodos=[],o.currentPage=1,o.numPerPage=10,o.maxSize=10,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);for(var a=0;a
 Qualification  Institute  Qualification Type  From Year  To Year
"+e.emp_qual_qual_name+" "+e.emp_qual_institute+" "+e.emp_qual_type_name+" "+e.em_qual_from_year+""+e.em_qual_year+"
 Percentage Remark
"+e.emp_qual_percentage+" "+e.emp_qual_remark+"
"),$(t.currentTarget).parents("tr").after(c),o.flag=!1;else{$("#innerRow").css({display:"none"});for(var a=0;ad.sectionlst1.section_strength?swal({title:"Alert",text:"Section Strength is Full.If You still want to Continue?",showCloseButton:!0,width:380}).then(function(e){e?d.adm_update():($("#cmb_section").css("background-color","#E5E9EC"),$('.nav-tabs a[href="#admtab1"]').tab("show"))}):d.adm_update())},d.adm_update=function(){null==d.edt.home_country_isdcode&&(d.edt.home_country_isdcode=""),null==d.edt.home_phone&&(d.edt.home_phone="");var e={admission_number:c,appl_num:d.edt.appl_num,pros_num:d.edt.pros_num,pros_appl_num:d.edt.pros_appl_num,admission_date:d.edt.admission_date,school_code:d.edt.school_code,curr_code:d.edt.curr_code,academic_year:d.edt.academic_year,grade_code:d.edt.grade_code,section_code:d.edt.section_code,term_code:d.edt.term_code,tent_join_date:d.edt.tent_join_date,sims_student_emergency_contact_number1:d.edt.sims_student_emergency_contact_number1,sims_student_emergency_contact_name1:d.edt.sims_student_emergency_contact_name1,first_name:d.edt.first_name,middle_name:d.edt.middle_name,last_name:d.edt.last_name,family_name:d.edt.family_name,first_name_ot:d.edt.first_name_ot,midd_name_ot:d.edt.midd_name_ot,last_name_ot:d.edt.last_name_ot,family_name_ot:d.edt.family_name_ot,nicke_name:d.edt.nicke_name,birth_date:d.edt.birth_date,comm_date:d.edt.comm_date,birth_country_code:d.edt.birth_country_code,nationality_code:d.edt.nationality_code,ethinicity_code:d.edt.ethinicity_code,gender_code:d.edt.gender_code,religion_code:d.edt.religion_code,passport_num:d.edt.passport_num,passport_issue_date:d.edt.passport_issue_date,passport_expiry:d.edt.passport_expiry,passport_issue_auth:d.edt.passport_issue_auth,passport_issue_place:d.edt.passport_issue_place,visa_number:d.edt.visa_number,visa_type:d.edt.visa_type,visa_issuing_authority:d.edt.visa_issuing_authority,visa_issue_date:d.edt.visa_issue_date,visa_expiry_date:d.edt.visa_expiry_date,visa_issuing_place:d.edt.visa_issuing_place,national_id:d.edt.national_id,national_id_issue_date:d.edt.national_id_issue_date,national_id_expiry_date:d.edt.national_id_expiry_date,sibling_status:d.edt.sibling_status,parent_id:d.edt.parent_id,sibling_enroll:d.edt.sibling_enroll,sibling_name:d.edt.sibling_name,sibling_dob:d.edt.sibling_dob,sibling_school_code:d.edt.sibling_school_code,employee_type:d.edt.employee_type,employee_code:d.edt.employee_code,employee_school_code:d.edt.employee_school_code,motherTounge_language_code:d.edt.motherTounge_language_code,main_language_code:d.edt.main_language_code,main_language_r_code:d.edt.main_language_r_code,main_language_w_code:d.edt.main_language_w_code,main_language_s_code:d.edt.main_language_s_code,primary_contact_code:d.edt.primary_contact_code,primary_contact_pref_code:d.edt.primary_contact_pref_code,fee_payment_contact_pref_code:d.edt.fee_payment_contact_pref_code,transport_status:d.edt.transport_status,transport_desc:d.edt.transport_desc,father_salutation_code:d.edt.father_salutation_code,father_first_name:d.edt.father_first_name,father_middle_name:d.edt.father_middle_name,father_last_name:d.edt.father_last_name,father_family_name:d.edt.father_family_name,father_family_name_ot:d.edt.father_family_name_ot,father_nationality1_code:d.edt.father_nationality1_code,father_nationality2_code:d.edt.father_nationality2_code,father_appartment_number:d.edt.father_appartment_number,father_building_number:d.edt.father_building_number,father_street_number:d.edt.father_street_number,father_area_number:d.edt.father_area_number,father_city:d.edt.father_city,father_state:d.edt.father_state,father_country_code:d.edt.father_country_code,father_summary_address:d.edt.father_summary_address,father_po_box:d.edt.father_po_box,father_phone:d.edt.father_phone,father_email:d.edt.father_email,father_mobile:d.edt.father_mobile,father_fax:d.edt.father_fax,father_occupation:d.edt.father_occupation,father_company:d.edt.father_company,father_passport_number:d.edt.father_passport_number,sims_admission_father_national_id:d.edt.sims_admission_father_national_id,guardian_salutation_code:d.edt.guardian_salutation_code,guardian_first_name:d.edt.guardian_first_name,guardian_middle_name:d.edt.guardian_middle_name,guardian_last_name:d.edt.guardian_last_name,guardian_family_name:d.edt.guardian_family_name,guardian_nationality1_code:d.edt.guardian_nationality1_code,guardian_nationality2_code:d.edt.guardian_nationality2_code,guardian_appartment_number:d.edt.guardian_appartment_number,guardian_building_number:d.edt.guardian_building_number,guardian_street_number:d.edt.guardian_street_number,guardian_area_number:d.edt.guardian_area_number,guardian_city:d.edt.guardian_city,guardian_state:d.edt.guardian_state,guardian_country_code:d.edt.guardian_country_code,guardian_summary_address:d.edt.guardian_summary_address,guardian_po_box:d.edt.guardian_po_box,guardian_phone:d.edt.guardian_phone,guardian_mobile:d.edt.guardian_mobile,guardian_fax:d.edt.guardian_fax,guardian_email:d.edt.guardian_email,guardian_occupation:d.edt.guardian_occupation,guardian_company:d.edt.guardian_company,guardian_passport_number:d.edt.guardian_passport_number,guardian_relationship_code:d.edt.guardian_relationship_code,mother_salutation_code:d.edt.mother_salutation_code,mother_first_name:d.edt.mother_first_name,mother_middle_name:d.edt.mother_middle_name,mother_last_name:d.edt.mother_last_name,mother_family_name:d.edt.mother_family_name,mother_name_ot:d.edt.mother_name_ot,mother_nationality1_code:d.edt.mother_nationality1_code,mother_nationality2_code:d.edt.mother_nationality2_code,mother_appartment_number:d.edt.mother_appartment_number,mother_building_number:d.edt.mother_building_number,mother_street_number:d.edt.mother_street_number,mother_area_number:d.edt.mother_area_number,mother_city:d.edt.mother_city,mother_state:d.edt.mother_state,mother_country_code:d.edt.mother_country_code,mother_summary_address:d.edt.mother_summary_address,mother_po_box:d.edt.mother_po_box,mother_phone:d.edt.mother_phone,mother_mobile:d.edt.mother_mobile,mother_fax:d.edt.mother_fax,mother_email:d.edt.mother_email,mother_occupation:d.edt.mother_occupation,mother_passport_number:d.edt.mother_passport_number,current_school_status:d.edt.current_school_status,current_school_name:d.edt.current_school_name,current_school_enroll_number:d.edt.current_school_enroll_number,current_school_grade:d.edt.current_school_grade,current_school_cur:d.edt.current_school_cur,current_school_from_date:d.edt.current_school_from_date,current_school_to_date:d.edt.current_school_to_date,current_school_language:d.edt.current_school_language,current_school_head_teacher:d.edt.current_school_head_teacher,current_school_phone:d.edt.current_school_phone,current_school_fax:d.edt.current_school_fax,current_school_city:d.edt.current_school_city,current_school_country_code:d.edt.current_school_country_code,current_school_address:d.edt.current_school_address,marketing_code:d.edt.marketing_code,marketing_description:d.edt.marketing_description,parent_status_code:d.edt.parent_status_code,legal_custody_code:d.edt.legal_custody_code,health_card_number:d.edt.health_card_number,health_card_issue_date:d.edt.health_card_issue_date,health_card_issuing_authority:d.edt.health_card_issuing_authority,blood_group_code:d.edt.blood_group_code,medication_status:d.edt.medication_status,medication_desc:d.edt.medication_desc,disability_status:d.edt.disability_status,disability_desc:d.edt.disability_desc,behaviour_status:d.edt.behaviour_status,behaviour_desc:d.edt.behaviour_desc,health_restriction_status:d.edt.health_restriction_status,health_restriction_desc:d.edt.health_restriction_desc,health_hearing_status:d.edt.health_hearing_status,health_hearing_desc:d.edt.health_hearing_desc,health_vision_status:d.edt.health_vision_status,health_vision_desc:d.edt.health_vision_desc,health_other_status:d.edt.health_other_status,health_other_desc:d.edt.health_other_desc,gifted_status:d.edt.gifted_status,gifted_desc:d.edt.gifted_desc,music_status:d.edt.music_status,music_desc:d.edt.music_desc,sports_status:d.edt.sports_status,sports_desc:d.edt.sports_desc,language_support_status:d.edt.language_support_status,language_support_desc:d.edt.language_support_desc,declaration_status:d.edt.declaration_status,fees_paid_status:d.edt.fees_paid_status,fee_category_code:d.edt.fee_category_code,ip:d.edt.ip,dns:d.edt.dns,user_code:d.edt.user_code,status:d.edt.status,sims_student_attribute1:d.edt.sims_student_attribute1,sims_student_attribute2:d.edt.sims_student_attribute2,sims_student_attribute3:d.edt.sims_student_attribute3,sims_student_attribute4:d.edt.sims_student_attribute4,sims_student_health_respiratory_status:d.edt.sims_student_health_respiratory_status,sims_student_health_respiratory_desc:d.edt.sims_student_health_respiratory_desc,sims_student_health_hay_fever_status:d.edt.sims_student_health_hay_fever_status,sims_student_health_hay_fever_desc:d.edt.sims_student_health_hay_fever_desc,sims_student_health_epilepsy_status:d.edt.sims_student_health_epilepsy_status,sims_student_health_epilepsy_desc:d.edt.sims_student_health_epilepsy_desc,sims_student_health_skin_status:d.edt.sims_student_health_skin_status,sims_student_health_skin_desc:d.edt.sims_student_health_skin_desc,sims_student_health_diabetes_status:d.edt.sims_student_health_diabetes_status,sims_student_health_diabetes_desc:d.edt.sims_student_health_diabetes_desc,sims_student_health_surgery_status:d.edt.sims_student_health_surgery_status,sims_student_health_surgery_desc:d.edt.sims_student_health_surgery_desc,sims_admission_recommendation:d.edt.sims_admission_recommendation,sims_admission_mother_national_id:d.edt.sims_admission_mother_national_id,sims_admission_guardian_national_id:d.edt.sims_admission_guardian_national_id,sims_fee_month_code:d.edt.sims_fee_month_code,sims_student_attribute5:d.edt.sims_student_attribute5,sims_student_attribute6:d.edt.sims_student_attribute6,sims_student_attribute7:d.edt.sims_student_attribute7,sims_student_attribute8:d.edt.sims_student_attribute8,sims_student_attribute9:d.edt.sims_student_attribute9,sims_student_attribute10:d.edt.sims_student_attribute10,sims_student_attribute11:d.edt.sims_student_attribute11,sims_student_attribute12:d.edt.sims_student_attribute12,sims_admission_second_lang_code:d.edt.sims_admission_second_lang_code,sims_admission_third_lang_code:d.edt.sims_admission_third_lang_code,sims_admission_subject_code:d.edt.sims_admission_second_lang_code+","+d.edt.sims_admission_third_lang_code};r.push(e),n.post(i.apiUrl+"api/common/Admission_dpsd/ApproveStudent",r).then(function(e){d.display=!0,d.msg1=e.data}),d.grid1=!0,$("#myModal1").modal({backdrop:"static",keyboard:!0})},d.modal_cancel=function(){$("#myModal1").modal("hide"),s(function(){"sis"==n.defaults.headers.common.schoolId||"siso"==n.defaults.headers.common.schoolId||"asis"==n.defaults.headers.common.schoolId||"abqis"==n.defaults.headers.common.schoolId||"alimtiaz"==n.defaults.headers.common.schoolId?e.go("main.Dasiso",{Class:t.Class}):e.go("main.Dasdps",{Class:t.Class})},300)},d.get_studentfee=function(){e.go("main.Sim043")},d.back=function(){d.dd=!0,window.localStorage.Admflag=d.dd,d.modal_cancel()},d.schoolcheck=function(){!0===d.edt.current_school_status?d.school_edit=!1:d.school_edit=!0},d.chk_desc=function(){!0===d.edt.marketing_code?d.desc_edit=!1:d.desc_edit=!0},d.chk_cicumstances=function(){!0===d.edt.parent_status_code?d.circum_edit=!1:d.circum_edit=!0},d.chk_disab_status=function(){!0===d.edt.disability_status?d.disab_edit=!1:d.disab_edit=!0},d.chk_health_res=function(){!0===d.edt.health_restriction_status?d.healthres_edit=!1:d.healthres_edit=!0},d.chk_medic_status=function(){!0===d.edt.medication_status?d.med_edit=!1:d.med_edit=!0},d.chk_other=function(){!0===d.edt.health_other_status?d.other_edit=!1:d.other_edit=!0},d.chk_hearing=function(){!0===d.edt.health_hearing_status?d.hearing_edit=!1:d.hearing_edit=!0},d.chk_vision=function(){!0===d.edt.health_vision_status?d.health_vision_edit=!1:d.health_vision_edit=!0},d.chk_behaviour=function(){!0===d.edt.behaviour_status?d.behaviour_edit=!1:d.behaviour_edit=!0},d.chk_gifted_status=function(){!0===d.edt.gifted_status?d.gifted_edit=!1:d.gifted_edit=!0},d.chk_music_pro=function(){!0===d.edt.music_status?d.music_edit=!1:d.music_edit=!0},d.chk_sport_pro=function(){!0===d.edt.sports_status?d.sport_edit=!1:d.sport_edit=!0},d.chk_lang_sup=function(){!0===d.edt.language_support_status?d.lang_sup_edit=!1:d.lang_sup_edit=!0},d.chk_Pri_contact=function(){!0===d.edt.primary_contact_code?d.pricont_edit=!1:d.pricont_edit=!0},d.chk_transport_requin=function(){!0===d.edt.transport_status?d.transreq_edit=!1:d.transreq_edit=!0},d.chk_employee=function(){!0===document.getElementById("chk_employee").checked?document.getElementById("txt_emp_code").disabled=!1:document.getElementById("txt_emp_code").disabled=!0},d.chk_Sibling_attend=function(){!0===d.edt.sibling_status?d.disableparent=!1:d.disableparent=!0},d.chk_learn_ther=function(){!0===d.edt.sims_admission_learning_therapy_status?d.learnther_edit=!1:d.learnther_edit=!0},d.chk_spec_edu=function(){!0===d.edt.sims_admission_special_education_status?d.spec_edu_edit=!1:d.spec_edu_edit=!0},d.chk_falled_grade=function(){!0===d.edt.sims_admission_falled_grade_status?d.falledgrade_edit=!1:d.falledgrade_edit=!0},d.chk_commun=function(){!0===d.edt.sims_admission_communication_status?d.commun_edit=!1:d.commun_edit=!0},d.chk_spec_activies=function(){!0===d.edt.sims_admission_specialAct_status?d.specActiv_edit=!1:d.specActiv_edit=!0},d.chk_studyingin=function(){!0===d.edt.sibling_status?(d.Study_edit=!1,document.getElementById("t3"),document.getElementById("t4"),document.getElementById("t5"),d.t=!1):(d.Study_edit=!0,document.getElementById("t3"),document.getElementById("t4"),document.getElementById("t5"),d.t=!0)},d.chk_ticking=function(){!0===d.edt.declaration_status?(d.tick_edit=!1,d.confirm_edit=!1):(d.tick_edit=!0,d.confirm_edit=!0)},d.chk_copy_mother_add=function(){!0===d.edt.copy_add?(d.edt.mother_appartment_number=d.edt.father_appartment_number,d.edt.mother_area_number=d.edt.father_area_number,d.edt.mother_building_number=d.edt.father_building_number,d.edt.mother_street_number=d.edt.father_street_number,d.edt.mother_city=d.edt.father_city,d.edt.mother_state=d.edt.father_state,d.edt.mother_country_code=d.edt.father_country_code,d.edt.mother_po_box=d.edt.father_po_box,d.edt.mother_nationality1_code=d.edt.father_nationality1_code,d.edt.mother_nationality2_code=d.edt.father_nationality2_code,d.edt.mother_summary_address=d.edt.father_summary_address,d.edt.mother_phone=d.edt.father_phone,d.edt.mother_po_box=d.edt.father_po_box,d.edt.mother_mobile=d.edt.father_mobile,d.edt.mother_occupation=d.edt.father_occupation,d.edt.mother_email=d.edt.father_email,d.edt.mother_company=d.edt.father_company):(d.edt.mother_appartment_number="",d.edt.mother_area_number="",d.edt.mother_building_number="",d.edt.mother_street_number="",d.edt.mother_city="",d.edt.mother_state="",d.edt.mother_country_code="",d.edt.mother_po_box="",d.edt.mother_nationality1_code="",d.edt.mother_nationality2_code="",d.edt.mother_summary_address="",d.edt.mother_phone="",d.edt.mother_po_box="",d.edt.mother_mobile="",d.edt.mother_occupation="",d.edt.mother_email="",d.edt.mother_company="")},d.chk_copy_guar_add1=function(){!0===d.edt.copy_add1?(d.edt.guardian_appartment_number=d.edt.father_appartment_number,d.edt.guardian_area_number=d.edt.father_area_number,d.edt.guardian_building_number=d.edt.father_building_number,d.edt.guardian_street_number=d.edt.father_street_number,d.edt.guardian_city=d.edt.father_city,d.edt.guardian_state=d.edt.father_state,d.edt.guardian_country_code=d.edt.father_country_code,d.edt.guardian_po_box=d.edt.father_po_box,d.edt.guardian_nationality1_code=d.edt.father_nationality1_code,d.edt.guardian_nationality2_code=d.edt.father_nationality2_code,d.edt.guardian_summary_address=d.edt.father_summary_address,d.edt.guardian_phone=d.edt.father_phone,d.edt.guardian_po_box=d.edt.father_po_box,d.edt.guardian_mobile=d.edt.father_mobile,d.edt.guardian_occupation=d.edt.father_occupation,d.edt.guardian_email=d.edt.father_email,d.edt.guardian_company=d.edt.father_company):(d.edt.guardian_appartment_number="",d.edt.guardian_area_number="",d.edt.guardian_building_number="",d.edt.guardian_street_number="",d.edt.guardian_city="",d.edt.guardian_state="",d.edt.guardian_country_code="",d.edt.guardian_po_box="",d.edt.guardian_nationality1_code="",d.edt.guardian_nationality2_code="",d.edt.guardian_summary_address="",d.edt.guardian_phone="",d.edt.guardian_po_box="",d.edt.guardian_mobile="",d.edt.guardian_occupation="",d.edt.guardian_email="",d.edt.guardian_company="")},d.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+=0t;t++)0==s.genderAnalysis[t].average?s.errormsg="Data Not Available":(s.genderAverage_lst.push(s.genderAnalysis[t].average),s.genderstatus_lst.push(s.genderAnalysis[t].geneder),s.genderTotalStudents_lst=s.genderAnalysis[0].total_students,s.genderLable_lst=s.genderAnalysis[0].sims_lable);var e=document.getElementById("GenderChart").getContext("2d"),a={labels:s.genderstatus_lst,datasets:[{data:s.genderAverage_lst,backgroundColor:["#FF5A5E","#5AD3D1","#9467bd","#2fc32f","#b0dc0b","#eab404","#de672c","#ec2e2e","#d5429b","#6f52b8","#1c7cd5","#56b9f7","#0ae8eb","#e6194b","#3cb44b","#ffe119","#4363d8","#f58231","#911eb4","#46f0f0","#f032e6","#bcf60c","#fabebe","#008080","#e6beff","#9a6324","#fffac8","#800000","#aaffc3","#808000","#ffd8b1","#000075","#808080","#ffffff","#000000"]}]};null!=s.genderLable_lst?window.bar1=new Chart(e,{type:"pie",data:a,options:{legend:{display:!0,labels:{boxWidth:10,fontSize:10}},title:{display:!0,text:s.genderLable_lst,position:"bottom"}}}):window.bar1=new Chart(e,{type:"pie",data:a,options:{legend:{display:!0,labels:{boxWidth:10,fontSize:10}},title:{display:!0,text:"No Data",position:"bottom"}}})}),n.get(d.apiUrl+"api/RegistarDash/getAgeRationAnalysis?cur_code="+s.temp.sims_cur_code+"&acad_year="+s.temp.sims_academic_year+"&grade_code="+s.temp.sims_grade_code+"&camp_code="+s.temp.sims_health_camp_code).then(function(e){s.ageRatioAnalysis=e.data,console.log("ageRatioAnalysis",s.ageRatioAnalysis),console.log(s.ageRatioAnalysis);for(var t=0;s.ageRatioAnalysis.length>t;t++)0==s.ageRatioAnalysis[t].average?s.errormsg="Data Not Available":(s.AgeRatioAverage_lst.push(s.ageRatioAnalysis[t].average),s.AgeRatiostatus_lst.push(s.ageRatioAnalysis[t].student_age),s.AgeRatioTotalStudents_lst=s.ageRatioAnalysis[0].total_students,s.AgeRatioLable_lst=s.ageRatioAnalysis[0].sims_lable);var e=document.getElementById("AgeRatioChart").getContext("2d"),a={labels:s.AgeRatiostatus_lst,datasets:[{data:s.AgeRatioAverage_lst,backgroundColor:["#FF5A5E","#5AD3D1","#9467bd","#2fc32f","#b0dc0b","#eab404","#de672c","#ec2e2e","#d5429b","#6f52b8","#1c7cd5","#56b9f7","#0ae8eb","#e6194b","#3cb44b","#ffe119","#4363d8","#f58231","#911eb4","#46f0f0","#f032e6","#bcf60c","#fabebe","#008080","#e6beff","#9a6324","#fffac8","#800000","#aaffc3","#808000","#ffd8b1","#000075","#808080","#ffffff","#000000"]}]};null!=s.AgeRatioLable_lst?window.bar2=new Chart(e,{type:"pie",data:a,options:{legend:{display:!0,labels:{boxWidth:10,fontSize:10}},title:{display:!0,text:s.AgeRatioLable_lst,position:"bottom"}}}):window.bar2=new Chart(e,{type:"pie",data:a,options:{legend:{display:!0,labels:{boxWidth:10,fontSize:10}},title:{display:!0,text:"No Data",position:"bottom"}}})}),n.get(d.apiUrl+"api/RegistarDash/getTotalStudentInformation?cur_code="+s.temp.sims_cur_code+"&acad_year="+s.temp.sims_academic_year+"&grade_code="+s.temp.sims_grade_code+"&camp_code="+s.temp.sims_health_camp_code).then(function(e){s.total_student_information=e.data}),n.get(d.apiUrl+"api/RegistarDash/getScreenedStudentInformation?cur_code="+s.temp.sims_cur_code+"&acad_year="+s.temp.sims_academic_year+"&grade_code="+s.temp.sims_grade_code+"&camp_code="+s.temp.sims_health_camp_code).then(function(e){s.screened_student_information=e.data}),n.get(d.apiUrl+"api/RegistarDash/getAbsentStudentInformation?cur_code="+s.temp.sims_cur_code+"&acad_year="+s.temp.sims_academic_year+"&grade_code="+s.temp.sims_grade_code+"&camp_code="+s.temp.sims_health_camp_code).then(function(e){s.absent_student_information=e.data}),n.get(d.apiUrl+"api/RegistarDash/getNotScreenedStudentInformation?cur_code="+s.temp.sims_cur_code+"&acad_year="+s.temp.sims_academic_year+"&grade_code="+s.temp.sims_grade_code+"&camp_code="+s.temp.sims_health_camp_code).then(function(e){s.not_screened_student_information=e.data}),n.get(d.apiUrl+"api/RegistarDash/getTestName?cur_code="+s.temp.sims_cur_code+"&acad_year="+s.temp.sims_academic_year+"&grade_code="+s.temp.sims_grade_code+"&camp_code="+s.temp.sims_health_camp_code).then(function(e){s.test_name=e.data,console.log("TEST NAME",s.test_name);for(var t=0;s.test_name.length>t;t++)0==s.test_name[t].sims_health_test_name_en?s.errormsg="Data Not Available":(s.test_name_lst.push(s.test_name[t].sims_health_test_name_en),s.test_name_lst.push(s.test_name[t].total_students));var e=document.getElementById("HealthConditionChart").getContext("2d"),a={labels:s.test_name_lst,datasets:[{data:s.test_name_lst,backgroundColor:["#FF5A5E","#5AD3D1","#9467bd","#2fc32f","#b0dc0b","#eab404","#de672c","#ec2e2e","#d5429b","#6f52b8","#1c7cd5","#56b9f7","#0ae8eb","#e6194b","#3cb44b","#ffe119","#4363d8","#f58231","#911eb4","#46f0f0","#f032e6","#bcf60c","#fabebe","#008080","#e6beff","#9a6324","#fffac8","#800000","#aaffc3","#808000","#ffd8b1","#000075","#808080","#ffffff","#000000"]}]};null!=s.test_name_lst?window.bar3=new Chart(e,{type:"pie",data:a,options:{legend:{display:!0,labels:{boxWidth:10,fontSize:10}},title:{display:!0,text:s.test_name_lst,position:"bottom"}}}):window.bar3=new Chart(e,{type:"pie",data:a,options:{legend:{display:!0,labels:{boxWidth:10,fontSize:10}},title:{display:!0,text:"No Data",position:"bottom"}}})})})},s.punchModalTotal=function(){$("#punchModalTotal").modal({backdrop:"static",keyboard:!1})},s.punchModalScreened=function(){$("#punchModalScreened").modal({backdrop:"static",keyboard:!1})},s.punchModalAbsent=function(){$("#punchModalAbsent").modal({backdrop:"static",keyboard:!1})},s.punchModalNotScreened=function(){$("#punchModalNotScreened").modal({backdrop:"static",keyboard:!1})}}])}(),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("logBookDashboardCont",["$scope","$state","$rootScope","$timeout","gettextCatalog","$http","ENV","$location","$anchorScroll","$stateParams",function(t,e,a,s,o,n,_,i,d,r){n.get(_.apiUrl+"api/common/ApplicationMaster/getlogbookapplication").then(function(e){t.logbookapplications=e.data,console.log("logbookapplications",e.data)}),t.gotoapp=function(e){a.globals.currentUser.username;t.check_favorite(e.comn_appl_code),t.ar_en_fun(e.comn_appl_code),t.hide_folat_btn=!0,"R"==e.comn_appl_type?(a.location=e.comn_appl_location,a.main_appl_code=e.comn_appl_code,setTimeout(function(){goToState("main.ReportCard")},100),goToState("main"),t.lagn&&t.menu_list_click("",e.comn_appl_mod_code,e.comn_appl_name_en,e.comn_appl_code,e.comn_appl_name_ar)):(t.lagn&&t.menu_list_click("",e.comn_appl_mod_code,e.comn_appl_name_en,e.comn_appl_code,e.comn_appl_name_ar),goToState("main."+e.comn_appl_code))}}])}(),function(){"use strict";var i=angular.module("sims.module.Setup");i.run(["$rootScope","$templateCache",function(e,t){e.$on("$viewContentLoaded",function(){t.removeAll()})}]),i.controller("BehaviourPolicyCont",["$scope","$state","$rootScope","$timeout","gettextCatalog","$http","ENV",function(t,e,a,s,o,n,_){t.pagesize="10",t.pageindex="0",t.pager=!0,t.table1=!0,t.lbl_filename=!1,t.busy=!1,t.editmode=!1;new FormData;t.ischanged=!1,t.eiamchkbox=!1,t.filteredTodos=[],t.currentPage=1,t.numPerPage=10,t.maxSize=10,t.url=_.docUrl+n.defaults.headers.common.schoolId+"/Docs/portalReference","eiama"!=n.defaults.headers.common.schoolId&&"EIAMA"!=n.defaults.headers.common.schoolId||(t.eiamchkbox=!0),t.forName="",t.fortype="",t.file_name_name="",t.back=function(){goToState("main.logBok")},t.newredirect=function(){goToState("main.Sim092",{status:"portal"})},n.get(_.apiUrl+"api/portalrefer/getPortalPolicy").then(function(e){t.getPortalPolicy=e.data,t.totalItems=t.getPortalPolicy.length,t.todos=t.getPortalPolicy,t.makeTodos()}),i.directive("ngFiles",["$parse",function(o){return{link:function(t,e,a){var s=o(a.ngFiles);e.on("change",function(e){s(t,{$files:e.target.files})})}}}])}])}(),function(){"use strict";var i=angular.module("sims.module.Setup");i.run(["$rootScope","$templateCache",function(e,t){e.$on("$viewContentLoaded",function(){t.removeAll()})}]),i.controller("GradingScaleCont",["$scope","$state","$rootScope","$timeout","gettextCatalog","$http","ENV",function(t,e,a,s,o,n,_){t.pagesize="10",t.pageindex="0",t.pager=!0,t.table1=!0,t.lbl_filename=!1,t.busy=!1,t.editmode=!1;new FormData;t.ischanged=!1,t.eiamchkbox=!1,t.filteredTodos=[],t.currentPage=1,t.numPerPage=10,t.maxSize=10,t.url=_.docUrl+n.defaults.headers.common.schoolId+"/Docs/portalReference","eiama"!=n.defaults.headers.common.schoolId&&"EIAMA"!=n.defaults.headers.common.schoolId||(t.eiamchkbox=!0),t.forName="",t.fortype="",t.file_name_name="",t.username=a.globals.currentUser.username,t.back=function(){goToState("main.logBok")},t.newassign=function(){goToState("main.Sim092",{status:!0})},t.newN=!0,n.get(_.apiUrl+"api/LogBook_Dashboard/getUseraccess?user_code_from="+t.username).then(function(e){"0"==e.data[0].message&&(console.log("done"),t.newN=!1)}),n.get(_.apiUrl+"api/portalrefer/getGradingScale").then(function(e){t.getGradingScale=e.data,t.totalItems=t.getGradingScale.length,t.todos=t.getGradingScale,t.makeTodos()}),i.directive("ngFiles",["$parse",function(o){return{link:function(t,e,a){var s=o(a.ngFiles);e.on("change",function(e){s(t,{$files:e.target.files})})}}}])}])}(),function(){"use strict";var l;angular.module("sims.module.Student").controller("weightageInternalAssessmentCont",["$scope","$state","$rootScope","$timeout","gettextCatalog","$http","ENV",function(n,e,s,t,a,_,i){n.pagesize="10",n.pageindex=0,n.showForm=!1,n.showData=!0,n.edt={},n.edit_code=!1,n.simsArray=[],n.selectedStudentList=[],t(function(){$("#fixTable").tableHeadFixer({top:1})},100),n.username=s.globals.currentUser.username;var o,d=s.globals.currentUser.username,r=(n.busyindicator=!0,n.propertyName=null,n.reverse=!1,n.filteredTodos=[],n.currentPage=1,n.numPerPage=10,n.maxSize=10,n.table=!0,n.size=function(e){n.pager=10==e||20==e,"*"==e?(n.numPerPage=n.getweightage.length,n.filteredTodos=n.getweightage,n.pager=!1):(n.pagesize=e,n.currentPage=1,n.numPerPage=e),n.makeTodos()},n.index=function(e){n.pageindex=e,n.currentPage=e,n.makeTodos(),l.checked=!1,n.row1=""},n.countData=[{val:10,data:10},{val:20,data:20}],n.makeTodos=function(){var e=parseInt(n.totalItems%n.numPerPage),e=(n.pagersize="0"==e?parseInt(n.totalItems/n.numPerPage):parseInt(n.totalItems/n.numPerPage)+1,(n.currentPage-1)*n.numPerPage),t=parseInt(e)+parseInt(n.numPerPage);console.log("begin="+e),console.log("end="+t),n.filteredTodos=n.todos.slice(e,t)},n.sortBy=function(e){n.reverse=n.propertyName===e&&!n.reverse,n.propertyName=e},setTimeout(function(){$("#cmb_tea_Code").select2()},100),$("table.scroll")),c=r.find("tbody tr:first").children(),m=($(window).resize(function(){o=c.map(function(){return $(this).width()}).get(),r.find("thead tr").children().each(function(e,t){$(t).width(o[e])})}).resize(),n.newBtn=!0,n.deleteBtn=!0,_.get(i.apiUrl+"api/LogBook_Dashboard/getUseraccess?user_code_from="+n.username).then(function(e){"0"==e.data[0].message&&(console.log("done"),n.newBtn=!1,n.deleteBtn=!1)}),_.get(i.apiUrl+"api/bellsectionsubject/GetAllTeacherNameNew").then(function(e){n.GetAllTeacherName=e.data}),n.term_changeNew=function(e,t){_.get(i.apiUrl+"api/StudentSectionSubject/getTermNew?curcode="+e+"&academicyear="+t).then(function(e){n.terms_obj=e.data})},n.cur=function(){_.get(i.apiUrl+"api/common/getCuriculum").then(function(e){n.curriculum=e.data,n.edt.sims_cur_code=n.curriculum[0].sims_cur_code,n.getAccYear(n.curriculum[0].sims_cur_code)})},n.getAccYear=function(e){_.get(i.apiUrl+"api/bellsectionsubject/getAcademicYear?curCode="+e).then(function(e){n.Acc_year=e.data,n.edt.sims_academic_year=n.Acc_year[0].cheque_number,n.getGrade()})},n.getSection=function(e,t,a){_.get(i.apiUrl+"api/common/AdmissionSubject/getSectionFromGrade?cur_code="+n.edt.sims_cur_code+"&grade_code="+n.edt.sims_grade_code+"&academic_year="+n.edt.sims_academic_year+"&user_name="+s.globals.currentUser.username).then(function(e){n.Section_code=e.data,setTimeout(function(){$("#cmb_section_code").change(function(){console.log($(this).val())}).multipleSelect({width:"100%"})},1e3)})},$(function(){$("#cmb_section_code").multipleSelect({width:"100%"})}),n.getGrade=function(){_.get(i.apiUrl+"api/common/AdmissionSubject/getAllGrades?cur_code="+n.edt.sims_cur_code+"&academic_year="+n.edt.sims_academic_year+"&user_name="+s.globals.currentUser.username).then(function(e){n.Grade_code=e.data,setTimeout(function(){$("#cmb_grade_code").change(function(){console.log($(this).val())}).multipleSelect({width:"100%"})},1e3)})},$(function(){$("#cmb_grade_code").multipleSelect({width:"100%"})}),n.get=function(){_.get(i.apiUrl+"api/bellsectionsubject/getSectionSubject?curcode="+n.edt.sims_cur_code+"&gradecode="+n.edt.sims_grade_code+"&academicyear="+n.edt.sims_academic_year+"§ion="+n.edt.sims_section_name+"&login_user="+d).then(function(e){n.cmb_subject_name=e.data,console.log("SubjectName",n.cmb_subject_name),setTimeout(function(){$("#cmb_grade").change(function(){console.log($(this).val())}).multipleSelect({width:"100%"})},1e3)})},$(function(){$("#cmb_grade").multipleSelect({width:"100%"})}),_.get(i.apiUrl+"api/weigntageComponent/getcomponent").then(function(e){n.getcomponent=e.data}),n.getData=function(){n.showForm=!1,n.showData=!0,_.get(i.apiUrl+"api/weigntageComponent/getweightage").then(function(e){n.getweightage=e.data;for(var t=0;t=t?(n.edt={sims_cur_code:e.sims_cur_code,sims_academic_year:e.sims_academic_year,sims_grade_code:[],sims_section_name:[],sims_subject_code:[],sims_weightage_term1:e.sims_weightage_term1,sims_weightage_term2:e.sims_weightage_term2,sims_weightage_term3:e.sims_weightage_term3,sims_component:e.sims_component,sims_weightage:e.sims_weightage,sims_details:e.sims_details},n.edt.sims_grade_code.push(e.sims_grade_code),n.edt.sims_section_name.push(e.sims_section_code),n.edt.sims_subject_code.push(e.sims_subject_name),n.cur(),n.getGrade(),n.getSection(),n.get(),n.edit_code=!1):swal({title:"Alert",text:"Records from Previous Years Cannot Be Updated",imageUrl:"assets/img/notification-alert.png",showCloseButton:!0,width:380})},n.check_all=function(){if(!0===(l=document.getElementById("all_chk")).checked)for(let e=0;e"+e+''+t+""),s.close(),a.focus()},o.reset=function(){$("#cmb_grade_code").select2("val",""),$("#cmb_section_code").select2("val",""),o.edt={sims_cur_code:"",sims_grade_code:"",sims_section_code:""},o.temp={sims_academic_year:""}},o.search=function(){o.todos=o.searched(o.studlist,o.searchText),o.totalItems=o.todos.length,o.currentPage="1",""==o.searchText&&(o.todos=o.studlist),o.makeTodos()},o.CheckAllChecked=function(){if(!0===(d=document.getElementById("mainchk")).checked)for(var e=0;eparseInt(e.sims_elective_subject)&&(e.subject_tick=!1);for(s=0;s=t)parseInt(e.sims_compulsory_subject)==t?(u.iscompulsorysel=!1,u.defaultdisablesave=!1):(u.iscompulsorysel=!0,u.defaultdisablesave=!0);else{for(s=0;s=t)parseInt(e.sims_compulsory_subject)==t?u.iscompulsorysel=!1:u.iscompulsorysel=!0;else{for(s=0;su.count?(1==u.flag&&(e={exam_form_no:t.exam_form_no,sims_enroll_number:t.sims_enroll_number,sims_academic_year:t.sims_academic_year,sims_grade_code:t.sims_grade_code,sims_section_code:t.sims_section_code,sims_student_exam_term:t.sims_student_exam_term,sims_student_exam_subject_code:t.sims_student_exam_subject_code,sims_student_exam_subject_name_en:t.sims_student_exam_subject_name_en,sims_student_exam_subject_internal:t.sims_student_exam_subject_internal,sims_student_exam_subject_external:t.sims_student_exam_subject_external,sims_student_exam_subject_online:t.sims_student_exam_subject_online,sims_student_exam_subject_practical:t.sims_student_exam_subject_practical,sims_student_exam_subject_project:t.sims_student_exam_subject_project,sims_student_exam_subject_oral:t.sims_student_exam_subject_oral,sims_student_exam_subject_status:t.sims_student_exam_subject_status,user_name:i,opr:"K"},a.push(e)),p.post(h.apiUrl+"api/ExamRegistrationApproval/subjectforUpdate",a).then(function(e){u.msg1=e.data,1==u.msg1?swal({text:"Update Successfully",imageUrl:"assets/img/check.png",showCloseButton:!0,width:380}).then(function(e){e&&(u.view_btn(),1==(c=document.getElementById("mainchk")).checked)&&(c.checked=!1),u.currentPage=!0}):swal({text:"Record Not Updated.",imageUrl:"assets/img/close.png",showCloseButton:!0,width:380}).then(function(e){e&&(u.view_btn(),c.checked=!1,$("tr").removeClass("row_selected"))})}),a=[]):(t.sims_student_exam_subject_status=!1,swal({title:"Alert",text:"only "+u.total_count+" Subject",showCloseButton:!0,width:300,height:200}))})):(a=[],u.flag=!0,1==u.flag&&(e={exam_form_no:t.exam_form_no,sims_enroll_number:t.sims_enroll_number,sims_academic_year:t.sims_academic_year,sims_grade_code:t.sims_grade_code,sims_section_code:t.sims_section_code,sims_student_exam_term:t.sims_student_exam_term,sims_student_exam_subject_code:t.sims_student_exam_subject_code,sims_student_exam_subject_name_en:t.sims_student_exam_subject_name_en,sims_student_exam_subject_internal:t.sims_student_exam_subject_internal,sims_student_exam_subject_external:t.sims_student_exam_subject_external,sims_student_exam_subject_online:t.sims_student_exam_subject_online,sims_student_exam_subject_practical:t.sims_student_exam_subject_practical,sims_student_exam_subject_project:t.sims_student_exam_subject_project,sims_student_exam_subject_oral:t.sims_student_exam_subject_oral,sims_student_exam_subject_status:t.sims_student_exam_subject_status,user_name:i,opr:"K"},a.push(e)),p.post(h.apiUrl+"api/ExamRegistrationApproval/subjectforUpdate",a).then(function(e){u.msg1=e.data,1==u.msg1?swal({text:"Update Successfully",imageUrl:"assets/img/check.png",showCloseButton:!0,width:380}).then(function(e){e&&(u.view_btn(),1==(c=document.getElementById("mainchk")).checked)&&(c.checked=!1),u.currentPage=!0}):swal({text:"Record Not Updated.",imageUrl:"assets/img/close.png",showCloseButton:!0,width:380}).then(function(e){e&&(u.view_btn(),c.checked=!1,$("tr").removeClass("row_selected"))})}),a=[])},u.getsubdata=function(e){p.get(h.apiUrl+"api/ExamRegistrationApproval/getsubjectsall?enroll_number="+e.sims_enroll_number+"&academic_year="+e.sims_academic_year+"&exam_term_code="+e.sims_student_exam_term+"&grade_code="+e.sims_grade_code+"§ion_code="+e.sims_section_code+"&exam_form_no="+e.sims_student_exam_form_no).then(function(e){0u.count?(u.subject_data[t].subject_lst[s].sims_student_exam_subject_status=!0,u.Updatesubject2(o.subject_lst[s])):(u.subject_data[t].subject_group_status=!1,swal({title:"Alert",text:"only "+u.total_count+" Subject",showCloseButton:!0,width:300,height:200})));if(0==a.checked)for(s=0;snew 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_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,sims_pros_attribute8:n.edt.sims_pros_attribute8,opr:"I"},t.push(e),_.post(d.apiUrl+"api/common/ProspectDashboard/CUDUpdateProspectAdmission",t).then(function(e){n.display=!0,n.msg1=e.data,!0===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_pros_attribute8:n.edt.sims_pros_attribute8,opr:"U"},t.push(e),_.post(d.apiUrl+"api/common/ProspectDashboard/CUDUpdateProspectAdmission",t).then(function(e){n.display=!0,n.msg1=e.data,!0===n.msg1.status&&swal({title:"Alert",text:"Enquiry number "+n.edt.pros_num+" validated successfully.",showCloseButton:!0,width:380}).then(function(e){e&&n.modal_cancel()})}))},n.Update1=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_pros_attribute8:n.edt.sims_pros_attribute8,opr:"U"},t.push(e),_.post(d.apiUrl+"api/common/ProspectDashboard/CUDUpdateProspectAdmission",t).then(function(e){n.display=!0,n.msg1=e.data,!0===n.msg1.status&&swal({title:"Alert",text:"Enquiry number "+n.edt.pros_num+" has been validated and moved to admission process successfully.",showCloseButton:!0,width:380}).then(function(e){var t;e&&(e=(e=[])+n.edt.pros_num+",",0<((t=n.edt).pros_num=e).length?_.post(d.apiUrl+"api/common/ProspectDashboard/ApproveMultiple",t).then(function(e){n.modal_cancel()}):n.modal_cancel())})}))},n.modal_cancel=function(){"clarionschool"==_.defaults.headers.common.schoolId||"alpha"==_.defaults.headers.common.schoolId?e.go("main.PrCsd",{Class:t.Class}):"staging3"===_.defaults.headers.common.schoolId||"staging1"===_.defaults.headers.common.schoolId||"staging2"===_.defaults.headers.common.schoolId||"staging4"===_.defaults.headers.common.schoolId||"tiadxb"===_.defaults.headers.common.schoolId||"tiashj"===_.defaults.headers.common.schoolId||"tosdxb"===_.defaults.headers.common.schoolId||"aisdxb"===_.defaults.headers.common.schoolId||"ics"===_.defaults.headers.common.schoolId||"sis"===_.defaults.headers.common.schoolId||"ksa"===_.defaults.headers.common.schoolId?e.go("main.Prleam",{Class:t.Class}):e.go("main.Prsiso",{Class:t.Class})},n.back=function(){n.modal_cancel()},n.schoolcheck=function(){!0===n.edt.current_school_status?n.school_edit=!1:n.school_edit=!0},n.chk_desc=function(){!0===n.edt.marketing_code?n.desc_edit=!1:n.desc_edit=!0},n.chk_cicumstances=function(){!0===n.edt.parent_status_code?n.circum_edit=!1:n.circum_edit=!0},n.chk_disab_status=function(){!0===n.edt.disability_status?n.disab_edit=!1:n.disab_edit=!0},n.chk_health_res=function(){!0===n.edt.health_restriction_status?n.healthres_edit=!1:n.healthres_edit=!0},n.chk_medic_status=function(){!0===n.edt.medication_status?n.med_edit=!1:n.med_edit=!0},n.chk_other=function(){!0===n.edt.health_other_status?n.other_edit=!1:n.other_edit=!0},n.chk_hearing=function(){!0===n.edt.health_hearing_status?n.hearing_edit=!1:n.hearing_edit=!0},n.chk_vision=function(){!0===n.edt.health_vision_status?n.health_vision_edit=!1:n.health_vision_edit=!0},n.chk_behaviour=function(){!0===n.edt.behaviour_status?n.behaviour_edit=!1:n.behaviour_edit=!0},n.chk_gifted_status=function(){!0===n.edt.gifted_status?n.gifted_edit=!1:n.gifted_edit=!0},n.chk_music_pro=function(){!0===n.edt.music_status?n.music_edit=!1:n.music_edit=!0},n.chk_sport_pro=function(){!0===n.edt.sports_status?n.sport_edit=!1:n.sport_edit=!0},n.chk_lang_sup=function(){!0===n.edt.language_support_status?n.lang_sup_edit=!1:n.lang_sup_edit=!0},n.chk_Pri_contact=function(){!0===n.edt.primary_contact_code?n.pricont_edit=!1:n.pricont_edit=!0},n.chk_transport_requin=function(){!0===n.edt.transport_status?n.transreq_edit=!1:n.transreq_edit=!0},n.chk_employee=function(){!0===n.edt.employee_type?n.emp_edit=!1:n.emp_edit=!0},n.chk_studyingin=function(){!0===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(){!0===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(){!0===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(){!0===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+=0t&&(n.s.r=t),n.s.c>e&&(n.s.c=e),n.e.re;e++)r.subData={},r.subData.enq_date=t.sheets.Sheet1[e].Date,r.subData.enq_source=t.sheets.Sheet1[e].Source_of_Enquiry,r.subData.enq_name_parent=t.sheets.Sheet1[e].Name_of_Parent,r.subData.enq_phone=t.sheets.Sheet1[e].Phone,r.subData.enq_email=t.sheets.Sheet1[e].Email,r.subData.enq_childs_name=t.sheets.Sheet1[e].Childs_Name,r.subData.enq_childs_dob=t.sheets.Sheet1[e].Childs_DOB,r.subData.enq_childs_age=t.sheets.Sheet1[e].Childs_AGE,r.subData.enq_admission_grade_class=t.sheets.Sheet1[e].Admission_seeking_for_Grade_Class,r.subData.enq_admission_yes_no=t.sheets.Sheet1[e].Converted_to_Admissions_Yes_No,r.subData.enq_imported_user_name=a.globals.currentUser.username,r.sheetsData.push(r.subData)}),{method:"POST",url:m.apiUrl+"api/file/uploadDocument?filename="+r.filename.name+"&location=Docs/EnquiryDashboard",data:h,headers:{"Content-Type":void 0}});c(t).success(function(e){m.AWS.includes(c.defaults.headers.common.schoolId)&&e.substring(e.lastIndexOf("/")+1)}),angular.forEach(angular.element("input[type='file']"),function(e){angular.element(e).val(null)})},r.uploadClick=function(){h=new FormData,r.busy=!1,r.modalbusy=!0},r.cancelData=function(){$("#enquiryuploadModal").modal("hide"),r.busy=!1},r.downloadFormat=function(){r.url=m.docUrl+c.defaults.headers.common.schoolId+"/format/EnquiryDashboard/enquirydashboardExcel.xlsx",window.open(r.url,"_self","location=yes")},r.saveImportData=function(){c.post(m.apiUrl+"api/common/ProspectDashboard/ImportEnquiryDashboard",r.sheetsData).then(function(e){r.result=e.data,r.result?swal("Records Saved Successfully"):swal("Records Not Saved"),$("#enquiryuploadModal").modal("hide"),r.busy=!1,r.sheetsData=[]})},r.edit_tel=function(e){r.editor=!1,r.Update_btn=!0,r.cancel_btn=!0,r.table=!1,r.display=!0,r.save_btn=!1,r.Evidences=!0,r.divcode_readonly=!0,r.int={sims_comm_user_code:e.sims_comm_user_code,sims_comm_message_remark:e.sims_comm_message_remark,sims_comm_message_feedback:e.sims_comm_message_feedback,sims_comm_date:e.sims_comm_date,sims_comm_number:e.sims_comm_number}},r.update_tel=function(e){let t=[];e&&((e=r.int).opr="U",t.push(e),c.post(m.apiUrl+"api/TelephonicConversationDetails/CUDTelephonicConversationDetails",t).then(function(e){r.msg1=e.data,!0===r.msg1?(swal({text:"Record Updated Successfully",imageUrl:"assets/img/check.png",showCloseButton:!0,width:300,height:200}),r.getgrid_tel()):swal({text:"Record Not Update / Order No Is Exists",imageUrl:"assets/img/close.png",showCloseButton:!0,width:300,height:200}),r.searchbutton()}),t=[],r.table=!0,r.display=!1)},r.Cancel_tel=function(){r.temp="",r.table=!0,r.display=!0,r.int=" ",r.editor=!0,r.save_btn=!0,r.Update_btn=!1},r.url_new=m.docUrl+c.defaults.headers.common.schoolId,r.download=function(e){window.open(r.url+"/Images/NewsFiles/"+e,"_new")},r.downloadfile=function(e){window.open(r.url_new+"/Docs/Student/"+e,"_new")},r.doc_delete3=function(){r.int.sims_enq_doc_path=""};var g,f=new FormData;r.images=[],r.images_att=[],r.getTheFiles1=function(o){r.filesize=!0;var n="no";angular.forEach(o,function(e,t){f.append(t,e);var a=0;if(10485760new Date(n.obj_age[o].sims_birth_date_to))&&(e=n.edt.dob1="",swal({title:"Alert",text:"Age criteria is not met.",showCloseButton:!0,width:450}))},"clarionschool"==i.defaults.headers.common.schoolId?i.get(d.apiUrl+"api/studentdatabase/getdemo").then(function(e){n.demo_values=e.data,n.edt.mobile_code1=e.data[210].sims_country_code,n.emergency_phone1()}):i.get(d.apiUrl+"api/studentdatabase/getdemo").then(function(e){n.demo_values=e.data}),n.emergency_phone1=function(){i.get(d.apiUrl+"api/studentdatabase/getisdd?country_code="+n.edt.mobile_code1).then(function(e){n.get_phonecode=e.data,null!=n.edt.mobile&&"-"!=n.edt.mobile&&(null!=n.olisdcode_emergency?n.edt.mobile=n.edt.mobile.replace(n.olisdcode_emergency,n.get_phonecode[0].sims_country_isd_code):n.edt.mobile=n.get_phonecode[0].sims_country_isd_code+n.edt.mobile),null==n.edt.mobile&&(n.edt.mobile=n.get_phonecode[0].sims_country_isd_code.slice(1,-1)),n.olisdcode_emergencyphone()})},n.olisdcode_emergencyphone=function(){0parseInt(i.edt.sims_admission_marks_out_of)&&(swal({title:"Alert",text:"Please Enter Valid Marks.",showCloseButton:!0,width:450}),i.edt.sims_admission_marks_obtained="")},i.max_mark_sem1=function(){parseInt(i.edt.sims_fyadmission_marks_obtained_sem1)>parseInt(i.edt.sims_fyadmission_marks_out_of_Sem1)&&(swal({title:"Alert",text:"Please Enter Valid Marks.",showCloseButton:!0,width:450}),i.edt.sims_fyadmission_marks_obtained_sem1="")},i.max_mark_sem2=function(){parseInt(i.edt.sims_fyadmission_marks_obtained_sem2)>parseInt(i.edt.sims_fyadmission_marks_out_of_Sem2)&&(swal({title:"Alert",text:"Please Enter Valid Marks.",showCloseButton:!0,width:450}),i.edt.sims_fyadmission_marks_obtained_sem2="")},i.max_mark_sem3=function(){parseInt(i.edt.sims_syadmission_marks_obtained_sem3)>parseInt(i.edt.sims_syadmission_marks_out_of_Sem3)&&(swal({title:"Alert",text:"Please Enter Valid Marks.",showCloseButton:!0,width:450}),i.edt.sims_syadmission_marks_obtained_sem3="")},i.max_mark_sem4=function(){parseInt(i.edt.sims_syadmission_marks_obtained_sem4)>parseInt(i.edt.sims_syadmission_marks_out_of_sem4)&&(swal({title:"Alert",text:"Please Enter Valid Marks.",showCloseButton:!0,width:450}),i.edt.sims_syadmission_marks_obtained_sem4="")},i.EditDetails=function(a){i.edt="",i.div_edt=!0,i.div_save=!1,i.admgrid=!0,i.btn_Save=!0,i.btn_NewSave=!1,n.get(i.apiurl+"api/Comn/getAdmissionList").then(function(e){i.obj=e.data;for(var t=0;t=i.obj_age[e].sims_birth_date_to)&&(swal({title:"Birth Date",text:"For KG 1 admissions, child must be minimum 3.8 year old and can be maximum 4.11 year old as of 2017-03-31",showCloseButton:!0,width:450}),i.edt.birth_date=""),"02"==i.edt.grade_code&&(i.edt.birth_date<=i.obj_age[e].sims_birth_date_from&&(swal({title:"Birth Date",text:"For KG 2 admissions, child must be minimum 4.8 year old and can be maximum 5.11 year old as of 2017-03-31",showCloseButton:!0,width:450}),i.edt.birth_date=""),i.edt.birth_date>=i.obj_age[e].sims_birth_date_to)&&(swal({title:"Birth Date",text:"For KG 2 admissions, child must be minimum 4.8 year old and can be maximum 5.11 year old as of 2017-03-31",showCloseButton:!0,width:450}),i.edt.birth_date=""),"03"==i.edt.grade_code&&(i.edt.birth_date<=i.obj_age[e].sims_birth_date_from&&(swal({title:"Birth Date",text:"For Grade 1 admissions, child must be minimum 5.8 year old and can be maximum 6.11 year old as of 2017-03-31",showCloseButton:!0,width:480}),i.edt.birth_date=""),i.edt.birth_date>=i.obj_age[e].sims_birth_date_to)&&(swal({title:"Birth Date",text:"For Grade 1 admissions, child must be minimum 5.8 year old and can be maximum 6.11 year old as of 2017-03-31",showCloseButton:!0,width:480}),i.edt.birth_date="")},i.viewDoc=function(){$("#Div1").modal("show")},i.Save=function(e){var s,o;e&&(0==i.btn_NewSave?((s=i.edt).opr="U",o=[],n.post(i.apiurl+"api/common/Admission/CUDUpdateAdmission",s).then(function(e){swal({title:"Alert",text:"Application Updated Sucessfully.",showCloseButton:!0,width:380});for(var t=0;tparseInt(i.edt.sims_admission_marks_out_of)&&(swal({title:"Alert",text:"Please Enter Valid Marks.",showCloseButton:!0,width:450}),i.edt.sims_admission_marks_obtained="")},i.max_mark_sem1=function(){parseInt(i.edt.sims_fyadmission_marks_obtained_sem1)>parseInt(i.edt.sims_fyadmission_marks_out_of_Sem1)&&(swal({title:"Alert",text:"Please Enter Valid Marks.",showCloseButton:!0,width:450}),i.edt.sims_fyadmission_marks_obtained_sem1="")},i.max_mark_sem2=function(){parseInt(i.edt.sims_fyadmission_marks_obtained_sem2)>parseInt(i.edt.sims_fyadmission_marks_out_of_Sem2)&&(swal({title:"Alert",text:"Please Enter Valid Marks.",showCloseButton:!0,width:450}),i.edt.sims_fyadmission_marks_obtained_sem2="")},i.max_mark_sem3=function(){parseInt(i.edt.sims_syadmission_marks_obtained_sem3)>parseInt(i.edt.sims_syadmission_marks_out_of_Sem3)&&(swal({title:"Alert",text:"Please Enter Valid Marks.",showCloseButton:!0,width:450}),i.edt.sims_syadmission_marks_obtained_sem3="")},i.max_mark_sem4=function(){parseInt(i.edt.sims_syadmission_marks_obtained_sem4)>parseInt(i.edt.sims_syadmission_marks_out_of_sem4)&&(swal({title:"Alert",text:"Please Enter Valid Marks.",showCloseButton:!0,width:450}),i.edt.sims_syadmission_marks_obtained_sem4="")},i.EditDetails=function(a){i.edt="",i.div_edt=!0,i.div_save=!1,i.admgrid=!0,i.btn_Save=!0,i.btn_NewSave=!1,n.get(i.apiurl+"api/Comn/getAdmissionList").then(function(e){i.obj=e.data;for(var t=0;t=i.obj_age[e].sims_birth_date_to)&&(swal({title:"Birth Date",text:"For KG 1 admissions, child must be minimum 3.8 year old and can be maximum 4.11 year old as of 2017-03-31",showCloseButton:!0,width:450}),i.edt.birth_date=""),"02"==i.edt.grade_code&&(i.edt.birth_date<=i.obj_age[e].sims_birth_date_from&&(swal({title:"Birth Date",text:"For KG 2 admissions, child must be minimum 4.8 year old and can be maximum 5.11 year old as of 2017-03-31",showCloseButton:!0,width:450}),i.edt.birth_date=""),i.edt.birth_date>=i.obj_age[e].sims_birth_date_to)&&(swal({title:"Birth Date",text:"For KG 2 admissions, child must be minimum 4.8 year old and can be maximum 5.11 year old as of 2017-03-31",showCloseButton:!0,width:450}),i.edt.birth_date=""),"03"==i.edt.grade_code&&(i.edt.birth_date<=i.obj_age[e].sims_birth_date_from&&(swal({title:"Birth Date",text:"For Grade 1 admissions, child must be minimum 5.8 year old and can be maximum 6.11 year old as of 2017-03-31",showCloseButton:!0,width:480}),i.edt.birth_date=""),i.edt.birth_date>=i.obj_age[e].sims_birth_date_to)&&(swal({title:"Birth Date",text:"For Grade 1 admissions, child must be minimum 5.8 year old and can be maximum 6.11 year old as of 2017-03-31",showCloseButton:!0,width:480}),i.edt.birth_date="")},i.viewDoc=function(){$("#Div1").modal("show")},i.Save=function(e){var s,o;e&&(0==i.btn_NewSave?((s=i.edt).opr="U",o=[],n.post(i.apiurl+"api/common/Admission/CUDUpdateAdmission",s).then(function(e){swal({title:"Alert",text:"Application Updated Sucessfully.",showCloseButton:!0,width:380});for(var t=0;t';for(var a=0;a'+s[a].title+"";n+="",e.forEach(function(e,t){n+="";for(var a=0;a'+e[s[a].dataKey]+"";n+=""});var e={worksheet:t||"Worksheet",table:n+=""},_=document.createElement("a"),e=(_.href="data:application/vnd.ms-excel;base64,"+i.base64(i.format('\x3c!--[if gte mso 9]>{worksheet}{table}
',e)),new Date);_.download=t.replace(/ /g,"_")+"_"+i.getFormatedDate(e,"dd./.mm./.yyyy. .hh.:.mn.:.ss").replace(/ /g,"_")+".xls",_.click()},i.exportExcelBtn=function(){i.sectionwisesub.forEach(function(e,t){e.RowNumber=t+1}),i.printExcel([{title:"Sr.",dataKey:"RowNumber"},{title:"Grade",dataKey:"sims_grade_name"},{title:"Section",dataKey:"sims_section_name"},{title:"Supervisor Name",dataKey:"sims_supervisor_name"}],i.sectionwisesub,"SupervisorMapping")},i.search=function(){if(i.todos=i.searched(i.sectionwisesub,i.searchText),i.totalItems=i.todos.length,i.currentPage="1",""==i.searchText&&(i.todos=i.sectionwisesub),1==(l=document.getElementById("mainchk")).checked){l.checked=!1;for(var e=0;eparseInt(s.temp.comn_doc_owner_reminder_days)?swal({title:"Alert",text:"Escalation reminder days should be less than Owner reminder days",width:300,height:200}):null!=s.temp.comn_doc_escalation2_reminder_days&&parseInt(s.temp.comn_doc_escalation2_reminder_days)>parseInt(s.temp.comn_doc_escalation1_reminder_days)?swal({title:"Alert",text:"Escalation 2 reminder days should be less than Escalation 1 reminder days",width:300,height:200}):e&&(p=[],(t=s.temp).opr="I",null==r?(t=s.temp,console.log(t),console.log(s.temp),p.push(t),console.log(p),n.post(i.apiUrl+"api/DocMaster/CUDDocMaster",p).then(function(e){s.msg1=e.data,!0===s.msg1?(swal({title:"Alert",text:"Document Added Successfully.",width:300,height:200}),s.getgrid()):swal({title:"Alert",text:"Document Not Added.",width:300,height:200})})):(e={method:"POST",url:i.apiUrl+"api/AssignmentUpload/upload1?filename="+r[0].name+"&location=DocMasterFiles/",data:d,headers:{"Content-Type":void 0}},n(e).success(function(e){s.temp.comn_doc_file_path=e,t=s.temp,console.log(t),console.log(s.temp),p.push(t),console.log(p),n.post(i.apiUrl+"api/DocMaster/CUDDocMaster",p).then(function(e){s.msg1=e.data,!0===s.msg1?(swal({title:"Alert",text:"Document Added Successfully.",width:300,height:200}),s.getgrid()):swal({title:"Alert",text:"Document Not Added.",width:300,height:200})})})),s.table1=!0,s.operation=!1,r=void 0)};s.file_changed=function(e,t){c=e.files[0],r=e.files,s.photo_filename=c.name;e=s.photo_filename.split(".");if(s.photo_filename.split(".")[e.length-1],s.edt1={sims_timetable_filename:s.photo_filename},$.extend(s.edt,s.edt1),s.photo_filename=c.type,r.length){d=new FormData;for(var a=0;aparseInt(s.temp.comn_doc_owner_reminder_days)?swal({title:"Alert",text:"Escalation 1 reminder days should be less than Owner reminder days",width:300,height:200}):null!=s.temp.comn_doc_escalation2_reminder_days&&parseInt(s.temp.comn_doc_escalation2_reminder_days)>parseInt(s.temp.comn_doc_escalation1_reminder_days)?swal({title:"Alert",text:"Escalation 2 reminder days should be less than Escalation 1 reminder days",width:300,height:200}):(null==r?(t=s.temp,console.log(t),console.log(s.temp),p.push(t),console.log(p),n.post(i.apiUrl+"api/DocMaster/CUDDocMaster",p).then(function(e){s.msg1=e.data,!0===s.msg1?(swal({title:"Alert",text:"Document Updated Successfully.",width:300,height:200}),s.getgrid()):swal({title:"Alert",text:"Document Not Updated.",width:300,height:200})})):(e={method:"POST",url:i.apiUrl+"api/AssignmentUpload/upload1?filename="+r[0].name+"&location=DocMasterFiles/",data:d,headers:{"Content-Type":void 0}},n(e).success(function(e){s.temp.comn_doc_file_path=e,t=s.temp,console.log(t),console.log(s.temp),p.push(t),console.log(p),n.post(i.apiUrl+"api/DocMaster/CUDDocMaster",p).then(function(e){s.msg1=e.data,!0===s.msg1?(swal({title:"Alert",text:"Document Updated Successfully.",width:300,height:200}),s.getgrid()):swal({title:"Alert",text:"Document Not Updated.",width:300,height:200})})})),s.table1=!0,s.operation=!1,r=void 0))},s.filteredTodos=[],s.currentPage=1,s.numPerPage=5,s.maxSize=5,s.makeTodos=function(){var e=parseInt(s.totalItems%s.numPerPage),e=(s.pagersize="0"==e?parseInt(s.totalItems/s.numPerPage):parseInt(s.totalItems/s.numPerPage)+1,(s.currentPage-1)*s.numPerPage),t=parseInt(e)+parseInt(s.numPerPage);console.log("begin="+e),console.log("end="+t),s.filteredTodos=s.todos.slice(e,t)},s.CheckAllChecked=function(){l=document.getElementById("mainchk");for(var e=0;e"+e+''+t+""),s.close(),a.focus(),o.getdetails())}),o.getdetails()},o.reset_data=function(){o.temp.sims_grade_code="",o.filteredTodos=[],o.pager=!1;try{$("#cmb_grade_code").multipleSelect("uncheckAll")}catch(e){}try{$("#cmb_section_code").multipleSelect("uncheckAll")}catch(e){}o.temp.sims_section_code="",o.filteredTodos=[]},o.ischeck=function(){o.checklick=function(){var e=document.getElementById("expire");1==e.checked&&e.checked}}}])}(),function(){"use strict";var e=angular.module("sims.module.Fleet");e.run(["$rootScope","$templateCache",function(e,t){e.$on("$viewContentLoaded",function(){t.removeAll()})}]),e.controller("AttReportForStudentsTransportCont",["$scope","$state","$rootScope","$timeout","gettextCatalog","$http","ENV",function(o,e,t,a,s,n,i){o.temp={},o.detailsField=!0,o.hideprintpdf=!1,o.pagesize="30",o.pageindex="0",o.pager=!0,o.mom_end_date_check=!0,o.mom_start_date_check=!0,o.temp={};var d=(c=new Date).getDate(),r=c.getMonth()+1,c=(c.getFullYear(),o.mom_attendance_date="",o.mom_end_date="",$(function(){$("#bell_box").multipleSelect({width:"100%"}),$("#teacher_box").multipleSelect({width:"100%",filter:!0})}),new Date);(d=c.getDate())<10&&(d="0"+d);(r=c.getMonth()+1)<10&&(r="0"+r);var m=c.getFullYear();o.sdate=d+"-"+r+"-"+m,o.edate=d+"-"+r+"-"+m,o.mom_attendance_date=d+"-"+r+"-"+m,o.mom_end_date=d+"-"+r+"-"+m,$(function(){$("#chkmarks").click(function(){$(this).is(":checked")?($("#fdate").attr("disabled","disabled"),o.mom_attendance_date=""):($("#fdate").removeAttr("disabled"),$("#fdate").focus(),o.mom_attendance_date=d+"-"+r+"-"+m)})}),1==o.mom_attendance_date_check?o.mom_attendance_date="":o.mom_attendance_date=d+"-"+r+"-"+m,$(function(){$("#chkmarks1").click(function(){$(this).is(":checked")?($("#fdate").attr("disabled","disabled"),o.mom_end_date=""):($("#fdate").removeAttr("disabled"),$("#fdate").focus(),o.mom_end_date=d+"-"+r+"-"+m)})}),1==o.mom_end_date_check?o.mom_end_date="":o.mom_end_date=d+"-"+r+"-"+m,o.size=function(e){"All"==e?(o.currentPage="1",o.filteredTodos=o.todos,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,console.log("currentPage="+o.currentPage),o.makeTodos(),o.chk={},o.chk.chk_all=!1,o.row1=""},o.filteredTodos=[],o.currentPage=1,o.numPerPage=30,o.maxSize=100,o.makeTodos=function(){var e,t;"All"==o.pagesize?(o.currentPage=1,o.showPager=!1,o.filteredTodos=o.report_data):(e=parseInt(o.totalItems%o.numPerPage),o.pagersize="0"==e?parseInt(o.totalItems/o.numPerPage):parseInt(o.totalItems/o.numPerPage)+1,e=(o.currentPage-1)*o.numPerPage,t=parseInt(e)+parseInt(o.numPerPage),console.log("begin="+e),console.log("end="+t),o.filteredTodos=o.todos.slice(e,t))},o.ischeck=function(){o.checklick=function(){var e=document.getElementById("without");1==e.checked&&e.checked}},n.get(i.apiUrl+"api/common/getCuriculum").then(function(e){o.cur_data=e.data,o.temp.sims_cur_code=o.cur_data[0].sims_cur_code,o.getAcademic_year(o.cur_data[0].sims_cur_code)}),o.getAcademic_year=function(e){n.get(i.apiUrl+"api/common/getAcademicYear?curCode="+e).then(function(e){o.acad_data=e.data,o.temp.sims_academic_year=o.acad_data[0].sims_academic_year,o.getGrade(o.temp.sims_cur_code,o.temp.sims_academic_year)})},o.getGrade=function(e,t){n.get(i.apiUrl+"api/common/getAllGrades?cur_code="+o.temp.sims_cur_code+"&academic_year="+o.temp.sims_academic_year).then(function(e){o.Grade_code=e.data,setTimeout(function(){$("#cmb_grade_code").change(function(){console.log($(this).val())}).multipleSelect({width:"100%"})},1e3)})},o.getSection=function(e,t,a){n.get(i.apiUrl+"api/common/getSectionFromGrade?cur_code="+o.temp.sims_cur_code+"&grade_code="+o.temp.sims_grade_code+"&academic_year="+o.temp.sims_academic_year).then(function(e){o.Section_code=e.data,o.getatt_parameter(o.cur_data[0].sims_cur_code),setTimeout(function(){$("#cmb_section_code").change(function(){console.log($(this).val())}).multipleSelect({width:"100%"})},1e3)})},o.getReport=function(e,t,a){n.get(i.apiUrl+"api/common/getSectionFromGrade?cur_code="+o.temp.sims_cur_code+"&grade_code="+o.temp.sims_grade_code+"&academic_year="+o.temp.sims_academic_year).then(function(e){o.Section_code=e.data,setTimeout(function(){$("#cmb_section_code").change(function(){console.log($(this).val())}).multipleSelect({width:"100%"})},1e3)})},o.getatt_parameter=function(e){n.get(i.apiUrl+"api/StudentsTransport/getatt_code?cur_code="+o.temp.sims_cur_code).then(function(e){o.att_for=e.data,o.temp.sims_attendance_short_desc=o.att_for[0].sims_attendance_short_desc})},o.getdetails=function(){o.colsvis=!1,n.get(i.apiUrl+"api/StudentsTransport/getattofstudents?cur_code="+o.temp.sims_cur_code+"&acad_year="+o.temp.sims_academic_year+"&grade_code="+o.temp.sims_grade_code+"§ion_code="+o.temp.sims_section_code+"&att_code="+o.temp.sims_attendance_short_desc+"&att_date="+o.mom_attendance_date).then(function(e){0"+e+''+t+""),s.close(),a.focus(),o.detailsField=!1,o.colsvis=!1,o.getsubdetail())})},o.reset_data=function(){o.temp.sims_grade_code="";try{$("#cmb_grade_code").multipleSelect("uncheckAll")}catch(e){}try{$("#cmb_section_code").multipleSelect("uncheckAll")}catch(e){}o.temp.sims_section_code="",o.filteredTodos=[]},o.ischeck=function(){o.checklick=function(){var e=document.getElementById("expire");1==e.checked&&e.checked}}}])}(),function(){"use strict";var e=angular.module("sims.module.Student");e.run(["$rootScope","$templateCache",function(e,t){e.$on("$viewContentLoaded",function(){t.removeAll()})}]),e.controller("StudentHouseListReportCont",["$scope","$state","$rootScope","$timeout","gettextCatalog","$http","ENV",function(o,e,t,a,s,n,i){o.temp={},o.detailsField=!0,o.hideprintpdf=!1,o.pagesize="30",o.pageindex="0",o.pager=!0,o.mom_end_date_check=!0,o.mom_start_date_check=!0,o.temp={};var d=(c=new Date).getDate(),r=c.getMonth()+1,c=(c.getFullYear(),o.mom_start_date="",o.mom_end_date="",$(function(){$("#bell_box").multipleSelect({width:"100%"}),$("#teacher_box").multipleSelect({width:"100%",filter:!0})}),new Date);(d=c.getDate())<10&&(d="0"+d);(r=c.getMonth()+1)<10&&(r="0"+r);var m=c.getFullYear();o.sdate=d+"-"+r+"-"+m,o.edate=d+"-"+r+"-"+m,o.mom_start_date=d+"-"+r+"-"+m,o.mom_end_date=d+"-"+r+"-"+m,$(function(){$("#chkmarks").click(function(){$(this).is(":checked")?($("#fdate").attr("disabled","disabled"),o.mom_start_date=""):($("#fdate").removeAttr("disabled"),$("#fdate").focus(),o.mom_start_date=d+"-"+r+"-"+m)})}),1==o.mom_start_date_check?o.mom_start_date="":o.mom_start_date=d+"-"+r+"-"+m,$(function(){$("#chkmarks1").click(function(){$(this).is(":checked")?($("#fdate").attr("disabled","disabled"),o.mom_end_date=""):($("#fdate").removeAttr("disabled"),$("#fdate").focus(),o.mom_end_date=d+"-"+r+"-"+m)})}),1==o.mom_end_date_check?o.mom_end_date="":o.mom_end_date=d+"-"+r+"-"+m,o.size=function(e){"All"==e?(o.currentPage="1",o.filteredTodos=o.todos,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,console.log("currentPage="+o.currentPage),o.makeTodos(),o.chk={},o.chk.chk_all=!1,o.row1=""},o.filteredTodos=[],o.currentPage=1,o.numPerPage=30,o.maxSize=100,o.makeTodos=function(){var e,t;"All"==o.pagesize?(o.currentPage=1,o.showPager=!1,o.filteredTodos=o.report_data):(e=parseInt(o.totalItems%o.numPerPage),o.pagersize="0"==e?parseInt(o.totalItems/o.numPerPage):parseInt(o.totalItems/o.numPerPage)+1,e=(o.currentPage-1)*o.numPerPage,t=parseInt(e)+parseInt(o.numPerPage),console.log("begin="+e),console.log("end="+t),o.filteredTodos=o.todos.slice(e,t))},n.get(i.apiUrl+"api/common/getCuriculum").then(function(e){o.cur_data=e.data,o.temp.sims_cur_code=o.cur_data[0].sims_cur_code,o.getAcademic_year(o.cur_data[0].sims_cur_code)}),o.getAcademic_year=function(e){n.get(i.apiUrl+"api/common/getAcademicYear?curCode="+e).then(function(e){o.acad_data=e.data,o.temp.sims_academic_year=o.acad_data[0].sims_academic_year,o.getGrade(o.temp.sims_cur_code,o.temp.sims_academic_year)})},o.getGrade=function(e,t){n.get(i.apiUrl+"api/common/getAllGrades?cur_code="+o.temp.sims_cur_code+"&academic_year="+o.temp.sims_academic_year).then(function(e){o.Grade_code=e.data,setTimeout(function(){$("#cmb_grade_code").change(function(){console.log($(this).val())}).multipleSelect({width:"100%"})},1e3)})},o.getSection=function(e,t,a){n.get(i.apiUrl+"api/common/getSectionFromGrade?cur_code="+o.temp.sims_cur_code+"&grade_code="+o.temp.sims_grade_code+"&academic_year="+o.temp.sims_academic_year).then(function(e){o.Section_code=e.data,setTimeout(function(){$("#cmb_section_code").change(function(){console.log($(this).val())}).multipleSelect({width:"100%"})},1e3)})},o.getReport=function(e,t,a){n.get(i.apiUrl+"api/common/getSectionFromGrade?cur_code="+o.temp.sims_cur_code+"&grade_code="+o.temp.sims_grade_code+"&academic_year="+o.temp.sims_academic_year).then(function(e){o.Section_code=e.data,setTimeout(function(){$("#cmb_section_code").change(function(){console.log($(this).val())}).multipleSelect({width:"100%"})},1e3)})},o.getdetails=function(){o.colsvis=!1,n.get(i.apiUrl+"api/classlist/getHouse?cur_code="+o.temp.sims_cur_code+"&acad_year="+o.temp.sims_academic_year+"&grade_code="+o.temp.sims_grade_code+"§ion_code="+o.temp.sims_section_code+"&age_cal_date="+o.mom_start_date+"&dob_less_than="+o.mom_less_date+"&dob_greater="+o.mom_greater_date).then(function(e){0"+e+''+t+""),s.close(),a.focus(),o.detailsField=!1,o.colsvis=!1,o.getsubdetail())})},o.reset_data=function(){o.temp.sims_grade_code="";try{$("#cmb_grade_code").multipleSelect("uncheckAll")}catch(e){}try{$("#cmb_section_code").multipleSelect("uncheckAll")}catch(e){}o.temp.sims_section_code="",o.filteredTodos=[]},o.ischeck=function(){o.checklick=function(){var e=document.getElementById("expire");1==e.checked&&e.checked}}}])}(),function(){"use strict";var e=angular.module("sims.module.Student");e.run(["$rootScope","$templateCache",function(e,t){e.$on("$viewContentLoaded",function(){t.removeAll()})}]),e.controller("SiblingReportCont",["$scope","$state","$rootScope","$timeout","gettextCatalog","$http","ENV",function(o,e,t,a,s,n,i){o.temp={},o.detailsField=!0,o.hideprintpdf=!1,o.pagesize="30",o.pageindex="0",o.pager=!0,o.mom_end_date_check=!0,o.mom_start_date_check=!0,o.temp={};var d=(c=new Date).getDate(),r=c.getMonth()+1,c=(c.getFullYear(),o.mom_start_date="",o.mom_end_date="",$(function(){$("#bell_box").multipleSelect({width:"100%"}),$("#teacher_box").multipleSelect({width:"100%",filter:!0})}),new Date);(d=c.getDate())<10&&(d="0"+d);(r=c.getMonth()+1)<10&&(r="0"+r);var m=c.getFullYear();o.sdate=d+"-"+r+"-"+m,o.edate=d+"-"+r+"-"+m,o.mom_start_date=d+"-"+r+"-"+m,o.mom_end_date=d+"-"+r+"-"+m,$(function(){$("#chkmarks").click(function(){$(this).is(":checked")?($("#fdate").attr("disabled","disabled"),o.mom_start_date=""):($("#fdate").removeAttr("disabled"),$("#fdate").focus(),o.mom_start_date=d+"-"+r+"-"+m)})}),1==o.mom_start_date_check?o.mom_start_date="":o.mom_start_date=d+"-"+r+"-"+m,$(function(){$("#chkmarks1").click(function(){$(this).is(":checked")?($("#fdate").attr("disabled","disabled"),o.mom_end_date=""):($("#fdate").removeAttr("disabled"),$("#fdate").focus(),o.mom_end_date=d+"-"+r+"-"+m)})}),1==o.mom_end_date_check?o.mom_end_date="":o.mom_end_date=d+"-"+r+"-"+m,o.size=function(e){"All"==e?(o.currentPage="1",o.filteredTodos=o.todos,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,console.log("currentPage="+o.currentPage),o.makeTodos(),o.chk={},o.chk.chk_all=!1,o.row1=""},o.filteredTodos=[],o.currentPage=1,o.numPerPage=30,o.maxSize=100,o.makeTodos=function(){var e,t;"All"==o.pagesize?(o.currentPage=1,o.showPager=!1,o.filteredTodos=o.report_data):(e=parseInt(o.totalItems%o.numPerPage),o.pagersize="0"==e?parseInt(o.totalItems/o.numPerPage):parseInt(o.totalItems/o.numPerPage)+1,e=(o.currentPage-1)*o.numPerPage,t=parseInt(e)+parseInt(o.numPerPage),console.log("begin="+e),console.log("end="+t),o.filteredTodos=o.todos.slice(e,t))},o.ischeck=function(){o.checklick=function(){var e=document.getElementById("count");1==e.checked&&e.checked}},n.get(i.apiUrl+"api/common/getCuriculum").then(function(e){o.cur_data=e.data,o.temp.sims_cur_code=o.cur_data[0].sims_cur_code,o.getAcademic_year(o.cur_data[0].sims_cur_code)}),o.getAcademic_year=function(e){n.get(i.apiUrl+"api/common/getAcademicYear?curCode="+e).then(function(e){o.acad_data=e.data,o.temp.sims_academic_year=o.acad_data[0].sims_academic_year})},n.get(i.apiUrl+"api/classlist/getshow").then(function(e){o.show_for=e.data,o.temp.sims_appl_parameter=o.show_for[0].sims_appl_parameter}),o.getdetails=function(){o.colsvis=!1,n.get(i.apiUrl+"api/classlist/getsibling?cur_code="+o.temp.sims_cur_code+"&acad_year="+o.temp.sims_academic_year+"&show_report="+o.temp.sims_appl_parameter).then(function(e){0"+e+''+t+""),s.close(),a.focus(),o.getdetails()),o.getdetails()})},o.reset_data=function(){o.temp.sims_grade_code="",o.filteredTodos=[],o.pager=!1;try{$("#cmb_grade_code").multipleSelect("uncheckAll")}catch(e){}try{$("#cmb_section_code").multipleSelect("uncheckAll")}catch(e){}o.temp.sims_section_code="",o.filteredTodos=[]},o.ischeck=function(){o.checklick=function(){var e=document.getElementById("expire");1==e.checked&&e.checked}}}])}(),function(){"use strict";var e=angular.module("sims.module.Student");e.run(["$rootScope","$templateCache",function(e,t){e.$on("$viewContentLoaded",function(){t.removeAll()})}]),e.controller("StudentListByESISNoReportCont",["$scope","$state","$rootScope","$timeout","gettextCatalog","$http","ENV",function(o,e,t,a,s,n,i){o.temp={},o.detailsField=!0,o.hideprintpdf=!1,o.pagesize="30",o.pageindex="0",o.pager=!0,o.mom_end_date_check=!0,o.mom_start_date_check=!0,o.temp={};var d=(c=new Date).getDate(),r=c.getMonth()+1,c=(c.getFullYear(),o.mom_start_date="",o.mom_end_date="",$(function(){$("#bell_box").multipleSelect({width:"100%"}),$("#teacher_box").multipleSelect({width:"100%",filter:!0})}),new Date);(d=c.getDate())<10&&(d="0"+d);(r=c.getMonth()+1)<10&&(r="0"+r);var m=c.getFullYear();o.sdate=d+"-"+r+"-"+m,o.edate=d+"-"+r+"-"+m,o.mom_start_date=d+"-"+r+"-"+m,o.mom_end_date=d+"-"+r+"-"+m,$(function(){$("#chkmarks").click(function(){$(this).is(":checked")?($("#fdate").attr("disabled","disabled"),o.mom_start_date=""):($("#fdate").removeAttr("disabled"),$("#fdate").focus(),o.mom_start_date=d+"-"+r+"-"+m)})}),1==o.mom_start_date_check?o.mom_start_date="":o.mom_start_date=d+"-"+r+"-"+m,$(function(){$("#chkmarks1").click(function(){$(this).is(":checked")?($("#fdate").attr("disabled","disabled"),o.mom_end_date=""):($("#fdate").removeAttr("disabled"),$("#fdate").focus(),o.mom_end_date=d+"-"+r+"-"+m)})}),1==o.mom_end_date_check?o.mom_end_date="":o.mom_end_date=d+"-"+r+"-"+m,o.size=function(e){"All"==e?(o.currentPage="1",o.filteredTodos=o.todos,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,console.log("currentPage="+o.currentPage),o.makeTodos(),o.chk={},o.chk.chk_all=!1,o.row1=""},o.filteredTodos=[],o.currentPage=1,o.numPerPage=30,o.maxSize=100,o.makeTodos=function(){var e,t;"All"==o.pagesize?(o.currentPage=1,o.showPager=!1,o.filteredTodos=o.report_data):(e=parseInt(o.totalItems%o.numPerPage),o.pagersize="0"==e?parseInt(o.totalItems/o.numPerPage):parseInt(o.totalItems/o.numPerPage)+1,e=(o.currentPage-1)*o.numPerPage,t=parseInt(e)+parseInt(o.numPerPage),console.log("begin="+e),console.log("end="+t),o.filteredTodos=o.todos.slice(e,t))},n.get(i.apiUrl+"api/common/getCuriculum").then(function(e){o.cur_data=e.data,o.temp.sims_cur_code=o.cur_data[0].sims_cur_code,o.getAcademic_year(o.cur_data[0].sims_cur_code)}),o.getAcademic_year=function(e){n.get(i.apiUrl+"api/common/getAcademicYear?curCode="+e).then(function(e){o.acad_data=e.data,o.temp.sims_academic_year=o.acad_data[0].sims_academic_year,o.getGrade(o.temp.sims_cur_code,o.temp.sims_academic_year)})},o.getGrade=function(e,t){n.get(i.apiUrl+"api/common/getAllGrades?cur_code="+o.temp.sims_cur_code+"&academic_year="+o.temp.sims_academic_year).then(function(e){o.Grade_code=e.data,setTimeout(function(){$("#cmb_grade_code").change(function(){console.log($(this).val())}).multipleSelect({width:"100%"})},1e3)})},o.getSection=function(e,t,a){n.get(i.apiUrl+"api/common/getSectionFromGrade?cur_code="+o.temp.sims_cur_code+"&grade_code="+o.temp.sims_grade_code+"&academic_year="+o.temp.sims_academic_year).then(function(e){o.Section_code=e.data,setTimeout(function(){$("#cmb_section_code").change(function(){console.log($(this).val())}).multipleSelect({width:"100%"})},1e3)})},o.parameter=function(){n.get(i.apiUrl+"api/StudentListBy/getview").then(function(e){o.view_for=e.data,o.temp.comn_appl_parameter=o.view_for[0].comn_appl_parameter})},o.getReport=function(e,t,a){n.get(i.apiUrl+"api/common/getSectionFromGrade?cur_code="+o.temp.sims_cur_code+"&grade_code="+o.temp.sims_grade_code+"&academic_year="+o.temp.sims_academic_year).then(function(e){o.Section_code=e.data,setTimeout(function(){$("#cmb_section_code").change(function(){console.log($(this).val())}).multipleSelect({width:"100%"})},1e3)})},o.getdetails=function(){o.colsvis=!1,n.get(i.apiUrl+"api/StudentListBy/getlistbyesisno?cur_code="+o.temp.sims_cur_code+"&acad_year="+o.temp.sims_academic_year+"&grade_code="+o.temp.sims_grade_code+"§ion_code="+o.temp.sims_section_code+"&assign_status="+o.temp.comn_appl_parameter).then(function(e){0"+e+''+t+""),s.close(),a.focus(),o.detailsField=!1,o.colsvis=!1,o.getsubdetail())}),o.getdetails()},o.reset_data=function(){o.temp.sims_grade_code="",o.filteredTodos=[],o.pager=!1;try{$("#cmb_grade_code").multipleSelect("uncheckAll")}catch(e){}try{$("#cmb_section_code").multipleSelect("uncheckAll")}catch(e){}o.temp.sims_section_code="",o.filteredTodos=[]},o.ischeck=function(){o.checklick=function(){var e=document.getElementById("expire");1==e.checked&&e.checked}}}])}(),function(){"use strict";var e=angular.module("sims.module.Student");e.run(["$rootScope","$templateCache",function(e,t){e.$on("$viewContentLoaded",function(){t.removeAll()})}]),e.controller("StudentListByGradeCont",["$scope","$state","$rootScope","$timeout","gettextCatalog","$http","ENV",function(o,e,t,a,s,n,i){o.temp={},o.detailsField=!0,o.hideprintpdf=!1,o.pagesize="30",o.pageindex="0",o.pager=!0,o.size=function(e){"All"==e?(o.currentPage="1",o.filteredTodos=o.todos,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,console.log("currentPage="+o.currentPage),o.makeTodos(),o.chk={},o.chk.chk_all=!1,o.row1=""},o.filteredTodos=[],o.currentPage=1,o.numPerPage=30,o.maxSize=100,o.makeTodos=function(){var e,t;"All"==o.pagesize?(o.currentPage=1,o.showPager=!1,o.filteredTodos=o.report_data):(e=parseInt(o.totalItems%o.numPerPage),o.pagersize="0"==e?parseInt(o.totalItems/o.numPerPage):parseInt(o.totalItems/o.numPerPage)+1,e=(o.currentPage-1)*o.numPerPage,t=parseInt(e)+parseInt(o.numPerPage),console.log("begin="+e),console.log("end="+t),o.filteredTodos=o.todos.slice(e,t))},n.get(i.apiUrl+"api/common/getCuriculum").then(function(e){o.cur_data=e.data,o.temp.sims_cur_code=o.cur_data[0].sims_cur_code,o.getAcademic_year(o.cur_data[0].sims_cur_code)}),o.getAcademic_year=function(e){n.get(i.apiUrl+"api/common/getAcademicYear?curCode="+e).then(function(e){o.acad_data=e.data,o.temp.sims_academic_year=o.acad_data[0].sims_academic_year,o.getGrade(o.temp.sims_cur_code,o.temp.sims_academic_year)})},o.getGrade=function(e,t){n.get(i.apiUrl+"api/common/getAllGrades?cur_code="+o.temp.sims_cur_code+"&academic_year="+o.temp.sims_academic_year).then(function(e){o.Grade_code=e.data,setTimeout(function(){$("#cmb_grade_code").change(function(){console.log($(this).val())}).multipleSelect({width:"100%"})},1e3)})},o.getSection=function(e,t,a){n.get(i.apiUrl+"api/common/getSectionFromGrade?cur_code="+o.temp.sims_cur_code+"&grade_code="+o.temp.sims_grade_code+"&academic_year="+o.temp.sims_academic_year).then(function(e){o.Section_code=e.data,setTimeout(function(){$("#cmb_section_code").change(function(){console.log($(this).val())}).multipleSelect({width:"100%"})},1e3)})},o.getdetails=function(){n.get(i.apiUrl+"api/classlist/getlistbygrade?cur_code="+o.temp.sims_cur_code+"&acad_year="+o.temp.sims_academic_year+"&grade_code="+o.temp.sims_grade_code+"§ion_code="+o.temp.sims_section_code).then(function(e){0"+e+''+t+""),s.close(),a.focus(),o.getdetails()),o.getdetails()})},o.colsvis=!1,o.ischeck=function(){o.checklick=function(){var e=document.getElementById("expire");1==e.checked&&e.checked}}}])}(),function(){"use strict";var r,c=[],m=[],e=angular.module("sims.module.Common");e.run(["$rootScope","$templateCache",function(e,t){e.$on("$viewContentLoaded",function(){t.removeAll()})}]),e.controller("WebsitehyperlinksCont",["$scope","$state","$rootScope","$timeout","gettextCatalog","$http","ENV",function(s,e,t,a,o,n,i){i.docUrl="https://assets.mograsys.com/Content/",s.defaultImage="default.jpg",s.image_url1=i.docUrl+n.defaults.headers.common.schoolId+"/Images/WebsiteHyperLinks/",s.imageUrl_public=i.docUrl+n.defaults.headers.common.schoolId,s.pagesize="5",s.temp="",s.table1=!0;var d=new FormData;s.imageUrl=i.apiUrl,s.getgrid=function(){n.get(i.apiUrl+"api/WebsitehyperlinksController/getDocMaster").then(function(e){s.DocData=e.data,s.totalItems=s.DocData.length,s.todos=s.DocData,s.makeTodos(),console.log(s.DocData),s.makeTodos()})},s.getgrid(),n.get(i.apiUrl+"api/WebsitehyperlinksController/GetType").then(function(e){s.type=e.data}),n.get(i.apiUrl+"api/WebsitehyperlinksController/GetGrade").then(function(e){s.grade=e.data,setTimeout(function(){$("#grade_select").change(function(){console.log($(this).val())}).multipleSelect({width:"100%"}),$("#section_select").multipleSelect({width:"100%",placeholder:"Select Section"})},1e3)}),s.gradesection=function(e){n.get(i.apiUrl+"api/WebsitehyperlinksController/GetSectionNew?grade="+e).then(function(e){s.AllSectionFromGrade=e.data,0"+e+''+t+""),s.close(),a.focus(),o.detailsField=!1,o.colsvis=!1,o.getsubdetail())}),o.getdetails()},o.reset_data=function(){o.temp.sims_grade_code="",o.filteredTodos=[],o.report_data=[],o.todos=[],o.pager=!1;try{$("#cmb_grade_code").multipleSelect("uncheckAll")}catch(e){}try{$("#cmb_section_code").multipleSelect("uncheckAll")}catch(e){}o.temp.sims_section_code="",o.filteredTodos=[]},o.ischeck=function(){o.checklick=function(){var e=document.getElementById("expire");1==e.checked&&e.checked}}}])}(),function(){"use strict";var e=angular.module("sims.module.Student");e.run(["$rootScope","$templateCache",function(e,t){e.$on("$viewContentLoaded",function(){t.removeAll()})}]),e.controller("CancelledAdmissionStatusReportCont",["$scope","$state","$rootScope","$timeout","gettextCatalog","$http","ENV",function(o,e,t,a,s,n,i){o.temp={},o.detailsField=!0,o.hideprintpdf=!1,o.pagesize="30",o.pageindex="0",o.pager=!0,o.mom_end_date_check=!0,o.mom_start_date_check=!0,o.temp={};var d=(c=new Date).getDate(),r=c.getMonth()+1,c=(c.getFullYear(),o.mom_start_date="",o.mom_end_date="",$(function(){$("#bell_box").multipleSelect({width:"100%"}),$("#teacher_box").multipleSelect({width:"100%",filter:!0})}),new Date);(d=c.getDate())<10&&(d="0"+d);(r=c.getMonth()+1)<10&&(r="0"+r);var m=c.getFullYear();o.sdate=d+"-"+r+"-"+m,o.edate=d+"-"+r+"-"+m,o.mom_start_date=d+"-"+r+"-"+m,o.mom_end_date=d+"-"+r+"-"+m,$(function(){$("#chkmarks").click(function(){$(this).is(":checked")?($("#fdate").attr("disabled","disabled"),o.mom_start_date=""):($("#fdate").removeAttr("disabled"),$("#fdate").focus(),o.mom_start_date=d+"-"+r+"-"+m)})}),1==o.mom_start_date_check?o.mom_start_date="":o.mom_start_date=d+"-"+r+"-"+m,$(function(){$("#chkmarks1").click(function(){$(this).is(":checked")?($("#fdate").attr("disabled","disabled"),o.mom_end_date=""):($("#fdate").removeAttr("disabled"),$("#fdate").focus(),o.mom_end_date=d+"-"+r+"-"+m)})}),1==o.mom_end_date_check?o.mom_end_date="":o.mom_end_date=d+"-"+r+"-"+m,o.size=function(e){"All"==e?(o.currentPage="1",o.filteredTodos=o.todos,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,console.log("currentPage="+o.currentPage),o.makeTodos(),o.chk={},o.chk.chk_all=!1,o.row1=""},o.filteredTodos=[],o.currentPage=1,o.numPerPage=30,o.maxSize=100,o.makeTodos=function(){var e,t;"All"==o.pagesize?(o.currentPage=1,o.showPager=!1,o.filteredTodos=o.report_data):(e=parseInt(o.totalItems%o.numPerPage),o.pagersize="0"==e?parseInt(o.totalItems/o.numPerPage):parseInt(o.totalItems/o.numPerPage)+1,e=(o.currentPage-1)*o.numPerPage,t=parseInt(e)+parseInt(o.numPerPage),console.log("begin="+e),console.log("end="+t),o.filteredTodos=o.todos.slice(e,t))},n.get(i.apiUrl+"api/common/getCuriculum").then(function(e){o.cur_data=e.data,o.temp.sims_cur_code=o.cur_data[0].sims_cur_code}),o.getdetails=function(){o.colsvis=!1,n.get(i.apiUrl+"api/classlist/getadmissionstatus?cur_code="+o.temp.sims_cur_code+"&from="+o.mom_start_date+"&to="+o.mom_end_date).then(function(e){0"+e+''+t+""),s.close(),a.focus(),o.detailsField=!1,o.colsvis=!1,o.getsubdetail())}),o.getdetails()},o.reset_data=function(){o.temp.sims_grade_code="",o.filteredTodos=[],o.pager=!1;try{$("#cmb_grade_code").multipleSelect("uncheckAll")}catch(e){}try{$("#cmb_section_code").multipleSelect("uncheckAll")}catch(e){}o.temp.sims_section_code="",o.filteredTodos=[]},o.ischeck=function(){o.checklick=function(){var e=document.getElementById("expire");1==e.checked&&e.checked}}}])}(),function(){"use strict";var e=angular.module("sims.module.Student");e.run(["$rootScope","$templateCache",function(e,t){e.$on("$viewContentLoaded",function(){t.removeAll()})}]),e.controller("CancelledListReportCont",["$scope","$state","$rootScope","$timeout","gettextCatalog","$http","ENV",function(o,e,t,a,s,n,i){o.temp={},o.detailsField=!0,o.hideprintpdf=!1,o.pagesize="30",o.pageindex="0",o.pager=!0,o.mom_end_date_check=!0,o.mom_start_date_check=!0,o.temp={};var d=(c=new Date).getDate(),r=c.getMonth()+1,c=(c.getFullYear(),o.mom_start_date="",o.mom_end_date="",$(function(){$("#bell_box").multipleSelect({width:"100%"}),$("#teacher_box").multipleSelect({width:"100%",filter:!0})}),new Date);(d=c.getDate())<10&&(d="0"+d);(r=c.getMonth()+1)<10&&(r="0"+r);var m=c.getFullYear();o.sdate=d+"-"+r+"-"+m,o.edate=d+"-"+r+"-"+m,o.mom_start_date=d+"-"+r+"-"+m,o.mom_end_date=d+"-"+r+"-"+m,$(function(){$("#chkmarks").click(function(){$(this).is(":checked")?($("#fdate").attr("disabled","disabled"),o.mom_start_date=""):($("#fdate").removeAttr("disabled"),$("#fdate").focus(),o.mom_start_date=d+"-"+r+"-"+m)})}),1==o.mom_start_date_check?o.mom_start_date="":o.mom_start_date=d+"-"+r+"-"+m,$(function(){$("#chkmarks1").click(function(){$(this).is(":checked")?($("#fdate").attr("disabled","disabled"),o.mom_end_date=""):($("#fdate").removeAttr("disabled"),$("#fdate").focus(),o.mom_end_date=d+"-"+r+"-"+m)})}),1==o.mom_end_date_check?o.mom_end_date="":o.mom_end_date=d+"-"+r+"-"+m,o.size=function(e){"All"==e?(o.currentPage="1",o.filteredTodos=o.todos,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,console.log("currentPage="+o.currentPage),o.makeTodos(),o.chk={},o.chk.chk_all=!1,o.row1=""},o.filteredTodos=[],o.currentPage=1,o.numPerPage=30,o.maxSize=100,o.makeTodos=function(){var e,t;"All"==o.pagesize?(o.currentPage=1,o.showPager=!1,o.filteredTodos=o.report_data):(e=parseInt(o.totalItems%o.numPerPage),o.pagersize="0"==e?parseInt(o.totalItems/o.numPerPage):parseInt(o.totalItems/o.numPerPage)+1,e=(o.currentPage-1)*o.numPerPage,t=parseInt(e)+parseInt(o.numPerPage),console.log("begin="+e),console.log("end="+t),o.filteredTodos=o.todos.slice(e,t))},n.get(i.apiUrl+"api/common/getCuriculum").then(function(e){o.cur_data=e.data,o.temp.sims_cur_code=o.cur_data[0].sims_cur_code}),o.getdetails=function(){o.colsvis=!1,n.get(i.apiUrl+"api/classlist/getcancelledlist?cur_code="+o.temp.sims_cur_code+"&from_date="+o.mom_start_date+"&to_date="+o.mom_end_date).then(function(e){0"+e+''+t+""),s.close(),a.focus(),o.getdetails()),o.getdetails()})},o.reset_data=function(){o.temp.sims_grade_code="",o.filteredTodos=[],o.pager=!1;try{$("#cmb_grade_code").multipleSelect("uncheckAll")}catch(e){}try{$("#cmb_section_code").multipleSelect("uncheckAll")}catch(e){}o.temp.sims_section_code="",o.filteredTodos=[]},o.ischeck=function(){o.checklick=function(){var e=document.getElementById("expire");1==e.checked&&e.checked}}}])}(),function(){"use strict";var e=angular.module("sims.module.Student");e.run(["$rootScope","$templateCache",function(e,t){e.$on("$viewContentLoaded",function(){t.removeAll()})}]),e.controller("StudentDetailreportCont",["$scope","$state","$rootScope","$timeout","gettextCatalog","$http","ENV",function(o,e,t,a,s,n,i){o.temp={},o.detailsField=!0,o.hideprintpdf=!1,o.pagesize="30",o.pageindex="0",o.pager=!0,o.mom_end_date_check=!0,o.mom_start_date_check=!0,o.temp={};var d=(c=new Date).getDate(),r=c.getMonth()+1,c=(c.getFullYear(),o.mom_start_date="",o.mom_end_date="",$(function(){$("#bell_box").multipleSelect({width:"100%"}),$("#teacher_box").multipleSelect({width:"100%",filter:!0})}),new Date);(d=c.getDate())<10&&(d="0"+d);(r=c.getMonth()+1)<10&&(r="0"+r);var m=c.getFullYear();o.sdate=d+"-"+r+"-"+m,o.edate=d+"-"+r+"-"+m,o.mom_start_date=d+"-"+r+"-"+m,o.mom_end_date=d+"-"+r+"-"+m,$(function(){$("#chkmarks").click(function(){$(this).is(":checked")?($("#fdate").attr("disabled","disabled"),o.mom_start_date=""):($("#fdate").removeAttr("disabled"),$("#fdate").focus(),o.mom_start_date=d+"-"+r+"-"+m)})}),1==o.mom_start_date_check?o.mom_start_date="":o.mom_start_date=d+"-"+r+"-"+m,$(function(){$("#chkmarks1").click(function(){$(this).is(":checked")?($("#fdate").attr("disabled","disabled"),o.mom_end_date=""):($("#fdate").removeAttr("disabled"),$("#fdate").focus(),o.mom_end_date=d+"-"+r+"-"+m)})}),1==o.mom_end_date_check?o.mom_end_date="":o.mom_end_date=d+"-"+r+"-"+m,o.size=function(e){"All"==e?(o.currentPage="1",o.filteredTodos=o.todos,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,console.log("currentPage="+o.currentPage),o.makeTodos(),o.chk={},o.chk.chk_all=!1,o.row1=""},o.filteredTodos=[],o.currentPage=1,o.numPerPage=30,o.maxSize=100,o.makeTodos=function(){var e,t;"All"==o.pagesize?(o.currentPage=1,o.showPager=!1,o.filteredTodos=o.report_data):(e=parseInt(o.totalItems%o.numPerPage),o.pagersize="0"==e?parseInt(o.totalItems/o.numPerPage):parseInt(o.totalItems/o.numPerPage)+1,e=(o.currentPage-1)*o.numPerPage,t=parseInt(e)+parseInt(o.numPerPage),console.log("begin="+e),console.log("end="+t),o.filteredTodos=o.todos.slice(e,t))},n.get(i.apiUrl+"api/common/getCuriculum").then(function(e){o.cur_data=e.data,o.temp.sims_cur_code=o.cur_data[0].sims_cur_code,o.getAcademic_year(o.cur_data[0].sims_cur_code)}),o.getAcademic_year=function(e){n.get(i.apiUrl+"api/common/getAcademicYear?curCode="+e).then(function(e){o.acad_data=e.data,o.temp.sims_academic_year=o.acad_data[0].sims_academic_year,o.getGrade(o.temp.sims_cur_code,o.temp.sims_academic_year)})},o.getGrade=function(e,t){n.get(i.apiUrl+"api/common/getAllGrades?cur_code="+o.temp.sims_cur_code+"&academic_year="+o.temp.sims_academic_year).then(function(e){o.Grade_code=e.data,setTimeout(function(){$("#cmb_grade_code").change(function(){console.log($(this).val())}).multipleSelect({width:"100%"})},1e3)})},o.getSection=function(e,t,a){n.get(i.apiUrl+"api/common/getSectionFromGrade?cur_code="+o.temp.sims_cur_code+"&grade_code="+o.temp.sims_grade_code+"&academic_year="+o.temp.sims_academic_year).then(function(e){o.Section_code=e.data,setTimeout(function(){$("#cmb_section_code").change(function(){console.log($(this).val())}).multipleSelect({width:"100%"})},1e3)})},o.parameter=function(){n.get(i.apiUrl+"api/classlist/getstudent_status").then(function(e){o.report_for=e.data,o.temp.comn_appl_parameter=o.report_for[0].comn_appl_parameter,setTimeout(function(){$("#report_for").change(function(){console.log($(this).val())}).multipleSelect({width:"100%"})},1e3)})},o.getReport=function(e,t,a){n.get(i.apiUrl+"api/common/getSectionFromGrade?cur_code="+o.temp.sims_cur_code+"&grade_code="+o.temp.sims_grade_code+"&academic_year="+o.temp.sims_academic_year).then(function(e){o.Section_code=e.data,setTimeout(function(){$("#cmb_section_code").change(function(){console.log($(this).val())}).multipleSelect({width:"100%"})},1e3)})},o.getdetails=function(){o.colsvis=!1,n.get(i.apiUrl+"api/classlist/getstudentlist?cur_code="+o.temp.sims_cur_code+"&acad_year="+o.temp.sims_academic_year+"&grade="+o.temp.sims_grade_code+"§ion="+o.temp.sims_section_code+"&status="+o.temp.comn_appl_parameter).then(function(e){0"+e+''+t+""),s.close(),a.focus(),o.detailsField=!1,o.colsvis=!1,o.getsubdetail())}),o.getdetails()},o.reset_data=function(){o.temp.sims_grade_code="",o.filteredTodos=[],o.pager=!1;try{$("#cmb_grade_code").multipleSelect("uncheckAll")}catch(e){}try{$("#cmb_section_code").multipleSelect("uncheckAll")}catch(e){}o.temp.sims_section_code="",o.filteredTodos=[]},o.ischeck=function(){o.checklick=function(){var e=document.getElementById("expire");1==e.checked&&e.checked}}}])}(),function(){"use strict";var e=angular.module("sims.module.Student");e.run(["$rootScope","$templateCache",function(e,t){e.$on("$viewContentLoaded",function(){t.removeAll()})}]),e.controller("OnlineAdmissionStdListCont",["$scope","$state","$rootScope","$timeout","gettextCatalog","$http","ENV",function(o,e,t,a,s,n,i){o.temp={},o.detailsField=!0,o.hideprintpdf=!1,o.pagesize="30",o.pageindex="0",o.pager=!0,o.mom_end_date_check=!0,o.mom_start_date_check=!0,o.temp={};var d=(c=new Date).getDate(),r=c.getMonth()+1,c=(c.getFullYear(),o.mom_start_date="",o.mom_end_date="",$(function(){$("#bell_box").multipleSelect({width:"100%"}),$("#teacher_box").multipleSelect({width:"100%",filter:!0})}),new Date);(d=c.getDate())<10&&(d="0"+d);(r=c.getMonth()+1)<10&&(r="0"+r);var m=c.getFullYear();o.sdate=d+"-"+r+"-"+m,o.edate=d+"-"+r+"-"+m,o.mom_start_date=d+"-"+r+"-"+m,o.mom_end_date=d+"-"+r+"-"+m,$(function(){$("#chkmarks").click(function(){$(this).is(":checked")?($("#fdate").attr("disabled","disabled"),o.mom_start_date=""):($("#fdate").removeAttr("disabled"),$("#fdate").focus(),o.mom_start_date=d+"-"+r+"-"+m)})}),1==o.mom_start_date_check?o.mom_start_date="":o.mom_start_date=d+"-"+r+"-"+m,$(function(){$("#chkmarks1").click(function(){$(this).is(":checked")?($("#fdate").attr("disabled","disabled"),o.mom_end_date=""):($("#fdate").removeAttr("disabled"),$("#fdate").focus(),o.mom_end_date=d+"-"+r+"-"+m)})}),1==o.mom_end_date_check?o.mom_end_date="":o.mom_end_date=d+"-"+r+"-"+m,o.size=function(e){"All"==e?(o.currentPage="1",o.filteredTodos=o.todos,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,console.log("currentPage="+o.currentPage),o.makeTodos(),o.chk={},o.chk.chk_all=!1,o.row1=""},o.filteredTodos=[],o.currentPage=1,o.numPerPage=30,o.maxSize=100,o.makeTodos=function(){var e,t;"All"==o.pagesize?(o.currentPage=1,o.showPager=!1,o.filteredTodos=o.report_data):(e=parseInt(o.totalItems%o.numPerPage),o.pagersize="0"==e?parseInt(o.totalItems/o.numPerPage):parseInt(o.totalItems/o.numPerPage)+1,e=(o.currentPage-1)*o.numPerPage,t=parseInt(e)+parseInt(o.numPerPage),console.log("begin="+e),console.log("end="+t),o.filteredTodos=o.todos.slice(e,t))},n.get(i.apiUrl+"api/common/getCuriculum").then(function(e){o.cur_data=e.data,o.temp.sims_cur_code=o.cur_data[0].sims_cur_code,o.getAcademic_year(o.cur_data[0].sims_cur_code)}),o.getAcademic_year=function(e){n.get(i.apiUrl+"api/common/getAcademicYear?curCode="+e).then(function(e){o.acad_data=e.data,o.temp.sims_academic_year=o.acad_data[0].sims_academic_year,o.getGrade(o.temp.sims_cur_code,o.temp.sims_academic_year)})},o.getGrade=function(e,t){n.get(i.apiUrl+"api/common/getAllGrades?cur_code="+o.temp.sims_cur_code+"&academic_year="+o.temp.sims_academic_year).then(function(e){o.Grade_code=e.data,setTimeout(function(){$("#cmb_grade_code").change(function(){console.log($(this).val())}).multipleSelect({width:"100%"})},1e3)})},o.parameter=function(){n.get(i.apiUrl+"api/classlist/getstatus_parameter").then(function(e){o.report_for=e.data,o.temp.sims_appl_parameter=o.report_for[0].sims_appl_parameter})},o.getdetails=function(){o.colsvis=!1,n.get(i.apiUrl+"api/classlist/getonlinelist?cur_code="+o.temp.sims_cur_code+"&acad_year="+o.temp.sims_academic_year+"&grade_code="+o.temp.sims_grade_code+"&st_date="+o.mom_start_date+"&end_date="+o.mom_end_date+"&admn_status="+o.temp.sims_appl_parameter).then(function(e){0"+e+''+t+""),s.close(),a.focus(),o.detailsField=!1,o.colsvis=!1,o.getsubdetail())}),o.getdetails()},o.reset_data=function(){o.temp.sims_grade_code="",o.filteredTodos=[],o.pager=!1;try{$("#cmb_grade_code").multipleSelect("uncheckAll")}catch(e){}try{$("#cmb_section_code").multipleSelect("uncheckAll")}catch(e){}o.temp.sims_section_code="",o.filteredTodos=[]},o.ischeck=function(){o.checklick=function(){var e=document.getElementById("expire");1==e.checked&&e.checked}}}])}(),function(){"use strict";var e=angular.module("sims.module.Student");e.run(["$rootScope","$templateCache",function(e,t){e.$on("$viewContentLoaded",function(){t.removeAll()})}]),e.controller("SubjectTeacherListReportCont",["$scope","$state","$rootScope","$timeout","gettextCatalog","$http","ENV",function(o,e,t,a,s,n,i){o.temp={},o.detailsField=!0,o.hideprintpdf=!1,o.pagesize="30",o.pageindex="0",o.pager=!0,o.size=function(e){"All"==e?(o.currentPage="1",o.filteredTodos=o.todos,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,console.log("currentPage="+o.currentPage),o.makeTodos(),o.chk={},o.chk.chk_all=!1,o.row1=""},o.filteredTodos=[],o.currentPage=1,o.numPerPage=30,o.maxSize=100,o.makeTodos=function(){var e,t;"All"==o.pagesize?(o.currentPage=1,o.showPager=!1,o.filteredTodos=o.report_data):(e=parseInt(o.totalItems%o.numPerPage),o.pagersize="0"==e?parseInt(o.totalItems/o.numPerPage):parseInt(o.totalItems/o.numPerPage)+1,e=(o.currentPage-1)*o.numPerPage,t=parseInt(e)+parseInt(o.numPerPage),console.log("begin="+e),console.log("end="+t),o.filteredTodos=o.todos.slice(e,t))},n.get(i.apiUrl+"api/common/getCuriculum").then(function(e){o.cur_data=e.data,o.temp.sims_cur_code=o.cur_data[0].sims_cur_code,o.getAcademic_year(o.cur_data[0].sims_cur_code)}),o.getAcademic_year=function(e){n.get(i.apiUrl+"api/common/getAcademicYear?curCode="+e).then(function(e){o.acad_data=e.data,o.temp.sims_academic_year=o.acad_data[0].sims_academic_year,o.getGrade(o.temp.sims_cur_code,o.temp.sims_academic_year)})},o.getGrade=function(e,t){n.get(i.apiUrl+"api/common/getAllGrades?cur_code="+o.temp.sims_cur_code+"&academic_year="+o.temp.sims_academic_year).then(function(e){o.Grade_code=e.data,setTimeout(function(){$("#cmb_grade_code").change(function(){console.log($(this).val())}).multipleSelect({width:"100%"})},1e3)})},o.getSection=function(e,t,a){n.get(i.apiUrl+"api/common/getSectionFromGrade?cur_code="+o.temp.sims_cur_code+"&grade_code="+o.temp.sims_grade_code+"&academic_year="+o.temp.sims_academic_year).then(function(e){o.Section_code=e.data,setTimeout(function(){$("#cmb_section_code").change(function(){console.log($(this).val())}).multipleSelect({width:"100%"})},1e3)})},o.getdetails=function(){n.get(i.apiUrl+"api/classlist/getlistbysubject?acad_year="+o.temp.sims_academic_year+"&grade_code="+o.temp.sims_grade_code+"§ion_code="+o.temp.sims_section_code).then(function(e){0"+e+''+t+""),s.close(),a.focus(),o.getdetails()),o.getdetails()})},o.colsvis=!1,o.ischeck=function(){o.checklick=function(){var e=document.getElementById("expire");1==e.checked&&e.checked}}}])}(),function(){"use strict";var e=angular.module("sims.module.Student");e.run(["$rootScope","$templateCache",function(e,t){e.$on("$viewContentLoaded",function(){t.removeAll()})}]),e.controller("NewAdmissionCancellationStdListCont",["$scope","$state","$rootScope","$timeout","gettextCatalog","$http","ENV",function(o,e,t,a,s,n,i){o.temp={},o.detailsField=!0,o.hideprintpdf=!1,o.pagesize="30",o.pageindex="0",o.pager=!0,o.mom_end_date_check=!0,o.mom_start_date_check=!0,o.temp={};var d=(c=new Date).getDate(),r=c.getMonth()+1,c=(c.getFullYear(),o.mom_start_date="",o.mom_end_date="",$(function(){$("#bell_box").multipleSelect({width:"100%"}),$("#teacher_box").multipleSelect({width:"100%",filter:!0})}),new Date);(d=c.getDate())<10&&(d="0"+d);(r=c.getMonth()+1)<10&&(r="0"+r);var m=c.getFullYear();o.sdate=d+"-"+r+"-"+m,o.edate=d+"-"+r+"-"+m,o.mom_start_date=d+"-"+r+"-"+m,o.mom_end_date=d+"-"+r+"-"+m,$(function(){$("#chkmarks").click(function(){$(this).is(":checked")?($("#fdate").attr("disabled","disabled"),o.mom_start_date=""):($("#fdate").removeAttr("disabled"),$("#fdate").focus(),o.mom_start_date=d+"-"+r+"-"+m)})}),1==o.mom_start_date_check?o.mom_start_date="":o.mom_start_date=d+"-"+r+"-"+m,$(function(){$("#chkmarks1").click(function(){$(this).is(":checked")?($("#fdate").attr("disabled","disabled"),o.mom_end_date=""):($("#fdate").removeAttr("disabled"),$("#fdate").focus(),o.mom_end_date=d+"-"+r+"-"+m)})}),1==o.mom_end_date_check?o.mom_end_date="":o.mom_end_date=d+"-"+r+"-"+m,o.size=function(e){"All"==e?(o.currentPage="1",o.filteredTodos=o.todos,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,console.log("currentPage="+o.currentPage),o.makeTodos(),o.chk={},o.chk.chk_all=!1,o.row1=""},o.filteredTodos=[],o.currentPage=1,o.numPerPage=30,o.maxSize=100,o.makeTodos=function(){var e,t;"All"==o.pagesize?(o.currentPage=1,o.showPager=!1,o.filteredTodos=o.report_data):(e=parseInt(o.totalItems%o.numPerPage),o.pagersize="0"==e?parseInt(o.totalItems/o.numPerPage):parseInt(o.totalItems/o.numPerPage)+1,e=(o.currentPage-1)*o.numPerPage,t=parseInt(e)+parseInt(o.numPerPage),console.log("begin="+e),console.log("end="+t),o.filteredTodos=o.todos.slice(e,t))},n.get(i.apiUrl+"api/common/getCuriculum").then(function(e){o.cur_data=e.data,o.temp.sims_cur_code=o.cur_data[0].sims_cur_code,o.getAcademic_year(o.cur_data[0].sims_cur_code)}),o.getAcademic_year=function(e){n.get(i.apiUrl+"api/common/getAcademicYear?curCode="+e).then(function(e){o.acad_data=e.data,o.temp.sims_academic_year=o.acad_data[0].sims_academic_year,o.getGrade(o.temp.sims_cur_code,o.temp.sims_academic_year)})},o.getGrade=function(e,t){n.get(i.apiUrl+"api/common/getAllGrades?cur_code="+o.temp.sims_cur_code+"&academic_year="+o.temp.sims_academic_year).then(function(e){o.Grade_code=e.data,setTimeout(function(){$("#cmb_grade_code").change(function(){console.log($(this).val())}).multipleSelect({width:"100%"})},1e3)})},o.getSection=function(e,t,a){n.get(i.apiUrl+"api/common/getSectionFromGrade?cur_code="+o.temp.sims_cur_code+"&grade_code="+o.temp.sims_grade_code+"&academic_year="+o.temp.sims_academic_year).then(function(e){o.Section_code=e.data,setTimeout(function(){$("#cmb_section_code").change(function(){console.log($(this).val())}).multipleSelect({width:"100%"})},1e3)})},o.parameter=function(){n.get(i.apiUrl+"api/classlist/getreport_parameter").then(function(e){o.report_for=e.data,o.temp.sims_appl_parameter=o.report_for[0].sims_appl_parameter})},o.getReport=function(e,t,a){n.get(i.apiUrl+"api/common/getSectionFromGrade?cur_code="+o.temp.sims_cur_code+"&grade_code="+o.temp.sims_grade_code+"&academic_year="+o.temp.sims_academic_year).then(function(e){o.Section_code=e.data,setTimeout(function(){$("#cmb_section_code").change(function(){console.log($(this).val())}).multipleSelect({width:"100%"})},1e3)})},o.getdetails=function(){o.colsvis=!1,n.get(i.apiUrl+"api/classlist/getnew_cancelled_student_list?cur_code="+o.temp.sims_cur_code+"&acad_year="+o.temp.sims_academic_year+"&grade_code="+o.temp.sims_grade_code+"§ion_code="+o.temp.sims_section_code+"&from_date="+o.mom_start_date+"&to_date="+o.mom_end_date+"&report_param="+o.temp.sims_appl_parameter).then(function(e){0"+e+''+t+""),s.close(),a.focus(),o.getdetails()),o.getdetails()})},o.reset_data=function(){o.temp.sims_grade_code="",o.filteredTodos=[],o.pager=!1;try{$("#cmb_grade_code").multipleSelect("uncheckAll")}catch(e){}try{$("#cmb_section_code").multipleSelect("uncheckAll")}catch(e){}o.temp.sims_section_code="",o.filteredTodos=[]},o.ischeck=function(){o.checklick=function(){var e=document.getElementById("expire");1==e.checked&&e.checked}}}])}(),function(){"use strict";angular.module("sims.module.HRMS").controller("RecruitmentRegisterCont",["$scope","$state","$rootScope","AuthenticationService","$cookieStore","$timeout","$location","gettextCatalog","$http","ENV",function(n,t,a,s,e,o,_,i,d,r){$('*[data-datepicker="true"] input[type="text"]').datepicker({todayBtn:!0,orientation:"top left",autoclose:!0,todayHighlight:!0,format:"yyyy-mm-dd"}),n.username="",n.password="",n.schoolUrl="",n.user={},n.temp={},n.signup=function(){},n.showForgetPaaword=!1,n.edt={},n.schoolUrl=window.location.href;var c=n.schoolUrl.substring(n.schoolUrl.indexOf("/")+2,n.schoolUrl.indexOf("."));"www"==c||"WWW"==c?(n.schoolUrl=window.location.href,c=n.schoolUrl.split(".")[1],d.defaults.headers.common.schoolId=c):d.defaults.headers.common.schoolId="sis",n.onKeyPress=function(e){13==e.keyCode&&n.login()},d.get(r.apiUrl+"api/Fee/SFS/getvacancyEmpData").then(function(e){n.obj=e.data,console.log(n.obj)}),n.login=function(){d.get(r.apiUrl+"api/common/getlastLogin?uname="+n.username).then(function(e){n.isfistTimeLog=e.data,console.log(e.data),$("#loader").modal({backdrop:"static",keyboard:!1}),n.showForgetPaaword?n.toggleLoginScreen():(n.showMessage=!1,s.Login(n.username,n.password,function(e){console.log(e),n.showMessage=!0,0==e.success?(n.showMessage=!0,n.messageClass="alert alert-warning alert-dismissable",n.message="Invalid username or password!!!",$("#loader").modal("hide")):($("#loader").modal("hide"),n.showMessage=!0,n.messageClass="alert alert-success alert-dismissable",s.ClearCredentials(),s.SetCredentials(n.username,n.password),n.message="SuccessFully Authenticated!!!",$(".modal-backdrop").removeClass("modal-backdrop"),$("#loader").modal("hide"),o(function(){var e;a.isfistTimeLog=n.isfistTimeLog,t.go("main.dashboard"),n.keepMeSign&&(e={id:d.defaults.headers.common.schoolId,uname:n.username,pass:n.password},window.localStorage.KeepMeDetails=JSON.stringify(e))}))}))})},n.GetSumAddr=function(){var e=n.temp,t=$("#txt_address").val().length,a=($("#txt_father_aprt").val().length,$("#txt_father_build").val().length,$("#txt_father_Street").val().length,$("#txt_father_area").val().length),s=$("#txt_father_city").val().length,o=$("#txt_father_state").val().length,t=(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"+e+''+t+""),s.close(),a.focus(),o.detailsField=!1,o.colsvis=!1,o.getsubdetail())})},o.reset_data=function(){o.temp.sims_grade_code="";try{$("#cmb_grade_code").multipleSelect("uncheckAll")}catch(e){}try{$("#cmb_section_code").multipleSelect("uncheckAll")}catch(e){}o.temp.sims_section_code="",o.filteredTodos=[]},o.ischeck=function(){o.checklick=function(){var e=document.getElementById("expire");1==e.checked&&e.checked}}}])}(),function(){"use strict";var e=angular.module("sims.module.HRMS");e.run(["$rootScope","$templateCache",function(e,t){e.$on("$viewContentLoaded",function(){t.removeAll()})}]),e.controller("EmpDocTypeReportCont",["$scope","$state","$rootScope","$timeout","gettextCatalog","$http","ENV",function(o,e,t,a,s,n,i){o.temp={},o.detailsField=!0,o.hideprintpdf=!1,o.pagesize="30",o.pageindex="0",o.pager=!0,o.mom_end_date_check=!0,o.mom_start_date_check=!0,o.temp={};var d=(c=new Date).getDate(),r=c.getMonth()+1,c=(c.getFullYear(),o.mom_start_date="",o.mom_end_date="",$(function(){$("#bell_box").multipleSelect({width:"100%"}),$("#teacher_box").multipleSelect({width:"100%",filter:!0})}),new Date);(d=c.getDate())<10&&(d="0"+d);(r=c.getMonth()+1)<10&&(r="0"+r);var m=c.getFullYear();o.sdate=d+"-"+r+"-"+m,o.edate=d+"-"+r+"-"+m,o.mom_start_date=d+"-"+r+"-"+m,o.mom_end_date=d+"-"+r+"-"+m,$(function(){$("#chkmarks").click(function(){$(this).is(":checked")?($("#fdate").attr("disabled","disabled"),o.mom_start_date=""):($("#fdate").removeAttr("disabled"),$("#fdate").focus(),o.mom_start_date=d+"-"+r+"-"+m)})}),1==o.mom_start_date_check?o.mom_start_date="":o.mom_start_date=d+"-"+r+"-"+m,$(function(){$("#chkmarks1").click(function(){$(this).is(":checked")?($("#fdate").attr("disabled","disabled"),o.mom_end_date=""):($("#fdate").removeAttr("disabled"),$("#fdate").focus(),o.mom_end_date=d+"-"+r+"-"+m)})}),1==o.mom_end_date_check?o.mom_end_date="":o.mom_end_date=d+"-"+r+"-"+m,o.size=function(e){"All"==e?(o.currentPage="1",o.filteredTodos=o.todos,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,console.log("currentPage="+o.currentPage),o.makeTodos(),o.chk={},o.chk.chk_all=!1,o.row1=""},o.filteredTodos=[],o.currentPage=1,o.numPerPage=30,o.maxSize=100,o.makeTodos=function(){var e,t;"All"==o.pagesize?(o.currentPage=1,o.showPager=!1,o.filteredTodos=o.report_data):(e=parseInt(o.totalItems%o.numPerPage),o.pagersize="0"==e?parseInt(o.totalItems/o.numPerPage):parseInt(o.totalItems/o.numPerPage)+1,e=(o.currentPage-1)*o.numPerPage,t=parseInt(e)+parseInt(o.numPerPage),console.log("begin="+e),console.log("end="+t),o.filteredTodos=o.todos.slice(e,t))},n.get(i.apiUrl+"api/common/getCompanyName").then(function(e){o.CompanyName_Data=e.data}),n.get(i.apiUrl+"api/empleavesum/getDocStatus").then(function(e){o.report_for=e.data,o.temp.comn_appl_parameter=o.report_for[0].comn_appl_parameter}),o.get_dept_name=function(e){n.get(i.apiUrl+"api/empleavesum/getDep?comp_code="+o.temp.pc_company_code).then(function(e){o.dep_data=e.data,setTimeout(function(){$("#dep_data").change(function(){console.log($(this).val())}).multipleSelect({width:"100%"})},1e3)})},o.get_desg_name=function(e){n.get(i.apiUrl+"api/empleavesum/getDesignation?comp_code="+o.temp.pc_company_code).then(function(e){o.desg_data=e.data,setTimeout(function(){$("#desg_data").change(function(){console.log($(this).val())}).multipleSelect({width:"100%"})},1e3)})},n.get(i.apiUrl+"api/empleavesum/getDocType").then(function(e){o.doc_data=e.data,setTimeout(function(){$("#doc_data").change(function(){console.log($(this).val())}).multipleSelect({width:"100%"})},1e3)}),o.getdetails=function(){o.colsvis=!1,n.get(i.apiUrl+"api/empleavesum/getdoclist?comp_code="+o.temp.pc_company_code+"&dept_code="+o.temp.codp_dept_no+"&desg_code="+o.temp.dg_code+"&doc_type="+o.temp.pays_doc_code+"&report_param="+o.temp.comn_appl_parameter).then(function(e){0"+e+''+t+""),s.close(),a.focus(),o.detailsField=!1,o.colsvis=!1,o.getsubdetail())})},o.reset_data=function(){o.temp.sims_grade_code="";try{$("#cmb_grade_code").multipleSelect("uncheckAll")}catch(e){}try{$("#cmb_section_code").multipleSelect("uncheckAll")}catch(e){}o.temp.sims_section_code="",o.filteredTodos=[]},o.ischeck=function(){o.checklick=function(){var e=document.getElementById("expire");1==e.checked&&e.checked}}}])}(),function(){"use strict";var e=angular.module("sims.module.Collaboration");e.run(["$rootScope","$templateCache",function(e,t){e.$on("$viewContentLoaded",function(){t.removeAll()})}]),e.controller("CircularReportByDateCont",["$scope","$state","$rootScope","$timeout","gettextCatalog","$http","ENV",function(o,e,t,a,s,n,i){o.temp={},o.detailsField=!0,o.hideprintpdf=!1,o.pagesize="30",o.pageindex="0",o.pager=!0,o.mom_end_date_check=!0,o.mom_start_date_check=!0,o.temp={};var d=(c=new Date).getDate(),r=c.getMonth()+1,c=(c.getFullYear(),o.mom_start_date="",o.mom_end_date="",$(function(){$("#bell_box").multipleSelect({width:"100%"}),$("#teacher_box").multipleSelect({width:"100%",filter:!0})}),new Date);(d=c.getDate())<10&&(d="0"+d);(r=c.getMonth()+1)<10&&(r="0"+r);var m=c.getFullYear();o.sdate=d+"-"+r+"-"+m,o.edate=d+"-"+r+"-"+m,o.mom_start_date=d+"-"+r+"-"+m,o.mom_end_date=d+"-"+r+"-"+m,$(function(){$("#chkmarks").click(function(){$(this).is(":checked")?($("#fdate").attr("disabled","disabled"),o.mom_start_date=""):($("#fdate").removeAttr("disabled"),$("#fdate").focus(),o.mom_start_date=d+"-"+r+"-"+m)})}),1==o.mom_start_date_check?o.mom_start_date="":o.mom_start_date=d+"-"+r+"-"+m,$(function(){$("#chkmarks1").click(function(){$(this).is(":checked")?($("#fdate").attr("disabled","disabled"),o.mom_end_date=""):($("#fdate").removeAttr("disabled"),$("#fdate").focus(),o.mom_end_date=d+"-"+r+"-"+m)})}),1==o.mom_end_date_check?o.mom_end_date="":o.mom_end_date=d+"-"+r+"-"+m,o.size=function(e){"All"==e?(o.currentPage="1",o.filteredTodos=o.todos,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,console.log("currentPage="+o.currentPage),o.makeTodos(),o.chk={},o.chk.chk_all=!1,o.row1=""},o.filteredTodos=[],o.currentPage=1,o.numPerPage=30,o.maxSize=100,o.makeTodos=function(){var e,t;"All"==o.pagesize?(o.currentPage=1,o.showPager=!1,o.filteredTodos=o.report_data):(e=parseInt(o.totalItems%o.numPerPage),o.pagersize="0"==e?parseInt(o.totalItems/o.numPerPage):parseInt(o.totalItems/o.numPerPage)+1,e=(o.currentPage-1)*o.numPerPage,t=parseInt(e)+parseInt(o.numPerPage),console.log("begin="+e),console.log("end="+t),o.filteredTodos=o.todos.slice(e,t))},n.get(i.apiUrl+"api/common/getCuriculum").then(function(e){o.cur_data=e.data,o.temp.sims_cur_code=o.cur_data[0].sims_cur_code,o.getAcademic_year(o.cur_data[0].sims_cur_code)}),o.getAcademic_year=function(e){n.get(i.apiUrl+"api/common/getAcademicYear?curCode="+e).then(function(e){o.acad_data=e.data,o.temp.sims_academic_year=o.acad_data[0].sims_academic_year,o.getGrade(o.temp.sims_cur_code,o.temp.sims_academic_year)})},o.getdetails=function(){o.colsvis=!1,n.get(i.apiUrl+"api/cirulardate/getdate?cur_code="+o.temp.sims_cur_code+"&acad_year="+o.temp.sims_academic_year+"&st_date="+o.mom_start_date+"&end_date="+o.mom_end_date).then(function(e){0"+e+''+t+""),s.close(),a.focus(),o.detailsField=!1,o.colsvis=!1,o.getsubdetail())}),o.getdetails()},o.reset_data=function(){o.temp.sims_grade_code="",o.filteredTodos=[],o.pager=!1,o.mom_start_date=d+"-"+r+"-"+m,o.mom_end_date=d+"-"+r+"-"+m;try{$("#cmb_grade_code").multipleSelect("uncheckAll")}catch(e){}try{$("#cmb_section_code").multipleSelect("uncheckAll")}catch(e){}o.temp.sims_section_code="",o.filteredTodos=[]},o.ischeck=function(){o.checklick=function(){var e=document.getElementById("expire");1==e.checked&&e.checked}}}])}(),function(){"use strict";var e=angular.module("sims.module.Collaboration");e.run(["$rootScope","$templateCache",function(e,t){e.$on("$viewContentLoaded",function(){t.removeAll()})}]),e.controller("CircularReportByUserCont",["$scope","$state","$rootScope","$timeout","gettextCatalog","$http","ENV",function(o,e,t,a,s,n,i){o.temp={},o.detailsField=!0,o.hideprintpdf=!1,o.pagesize="30",o.pageindex="0",o.temp={};var d=(c=new Date).getDate(),r=c.getMonth()+1,c=(c.getFullYear(),o.mom_start_date="",o.mom_end_date="",$(function(){$("#bell_box").multipleSelect({width:"100%"}),$("#teacher_box").multipleSelect({width:"100%",filter:!0})}),new Date);(d=c.getDate())<10&&(d="0"+d);(r=c.getMonth()+1)<10&&(r="0"+r);var m=c.getFullYear();o.sdate=d+"-"+r+"-"+m,o.edate=d+"-"+r+"-"+m,o.mom_start_date=d+"-"+r+"-"+m,o.mom_end_date=d+"-"+r+"-"+m,$(function(){$("#chkmarks").click(function(){$(this).is(":checked")?($("#fdate").attr("disabled","disabled"),o.mom_start_date=""):($("#fdate").removeAttr("disabled"),$("#fdate").focus(),o.mom_start_date=d+"-"+r+"-"+m)})}),1==o.mom_start_date_check?o.mom_start_date="":o.mom_start_date=d+"-"+r+"-"+m,$(function(){$("#chkmarks1").click(function(){$(this).is(":checked")?($("#fdate").attr("disabled","disabled"),o.mom_end_date=""):($("#fdate").removeAttr("disabled"),$("#fdate").focus(),o.mom_end_date=d+"-"+r+"-"+m)})}),1==o.mom_end_date_check?o.mom_end_date="":o.mom_end_date=d+"-"+r+"-"+m,o.size=function(e){"All"==e?(o.currentPage="1",o.filteredTodos=o.todos,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,console.log("currentPage="+o.currentPage),o.makeTodos(),o.chk={},o.chk.chk_all=!1,o.row1=""},o.filteredTodos=[],o.currentPage=1,o.numPerPage=30,o.maxSize=100,o.makeTodos=function(){var e,t;"All"==o.pagesize?(o.currentPage=1,o.showPager=!1,o.filteredTodos=o.report_data):(e=parseInt(o.totalItems%o.numPerPage),o.pagersize="0"==e?parseInt(o.totalItems/o.numPerPage):parseInt(o.totalItems/o.numPerPage)+1,e=(o.currentPage-1)*o.numPerPage,t=parseInt(e)+parseInt(o.numPerPage),console.log("begin="+e),console.log("end="+t),o.filteredTodos=o.todos.slice(e,t))},n.get(i.apiUrl+"api/common/getCuriculum").then(function(e){o.cur_data=e.data,o.temp.sims_cur_code=o.cur_data[0].sims_cur_code}),n.get(i.apiUrl+"api/cirulardate/getuser").then(function(e){o.report_for=e.data,o.temp.comn_user_group_code=o.report_for[0].comn_user_group_code}),n.get(i.apiUrl+"api/cirulardate/getstatus").then(function(e){o.status_for=e.data,o.temp.comn_appl_parameter=o.status_for[0].comn_appl_parameter}),o.getdetails=function(){o.colsvis=!1,n.get(i.apiUrl+"api/cirulardate/getcircularbyuser?cur_code="+o.temp.sims_cur_code+"&from_date="+o.mom_start_date+"&to_date="+o.mom_end_date+"&group_code="+o.temp.comn_user_group_code+"&status="+o.temp.comn_appl_parameter).then(function(e){0"+e+''+t+""),s.close(),a.focus(),o.detailsField=!1,o.colsvis=!1,o.getsubdetail()),o.getdetails()})},o.reset_data=function(){o.temp.sims_grade_code="",o.filteredTodos=[],o.pager=!1;try{$("#cmb_grade_code").multipleSelect("uncheckAll")}catch(e){}try{$("#cmb_section_code").multipleSelect("uncheckAll")}catch(e){}o.temp.sims_section_code="",o.filteredTodos=[]},o.ischeck=function(){o.checklick=function(){var e=document.getElementById("expire");1==e.checked&&e.checked}},o.getdetails()}])}(),function(){"use strict";var e=angular.module("sims.module.Library");e.run(["$rootScope","$templateCache",function(e,t){e.$on("$viewContentLoaded",function(){t.removeAll()})}]),e.controller("ItemHistoryReportCont",["$scope","$state","$rootScope","$timeout","gettextCatalog","$http","ENV",function(o,e,t,a,s,n,i){o.temp={},o.detailsField=!0,o.hideprintpdf=!1,o.pagesize="30",o.pageindex="0",o.pager=!0,o.mom_end_date_check=!0,o.mom_start_date_check=!0,o.temp={};var d=(c=new Date).getDate(),r=c.getMonth()+1,c=(c.getFullYear(),o.mom_start_date="",o.mom_end_date="",$(function(){$("#bell_box").multipleSelect({width:"100%"}),$("#teacher_box").multipleSelect({width:"100%",filter:!0})}),new Date);(d=c.getDate())<10&&(d="0"+d);(r=c.getMonth()+1)<10&&(r="0"+r);var m=c.getFullYear();o.sdate=d+"-"+r+"-"+m,o.edate=d+"-"+r+"-"+m,o.mom_start_date=d+"-"+r+"-"+m,o.mom_end_date=d+"-"+r+"-"+m,$(function(){$("#chkmarks").click(function(){$(this).is(":checked")?($("#fdate").attr("disabled","disabled"),o.mom_start_date=""):($("#fdate").removeAttr("disabled"),$("#fdate").focus(),o.mom_start_date=d+"-"+r+"-"+m)})}),1==o.mom_start_date_check?o.mom_start_date="":o.mom_start_date=d+"-"+r+"-"+m,$(function(){$("#chkmarks1").click(function(){$(this).is(":checked")?($("#fdate").attr("disabled","disabled"),o.mom_end_date=""):($("#fdate").removeAttr("disabled"),$("#fdate").focus(),o.mom_end_date=d+"-"+r+"-"+m)})}),1==o.mom_end_date_check?o.mom_end_date="":o.mom_end_date=d+"-"+r+"-"+m,o.size=function(e){"All"==e?(o.currentPage="1",o.filteredTodos=o.todos,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,console.log("currentPage="+o.currentPage),o.makeTodos(),o.chk={},o.chk.chk_all=!1,o.row1=""},o.filteredTodos=[],o.currentPage=1,o.numPerPage=30,o.maxSize=100,o.makeTodos=function(){var e,t;"All"==o.pagesize?(o.currentPage=1,o.showPager=!1,o.filteredTodos=o.report_data):(e=parseInt(o.totalItems%o.numPerPage),o.pagersize="0"==e?parseInt(o.totalItems/o.numPerPage):parseInt(o.totalItems/o.numPerPage)+1,e=(o.currentPage-1)*o.numPerPage,t=parseInt(e)+parseInt(o.numPerPage),console.log("begin="+e),console.log("end="+t),o.filteredTodos=o.todos.slice(e,t))},n.get(i.apiUrl+"api/common/getCuriculum").then(function(e){o.cur_data=e.data,o.temp.sims_cur_code=o.cur_data[0].sims_cur_code}),o.getdetails=function(){o.colsvis=!1,n.get(i.apiUrl+"api/libhistory/gethistory?cur_code="+o.temp.sims_cur_code+"&from_date="+o.mom_start_date+"&to_date="+o.mom_end_date).then(function(e){0"+e+''+t+""),s.close(),a.focus(),o.detailsField=!1,o.colsvis=!1,o.getsubdetail())})},o.reset_data=function(){o.temp.sims_grade_code="";try{$("#cmb_grade_code").multipleSelect("uncheckAll")}catch(e){}try{$("#cmb_section_code").multipleSelect("uncheckAll")}catch(e){}o.temp.sims_section_code="",o.filteredTodos=[]},o.ischeck=function(){o.checklick=function(){var e=document.getElementById("expire");1==e.checked&&e.checked}}}])}(),function(){"use strict";var e=angular.module("sims.module.Library");e.run(["$rootScope","$templateCache",function(e,t){e.$on("$viewContentLoaded",function(){t.removeAll()})}]),e.controller("LibraryTransactionDetailReportCont",["$scope","$state","$rootScope","$timeout","gettextCatalog","$http","ENV",function(o,e,t,a,s,n,i){o.temp={},o.detailsField=!0,o.hideprintpdf=!1,o.pagesize="30",o.pageindex="0",o.pager=!0,o.temp={};var d=(c=new Date).getDate(),r=c.getMonth()+1,c=(c.getFullYear(),o.mom_start_date="",o.mom_end_date="",$(function(){$("#bell_box").multipleSelect({width:"100%"}),$("#teacher_box").multipleSelect({width:"100%",filter:!0})}),new Date);(d=c.getDate())<10&&(d="0"+d);(r=c.getMonth()+1)<10&&(r="0"+r);var m=c.getFullYear();o.sdate=d+"-"+r+"-"+m,o.edate=d+"-"+r+"-"+m,o.mom_start_date=d+"-"+r+"-"+m,o.mom_end_date=d+"-"+r+"-"+m,$(function(){$("#chkmarks").click(function(){$(this).is(":checked")?($("#fdate").attr("disabled","disabled"),o.mom_start_date=""):($("#fdate").removeAttr("disabled"),$("#fdate").focus(),o.mom_start_date=d+"-"+r+"-"+m)})}),1==o.mom_start_date_check?o.mom_start_date="":o.mom_start_date=d+"-"+r+"-"+m,$(function(){$("#chkmarks1").click(function(){$(this).is(":checked")?($("#fdate").attr("disabled","disabled"),o.mom_end_date=""):($("#fdate").removeAttr("disabled"),$("#fdate").focus(),o.mom_end_date=d+"-"+r+"-"+m)})}),1==o.mom_end_date_check?o.mom_end_date="":o.mom_end_date=d+"-"+r+"-"+m,o.size=function(e){"All"==e?(o.currentPage="1",o.filteredTodos=o.todos,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,console.log("currentPage="+o.currentPage),o.makeTodos(),o.chk={},o.chk.chk_all=!1,o.row1=""},o.filteredTodos=[],o.currentPage=1,o.numPerPage=30,o.maxSize=100,o.makeTodos=function(){var e,t;"All"==o.pagesize?(o.currentPage=1,o.showPager=!1,o.filteredTodos=o.report_data):(e=parseInt(o.totalItems%o.numPerPage),o.pagersize="0"==e?parseInt(o.totalItems/o.numPerPage):parseInt(o.totalItems/o.numPerPage)+1,e=(o.currentPage-1)*o.numPerPage,t=parseInt(e)+parseInt(o.numPerPage),console.log("begin="+e),console.log("end="+t),o.filteredTodos=o.todos.slice(e,t))},n.get(i.apiUrl+"api/common/getCuriculum").then(function(e){o.cur_data=e.data,o.temp.sims_cur_code=o.cur_data[0].sims_cur_code}),n.get(i.apiUrl+"api/libhistory/getTranStatus").then(function(e){o.status_for=e.data,o.temp.sims_appl_parameter=o.status_for[0].sims_appl_parameter}),o.getdetails=function(){o.colsvis=!1,n.get(i.apiUrl+"api/libhistory/gettrans?cur_code="+o.temp.sims_cur_code+"&date="+o.mom_start_date+"&transaction_status="+o.temp.sims_appl_parameter).then(function(e){0"+e+''+t+""),s.close(),a.focus(),o.detailsField=!1,o.colsvis=!1,o.getsubdetail())})},o.reset_data=function(){o.temp.sims_grade_code="";try{$("#cmb_grade_code").multipleSelect("uncheckAll")}catch(e){}try{$("#cmb_section_code").multipleSelect("uncheckAll")}catch(e){}o.temp.sims_section_code="",o.filteredTodos=[]},o.ischeck=function(){o.checklick=function(){var e=document.getElementById("expire");1==e.checked&&e.checked}}}])}(),function(){"use strict";var e=angular.module("sims.module.Library");e.run(["$rootScope","$templateCache",function(e,t){e.$on("$viewContentLoaded",function(){t.removeAll()})}]),e.controller("LibMembershipByUserReportCont",["$scope","$state","$rootScope","$timeout","gettextCatalog","$http","ENV",function(o,e,t,a,s,n,i){o.temp={},o.detailsField=!0,o.hideprintpdf=!1,o.pagesize="30",o.pageindex="0",o.pager=!0,o.temp={};var d=(c=new Date).getDate(),r=c.getMonth()+1,c=(c.getFullYear(),o.mom_start_date="",o.mom_end_date="",$(function(){$("#bell_box").multipleSelect({width:"100%"}),$("#teacher_box").multipleSelect({width:"100%",filter:!0})}),new Date);(d=c.getDate())<10&&(d="0"+d);(r=c.getMonth()+1)<10&&(r="0"+r);var m=c.getFullYear();o.sdate=d+"-"+r+"-"+m,o.edate=d+"-"+r+"-"+m,o.mom_start_date=d+"-"+r+"-"+m,o.mom_end_date=d+"-"+r+"-"+m,$(function(){$("#chkmarks").click(function(){$(this).is(":checked")?($("#fdate").attr("disabled","disabled"),o.mom_start_date=""):($("#fdate").removeAttr("disabled"),$("#fdate").focus(),o.mom_start_date=d+"-"+r+"-"+m)})}),1==o.mom_start_date_check?o.mom_start_date="":o.mom_start_date=d+"-"+r+"-"+m,$(function(){$("#chkmarks1").click(function(){$(this).is(":checked")?($("#fdate").attr("disabled","disabled"),o.mom_end_date=""):($("#fdate").removeAttr("disabled"),$("#fdate").focus(),o.mom_end_date=d+"-"+r+"-"+m)})}),1==o.mom_end_date_check?o.mom_end_date="":o.mom_end_date=d+"-"+r+"-"+m,o.size=function(e){"All"==e?(o.currentPage="1",o.filteredTodos=o.todos,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,console.log("currentPage="+o.currentPage),o.makeTodos(),o.chk={},o.chk.chk_all=!1,o.row1=""},o.filteredTodos=[],o.currentPage=1,o.numPerPage=30,o.maxSize=100,o.makeTodos=function(){var e,t;"All"==o.pagesize?(o.currentPage=1,o.showPager=!1,o.filteredTodos=o.report_data):(e=parseInt(o.totalItems%o.numPerPage),o.pagersize="0"==e?parseInt(o.totalItems/o.numPerPage):parseInt(o.totalItems/o.numPerPage)+1,e=(o.currentPage-1)*o.numPerPage,t=parseInt(e)+parseInt(o.numPerPage),console.log("begin="+e),console.log("end="+t),o.filteredTodos=o.todos.slice(e,t))},n.get(i.apiUrl+"api/common/getCuriculum").then(function(e){o.cur_data=e.data,o.temp.sims_cur_code=o.cur_data[0].sims_cur_code}),n.get(i.apiUrl+"api/libhistory/getgroup").then(function(e){o.group_for=e.data,o.temp.comn_user_group_code=o.group_for[0].comn_user_group_code,o.get_user_group(o.cur_data[0].sims_cur_code,o.group_for[0].comn_user_group_code)}),o.get_user_group=function(e,t){n.get(i.apiUrl+"api/libhistory/getprivilege?cur_code="+o.temp.sims_cur_code+"&user_code="+o.temp.comn_user_group_code).then(function(e){o.privilege_for=e.data,setTimeout(function(){$("#privilege_for").change(function(){console.log($(this).val())}).multipleSelect({width:"100%"})},1e3)})},o.getdetails=function(){o.colsvis=!1,n.get(i.apiUrl+"api/libhistory/getMembership?cur_code="+o.temp.sims_cur_code+"&user_group="+o.temp.comn_user_group_code+"&previlige_type="+o.temp.sims_library_membership_type).then(function(e){0"+e+''+t+""),s.close(),a.focus(),o.detailsField=!1,o.colsvis=!1,o.getsubdetail())})},o.reset_data=function(){o.temp.sims_grade_code="";try{$("#cmb_grade_code").multipleSelect("uncheckAll")}catch(e){}try{$("#cmb_section_code").multipleSelect("uncheckAll")}catch(e){}o.temp.sims_section_code="",o.filteredTodos=[]},o.ischeck=function(){o.checklick=function(){var e=document.getElementById("expire");1==e.checked&&e.checked}}}])}(),function(){"use strict";var e=angular.module("sims.module.Gradebook");e.run(["$rootScope","$templateCache",function(e,t){e.$on("$viewContentLoaded",function(){t.removeAll()})}]),e.controller("targetGradeIhsCont",["$scope","$compile","$state","$rootScope","$timeout","gettextCatalog","$locale","$http","ENV","XLSXReaderService","$filter","$sce",function(s,e,t,o,n,a,_,i,d,r,c,m){s.showData=!0,s.getCurriculum=function(){i.get(d.apiUrl+"api/common/getCuriculum").then(function(e){e.data&&(s.Allcurriculum=e.data,s.cur_code=s.Allcurriculum[0].sims_cur_code,s.getAcademicYear())})},s.getAcademicYear=function(){i.get(d.apiUrl+"api/common/getAcademicYear?curCode="+s.cur_code).then(function(e){e.data&&(s.AllAcademicYear=e.data,s.aca_year=s.AllAcademicYear[0].sims_academic_year,s.getAllGrade())})},s.academicYearChange=function(){s.getAllGrade()},$(function(){$("#cmb_section_code").multipleSelect({width:"100%"})}),s.getAllGrade=function(e){s.sims_grade="",s.sims_section="",s.sims_subject={};s.showData=!0;var t={opr:"A",cur_code:s.cur_code,aca_year:s.aca_year,user:o.globals.currentUser.username,sims_type:"M"};i.post(d.apiUrl+"api/MarksEntryNew/MarksEntryCommon",t).then(function(e){0=parseFloat(74.5)?parseFloat(s.old_more_expected)>=parseFloat(74.5)?s.old_rating="OUTSTANDING":parseFloat(s.old_more_expected)>=parseFloat(60.5)?s.old_rating="VERY GOOD":parseFloat(s.old_more_expected)>=parseFloat(49.5)?s.old_rating="GOOD":s.old_rating="ACCEPTABLE":s.old_rating="WEAK",parseFloat(s.expected)>=parseFloat(74.5)?parseFloat(s.more_expected)>=parseFloat(74.5)?s.rating="OUTSTANDING":parseFloat(s.more_expected)>=parseFloat(60.5)?s.rating="VERY GOOD":parseFloat(s.more_expected)>=parseFloat(49.5)?s.rating="GOOD":s.rating="ACCEPTABLE":s.rating="WEAK",parseFloat(s.expected_std)>=parseFloat(74.5)?parseFloat(s.more_expected_std)>=parseFloat(74.5)?s.rating_std="OUTSTANDING":parseFloat(s.more_expected_std)>=parseFloat(60.5)?s.rating_std="VERY GOOD":parseFloat(s.more_expected_std)>=parseFloat(49.5)?s.rating_std="GOOD":s.rating_std="ACCEPTABLE":s.rating_std="WEAK",n(function(){$("#fixTable").tableHeadFixer({top:1})},200)})})},s.SaveDataTarget=function(){var e,t=[];for(e of s.AllTableData){var a={opr:"I",cur_code:s.cur_code,aca_year:s.aca_year,grade_code:s.sims_grade,section_code:s.sims_section,subject_code:s.sims_subject.sims_subject_code,term_code:"1",sims_enroll_number:e.sims_enroll_number,sims_mark_grade_code:e.targeted_grade_code,sims_grade_scale_code:"0001",sims_report_card_att1:e.targeted_mark,sims_report_card_att2:void 0,sims_report_card_att3:e.sims_percentage,sims_report_card_student_target_status:"A",sims_comment1_desc:e.sims_comment1_desc,sims_user:o.globals.currentUser.username,term_code_n:"1",sims_student_subject_term_avg:"",sims_student_subject_out_of:"",sims_student_subject_term_comment:"",sims_student_overall_flg:!0===s.overallflg?"Y":"N",sims_student_overall_mark:(s.overallflg,"")};t.push(a)}i.post(d.apiUrl+"api/MarksEntryNew/MarksEntryTargetGradeSave",t).then(function(e){e.data&&swal({title:"Alert",text:"Data Saved Successfully",imageUrl:"assets/img/check.png",width:300,height:200})})},s.getCurriculum()}])}(),function(){"use strict";var e=angular.module("sims.module.Student");e.run(["$rootScope","$templateCache",function(e,t){e.$on("$viewContentLoaded",function(){t.removeAll()})}]),e.controller("Admisison_EntryCont",["$scope","$state","$rootScope","$timeout","gettextCatalog","$http","ENV",function(a,e,t,s,o,n,_){a.edt={},a.save_btn_disable=!1,n.get(_.apiUrl+"api/common/ProspectDashboard/GetAcademicYear").then(function(e){a.academicYears=e.data,a.edt.academic_year=e.data[0].academic_year}),n.get("https://oa.mograsys.com/"+n.defaults.headers.common.schoolId+"/api/common/Admission/Get_Course").then(function(e){a.course_lst=e.data}),a.RegisterUser=function(e,t){t&&(a.save_btn_disable=!0,n.post(_.apiUrl+"api/common/ProspectDashboard/AddEnquiryNew",e).success(function(e){a.p_data=e,a.p_data?(a.edt={},swal({title:"Registered Successfully",text:"Email sent to registered email address. ",imageUrl:"assets/img/check.png",width:376,height:100}),a.save_btn_disable=!1,a.myForm.$setPristine(),a.myForm.$setUntouched()):(swal({title:"Alert",text:" Not Registered",imageUrl:"assets/img/notification-alert.png",width:380}),a.save_btn_disable=!1)}))},a.mobile_change=function(){a.p_data={},a.p_data.father_mobile=a.edt.mobile,n.post("https://oa.mograsys.com/"+n.defaults.headers.common.schoolId+"/api/Comn/CheckMobileID",a.p_data).then(function(e){"true"==e.data?(a.edt.mobile="",swal({title:"Alert",text:"Mobile No already registered",width:380,imageUrl:"assets/img/notification-alert.png"})):e.data})},a.getEmailId=function(){a.p_data={},a.p_data.sims_admission_parent_email=a.edt.email,null==a.p_data.sims_admission_parent_email&&""==a.p_data.sims_admission_parent_email||n.post("https://oa.mograsys.com/"+n.defaults.headers.common.schoolId+"/api/Comn/CheckEmailID",a.p_data).then(function(e){"true"==e.data?(a.edt.email="",swal({title:"Alert",text:"Email address already exist",width:380,imageUrl:"assets/img/notification-alert.png"})):e.data,t.BUSY.IsBusy=!1},function(e){})}}])}(),function(){"use strict";angular.module("sims.module.Gradebook").controller("SENApplicationCont",["$scope","$state","$rootScope","$timeout","gettextCatalog","$http","ENV","$location","$anchorScroll","AuthenticationService","commonFunctionsService",function(s,e,t,a,o,n,_,i,d,r,c){s.collapseBoth=c.collapseBoth,s.image=!0,s.grid1=!1;n.post(_.apiUrl+"api/ReportCardApprove/AllGetCommonSen",{opr:"A"}).then(function(e){0=parseFloat(t.check_lst[s].sims_health_parameter_check_min_value)&&parseFloat(t.sims_health_camp_parameter_check_value)<=parseFloat(t.check_lst[s].sims_health_parameter_check_max_value)){$("#"+t.sims_health_parameter_code+s).hide();break}$("#"+t.sims_health_parameter_code+s).show(),t.minval=parseFloat(t.check_lst[s].sims_health_parameter_check_min_value),t.maxval=parseFloat(t.check_lst[s].sims_health_parameter_check_max_value);break}}}])}(),function(){"use strict";var e=angular.module("sims.module.Health");e.run(["$rootScope","$templateCache",function(e,t){e.$on("$viewContentLoaded",function(){t.removeAll()})}]),e.controller("campFileUploadCont",["$scope","$state","$rootScope","$timeout","gettextCatalog","$http","ENV",function(_,e,i,t,a,o,n){_.temp={},_.edt={};i.globals.currentUser.username;_.expand_object=!1;var s=("0"+(s=new Date).getDate()).slice(-2)+"-"+("0"+(s.getMonth()+1)).slice(-2)+"-"+s.getFullYear(),d=(_.temp.to_date=s,_.temp.from_date=s,_.temp.issue_creation_date=s,_.hide_submit=!1,_.showDetails=!1,_.showStudDetails=!1,_.submitBtnDisabled=!1,_.hide_grid=!1,_.busyindicator=!0,_.hide_save=!0,_.loadingscr=!0,[]),r=(_.images=[],_.images_delete=[],""),c=(_.getcur=function(){o.get(n.apiUrl+"api/common/getCuriculum").then(function(e){_.curriculum=e.data,_.temp.sims_cur_code=_.curriculum[0].sims_cur_code,_.getAccYear(_.temp.sims_cur_code)})},_.getcur(),_.getAccYear=function(e){o.get(n.apiUrl+"api/common/getAcademicYear?curCode="+e).then(function(e){_.Acc_year=e.data,_.temp.sims_academic_year=_.Acc_year[0].sims_academic_year,_.getCampDetails()})},_.getCampDetails=function(){o.get(n.apiUrl+"api/CampTransaction/getCampNameForFileUpload?username="+i.globals.currentUser.username+"&cur_code="+_.temp.sims_cur_code+"&academic_year="+_.temp.sims_academic_year).then(function(e){_.campDetails=e.data})},_.getTestNames=function(e){_.showDetails=!0;e=JSON.parse(e);_.edt.sims_health_package_code=e.sims_health_package_code,_.edt.sims_health_camp_code=e.sims_health_camp_code,o.get(n.apiUrl+"api/CampTransaction/getTestName?package_code="+e.sims_health_package_code+"&camp_code="+e.sims_health_camp_code).then(function(e){_.testNames=e.data})},new FormData),m=(_.uploadImgCancel=function(){_.uploadImgClickFShow=!1,d=[],_.images=[]},_.getTheFiles=function(s){var o=0,n="no";angular.forEach(s,function(e,t){if(c.append(t,e),2097152o&&(s.s.r=o),s.s.c>n&&(s.s.c=n),s.e.rm.sectionlst1.section_strength?swal({title:"Alert",text:"Section Strength is Full.If You still want to Continue?",showCloseButton:!0,width:380}).then(function(e){e?m.adm_update():($("#cmb_section").css("background-color","#E5E9EC"),$('.nav-tabs a[href="#admtab1"]').tab("show"))}):m.adm_update())},m.adm_update=function(){null==m.edt.home_country_isdcode&&(m.edt.home_country_isdcode=""),null==m.edt.home_phone&&(m.edt.home_phone="");var e={admission_number:param,appl_num:m.edt.appl_num,pros_num:m.edt.pros_num,pros_appl_num:m.edt.pros_appl_num,admission_date:m.edt.admission_date,school_code:m.edt.school_code,curr_code:m.edt.curr_code,academic_year:m.edt.academic_year,grade_code:m.edt.grade_code,section_code:m.edt.section_code,term_code:m.edt.term_code,tent_join_date:m.edt.tent_join_date,sims_student_emergency_contact_number1:m.edt.sims_student_emergency_contact_number1,sims_student_emergency_contact_name1:m.edt.sims_student_emergency_contact_name1,first_name:m.edt.first_name,middle_name:m.edt.middle_name,last_name:m.edt.last_name,family_name:m.edt.family_name,first_name_ot:m.edt.first_name_ot,midd_name_ot:m.edt.midd_name_ot,last_name_ot:m.edt.last_name_ot,family_name_ot:m.edt.family_name_ot,nicke_name:m.edt.nicke_name,birth_date:m.edt.birth_date,comm_date:m.edt.comm_date,birth_country_code:m.edt.birth_country_code,nationality_code:m.edt.nationality_code,ethinicity_code:m.edt.ethinicity_code,gender_code:m.edt.gender_code,religion_code:m.edt.religion_code,passport_num:m.edt.passport_num,passport_issue_date:m.edt.passport_issue_date,passport_expiry:m.edt.passport_expiry,passport_issue_auth:m.edt.passport_issue_auth,passport_issue_place:m.edt.passport_issue_place,visa_number:m.edt.visa_number,visa_type:m.edt.visa_type,visa_issuing_authority:m.edt.visa_issuing_authority,visa_issue_date:m.edt.visa_issue_date,visa_expiry_date:m.edt.visa_expiry_date,visa_issuing_place:m.edt.visa_issuing_place,national_id:m.edt.national_id,national_id_issue_date:m.edt.national_id_issue_date,national_id_expiry_date:m.edt.national_id_expiry_date,sibling_status:m.edt.sibling_status,parent_id:m.edt.parent_id,sibling_enroll:m.edt.sibling_enroll,sibling_name:m.edt.sibling_name,sibling_dob:m.edt.sibling_dob,sibling_school_code:m.edt.sibling_school_code,employee_type:m.edt.employee_type,employee_code:m.edt.employee_code,employee_school_code:m.edt.employee_school_code,motherTounge_language_code:m.edt.motherTounge_language_code,main_language_code:m.edt.main_language_code,main_language_r_code:m.edt.main_language_r_code,main_language_w_code:m.edt.main_language_w_code,main_language_s_code:m.edt.main_language_s_code,primary_contact_code:m.edt.primary_contact_code,primary_contact_pref_code:m.edt.primary_contact_pref_code,fee_payment_contact_pref_code:m.edt.fee_payment_contact_pref_code,transport_statusnew:m.edt.transport_statusnew,transport_desc:m.edt.transport_desc,father_salutation_code:m.edt.father_salutation_code,father_first_name:m.edt.father_first_name,father_middle_name:m.edt.father_middle_name,father_last_name:m.edt.father_last_name,father_family_name:m.edt.father_family_name,father_family_name_ot:m.edt.father_family_name_ot,father_nationality1_code:m.edt.father_nationality1_code,father_nationality2_code:m.edt.father_nationality2_code,father_appartment_number:m.edt.father_appartment_number,father_building_number:m.edt.father_building_number,father_street_number:m.edt.father_street_number,father_area_number:m.edt.father_area_number,father_city:m.edt.father_city,father_state:m.edt.father_state,father_country_code:m.edt.father_country_code,father_summary_address:m.edt.father_summary_address,father_po_box:m.edt.father_po_box,father_phone:m.edt.father_phone,father_email:m.edt.father_email,father_mobile:m.edt.father_mobile,father_fax:m.edt.father_fax,father_occupation:m.edt.father_occupation,father_company:m.edt.father_company,father_passport_number:m.edt.father_passport_number,sims_admission_father_national_id:m.edt.sims_admission_father_national_id,guardian_salutation_code:m.edt.guardian_salutation_code,guardian_first_name:m.edt.guardian_first_name,guardian_middle_name:m.edt.guardian_middle_name,guardian_last_name:m.edt.guardian_last_name,guardian_family_name:m.edt.guardian_family_name,guardian_nationality1_code:m.edt.guardian_nationality1_code,guardian_nationality2_code:m.edt.guardian_nationality2_code,guardian_appartment_number:m.edt.guardian_appartment_number,guardian_building_number:m.edt.guardian_building_number,guardian_street_number:m.edt.guardian_street_number,guardian_area_number:m.edt.guardian_area_number,guardian_city:m.edt.guardian_city,guardian_state:m.edt.guardian_state,guardian_country_code:m.edt.guardian_country_code,guardian_summary_address:m.edt.guardian_summary_address,guardian_po_box:m.edt.guardian_po_box,guardian_phone:m.edt.guardian_phone,guardian_mobile:m.edt.guardian_mobile,guardian_fax:m.edt.guardian_fax,guardian_email:m.edt.guardian_email,guardian_occupation:m.edt.guardian_occupation,guardian_company:m.edt.guardian_company,guardian_passport_number:m.edt.guardian_passport_number,guardian_relationship_code:m.edt.guardian_relationship_code,mother_salutation_code:m.edt.mother_salutation_code,mother_first_name:m.edt.mother_first_name,mother_middle_name:m.edt.mother_middle_name,mother_last_name:m.edt.mother_last_name,mother_family_name:m.edt.mother_family_name,mother_name_ot:m.edt.mother_name_ot,mother_nationality1_code:m.edt.mother_nationality1_code,mother_nationality2_code:m.edt.mother_nationality2_code,mother_appartment_number:m.edt.mother_appartment_number,mother_building_number:m.edt.mother_building_number,mother_street_number:m.edt.mother_street_number,mother_area_number:m.edt.mother_area_number,mother_city:m.edt.mother_city,mother_state:m.edt.mother_state,mother_country_code:m.edt.mother_country_code,mother_summary_address:m.edt.mother_summary_address,mother_po_box:m.edt.mother_po_box,mother_phone:m.edt.mother_phone,mother_mobile:m.edt.mother_mobile,mother_fax:m.edt.mother_fax,mother_email:m.edt.mother_email,mother_occupation:m.edt.mother_occupation,mother_passport_number:m.edt.mother_passport_number,current_school_status:m.edt.current_school_status,current_school_name:m.edt.current_school_name,current_school_enroll_number:m.edt.current_school_enroll_number,current_school_grade:m.edt.current_school_grade,current_school_cur:m.edt.current_school_cur,current_school_from_date:m.edt.current_school_from_date,current_school_to_date:m.edt.current_school_to_date,current_school_language:m.edt.current_school_language,current_school_head_teacher:m.edt.current_school_head_teacher,current_school_phone:m.edt.current_school_phone,current_school_fax:m.edt.current_school_fax,current_school_city:m.edt.current_school_city,current_school_country_code:m.edt.current_school_country_code,current_school_address:m.edt.current_school_address,marketing_code:m.edt.marketing_code,marketing_description:m.edt.marketing_description,parent_status_code:m.edt.parent_status_code,legal_custody_code:m.edt.legal_custody_code,health_card_number:m.edt.health_card_number,health_card_issue_date:m.edt.health_card_issue_date,health_card_issuing_authority:m.edt.health_card_issuing_authority,blood_group_code:m.edt.blood_group_code,medication_status:m.edt.medication_status,medication_desc:m.edt.medication_desc,disability_status:m.edt.disability_status,disability_desc:m.edt.disability_desc,behaviour_status:m.edt.behaviour_status,behaviour_desc:m.edt.behaviour_desc,health_restriction_status:m.edt.health_restriction_status,health_restriction_desc:m.edt.health_restriction_desc,health_hearing_status:m.edt.health_hearing_status,health_hearing_desc:m.edt.health_hearing_desc,health_vision_status:m.edt.health_vision_status,health_vision_desc:m.edt.health_vision_desc,health_other_status:m.edt.health_other_status,health_other_desc:m.edt.health_other_desc,gifted_status:m.edt.gifted_status,gifted_desc:m.edt.gifted_desc,music_status:m.edt.music_status,music_desc:m.edt.music_desc,sports_status:m.edt.sports_status,sports_desc:m.edt.sports_desc,language_support_status:m.edt.language_support_status,language_support_desc:m.edt.language_support_desc,declaration_status:m.edt.declaration_status,fees_paid_status:m.edt.fees_paid_status,fee_category_code:m.edt.fee_category_code,ip:m.edt.ip,dns:m.edt.dns,user_code:m.edt.user_code,status:m.edt.status,sims_student_attribute1:m.edt.sims_student_attribute1,sims_student_attribute2:m.edt.sims_student_attribute2,sims_student_attribute3:m.edt.sims_student_attribute3,sims_student_attribute4:m.edt.sims_student_attribute4,sims_student_health_respiratory_status:m.edt.sims_student_health_respiratory_status,sims_student_health_respiratory_desc:m.edt.sims_student_health_respiratory_desc,sims_student_health_hay_fever_status:m.edt.sims_student_health_hay_fever_status,sims_student_health_hay_fever_desc:m.edt.sims_student_health_hay_fever_desc,sims_student_health_epilepsy_status:m.edt.sims_student_health_epilepsy_status,sims_student_health_epilepsy_desc:m.edt.sims_student_health_epilepsy_desc,sims_student_health_skin_status:m.edt.sims_student_health_skin_status,sims_student_health_skin_desc:m.edt.sims_student_health_skin_desc,sims_student_health_diabetes_status:m.edt.sims_student_health_diabetes_status,sims_student_health_diabetes_desc:m.edt.sims_student_health_diabetes_desc,sims_student_health_surgery_status:m.edt.sims_student_health_surgery_status,sims_student_health_surgery_desc:m.edt.sims_student_health_surgery_desc,sims_admission_recommendation:m.edt.sims_admission_recommendation,sims_admission_mother_national_id:m.edt.sims_admission_mother_national_id,sims_admission_guardian_national_id:m.edt.sims_admission_guardian_national_id,sims_fee_month_code:m.edt.sims_fee_month_code,sims_student_attribute5:m.edt.sims_student_attribute5,sims_student_attribute6:m.edt.sims_student_attribute6,sims_student_attribute7:m.edt.sims_student_attribute7,sims_student_attribute8:m.edt.sims_student_attribute8,sims_student_attribute9:m.edt.sims_student_attribute9,sims_student_attribute10:m.edt.sims_student_attribute10,sims_student_attribute11:m.edt.sims_student_attribute11,sims_student_attribute12:m.edt.sims_student_attribute12,sims_admission_second_lang_code:m.edt.sims_admission_second_lang_code,sims_admission_third_lang_code:m.edt.sims_admission_third_lang_code,sims_admission_subject_code:m.edt.sims_admission_second_lang_code+","+m.edt.sims_admission_third_lang_code};n.push(e),l.post(u.apiUrl+"api/common/Admission_dpsd/ApproveStudent",n).then(function(e){m.display=!0,m.msg1=e.data}),m.grid1=!0,$("#myModal1").modal({backdrop:"static",keyboard:!0})},m.get_studentfee=function(){a.go("main.Sim043")},m.schoolcheck=function(){1==m.edt.current_school_status?m.school_edit=!1:m.school_edit=!0},m.chk_desc=function(){1==m.edt.marketing_code?m.desc_edit=!1:m.desc_edit=!0},m.chk_cicumstances=function(){1==m.edt.parent_status_code?m.circum_edit=!1:m.circum_edit=!0},m.chk_disab_status=function(){1==m.edt.disability_status?m.disab_edit=!1:m.disab_edit=!0},m.chk_health_res=function(){1==m.edt.health_restriction_status?m.healthres_edit=!1:m.healthres_edit=!0},m.chk_medic_status=function(){1==m.edt.medication_status?m.med_edit=!1:m.med_edit=!0},m.chk_other=function(){1==m.edt.health_other_status?m.other_edit=!1:m.other_edit=!0},m.chk_hearing=function(){1==m.edt.health_hearing_status?m.hearing_edit=!1:m.hearing_edit=!0},m.chk_vision=function(){1==m.edt.health_vision_status?m.health_vision_edit=!1:m.health_vision_edit=!0},m.chk_behaviour=function(){1==m.edt.behaviour_status?m.behaviour_edit=!1:m.behaviour_edit=!0},m.chk_gifted_status=function(){1==m.edt.gifted_status?m.gifted_edit=!1:m.gifted_edit=!0},m.chk_music_pro=function(){1==m.edt.music_status?m.music_edit=!1:m.music_edit=!0},m.chk_sport_pro=function(){1==m.edt.sports_status?m.sport_edit=!1:m.sport_edit=!0},m.chk_lang_sup=function(){1==m.edt.language_support_status?m.lang_sup_edit=!1:m.lang_sup_edit=!0},m.chk_Pri_contact=function(){1==m.edt.primary_contact_code?m.pricont_edit=!1:m.pricont_edit=!0},m.chk_transport_requin=function(){1==m.edt.transport_statusnew?m.transreq_edit=!1:m.transreq_edit=!0},m.chk_employee=function(){1==document.getElementById("chk_employee").checked?document.getElementById("txt_emp_code").disabled=!1:document.getElementById("txt_emp_code").disabled=!0},m.chk_Sibling_attend=function(){1==m.edt.sibling_status?m.disableparent=!1:m.disableparent=!0},m.chk_learn_ther=function(){1==m.edt.sims_admission_learning_therapy_status?m.learnther_edit=!1:m.learnther_edit=!0},m.chk_spec_edu=function(){1==m.edt.sims_admission_special_education_status?m.spec_edu_edit=!1:m.spec_edu_edit=!0},m.chk_falled_grade=function(){1==m.edt.sims_admission_falled_grade_status?m.falledgrade_edit=!1:m.falledgrade_edit=!0},m.chk_commun=function(){1==m.edt.sims_admission_communication_status?m.commun_edit=!1:m.commun_edit=!0},m.chk_spec_activies=function(){1==m.edt.sims_admission_specialAct_status?m.specActiv_edit=!1:m.specActiv_edit=!0},m.chk_studyingin=function(){1==m.edt.sibling_status?(m.Study_edit=!1,document.getElementById("t3"),document.getElementById("t4"),document.getElementById("t5"),m.t=!1):(m.Study_edit=!0,document.getElementById("t3"),document.getElementById("t4"),document.getElementById("t5"),m.t=!0)},m.chk_ticking=function(){1==m.edt.declaration_status?(m.tick_edit=!1,m.confirm_edit=!1):(m.tick_edit=!0,m.confirm_edit=!0)},m.chk_copy_mother_add=function(){1==m.edt.copy_add?(m.edt.mother_appartment_number=m.edt.father_appartment_number,m.edt.mother_area_number=m.edt.father_area_number,m.edt.mother_building_number=m.edt.father_building_number,m.edt.mother_street_number=m.edt.father_street_number,m.edt.mother_city=m.edt.father_city,m.edt.mother_state=m.edt.father_state,m.edt.mother_country_code=m.edt.father_country_code,m.edt.mother_po_box=m.edt.father_po_box,m.edt.mother_nationality1_code=m.edt.father_nationality1_code,m.edt.mother_nationality2_code=m.edt.father_nationality2_code,m.edt.mother_summary_address=m.edt.father_summary_address,m.edt.mother_phone=m.edt.father_phone,m.edt.mother_po_box=m.edt.father_po_box,m.edt.mother_mobile=m.edt.father_mobile,m.edt.mother_occupation=m.edt.father_occupation,m.edt.mother_email=m.edt.father_email,m.edt.mother_company=m.edt.father_company):(m.edt.mother_appartment_number="",m.edt.mother_area_number="",m.edt.mother_building_number="",m.edt.mother_street_number="",m.edt.mother_city="",m.edt.mother_state="",m.edt.mother_country_code="",m.edt.mother_po_box="",m.edt.mother_nationality1_code="",m.edt.mother_nationality2_code="",m.edt.mother_summary_address="",m.edt.mother_phone="",m.edt.mother_po_box="",m.edt.mother_mobile="",m.edt.mother_occupation="",m.edt.mother_email="",m.edt.mother_company="")},m.chk_copy_guar_add1=function(){1==m.edt.copy_add1?(m.edt.guardian_appartment_number=m.edt.father_appartment_number,m.edt.guardian_area_number=m.edt.father_area_number,m.edt.guardian_building_number=m.edt.father_building_number,m.edt.guardian_street_number=m.edt.father_street_number,m.edt.guardian_city=m.edt.father_city,m.edt.guardian_state=m.edt.father_state,m.edt.guardian_country_code=m.edt.father_country_code,m.edt.guardian_po_box=m.edt.father_po_box,m.edt.guardian_nationality1_code=m.edt.father_nationality1_code,m.edt.guardian_nationality2_code=m.edt.father_nationality2_code,m.edt.guardian_summary_address=m.edt.father_summary_address,m.edt.guardian_phone=m.edt.father_phone,m.edt.guardian_po_box=m.edt.father_po_box,m.edt.guardian_mobile=m.edt.father_mobile,m.edt.guardian_occupation=m.edt.father_occupation,m.edt.guardian_email=m.edt.father_email,m.edt.guardian_company=m.edt.father_company):(m.edt.guardian_appartment_number="",m.edt.guardian_area_number="",m.edt.guardian_building_number="",m.edt.guardian_street_number="",m.edt.guardian_city="",m.edt.guardian_state="",m.edt.guardian_country_code="",m.edt.guardian_po_box="",m.edt.guardian_nationality1_code="",m.edt.guardian_nationality2_code="",m.edt.guardian_summary_address="",m.edt.guardian_phone="",m.edt.guardian_po_box="",m.edt.guardian_mobile="",m.edt.guardian_occupation="",m.edt.guardian_email="",m.edt.guardian_company="")},m.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+=0i.subleng&&(i.sub=o.split(","),e="#cmb_Subject_code"+a,swal({title:"Alert",text:"Please select max "+i.subleng+" compulsory subject.",width:380,height:200}),$(e).multipleSelect("setSelects",i.sub))},i.CheckAllChecked=function(){if(1==(n=document.getElementById("mainchk")).checked)for(var e=0;eparseFloat(e.sims_compulsory_subject)&&(swal({title:"Alert",text:"Please select max "+e.sims_compulsory_subject+" compulsory subject.",width:380,height:200}),e.sims_status=!1)},i.Cancel=function(){i.temp.sims_grade_code="",i.temp.sims_section_code="",i.getAllTerm_details=[],i.filteredTodos=[]},$('*[data-datepicker="true"] input[type="text"]').datepicker({todayBtn:!0,orientation:"top left",autoclose:!0,todayHighlight:!0,format:"yyyy-mm-dd"})}])}(),function(){"use strict";var l;angular.module("sims.module.Setup").controller("SectionSubjectTeacherCont_leam",["$scope","$state","$rootScope","$timeout","gettextCatalog","$http","ENV",function(r,e,s,i,t,c,m){r.edt={},r.edt.sims_subject_code=[],r.search_code=!1,r.simsArray=[],r.selectedStudentList=[];var a,o=s.globals.currentUser.username,n=(r.busyindicator=!0,r.propertyName=null,r.reverse=!1,r.showRFIDDMC=!1,"dmc"==c.defaults.headers.common.schoolId&&(r.showRFIDDMC=!0),r.table=!0,r.sortBy=function(e){r.reverse=r.propertyName===e&&!r.reverse,r.propertyName=e},setTimeout(function(){$("#cmb_tea_Code").select2()},100),$("table.scroll")),d=n.find("tbody tr:first").children();$(window).resize(function(){a=d.map(function(){return $(this).width()}).get(),n.find("thead tr").children().each(function(e,t){$(t).width(a[e])})}).resize(),c.get(m.apiUrl+"api/bellsectionsubject/GetAllTeacherNameNew").then(function(e){r.GetAllTeacherName=e.data}),r.term_changeNew=function(e,t){c.get(m.apiUrl+"api/StudentSectionSubject/getTermNew?curcode="+e+"&academicyear="+t).then(function(e){r.terms_obj=e.data})},r.getcur=function(){c.get(m.apiUrl+"api/common/getCuriculum").then(function(e){r.curriculum=e.data,r.edt={sims_cur_code:r.curriculum[0].sims_cur_code},r.getAccYear(r.edt.sims_cur_code),r.getARule(r.edt.sims_cur_code)})},r.getcur(),r.getAccYear=function(e){c.get(m.apiUrl+"api/bellsectionsubject/getAcademicYear?curCode="+e).then(function(e){r.Acc_year=e.data,r.edt.sims_academic_year=r.Acc_year[0].cheque_number,r.getGrade()})},r.getSection=function(e,t,a){c.get(m.apiUrl+"api/common/AdmissionSubject/getSectionFromGrade?cur_code="+r.edt.sims_cur_code+"&grade_code="+r.edt.sims_grade_code+"&academic_year="+r.edt.sims_academic_year+"&user_name="+s.globals.currentUser.username).then(function(e){r.Section_code=e.data,setTimeout(function(){$("#cmb_section_code").change(function(){console.log($(this).val())}).multipleSelect({width:"100%"})},1e3)})},$(function(){$("#cmb_section_code").multipleSelect({width:"100%"})}),r.getGrade=function(){c.get(m.apiUrl+"api/common/AdmissionSubject/getAllGrades?cur_code="+r.edt.sims_cur_code+"&academic_year="+r.edt.sims_academic_year+"&user_name="+s.globals.currentUser.username).then(function(e){r.Grade_code=e.data,setTimeout(function(){$("#cmb_grade_code").change(function(){console.log($(this).val())}).multipleSelect({width:"100%"})},1e3)})},$(function(){$("#cmb_grade_code").multipleSelect({width:"100%"})}),r.get=function(){c.get(m.apiUrl+"api/bellsectionsubject/getSectionSubject?curcode="+r.edt.sims_cur_code+"&gradecode="+r.edt.sims_grade_code+"&academicyear="+r.edt.sims_academic_year+"§ion="+r.edt.sims_section_name+"&login_user="+o).then(function(e){r.cmb_subject_name=e.data,console.log("SubjectName",r.cmb_subject_name),setTimeout(function(){$("#cmb_grade").change(function(){console.log($(this).val())}).multipleSelect({width:"100%"})},1e3)})},$(function(){$("#cmb_grade").multipleSelect({width:"100%"})}),r.term_change=function(e){c.get(m.apiUrl+"api/StudentSectionSubject/getSectionsubject_nameNew?curcode="+r.edt.sims_cur_code+"&gradecode="+r.edt.sims_grade_code+"&academicyear="+r.edt.sims_academic_year+"§ion="+r.edt.sims_section_name+"&term="+r.edt.sims_section_subject_term_code+"&login_user="+o).then(function(e){r.cmb_subject_name=e.data,setTimeout(function(){$("#cmb_grade").change(function(){console.log($(this).val())}).multipleSelect({width:"100%"})},1e3)})},r.Show_Data=function(){r.busyindicator=!1,r.info1=[];for(var o=[],n=[],e=(r.secData=[],r.table=!1,r.subject=!1,r.showSelectedSubject=!1,r.selectedAll=!1,null==r.edt.sims_subject_code&&(r.edt.sims_subject_code=""),""),t=0;t';for(var a=0;a'+s[a].title+"";n+="",e.forEach(function(e,t){n+="";for(var a=0;a'+e[s[a].dataKey]+"";n+=""});var e={worksheet:t||"Worksheet",table:n+=""},_=document.createElement("a"),e=(_.href="data:application/vnd.ms-excel;base64,"+r.base64(r.format('\x3c!--[if gte mso 9]>{worksheet}{table}
',e)),new Date);_.download=t.replace(/ /g,"_")+"_"+r.getFormatedDate(e,"dd./.mm./.yyyy. .hh.:.mn.:.ss").replace(/ /g,"_")+".xls",_.click()},r.exportExcelBtn=function(){r.sectionwisesub.forEach(function(e,t){e.RowNumber=t+1}),r.printExcel([{title:"Sr.",dataKey:"RowNumber"},{title:"Grade",dataKey:"sims_grade_name_en"},{title:"Section",dataKey:"sims_section_name_en"},{title:"Teacher",dataKey:"emp_name"},{title:"Subject",dataKey:"sims_subject_name_en"}],r.sectionwisesub,"SubjectTeacherMapping")},r.search=function(){if(r.todos=r.searched(r.sectionwisesub,r.searchText),r.totalItems=r.todos.length,r.currentPage="1",""==r.searchText&&(r.todos=r.sectionwisesub),1==(l=document.getElementById("mainchk")).checked){l.checked=!1;for(var e=0;eJSON.parse(e)),s.category_code_n=e.map(e=>e.category_code).join(","),s.assign_number_n=e.map(e=>e.assign_number).join(",")):1==e.length&&(t=JSON.parse(e),s.category_code_n=t.category_code,s.assign_number_n=t.assign_number);var t={opr:"F",cur_code:s.cur_code,aca_year:s.aca_year,section_code:s.sims_section_n,term_code:s.sims_term,category_code:s.category_code_n,assignment_number:s.assign_number_n};t.assignment_number&&t.category_code&&a.post(o.apiUrl+"api/MarksEntryNew/MarksEntryStatusCommon",t).then(function(e){s.AllMappedSubject=e.data.table,setTimeout(function(){$("#subject_select").change(function(){}).multipleSelect({width:"100%"})},1e3),0"+e+''+t+""),s.close(),a.focus())})}}])}(),function(){"use strict";var e=angular.module("sims.module.Attendance");e.run(["$rootScope","$templateCache",function(e,t){e.$on("$viewContentLoaded",function(){t.removeAll()})}]),e.directive("contextMenu",["$parse","$q",function(e,u){function p(e){for(;a.length&&(!e||a.length>e);)a.pop().remove();0==a.length&&s&&s.remove()}function h(i,d,e,r,c){c=c||0;var m=m||angular.element,t=(m(d.currentTarget).addClass("context"),m("
")),l=(s?t=s:s=t,t.addClass("dropdown clearfix"),m('
","0"===g.day_code?$(".tilesArea").append(w):(n=100+c*(parseInt(g.day_code,10)-1)+parseInt(g.slot_code,10),$("td#"+n).html(w)),_++;if("2"===h[t].lessonType){o="Y"===b?1:h[t].lecturePerWeek;for(s=1;s<=o;s++)g={teacher_code:h[t].teacherCode,grade_code:h[t].gradeCode,section_code:h[t].sectionCode,subject_code:h[t].subjectCode,day_code:null==h[t].dayCode?"0":h[t].dayCode,slot_code:null==h[t].slotCode?"0":h[t].slotCode,subject_name:h[t].subjectName,aca_year:h[t].academicYear,sims_bell_sr_no:null==h[t].sims_bell_sr_no?"0":h[t].sims_bell_sr_no},x.push(g),w='
',w=(w+='
')+h[t].subjectName+"
"+h[t].gradeName+" "+h[t].sectionName+"
","0"===g.day_code?$(".tilesArea").append(w):(n=100+c*(parseInt(g.day_code,10)-1)+parseInt(g.slot_code,10),$("td#"+n).html(w)),_++}}_--,r();var i="",d="";if(0<_){for(t=1;t<_;t++)i+="#div"+t+", ";i+="#div"+t}if($(i).draggable({start:function(e){k=$(e.target).attr("id")}}),0<_){for(t=101;ts.sectionlst1.section_strength?swal({title:"Alert",text:"Section Strength is Full.If You still want to Continue?",showCloseButton:!0,width:380}).then(function(e){e?s.adm_update():($("#cmb_section").css("background-color","#E5E9EC"),$('.nav-tabs a[href="#admtab1"]').tab("show"))}):s.adm_update())},s.adm_update=function(){var e={admission_number:c,appl_num:s.edt.appl_num,pros_num:s.edt.pros_num,pros_appl_num:s.edt.pros_appl_num,admission_date:s.edt.admission_date,school_code:s.edt.school_code,curr_code:s.edt.curr_code,academic_year:s.edt.academic_year,grade_code:s.edt.grade_code,section_code:s.edt.section_code,term_code:s.edt.term_code,tent_join_date:s.edt.tent_join_date,sims_student_emergency_contact_number1:s.edt.sims_student_emergency_contact_number1,sims_student_emergency_contact_name1:s.edt.sims_student_emergency_contact_name1,first_name:s.edt.first_name,middle_name:s.edt.middle_name,last_name:s.edt.last_name,family_name:s.edt.family_name,first_name_ot:s.edt.first_name_ot,midd_name_ot:s.edt.midd_name_ot,last_name_ot:s.edt.last_name_ot,family_name_ot:s.edt.family_name_ot,nicke_name:s.edt.nicke_name,birth_date:s.edt.birth_date,comm_date:s.edt.comm_date,birth_country_code:s.edt.birth_country_code,nationality_code:s.edt.nationality_code,ethinicity_code:s.edt.ethinicity_code,gender_code:s.edt.gender_code,religion_code:s.edt.religion_code,passport_num:s.edt.passport_num,passport_issue_date:s.edt.passport_issue_date,passport_expiry:s.edt.passport_expiry,passport_issue_auth:s.edt.passport_issue_auth,passport_issue_place:s.edt.passport_issue_place,visa_number:s.edt.visa_number,visa_type:s.edt.visa_type,visa_issuing_authority:s.edt.visa_issuing_authority,visa_issue_date:s.edt.visa_issue_date,visa_expiry_date:s.edt.visa_expiry_date,visa_issuing_place:s.edt.visa_issuing_place,national_id:s.edt.national_id,national_id_issue_date:s.edt.national_id_issue_date,national_id_expiry_date:s.edt.national_id_expiry_date,sibling_status:s.edt.sibling_status,parent_id:s.edt.parent_id,sibling_enroll:s.edt.sibling_enroll,sibling_name:s.edt.sibling_name,sibling_dob:s.edt.sibling_dob,sibling_school_code:s.edt.sibling_school_code,employee_type:s.edt.employee_type,employee_code:s.edt.employee_code,employee_school_code:s.edt.employee_school_code,motherTounge_language_code:s.edt.motherTounge_language_code,main_language_code:s.edt.main_language_code,main_language_r_code:s.edt.main_language_r_code,main_language_w_code:s.edt.main_language_w_code,main_language_s_code:s.edt.main_language_s_code,primary_contact_code:s.edt.primary_contact_code,primary_contact_pref_code:s.edt.primary_contact_pref_code,fee_payment_contact_pref_code:s.edt.fee_payment_contact_pref_code,transport_status:s.edt.transport_status,transport_desc:s.edt.transport_desc,father_salutation_code:s.edt.father_salutation_code,father_first_name:s.edt.father_first_name,father_middle_name:s.edt.father_middle_name,father_last_name:s.edt.father_last_name,father_family_name:s.edt.father_family_name,father_family_name_ot:s.edt.father_family_name_ot,father_nationality1_code:s.edt.father_nationality1_code,father_nationality2_code:s.edt.father_nationality2_code,father_appartment_number:s.edt.father_appartment_number,father_building_number:s.edt.father_building_number,father_street_number:s.edt.father_street_number,father_area_number:s.edt.father_area_number,father_city:s.edt.father_city,father_state:s.edt.father_state,father_country_code:s.edt.father_country_code,father_summary_address:s.edt.father_summary_address,father_po_box:s.edt.father_po_box,father_phone:s.edt.father_phone,father_email:s.edt.father_email,father_mobile:s.edt.father_mobile,father_fax:s.edt.father_fax,father_occupation:s.edt.father_occupation,father_company:s.edt.father_company,father_passport_number:s.edt.father_passport_number,sims_admission_father_national_id:s.edt.sims_admission_father_national_id,guardian_salutation_code:s.edt.guardian_salutation_code,guardian_first_name:s.edt.guardian_first_name,guardian_middle_name:s.edt.guardian_middle_name,guardian_last_name:s.edt.guardian_last_name,guardian_family_name:s.edt.guardian_family_name,guardian_nationality1_code:s.edt.guardian_nationality1_code,guardian_nationality2_code:s.edt.guardian_nationality2_code,guardian_appartment_number:s.edt.guardian_appartment_number,guardian_building_number:s.edt.guardian_building_number,guardian_street_number:s.edt.guardian_street_number,guardian_area_number:s.edt.guardian_area_number,guardian_city:s.edt.guardian_city,guardian_state:s.edt.guardian_state,guardian_country_code:s.edt.guardian_country_code,guardian_summary_address:s.edt.guardian_summary_address,guardian_po_box:s.edt.guardian_po_box,guardian_phone:s.edt.guardian_phone,guardian_mobile:s.edt.guardian_mobile,guardian_fax:s.edt.guardian_fax,guardian_email:s.edt.guardian_email,guardian_occupation:s.edt.guardian_occupation,guardian_company:s.edt.guardian_company,guardian_passport_number:s.edt.guardian_passport_number,guardian_relationship_code:s.edt.guardian_relationship_code,mother_salutation_code:s.edt.mother_salutation_code,mother_first_name:s.edt.mother_first_name,mother_middle_name:s.edt.mother_middle_name,mother_last_name:s.edt.mother_last_name,mother_family_name:s.edt.mother_family_name,mother_name_ot:s.edt.mother_name_ot,mother_nationality1_code:s.edt.mother_nationality1_code,mother_nationality2_code:s.edt.mother_nationality2_code,mother_appartment_number:s.edt.mother_appartment_number,mother_building_number:s.edt.mother_building_number,mother_street_number:s.edt.mother_street_number,mother_area_number:s.edt.mother_area_number,mother_city:s.edt.mother_city,mother_state:s.edt.mother_state,mother_country_code:s.edt.mother_country_code,mother_summary_address:s.edt.mother_summary_address,mother_po_box:s.edt.mother_po_box,mother_phone:s.edt.mother_phone,mother_mobile:s.edt.mother_mobile,mother_fax:s.edt.mother_fax,mother_email:s.edt.mother_email,mother_occupation:s.edt.mother_occupation,mother_passport_number:s.edt.mother_passport_number,current_school_status:s.edt.current_school_status,current_school_name:s.edt.current_school_name,current_school_enroll_number:s.edt.current_school_enroll_number,current_school_grade:s.edt.current_school_grade,current_school_cur:s.edt.current_school_cur,current_school_from_date:s.edt.current_school_from_date,current_school_to_date:s.edt.current_school_to_date,current_school_language:s.edt.current_school_language,current_school_head_teacher:s.edt.current_school_head_teacher,current_school_phone:s.edt.current_school_phone,current_school_fax:s.edt.current_school_fax,current_school_city:s.edt.current_school_city,current_school_country_code:s.edt.current_school_country_code,current_school_address:s.edt.current_school_address,marketing_code:s.edt.marketing_code,marketing_description:s.edt.marketing_description,parent_status_code:s.edt.parent_status_code,legal_custody_code:s.edt.legal_custody_code,health_card_number:s.edt.health_card_number,health_card_issue_date:s.edt.health_card_issue_date,health_card_issuing_authority:s.edt.health_card_issuing_authority,blood_group_code:s.edt.blood_group_code,medication_status:s.edt.medication_status,medication_desc:s.edt.medication_desc,disability_status:s.edt.disability_status,disability_desc:s.edt.disability_desc,behaviour_status:s.edt.behaviour_status,behaviour_desc:s.edt.behaviour_desc,health_restriction_status:s.edt.health_restriction_status,health_restriction_desc:s.edt.health_restriction_desc,health_hearing_status:s.edt.health_hearing_status,health_hearing_desc:s.edt.health_hearing_desc,health_vision_status:s.edt.health_vision_status,health_vision_desc:s.edt.health_vision_desc,health_other_status:s.edt.health_other_status,health_other_desc:s.edt.health_other_desc,gifted_status:s.edt.gifted_status,gifted_desc:s.edt.gifted_desc,music_status:s.edt.music_status,music_desc:s.edt.music_desc,sports_status:s.edt.sports_status,sports_desc:s.edt.sports_desc,language_support_status:s.edt.language_support_status,language_support_desc:s.edt.language_support_desc,declaration_status:s.edt.declaration_status,fees_paid_status:s.edt.fees_paid_status,fee_category_code:s.edt.fee_category_code,ip:s.edt.ip,dns:s.edt.dns,user_code:o.globals.currentUser.username,status:s.edt.status,sims_student_attribute1:s.edt.sims_student_attribute1,sims_student_attribute2:s.edt.sims_student_attribute2,sims_student_attribute3:s.edt.sims_student_attribute3,sims_student_attribute4:s.edt.sims_student_attribute4,sims_student_health_respiratory_status:s.edt.sims_student_health_respiratory_status,sims_student_health_respiratory_desc:s.edt.sims_student_health_respiratory_desc,sims_student_health_hay_fever_status:s.edt.sims_student_health_hay_fever_status,sims_student_health_hay_fever_desc:s.edt.sims_student_health_hay_fever_desc,sims_student_health_epilepsy_status:s.edt.sims_student_health_epilepsy_status,sims_student_health_epilepsy_desc:s.edt.sims_student_health_epilepsy_desc,sims_student_health_skin_status:s.edt.sims_student_health_skin_status,sims_student_health_skin_desc:s.edt.sims_student_health_skin_desc,sims_student_health_diabetes_status:s.edt.sims_student_health_diabetes_status,sims_student_health_diabetes_desc:s.edt.sims_student_health_diabetes_desc,sims_student_health_surgery_status:s.edt.sims_student_health_surgery_status,sims_student_health_surgery_desc:s.edt.sims_student_health_surgery_desc,sims_admission_recommendation:s.edt.sims_admission_recommendation,sims_admission_mother_national_id:s.edt.sims_admission_mother_national_id,sims_admission_guardian_national_id:s.edt.sims_admission_guardian_national_id,sims_fee_month_code:s.edt.sims_fee_month_code};r.push(e),_.post(d.apiUrl+"api/common/Admission/ApproveStudent",r).then(function(e){s.display=!0,s.msg1=e.data,console.log(s.msg1)}),s.grid1=!0,$("#myModal1").modal({backdrop:"static",keyboard:!0})},s.modal_cancel=function(){$("#myModal1").modal("hide"),console.log(t.Class),a(function(){e.go("main.Sim000",{Class:t.Class})},300)},_.get(d.apiUrl+"api/common/getCuriculum").then(function(e){s.curriculum=e.data,s.edt={sims_cur_code:s.curriculum[0].sims_cur_code},s.getAccYear(s.edt.sims_cur_code)}),s.getAccYear=function(e){_.get(d.apiUrl+"api/common/getAcademicYear?curCode="+e).then(function(e){s.Acc_year=e.data,s.edt={sims_cur_code:s.curriculum[0].sims_cur_code,sims_academic_year:s.Acc_year[0].sims_academic_year},s.getGrade(s.edt.sims_cur_code,s.edt.sims_academic_year)})},s.getGrade=function(e,t){_.get(d.apiUrl+"api/common/getAllGrades?cur_code="+s.edt.sims_cur_code+"&academic_year="+s.edt.sims_academic_year).then(function(e){s.Grade_code=e.data,s.edt.sims_grade_code=s.Grade_code[0].sims_grade_code,s.getSection(s.edt.sims_cur_code,s.edt.sims_grade_code,s.edt.sims_academic_year)})},s.getSection=function(e,t,a){_.get(d.apiUrl+"api/common/getSectionFromGrade?cur_code="+e+"&grade_code="+t+"&academic_year="+a).then(function(e){s.Section_code=e.data,s.edt.sims_section_code=s.Section_code[0].sims_section_code})},s.back=function(){s.dd=!0,window.localStorage.Admflag=s.dd,s.modal_cancel()},s.schoolcheck=function(){1==s.edt.current_school_status?s.school_edit=!1:s.school_edit=!0},s.chk_desc=function(){1==s.edt.marketing_code?s.desc_edit=!1:s.desc_edit=!0},s.chk_cicumstances=function(){1==s.edt.parent_status_code?s.circum_edit=!1:s.circum_edit=!0},s.chk_disab_status=function(){1==s.edt.disability_status?s.disab_edit=!1:s.disab_edit=!0},s.chk_health_res=function(){1==s.edt.health_restriction_status?s.healthres_edit=!1:s.healthres_edit=!0},s.chk_medic_status=function(){1==s.edt.medication_status?s.med_edit=!1:s.med_edit=!0},s.chk_other=function(){1==s.edt.health_other_status?s.other_edit=!1:s.other_edit=!0},s.chk_hearing=function(){1==s.edt.health_hearing_status?s.hearing_edit=!1:s.hearing_edit=!0},s.chk_vision=function(){1==s.edt.health_vision_status?s.health_vision_edit=!1:s.health_vision_edit=!0},s.chk_behaviour=function(){1==s.edt.behaviour_status?s.behaviour_edit=!1:s.behaviour_edit=!0},s.chk_gifted_status=function(){1==s.edt.gifted_status?s.gifted_edit=!1:s.gifted_edit=!0},s.chk_music_pro=function(){1==s.edt.music_status?s.music_edit=!1:s.music_edit=!0},s.chk_sport_pro=function(){1==s.edt.sports_status?s.sport_edit=!1:s.sport_edit=!0},s.chk_lang_sup=function(){1==s.edt.language_support_status?s.lang_sup_edit=!1:s.lang_sup_edit=!0},s.chk_Pri_contact=function(){1==s.edt.primary_contact_code?s.pricont_edit=!1:s.pricont_edit=!0},s.chk_transport_requin=function(){1==s.edt.transport_status?s.transreq_edit=!1:s.transreq_edit=!0},s.chk_employee=function(){1==s.edt.employee_type?s.emp_edit=!1:s.emp_edit=!0},s.chk_studyingin=function(){1==s.edt.sibling_status?(s.Study_edit=!1,document.getElementById("t3"),document.getElementById("t4"),document.getElementById("t5"),s.t=!1):(s.Study_edit=!0,document.getElementById("t3"),document.getElementById("t4"),document.getElementById("t5"),s.t=!0)},s.chk_ticking=function(){1==s.edt.declaration_status?(s.tick_edit=!1,s.confirm_edit=!1):(s.tick_edit=!0,s.confirm_edit=!0)},s.chk_ticking(),s.chk_copy_mother_add=function(){1==s.edt.copy_add?(s.edt.mother_appartment_number=s.edt.father_appartment_number,s.edt.mother_area_number=s.edt.father_area_number,s.edt.mother_building_number=s.edt.father_building_number,s.edt.mother_street_number=s.edt.father_street_number,s.edt.mother_city=s.edt.father_city,s.edt.mother_state=s.edt.father_state,s.edt.mother_country_code=s.edt.father_country_code,s.edt.mother_po_box=s.edt.father_po_box,s.edt.mother_summary_address=s.edt.father_summary_address,s.edt.mother_po_box=s.edt.father_po_box):(s.edt.mother_appartment_number="",s.edt.mother_area_number="",s.edt.mother_building_number="",s.edt.mother_street_number="",s.edt.mother_city="",s.edt.mother_state="",s.edt.mother_country_code="",s.edt.mother_po_box="",s.edt.mother_summary_address="",s.edt.mother_phone="",s.edt.mother_po_box="")},s.chk_copy_guar_add1=function(){1==s.edt.copy_add1?(s.edt.guardian_appartment_number=s.edt.father_appartment_number,s.edt.guardian_area_number=s.edt.father_area_number,s.edt.guardian_building_number=s.edt.father_building_number,s.edt.guardian_street_number=s.edt.father_street_number,s.edt.guardian_city=s.edt.father_city,s.edt.guardian_state=s.edt.father_state,s.edt.guardian_country_code=s.edt.father_country_code,s.edt.guardian_po_box=s.edt.father_po_box,s.edt.guardian_summary_address=s.edt.father_summary_address,s.edt.guardian_phone=s.edt.father_phone,s.edt.guardian_po_box=s.edt.father_po_box):(s.edt.guardian_appartment_number="",s.edt.guardian_area_number="",s.edt.guardian_building_number="",s.edt.guardian_street_number="",s.edt.guardian_city="",s.edt.guardian_state="",s.edt.guardian_country_code="",s.edt.guardian_po_box="",s.edt.guardian_summary_address="",s.edt.guardian_phone="",s.edt.guardian_po_box="")},s.Cancel=function(){s.edt="",s.msg1="",data="",data1=""},$('*[data-datepicker="true"] input[type="text"]').datepicker({todayBtn:!0,orientation:"top left",autoclose:!0,todayHighlight:!0,format:"yyyy-mm-dd"}),$(document).on("touch click",'*[data-datepicker="true"] .add-on',function(e){$('input[type="text"]',$(this).parent()).focus()})}]),e.directive("ngFiles",["$parse",function(o){return{link:function(t,e,a){var s=o(a.ngFiles);e.on("change",function(e){s(t,{$files:e.target.files})})}}}])}(),function(){"use strict";var d,r,c,m,l,e=angular.module("sims.module.Student");e.run(["$rootScope","$templateCache",function(e,t){e.$on("$viewContentLoaded",function(){t.removeAll()})}]),e.directive("ngFiles",["$parse",function(o){return{link:function(t,e,a){var s=o(a.ngFiles);e.on("change",function(e){s(t,{$files:e.target.files})})}}}]),e.controller("StudentDatabase_geisCont",["$scope","$state","$rootScope","$timeout","gettextCatalog","$http","ENV",function(s,e,o,t,a,n,_){s.Restriction=!0,s.demo=!0,s.readonlyParentLoginCode=!0,s.table1=!0,s.hide=!0,s.EmploymentNo=!0,s.editmode=!1;var i=new FormData;s.read1=!0,s.read2=!0,s.read3=!0,s.read4=!0,s.read5=!0,s.Medication=!0,s.Disability=!0,s.Hearing=!0,s.Vision=!0,s.Other=!0,s.student_info={},s.dynamicLableFlag=!1,s.sisCollegeLableFlag=!1,s.motherTongueMandatory=!1,$("#dp_start_date").data("kendoDatePicker").enable(!1),$("#f_date").data("kendoDatePicker").enable(!1);s.img_url_path=_.docUrl+n.defaults.headers.common.schoolId+"/","siscollege"==n.defaults.headers.common.schoolId||"svcc"==n.defaults.headers.common.schoolId?(s.nationalIdLabelDetails="Aadhar Id Details",s.nationalIdLabel="Aadhar Id"):"pearl"==n.defaults.headers.common.schoolId?(s.nationalIdLabelDetails="Qatar Id Details",s.nationalIdLabel="Qatar Id"):(s.nationalIdLabelDetails="Civil Id Details",s.nationalIdLabel="Civil Id"),"iis"==n.defaults.headers.common.schoolId&&(s.motherTongueMandatory=!0),s.globalSearch=function(){o.visible_stud=!0,o.visible_parent=!1,o.visible_search_parent=!1,o.visible_teacher=!1,o.visible_User=!1,o.visible_Employee=!1,o.chkMulti=!1,s.global_Search_click(),$("#Global_Search_Modal").modal({backdrop:"static"}),s.enrollno=""},s.$on("global_cancel",function(e){console.log(s.SelectedUserLst),0s.sectionlst1.section_strength?swal({title:"Alert",text:"Section Strength is Full.If You still want to Continue?",showCloseButton:!0,width:380}).then(function(e){e?s.adm_update():($("#cmb_section").css("background-color","#E5E9EC"),$('.nav-tabs a[href="#admtab1"]').tab("show"))}):s.adm_update())},s.adm_update=function(){var e={admission_number:c,appl_num:s.edt.appl_num,pros_num:s.edt.pros_num,pros_appl_num:s.edt.pros_appl_num,admission_date:s.edt.admission_date,school_code:s.edt.school_code,curr_code:s.edt.curr_code,academic_year:s.edt.academic_year,grade_code:s.edt.grade_code,section_code:s.edt.section_code,term_code:s.edt.term_code,tent_join_date:s.edt.tent_join_date,sims_student_emergency_contact_number1:s.edt.sims_student_emergency_contact_number1,sims_student_emergency_contact_name1:s.edt.sims_student_emergency_contact_name1,first_name:s.edt.first_name,middle_name:s.edt.middle_name,last_name:s.edt.last_name,family_name:s.edt.family_name,first_name_ot:s.edt.first_name_ot,midd_name_ot:s.edt.midd_name_ot,last_name_ot:s.edt.last_name_ot,family_name_ot:s.edt.family_name_ot,nicke_name:s.edt.nicke_name,birth_date:s.edt.birth_date,comm_date:s.edt.comm_date,birth_country_code:s.edt.birth_country_code,nationality_code:s.edt.nationality_code,ethinicity_code:s.edt.ethinicity_code,gender_code:s.edt.gender_code,religion_code:s.edt.religion_code,passport_num:s.edt.passport_num,passport_issue_date:s.edt.passport_issue_date,passport_expiry:s.edt.passport_expiry,passport_issue_auth:s.edt.passport_issue_auth,passport_issue_place:s.edt.passport_issue_place,visa_number:s.edt.visa_number,visa_type:s.edt.visa_type,visa_issuing_authority:s.edt.visa_issuing_authority,visa_issue_date:s.edt.visa_issue_date,visa_expiry_date:s.edt.visa_expiry_date,visa_issuing_place:s.edt.visa_issuing_place,national_id:s.edt.national_id,national_id_issue_date:s.edt.national_id_issue_date,national_id_expiry_date:s.edt.national_id_expiry_date,sibling_status:s.edt.sibling_status,parent_id:s.edt.parent_id,sibling_enroll:s.edt.sibling_enroll,sibling_name:s.edt.sibling_name,sibling_dob:s.edt.sibling_dob,sibling_school_code:s.edt.sibling_school_code,employee_type:s.edt.employee_type,employee_code:s.edt.employee_code,employee_school_code:s.edt.employee_school_code,motherTounge_language_code:s.edt.motherTounge_language_code,main_language_code:s.edt.main_language_code,main_language_r_code:s.edt.main_language_r_code,main_language_w_code:s.edt.main_language_w_code,main_language_s_code:s.edt.main_language_s_code,primary_contact_code:s.edt.primary_contact_code,primary_contact_pref_code:s.edt.primary_contact_pref_code,fee_payment_contact_pref_code:s.edt.fee_payment_contact_pref_code,transport_status:s.edt.transport_status,transport_desc:s.edt.transport_desc,father_salutation_code:s.edt.father_salutation_code,father_first_name:s.edt.father_first_name,father_middle_name:s.edt.father_middle_name,father_last_name:s.edt.father_last_name,father_family_name:s.edt.father_family_name,father_family_name_ot:s.edt.father_family_name_ot,father_nationality1_code:s.edt.father_nationality1_code,father_nationality2_code:s.edt.father_nationality2_code,father_appartment_number:s.edt.father_appartment_number,father_building_number:s.edt.father_building_number,father_street_number:s.edt.father_street_number,father_area_number:s.edt.father_area_number,father_city:s.edt.father_city,father_state:s.edt.father_state,father_country_code:s.edt.father_country_code,father_summary_address:s.edt.father_summary_address,father_po_box:s.edt.father_po_box,father_phone:s.edt.father_phone,father_email:s.edt.father_email,father_mobile:s.edt.father_mobile,father_fax:s.edt.father_fax,father_occupation:s.edt.father_occupation,father_company:s.edt.father_company,father_passport_number:s.edt.father_passport_number,sims_admission_father_national_id:s.edt.sims_admission_father_national_id,guardian_salutation_code:s.edt.guardian_salutation_code,guardian_first_name:s.edt.guardian_first_name,guardian_middle_name:s.edt.guardian_middle_name,guardian_last_name:s.edt.guardian_last_name,guardian_family_name:s.edt.guardian_family_name,guardian_nationality1_code:s.edt.guardian_nationality1_code,guardian_nationality2_code:s.edt.guardian_nationality2_code,guardian_appartment_number:s.edt.guardian_appartment_number,guardian_building_number:s.edt.guardian_building_number,guardian_street_number:s.edt.guardian_street_number,guardian_area_number:s.edt.guardian_area_number,guardian_city:s.edt.guardian_city,guardian_state:s.edt.guardian_state,guardian_country_code:s.edt.guardian_country_code,guardian_summary_address:s.edt.guardian_summary_address,guardian_po_box:s.edt.guardian_po_box,guardian_phone:s.edt.guardian_phone,guardian_mobile:s.edt.guardian_mobile,guardian_fax:s.edt.guardian_fax,guardian_email:s.edt.guardian_email,guardian_occupation:s.edt.guardian_occupation,guardian_company:s.edt.guardian_company,guardian_passport_number:s.edt.guardian_passport_number,guardian_relationship_code:s.edt.guardian_relationship_code,mother_salutation_code:s.edt.mother_salutation_code,mother_first_name:s.edt.mother_first_name,mother_middle_name:s.edt.mother_middle_name,mother_last_name:s.edt.mother_last_name,mother_family_name:s.edt.mother_family_name,mother_name_ot:s.edt.mother_name_ot,mother_nationality1_code:s.edt.mother_nationality1_code,mother_nationality2_code:s.edt.mother_nationality2_code,mother_appartment_number:s.edt.mother_appartment_number,mother_building_number:s.edt.mother_building_number,mother_street_number:s.edt.mother_street_number,mother_area_number:s.edt.mother_area_number,mother_city:s.edt.mother_city,mother_state:s.edt.mother_state,mother_country_code:s.edt.mother_country_code,mother_summary_address:s.edt.mother_summary_address,mother_po_box:s.edt.mother_po_box,mother_phone:s.edt.mother_phone,mother_mobile:s.edt.mother_mobile,mother_fax:s.edt.mother_fax,mother_email:s.edt.mother_email,mother_occupation:s.edt.mother_occupation,mother_passport_number:s.edt.mother_passport_number,current_school_status:s.edt.current_school_status,current_school_name:s.edt.current_school_name,current_school_enroll_number:s.edt.current_school_enroll_number,current_school_grade:s.edt.current_school_grade,current_school_cur:s.edt.current_school_cur,current_school_from_date:s.edt.current_school_from_date,current_school_to_date:s.edt.current_school_to_date,current_school_language:s.edt.current_school_language,current_school_head_teacher:s.edt.current_school_head_teacher,current_school_phone:s.edt.current_school_phone,current_school_fax:s.edt.current_school_fax,current_school_city:s.edt.current_school_city,current_school_country_code:s.edt.current_school_country_code,current_school_address:s.edt.current_school_address,marketing_code:s.edt.marketing_code,marketing_description:s.edt.marketing_description,parent_status_code:s.edt.parent_status_code,legal_custody_code:s.edt.legal_custody_code,health_card_number:s.edt.health_card_number,health_card_issue_date:s.edt.health_card_issue_date,health_card_issuing_authority:s.edt.health_card_issuing_authority,blood_group_code:s.edt.blood_group_code,medication_status:s.edt.medication_status,medication_desc:s.edt.medication_desc,disability_status:s.edt.disability_status,disability_desc:s.edt.disability_desc,behaviour_status:s.edt.behaviour_status,behaviour_desc:s.edt.behaviour_desc,health_restriction_status:s.edt.health_restriction_status,health_restriction_desc:s.edt.health_restriction_desc,health_hearing_status:s.edt.health_hearing_status,health_hearing_desc:s.edt.health_hearing_desc,health_vision_status:s.edt.health_vision_status,health_vision_desc:s.edt.health_vision_desc,health_other_status:s.edt.health_other_status,health_other_desc:s.edt.health_other_desc,gifted_status:s.edt.gifted_status,gifted_desc:s.edt.gifted_desc,music_status:s.edt.music_status,music_desc:s.edt.music_desc,sports_status:s.edt.sports_status,sports_desc:s.edt.sports_desc,language_support_status:s.edt.language_support_status,language_support_desc:s.edt.language_support_desc,declaration_status:s.edt.declaration_status,fees_paid_status:s.edt.fees_paid_status,fee_category_code:s.edt.fee_category_code,ip:s.edt.ip,dns:s.edt.dns,user_code:o.globals.currentUser.username,status:s.edt.status,sims_student_attribute1:s.edt.sims_student_attribute1,sims_student_attribute2:s.edt.sims_student_attribute2,sims_student_attribute3:s.edt.sims_student_attribute3,sims_student_attribute4:s.edt.sims_student_attribute4,sims_student_health_respiratory_status:s.edt.sims_student_health_respiratory_status,sims_student_health_respiratory_desc:s.edt.sims_student_health_respiratory_desc,sims_student_health_hay_fever_status:s.edt.sims_student_health_hay_fever_status,sims_student_health_hay_fever_desc:s.edt.sims_student_health_hay_fever_desc,sims_student_health_epilepsy_status:s.edt.sims_student_health_epilepsy_status,sims_student_health_epilepsy_desc:s.edt.sims_student_health_epilepsy_desc,sims_student_health_skin_status:s.edt.sims_student_health_skin_status,sims_student_health_skin_desc:s.edt.sims_student_health_skin_desc,sims_student_health_diabetes_status:s.edt.sims_student_health_diabetes_status,sims_student_health_diabetes_desc:s.edt.sims_student_health_diabetes_desc,sims_student_health_surgery_status:s.edt.sims_student_health_surgery_status,sims_student_health_surgery_desc:s.edt.sims_student_health_surgery_desc,sims_admission_recommendation:s.edt.sims_admission_recommendation,sims_admission_mother_national_id:s.edt.sims_admission_mother_national_id,sims_admission_guardian_national_id:s.edt.sims_admission_guardian_national_id,sims_fee_month_code:s.edt.sims_fee_month_code,sims_student_panNo:s.edt.sims_student_panNo,sims_student_voterId:s.edt.sims_student_voterId};r.push(e),_.post(d.apiUrl+"api/common/Admission_dvhs/ApproveStudent",r).then(function(e){s.display=!0,s.msg1=e.data,console.log(s.msg1)}),s.grid1=!0,$("#myModal1").modal({backdrop:"static",keyboard:!0})},s.modal_cancel=function(){$("#myModal1").modal("hide"),console.log(t.Class),"sisqatar"==_.defaults.headers.common.schoolId?a(function(){e.go("main.DasSis",{Class:t.Class})},300):a(function(){e.go("main.Sim000",{Class:t.Class})},300)},_.get(d.apiUrl+"api/common/getCuriculum").then(function(e){s.curriculum=e.data,s.edt={sims_cur_code:s.curriculum[0].sims_cur_code},s.getAccYear(s.edt.sims_cur_code)}),s.getAccYear=function(e){_.get(d.apiUrl+"api/common/getAcademicYear?curCode="+e).then(function(e){s.Acc_year=e.data,s.edt={sims_cur_code:s.curriculum[0].sims_cur_code,sims_academic_year:s.Acc_year[0].sims_academic_year},s.getGrade(s.edt.sims_cur_code,s.edt.sims_academic_year)})},s.getGrade=function(e,t){_.get(d.apiUrl+"api/common/getAllGrades?cur_code="+s.edt.sims_cur_code+"&academic_year="+s.edt.sims_academic_year).then(function(e){s.Grade_code=e.data,s.edt.sims_grade_code=s.Grade_code[0].sims_grade_code,s.getSection(s.edt.sims_cur_code,s.edt.sims_grade_code,s.edt.sims_academic_year)})},s.getSection=function(e,t,a){_.get(d.apiUrl+"api/common/getSectionFromGrade?cur_code="+e+"&grade_code="+t+"&academic_year="+a).then(function(e){s.Section_code=e.data,s.edt.sims_section_code=s.Section_code[0].sims_section_code})},s.back=function(){s.dd=!0,window.localStorage.Admflag=s.dd,s.modal_cancel()},s.schoolcheck=function(){1==s.edt.current_school_status?s.school_edit=!1:s.school_edit=!0},s.chk_desc=function(){1==s.edt.marketing_code?s.desc_edit=!1:s.desc_edit=!0},s.chk_cicumstances=function(){1==s.edt.parent_status_code?s.circum_edit=!1:s.circum_edit=!0},s.chk_disab_status=function(){1==s.edt.disability_status?s.disab_edit=!1:s.disab_edit=!0},s.chk_health_res=function(){1==s.edt.health_restriction_status?s.healthres_edit=!1:s.healthres_edit=!0},s.chk_medic_status=function(){1==s.edt.medication_status?s.med_edit=!1:s.med_edit=!0},s.chk_other=function(){1==s.edt.health_other_status?s.other_edit=!1:s.other_edit=!0},s.chk_hearing=function(){1==s.edt.health_hearing_status?s.hearing_edit=!1:s.hearing_edit=!0},s.chk_vision=function(){1==s.edt.health_vision_status?s.health_vision_edit=!1:s.health_vision_edit=!0},s.chk_behaviour=function(){1==s.edt.behaviour_status?s.behaviour_edit=!1:s.behaviour_edit=!0},s.chk_gifted_status=function(){1==s.edt.gifted_status?s.gifted_edit=!1:s.gifted_edit=!0},s.chk_music_pro=function(){1==s.edt.music_status?s.music_edit=!1:s.music_edit=!0},s.chk_sport_pro=function(){1==s.edt.sports_status?s.sport_edit=!1:s.sport_edit=!0},s.chk_lang_sup=function(){1==s.edt.language_support_status?s.lang_sup_edit=!1:s.lang_sup_edit=!0},s.chk_Pri_contact=function(){1==s.edt.primary_contact_code?s.pricont_edit=!1:s.pricont_edit=!0},s.chk_transport_requin=function(){1==s.edt.transport_status?s.transreq_edit=!1:s.transreq_edit=!0},s.chk_employee=function(){1==s.edt.employee_type?s.emp_edit=!1:s.emp_edit=!0},s.chk_studyingin=function(){1==s.edt.sibling_status?(s.Study_edit=!1,document.getElementById("t3"),document.getElementById("t4"),document.getElementById("t5"),s.t=!1):(s.Study_edit=!0,document.getElementById("t3"),document.getElementById("t4"),document.getElementById("t5"),s.t=!0)},s.chk_ticking=function(){1==s.edt.declaration_status?(s.tick_edit=!1,s.confirm_edit=!1):(s.tick_edit=!0,s.confirm_edit=!0)},s.chk_ticking(),s.chk_copy_mother_add=function(){1==s.edt.copy_add?(s.edt.mother_appartment_number=s.edt.father_appartment_number,s.edt.mother_area_number=s.edt.father_area_number,s.edt.mother_building_number=s.edt.father_building_number,s.edt.mother_street_number=s.edt.father_street_number,s.edt.mother_city=s.edt.father_city,s.edt.mother_state=s.edt.father_state,s.edt.mother_country_code=s.edt.father_country_code,s.edt.mother_po_box=s.edt.father_po_box,s.edt.mother_summary_address=s.edt.father_summary_address,s.edt.mother_po_box=s.edt.father_po_box):(s.edt.mother_appartment_number="",s.edt.mother_area_number="",s.edt.mother_building_number="",s.edt.mother_street_number="",s.edt.mother_city="",s.edt.mother_state="",s.edt.mother_country_code="",s.edt.mother_po_box="",s.edt.mother_summary_address="",s.edt.mother_phone="",s.edt.mother_po_box="")},s.chk_copy_guar_add1=function(){1==s.edt.copy_add1?(s.edt.guardian_appartment_number=s.edt.father_appartment_number,s.edt.guardian_area_number=s.edt.father_area_number,s.edt.guardian_building_number=s.edt.father_building_number,s.edt.guardian_street_number=s.edt.father_street_number,s.edt.guardian_city=s.edt.father_city,s.edt.guardian_state=s.edt.father_state,s.edt.guardian_country_code=s.edt.father_country_code,s.edt.guardian_po_box=s.edt.father_po_box,s.edt.guardian_summary_address=s.edt.father_summary_address,s.edt.guardian_phone=s.edt.father_phone,s.edt.guardian_po_box=s.edt.father_po_box):(s.edt.guardian_appartment_number="",s.edt.guardian_area_number="",s.edt.guardian_building_number="",s.edt.guardian_street_number="",s.edt.guardian_city="",s.edt.guardian_state="",s.edt.guardian_country_code="",s.edt.guardian_po_box="",s.edt.guardian_summary_address="",s.edt.guardian_phone="",s.edt.guardian_po_box="")},s.Cancel=function(){s.edt="",s.msg1="",data="",data1=""},$('*[data-datepicker="true"] input[type="text"]').datepicker({todayBtn:!0,orientation:"top left",autoclose:!0,todayHighlight:!0,format:"yyyy-mm-dd"}),$(document).on("touch click",'*[data-datepicker="true"] .add-on',function(e){$('input[type="text"]',$(this).parent()).focus()})}]),e.directive("ngFiles",["$parse",function(o){return{link:function(t,e,a){var s=o(a.ngFiles);e.on("change",function(e){s(t,{$files:e.target.files})})}}}])}(),function(){"use strict";let d;let r,c,m,l;var e=angular.module("sims.module.Student");e.run(["$rootScope","$templateCache",function(e,t){e.$on("$viewContentLoaded",function(){t.removeAll()})}]),e.directive("ngFiles",["$parse",function(e){}]),e.controller("StudentDatabase_dvhsCont",["$scope","$state","$rootScope","$timeout","gettextCatalog","$http","ENV",function(s,e,o,t,a,n,_){s.Restriction=!0,s.demo=!0,s.readonlyParentLoginCode=!0,s.table1=!0,s.hide=!0,s.EmploymentNo=!0,s.editmode=!1;let i=new FormData;s.read1=!0,s.read2=!0,s.read3=!0,s.read4=!0,s.read5=!0,s.Medication=!0,s.Disability=!0,s.Hearing=!0,s.Vision=!0,s.Other=!0,s.student_info={},s.dynamicLableFlag=!1,s.sisCollegeLableFlag=!1,s.motherTongueMandatory=!1,$(document).ready(function(){$("#dp_start_date").kendoDatePicker(),$("#studDOB").kendoDatePicker(),$("#f_date").kendoDatePicker(),$("#dp_start_date").data("kendoDatePicker").enable(!1),$("#studDOB").data("kendoDatePicker").enable(!0),$("#f_date").data("kendoDatePicker").enable(!1)});s.img_url_path=_.docUrl+n.defaults.headers.common.schoolId+"/","facp"!=n.defaults.headers.common.schoolId&&"cesc"!=n.defaults.headers.common.schoolId&&"dmc"!=n.defaults.headers.common.schoolId||(s.ethnicity_flg=!0),"siscollege"==n.defaults.headers.common.schoolId||"svcc"==n.defaults.headers.common.schoolId||"dmc"==n.defaults.headers.common.schoolId?(s.nationalIdLabelDetails="Aadhar Id Details",s.nationalIdLabel="Aadhar Id"):"pearl"==n.defaults.headers.common.schoolId?(s.nationalIdLabelDetails="Qatar Id Details",s.nationalIdLabel="Qatar Id"):(s.nationalIdLabelDetails="National Id Details",s.nationalIdLabel="National Id"),"iis"==n.defaults.headers.common.schoolId&&(s.motherTongueMandatory=!0),s.globalSearch=function(){o.visible_stud=!0,o.visible_parent=!1,o.visible_search_parent=!1,o.visible_teacher=!1,o.visible_User=!1,o.visible_Employee=!1,o.chkMulti=!1,s.global_Search_click(),$("#Global_Search_Modal").modal({backdrop:"static"}),s.enrollno=""},s.$on("global_cancel",function(e){0s.sectionlst1.section_strength?swal({title:"Alert",text:"Section Strength is Full.If You still want to Continue?",showCloseButton:!0,width:380}).then(function(e){e?s.adm_update():($("#cmb_section").css("background-color","#E5E9EC"),$('.nav-tabs a[href="#admtab1"]').tab("show"))}):s.adm_update())},s.adm_update=function(){var e={admission_number:c,appl_num:s.edt.appl_num,pros_num:s.edt.pros_num,pros_appl_num:s.edt.pros_appl_num,admission_date:s.edt.admission_date,school_code:s.edt.school_code,curr_code:s.edt.curr_code,academic_year:s.edt.academic_year,grade_code:s.edt.grade_code,section_code:s.edt.section_code,term_code:s.edt.term_code,tent_join_date:s.edt.tent_join_date,sims_student_emergency_contact_number1:s.edt.sims_student_emergency_contact_number1,sims_student_emergency_contact_name1:s.edt.sims_student_emergency_contact_name1,first_name:s.edt.first_name,middle_name:s.edt.middle_name,last_name:s.edt.last_name,family_name:s.edt.family_name,first_name_ot:s.edt.first_name_ot,midd_name_ot:s.edt.midd_name_ot,last_name_ot:s.edt.last_name_ot,family_name_ot:s.edt.family_name_ot,nicke_name:s.edt.nicke_name,birth_date:s.edt.birth_date,comm_date:s.edt.comm_date,birth_country_code:s.edt.birth_country_code,nationality_code:s.edt.nationality_code,ethinicity_code:s.edt.ethinicity_code,gender_code:s.edt.gender_code,religion_code:s.edt.religion_code,passport_num:s.edt.passport_num,passport_issue_date:s.edt.passport_issue_date,passport_expiry:s.edt.passport_expiry,passport_issue_auth:s.edt.passport_issue_auth,passport_issue_place:s.edt.passport_issue_place,visa_number:s.edt.visa_number,visa_type:s.edt.visa_type,visa_issuing_authority:s.edt.visa_issuing_authority,visa_issue_date:s.edt.visa_issue_date,visa_expiry_date:s.edt.visa_expiry_date,visa_issuing_place:s.edt.visa_issuing_place,national_id:s.edt.national_id,national_id_issue_date:s.edt.national_id_issue_date,national_id_expiry_date:s.edt.national_id_expiry_date,sibling_status:s.edt.sibling_status,parent_id:s.edt.parent_id,sibling_enroll:s.edt.sibling_enroll,sibling_name:s.edt.sibling_name,sibling_dob:s.edt.sibling_dob,sibling_school_code:s.edt.sibling_school_code,employee_type:s.edt.employee_type,employee_code:s.edt.employee_code,employee_school_code:s.edt.employee_school_code,motherTounge_language_code:s.edt.motherTounge_language_code,main_language_code:s.edt.main_language_code,main_language_r_code:s.edt.main_language_r_code,main_language_w_code:s.edt.main_language_w_code,main_language_s_code:s.edt.main_language_s_code,primary_contact_code:s.edt.primary_contact_code,primary_contact_pref_code:s.edt.primary_contact_pref_code,fee_payment_contact_pref_code:s.edt.fee_payment_contact_pref_code,transport_status:s.edt.transport_status,transport_desc:s.edt.transport_desc,father_salutation_code:s.edt.father_salutation_code,father_first_name:s.edt.father_first_name,father_middle_name:s.edt.father_middle_name,father_last_name:s.edt.father_last_name,father_family_name:s.edt.father_family_name,father_family_name_ot:s.edt.father_family_name_ot,father_nationality1_code:s.edt.father_nationality1_code,father_nationality2_code:s.edt.father_nationality2_code,father_appartment_number:s.edt.father_appartment_number,father_building_number:s.edt.father_building_number,father_street_number:s.edt.father_street_number,father_area_number:s.edt.father_area_number,father_city:s.edt.father_city,father_state:s.edt.father_state,father_country_code:s.edt.father_country_code,father_summary_address:s.edt.father_summary_address,father_po_box:s.edt.father_po_box,father_phone:s.edt.father_phone,father_email:s.edt.father_email,father_mobile:s.edt.father_mobile,father_fax:s.edt.father_fax,father_occupation:s.edt.father_occupation,father_company:s.edt.father_company,father_passport_number:s.edt.father_passport_number,sims_admission_father_national_id:s.edt.sims_admission_father_national_id,guardian_salutation_code:s.edt.guardian_salutation_code,guardian_first_name:s.edt.guardian_first_name,guardian_middle_name:s.edt.guardian_middle_name,guardian_last_name:s.edt.guardian_last_name,guardian_family_name:s.edt.guardian_family_name,guardian_nationality1_code:s.edt.guardian_nationality1_code,guardian_nationality2_code:s.edt.guardian_nationality2_code,guardian_appartment_number:s.edt.guardian_appartment_number,guardian_building_number:s.edt.guardian_building_number,guardian_street_number:s.edt.guardian_street_number,guardian_area_number:s.edt.guardian_area_number,guardian_city:s.edt.guardian_city,guardian_state:s.edt.guardian_state,guardian_country_code:s.edt.guardian_country_code,guardian_summary_address:s.edt.guardian_summary_address,guardian_po_box:s.edt.guardian_po_box,guardian_phone:s.edt.guardian_phone,guardian_mobile:s.edt.guardian_mobile,guardian_fax:s.edt.guardian_fax,guardian_email:s.edt.guardian_email,guardian_occupation:s.edt.guardian_occupation,guardian_company:s.edt.guardian_company,guardian_passport_number:s.edt.guardian_passport_number,guardian_relationship_code:s.edt.guardian_relationship_code,mother_salutation_code:s.edt.mother_salutation_code,mother_first_name:s.edt.mother_first_name,mother_middle_name:s.edt.mother_middle_name,mother_last_name:s.edt.mother_last_name,mother_family_name:s.edt.mother_family_name,mother_name_ot:s.edt.mother_name_ot,mother_nationality1_code:s.edt.mother_nationality1_code,mother_nationality2_code:s.edt.mother_nationality2_code,mother_appartment_number:s.edt.mother_appartment_number,mother_building_number:s.edt.mother_building_number,mother_street_number:s.edt.mother_street_number,mother_area_number:s.edt.mother_area_number,mother_city:s.edt.mother_city,mother_state:s.edt.mother_state,mother_country_code:s.edt.mother_country_code,mother_summary_address:s.edt.mother_summary_address,mother_po_box:s.edt.mother_po_box,mother_phone:s.edt.mother_phone,mother_mobile:s.edt.mother_mobile,mother_fax:s.edt.mother_fax,mother_email:s.edt.mother_email,mother_occupation:s.edt.mother_occupation,mother_passport_number:s.edt.mother_passport_number,current_school_status:s.edt.current_school_status,current_school_name:s.edt.current_school_name,current_school_enroll_number:s.edt.current_school_enroll_number,current_school_grade:s.edt.current_school_grade,current_school_cur:s.edt.current_school_cur,current_school_from_date:s.edt.current_school_from_date,current_school_to_date:s.edt.current_school_to_date,current_school_language:s.edt.current_school_language,current_school_head_teacher:s.edt.current_school_head_teacher,current_school_phone:s.edt.current_school_phone,current_school_fax:s.edt.current_school_fax,current_school_city:s.edt.current_school_city,current_school_country_code:s.edt.current_school_country_code,current_school_address:s.edt.current_school_address,marketing_code:s.edt.marketing_code,marketing_description:s.edt.marketing_description,parent_status_code:s.edt.parent_status_code,legal_custody_code:s.edt.legal_custody_code,health_card_number:s.edt.health_card_number,health_card_issue_date:s.edt.health_card_issue_date,health_card_issuing_authority:s.edt.health_card_issuing_authority,blood_group_code:s.edt.blood_group_code,medication_status:s.edt.medication_status,medication_desc:s.edt.medication_desc,disability_status:s.edt.disability_status,disability_desc:s.edt.disability_desc,behaviour_status:s.edt.behaviour_status,behaviour_desc:s.edt.behaviour_desc,health_restriction_status:s.edt.health_restriction_status,health_restriction_desc:s.edt.health_restriction_desc,health_hearing_status:s.edt.health_hearing_status,health_hearing_desc:s.edt.health_hearing_desc,health_vision_status:s.edt.health_vision_status,health_vision_desc:s.edt.health_vision_desc,health_other_status:s.edt.health_other_status,health_other_desc:s.edt.health_other_desc,gifted_status:s.edt.gifted_status,gifted_desc:s.edt.gifted_desc,music_status:s.edt.music_status,music_desc:s.edt.music_desc,sports_status:s.edt.sports_status,sports_desc:s.edt.sports_desc,language_support_status:s.edt.language_support_status,language_support_desc:s.edt.language_support_desc,declaration_status:s.edt.declaration_status,fees_paid_status:s.edt.fees_paid_status,fee_category_code:s.edt.fee_category_code,ip:s.edt.ip,dns:s.edt.dns,user_code:o.globals.currentUser.username,status:s.edt.status,sims_student_attribute1:s.edt.sims_student_attribute1,sims_student_attribute2:s.edt.sims_student_attribute2,sims_student_attribute3:s.edt.sims_student_attribute3,sims_student_attribute4:s.edt.sims_student_attribute4,sims_student_health_respiratory_status:s.edt.sims_student_health_respiratory_status,sims_student_health_respiratory_desc:s.edt.sims_student_health_respiratory_desc,sims_student_health_hay_fever_status:s.edt.sims_student_health_hay_fever_status,sims_student_health_hay_fever_desc:s.edt.sims_student_health_hay_fever_desc,sims_student_health_epilepsy_status:s.edt.sims_student_health_epilepsy_status,sims_student_health_epilepsy_desc:s.edt.sims_student_health_epilepsy_desc,sims_student_health_skin_status:s.edt.sims_student_health_skin_status,sims_student_health_skin_desc:s.edt.sims_student_health_skin_desc,sims_student_health_diabetes_status:s.edt.sims_student_health_diabetes_status,sims_student_health_diabetes_desc:s.edt.sims_student_health_diabetes_desc,sims_student_health_surgery_status:s.edt.sims_student_health_surgery_status,sims_student_health_surgery_desc:s.edt.sims_student_health_surgery_desc,sims_admission_recommendation:s.edt.sims_admission_recommendation,sims_admission_mother_national_id:s.edt.sims_admission_mother_national_id,sims_admission_guardian_national_id:s.edt.sims_admission_guardian_national_id,sims_fee_month_code:s.edt.sims_fee_month_code,sims_admission_learning_therapy_status:s.edt.sims_admission_learning_therapy_status,sims_admission_learning_therapy_desc:s.edt.sims_admission_learning_therapy_desc,sims_admission_special_education_status:s.edt.sims_admission_special_education_status,sims_admission_special_education_desc:s.edt.sims_admission_special_education_desc,sims_admission_falled_grade_status:s.edt.sims_admission_falled_grade_status,sims_admission_falled_grade_desc:s.edt.sims_admission_falled_grade_desc,sims_admission_communication_status:s.edt.sims_admission_communication_status,sims_admission_communication_desc:s.edt.sims_admission_communication_desc,sims_admission_specialAct_status:s.edt.sims_admission_specialAct_status,sims_admission_specialAct_desc:s.edt.sims_admission_specialAct_desc};r.push(e),_.post(d.apiUrl+"api/common/Admission_asd/ApproveStudent",r).then(function(e){s.display=!0,s.msg1=e.data,console.log(s.msg1)}),s.grid1=!0,$("#myModal1").modal({backdrop:"static",keyboard:!0})},s.modal_cancel=function(){$("#myModal1").modal("hide"),console.log(t.Class),a(function(){e.go("main.Dasasd",{Class:t.Class})},300)},_.get(d.apiUrl+"api/common/getCuriculum").then(function(e){s.curriculum=e.data,s.edt={sims_cur_code:s.curriculum[0].sims_cur_code},s.getAccYear(s.edt.sims_cur_code)}),s.getAccYear=function(e){_.get(d.apiUrl+"api/common/getAcademicYear?curCode="+e).then(function(e){s.Acc_year=e.data,s.edt={sims_cur_code:s.curriculum[0].sims_cur_code,sims_academic_year:s.Acc_year[0].sims_academic_year},s.getGrade(s.edt.sims_cur_code,s.edt.sims_academic_year)})},s.getGrade=function(e,t){_.get(d.apiUrl+"api/common/getAllGrades?cur_code="+s.edt.sims_cur_code+"&academic_year="+s.edt.sims_academic_year).then(function(e){s.Grade_code=e.data,s.edt.sims_grade_code=s.Grade_code[0].sims_grade_code,s.getSection(s.edt.sims_cur_code,s.edt.sims_grade_code,s.edt.sims_academic_year)})},s.getSection=function(e,t,a){_.get(d.apiUrl+"api/common/getSectionFromGrade?cur_code="+e+"&grade_code="+t+"&academic_year="+a).then(function(e){s.Section_code=e.data,s.edt.sims_section_code=s.Section_code[0].sims_section_code})},s.back=function(){s.dd=!0,window.localStorage.Admflag=s.dd,s.modal_cancel()},s.schoolcheck=function(){1==s.edt.current_school_status?s.school_edit=!1:s.school_edit=!0},s.chk_desc=function(){1==s.edt.marketing_code?s.desc_edit=!1:s.desc_edit=!0},s.chk_cicumstances=function(){1==s.edt.parent_status_code?s.circum_edit=!1:s.circum_edit=!0},s.chk_disab_status=function(){1==s.edt.disability_status?s.disab_edit=!1:s.disab_edit=!0},s.chk_health_res=function(){1==s.edt.health_restriction_status?s.healthres_edit=!1:s.healthres_edit=!0},s.chk_medic_status=function(){1==s.edt.medication_status?s.med_edit=!1:s.med_edit=!0},s.chk_other=function(){1==s.edt.health_other_status?s.other_edit=!1:s.other_edit=!0},s.chk_hearing=function(){1==s.edt.health_hearing_status?s.hearing_edit=!1:s.hearing_edit=!0},s.chk_vision=function(){1==s.edt.health_vision_status?s.health_vision_edit=!1:s.health_vision_edit=!0},s.chk_behaviour=function(){1==s.edt.behaviour_status?s.behaviour_edit=!1:s.behaviour_edit=!0},s.chk_gifted_status=function(){1==s.edt.gifted_status?s.gifted_edit=!1:s.gifted_edit=!0},s.chk_music_pro=function(){1==s.edt.music_status?s.music_edit=!1:s.music_edit=!0},s.chk_sport_pro=function(){1==s.edt.sports_status?s.sport_edit=!1:s.sport_edit=!0},s.chk_lang_sup=function(){1==s.edt.language_support_status?s.lang_sup_edit=!1:s.lang_sup_edit=!0},s.chk_Pri_contact=function(){1==s.edt.primary_contact_code?s.pricont_edit=!1:s.pricont_edit=!0},s.chk_transport_requin=function(){1==s.edt.transport_status?s.transreq_edit=!1:s.transreq_edit=!0},s.chk_employee=function(){1==s.edt.employee_type?s.emp_edit=!1:s.emp_edit=!0},s.chk_studyingin=function(){1==s.edt.sibling_status?(s.Study_edit=!1,document.getElementById("t3"),document.getElementById("t4"),document.getElementById("t5"),s.t=!1):(s.Study_edit=!0,document.getElementById("t3"),document.getElementById("t4"),document.getElementById("t5"),s.t=!0)},s.chk_learn_ther=function(){1==s.edt.sims_admission_learning_therapy_status?s.learnther_edit=!1:s.learnther_edit=!0},s.chk_spec_edu=function(){1==s.edt.sims_admission_special_education_status?s.spec_edu_edit=!1:s.spec_edu_edit=!0},s.chk_falled_grade=function(){1==s.edt.sims_admission_falled_grade_status?s.falledgrade_edit=!1:s.falledgrade_edit=!0},s.chk_commun=function(){1==s.edt.sims_admission_communication_status?s.commun_edit=!1:s.commun_edit=!0},s.chk_spec_activies=function(){1==s.edt.sims_admission_specialAct_status?s.specActiv_edit=!1:s.specActiv_edit=!0},s.chk_ticking=function(){1==s.edt.declaration_status?(s.tick_edit=!1,s.confirm_edit=!1):(s.tick_edit=!0,s.confirm_edit=!0)},s.chk_ticking(),s.chk_copy_mother_add=function(){1==s.edt.copy_add?(s.edt.mother_appartment_number=s.edt.father_appartment_number,s.edt.mother_area_number=s.edt.father_area_number,s.edt.mother_building_number=s.edt.father_building_number,s.edt.mother_street_number=s.edt.father_street_number,s.edt.mother_city=s.edt.father_city,s.edt.mother_state=s.edt.father_state,s.edt.mother_country_code=s.edt.father_country_code,s.edt.mother_po_box=s.edt.father_po_box,s.edt.mother_nationality1_code=s.edt.father_nationality1_code,s.edt.mother_nationality2_code=s.edt.father_nationality2_code,s.edt.mother_summary_address=s.edt.father_summary_address,s.edt.mother_phone=s.edt.father_phone,s.edt.mother_po_box=s.edt.father_po_box,s.edt.mother_mobile=s.edt.father_mobile,s.edt.mother_occupation=s.edt.father_occupation,s.edt.mother_email=s.edt.father_email,s.edt.mother_company=s.edt.father_company):(s.edt.mother_appartment_number="",s.edt.mother_area_number="",s.edt.mother_building_number="",s.edt.mother_street_number="",s.edt.mother_city="",s.edt.mother_state="",s.edt.mother_country_code="",s.edt.mother_po_box="",s.edt.mother_nationality1_code="",s.edt.mother_nationality2_code="",s.edt.mother_summary_address="",s.edt.mother_phone="",s.edt.mother_po_box="",s.edt.mother_mobile="",s.edt.mother_occupation="",s.edt.mother_email="",s.edt.mother_company="")},s.chk_copy_guar_add1=function(){1==s.edt.copy_add1?(s.edt.guardian_appartment_number=s.edt.father_appartment_number,s.edt.guardian_area_number=s.edt.father_area_number,s.edt.guardian_building_number=s.edt.father_building_number,s.edt.guardian_street_number=s.edt.father_street_number,s.edt.guardian_city=s.edt.father_city,s.edt.guardian_state=s.edt.father_state,s.edt.guardian_country_code=s.edt.father_country_code,s.edt.guardian_po_box=s.edt.father_po_box,s.edt.guardian_nationality1_code=s.edt.father_nationality1_code,s.edt.guardian_nationality2_code=s.edt.father_nationality2_code,s.edt.guardian_summary_address=s.edt.father_summary_address,s.edt.guardian_phone=s.edt.father_phone,s.edt.guardian_po_box=s.edt.father_po_box,s.edt.guardian_mobile=s.edt.father_mobile,s.edt.guardian_occupation=s.edt.father_occupation,s.edt.guardian_email=s.edt.father_email,s.edt.guardian_company=s.edt.father_company):(s.edt.guardian_appartment_number="",s.edt.guardian_area_number="",s.edt.guardian_building_number="",s.edt.guardian_street_number="",s.edt.guardian_city="",s.edt.guardian_state="",s.edt.guardian_country_code="",s.edt.guardian_po_box="",s.edt.guardian_nationality1_code="",s.edt.guardian_nationality2_code="",s.edt.guardian_summary_address="",s.edt.guardian_phone="",s.edt.guardian_po_box="",s.edt.guardian_mobile="",s.edt.guardian_occupation="",s.edt.guardian_email="",s.edt.guardian_company="")},s.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+=0c.sectionlst1.section_strength?swal({title:"Alert",text:"Section Strength is Full.If You still want to Continue?",showCloseButton:!0,width:380}).then(function(e){e?c.adm_update():($("#cmb_section").css("background-color","#E5E9EC"),$('.nav-tabs a[href="#admtab1"]').tab("show"))}):c.adm_update())},c.adm_update=function(){null==c.edt.home_country_isdcode&&(c.edt.home_country_isdcode=""),null==c.edt.home_phone&&(c.edt.home_phone="");var e={admission_number:param,appl_num:c.edt.appl_num,pros_num:c.edt.pros_num,pros_appl_num:c.edt.pros_appl_num,admission_date:c.edt.admission_date,school_code:c.edt.school_code,curr_code:c.edt.curr_code,academic_year:c.edt.academic_year,grade_code:c.edt.grade_code,section_code:c.edt.section_code,term_code:c.edt.term_code,tent_join_date:c.edt.tent_join_date,sims_student_emergency_contact_number1:c.edt.sims_student_emergency_contact_number1,sims_student_emergency_contact_name1:c.edt.sims_student_emergency_contact_name1,first_name:c.edt.first_name,middle_name:c.edt.middle_name,last_name:c.edt.last_name,family_name:c.edt.family_name,first_name_ot:c.edt.first_name_ot,midd_name_ot:c.edt.midd_name_ot,last_name_ot:c.edt.last_name_ot,family_name_ot:c.edt.family_name_ot,nicke_name:c.edt.nicke_name,birth_date:c.edt.birth_date,comm_date:c.edt.comm_date,birth_country_code:c.edt.birth_country_code,nationality_code:c.edt.nationality_code,ethinicity_code:c.edt.ethinicity_code,gender_code:c.edt.gender_code,religion_code:c.edt.religion_code,passport_num:c.edt.passport_num,passport_issue_date:c.edt.passport_issue_date,passport_expiry:c.edt.passport_expiry,passport_issue_auth:c.edt.passport_issue_auth,passport_issue_place:c.edt.passport_issue_place,visa_number:c.edt.visa_number,visa_type:c.edt.visa_type,visa_issuing_authority:c.edt.visa_issuing_authority,visa_issue_date:c.edt.visa_issue_date,visa_expiry_date:c.edt.visa_expiry_date,visa_issuing_place:c.edt.visa_issuing_place,national_id:c.edt.national_id,national_id_issue_date:c.edt.national_id_issue_date,national_id_expiry_date:c.edt.national_id_expiry_date,sibling_status:c.edt.sibling_status,parent_id:c.edt.parent_id,sibling_enroll:c.edt.sibling_enroll,sibling_name:c.edt.sibling_name,sibling_dob:c.edt.sibling_dob,sibling_school_code:c.edt.sibling_school_code,employee_type:c.edt.employee_type,employee_code:c.edt.employee_code,employee_school_code:c.edt.employee_school_code,motherTounge_language_code:c.edt.motherTounge_language_code,main_language_code:c.edt.main_language_code,main_language_r_code:c.edt.main_language_r_code,main_language_w_code:c.edt.main_language_w_code,main_language_s_code:c.edt.main_language_s_code,primary_contact_code:c.edt.primary_contact_code,primary_contact_pref_code:c.edt.primary_contact_pref_code,fee_payment_contact_pref_code:c.edt.fee_payment_contact_pref_code,transport_status:c.edt.transport_status,transport_desc:c.edt.transport_desc,father_salutation_code:c.edt.father_salutation_code,father_first_name:c.edt.father_first_name,father_middle_name:c.edt.father_middle_name,father_last_name:c.edt.father_last_name,father_family_name:c.edt.father_family_name,father_family_name_ot:c.edt.father_family_name_ot,father_nationality1_code:c.edt.father_nationality1_code,father_nationality2_code:c.edt.father_nationality2_code,father_appartment_number:c.edt.father_appartment_number,father_building_number:c.edt.father_building_number,father_street_number:c.edt.father_street_number,father_area_number:c.edt.father_area_number,father_city:c.edt.father_city,father_state:c.edt.father_state,father_country_code:c.edt.father_country_code,father_summary_address:c.edt.father_summary_address,father_po_box:c.edt.father_po_box,father_phone:c.edt.father_phone,father_email:c.edt.father_email,father_mobile:c.edt.father_mobile,father_fax:c.edt.father_fax,father_occupation:c.edt.father_occupation,father_company:c.edt.father_company,father_passport_number:c.edt.father_passport_number,sims_admission_father_national_id:c.edt.sims_admission_father_national_id,guardian_salutation_code:c.edt.guardian_salutation_code,guardian_first_name:c.edt.guardian_first_name,guardian_middle_name:c.edt.guardian_middle_name,guardian_last_name:c.edt.guardian_last_name,guardian_family_name:c.edt.guardian_family_name,guardian_nationality1_code:c.edt.guardian_nationality1_code,guardian_nationality2_code:c.edt.guardian_nationality2_code,guardian_appartment_number:c.edt.guardian_appartment_number,guardian_building_number:c.edt.guardian_building_number,guardian_street_number:c.edt.guardian_street_number,guardian_area_number:c.edt.guardian_area_number,guardian_city:c.edt.guardian_city,guardian_state:c.edt.guardian_state,guardian_country_code:c.edt.guardian_country_code,guardian_summary_address:c.edt.guardian_summary_address,guardian_po_box:c.edt.guardian_po_box,guardian_phone:c.edt.guardian_phone,guardian_mobile:c.edt.guardian_mobile,guardian_fax:c.edt.guardian_fax,guardian_email:c.edt.guardian_email,guardian_occupation:c.edt.guardian_occupation,guardian_company:c.edt.guardian_company,guardian_passport_number:c.edt.guardian_passport_number,guardian_relationship_code:c.edt.guardian_relationship_code,mother_salutation_code:c.edt.mother_salutation_code,mother_first_name:c.edt.mother_first_name,mother_middle_name:c.edt.mother_middle_name,mother_last_name:c.edt.mother_last_name,mother_family_name:c.edt.mother_family_name,mother_name_ot:c.edt.mother_name_ot,mother_nationality1_code:c.edt.mother_nationality1_code,mother_nationality2_code:c.edt.mother_nationality2_code,mother_appartment_number:c.edt.mother_appartment_number,mother_building_number:c.edt.mother_building_number,mother_street_number:c.edt.mother_street_number,mother_area_number:c.edt.mother_area_number,mother_city:c.edt.mother_city,mother_state:c.edt.mother_state,mother_country_code:c.edt.mother_country_code,mother_summary_address:c.edt.mother_summary_address,mother_po_box:c.edt.mother_po_box,mother_phone:c.edt.mother_phone,mother_mobile:c.edt.mother_mobile,mother_fax:c.edt.mother_fax,mother_email:c.edt.mother_email,mother_occupation:c.edt.mother_occupation,mother_passport_number:c.edt.mother_passport_number,current_school_status:c.edt.current_school_status,current_school_name:c.edt.current_school_name,current_school_enroll_number:c.edt.current_school_enroll_number,current_school_grade:c.edt.current_school_grade,current_school_cur:c.edt.current_school_cur,current_school_from_date:c.edt.current_school_from_date,current_school_to_date:c.edt.current_school_to_date,current_school_language:c.edt.current_school_language,current_school_head_teacher:c.edt.current_school_head_teacher,current_school_phone:c.edt.current_school_phone,current_school_fax:c.edt.current_school_fax,current_school_city:c.edt.current_school_city,current_school_country_code:c.edt.current_school_country_code,current_school_address:c.edt.current_school_address,marketing_code:c.edt.marketing_code,marketing_description:c.edt.marketing_description,parent_status_code:c.edt.parent_status_code,legal_custody_code:c.edt.legal_custody_code,health_card_number:c.edt.health_card_number,health_card_issue_date:c.edt.health_card_issue_date,health_card_issuing_authority:c.edt.health_card_issuing_authority,blood_group_code:c.edt.blood_group_code,medication_status:c.edt.medication_status,medication_desc:c.edt.medication_desc,disability_status:c.edt.disability_status,disability_desc:c.edt.disability_desc,behaviour_status:c.edt.behaviour_status,behaviour_desc:c.edt.behaviour_desc,health_restriction_status:c.edt.health_restriction_status,health_restriction_desc:c.edt.health_restriction_desc,health_hearing_status:c.edt.health_hearing_status,health_hearing_desc:c.edt.health_hearing_desc,health_vision_status:c.edt.health_vision_status,health_vision_desc:c.edt.health_vision_desc,health_other_status:c.edt.health_other_status,health_other_desc:c.edt.health_other_desc,gifted_status:c.edt.gifted_status,gifted_desc:c.edt.gifted_desc,music_status:c.edt.music_status,music_desc:c.edt.music_desc,sports_status:c.edt.sports_status,sports_desc:c.edt.sports_desc,language_support_status:c.edt.language_support_status,language_support_desc:c.edt.language_support_desc,declaration_status:c.edt.declaration_status,fees_paid_status:c.edt.fees_paid_status,fee_category_code:c.edt.fee_category_code,ip:c.edt.ip,dns:c.edt.dns,user_code:c.edt.user_code,status:c.edt.status,sims_student_attribute1:c.edt.sims_student_attribute1,sims_student_attribute2:c.edt.sims_student_attribute2,sims_student_attribute3:c.edt.sims_student_attribute3,sims_student_attribute4:c.edt.sims_student_attribute4,sims_student_health_respiratory_status:c.edt.sims_student_health_respiratory_status,sims_student_health_respiratory_desc:c.edt.sims_student_health_respiratory_desc,sims_student_health_hay_fever_status:c.edt.sims_student_health_hay_fever_status,sims_student_health_hay_fever_desc:c.edt.sims_student_health_hay_fever_desc,sims_student_health_epilepsy_status:c.edt.sims_student_health_epilepsy_status,sims_student_health_epilepsy_desc:c.edt.sims_student_health_epilepsy_desc,sims_student_health_skin_status:c.edt.sims_student_health_skin_status,sims_student_health_skin_desc:c.edt.sims_student_health_skin_desc,sims_student_health_diabetes_status:c.edt.sims_student_health_diabetes_status,sims_student_health_diabetes_desc:c.edt.sims_student_health_diabetes_desc,sims_student_health_surgery_status:c.edt.sims_student_health_surgery_status,sims_student_health_surgery_desc:c.edt.sims_student_health_surgery_desc,sims_admission_recommendation:c.edt.sims_admission_recommendation,sims_admission_mother_national_id:c.edt.sims_admission_mother_national_id,sims_admission_guardian_national_id:c.edt.sims_admission_guardian_national_id,sims_fee_month_code:c.edt.sims_fee_month_code,sims_student_attribute5:c.edt.sims_student_attribute5,sims_student_attribute6:c.edt.sims_student_attribute6,sims_student_attribute7:c.edt.sims_student_attribute7,sims_student_attribute8:c.edt.sims_student_attribute8,sims_student_attribute9:c.edt.sims_student_attribute9,sims_student_attribute10:c.edt.sims_student_attribute10,sims_student_attribute11:c.edt.sims_student_attribute11,sims_student_attribute12:c.edt.sims_student_attribute12,sims_admission_second_lang_code:c.edt.sims_admission_second_lang_code,sims_admission_third_lang_code:c.edt.sims_admission_third_lang_code,sims_admission_subject_code:c.edt.sims_admission_second_lang_code+","+c.edt.sims_admission_third_lang_code};_.push(e),m.post(l.apiUrl+"api/common/Admission_dpsd/ApproveStudent",_).then(function(e){c.display=!0,c.msg1=e.data,console.log(c.msg1)}),c.grid1=!0,$("#myModal1").modal({backdrop:"static",keyboard:!0})},c.get_studentfee=function(){e.go("main.Sim043")},c.schoolcheck=function(){1==c.edt.current_school_status?c.school_edit=!1:c.school_edit=!0},c.chk_desc=function(){1==c.edt.marketing_code?c.desc_edit=!1:c.desc_edit=!0},c.chk_cicumstances=function(){1==c.edt.parent_status_code?c.circum_edit=!1:c.circum_edit=!0},c.chk_disab_status=function(){1==c.edt.disability_status?c.disab_edit=!1:c.disab_edit=!0},c.chk_health_res=function(){1==c.edt.health_restriction_status?c.healthres_edit=!1:c.healthres_edit=!0},c.chk_medic_status=function(){1==c.edt.medication_status?c.med_edit=!1:c.med_edit=!0},c.chk_other=function(){1==c.edt.health_other_status?c.other_edit=!1:c.other_edit=!0},c.chk_hearing=function(){1==c.edt.health_hearing_status?c.hearing_edit=!1:c.hearing_edit=!0},c.chk_vision=function(){1==c.edt.health_vision_status?c.health_vision_edit=!1:c.health_vision_edit=!0},c.chk_behaviour=function(){1==c.edt.behaviour_status?c.behaviour_edit=!1:c.behaviour_edit=!0},c.chk_gifted_status=function(){1==c.edt.gifted_status?c.gifted_edit=!1:c.gifted_edit=!0},c.chk_music_pro=function(){1==c.edt.music_status?c.music_edit=!1:c.music_edit=!0},c.chk_sport_pro=function(){1==c.edt.sports_status?c.sport_edit=!1:c.sport_edit=!0},c.chk_lang_sup=function(){1==c.edt.language_support_status?c.lang_sup_edit=!1:c.lang_sup_edit=!0},c.chk_Pri_contact=function(){1==c.edt.primary_contact_code?c.pricont_edit=!1:c.pricont_edit=!0},c.chk_transport_requin=function(){1==c.edt.transport_status?c.transreq_edit=!1:c.transreq_edit=!0},c.chk_employee=function(){1==document.getElementById("chk_employee").checked?document.getElementById("txt_emp_code").disabled=!1:document.getElementById("txt_emp_code").disabled=!0},c.chk_Sibling_attend=function(){1==c.edt.sibling_status?c.disableparent=!1:c.disableparent=!0},c.chk_learn_ther=function(){1==c.edt.sims_admission_learning_therapy_status?c.learnther_edit=!1:c.learnther_edit=!0},c.chk_spec_edu=function(){1==c.edt.sims_admission_special_education_status?c.spec_edu_edit=!1:c.spec_edu_edit=!0},c.chk_falled_grade=function(){1==c.edt.sims_admission_falled_grade_status?c.falledgrade_edit=!1:c.falledgrade_edit=!0},c.chk_commun=function(){1==c.edt.sims_admission_communication_status?c.commun_edit=!1:c.commun_edit=!0},c.chk_spec_activies=function(){1==c.edt.sims_admission_specialAct_status?c.specActiv_edit=!1:c.specActiv_edit=!0},c.chk_studyingin=function(){1==c.edt.sibling_status?(c.Study_edit=!1,document.getElementById("t3"),document.getElementById("t4"),document.getElementById("t5"),c.t=!1):(c.Study_edit=!0,document.getElementById("t3"),document.getElementById("t4"),document.getElementById("t5"),c.t=!0)},c.chk_ticking=function(){1==c.edt.declaration_status?(c.tick_edit=!1,c.confirm_edit=!1):(c.tick_edit=!0,c.confirm_edit=!0)},c.chk_copy_mother_add=function(){1==c.edt.copy_add?(c.edt.mother_appartment_number=c.edt.father_appartment_number,c.edt.mother_area_number=c.edt.father_area_number,c.edt.mother_building_number=c.edt.father_building_number,c.edt.mother_street_number=c.edt.father_street_number,c.edt.mother_city=c.edt.father_city,c.edt.mother_state=c.edt.father_state,c.edt.mother_country_code=c.edt.father_country_code,c.edt.mother_po_box=c.edt.father_po_box,c.edt.mother_nationality1_code=c.edt.father_nationality1_code,c.edt.mother_nationality2_code=c.edt.father_nationality2_code,c.edt.mother_summary_address=c.edt.father_summary_address,c.edt.mother_phone=c.edt.father_phone,c.edt.mother_po_box=c.edt.father_po_box,c.edt.mother_mobile=c.edt.father_mobile,c.edt.mother_occupation=c.edt.father_occupation,c.edt.mother_email=c.edt.father_email,c.edt.mother_company=c.edt.father_company):(c.edt.mother_appartment_number="",c.edt.mother_area_number="",c.edt.mother_building_number="",c.edt.mother_street_number="",c.edt.mother_city="",c.edt.mother_state="",c.edt.mother_country_code="",c.edt.mother_po_box="",c.edt.mother_nationality1_code="",c.edt.mother_nationality2_code="",c.edt.mother_summary_address="",c.edt.mother_phone="",c.edt.mother_po_box="",c.edt.mother_mobile="",c.edt.mother_occupation="",c.edt.mother_email="",c.edt.mother_company="")},c.chk_copy_guar_add1=function(){1==c.edt.copy_add1?(c.edt.guardian_appartment_number=c.edt.father_appartment_number,c.edt.guardian_area_number=c.edt.father_area_number,c.edt.guardian_building_number=c.edt.father_building_number,c.edt.guardian_street_number=c.edt.father_street_number,c.edt.guardian_city=c.edt.father_city,c.edt.guardian_state=c.edt.father_state,c.edt.guardian_country_code=c.edt.father_country_code,c.edt.guardian_po_box=c.edt.father_po_box,c.edt.guardian_nationality1_code=c.edt.father_nationality1_code,c.edt.guardian_nationality2_code=c.edt.father_nationality2_code,c.edt.guardian_summary_address=c.edt.father_summary_address,c.edt.guardian_phone=c.edt.father_phone,c.edt.guardian_po_box=c.edt.father_po_box,c.edt.guardian_mobile=c.edt.father_mobile,c.edt.guardian_occupation=c.edt.father_occupation,c.edt.guardian_email=c.edt.father_email,c.edt.guardian_company=c.edt.father_company):(c.edt.guardian_appartment_number="",c.edt.guardian_area_number="",c.edt.guardian_building_number="",c.edt.guardian_street_number="",c.edt.guardian_city="",c.edt.guardian_state="",c.edt.guardian_country_code="",c.edt.guardian_po_box="",c.edt.guardian_nationality1_code="",c.edt.guardian_nationality2_code="",c.edt.guardian_summary_address="",c.edt.guardian_phone="",c.edt.guardian_po_box="",c.edt.guardian_mobile="",c.edt.guardian_occupation="",c.edt.guardian_email="",c.edt.guardian_company="")},c.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=r.obj_age[e].sims_birth_date_to)&&(swal({title:"Birth Date",text:"For KG 1 admissions, child must be minimum 3.8 year old and can be maximum 4.11 year old as of 2017-03-31",showCloseButton:!0,width:450}),r.edt.birth_date=""),"02"==r.edt.grade_code&&(r.edt.birth_date<=r.obj_age[e].sims_birth_date_from&&(swal({title:"Birth Date",text:"For KG 2 admissions, child must be minimum 4.8 year old and can be maximum 5.11 year old as of 2017-03-31",showCloseButton:!0,width:450}),r.edt.birth_date=""),r.edt.birth_date>=r.obj_age[e].sims_birth_date_to)&&(swal({title:"Birth Date",text:"For KG 2 admissions, child must be minimum 4.8 year old and can be maximum 5.11 year old as of 2017-03-31",showCloseButton:!0,width:450}),r.edt.birth_date=""),"03"==r.edt.grade_code&&(r.edt.birth_date<=r.obj_age[e].sims_birth_date_from&&(swal({title:"Birth Date",text:"For Grade 1 admissions, child must be minimum 5.8 year old and can be maximum 6.11 year old as of 2017-03-31",showCloseButton:!0,width:480}),r.edt.birth_date=""),r.edt.birth_date>=r.obj_age[e].sims_birth_date_to)&&(swal({title:"Birth Date",text:"For Grade 1 admissions, child must be minimum 5.8 year old and can be maximum 6.11 year old as of 2017-03-31",showCloseButton:!0,width:480}),r.edt.birth_date="")},r.createdate=function(e){var t=e.split("/")[0],a=e.split("/")[1],e=e.split("/")[2],e=(m=e+"/"+t+"/"+a,r.CurrentDate=new Date,new Date),t=e.getMonth()+1,a=e.getDate(),e=(e.getFullYear(),t<10&&(t="0"+t),a<10&&(a="0"+a),l=e.getFullYear()+"/"+t+"/"+a,e.getFullYear()-4+"/"+t+"/"+a);(l<=m||m<=e)&&(swal({title:"Birth Date",text:"Age Should Not be less than 4 yrs or greater than current year",imageUrl:"assets/img/notification-alert.png"}),document.getElementById("dp_birth_date").value="")},r.NewSaveF=function(){a.BUSY.IsBusy=!0;var t=r.edt;t.red_id=d,t.email_id=email,t.opr="I";n.post(r.apiurl+"api/common/Admission/CUDInsertAdmission",t).then(function(e){r.Insertmsg1=e.data,e.data&&(t.admission_number=r.Insertmsg1.admission_number,t.email_id=r.Insertmsg1.email_id,t.grade_name=document.getElementById("cmb_grade").options[document.getElementById("cmb_grade").selectedIndex].text,a.BUSY.IsBusy=!1,r.lbl_show=!0,r.lbl_msg="Application Submitted Sucessfully with application number "+t.admission_number,r.show_details()),r.Insertmsg1="",r.edt=""})},r.NewSave=function(e){e?"15"==r.edt.grade_code||"16"==r.edt.grade_code?null==r.edt.current_fyschool_name||""==r.edt.current_fyschool_name?swal({title:"Alert",text:"F.Y Last Institute Name is Required.",showCloseButton:!0,width:450}):null==r.edt.sims_fyadmission_marks_obtained_sem1||""==r.edt.sims_fyadmission_marks_obtained_sem1||null==r.edt.sims_fyadmission_marks_out_of_Sem1||""==r.edt.sims_fyadmission_marks_out_of_Sem1?swal({title:"Alert",text:"F.Y Last Marks Obtained Sem-I is Required.",showCloseButton:!0,width:450}):null==r.edt.sims_fyadmission_marks_obtained_sem2||""==r.edt.sims_fyadmission_marks_obtained_sem2||null==r.edt.sims_fyadmission_marks_out_of_Sem2||""==r.edt.sims_fyadmission_marks_out_of_Sem2?swal({title:"Alert",text:"F.Y Last Marks Obtained Sem-II is Required.",showCloseButton:!0,width:450}):r.NewSaveF():r.NewSaveF():swal({title:"Alert",text:"Application incomplete, Kindly fill all the Mandatory Fields.",showCloseButton:!0,width:450})},r.NewSave1=function(e){var t;e?1==r.edt.sibling_attend?null==r.edt.parent_id||""==r.edt.parent_id||null==r.edt.sibling_enroll||""==r.edt.sibling_enroll?swal({title:"Alert",text:"Parent Id And Enroll No are Required",showCloseButton:!0,width:450}):(a.BUSY.IsBusy=!0,(t=r.edt).red_id=d,t.email_id=email,t.opr="I",n.post(r.apiurl+"api/common/Admission/CUDInsertAdmission",t).then(function(e){r.Insertmsg1=e.data,"Error"==e.status?r.lbl_msg="APPLICATION FORM SUBMITTED SUCCESSFULLY BUT WITH OUT APPLICATION NUMBER":(t.admission_number=r.Insertmsg1.admission_number,t.email_id=r.Insertmsg1.email_id,t.grade_name=document.getElementById("cmb_grade").options[document.getElementById("cmb_grade").selectedIndex].text,a.BUSY.IsBusy=!1,r.lbl_show=!0,r.lbl_msg="Application Submitted Sucessfully with application number "+t.admission_number,r.show_details()),r.Insertmsg1="",r.edt=""})):(a.BUSY.IsBusy=!0,(t=r.edt).red_id=d,t.email_id=email,t.opr="I",n.post(r.apiurl+"api/common/Admission/CUDInsertAdmission",t).then(function(e){r.Insertmsg1=e.data,e.data&&(t.admission_number=r.Insertmsg1.admission_number,t.email_id=r.Insertmsg1.email_id,t.grade_name=document.getElementById("cmb_grade").options[document.getElementById("cmb_grade").selectedIndex].text,a.BUSY.IsBusy=!1,r.lbl_show=!0,r.lbl_msg="Application Submitted Sucessfully with application number "+t.admission_number,r.show_details()),r.Insertmsg1="",r.edt=""})):swal({title:"Alert",text:"Application incomplete, Kindly fill all the Mandatory Fields.",showCloseButton:!0,width:450})},r.GetFatherSumAddr=function(){var e=r.edt,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("cmb_father_country").options[document.getElementById("cmb_father_country").selectedIndex].text,i=document.getElementById("txt_father_state").options[document.getElementById("txt_father_state").selectedIndex].text,d=document.getElementById("txt_father_city").options[document.getElementById("txt_father_city").selectedIndex].text,t=(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+=0d.sectionlst1.section_strength?swal({title:"Alert",text:"Section Strength is Full.If You still want to Continue?",showCloseButton:!0,width:380}).then(function(e){e?d.adm_update():($("#cmb_section").css("background-color","#E5E9EC"),$('.nav-tabs a[href="#admtab1"]').tab("show"))}):d.adm_update())},d.adm_update=function(){null==d.edt.home_country_isdcode&&(d.edt.home_country_isdcode=""),null==d.edt.home_phone&&(d.edt.home_phone="");var e={admission_number:c,appl_num:d.edt.appl_num,pros_num:d.edt.pros_num,pros_appl_num:d.edt.pros_appl_num,admission_date:d.edt.admission_date,school_code:d.edt.school_code,curr_code:d.edt.curr_code,academic_year:d.edt.academic_year,grade_code:d.edt.grade_code,section_code:d.edt.section_code,term_code:d.edt.term_code,tent_join_date:d.edt.tent_join_date,sims_student_emergency_contact_number1:d.edt.sims_student_emergency_contact_number1,sims_student_emergency_contact_name1:d.edt.sims_student_emergency_contact_name1,first_name:d.edt.first_name,middle_name:d.edt.middle_name,last_name:d.edt.last_name,family_name:d.edt.family_name,first_name_ot:d.edt.first_name_ot,midd_name_ot:d.edt.midd_name_ot,last_name_ot:d.edt.last_name_ot,family_name_ot:d.edt.family_name_ot,nicke_name:d.edt.nicke_name,birth_date:d.edt.birth_date,comm_date:d.edt.comm_date,birth_country_code:d.edt.birth_country_code,nationality_code:d.edt.nationality_code,ethinicity_code:d.edt.ethinicity_code,gender_code:d.edt.gender_code,religion_code:d.edt.religion_code,passport_num:d.edt.passport_num,passport_issue_date:d.edt.passport_issue_date,passport_expiry:d.edt.passport_expiry,passport_issue_auth:d.edt.passport_issue_auth,passport_issue_place:d.edt.passport_issue_place,visa_number:d.edt.visa_number,visa_type:d.edt.visa_type,visa_issuing_authority:d.edt.visa_issuing_authority,visa_issue_date:d.edt.visa_issue_date,visa_expiry_date:d.edt.visa_expiry_date,visa_issuing_place:d.edt.visa_issuing_place,national_id:d.edt.national_id,national_id_issue_date:d.edt.national_id_issue_date,national_id_expiry_date:d.edt.national_id_expiry_date,sibling_status:d.edt.sibling_status,parent_id:d.edt.parent_id,sibling_enroll:d.edt.sibling_enroll,sibling_name:d.edt.sibling_name,sibling_dob:d.edt.sibling_dob,sibling_school_code:d.edt.sibling_school_code,employee_type:d.edt.employee_type,employee_code:d.edt.employee_code,employee_school_code:d.edt.employee_school_code,motherTounge_language_code:d.edt.motherTounge_language_code,main_language_code:d.edt.main_language_code,main_language_r_code:d.edt.main_language_r_code,main_language_w_code:d.edt.main_language_w_code,main_language_s_code:d.edt.main_language_s_code,primary_contact_code:d.edt.primary_contact_code,primary_contact_pref_code:d.edt.primary_contact_pref_code,fee_payment_contact_pref_code:d.edt.fee_payment_contact_pref_code,transport_status:d.edt.transport_status,transport_desc:d.edt.transport_desc,father_salutation_code:d.edt.father_salutation_code,father_first_name:d.edt.father_first_name,father_middle_name:d.edt.father_middle_name,father_last_name:d.edt.father_last_name,father_family_name:d.edt.father_family_name,father_family_name_ot:d.edt.father_family_name_ot,father_nationality1_code:d.edt.father_nationality1_code,father_nationality2_code:d.edt.father_nationality2_code,father_appartment_number:d.edt.father_appartment_number,father_building_number:d.edt.father_building_number,father_street_number:d.edt.father_street_number,father_area_number:d.edt.father_area_number,father_city:d.edt.father_city,father_state:d.edt.father_state,father_country_code:d.edt.father_country_code,father_summary_address:d.edt.father_summary_address,father_po_box:d.edt.father_po_box,father_phone:d.edt.father_phone,father_email:d.edt.father_email,father_mobile:d.edt.father_mobile,father_fax:d.edt.father_fax,father_occupation:d.edt.father_occupation,father_company:d.edt.father_company,father_passport_number:d.edt.father_passport_number,sims_admission_father_national_id:d.edt.sims_admission_father_national_id,guardian_salutation_code:d.edt.guardian_salutation_code,guardian_first_name:d.edt.guardian_first_name,guardian_middle_name:d.edt.guardian_middle_name,guardian_last_name:d.edt.guardian_last_name,guardian_family_name:d.edt.guardian_family_name,guardian_nationality1_code:d.edt.guardian_nationality1_code,guardian_nationality2_code:d.edt.guardian_nationality2_code,guardian_appartment_number:d.edt.guardian_appartment_number,guardian_building_number:d.edt.guardian_building_number,guardian_street_number:d.edt.guardian_street_number,guardian_area_number:d.edt.guardian_area_number,guardian_city:d.edt.guardian_city,guardian_state:d.edt.guardian_state,guardian_country_code:d.edt.guardian_country_code,guardian_summary_address:d.edt.guardian_summary_address,guardian_po_box:d.edt.guardian_po_box,guardian_phone:d.edt.guardian_phone,guardian_mobile:d.edt.guardian_mobile,guardian_fax:d.edt.guardian_fax,guardian_email:d.edt.guardian_email,guardian_occupation:d.edt.guardian_occupation,guardian_company:d.edt.guardian_company,guardian_passport_number:d.edt.guardian_passport_number,guardian_relationship_code:d.edt.guardian_relationship_code,mother_salutation_code:d.edt.mother_salutation_code,mother_first_name:d.edt.mother_first_name,mother_middle_name:d.edt.mother_middle_name,mother_last_name:d.edt.mother_last_name,mother_family_name:d.edt.mother_family_name,mother_name_ot:d.edt.mother_name_ot,mother_nationality1_code:d.edt.mother_nationality1_code,mother_nationality2_code:d.edt.mother_nationality2_code,mother_appartment_number:d.edt.mother_appartment_number,mother_building_number:d.edt.mother_building_number,mother_street_number:d.edt.mother_street_number,mother_area_number:d.edt.mother_area_number,mother_city:d.edt.mother_city,mother_state:d.edt.mother_state,mother_country_code:d.edt.mother_country_code,mother_summary_address:d.edt.mother_summary_address,mother_po_box:d.edt.mother_po_box,mother_phone:d.edt.mother_phone,mother_mobile:d.edt.mother_mobile,mother_fax:d.edt.mother_fax,mother_email:d.edt.mother_email,mother_occupation:d.edt.mother_occupation,mother_passport_number:d.edt.mother_passport_number,current_school_status:d.edt.current_school_status,current_school_name:d.edt.current_school_name,current_school_enroll_number:d.edt.current_school_enroll_number,current_school_grade:d.edt.current_school_grade,current_school_cur:d.edt.current_school_cur,current_school_from_date:d.edt.current_school_from_date,current_school_to_date:d.edt.current_school_to_date,current_school_language:d.edt.current_school_language,current_school_head_teacher:d.edt.current_school_head_teacher,current_school_phone:d.edt.current_school_phone,current_school_fax:d.edt.current_school_fax,current_school_city:d.edt.current_school_city,current_school_country_code:d.edt.current_school_country_code,current_school_address:d.edt.current_school_address,marketing_code:d.edt.marketing_code,marketing_description:d.edt.marketing_description,parent_status_code:d.edt.parent_status_code,legal_custody_code:d.edt.legal_custody_code,health_card_number:d.edt.health_card_number,health_card_issue_date:d.edt.health_card_issue_date,health_card_issuing_authority:d.edt.health_card_issuing_authority,blood_group_code:d.edt.blood_group_code,medication_status:d.edt.medication_status,medication_desc:d.edt.medication_desc,disability_status:d.edt.disability_status,disability_desc:d.edt.disability_desc,behaviour_status:d.edt.behaviour_status,behaviour_desc:d.edt.behaviour_desc,health_restriction_status:d.edt.health_restriction_status,health_restriction_desc:d.edt.health_restriction_desc,health_hearing_status:d.edt.health_hearing_status,health_hearing_desc:d.edt.health_hearing_desc,health_vision_status:d.edt.health_vision_status,health_vision_desc:d.edt.health_vision_desc,health_other_status:d.edt.health_other_status,health_other_desc:d.edt.health_other_desc,gifted_status:d.edt.gifted_status,gifted_desc:d.edt.gifted_desc,music_status:d.edt.music_status,music_desc:d.edt.music_desc,sports_status:d.edt.sports_status,sports_desc:d.edt.sports_desc,language_support_status:d.edt.language_support_status,language_support_desc:d.edt.language_support_desc,declaration_status:d.edt.declaration_status,fees_paid_status:d.edt.fees_paid_status,fee_category_code:d.edt.fee_category_code,ip:d.edt.ip,dns:d.edt.dns,user_code:d.edt.user_code,status:d.edt.status,sims_student_attribute1:d.edt.sims_student_attribute1,sims_student_attribute2:d.edt.sims_student_attribute2,sims_student_attribute3:d.edt.sims_student_attribute3,sims_student_attribute4:d.edt.sims_student_attribute4,sims_student_health_respiratory_status:d.edt.sims_student_health_respiratory_status,sims_student_health_respiratory_desc:d.edt.sims_student_health_respiratory_desc,sims_student_health_hay_fever_status:d.edt.sims_student_health_hay_fever_status,sims_student_health_hay_fever_desc:d.edt.sims_student_health_hay_fever_desc,sims_student_health_epilepsy_status:d.edt.sims_student_health_epilepsy_status,sims_student_health_epilepsy_desc:d.edt.sims_student_health_epilepsy_desc,sims_student_health_skin_status:d.edt.sims_student_health_skin_status,sims_student_health_skin_desc:d.edt.sims_student_health_skin_desc,sims_student_health_diabetes_status:d.edt.sims_student_health_diabetes_status,sims_student_health_diabetes_desc:d.edt.sims_student_health_diabetes_desc,sims_student_health_surgery_status:d.edt.sims_student_health_surgery_status,sims_student_health_surgery_desc:d.edt.sims_student_health_surgery_desc,sims_admission_recommendation:d.edt.sims_admission_recommendation,sims_admission_mother_national_id:d.edt.sims_admission_mother_national_id,sims_admission_guardian_national_id:d.edt.sims_admission_guardian_national_id,sims_fee_month_code:d.edt.sims_fee_month_code,sims_student_attribute5:d.edt.sims_student_attribute5,sims_student_attribute6:d.edt.sims_student_attribute6,sims_student_attribute7:d.edt.sims_student_attribute7,sims_student_attribute8:d.edt.sims_student_attribute8,sims_student_attribute9:d.edt.sims_student_attribute9,sims_student_attribute10:d.edt.sims_student_attribute10,sims_student_attribute11:d.edt.sims_student_attribute11,sims_student_attribute12:d.edt.sims_student_attribute12,sims_admission_second_lang_code:d.edt.sims_admission_second_lang_code,sims_admission_third_lang_code:d.edt.sims_admission_third_lang_code,sims_admission_subject_code:d.edt.sims_admission_second_lang_code+","+d.edt.sims_admission_third_lang_code};r.push(e),n.post(i.apiUrl+"api/common/Admission_dpsd/ApproveStudent",r).then(function(e){d.display=!0,d.msg1=e.data,console.log(d.msg1)}),d.grid1=!0,$("#myModal1").modal({backdrop:"static",keyboard:!0})},d.modal_cancel=function(){$("#myModal1").modal("hide"),console.log(t.Class),s(function(){"siso"==n.defaults.headers.common.schoolId||"asis"==n.defaults.headers.common.schoolId||"abqis"==n.defaults.headers.common.schoolId||"abps"==n.defaults.headers.common.schoolId?e.go("main.Dasiso",{Class:t.Class}):e.go("main.Dasdps",{Class:t.Class})},300)},d.get_studentfee=function(){e.go("main.Sim043")},d.back=function(){d.dd=!0,window.localStorage.Admflag=d.dd,d.modal_cancel()},d.schoolcheck=function(){1==d.edt.current_school_status?d.school_edit=!1:d.school_edit=!0},d.chk_desc=function(){1==d.edt.marketing_code?d.desc_edit=!1:d.desc_edit=!0},d.chk_cicumstances=function(){1==d.edt.parent_status_code?d.circum_edit=!1:d.circum_edit=!0},d.chk_disab_status=function(){1==d.edt.disability_status?d.disab_edit=!1:d.disab_edit=!0},d.chk_health_res=function(){1==d.edt.health_restriction_status?d.healthres_edit=!1:d.healthres_edit=!0},d.chk_medic_status=function(){1==d.edt.medication_status?d.med_edit=!1:d.med_edit=!0},d.chk_other=function(){1==d.edt.health_other_status?d.other_edit=!1:d.other_edit=!0},d.chk_hearing=function(){1==d.edt.health_hearing_status?d.hearing_edit=!1:d.hearing_edit=!0},d.chk_vision=function(){1==d.edt.health_vision_status?d.health_vision_edit=!1:d.health_vision_edit=!0},d.chk_behaviour=function(){1==d.edt.behaviour_status?d.behaviour_edit=!1:d.behaviour_edit=!0},d.chk_gifted_status=function(){1==d.edt.gifted_status?d.gifted_edit=!1:d.gifted_edit=!0},d.chk_music_pro=function(){1==d.edt.music_status?d.music_edit=!1:d.music_edit=!0},d.chk_sport_pro=function(){1==d.edt.sports_status?d.sport_edit=!1:d.sport_edit=!0},d.chk_lang_sup=function(){1==d.edt.language_support_status?d.lang_sup_edit=!1:d.lang_sup_edit=!0},d.chk_Pri_contact=function(){1==d.edt.primary_contact_code?d.pricont_edit=!1:d.pricont_edit=!0},d.chk_transport_requin=function(){1==d.edt.transport_status?d.transreq_edit=!1:d.transreq_edit=!0},d.chk_employee=function(){1==document.getElementById("chk_employee").checked?document.getElementById("txt_emp_code").disabled=!1:document.getElementById("txt_emp_code").disabled=!0},d.chk_Sibling_attend=function(){1==d.edt.sibling_status?d.disableparent=!1:d.disableparent=!0},d.chk_learn_ther=function(){1==d.edt.sims_admission_learning_therapy_status?d.learnther_edit=!1:d.learnther_edit=!0},d.chk_spec_edu=function(){1==d.edt.sims_admission_special_education_status?d.spec_edu_edit=!1:d.spec_edu_edit=!0},d.chk_falled_grade=function(){1==d.edt.sims_admission_falled_grade_status?d.falledgrade_edit=!1:d.falledgrade_edit=!0},d.chk_commun=function(){1==d.edt.sims_admission_communication_status?d.commun_edit=!1:d.commun_edit=!0},d.chk_spec_activies=function(){1==d.edt.sims_admission_specialAct_status?d.specActiv_edit=!1:d.specActiv_edit=!0},d.chk_studyingin=function(){1==d.edt.sibling_status?(d.Study_edit=!1,document.getElementById("t3"),document.getElementById("t4"),document.getElementById("t5"),d.t=!1):(d.Study_edit=!0,document.getElementById("t3"),document.getElementById("t4"),document.getElementById("t5"),d.t=!0)},d.chk_ticking=function(){1==d.edt.declaration_status?(d.tick_edit=!1,d.confirm_edit=!1):(d.tick_edit=!0,d.confirm_edit=!0)},d.chk_copy_mother_add=function(){1==d.edt.copy_add?(d.edt.mother_appartment_number=d.edt.father_appartment_number,d.edt.mother_area_number=d.edt.father_area_number,d.edt.mother_building_number=d.edt.father_building_number,d.edt.mother_street_number=d.edt.father_street_number,d.edt.mother_city=d.edt.father_city,d.edt.mother_state=d.edt.father_state,d.edt.mother_country_code=d.edt.father_country_code,d.edt.mother_po_box=d.edt.father_po_box,d.edt.mother_nationality1_code=d.edt.father_nationality1_code,d.edt.mother_nationality2_code=d.edt.father_nationality2_code,d.edt.mother_summary_address=d.edt.father_summary_address,d.edt.mother_phone=d.edt.father_phone,d.edt.mother_po_box=d.edt.father_po_box,d.edt.mother_mobile=d.edt.father_mobile,d.edt.mother_occupation=d.edt.father_occupation,d.edt.mother_email=d.edt.father_email,d.edt.mother_company=d.edt.father_company):(d.edt.mother_appartment_number="",d.edt.mother_area_number="",d.edt.mother_building_number="",d.edt.mother_street_number="",d.edt.mother_city="",d.edt.mother_state="",d.edt.mother_country_code="",d.edt.mother_po_box="",d.edt.mother_nationality1_code="",d.edt.mother_nationality2_code="",d.edt.mother_summary_address="",d.edt.mother_phone="",d.edt.mother_po_box="",d.edt.mother_mobile="",d.edt.mother_occupation="",d.edt.mother_email="",d.edt.mother_company="")},d.chk_copy_guar_add1=function(){1==d.edt.copy_add1?(d.edt.guardian_appartment_number=d.edt.father_appartment_number,d.edt.guardian_area_number=d.edt.father_area_number,d.edt.guardian_building_number=d.edt.father_building_number,d.edt.guardian_street_number=d.edt.father_street_number,d.edt.guardian_city=d.edt.father_city,d.edt.guardian_state=d.edt.father_state,d.edt.guardian_country_code=d.edt.father_country_code,d.edt.guardian_po_box=d.edt.father_po_box,d.edt.guardian_nationality1_code=d.edt.father_nationality1_code,d.edt.guardian_nationality2_code=d.edt.father_nationality2_code,d.edt.guardian_summary_address=d.edt.father_summary_address,d.edt.guardian_phone=d.edt.father_phone,d.edt.guardian_po_box=d.edt.father_po_box,d.edt.guardian_mobile=d.edt.father_mobile,d.edt.guardian_occupation=d.edt.father_occupation,d.edt.guardian_email=d.edt.father_email,d.edt.guardian_company=d.edt.father_company):(d.edt.guardian_appartment_number="",d.edt.guardian_area_number="",d.edt.guardian_building_number="",d.edt.guardian_street_number="",d.edt.guardian_city="",d.edt.guardian_state="",d.edt.guardian_country_code="",d.edt.guardian_po_box="",d.edt.guardian_nationality1_code="",d.edt.guardian_nationality2_code="",d.edt.guardian_summary_address="",d.edt.guardian_phone="",d.edt.guardian_po_box="",d.edt.guardian_mobile="",d.edt.guardian_occupation="",d.edt.guardian_email="",d.edt.guardian_company="")},d.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+=0m.pageCount3()-5?m.pageCount3()-5+1:t;a=r.obj_age[e].sims_birth_date_to)&&(swal({title:"Birth Date",text:"For KG 1 admissions, child must be minimum 3.8 year old and can be maximum 4.11 year old as of 2017-03-31",showCloseButton:!0,width:450}),r.edt.birth_date=""),"02"==r.edt.grade_code&&(r.edt.birth_date<=r.obj_age[e].sims_birth_date_from&&(swal({title:"Birth Date",text:"For KG 2 admissions, child must be minimum 4.8 year old and can be maximum 5.11 year old as of 2017-03-31",showCloseButton:!0,width:450}),r.edt.birth_date=""),r.edt.birth_date>=r.obj_age[e].sims_birth_date_to)&&(swal({title:"Birth Date",text:"For KG 2 admissions, child must be minimum 4.8 year old and can be maximum 5.11 year old as of 2017-03-31",showCloseButton:!0,width:450}),r.edt.birth_date=""),"03"==r.edt.grade_code&&(r.edt.birth_date<=r.obj_age[e].sims_birth_date_from&&(swal({title:"Birth Date",text:"For Grade 1 admissions, child must be minimum 5.8 year old and can be maximum 6.11 year old as of 2017-03-31",showCloseButton:!0,width:480}),r.edt.birth_date=""),r.edt.birth_date>=r.obj_age[e].sims_birth_date_to)&&(swal({title:"Birth Date",text:"For Grade 1 admissions, child must be minimum 5.8 year old and can be maximum 6.11 year old as of 2017-03-31",showCloseButton:!0,width:480}),r.edt.birth_date="")},r.createdate=function(e){var t=e.split("/")[0],a=e.split("/")[1],e=e.split("/")[2],e=(date1=e+"/"+t+"/"+a,r.CurrentDate=new Date,new Date),t=e.getMonth()+1,a=e.getDate(),e=(e.getFullYear(),t<10&&(t="0"+t),a<10&&(a="0"+a),date3=e.getFullYear()+"/"+t+"/"+a,e.getFullYear()-4+"/"+t+"/"+a);(date1>=date3||date1<=e)&&(swal({title:"Birth Date",text:"Age Should Not be less than 4 yrs or greater than current year",imageUrl:"assets/img/notification-alert.png"}),document.getElementById("dp_birth_date").value="")},r.NewSaveF=function(){a.BUSY.IsBusy=!0;var t=r.edt;t.red_id=d,t.email_id=email,t.opr="I";_.post(r.apiurl+"api/common/Admission/CUDInsertAdmission",t).then(function(e){r.Insertmsg1=e.data,e.data&&(t.admission_number=r.Insertmsg1.admission_number,t.email_id=r.Insertmsg1.email_id,t.grade_name=document.getElementById("cmb_grade").options[document.getElementById("cmb_grade").selectedIndex].text,a.BUSY.IsBusy=!1,r.lbl_show=!0,r.lbl_msg="Application Submitted Sucessfully with application number "+t.admission_number,r.show_details()),r.Insertmsg1="",r.edt=""})},r.NewSave=function(e){e?"15"==r.edt.grade_code||"16"==r.edt.grade_code?null==r.edt.current_fyschool_name||""==r.edt.current_fyschool_name?swal({title:"Alert",text:"F.Y Last Institute Name is Required.",showCloseButton:!0,width:450}):null==r.edt.sims_fyadmission_marks_obtained_sem1||""==r.edt.sims_fyadmission_marks_obtained_sem1||null==r.edt.sims_fyadmission_marks_out_of_Sem1||""==r.edt.sims_fyadmission_marks_out_of_Sem1?swal({title:"Alert",text:"F.Y Last Marks Obtained Sem-I is Required.",showCloseButton:!0,width:450}):null==r.edt.sims_fyadmission_marks_obtained_sem2||""==r.edt.sims_fyadmission_marks_obtained_sem2||null==r.edt.sims_fyadmission_marks_out_of_Sem2||""==r.edt.sims_fyadmission_marks_out_of_Sem2?swal({title:"Alert",text:"F.Y Last Marks Obtained Sem-II is Required.",showCloseButton:!0,width:450}):r.NewSaveF():r.NewSaveF():swal({title:"Alert",text:"Application incomplete, Kindly fill all the Mandatory Fields.",showCloseButton:!0,width:450})},r.NewSave1=function(e){var t;e?1==r.edt.sibling_attend?null==r.edt.parent_id||""==r.edt.parent_id||null==r.edt.sibling_enroll||""==r.edt.sibling_enroll?swal({title:"Alert",text:"Parent Id And Enroll No are Required",showCloseButton:!0,width:450}):(a.BUSY.IsBusy=!0,(t=r.edt).red_id=d,t.email_id=email,t.opr="I",_.post(r.apiurl+"api/common/Admission/CUDInsertAdmission",t).then(function(e){r.Insertmsg1=e.data,"Error"==e.status?r.lbl_msg="APPLICATION FORM SUBMITTED SUCCESSFULLY BUT WITH OUT APPLICATION NUMBER":(t.admission_number=r.Insertmsg1.admission_number,t.email_id=r.Insertmsg1.email_id,t.grade_name=document.getElementById("cmb_grade").options[document.getElementById("cmb_grade").selectedIndex].text,a.BUSY.IsBusy=!1,r.lbl_show=!0,r.lbl_msg="Application Submitted Sucessfully with application number "+t.admission_number,r.show_details()),r.Insertmsg1="",r.edt=""})):(a.BUSY.IsBusy=!0,(t=r.edt).red_id=d,t.email_id=email,t.opr="I",_.post(r.apiurl+"api/common/Admission/CUDInsertAdmission",t).then(function(e){r.Insertmsg1=e.data,e.data&&(t.admission_number=r.Insertmsg1.admission_number,t.email_id=r.Insertmsg1.email_id,t.grade_name=document.getElementById("cmb_grade").options[document.getElementById("cmb_grade").selectedIndex].text,a.BUSY.IsBusy=!1,r.lbl_show=!0,r.lbl_msg="Application Submitted Sucessfully with application number "+t.admission_number,r.show_details()),r.Insertmsg1="",r.edt=""})):swal({title:"Alert",text:"Application incomplete, Kindly fill all the Mandatory Fields.",showCloseButton:!0,width:450})},r.GetFatherSumAddr=function(){var e=r.edt,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("cmb_father_country").options[document.getElementById("cmb_father_country").selectedIndex].text,i=document.getElementById("txt_father_state").options[document.getElementById("txt_father_state").selectedIndex].text,d=document.getElementById("txt_father_city").options[document.getElementById("txt_father_city").selectedIndex].text,t=(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+=0c.sectionlst1.section_strength?swal({title:"Alert",text:"Section Strength is Full.If You still want to Continue?",showCloseButton:!0,width:380}).then(function(e){e?c.adm_update():($("#cmb_section").css("background-color","#E5E9EC"),$('.nav-tabs a[href="#admtab1"]').tab("show"))}):c.adm_update())},c.adm_update=function(){null==c.edt.home_country_isdcode&&(c.edt.home_country_isdcode=""),null==c.edt.home_phone&&(c.edt.home_phone="");var e={admission_number:param,appl_num:c.edt.appl_num,pros_num:c.edt.pros_num,pros_appl_num:c.edt.pros_appl_num,admission_date:c.edt.admission_date,school_code:c.edt.school_code,curr_code:c.edt.curr_code,academic_year:c.edt.academic_year,grade_code:c.edt.grade_code,section_code:c.edt.section_code,term_code:c.edt.term_code,tent_join_date:c.edt.tent_join_date,sims_student_emergency_contact_number1:c.edt.sims_student_emergency_contact_number1,sims_student_emergency_contact_name1:c.edt.sims_student_emergency_contact_name1,first_name:c.edt.first_name,middle_name:c.edt.middle_name,last_name:c.edt.last_name,family_name:c.edt.family_name,first_name_ot:c.edt.first_name_ot,midd_name_ot:c.edt.midd_name_ot,last_name_ot:c.edt.last_name_ot,family_name_ot:c.edt.family_name_ot,nicke_name:c.edt.nicke_name,birth_date:c.edt.birth_date,comm_date:c.edt.comm_date,birth_country_code:c.edt.birth_country_code,nationality_code:c.edt.nationality_code,ethinicity_code:c.edt.ethinicity_code,gender_code:c.edt.gender_code,religion_code:c.edt.religion_code,passport_num:c.edt.passport_num,passport_issue_date:c.edt.passport_issue_date,passport_expiry:c.edt.passport_expiry,passport_issue_auth:c.edt.passport_issue_auth,passport_issue_place:c.edt.passport_issue_place,visa_number:c.edt.visa_number,visa_type:c.edt.visa_type,visa_issuing_authority:c.edt.visa_issuing_authority,visa_issue_date:c.edt.visa_issue_date,visa_expiry_date:c.edt.visa_expiry_date,visa_issuing_place:c.edt.visa_issuing_place,national_id:c.edt.national_id,national_id_issue_date:c.edt.national_id_issue_date,national_id_expiry_date:c.edt.national_id_expiry_date,sibling_status:c.edt.sibling_status,parent_id:c.edt.parent_id,sibling_enroll:c.edt.sibling_enroll,sibling_name:c.edt.sibling_name,sibling_dob:c.edt.sibling_dob,sibling_school_code:c.edt.sibling_school_code,employee_type:c.edt.employee_type,employee_code:c.edt.employee_code,employee_school_code:c.edt.employee_school_code,motherTounge_language_code:c.edt.motherTounge_language_code,main_language_code:c.edt.main_language_code,main_language_r_code:c.edt.main_language_r_code,main_language_w_code:c.edt.main_language_w_code,main_language_s_code:c.edt.main_language_s_code,primary_contact_code:c.edt.primary_contact_code,primary_contact_pref_code:c.edt.primary_contact_pref_code,fee_payment_contact_pref_code:c.edt.fee_payment_contact_pref_code,transport_status:c.edt.transport_status,transport_desc:c.edt.transport_desc,father_salutation_code:c.edt.father_salutation_code,father_first_name:c.edt.father_first_name,father_middle_name:c.edt.father_middle_name,father_last_name:c.edt.father_last_name,father_family_name:c.edt.father_family_name,father_family_name_ot:c.edt.father_family_name_ot,father_nationality1_code:c.edt.father_nationality1_code,father_nationality2_code:c.edt.father_nationality2_code,father_appartment_number:c.edt.father_appartment_number,father_building_number:c.edt.father_building_number,father_street_number:c.edt.father_street_number,father_area_number:c.edt.father_area_number,father_city:c.edt.father_city,father_state:c.edt.father_state,father_country_code:c.edt.father_country_code,father_summary_address:c.edt.father_summary_address,father_po_box:c.edt.father_po_box,father_phone:c.edt.father_phone,father_email:c.edt.father_email,father_mobile:c.edt.father_mobile,father_fax:c.edt.father_fax,father_occupation:c.edt.father_occupation,father_company:c.edt.father_company,father_passport_number:c.edt.father_passport_number,sims_admission_father_national_id:c.edt.sims_admission_father_national_id,guardian_salutation_code:c.edt.guardian_salutation_code,guardian_first_name:c.edt.guardian_first_name,guardian_middle_name:c.edt.guardian_middle_name,guardian_last_name:c.edt.guardian_last_name,guardian_family_name:c.edt.guardian_family_name,guardian_nationality1_code:c.edt.guardian_nationality1_code,guardian_nationality2_code:c.edt.guardian_nationality2_code,guardian_appartment_number:c.edt.guardian_appartment_number,guardian_building_number:c.edt.guardian_building_number,guardian_street_number:c.edt.guardian_street_number,guardian_area_number:c.edt.guardian_area_number,guardian_city:c.edt.guardian_city,guardian_state:c.edt.guardian_state,guardian_country_code:c.edt.guardian_country_code,guardian_summary_address:c.edt.guardian_summary_address,guardian_po_box:c.edt.guardian_po_box,guardian_phone:c.edt.guardian_phone,guardian_mobile:c.edt.guardian_mobile,guardian_fax:c.edt.guardian_fax,guardian_email:c.edt.guardian_email,guardian_occupation:c.edt.guardian_occupation,guardian_company:c.edt.guardian_company,guardian_passport_number:c.edt.guardian_passport_number,guardian_relationship_code:c.edt.guardian_relationship_code,mother_salutation_code:c.edt.mother_salutation_code,mother_first_name:c.edt.mother_first_name,mother_middle_name:c.edt.mother_middle_name,mother_last_name:c.edt.mother_last_name,mother_family_name:c.edt.mother_family_name,mother_name_ot:c.edt.mother_name_ot,mother_nationality1_code:c.edt.mother_nationality1_code,mother_nationality2_code:c.edt.mother_nationality2_code,mother_appartment_number:c.edt.mother_appartment_number,mother_building_number:c.edt.mother_building_number,mother_street_number:c.edt.mother_street_number,mother_area_number:c.edt.mother_area_number,mother_city:c.edt.mother_city,mother_state:c.edt.mother_state,mother_country_code:c.edt.mother_country_code,mother_summary_address:c.edt.mother_summary_address,mother_po_box:c.edt.mother_po_box,mother_phone:c.edt.mother_phone,mother_mobile:c.edt.mother_mobile,mother_fax:c.edt.mother_fax,mother_email:c.edt.mother_email,mother_occupation:c.edt.mother_occupation,mother_passport_number:c.edt.mother_passport_number,current_school_status:c.edt.current_school_status,current_school_name:c.edt.current_school_name,current_school_enroll_number:c.edt.current_school_enroll_number,current_school_grade:c.edt.current_school_grade,current_school_cur:c.edt.current_school_cur,current_school_from_date:c.edt.current_school_from_date,current_school_to_date:c.edt.current_school_to_date,current_school_language:c.edt.current_school_language,current_school_head_teacher:c.edt.current_school_head_teacher,current_school_phone:c.edt.current_school_phone,current_school_fax:c.edt.current_school_fax,current_school_city:c.edt.current_school_city,current_school_country_code:c.edt.current_school_country_code,current_school_address:c.edt.current_school_address,marketing_code:c.edt.marketing_code,marketing_description:c.edt.marketing_description,parent_status_code:c.edt.parent_status_code,legal_custody_code:c.edt.legal_custody_code,health_card_number:c.edt.health_card_number,health_card_issue_date:c.edt.health_card_issue_date,health_card_issuing_authority:c.edt.health_card_issuing_authority,blood_group_code:c.edt.blood_group_code,medication_status:c.edt.medication_status,medication_desc:c.edt.medication_desc,disability_status:c.edt.disability_status,disability_desc:c.edt.disability_desc,behaviour_status:c.edt.behaviour_status,behaviour_desc:c.edt.behaviour_desc,health_restriction_status:c.edt.health_restriction_status,health_restriction_desc:c.edt.health_restriction_desc,health_hearing_status:c.edt.health_hearing_status,health_hearing_desc:c.edt.health_hearing_desc,health_vision_status:c.edt.health_vision_status,health_vision_desc:c.edt.health_vision_desc,health_other_status:c.edt.health_other_status,health_other_desc:c.edt.health_other_desc,gifted_status:c.edt.gifted_status,gifted_desc:c.edt.gifted_desc,music_status:c.edt.music_status,music_desc:c.edt.music_desc,sports_status:c.edt.sports_status,sports_desc:c.edt.sports_desc,language_support_status:c.edt.language_support_status,language_support_desc:c.edt.language_support_desc,declaration_status:c.edt.declaration_status,fees_paid_status:c.edt.fees_paid_status,fee_category_code:c.edt.fee_category_code,ip:c.edt.ip,dns:c.edt.dns,user_code:c.edt.user_code,status:c.edt.status,sims_student_attribute1:c.edt.sims_student_attribute1,sims_student_attribute2:c.edt.sims_student_attribute2,sims_student_attribute3:c.edt.sims_student_attribute3,sims_student_attribute4:c.edt.sims_student_attribute4,sims_student_health_respiratory_status:c.edt.sims_student_health_respiratory_status,sims_student_health_respiratory_desc:c.edt.sims_student_health_respiratory_desc,sims_student_health_hay_fever_status:c.edt.sims_student_health_hay_fever_status,sims_student_health_hay_fever_desc:c.edt.sims_student_health_hay_fever_desc,sims_student_health_epilepsy_status:c.edt.sims_student_health_epilepsy_status,sims_student_health_epilepsy_desc:c.edt.sims_student_health_epilepsy_desc,sims_student_health_skin_status:c.edt.sims_student_health_skin_status,sims_student_health_skin_desc:c.edt.sims_student_health_skin_desc,sims_student_health_diabetes_status:c.edt.sims_student_health_diabetes_status,sims_student_health_diabetes_desc:c.edt.sims_student_health_diabetes_desc,sims_student_health_surgery_status:c.edt.sims_student_health_surgery_status,sims_student_health_surgery_desc:c.edt.sims_student_health_surgery_desc,sims_admission_recommendation:c.edt.sims_admission_recommendation,sims_admission_mother_national_id:c.edt.sims_admission_mother_national_id,sims_admission_guardian_national_id:c.edt.sims_admission_guardian_national_id,sims_fee_month_code:c.edt.sims_fee_month_code,sims_student_attribute5:c.edt.sims_student_attribute5,sims_student_attribute6:c.edt.sims_student_attribute6,sims_student_attribute7:c.edt.sims_student_attribute7,sims_student_attribute8:c.edt.sims_student_attribute8,sims_student_attribute9:c.edt.sims_student_attribute9,sims_student_attribute10:c.edt.sims_student_attribute10,sims_student_attribute11:c.edt.sims_student_attribute11,sims_student_attribute12:c.edt.sims_student_attribute12,sims_admission_second_lang_code:c.edt.sims_admission_second_lang_code,sims_admission_third_lang_code:c.edt.sims_admission_third_lang_code,sims_admission_subject_code:c.edt.sims_admission_second_lang_code+","+c.edt.sims_admission_third_lang_code};_.push(e),m.post(l.apiUrl+"api/common/Admission_dpsd/ApproveStudent",_).then(function(e){c.display=!0,c.msg1=e.data,console.log(c.msg1)}),c.grid1=!0,$("#myModal1").modal({backdrop:"static",keyboard:!0})},c.get_studentfee=function(){e.go("main.Sim043")},c.schoolcheck=function(){1==c.edt.current_school_status?c.school_edit=!1:c.school_edit=!0},c.chk_desc=function(){1==c.edt.marketing_code?c.desc_edit=!1:c.desc_edit=!0},c.chk_cicumstances=function(){1==c.edt.parent_status_code?c.circum_edit=!1:c.circum_edit=!0},c.chk_disab_status=function(){1==c.edt.disability_status?c.disab_edit=!1:c.disab_edit=!0},c.chk_health_res=function(){1==c.edt.health_restriction_status?c.healthres_edit=!1:c.healthres_edit=!0},c.chk_medic_status=function(){1==c.edt.medication_status?c.med_edit=!1:c.med_edit=!0},c.chk_other=function(){1==c.edt.health_other_status?c.other_edit=!1:c.other_edit=!0},c.chk_hearing=function(){1==c.edt.health_hearing_status?c.hearing_edit=!1:c.hearing_edit=!0},c.chk_vision=function(){1==c.edt.health_vision_status?c.health_vision_edit=!1:c.health_vision_edit=!0},c.chk_behaviour=function(){1==c.edt.behaviour_status?c.behaviour_edit=!1:c.behaviour_edit=!0},c.chk_gifted_status=function(){1==c.edt.gifted_status?c.gifted_edit=!1:c.gifted_edit=!0},c.chk_music_pro=function(){1==c.edt.music_status?c.music_edit=!1:c.music_edit=!0},c.chk_sport_pro=function(){1==c.edt.sports_status?c.sport_edit=!1:c.sport_edit=!0},c.chk_lang_sup=function(){1==c.edt.language_support_status?c.lang_sup_edit=!1:c.lang_sup_edit=!0},c.chk_Pri_contact=function(){1==c.edt.primary_contact_code?c.pricont_edit=!1:c.pricont_edit=!0},c.chk_transport_requin=function(){1==c.edt.transport_status?c.transreq_edit=!1:c.transreq_edit=!0},c.chk_employee=function(){1==document.getElementById("chk_employee").checked?document.getElementById("txt_emp_code").disabled=!1:document.getElementById("txt_emp_code").disabled=!0},c.chk_Sibling_attend=function(){1==c.edt.sibling_status?c.disableparent=!1:c.disableparent=!0},c.chk_learn_ther=function(){1==c.edt.sims_admission_learning_therapy_status?c.learnther_edit=!1:c.learnther_edit=!0},c.chk_spec_edu=function(){1==c.edt.sims_admission_special_education_status?c.spec_edu_edit=!1:c.spec_edu_edit=!0},c.chk_falled_grade=function(){1==c.edt.sims_admission_falled_grade_status?c.falledgrade_edit=!1:c.falledgrade_edit=!0},c.chk_commun=function(){1==c.edt.sims_admission_communication_status?c.commun_edit=!1:c.commun_edit=!0},c.chk_spec_activies=function(){1==c.edt.sims_admission_specialAct_status?c.specActiv_edit=!1:c.specActiv_edit=!0},c.chk_studyingin=function(){1==c.edt.sibling_status?(c.Study_edit=!1,document.getElementById("t3"),document.getElementById("t4"),document.getElementById("t5"),c.t=!1):(c.Study_edit=!0,document.getElementById("t3"),document.getElementById("t4"),document.getElementById("t5"),c.t=!0)},c.chk_ticking=function(){1==c.edt.declaration_status?(c.tick_edit=!1,c.confirm_edit=!1):(c.tick_edit=!0,c.confirm_edit=!0)},c.chk_copy_mother_add=function(){1==c.edt.copy_add?(c.edt.mother_appartment_number=c.edt.father_appartment_number,c.edt.mother_area_number=c.edt.father_area_number,c.edt.mother_building_number=c.edt.father_building_number,c.edt.mother_street_number=c.edt.father_street_number,c.edt.mother_city=c.edt.father_city,c.edt.mother_state=c.edt.father_state,c.edt.mother_country_code=c.edt.father_country_code,c.edt.mother_po_box=c.edt.father_po_box,c.edt.mother_nationality1_code=c.edt.father_nationality1_code,c.edt.mother_nationality2_code=c.edt.father_nationality2_code,c.edt.mother_summary_address=c.edt.father_summary_address,c.edt.mother_phone=c.edt.father_phone,c.edt.mother_po_box=c.edt.father_po_box,c.edt.mother_mobile=c.edt.father_mobile,c.edt.mother_occupation=c.edt.father_occupation,c.edt.mother_email=c.edt.father_email,c.edt.mother_company=c.edt.father_company):(c.edt.mother_appartment_number="",c.edt.mother_area_number="",c.edt.mother_building_number="",c.edt.mother_street_number="",c.edt.mother_city="",c.edt.mother_state="",c.edt.mother_country_code="",c.edt.mother_po_box="",c.edt.mother_nationality1_code="",c.edt.mother_nationality2_code="",c.edt.mother_summary_address="",c.edt.mother_phone="",c.edt.mother_po_box="",c.edt.mother_mobile="",c.edt.mother_occupation="",c.edt.mother_email="",c.edt.mother_company="")},c.chk_copy_guar_add1=function(){1==c.edt.copy_add1?(c.edt.guardian_appartment_number=c.edt.father_appartment_number,c.edt.guardian_area_number=c.edt.father_area_number,c.edt.guardian_building_number=c.edt.father_building_number,c.edt.guardian_street_number=c.edt.father_street_number,c.edt.guardian_city=c.edt.father_city,c.edt.guardian_state=c.edt.father_state,c.edt.guardian_country_code=c.edt.father_country_code,c.edt.guardian_po_box=c.edt.father_po_box,c.edt.guardian_nationality1_code=c.edt.father_nationality1_code,c.edt.guardian_nationality2_code=c.edt.father_nationality2_code,c.edt.guardian_summary_address=c.edt.father_summary_address,c.edt.guardian_phone=c.edt.father_phone,c.edt.guardian_po_box=c.edt.father_po_box,c.edt.guardian_mobile=c.edt.father_mobile,c.edt.guardian_occupation=c.edt.father_occupation,c.edt.guardian_email=c.edt.father_email,c.edt.guardian_company=c.edt.father_company):(c.edt.guardian_appartment_number="",c.edt.guardian_area_number="",c.edt.guardian_building_number="",c.edt.guardian_street_number="",c.edt.guardian_city="",c.edt.guardian_state="",c.edt.guardian_country_code="",c.edt.guardian_po_box="",c.edt.guardian_nationality1_code="",c.edt.guardian_nationality2_code="",c.edt.guardian_summary_address="",c.edt.guardian_phone="",c.edt.guardian_po_box="",c.edt.guardian_mobile="",c.edt.guardian_occupation="",c.edt.guardian_email="",c.edt.guardian_company="")},c.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+=0c.sectionlst1.section_strength?swal({title:"Alert",text:"Section Strength is Full.If You still want to Continue?",showCloseButton:!0,width:380}).then(function(e){e?c.adm_update():($("#cmb_section").css("background-color","#E5E9EC"),$('.nav-tabs a[href="#admtab1"]').tab("show"))}):c.adm_update())},c.adm_update=function(){null==c.edt.home_country_isdcode&&(c.edt.home_country_isdcode=""),null==c.edt.home_phone&&(c.edt.home_phone="");var e={admission_number:param,appl_num:c.edt.appl_num,pros_num:c.edt.pros_num,pros_appl_num:c.edt.pros_appl_num,admission_date:c.edt.admission_date,school_code:c.edt.school_code,curr_code:c.edt.curr_code,academic_year:c.edt.academic_year,grade_code:c.edt.grade_code,section_code:c.edt.section_code,term_code:c.edt.term_code,tent_join_date:c.edt.tent_join_date,sims_student_emergency_contact_number1:c.edt.sims_student_emergency_contact_number1,sims_student_emergency_contact_name1:c.edt.sims_student_emergency_contact_name1,first_name:c.edt.first_name,middle_name:c.edt.middle_name,last_name:c.edt.last_name,family_name:c.edt.family_name,first_name_ot:c.edt.first_name_ot,midd_name_ot:c.edt.midd_name_ot,last_name_ot:c.edt.last_name_ot,family_name_ot:c.edt.family_name_ot,nicke_name:c.edt.nicke_name,birth_date:c.edt.birth_date,comm_date:c.edt.comm_date,birth_country_code:c.edt.birth_country_code,nationality_code:c.edt.nationality_code,ethinicity_code:c.edt.ethinicity_code,gender_code:c.edt.gender_code,religion_code:c.edt.religion_code,passport_num:c.edt.passport_num,passport_issue_date:c.edt.passport_issue_date,passport_expiry:c.edt.passport_expiry,passport_issue_auth:c.edt.passport_issue_auth,passport_issue_place:c.edt.passport_issue_place,visa_number:c.edt.visa_number,visa_type:c.edt.visa_type,visa_issuing_authority:c.edt.visa_issuing_authority,visa_issue_date:c.edt.visa_issue_date,visa_expiry_date:c.edt.visa_expiry_date,visa_issuing_place:c.edt.visa_issuing_place,national_id:c.edt.national_id,national_id_issue_date:c.edt.national_id_issue_date,national_id_expiry_date:c.edt.national_id_expiry_date,sibling_status:c.edt.sibling_status,parent_id:c.edt.parent_id,sibling_enroll:c.edt.sibling_enroll,sibling_name:c.edt.sibling_name,sibling_dob:c.edt.sibling_dob,sibling_school_code:c.edt.sibling_school_code,employee_type:c.edt.employee_type,employee_code:c.edt.employee_code,employee_school_code:c.edt.employee_school_code,motherTounge_language_code:c.edt.motherTounge_language_code,main_language_code:c.edt.main_language_code,main_language_r_code:c.edt.main_language_r_code,main_language_w_code:c.edt.main_language_w_code,main_language_s_code:c.edt.main_language_s_code,primary_contact_code:c.edt.primary_contact_code,primary_contact_pref_code:c.edt.primary_contact_pref_code,fee_payment_contact_pref_code:c.edt.fee_payment_contact_pref_code,transport_status:c.edt.transport_status,transport_desc:c.edt.transport_desc,father_salutation_code:c.edt.father_salutation_code,father_first_name:c.edt.father_first_name,father_middle_name:c.edt.father_middle_name,father_last_name:c.edt.father_last_name,father_family_name:c.edt.father_family_name,father_family_name_ot:c.edt.father_family_name_ot,father_nationality1_code:c.edt.father_nationality1_code,father_nationality2_code:c.edt.father_nationality2_code,father_appartment_number:c.edt.father_appartment_number,father_building_number:c.edt.father_building_number,father_street_number:c.edt.father_street_number,father_area_number:c.edt.father_area_number,father_city:c.edt.father_city,father_state:c.edt.father_state,father_country_code:c.edt.father_country_code,father_summary_address:c.edt.father_summary_address,father_po_box:c.edt.father_po_box,father_phone:c.edt.father_phone,father_email:c.edt.father_email,father_mobile:c.edt.father_mobile,father_fax:c.edt.father_fax,father_occupation:c.edt.father_occupation,father_company:c.edt.father_company,father_passport_number:c.edt.father_passport_number,sims_admission_father_national_id:c.edt.sims_admission_father_national_id,guardian_salutation_code:c.edt.guardian_salutation_code,guardian_first_name:c.edt.guardian_first_name,guardian_middle_name:c.edt.guardian_middle_name,guardian_last_name:c.edt.guardian_last_name,guardian_family_name:c.edt.guardian_family_name,guardian_nationality1_code:c.edt.guardian_nationality1_code,guardian_nationality2_code:c.edt.guardian_nationality2_code,guardian_appartment_number:c.edt.guardian_appartment_number,guardian_building_number:c.edt.guardian_building_number,guardian_street_number:c.edt.guardian_street_number,guardian_area_number:c.edt.guardian_area_number,guardian_city:c.edt.guardian_city,guardian_state:c.edt.guardian_state,guardian_country_code:c.edt.guardian_country_code,guardian_summary_address:c.edt.guardian_summary_address,guardian_po_box:c.edt.guardian_po_box,guardian_phone:c.edt.guardian_phone,guardian_mobile:c.edt.guardian_mobile,guardian_fax:c.edt.guardian_fax,guardian_email:c.edt.guardian_email,guardian_occupation:c.edt.guardian_occupation,guardian_company:c.edt.guardian_company,guardian_passport_number:c.edt.guardian_passport_number,guardian_relationship_code:c.edt.guardian_relationship_code,mother_salutation_code:c.edt.mother_salutation_code,mother_first_name:c.edt.mother_first_name,mother_middle_name:c.edt.mother_middle_name,mother_last_name:c.edt.mother_last_name,mother_family_name:c.edt.mother_family_name,mother_name_ot:c.edt.mother_name_ot,mother_nationality1_code:c.edt.mother_nationality1_code,mother_nationality2_code:c.edt.mother_nationality2_code,mother_appartment_number:c.edt.mother_appartment_number,mother_building_number:c.edt.mother_building_number,mother_street_number:c.edt.mother_street_number,mother_area_number:c.edt.mother_area_number,mother_city:c.edt.mother_city,mother_state:c.edt.mother_state,mother_country_code:c.edt.mother_country_code,mother_summary_address:c.edt.mother_summary_address,mother_po_box:c.edt.mother_po_box,mother_phone:c.edt.mother_phone,mother_mobile:c.edt.mother_mobile,mother_fax:c.edt.mother_fax,mother_email:c.edt.mother_email,mother_occupation:c.edt.mother_occupation,mother_passport_number:c.edt.mother_passport_number,current_school_status:c.edt.current_school_status,current_school_name:c.edt.current_school_name,current_school_enroll_number:c.edt.current_school_enroll_number,current_school_grade:c.edt.current_school_grade,current_school_cur:c.edt.current_school_cur,current_school_from_date:c.edt.current_school_from_date,current_school_to_date:c.edt.current_school_to_date,current_school_language:c.edt.current_school_language,current_school_head_teacher:c.edt.current_school_head_teacher,current_school_phone:c.edt.current_school_phone,current_school_fax:c.edt.current_school_fax,current_school_city:c.edt.current_school_city,current_school_country_code:c.edt.current_school_country_code,current_school_address:c.edt.current_school_address,marketing_code:c.edt.marketing_code,marketing_description:c.edt.marketing_description,parent_status_code:c.edt.parent_status_code,legal_custody_code:c.edt.legal_custody_code,health_card_number:c.edt.health_card_number,health_card_issue_date:c.edt.health_card_issue_date,health_card_issuing_authority:c.edt.health_card_issuing_authority,blood_group_code:c.edt.blood_group_code,medication_status:c.edt.medication_status,medication_desc:c.edt.medication_desc,disability_status:c.edt.disability_status,disability_desc:c.edt.disability_desc,behaviour_status:c.edt.behaviour_status,behaviour_desc:c.edt.behaviour_desc,health_restriction_status:c.edt.health_restriction_status,health_restriction_desc:c.edt.health_restriction_desc,health_hearing_status:c.edt.health_hearing_status,health_hearing_desc:c.edt.health_hearing_desc,health_vision_status:c.edt.health_vision_status,health_vision_desc:c.edt.health_vision_desc,health_other_status:c.edt.health_other_status,health_other_desc:c.edt.health_other_desc,gifted_status:c.edt.gifted_status,gifted_desc:c.edt.gifted_desc,music_status:c.edt.music_status,music_desc:c.edt.music_desc,sports_status:c.edt.sports_status,sports_desc:c.edt.sports_desc,language_support_status:c.edt.language_support_status,language_support_desc:c.edt.language_support_desc,declaration_status:c.edt.declaration_status,fees_paid_status:c.edt.fees_paid_status,fee_category_code:c.edt.fee_category_code,ip:c.edt.ip,dns:c.edt.dns,user_code:c.edt.user_code,status:c.edt.status,sims_student_attribute1:c.edt.sims_student_attribute1,sims_student_attribute2:c.edt.sims_student_attribute2,sims_student_attribute3:c.edt.sims_student_attribute3,sims_student_attribute4:c.edt.sims_student_attribute4,sims_student_health_respiratory_status:c.edt.sims_student_health_respiratory_status,sims_student_health_respiratory_desc:c.edt.sims_student_health_respiratory_desc,sims_student_health_hay_fever_status:c.edt.sims_student_health_hay_fever_status,sims_student_health_hay_fever_desc:c.edt.sims_student_health_hay_fever_desc,sims_student_health_epilepsy_status:c.edt.sims_student_health_epilepsy_status,sims_student_health_epilepsy_desc:c.edt.sims_student_health_epilepsy_desc,sims_student_health_skin_status:c.edt.sims_student_health_skin_status,sims_student_health_skin_desc:c.edt.sims_student_health_skin_desc,sims_student_health_diabetes_status:c.edt.sims_student_health_diabetes_status,sims_student_health_diabetes_desc:c.edt.sims_student_health_diabetes_desc,sims_student_health_surgery_status:c.edt.sims_student_health_surgery_status,sims_student_health_surgery_desc:c.edt.sims_student_health_surgery_desc,sims_admission_recommendation:c.edt.sims_admission_recommendation,sims_admission_mother_national_id:c.edt.sims_admission_mother_national_id,sims_admission_guardian_national_id:c.edt.sims_admission_guardian_national_id,sims_fee_month_code:c.edt.sims_fee_month_code,sims_student_attribute5:c.edt.sims_student_attribute5,sims_student_attribute6:c.edt.sims_student_attribute6,sims_student_attribute7:c.edt.sims_student_attribute7,sims_student_attribute8:c.edt.sims_student_attribute8,sims_student_attribute9:c.edt.sims_student_attribute9,sims_student_attribute10:c.edt.sims_student_attribute10,sims_student_attribute11:c.edt.sims_student_attribute11,sims_student_attribute12:c.edt.sims_student_attribute12,sims_admission_second_lang_code:c.edt.sims_admission_second_lang_code,sims_admission_third_lang_code:c.edt.sims_admission_third_lang_code,sims_admission_subject_code:c.edt.sims_admission_second_lang_code+","+c.edt.sims_admission_third_lang_code};_.push(e),m.post(l.apiUrl+"api/common/Admission_dpsd/ApproveStudent",_).then(function(e){c.display=!0,c.msg1=e.data,console.log(c.msg1)}),c.grid1=!0,$("#myModal1").modal({backdrop:"static",keyboard:!0})},c.get_studentfee=function(){e.go("main.Sim043")},c.schoolcheck=function(){1==c.edt.current_school_status?c.school_edit=!1:c.school_edit=!0},c.chk_desc=function(){1==c.edt.marketing_code?c.desc_edit=!1:c.desc_edit=!0},c.chk_cicumstances=function(){1==c.edt.parent_status_code?c.circum_edit=!1:c.circum_edit=!0},c.chk_disab_status=function(){1==c.edt.disability_status?c.disab_edit=!1:c.disab_edit=!0},c.chk_health_res=function(){1==c.edt.health_restriction_status?c.healthres_edit=!1:c.healthres_edit=!0},c.chk_medic_status=function(){1==c.edt.medication_status?c.med_edit=!1:c.med_edit=!0},c.chk_other=function(){1==c.edt.health_other_status?c.other_edit=!1:c.other_edit=!0},c.chk_hearing=function(){1==c.edt.health_hearing_status?c.hearing_edit=!1:c.hearing_edit=!0},c.chk_vision=function(){1==c.edt.health_vision_status?c.health_vision_edit=!1:c.health_vision_edit=!0},c.chk_behaviour=function(){1==c.edt.behaviour_status?c.behaviour_edit=!1:c.behaviour_edit=!0},c.chk_gifted_status=function(){1==c.edt.gifted_status?c.gifted_edit=!1:c.gifted_edit=!0},c.chk_music_pro=function(){1==c.edt.music_status?c.music_edit=!1:c.music_edit=!0},c.chk_sport_pro=function(){1==c.edt.sports_status?c.sport_edit=!1:c.sport_edit=!0},c.chk_lang_sup=function(){1==c.edt.language_support_status?c.lang_sup_edit=!1:c.lang_sup_edit=!0},c.chk_Pri_contact=function(){1==c.edt.primary_contact_code?c.pricont_edit=!1:c.pricont_edit=!0},c.chk_transport_requin=function(){1==c.edt.transport_status?c.transreq_edit=!1:c.transreq_edit=!0},c.chk_employee=function(){1==document.getElementById("chk_employee").checked?document.getElementById("txt_emp_code").disabled=!1:document.getElementById("txt_emp_code").disabled=!0},c.chk_Sibling_attend=function(){1==c.edt.sibling_status?c.disableparent=!1:c.disableparent=!0},c.chk_learn_ther=function(){1==c.edt.sims_admission_learning_therapy_status?c.learnther_edit=!1:c.learnther_edit=!0},c.chk_spec_edu=function(){1==c.edt.sims_admission_special_education_status?c.spec_edu_edit=!1:c.spec_edu_edit=!0},c.chk_falled_grade=function(){1==c.edt.sims_admission_falled_grade_status?c.falledgrade_edit=!1:c.falledgrade_edit=!0},c.chk_commun=function(){1==c.edt.sims_admission_communication_status?c.commun_edit=!1:c.commun_edit=!0},c.chk_spec_activies=function(){1==c.edt.sims_admission_specialAct_status?c.specActiv_edit=!1:c.specActiv_edit=!0},c.chk_studyingin=function(){1==c.edt.sibling_status?(c.Study_edit=!1,document.getElementById("t3"),document.getElementById("t4"),document.getElementById("t5"),c.t=!1):(c.Study_edit=!0,document.getElementById("t3"),document.getElementById("t4"),document.getElementById("t5"),c.t=!0)},c.chk_ticking=function(){1==c.edt.declaration_status?(c.tick_edit=!1,c.confirm_edit=!1):(c.tick_edit=!0,c.confirm_edit=!0)},c.chk_copy_mother_add=function(){1==c.edt.copy_add?(c.edt.mother_appartment_number=c.edt.father_appartment_number,c.edt.mother_area_number=c.edt.father_area_number,c.edt.mother_building_number=c.edt.father_building_number,c.edt.mother_street_number=c.edt.father_street_number,c.edt.mother_city=c.edt.father_city,c.edt.mother_state=c.edt.father_state,c.edt.mother_country_code=c.edt.father_country_code,c.edt.mother_po_box=c.edt.father_po_box,c.edt.mother_nationality1_code=c.edt.father_nationality1_code,c.edt.mother_nationality2_code=c.edt.father_nationality2_code,c.edt.mother_summary_address=c.edt.father_summary_address,c.edt.mother_phone=c.edt.father_phone,c.edt.mother_po_box=c.edt.father_po_box,c.edt.mother_mobile=c.edt.father_mobile,c.edt.mother_occupation=c.edt.father_occupation,c.edt.mother_email=c.edt.father_email,c.edt.mother_company=c.edt.father_company):(c.edt.mother_appartment_number="",c.edt.mother_area_number="",c.edt.mother_building_number="",c.edt.mother_street_number="",c.edt.mother_city="",c.edt.mother_state="",c.edt.mother_country_code="",c.edt.mother_po_box="",c.edt.mother_nationality1_code="",c.edt.mother_nationality2_code="",c.edt.mother_summary_address="",c.edt.mother_phone="",c.edt.mother_po_box="",c.edt.mother_mobile="",c.edt.mother_occupation="",c.edt.mother_email="",c.edt.mother_company="")},c.chk_copy_guar_add1=function(){1==c.edt.copy_add1?(c.edt.guardian_appartment_number=c.edt.father_appartment_number,c.edt.guardian_area_number=c.edt.father_area_number,c.edt.guardian_building_number=c.edt.father_building_number,c.edt.guardian_street_number=c.edt.father_street_number,c.edt.guardian_city=c.edt.father_city,c.edt.guardian_state=c.edt.father_state,c.edt.guardian_country_code=c.edt.father_country_code,c.edt.guardian_po_box=c.edt.father_po_box,c.edt.guardian_nationality1_code=c.edt.father_nationality1_code,c.edt.guardian_nationality2_code=c.edt.father_nationality2_code,c.edt.guardian_summary_address=c.edt.father_summary_address,c.edt.guardian_phone=c.edt.father_phone,c.edt.guardian_po_box=c.edt.father_po_box,c.edt.guardian_mobile=c.edt.father_mobile,c.edt.guardian_occupation=c.edt.father_occupation,c.edt.guardian_email=c.edt.father_email,c.edt.guardian_company=c.edt.father_company):(c.edt.guardian_appartment_number="",c.edt.guardian_area_number="",c.edt.guardian_building_number="",c.edt.guardian_street_number="",c.edt.guardian_city="",c.edt.guardian_state="",c.edt.guardian_country_code="",c.edt.guardian_po_box="",c.edt.guardian_nationality1_code="",c.edt.guardian_nationality2_code="",c.edt.guardian_summary_address="",c.edt.guardian_phone="",c.edt.guardian_po_box="",c.edt.guardian_mobile="",c.edt.guardian_occupation="",c.edt.guardian_email="",c.edt.guardian_company="")},c.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"+t+''+a+""),o.close(),s.focus()},r.Save=function(e){if(e){var t,a=[],s=r.edt.reported_to,o=r.edt.follow_up,n=r.edt.sims_incidence_action_code;if(0==r.Studentdata.length)swal("txt_Action_Description","Please select atleast one student.");else{r.sims_incidence_user_code=r.edt.sims_incidence_user_code.split("/")[0];for(var _="",i=0;i
ACTION CODE ACTION TYPE ACTION DESCRIPTIONACTION POINTWARNING CODE SERVER CLOSE FLAG
"+e.sims_incidence_action_code_name+" "+e.sims_incidence_action_type_desc+" "+e.sims_incidence_action_desc+""+e.sims_incidence_action_point+""+e.sims_incidence_warning_desc+""+e.sims_incidence_consequence_serve_close_flag+"
CONSEQUENCE CODE CONSEQUENCE DESCRIPTION CONSEQUENCE TYPECONSEQUENCE POINT SERVE START DATE USER CODE
"+e.sims_incidence_consequence_code_name+" "+e.sims_incidence_consequence_desc+" "+e.sims_incidence_consequence_type_desc+""+e.sims_incidence_consequence_point+" "+e.sims_incidence_consequence_serve_start_date+" "+e.sims_incidence_user_code+"
USER CODE UPDATED ESCALATION FLAG SMS FLAGEMAIL FLAG PORTAL FLAG ROLL OVER FLAG
"+e.sims_incidence_user_code_updated+" "+e.sims_incidence_action_escalation_flag+" "+e.sims_incidence_action_sms_flag+""+e.sims_incidence_action_email_flag+" "+e.sims_incidence_action_portal_flag+" "+e.sims_incidence_action_roll_over_flag+"
BUILDING CODE LOCATION CODE
"+e.sims_incidence_building_code+" "+e.sims_incidence_location_desc+"
"),$(t.currentTarget).parents("tr").after(n),r.flag=!1;else{$("#innerRow").css({display:"none"});for(var a=0;aFrom "+i.temp.valid_date+" to "+i.temp.sims_transport_effective_upto1,imageUrl:"assets/img/check.png",showCloseButton:!0,width:380}),$("#MyModal").modal("hide"),i.searchtable=!0,d.get(r.apiUrl+"api/UpdateCancleStudentTransDetails/getStudentTransportDetails?cur_code="+i.edt.sims_cur_code+"&acayear="+i.edt.sims_academic_year+"&grade="+i.edt.sims_grade_code+"&sec_code="+i.edt.sims_section_code+"&enroll="+i.edt.sims_enroll_number+"&vehicle_code="+i.edt.sims_transport_vehicle_code).then(function(e){i.StudentTransportDetails=e.data,i.totalItems=i.StudentTransportDetails.length,i.todos=i.StudentTransportDetails,i.makeTodos()})})):1==l.checked?0==B&&0==E&&0==M&&0==j&&0==N&&0==F&&0==L&&0==R&&0==G&&0==Y&&0==q&&0==O||(e=(e=(1==B?"1,":"")+(1==E?"2,":"")+(1==M?"3,":"")+(1==j?"4,":"")+(1==N?"5,":"")+(1==F?"6,":""))+(1==L?"7,":"")+(1==R?"8,":"")+(1==G?"9,":"")+(1==Y?"10,":"")+(1==q?"11,":"")+(1==O?"12,":""),t={sims_transport_academic_year:i.temp.sims_academic_year,sims_transport_enroll_number:i.temp.sims_enroll_number,sims_fee_cur_code:i.temp.sims_fee_cur_code,sims_fee_grade_code:i.temp.sims_fee_grade_code,sims_fee_section_code:i.temp.sims_fee_section_code,sims_fee_number:i.temp.sims_fee_number,sims_transport_route_code:i.temp.sims_transport_route_code,sims_transport_route_direction:i.temp.sims_transport_route_direction,sims_transport_effective_from:i.temp.sims_transport_effective_from1,sims_transport_effective_upto:i.temp.sims_transport_effective_upto1,sims_transport_route_direction_old:i.sims_transport_route_direction_old,sims_transport_effective_from_old:i.temp.sims_transport_effective_from1,sims_transport_effective_upto_old:i.temp.sims_transport_effective_upto1,sims_transport_pickup_stop_code_old:i.sims_transport_pickup_stop_code_old,sims_transport_drop_stop_code_old:i.sims_transport_drop_stop_code_old,sims_transport_route_code_old:i.sims_transport_route_code_old,v_Code:i.v_Code_old,v_Name_Code:i.temp.v_Code,sims_transport_pickup_stop_code:i.temp.sims_transport_pickup_stop_code,sims_transport_drop_stop_code:i.temp.sims_transport_drop_stop_code,sims_transport_route_rejecte_date:i.temp.valid_date,sims_fee_period1:i.temp1.sims_fee_period1,sims_fee_period2:i.temp1.sims_fee_period2,sims_fee_period3:i.temp1.sims_fee_period3,sims_fee_period4:i.temp1.sims_fee_period4,sims_fee_period5:i.temp1.sims_fee_period5,sims_fee_period6:i.temp1.sims_fee_period6,sims_fee_period7:i.temp1.sims_fee_period7,sims_fee_period8:i.temp1.sims_fee_period8,sims_fee_period9:i.temp1.sims_fee_period9,sims_fee_period10:i.temp1.sims_fee_period10,sims_fee_period11:i.temp1.sims_fee_period11,sims_fee_period12:i.temp1.sims_fee_period12,sims_transport_period1:g,sims_transport_period2:f,sims_transport_period3:y,sims_transport_period4:b,sims_transport_period5:v,sims_transport_period6:w,sims_transport_period7:k,sims_transport_period8:x,sims_transport_period9:C,sims_transport_period10:S,sims_transport_period11:D,sims_transport_period12:A,sims_fee_period1_paid:B,sims_fee_period2_paid:E,sims_fee_period3_paid:M,sims_fee_period4_paid:j,sims_fee_period5_paid:N,sims_fee_period6_paid:F,sims_fee_period7_paid:L,sims_fee_period8_paid:R,sims_fee_period9_paid:G,sims_fee_period10_paid:Y,sims_fee_period11_paid:q,sims_fee_period12_paid:O,sims_transport_route_student_code:e,sims_check_month_wise:!0,sims_transport_route_student_update_by:a.globals.currentUser.username,opr:"U",sub_opr:"P"},d.post(r.apiUrl+"api/UpdateCancleStudentTransDetails/CancelTransport",t).then(function(e){i.msg1=e.data,swal({text:"Transport Cancel Successfully ",imageUrl:"assets/img/check.png",showCloseButton:!0,width:380}),$("#MyModal").modal("hide"),i.searchtable=!0,d.get(r.apiUrl+"api/UpdateCancleStudentTransDetails/getStudentTransportDetails?cur_code="+i.edt.sims_cur_code+"&acayear="+i.edt.sims_academic_year+"&grade="+i.edt.sims_grade_code+"&sec_code="+i.edt.sims_section_code+"&enroll="+i.edt.sims_enroll_number+"&vehicle_code="+i.edt.sims_transport_vehicle_code).then(function(e){i.StudentTransportDetails=e.data,i.totalItems=i.StudentTransportDetails.length,i.todos=i.StudentTransportDetails,i.makeTodos()})})):""==i.temp.valid_date||null!=i.temp.valid_date||0==l.checked?null!=i.temp.valid_date&&0!=l.checked||(t={sims_transport_academic_year:i.temp.sims_academic_year,sims_transport_enroll_number:i.temp.sims_enroll_number,sims_fee_cur_code:i.temp.sims_fee_cur_code,sims_fee_grade_code:i.temp.sims_fee_grade_code,sims_fee_section_code:i.temp.sims_fee_section_code,sims_fee_number:i.temp.sims_fee_number,sims_transport_route_code:i.temp.sims_transport_route_code,sims_transport_route_direction:i.temp.sims_transport_route_direction,sims_transport_route_direction_old:i.sims_transport_route_direction_old,sims_transport_effective_from_old:i.temp.sims_transport_effective_from1,sims_transport_effective_upto_old:i.temp.sims_transport_effective_upto1,sims_transport_pickup_stop_code_old:i.sims_transport_pickup_stop_code_old,sims_transport_drop_stop_code_old:i.sims_transport_drop_stop_code_old,sims_transport_route_code_old:i.sims_transport_route_code_old,v_Code:i.v_Code_old,v_Name_Code:i.temp.v_Code,sims_transport_pickup_stop_code:i.temp.sims_transport_pickup_stop_code,sims_transport_drop_stop_code:i.temp.sims_transport_drop_stop_code,sims_fee_period1:i.temp1.sims_fee_period1,sims_fee_period2:i.temp1.sims_fee_period2,sims_fee_period3:i.temp1.sims_fee_period3,sims_fee_period4:i.temp1.sims_fee_period4,sims_fee_period5:i.temp1.sims_fee_period5,sims_fee_period6:i.temp1.sims_fee_period6,sims_fee_period7:i.temp1.sims_fee_period7,sims_fee_period8:i.temp1.sims_fee_period8,sims_fee_period9:i.temp1.sims_fee_period9,sims_fee_period10:i.temp1.sims_fee_period10,sims_fee_period11:i.temp1.sims_fee_period11,sims_fee_period12:i.temp1.sims_fee_period12,sims_transport_period1:g,sims_transport_period2:f,sims_transport_period3:y,sims_transport_period4:b,sims_transport_period5:v,sims_transport_period6:w,sims_transport_period7:k,sims_transport_period8:x,sims_transport_period9:C,sims_transport_period10:S,sims_transport_period11:D,sims_transport_period12:A,sims_check_month_wise:!1,sims_transport_route_student_update_by:a.globals.currentUser.username,opr:"U",sub_opr:"G"},d.post(r.apiUrl+"api/UpdateCancleStudentTransDetails/CancelTransport",t).then(function(e){i.msg1=e.data,swal({text:"Transport Cancel Successfully From "+i.temp.sims_transport_effective_from+" to "+i.temp.sims_transport_effective_upto1,imageUrl:"assets/img/check.png",showCloseButton:!0,width:380}),$("#MyModal").modal("hide"),i.searchtable=!0,d.get(r.apiUrl+"api/UpdateCancleStudentTransDetails/getStudentTransportDetails?cur_code="+i.edt.sims_cur_code+"&acayear="+i.edt.sims_academic_year+"&grade="+i.edt.sims_grade_code+"&sec_code="+i.edt.sims_section_code+"&enroll="+i.edt.sims_enroll_number+"&vehicle_code="+i.edt.sims_transport_vehicle_code).then(function(e){i.StudentTransportDetails=e.data,i.totalItems=i.StudentTransportDetails.length,i.todos=i.StudentTransportDetails,i.makeTodos()})})):swal({text:"Transport Not Cancel",imageUrl:"assets/img/close.png",showCloseButton:!0,width:380})},$('*[data-datepicker="true"] input[type="text"]').datepicker({todayBtn:!0,orientation:"top left",autoclose:!0,todayHighlight:!0,format:"dd-mm-yyyy"}),$(document).on("touch click",'*[data-datepicker="true"] .add-on',function(e){$('input[type="text"]',$(this).parent()).focus()}),$('*[data-datepicker1="true"] input[type="text"]').datepicker({todayBtn:!0,orientation:"top left",autoclose:!0,todayHighlight:!0,format:"dd-mm-yyyy",startDate:new Date(i.startdt),endDate:new Date(i.enddt)}),$(document).on("touch click",'*[data-datepicker1="true"] .add-on',function(e){$('input[type="text"]',$(this).parent()).focus()}),i.Comparedate=function(){i.temp.sims_transport_effective_upto1parseInt(c.edt.sims_admission_marks_out_of)&&(swal({title:"Alert",text:"Please Enter Valid Marks.",showCloseButton:!0,width:450}),c.edt.sims_admission_marks_obtained="")},c.max_mark_sem1=function(){parseInt(c.edt.sims_fyadmission_marks_obtained_sem1)>parseInt(c.edt.sims_fyadmission_marks_out_of_Sem1)&&(swal({title:"Alert",text:"Please Enter Valid Marks.",showCloseButton:!0,width:450}),c.edt.sims_fyadmission_marks_obtained_sem1="")},c.max_mark_sem2=function(){parseInt(c.edt.sims_fyadmission_marks_obtained_sem2)>parseInt(c.edt.sims_fyadmission_marks_out_of_Sem2)&&(swal({title:"Alert",text:"Please Enter Valid Marks.",showCloseButton:!0,width:450}),c.edt.sims_fyadmission_marks_obtained_sem2="")},c.max_mark_sem3=function(){parseInt(c.edt.sims_syadmission_marks_obtained_sem3)>parseInt(c.edt.sims_syadmission_marks_out_of_Sem3)&&(swal({title:"Alert",text:"Please Enter Valid Marks.",showCloseButton:!0,width:450}),c.edt.sims_syadmission_marks_obtained_sem3="")},c.max_mark_sem4=function(){parseInt(c.edt.sims_syadmission_marks_obtained_sem4)>parseInt(c.edt.sims_syadmission_marks_out_of_sem4)&&(swal({title:"Alert",text:"Please Enter Valid Marks.",showCloseButton:!0,width:450}),c.edt.sims_syadmission_marks_obtained_sem4="")},c.max_mark_term1=function(){parseInt(c.edt.sims_fyadmission_marks_obtained_term1)>parseInt(c.edt.sims_fyadmission_marks_out_of_term1)&&(swal({title:"Alert",text:"Please Enter Valid Marks.",showCloseButton:!0,width:450}),c.edt.sims_fyadmission_marks_obtained_term1="",c.edt.sims_fyadmission_marks_out_of_term1=""),"0"!=c.edt.sims_fyadmission_percentage_obtained_term1&&"100"!=c.edt.sims_fyadmission_percentage_obtained_term1||(swal({title:"Alert",text:"Percentage between 0.00 - 100.00",showCloseButton:!0,width:450}),c.edt.sims_fyadmission_percentage_obtained_term1="",c.edt.sims_fyadmission_marks_obtained_term1="",c.edt.sims_fyadmission_marks_out_of_term1="")},c.max_mark_term2=function(){parseInt(c.edt.sims_fyadmission_marks_obtained_term2)>parseInt(c.edt.sims_fyadmission_marks_out_of_term2)&&(swal({title:"Alert",text:"Please Enter Valid Marks.",showCloseButton:!0,width:450}),c.edt.sims_fyadmission_marks_obtained_term2="",c.edt.sims_fyadmission_marks_out_of_term2=""),"0"!=c.edt.sims_fyadmission_percentage_obtained_term2&&"100"!=c.edt.sims_fyadmission_percentage_obtained_term2||(swal({title:"Alert",text:"Percentage between 0.00 - 100.00",showCloseButton:!0,width:450}),c.edt.sims_fyadmission_percentage_obtained_term2="",c.edt.sims_fyadmission_marks_obtained_term2="",c.edt.sims_fyadmission_marks_out_of_term2="")},c.max_mark_term3=function(){parseInt(c.edt.sims_fyadmission_marks_obtained_term3)>parseInt(c.edt.sims_fyadmission_marks_out_of_term3)&&(swal({title:"Alert",text:"Please Enter Valid Marks.",showCloseButton:!0,width:450}),c.edt.sims_fyadmission_marks_obtained_term3="",c.edt.sims_fyadmission_marks_out_of_term3=""),"0"!=c.edt.sims_fyadmission_percentage_obtained_term3&&"100"!=c.edt.sims_fyadmission_percentage_obtained_term3||(swal({title:"Alert",text:"Percentage between 0.00 - 100.00",showCloseButton:!0,width:450}),c.edt.sims_fyadmission_percentage_obtained_term3="",c.edt.sims_fyadmission_marks_obtained_term3="",c.edt.sims_fyadmission_marks_out_of_term3="")},c.max_mark_term4=function(){parseInt(c.edt.sims_fyadmission_marks_obtained_term4)>parseInt(c.edt.sims_fyadmission_marks_out_of_term4)&&(swal({title:"Alert",text:"Please Enter Valid Marks.",showCloseButton:!0,width:450}),c.edt.sims_fyadmission_marks_obtained_term4="",c.edt.sims_fyadmission_marks_out_of_term4=""),"0"!=c.edt.sims_fyadmission_percentage_obtained_term4&&"100"!=c.edt.sims_fyadmission_percentage_obtained_term4||(swal({title:"Alert",text:"Percentage between 0.00 - 100.00",showCloseButton:!0,width:450}),c.edt.sims_fyadmission_percentage_obtained_term4="",c.edt.sims_fyadmission_marks_obtained_term4="",c.edt.sims_fyadmission_marks_out_of_term4="")},c.max_mark_term5=function(){parseInt(c.edt.sims_syadmission_marks_obtained_term5)>parseInt(c.edt.sims_syadmission_marks_out_of_term5)&&(swal({title:"Alert",text:"Please Enter Valid Marks.",showCloseButton:!0,width:450}),c.edt.sims_syadmission_marks_obtained_term5="",c.edt.sims_syadmission_marks_out_of_term5=""),"0"!=c.edt.sims_syadmission_percentage_obtained_term5&&"100"!=c.edt.sims_syadmission_percentage_obtained_term5||(swal({title:"Alert",text:"Percentage between 0.00 - 100.00",showCloseButton:!0,width:450}),c.edt.sims_syadmission_percentage_obtained_term5="",c.edt.sims_syadmission_marks_obtained_term5="",c.edt.sims_syadmission_marks_out_of_term5="")},c.max_mark_term6=function(){parseInt(c.edt.sims_syadmission_marks_obtained_term6)>parseInt(c.edt.sims_syadmission_marks_out_of_term6)&&(swal({title:"Alert",text:"Please Enter Valid Marks.",showCloseButton:!0,width:450}),c.edt.sims_syadmission_marks_obtained_term6="",c.edt.sims_syadmission_marks_out_of_term6=""),"0"!=c.edt.sims_syadmission_percentage_obtained_term6&&"100"!=c.edt.sims_syadmission_percentage_obtained_term6||(swal({title:"Alert",text:"Percentage between 0.00 - 100.00",showCloseButton:!0,width:450}),c.edt.sims_syadmission_percentage_obtained_term6="",c.edt.sims_syadmission_marks_obtained_term6="",c.edt.sims_syadmission_marks_out_of_term6="")},c.max_mark_term7=function(){parseInt(c.edt.sims_syadmission_marks_obtained_term7)>parseInt(c.edt.sims_syadmission_marks_out_of_term7)&&(swal({title:"Alert",text:"Please Enter Valid Marks.",showCloseButton:!0,width:450}),c.edt.sims_syadmission_marks_obtained_term7="",c.edt.sims_syadmission_marks_out_of_term7=""),"0"!=c.edt.sims_syadmission_percentage_obtained_term7&&"100"!=c.edt.sims_syadmission_percentage_obtained_term7||(swal({title:"Alert",text:"Percentage between 0.00 - 100.00",showCloseButton:!0,width:450}),c.edt.sims_syadmission_percentage_obtained_term7="",c.edt.sims_syadmission_marks_obtained_term7="",c.edt.sims_syadmission_marks_out_of_term7="")},c.max_mark_term8=function(){parseInt(c.edt.sims_syadmission_marks_obtained_term8)>parseInt(c.edt.sims_syadmission_marks_out_of_term8)&&(swal({title:"Alert",text:"Please Enter Valid Marks.",showCloseButton:!0,width:450}),c.edt.sims_syadmission_marks_obtained_term8="",c.edt.sims_syadmission_marks_out_of_term8=""),"0"!=c.edt.sims_syadmission_percentage_obtained_term8&&"100"!=c.edt.sims_syadmission_percentage_obtained_term8||(swal({title:"Alert",text:"Percentage between 0.00 - 100.00",showCloseButton:!0,width:450}),c.edt.sims_syadmission_percentage_obtained_term8="",c.edt.sims_syadmission_marks_obtained_term8="",c.edt.sims_syadmission_marks_out_of_term8="")},i.get(c.apiurl+"api/Comn/getAdmissionList").then(function(e){c.obj=e.data;for(var t=0;t=c.obj_age[e].sims_birth_date_to)&&(swal({title:"Birth Date",text:"For KG 1 admissions, child must be minimum 3.8 year old and can be maximum 4.11 year old as of 2017-03-31",showCloseButton:!0,width:450}),c.edt.birth_date=""),"02"==c.edt.grade_code&&(c.edt.birth_date<=c.obj_age[e].sims_birth_date_from&&(swal({title:"Birth Date",text:"For KG 2 admissions, child must be minimum 4.8 year old and can be maximum 5.11 year old as of 2017-03-31",showCloseButton:!0,width:450}),c.edt.birth_date=""),c.edt.birth_date>=c.obj_age[e].sims_birth_date_to)&&(swal({title:"Birth Date",text:"For KG 2 admissions, child must be minimum 4.8 year old and can be maximum 5.11 year old as of 2017-03-31",showCloseButton:!0,width:450}),c.edt.birth_date=""),"03"==c.edt.grade_code&&(c.edt.birth_date<=c.obj_age[e].sims_birth_date_from&&(swal({title:"Birth Date",text:"For Grade 1 admissions, child must be minimum 5.8 year old and can be maximum 6.11 year old as of 2017-03-31",showCloseButton:!0,width:480}),c.edt.birth_date=""),c.edt.birth_date>=c.obj_age[e].sims_birth_date_to)&&(swal({title:"Birth Date",text:"For Grade 1 admissions, child must be minimum 5.8 year old and can be maximum 6.11 year old as of 2017-03-31",showCloseButton:!0,width:480}),c.edt.birth_date="")},c.createdate=function(e){var t=e.split("/")[0],a=e.split("/")[1],e=e.split("/")[2],e=(date1=e+"/"+t+"/"+a,c.CurrentDate=new Date,new Date),t=e.getMonth()+1,a=e.getDate(),e=(e.getFullYear(),t<10&&(t="0"+t),a<10&&(a="0"+a),date3=e.getFullYear()+"/"+t+"/"+a,e.getFullYear()-4+"/"+t+"/"+a);(date1>=date3||date1<=e)&&(swal({title:"Birth Date",text:"Age Should Not be less than 4 yrs or greater than current year",imageUrl:"assets/img/notification-alert.png"}),document.getElementById("dp_birth_date").value="")},c.check_box_chk=function(e){"14"==c.edt.grade_code||"17"==c.edt.grade_code||"20"==c.edt.grade_code||"23"==c.edt.grade_code||"26"==c.edt.grade_code||"29"==c.edt.grade_code||"31"==c.edt.grade_code?(e?(c.school_select_flg=!0,c.school_flg=!1,c.schoolfy_flg=!1,c.school_selectfy_flg=!0):(c.school_flg=!0,c.school_select_flg=!1,c.schoolfy_flg=!0,c.school_selectfy_flg=!1),c.edt.current_school_name="",c.edt.sims_admission_center_name="",c.edt.current_fyschool_name="",c.edt.sims_admission_fycenter_name=""):"15"==c.edt.grade_code||"18"==c.edt.grade_code||"21"==c.edt.grade_code||"24"==c.edt.grade_code||"27"==c.edt.grade_code?(c.fy_flg=!0,c.sy_flg=!0,e?(c.school_select_flg=!0,c.school_flg=!1,c.schoolfy_flg=!1,c.school_selectfy_flg=!0,c.schoolsy_flg=!1,c.school_selectsy_flg=!0):(c.school_flg=!0,c.school_select_flg=!1,c.schoolfy_flg=!0,c.school_selectfy_flg=!1,c.schoolsy_flg=!0,c.school_selectsy_flg=!1),c.edt.current_school_name="",c.edt.sims_admission_center_name="",c.edt.current_syschool_name="",c.edt.sims_admission_sycenter_name="",c.edt.current_fyschool_name="",c.edt.sims_admission_fycenter_name=""):("28"!=c.edt.grade_code&&"29"!=c.edt.grade_code&&"30"!=c.edt.grade_code&&"31"!=c.edt.grade_code||(c.label_hsc="Graduation",c.flg_stream=!0,c.flg_stream1=!1),e?(c.school_select_flg=!0,c.school_flg=!1):(c.school_flg=!0,c.school_select_flg=!1),c.edt.current_school_name="",c.edt.sims_admission_center_name="")},c.NewSave=function(){a.BUSY.IsBusy=!0;var t=c.edt;t.red_id=d,t.email_id=email,t.opr="I";i.post(c.apiurl+"api/common/Admission/CUDInsertAdmission",t).then(function(e){c.Insertmsg1=e.data,e.data&&(t.admission_number=c.Insertmsg1.admission_number,t.email_id=c.Insertmsg1.email_id,t.grade_name=document.getElementById("cmb_grade").options[document.getElementById("cmb_grade").selectedIndex].text,a.BUSY.IsBusy=!1,c.lbl_show=!0,c.lbl_msg="Application Submitted Sucessfully with application number "+t.admission_number,c.show_details()),c.Insertmsg1="",c.edt=""})},c.NewSave=function(e){e?"15"==c.edt.grade_code||"16"==c.edt.grade_code?null==c.edt.current_fyschool_name||""==c.edt.current_fyschool_name?swal({title:"Alert",text:"F.Y Last Institute Name is Required.",showCloseButton:!0,width:450}):null==c.edt.sims_fyadmission_marks_obtained_sem1||""==c.edt.sims_fyadmission_marks_obtained_sem1||null==c.edt.sims_fyadmission_marks_out_of_Sem1||""==c.edt.sims_fyadmission_marks_out_of_Sem1?swal({title:"Alert",text:"F.Y Last Marks Obtained Sem-I is Required.",showCloseButton:!0,width:450}):null==c.edt.sims_fyadmission_marks_obtained_sem2||""==c.edt.sims_fyadmission_marks_obtained_sem2||null==c.edt.sims_fyadmission_marks_out_of_Sem2||""==c.edt.sims_fyadmission_marks_out_of_Sem2?swal({title:"Alert",text:"F.Y Last Marks Obtained Sem-II is Required.",showCloseButton:!0,width:450}):c.NewSaveF():c.NewSaveF():swal({title:"Alert",text:"Application incomplete, Kindly fill all the Mandatory Fields.",showCloseButton:!0,width:450})},c.NewSave1=function(e){var t;e?!0===c.edt.sibling_attend?null==c.edt.parent_id||""==c.edt.parent_id||null==c.edt.sibling_enroll||""==c.edt.sibling_enroll?swal({title:"Alert",text:"Parent Id And Enroll No are Required",showCloseButton:!0,width:450}):(a.BUSY.IsBusy=!0,(t=c.edt).red_id=d,t.email_id=email,t.opr="I",i.post(c.apiurl+"api/common/Admission/CUDInsertAdmission",t).then(function(e){c.Insertmsg1=e.data,"Error"==e.status?c.lbl_msg="APPLICATION FORM SUBMITTED SUCCESSFULLY BUT WITH OUT APPLICATION NUMBER":(t.admission_number=c.Insertmsg1.admission_number,t.email_id=c.Insertmsg1.email_id,t.grade_name=document.getElementById("cmb_grade").options[document.getElementById("cmb_grade").selectedIndex].text,a.BUSY.IsBusy=!1,c.lbl_show=!0,c.lbl_msg="Application Submitted Sucessfully with application number "+t.admission_number,c.show_details()),c.Insertmsg1="",c.edt=""})):(a.BUSY.IsBusy=!0,(t=c.edt).red_id=d,t.email_id=email,t.opr="I",i.post(c.apiurl+"api/common/Admission/CUDInsertAdmission",t).then(function(e){c.Insertmsg1=e.data,e.data&&(t.admission_number=c.Insertmsg1.admission_number,t.email_id=c.Insertmsg1.email_id,t.grade_name=document.getElementById("cmb_grade").options[document.getElementById("cmb_grade").selectedIndex].text,a.BUSY.IsBusy=!1,c.lbl_show=!0,c.lbl_msg="Application Submitted Sucessfully with application number "+t.admission_number,c.show_details()),c.Insertmsg1="",c.edt=""})):swal({title:"Alert",text:"Application incomplete, Kindly fill all the Mandatory Fields.",showCloseButton:!0,width:450})},c.GetFatherSumAddr=function(e){var t,a,s=c.edt,o=($("#txt_father_aprt").val().length,$("#txt_father_build").val().length,$("#txt_father_Street").val().length,$("#txt_father_city").val().length),n=($("#txt_father_city2").val().length,$("#guardiantaluka1").val().length),_=($("#guardiantaluka_text").val().length,$("#txt_father_state").val().length),i=$("#cmb_father_country").val().length,d=$("#txt_father_pobox").val().length;$("#txt_father_state").val().length,$("#Select6").val().length,$("#Text21").val().length;e?(e=document.getElementById("Select6").options[document.getElementById("Select6").selectedIndex].text,t=document.getElementById("txt_father_state").options[document.getElementById("txt_father_state").selectedIndex].text,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<$("#txt_father_city2").val().length?document.getElementById("txt_father_city2").value+",":"",document.getElementById("txt_father_summary_add").value+=0<$("#guardiantaluka_text").val().length?document.getElementById("guardiantaluka_text").value+",":"",document.getElementById("txt_father_summary_add").value+=0<_?t+",":"",document.getElementById("txt_father_summary_add").value+=0{}]/g,"_"),console.log("space",d.filename_doc),""==e.pays_doc_srno&&(d.showUpdateBtn=!(a=!0),s={pays_doc_empl_id:e.pays_doc_empl_id,pays_doc_mod_code:e.pays_doc_mod_code,pays_doc_code:e.pays_doc_code,pays_doc_desc:e.pays_doc_desc,pays_doc_path:e.pays_doc_path,pays_doc_issue_date:e.pays_doc_issue_date,pays_doc_expiry_date:e.pays_doc_expiry_date,pays_doc_status:!0},t.push(s)),d.pays_doc_empl_id=e.pays_doc_empl_id,d.pays_doc_desc1=e.pays_doc_desc1,d.photo_filename_doc.split("/")[1]),s=(d.filename1=d.filename_doc+"."+e,[]),e=[];if(null==d.photo_filename_doc||""==d.photo_filename_doc)swal({title:"Alert",text:"Please Select File",width:300,height:200});else{if(1==a)for(var o=0;o{}]/g,"_"),console.log("space",d.filename_doc),(""==e.pays_doc_srno?(d.showUpdateBtn=!!0,s={pays_doc_empl_id:e.pays_doc_empl_id,pays_doc_mod_code:e.pays_doc_mod_code,pays_doc_code:e.pays_doc_code,pays_doc_desc:e.pays_doc_desc,pays_doc_path:e.pays_doc_path,pays_doc_issue_date:e.pays_doc_issue_date,pays_doc_expiry_date:e.pays_doc_expiry_date,pays_doc_status:!0},[]):(d.showUpdateBtn=!!1,s={pays_doc_srno:e.pays_doc_srno,pays_doc_empl_id:e.pays_doc_empl_id,pays_doc_mod_code:e.pays_doc_mod_code,pays_doc_code:e.pays_doc_code,pays_doc_desc:e.pays_doc_desc,pays_doc_path:e.pays_doc_path,pays_doc_issue_date:e.pays_doc_issue_date,pays_doc_expiry_date:e.pays_doc_expiry_date,pays_doc_status:!0},t)).push(s),d.pays_doc_empl_id=e.pays_doc_empl_id,d.pays_doc_desc1=e.pays_doc_desc1,[]),a=[];if(null==d.photo_filename_doc||""==d.photo_filename_doc||null==d.photo_filename_doc){for(var o=0;op.sectionlst1.section_strength?swal({title:"Alert",text:"Section Strength is Full.If You still want to Continue?",showCloseButton:!0,width:380}).then(function(e){e?p.adm_update():($("#cmb_section").css("background-color","#E5E9EC"),$('.nav-tabs a[href="#admtab1"]').tab("show"))}):p.adm_update())},p.adm_update=function(){null==p.edt.home_country_isdcode&&(p.edt.home_country_isdcode=""),null==p.edt.home_phone&&(p.edt.home_phone="");var e={admission_number:param,appl_num:p.edt.appl_num,pros_num:p.edt.pros_num,pros_appl_num:p.edt.pros_appl_num,admission_date:p.edt.admission_date,school_code:p.edt.school_code,curr_code:p.edt.curr_code,academic_year:p.edt.academic_year,grade_code:p.edt.grade_code,section_code:p.edt.section_code,term_code:p.edt.term_code,tent_join_date:p.edt.tent_join_date,sims_student_emergency_contact_number1:p.edt.sims_student_emergency_contact_number1,sims_student_emergency_contact_name1:p.edt.sims_student_emergency_contact_name1,first_name:p.edt.first_name,middle_name:p.edt.middle_name,last_name:p.edt.last_name,family_name:p.edt.family_name,first_name_ot:p.edt.first_name_ot,midd_name_ot:p.edt.midd_name_ot,last_name_ot:p.edt.last_name_ot,family_name_ot:p.edt.family_name_ot,nicke_name:p.edt.nicke_name,birth_date:p.edt.birth_date,sims_admission_tag_name:p.edt.sims_admission_tag_name,comm_date:p.edt.comm_date,birth_country_code:p.edt.birth_country_code,nationality_code:p.edt.nationality_code,ethinicity_code:p.edt.ethinicity_code,gender_code:p.edt.gender_code,religion_code:p.edt.religion_code,passport_num:p.edt.passport_num,passport_issue_date:p.edt.passport_issue_date,passport_expiry:p.edt.passport_expiry,passport_issue_auth:p.edt.passport_issue_auth,passport_issue_place:p.edt.passport_issue_place,visa_number:p.edt.visa_number,visa_type:p.edt.visa_type,visa_issuing_authority:p.edt.visa_issuing_authority,visa_issue_date:p.edt.visa_issue_date,visa_expiry_date:p.edt.visa_expiry_date,visa_issuing_place:p.edt.visa_issuing_place,national_id:p.edt.national_id,national_id_issue_date:p.edt.national_id_issue_date,national_id_expiry_date:p.edt.national_id_expiry_date,sibling_status:p.edt.sibling_status,parent_id:p.edt.parent_id,sibling_enroll:p.edt.sibling_enroll,sibling_name:p.edt.sibling_name,sibling_dob:p.edt.sibling_dob,sibling_school_code:p.edt.sibling_school_code,employee_type:p.edt.employee_type,employee_code:p.edt.employee_code,employee_school_code:p.edt.employee_school_code,motherTounge_language_code:p.edt.motherTounge_language_code,main_language_code:p.edt.main_language_code,main_language_r_code:p.edt.main_language_r_code,main_language_w_code:p.edt.main_language_w_code,main_language_s_code:p.edt.main_language_s_code,primary_contact_code:p.edt.primary_contact_code,primary_contact_pref_code:p.edt.primary_contact_pref_code,fee_payment_contact_pref_code:p.edt.fee_payment_contact_pref_code,transport_status:p.edt.transport_status,transport_desc:p.edt.transport_desc,father_salutation_code:p.edt.father_salutation_code,father_first_name:p.edt.father_first_name,father_middle_name:p.edt.father_middle_name,father_last_name:p.edt.father_last_name,father_family_name:p.edt.father_family_name,father_family_name_ot:p.edt.father_family_name_ot,father_nationality1_code:p.edt.father_nationality1_code,father_nationality2_code:p.edt.father_nationality2_code,father_appartment_number:p.edt.father_appartment_number,father_building_number:p.edt.father_building_number,father_street_number:p.edt.father_street_number,father_area_number:p.edt.father_area_number,father_city:p.edt.father_city,father_state:p.edt.father_state,father_country_code:p.edt.father_country_code,father_summary_address:p.edt.father_summary_address,father_po_box:p.edt.father_po_box,father_phone:p.edt.father_phone,father_email:p.edt.father_email,father_mobile:p.edt.father_mobile,father_fax:p.edt.father_fax,father_occupation:p.edt.father_occupation,father_company:p.edt.father_company,father_passport_number:p.edt.father_passport_number,sims_admission_father_national_id:p.edt.sims_admission_father_national_id,guardian_salutation_code:p.edt.guardian_salutation_code,guardian_first_name:p.edt.guardian_first_name,guardian_middle_name:p.edt.guardian_middle_name,guardian_last_name:p.edt.guardian_last_name,guardian_family_name:p.edt.guardian_family_name,guardian_nationality1_code:p.edt.guardian_nationality1_code,guardian_nationality2_code:p.edt.guardian_nationality2_code,guardian_appartment_number:p.edt.guardian_appartment_number,guardian_building_number:p.edt.guardian_building_number,guardian_street_number:p.edt.guardian_street_number,guardian_area_number:p.edt.guardian_area_number,guardian_city:p.edt.guardian_city,guardian_state:p.edt.guardian_state,guardian_country_code:p.edt.guardian_country_code,guardian_summary_address:p.edt.guardian_summary_address,guardian_po_box:p.edt.guardian_po_box,guardian_phone:p.edt.guardian_phone,guardian_mobile:p.edt.guardian_mobile,guardian_fax:p.edt.guardian_fax,guardian_email:p.edt.guardian_email,guardian_occupation:p.edt.guardian_occupation,guardian_company:p.edt.guardian_company,guardian_passport_number:p.edt.guardian_passport_number,guardian_relationship_code:p.edt.guardian_relationship_code,mother_salutation_code:p.edt.mother_salutation_code,mother_first_name:p.edt.mother_first_name,mother_middle_name:p.edt.mother_middle_name,mother_last_name:p.edt.mother_last_name,mother_family_name:p.edt.mother_family_name,mother_name_ot:p.edt.mother_name_ot,mother_nationality1_code:p.edt.mother_nationality1_code,mother_nationality2_code:p.edt.mother_nationality2_code,mother_appartment_number:p.edt.mother_appartment_number,mother_building_number:p.edt.mother_building_number,mother_street_number:p.edt.mother_street_number,mother_area_number:p.edt.mother_area_number,mother_city:p.edt.mother_city,mother_state:p.edt.mother_state,mother_country_code:p.edt.mother_country_code,mother_summary_address:p.edt.mother_summary_address,mother_po_box:p.edt.mother_po_box,mother_phone:p.edt.mother_phone,mother_mobile:p.edt.mother_mobile,mother_fax:p.edt.mother_fax,mother_email:p.edt.mother_email,mother_occupation:p.edt.mother_occupation,mother_passport_number:p.edt.mother_passport_number,current_school_status:p.edt.current_school_status,current_school_name:p.edt.current_school_name,current_school_enroll_number:p.edt.current_school_enroll_number,current_school_grade:p.edt.current_school_grade,current_school_cur:p.edt.current_school_cur,current_school_from_date:p.edt.current_school_from_date,current_school_to_date:p.edt.current_school_to_date,current_school_language:p.edt.current_school_language,current_school_head_teacher:p.edt.current_school_head_teacher,current_school_phone:p.edt.current_school_phone,current_school_fax:p.edt.current_school_fax,current_school_city:p.edt.current_school_city,current_school_country_code:p.edt.current_school_country_code,current_school_address:p.edt.current_school_address,marketing_code:p.edt.marketing_code,marketing_description:p.edt.marketing_description,parent_status_code:p.edt.parent_status_code,legal_custody_code:p.edt.legal_custody_code,health_card_number:p.edt.health_card_number,health_card_issue_date:p.edt.health_card_issue_date,health_card_issuing_authority:p.edt.health_card_issuing_authority,blood_group_code:p.edt.blood_group_code,medication_status:p.edt.medication_status,medication_desc:p.edt.medication_desc,disability_status:p.edt.disability_status,disability_desc:p.edt.disability_desc,behaviour_status:p.edt.behaviour_status,behaviour_desc:p.edt.behaviour_desc,health_restriction_status:p.edt.health_restriction_status,health_restriction_desc:p.edt.health_restriction_desc,health_hearing_status:p.edt.health_hearing_status,health_hearing_desc:p.edt.health_hearing_desc,health_vision_status:p.edt.health_vision_status,health_vision_desc:p.edt.health_vision_desc,health_other_status:p.edt.health_other_status,health_other_desc:p.edt.health_other_desc,gifted_status:p.edt.gifted_status,gifted_desc:p.edt.gifted_desc,music_status:p.edt.music_status,music_desc:p.edt.music_desc,sports_status:p.edt.sports_status,sports_desc:p.edt.sports_desc,language_support_status:p.edt.language_support_status,language_support_desc:p.edt.language_support_desc,declaration_status:p.edt.declaration_status,fees_paid_status:p.edt.fees_paid_status,fee_category_code:p.edt.fee_category_code,ip:p.edt.ip,dns:p.edt.dns,user_code:p.edt.user_code,status:p.edt.status,sims_student_attribute1:p.edt.sims_student_attribute1,sims_student_attribute2:p.edt.sims_student_attribute2,sims_student_attribute3:p.edt.sims_student_attribute3,sims_student_attribute4:p.edt.sims_student_attribute4,sims_student_health_respiratory_status:p.edt.sims_student_health_respiratory_status,sims_student_health_respiratory_desc:p.edt.sims_student_health_respiratory_desc,sims_student_health_hay_fever_status:p.edt.sims_student_health_hay_fever_status,sims_student_health_hay_fever_desc:p.edt.sims_student_health_hay_fever_desc,sims_student_health_epilepsy_status:p.edt.sims_student_health_epilepsy_status,sims_student_health_epilepsy_desc:p.edt.sims_student_health_epilepsy_desc,sims_student_health_skin_status:p.edt.sims_student_health_skin_status,sims_student_health_skin_desc:p.edt.sims_student_health_skin_desc,sims_student_health_diabetes_status:p.edt.sims_student_health_diabetes_status,sims_student_health_diabetes_desc:p.edt.sims_student_health_diabetes_desc,sims_student_health_surgery_status:p.edt.sims_student_health_surgery_status,sims_student_health_surgery_desc:p.edt.sims_student_health_surgery_desc,sims_admission_recommendation:p.edt.sims_admission_recommendation,sims_admission_mother_national_id:p.edt.sims_admission_mother_national_id,sims_admission_guardian_national_id:p.edt.sims_admission_guardian_national_id,sims_fee_month_code:p.edt.sims_fee_month_code,sims_student_attribute5:p.edt.sims_student_attribute5,sims_student_attribute6:p.edt.sims_student_attribute6,sims_student_attribute7:p.edt.sims_student_attribute7,sims_student_attribute8:p.edt.sims_student_attribute8,sims_student_attribute9:p.edt.sims_student_attribute9,sims_student_attribute10:p.edt.sims_student_attribute10,sims_student_attribute11:p.edt.sims_student_attribute11,sims_student_attribute12:p.edt.sims_student_attribute12,sims_admission_second_lang_code:p.edt.sims_admission_second_lang_code,sims_admission_third_lang_code:p.edt.sims_admission_third_lang_code,sims_admission_subject_code:p.edt.sims_admission_second_lang_code+","+p.edt.sims_admission_third_lang_code};d.push(e),h.post(g.apiUrl+"api/common/Admission_dpsd/ApproveStudent",d).then(function(e){p.display=!0,p.msg1=e.data,console.log(p.msg1)}),p.grid1=!0,$("#myModal1").modal({backdrop:"static",keyboard:!0})},p.get_studentfee=function(){e.go("main.Sim043")},p.schoolcheck=function(){1==p.edt.current_school_status?p.school_edit=!1:p.school_edit=!0},p.chk_desc=function(){1==p.edt.marketing_code?p.desc_edit=!1:p.desc_edit=!0},p.chk_cicumstances=function(){1==p.edt.parent_status_code?p.circum_edit=!1:p.circum_edit=!0},p.chk_disab_status=function(){1==p.edt.disability_status?p.disab_edit=!1:p.disab_edit=!0},p.chk_health_res=function(){1==p.edt.health_restriction_status?p.healthres_edit=!1:p.healthres_edit=!0},p.chk_medic_status=function(){1==p.edt.medication_status?p.med_edit=!1:p.med_edit=!0},p.chk_other=function(){1==p.edt.health_other_status?p.other_edit=!1:p.other_edit=!0},p.chk_hearing=function(){1==p.edt.health_hearing_status?p.hearing_edit=!1:p.hearing_edit=!0},p.chk_vision=function(){1==p.edt.health_vision_status?p.health_vision_edit=!1:p.health_vision_edit=!0},p.chk_behaviour=function(){1==p.edt.behaviour_status?p.behaviour_edit=!1:p.behaviour_edit=!0},p.chk_gifted_status=function(){1==p.edt.gifted_status?p.gifted_edit=!1:p.gifted_edit=!0},p.chk_music_pro=function(){1==p.edt.music_status?p.music_edit=!1:p.music_edit=!0},p.chk_sport_pro=function(){1==p.edt.sports_status?p.sport_edit=!1:p.sport_edit=!0},p.chk_lang_sup=function(){1==p.edt.language_support_status?p.lang_sup_edit=!1:p.lang_sup_edit=!0},p.chk_Pri_contact=function(){1==p.edt.primary_contact_code?p.pricont_edit=!1:p.pricont_edit=!0},p.chk_transport_requin=function(){1==p.edt.transport_status?p.transreq_edit=!1:p.transreq_edit=!0},p.chk_employee=function(){1==document.getElementById("chk_employee").checked?document.getElementById("txt_emp_code").disabled=!1:document.getElementById("txt_emp_code").disabled=!0},p.chk_Sibling_attend=function(){1==p.edt.sibling_status?p.disableparent=!1:p.disableparent=!0},p.chk_learn_ther=function(){1==p.edt.sims_admission_learning_therapy_status?p.learnther_edit=!1:p.learnther_edit=!0},p.chk_spec_edu=function(){1==p.edt.sims_admission_special_education_status?p.spec_edu_edit=!1:p.spec_edu_edit=!0},p.chk_falled_grade=function(){1==p.edt.sims_admission_falled_grade_status?p.falledgrade_edit=!1:p.falledgrade_edit=!0},p.chk_commun=function(){1==p.edt.sims_admission_communication_status?p.commun_edit=!1:p.commun_edit=!0},p.chk_spec_activies=function(){1==p.edt.sims_admission_specialAct_status?p.specActiv_edit=!1:p.specActiv_edit=!0},p.chk_studyingin=function(){1==p.edt.sibling_status?(p.Study_edit=!1,document.getElementById("t3"),document.getElementById("t4"),document.getElementById("t5"),p.t=!1):(p.Study_edit=!0,document.getElementById("t3"),document.getElementById("t4"),document.getElementById("t5"),p.t=!0)},p.chk_ticking=function(){1==p.edt.declaration_status?(p.tick_edit=!1,p.confirm_edit=!1):(p.tick_edit=!0,p.confirm_edit=!0)},p.chk_copy_mother_add=function(){1==p.edt.copy_add?(p.edt.mother_appartment_number=p.edt.father_appartment_number,p.edt.mother_area_number=p.edt.father_area_number,p.edt.mother_building_number=p.edt.father_building_number,p.edt.mother_street_number=p.edt.father_street_number,p.edt.mother_city=p.edt.father_city,p.edt.mother_state=p.edt.father_state,p.edt.mother_country_code=p.edt.father_country_code,p.edt.mother_po_box=p.edt.father_po_box,p.edt.mother_nationality1_code=p.edt.father_nationality1_code,p.edt.mother_nationality2_code=p.edt.father_nationality2_code,p.edt.mother_summary_address=p.edt.father_summary_address,p.edt.mother_phone=p.edt.father_phone,p.edt.mother_po_box=p.edt.father_po_box,p.edt.mother_mobile=p.edt.father_mobile,p.edt.mother_occupation=p.edt.father_occupation,p.edt.mother_email=p.edt.father_email,p.edt.mother_company=p.edt.father_company):(p.edt.mother_appartment_number="",p.edt.mother_area_number="",p.edt.mother_building_number="",p.edt.mother_street_number="",p.edt.mother_city="",p.edt.mother_state="",p.edt.mother_country_code="",p.edt.mother_po_box="",p.edt.mother_nationality1_code="",p.edt.mother_nationality2_code="",p.edt.mother_summary_address="",p.edt.mother_phone="",p.edt.mother_po_box="",p.edt.mother_mobile="",p.edt.mother_occupation="",p.edt.mother_email="",p.edt.mother_company="")},p.chk_copy_guar_add1=function(){1==p.edt.copy_add1?(p.edt.guardian_appartment_number=p.edt.father_appartment_number,p.edt.guardian_area_number=p.edt.father_area_number,p.edt.guardian_building_number=p.edt.father_building_number,p.edt.guardian_street_number=p.edt.father_street_number,p.edt.guardian_city=p.edt.father_city,p.edt.guardian_state=p.edt.father_state,p.edt.guardian_country_code=p.edt.father_country_code,p.edt.guardian_po_box=p.edt.father_po_box,p.edt.guardian_nationality1_code=p.edt.father_nationality1_code,p.edt.guardian_nationality2_code=p.edt.father_nationality2_code,p.edt.guardian_summary_address=p.edt.father_summary_address,p.edt.guardian_phone=p.edt.father_phone,p.edt.guardian_po_box=p.edt.father_po_box,p.edt.guardian_mobile=p.edt.father_mobile,p.edt.guardian_occupation=p.edt.father_occupation,p.edt.guardian_email=p.edt.father_email,p.edt.guardian_company=p.edt.father_company):(p.edt.guardian_appartment_number="",p.edt.guardian_area_number="",p.edt.guardian_building_number="",p.edt.guardian_street_number="",p.edt.guardian_city="",p.edt.guardian_state="",p.edt.guardian_country_code="",p.edt.guardian_po_box="",p.edt.guardian_nationality1_code="",p.edt.guardian_nationality2_code="",p.edt.guardian_summary_address="",p.edt.guardian_phone="",p.edt.guardian_po_box="",p.edt.guardian_mobile="",p.edt.guardian_occupation="",p.edt.guardian_email="",p.edt.guardian_company="")},p.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+=0parseInt(c.edt.sims_admission_marks_out_of)&&(swal({title:"Alert",text:"Please Enter Valid Marks.",showCloseButton:!0,width:450}),c.edt.sims_admission_marks_obtained="")},c.max_mark_sem1=function(){parseInt(c.edt.sims_fyadmission_marks_obtained_sem1)>parseInt(c.edt.sims_fyadmission_marks_out_of_Sem1)&&(swal({title:"Alert",text:"Please Enter Valid Marks.",showCloseButton:!0,width:450}),c.edt.sims_fyadmission_marks_obtained_sem1="")},c.max_mark_sem2=function(){parseInt(c.edt.sims_fyadmission_marks_obtained_sem2)>parseInt(c.edt.sims_fyadmission_marks_out_of_Sem2)&&(swal({title:"Alert",text:"Please Enter Valid Marks.",showCloseButton:!0,width:450}),c.edt.sims_fyadmission_marks_obtained_sem2="")},c.max_mark_sem3=function(){parseInt(c.edt.sims_syadmission_marks_obtained_sem3)>parseInt(c.edt.sims_syadmission_marks_out_of_Sem3)&&(swal({title:"Alert",text:"Please Enter Valid Marks.",showCloseButton:!0,width:450}),c.edt.sims_syadmission_marks_obtained_sem3="")},c.max_mark_sem4=function(){parseInt(c.edt.sims_syadmission_marks_obtained_sem4)>parseInt(c.edt.sims_syadmission_marks_out_of_sem4)&&(swal({title:"Alert",text:"Please Enter Valid Marks.",showCloseButton:!0,width:450}),c.edt.sims_syadmission_marks_obtained_sem4="")},n.get(i.apiUrl+"api/Comn/getAdmissionList").then(function(e){c.obj=e.data,console.log("asd admission form",e.data);for(var t=0;t=c.obj_age[e].sims_birth_date_to)&&(swal({title:"Birth Date",text:"For KG 1 admissions, child must be minimum 3.8 year old and can be maximum 4.11 year old as of 2017-03-31",showCloseButton:!0,width:450}),c.edt.birth_date=""),"02"==c.edt.grade_code&&(c.edt.birth_date<=c.obj_age[e].sims_birth_date_from&&(swal({title:"Birth Date",text:"For KG 2 admissions, child must be minimum 4.8 year old and can be maximum 5.11 year old as of 2017-03-31",showCloseButton:!0,width:450}),c.edt.birth_date=""),c.edt.birth_date>=c.obj_age[e].sims_birth_date_to)&&(swal({title:"Birth Date",text:"For KG 2 admissions, child must be minimum 4.8 year old and can be maximum 5.11 year old as of 2017-03-31",showCloseButton:!0,width:450}),c.edt.birth_date=""),"03"==c.edt.grade_code&&(c.edt.birth_date<=c.obj_age[e].sims_birth_date_from&&(swal({title:"Birth Date",text:"For Grade 1 admissions, child must be minimum 5.8 year old and can be maximum 6.11 year old as of 2017-03-31",showCloseButton:!0,width:480}),c.edt.birth_date=""),c.edt.birth_date>=c.obj_age[e].sims_birth_date_to)&&(swal({title:"Birth Date",text:"For Grade 1 admissions, child must be minimum 5.8 year old and can be maximum 6.11 year old as of 2017-03-31",showCloseButton:!0,width:480}),c.edt.birth_date="")},c.createdate=function(e){var t=e.split("/")[0],a=e.split("/")[1],e=e.split("/")[2],e=(date1=e+"/"+t+"/"+a,c.CurrentDate=new Date,new Date),t=e.getMonth()+1,a=e.getDate(),e=(e.getFullYear(),t<10&&(t="0"+t),a<10&&(a="0"+a),date3=e.getFullYear()+"/"+t+"/"+a,e.getFullYear()-4+"/"+t+"/"+a);(date1>=date3||date1<=e)&&(swal({title:"Birth Date",text:"Age Should Not be less than 4 yrs or greater than current year",imageUrl:"assets/img/notification-alert.png"}),document.getElementById("dp_birth_date").value="")},c.check_box_chk=function(e){"14"==c.edt.grade_code||"17"==c.edt.grade_code||"20"==c.edt.grade_code||"23"==c.edt.grade_code||"26"==c.edt.grade_code||"29"==c.edt.grade_code||"31"==c.edt.grade_code?(e?(c.school_select_flg=!0,c.school_flg=!1,c.schoolfy_flg=!1,c.school_selectfy_flg=!0):(c.school_flg=!0,c.school_select_flg=!1,c.schoolfy_flg=!0,c.school_selectfy_flg=!1),c.edt.current_school_name="",c.edt.sims_admission_center_name="",c.edt.current_fyschool_name="",c.edt.sims_admission_fycenter_name=""):"15"==c.edt.grade_code||"18"==c.edt.grade_code||"21"==c.edt.grade_code||"24"==c.edt.grade_code||"27"==c.edt.grade_code?(c.fy_flg=!0,c.sy_flg=!0,e?(c.school_select_flg=!0,c.school_flg=!1,c.schoolfy_flg=!1,c.school_selectfy_flg=!0,c.schoolsy_flg=!1,c.school_selectsy_flg=!0):(c.school_flg=!0,c.school_select_flg=!1,c.schoolfy_flg=!0,c.school_selectfy_flg=!1,c.schoolsy_flg=!0,c.school_selectsy_flg=!1),c.edt.current_school_name="",c.edt.sims_admission_center_name="",c.edt.current_syschool_name="",c.edt.sims_admission_sycenter_name="",c.edt.current_fyschool_name="",c.edt.sims_admission_fycenter_name=""):("28"!=c.edt.grade_code&&"29"!=c.edt.grade_code&&"30"!=c.edt.grade_code&&"31"!=c.edt.grade_code||(c.label_hsc="Graduation",c.flg_stream=!0,c.flg_stream1=!1),e?(c.school_select_flg=!0,c.school_flg=!1):(c.school_flg=!0,c.school_select_flg=!1),c.edt.current_school_name="",c.edt.sims_admission_center_name="")},c.NewSave=function(){a.BUSY.IsBusy=!0;var t=c.edt;t.red_id=d,t.email_id=email,t.opr="I";n.post(i.apiUrl+"api/common/AdmissionJc/CUDInsertAdmission",t).then(function(e){c.Insertmsg1=e.data,e.data&&(t.admission_number=c.Insertmsg1.admission_number,t.email_id=c.Insertmsg1.email_id,t.grade_name=document.getElementById("cmb_grade").options[document.getElementById("cmb_grade").selectedIndex].text,a.BUSY.IsBusy=!1,c.lbl_show=!0,c.lbl_msg="Application Submitted Sucessfully with application number "+t.admission_number,c.show_details()),c.Insertmsg1="",c.edt=""})},c.NewSave=function(e){e?"15"==c.edt.grade_code||"16"==c.edt.grade_code?null==c.edt.current_fyschool_name||""==c.edt.current_fyschool_name?swal({title:"Alert",text:"F.Y Last Institute Name is Required.",showCloseButton:!0,width:450}):null==c.edt.sims_fyadmission_marks_obtained_sem1||""==c.edt.sims_fyadmission_marks_obtained_sem1||null==c.edt.sims_fyadmission_marks_out_of_Sem1||""==c.edt.sims_fyadmission_marks_out_of_Sem1?swal({title:"Alert",text:"F.Y Last Marks Obtained Sem-I is Required.",showCloseButton:!0,width:450}):null==c.edt.sims_fyadmission_marks_obtained_sem2||""==c.edt.sims_fyadmission_marks_obtained_sem2||null==c.edt.sims_fyadmission_marks_out_of_Sem2||""==c.edt.sims_fyadmission_marks_out_of_Sem2?swal({title:"Alert",text:"F.Y Last Marks Obtained Sem-II is Required.",showCloseButton:!0,width:450}):c.NewSaveF():c.NewSaveF():swal({title:"Alert",text:"Application incomplete, Kindly fill all the Mandatory Fields.",showCloseButton:!0,width:450})},c.NewSave1=function(e){var t;e?1==c.edt.sibling_attend?null==c.edt.parent_id||""==c.edt.parent_id||null==c.edt.sibling_enroll||""==c.edt.sibling_enroll?swal({title:"Alert",text:"Parent Id And Enroll No are Required",showCloseButton:!0,width:450}):(a.BUSY.IsBusy=!0,(t=c.edt).red_id=d,t.email_id=email,t.opr="I",n.post(i.apiUrl+"api/common/AdmissionJc/CUDInsertAdmission",t).then(function(e){c.Insertmsg1=e.data,"Error"==e.status?c.lbl_msg="APPLICATION FORM SUBMITTED SUCCESSFULLY BUT WITH OUT APPLICATION NUMBER":(t.admission_number=c.Insertmsg1.admission_number,t.email_id=c.Insertmsg1.email_id,t.grade_name=document.getElementById("cmb_grade").options[document.getElementById("cmb_grade").selectedIndex].text,a.BUSY.IsBusy=!1,c.lbl_show=!0,c.lbl_msg="Application Submitted Sucessfully with application number "+t.admission_number,c.show_details()),c.Insertmsg1="",c.edt=""})):(a.BUSY.IsBusy=!0,(t=c.edt).red_id=d,t.email_id=email,t.opr="I",n.post(i.apiUrl+"api/common/AdmissionJc/CUDInsertAdmission",t).then(function(e){c.Insertmsg1=e.data,e.data&&(t.admission_number=c.Insertmsg1.admission_number,t.email_id=c.Insertmsg1.email_id,t.grade_name=document.getElementById("cmb_grade").options[document.getElementById("cmb_grade").selectedIndex].text,a.BUSY.IsBusy=!1,c.lbl_show=!0,c.lbl_msg="Application Submitted Sucessfully with application number "+t.admission_number,c.show_details()),c.Insertmsg1="",c.edt=""})):swal({title:"Alert",text:"Application incomplete, Kindly fill all the Mandatory Fields.",showCloseButton:!0,width:450})},c.GetFatherSumAddr=function(e){var t,a,s=c.edt,o=($("#txt_father_aprt").val().length,$("#txt_father_build").val().length,$("#txt_father_Street").val().length,$("#txt_father_city").val().length),n=($("#txt_father_city2").val().length,$("#guardiantaluka1").val().length),_=($("#guardiantaluka_text").val().length,$("#txt_father_state").val().length),i=$("#cmb_father_country").val().length,d=$("#txt_father_pobox").val().length;$("#txt_father_state").val().length,$("#Select6").val().length,$("#Text21").val().length;e?(e=document.getElementById("Select6").options[document.getElementById("Select6").selectedIndex].text,t=document.getElementById("txt_father_state").options[document.getElementById("txt_father_state").selectedIndex].text,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<$("#txt_father_city2").val().length?document.getElementById("txt_father_city2").value+",":"",document.getElementById("txt_father_summary_add").value+=0<$("#guardiantaluka_text").val().length?document.getElementById("guardiantaluka_text").value+",":"",document.getElementById("txt_father_summary_add").value+=0<_?t+",":"",document.getElementById("txt_father_summary_add").value+=0p.sectionlst1.section_strength?swal({title:"Alert",text:"Section Strength is Full.If You still want to Continue?",showCloseButton:!0,width:380}).then(function(e){e?p.adm_update():($("#cmb_section").css("background-color","#E5E9EC"),$('.nav-tabs a[href="#admtab1"]').tab("show"))}):p.adm_update())},p.adm_update=function(){null==p.edt.home_country_isdcode&&(p.edt.home_country_isdcode=""),null==p.edt.home_phone&&(p.edt.home_phone="");var e={admission_number:param,appl_num:p.edt.appl_num,pros_num:p.edt.pros_num,pros_appl_num:p.edt.pros_appl_num,admission_date:p.edt.admission_date,school_code:p.edt.school_code,curr_code:p.edt.curr_code,academic_year:p.edt.academic_year,grade_code:p.edt.grade_code,section_code:p.edt.section_code,term_code:p.edt.term_code,tent_join_date:p.edt.tent_join_date,sims_student_emergency_contact_number1:p.edt.sims_student_emergency_contact_number1,sims_student_emergency_contact_name1:p.edt.sims_student_emergency_contact_name1,first_name:p.edt.first_name,middle_name:p.edt.middle_name,last_name:p.edt.last_name,family_name:p.edt.family_name,first_name_ot:p.edt.first_name_ot,midd_name_ot:p.edt.midd_name_ot,last_name_ot:p.edt.last_name_ot,family_name_ot:p.edt.family_name_ot,nicke_name:p.edt.nicke_name,birth_date:p.edt.birth_date,sims_admission_tag_name:p.edt.sims_admission_tag_name,comm_date:p.edt.comm_date,birth_country_code:p.edt.birth_country_code,nationality_code:p.edt.nationality_code,ethinicity_code:p.edt.ethinicity_code,gender_code:p.edt.gender_code,religion_code:p.edt.religion_code,passport_num:p.edt.passport_num,passport_issue_date:p.edt.passport_issue_date,passport_expiry:p.edt.passport_expiry,passport_issue_auth:p.edt.passport_issue_auth,passport_issue_place:p.edt.passport_issue_place,visa_number:p.edt.visa_number,visa_type:p.edt.visa_type,visa_issuing_authority:p.edt.visa_issuing_authority,visa_issue_date:p.edt.visa_issue_date,visa_expiry_date:p.edt.visa_expiry_date,visa_issuing_place:p.edt.visa_issuing_place,national_id:p.edt.national_id,national_id_issue_date:p.edt.national_id_issue_date,national_id_expiry_date:p.edt.national_id_expiry_date,sibling_status:p.edt.sibling_status,parent_id:p.edt.parent_id,sibling_enroll:p.edt.sibling_enroll,sibling_name:p.edt.sibling_name,sibling_dob:p.edt.sibling_dob,sibling_school_code:p.edt.sibling_school_code,employee_type:p.edt.employee_type,employee_code:p.edt.employee_code,employee_school_code:p.edt.employee_school_code,motherTounge_language_code:p.edt.motherTounge_language_code,main_language_code:p.edt.main_language_code,main_language_r_code:p.edt.main_language_r_code,main_language_w_code:p.edt.main_language_w_code,main_language_s_code:p.edt.main_language_s_code,primary_contact_code:p.edt.primary_contact_code,primary_contact_pref_code:p.edt.primary_contact_pref_code,fee_payment_contact_pref_code:p.edt.fee_payment_contact_pref_code,transport_status:p.edt.transport_status,transport_desc:p.edt.transport_desc,father_salutation_code:p.edt.father_salutation_code,father_first_name:p.edt.father_first_name,father_middle_name:p.edt.father_middle_name,father_last_name:p.edt.father_last_name,father_family_name:p.edt.father_family_name,father_family_name_ot:p.edt.father_family_name_ot,father_nationality1_code:p.edt.father_nationality1_code,father_nationality2_code:p.edt.father_nationality2_code,father_appartment_number:p.edt.father_appartment_number,father_building_number:p.edt.father_building_number,father_street_number:p.edt.father_street_number,father_area_number:p.edt.father_area_number,father_city:p.edt.father_city,father_state:p.edt.father_state,father_country_code:p.edt.father_country_code,father_summary_address:p.edt.father_summary_address,father_po_box:p.edt.father_po_box,father_phone:p.edt.father_phone,father_email:p.edt.father_email,father_mobile:p.edt.father_mobile,father_fax:p.edt.father_fax,father_occupation:p.edt.father_occupation,father_company:p.edt.father_company,father_passport_number:p.edt.father_passport_number,sims_admission_father_national_id:p.edt.sims_admission_father_national_id,guardian_salutation_code:p.edt.guardian_salutation_code,guardian_first_name:p.edt.guardian_first_name,guardian_middle_name:p.edt.guardian_middle_name,guardian_last_name:p.edt.guardian_last_name,guardian_family_name:p.edt.guardian_family_name,guardian_nationality1_code:p.edt.guardian_nationality1_code,guardian_nationality2_code:p.edt.guardian_nationality2_code,guardian_appartment_number:p.edt.guardian_appartment_number,guardian_building_number:p.edt.guardian_building_number,guardian_street_number:p.edt.guardian_street_number,guardian_area_number:p.edt.guardian_area_number,guardian_city:p.edt.guardian_city,guardian_state:p.edt.guardian_state,guardian_country_code:p.edt.guardian_country_code,guardian_summary_address:p.edt.guardian_summary_address,guardian_po_box:p.edt.guardian_po_box,guardian_phone:p.edt.guardian_phone,guardian_mobile:p.edt.guardian_mobile,guardian_fax:p.edt.guardian_fax,guardian_email:p.edt.guardian_email,guardian_occupation:p.edt.guardian_occupation,guardian_company:p.edt.guardian_company,guardian_passport_number:p.edt.guardian_passport_number,guardian_relationship_code:p.edt.guardian_relationship_code,mother_salutation_code:p.edt.mother_salutation_code,mother_first_name:p.edt.mother_first_name,mother_middle_name:p.edt.mother_middle_name,mother_last_name:p.edt.mother_last_name,mother_family_name:p.edt.mother_family_name,mother_name_ot:p.edt.mother_name_ot,mother_nationality1_code:p.edt.mother_nationality1_code,mother_nationality2_code:p.edt.mother_nationality2_code,mother_appartment_number:p.edt.mother_appartment_number,mother_building_number:p.edt.mother_building_number,mother_street_number:p.edt.mother_street_number,mother_area_number:p.edt.mother_area_number,mother_city:p.edt.mother_city,mother_state:p.edt.mother_state,mother_country_code:p.edt.mother_country_code,mother_summary_address:p.edt.mother_summary_address,mother_po_box:p.edt.mother_po_box,mother_phone:p.edt.mother_phone,mother_mobile:p.edt.mother_mobile,mother_fax:p.edt.mother_fax,mother_email:p.edt.mother_email,mother_occupation:p.edt.mother_occupation,mother_passport_number:p.edt.mother_passport_number,current_school_status:p.edt.current_school_status,current_school_name:p.edt.current_school_name,current_school_enroll_number:p.edt.current_school_enroll_number,current_school_grade:p.edt.current_school_grade,current_school_cur:p.edt.current_school_cur,current_school_from_date:p.edt.current_school_from_date,current_school_to_date:p.edt.current_school_to_date,current_school_language:p.edt.current_school_language,current_school_head_teacher:p.edt.current_school_head_teacher,current_school_phone:p.edt.current_school_phone,current_school_fax:p.edt.current_school_fax,current_school_city:p.edt.current_school_city,current_school_country_code:p.edt.current_school_country_code,current_school_address:p.edt.current_school_address,marketing_code:p.edt.marketing_code,marketing_description:p.edt.marketing_description,parent_status_code:p.edt.parent_status_code,legal_custody_code:p.edt.legal_custody_code,health_card_number:p.edt.health_card_number,health_card_issue_date:p.edt.health_card_issue_date,health_card_issuing_authority:p.edt.health_card_issuing_authority,blood_group_code:p.edt.blood_group_code,medication_status:p.edt.medication_status,medication_desc:p.edt.medication_desc,disability_status:p.edt.disability_status,disability_desc:p.edt.disability_desc,behaviour_status:p.edt.behaviour_status,behaviour_desc:p.edt.behaviour_desc,health_restriction_status:p.edt.health_restriction_status,health_restriction_desc:p.edt.health_restriction_desc,health_hearing_status:p.edt.health_hearing_status,health_hearing_desc:p.edt.health_hearing_desc,health_vision_status:p.edt.health_vision_status,health_vision_desc:p.edt.health_vision_desc,health_other_status:p.edt.health_other_status,health_other_desc:p.edt.health_other_desc,gifted_status:p.edt.gifted_status,gifted_desc:p.edt.gifted_desc,music_status:p.edt.music_status,music_desc:p.edt.music_desc,sports_status:p.edt.sports_status,sports_desc:p.edt.sports_desc,language_support_status:p.edt.language_support_status,language_support_desc:p.edt.language_support_desc,declaration_status:p.edt.declaration_status,fees_paid_status:p.edt.fees_paid_status,fee_category_code:p.edt.fee_category_code,ip:p.edt.ip,dns:p.edt.dns,user_code:p.edt.user_code,status:p.edt.status,sims_student_attribute1:p.edt.sims_student_attribute1,sims_student_attribute2:p.edt.sims_student_attribute2,sims_student_attribute3:p.edt.sims_student_attribute3,sims_student_attribute4:p.edt.sims_student_attribute4,sims_student_health_respiratory_status:p.edt.sims_student_health_respiratory_status,sims_student_health_respiratory_desc:p.edt.sims_student_health_respiratory_desc,sims_student_health_hay_fever_status:p.edt.sims_student_health_hay_fever_status,sims_student_health_hay_fever_desc:p.edt.sims_student_health_hay_fever_desc,sims_student_health_epilepsy_status:p.edt.sims_student_health_epilepsy_status,sims_student_health_epilepsy_desc:p.edt.sims_student_health_epilepsy_desc,sims_student_health_skin_status:p.edt.sims_student_health_skin_status,sims_student_health_skin_desc:p.edt.sims_student_health_skin_desc,sims_student_health_diabetes_status:p.edt.sims_student_health_diabetes_status,sims_student_health_diabetes_desc:p.edt.sims_student_health_diabetes_desc,sims_student_health_surgery_status:p.edt.sims_student_health_surgery_status,sims_student_health_surgery_desc:p.edt.sims_student_health_surgery_desc,sims_admission_recommendation:p.edt.sims_admission_recommendation,sims_admission_mother_national_id:p.edt.sims_admission_mother_national_id,sims_admission_guardian_national_id:p.edt.sims_admission_guardian_national_id,sims_fee_month_code:p.edt.sims_fee_month_code,sims_student_attribute5:p.edt.sims_student_attribute5,sims_student_attribute6:p.edt.sims_student_attribute6,sims_student_attribute7:p.edt.sims_student_attribute7,sims_student_attribute8:p.edt.sims_student_attribute8,sims_student_attribute9:p.edt.sims_student_attribute9,sims_student_attribute10:p.edt.sims_student_attribute10,sims_student_attribute11:p.edt.sims_student_attribute11,sims_student_attribute12:p.edt.sims_student_attribute12,sims_admission_second_lang_code:p.edt.sims_admission_second_lang_code,sims_admission_third_lang_code:p.edt.sims_admission_third_lang_code,sims_admission_subject_code:p.edt.sims_admission_second_lang_code+","+p.edt.sims_admission_third_lang_code};d.push(e),h.post(g.apiUrl+"api/common/Admission_dpsd/ApproveStudent",d).then(function(e){p.display=!0,p.msg1=e.data,console.log(p.msg1)}),p.grid1=!0,$("#myModal1").modal({backdrop:"static",keyboard:!0})},p.get_studentfee=function(){s.go("main.Sim043")},p.schoolcheck=function(){1==p.edt.current_school_status?p.school_edit=!1:p.school_edit=!0},p.chk_desc=function(){1==p.edt.marketing_code?p.desc_edit=!1:p.desc_edit=!0},p.chk_cicumstances=function(){1==p.edt.parent_status_code?p.circum_edit=!1:p.circum_edit=!0},p.chk_disab_status=function(){1==p.edt.disability_status?p.disab_edit=!1:p.disab_edit=!0},p.chk_health_res=function(){1==p.edt.health_restriction_status?p.healthres_edit=!1:p.healthres_edit=!0},p.chk_medic_status=function(){1==p.edt.medication_status?p.med_edit=!1:p.med_edit=!0},p.chk_other=function(){1==p.edt.health_other_status?p.other_edit=!1:p.other_edit=!0},p.chk_hearing=function(){1==p.edt.health_hearing_status?p.hearing_edit=!1:p.hearing_edit=!0},p.chk_vision=function(){1==p.edt.health_vision_status?p.health_vision_edit=!1:p.health_vision_edit=!0},p.chk_behaviour=function(){1==p.edt.behaviour_status?p.behaviour_edit=!1:p.behaviour_edit=!0},p.chk_gifted_status=function(){1==p.edt.gifted_status?p.gifted_edit=!1:p.gifted_edit=!0},p.chk_music_pro=function(){1==p.edt.music_status?p.music_edit=!1:p.music_edit=!0},p.chk_sport_pro=function(){1==p.edt.sports_status?p.sport_edit=!1:p.sport_edit=!0},p.chk_lang_sup=function(){1==p.edt.language_support_status?p.lang_sup_edit=!1:p.lang_sup_edit=!0},p.chk_Pri_contact=function(){1==p.edt.primary_contact_code?p.pricont_edit=!1:p.pricont_edit=!0},p.chk_transport_requin=function(){1==p.edt.transport_status?p.transreq_edit=!1:p.transreq_edit=!0},p.chk_employee=function(){1==document.getElementById("chk_employee").checked?document.getElementById("txt_emp_code").disabled=!1:document.getElementById("txt_emp_code").disabled=!0},p.chk_Sibling_attend=function(){1==p.edt.sibling_status?p.disableparent=!1:p.disableparent=!0},p.chk_learn_ther=function(){1==p.edt.sims_admission_learning_therapy_status?p.learnther_edit=!1:p.learnther_edit=!0},p.chk_spec_edu=function(){1==p.edt.sims_admission_special_education_status?p.spec_edu_edit=!1:p.spec_edu_edit=!0},p.chk_falled_grade=function(){1==p.edt.sims_admission_falled_grade_status?p.falledgrade_edit=!1:p.falledgrade_edit=!0},p.chk_commun=function(){1==p.edt.sims_admission_communication_status?p.commun_edit=!1:p.commun_edit=!0},p.chk_spec_activies=function(){1==p.edt.sims_admission_specialAct_status?p.specActiv_edit=!1:p.specActiv_edit=!0},p.chk_studyingin=function(){1==p.edt.sibling_status?(p.Study_edit=!1,document.getElementById("t3"),document.getElementById("t4"),document.getElementById("t5"),p.t=!1):(p.Study_edit=!0,document.getElementById("t3"),document.getElementById("t4"),document.getElementById("t5"),p.t=!0)},p.chk_ticking=function(){1==p.edt.declaration_status?(p.tick_edit=!1,p.confirm_edit=!1):(p.tick_edit=!0,p.confirm_edit=!0)},p.chk_copy_mother_add=function(){1==p.edt.copy_add?(p.edt.mother_appartment_number=p.edt.father_appartment_number,p.edt.mother_area_number=p.edt.father_area_number,p.edt.mother_building_number=p.edt.father_building_number,p.edt.mother_street_number=p.edt.father_street_number,p.edt.mother_city=p.edt.father_city,p.edt.mother_state=p.edt.father_state,p.edt.mother_country_code=p.edt.father_country_code,p.edt.mother_po_box=p.edt.father_po_box,p.edt.mother_nationality1_code=p.edt.father_nationality1_code,p.edt.mother_nationality2_code=p.edt.father_nationality2_code,p.edt.mother_summary_address=p.edt.father_summary_address,p.edt.mother_phone=p.edt.father_phone,p.edt.mother_po_box=p.edt.father_po_box,p.edt.mother_mobile=p.edt.father_mobile,p.edt.mother_occupation=p.edt.father_occupation,p.edt.mother_email=p.edt.father_email,p.edt.mother_company=p.edt.father_company):(p.edt.mother_appartment_number="",p.edt.mother_area_number="",p.edt.mother_building_number="",p.edt.mother_street_number="",p.edt.mother_city="",p.edt.mother_state="",p.edt.mother_country_code="",p.edt.mother_po_box="",p.edt.mother_nationality1_code="",p.edt.mother_nationality2_code="",p.edt.mother_summary_address="",p.edt.mother_phone="",p.edt.mother_po_box="",p.edt.mother_mobile="",p.edt.mother_occupation="",p.edt.mother_email="",p.edt.mother_company="")},p.chk_copy_guar_add1=function(){1==p.edt.copy_add1?(p.edt.guardian_appartment_number=p.edt.father_appartment_number,p.edt.guardian_area_number=p.edt.father_area_number,p.edt.guardian_building_number=p.edt.father_building_number,p.edt.guardian_street_number=p.edt.father_street_number,p.edt.guardian_city=p.edt.father_city,p.edt.guardian_state=p.edt.father_state,p.edt.guardian_country_code=p.edt.father_country_code,p.edt.guardian_po_box=p.edt.father_po_box,p.edt.guardian_nationality1_code=p.edt.father_nationality1_code,p.edt.guardian_nationality2_code=p.edt.father_nationality2_code,p.edt.guardian_summary_address=p.edt.father_summary_address,p.edt.guardian_phone=p.edt.father_phone,p.edt.guardian_po_box=p.edt.father_po_box,p.edt.guardian_mobile=p.edt.father_mobile,p.edt.guardian_occupation=p.edt.father_occupation,p.edt.guardian_email=p.edt.father_email,p.edt.guardian_company=p.edt.father_company):(p.edt.guardian_appartment_number="",p.edt.guardian_area_number="",p.edt.guardian_building_number="",p.edt.guardian_street_number="",p.edt.guardian_city="",p.edt.guardian_state="",p.edt.guardian_country_code="",p.edt.guardian_po_box="",p.edt.guardian_nationality1_code="",p.edt.guardian_nationality2_code="",p.edt.guardian_summary_address="",p.edt.guardian_phone="",p.edt.guardian_po_box="",p.edt.guardian_mobile="",p.edt.guardian_occupation="",p.edt.guardian_email="",p.edt.guardian_company="")},p.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=date3||date1<=e)&&(swal({title:"Birth Date",text:"Age Should Not be less than 4 yrs or greater than current year",imageUrl:"assets/img/notification-alert.png"}),document.getElementById("dp_birth_date").value="")},i.Save=function(e){if(e&&0==i.btn_NewSave){for(var t=i.edt,a=(t.red_id=i.admission_num_new,t.opr="U",i.flg_sub=!1,[]),s=1,o=0;o=date3||date1<=e)&&(swal({title:"Birth Date",text:"Age Should Not be less than 4 yrs or greater than current year",imageUrl:"assets/img/notification-alert.png"}),document.getElementById("dp_birth_date").value="")},i.Save=function(e){if(e&&0==i.btn_NewSave){for(var t=i.edt,a=(t.red_id=i.admission_num_new,t.opr="U",i.flg_sub=!1,[]),s=1,o=0;op.sectionlst1.section_strength?swal({title:"Alert",text:"Section Strength is Full.If You still want to Continue?",showCloseButton:!0,width:380}).then(function(e){e?p.adm_update():($("#cmb_section").css("background-color","#E5E9EC"),$('.nav-tabs a[href="#admtab1"]').tab("show"))}):p.adm_update())},p.adm_update=function(){null==p.edt.home_country_isdcode&&(p.edt.home_country_isdcode=""),null==p.edt.home_phone&&(p.edt.home_phone="");var e={admission_number:param,appl_num:p.edt.appl_num,pros_num:p.edt.pros_num,pros_appl_num:p.edt.pros_appl_num,admission_date:p.edt.admission_date,school_code:p.edt.school_code,curr_code:p.edt.curr_code,academic_year:p.edt.academic_year,grade_code:p.edt.grade_code,section_code:p.edt.section_code,term_code:p.edt.term_code,tent_join_date:p.edt.tent_join_date,sims_student_emergency_contact_number1:p.edt.sims_student_emergency_contact_number1,sims_student_emergency_contact_name1:p.edt.sims_student_emergency_contact_name1,first_name:p.edt.first_name,middle_name:p.edt.middle_name,last_name:p.edt.last_name,family_name:p.edt.family_name,first_name_ot:p.edt.first_name_ot,midd_name_ot:p.edt.midd_name_ot,last_name_ot:p.edt.last_name_ot,family_name_ot:p.edt.family_name_ot,nicke_name:p.edt.nicke_name,birth_date:p.edt.birth_date,sims_admission_tag_name:p.edt.sims_admission_tag_name,comm_date:p.edt.comm_date,birth_country_code:p.edt.birth_country_code,nationality_code:p.edt.nationality_code,ethinicity_code:p.edt.ethinicity_code,gender_code:p.edt.gender_code,religion_code:p.edt.religion_code,passport_num:p.edt.passport_num,passport_issue_date:p.edt.passport_issue_date,passport_expiry:p.edt.passport_expiry,passport_issue_auth:p.edt.passport_issue_auth,passport_issue_place:p.edt.passport_issue_place,visa_number:p.edt.visa_number,visa_type:p.edt.visa_type,visa_issuing_authority:p.edt.visa_issuing_authority,visa_issue_date:p.edt.visa_issue_date,visa_expiry_date:p.edt.visa_expiry_date,visa_issuing_place:p.edt.visa_issuing_place,national_id:p.edt.national_id,national_id_issue_date:p.edt.national_id_issue_date,national_id_expiry_date:p.edt.national_id_expiry_date,sibling_status:p.edt.sibling_status,parent_id:p.edt.parent_id,sibling_enroll:p.edt.sibling_enroll,sibling_name:p.edt.sibling_name,sibling_dob:p.edt.sibling_dob,sibling_school_code:p.edt.sibling_school_code,employee_type:p.edt.employee_type,employee_code:p.edt.employee_code,employee_school_code:p.edt.employee_school_code,motherTounge_language_code:p.edt.motherTounge_language_code,main_language_code:p.edt.main_language_code,main_language_r_code:p.edt.main_language_r_code,main_language_w_code:p.edt.main_language_w_code,main_language_s_code:p.edt.main_language_s_code,primary_contact_code:p.edt.primary_contact_code,primary_contact_pref_code:p.edt.primary_contact_pref_code,fee_payment_contact_pref_code:p.edt.fee_payment_contact_pref_code,transport_status:p.edt.transport_status,transport_desc:p.edt.transport_desc,father_salutation_code:p.edt.father_salutation_code,father_first_name:p.edt.father_first_name,father_middle_name:p.edt.father_middle_name,father_last_name:p.edt.father_last_name,father_family_name:p.edt.father_family_name,father_family_name_ot:p.edt.father_family_name_ot,father_nationality1_code:p.edt.father_nationality1_code,father_nationality2_code:p.edt.father_nationality2_code,father_appartment_number:p.edt.father_appartment_number,father_building_number:p.edt.father_building_number,father_street_number:p.edt.father_street_number,father_area_number:p.edt.father_area_number,father_city:p.edt.father_city,father_state:p.edt.father_state,father_country_code:p.edt.father_country_code,father_summary_address:p.edt.father_summary_address,father_po_box:p.edt.father_po_box,father_phone:p.edt.father_phone,father_email:p.edt.father_email,father_mobile:p.edt.father_mobile,father_fax:p.edt.father_fax,father_occupation:p.edt.father_occupation,father_company:p.edt.father_company,father_passport_number:p.edt.father_passport_number,sims_admission_father_national_id:p.edt.sims_admission_father_national_id,guardian_salutation_code:p.edt.guardian_salutation_code,guardian_first_name:p.edt.guardian_first_name,guardian_middle_name:p.edt.guardian_middle_name,guardian_last_name:p.edt.guardian_last_name,guardian_family_name:p.edt.guardian_family_name,guardian_nationality1_code:p.edt.guardian_nationality1_code,guardian_nationality2_code:p.edt.guardian_nationality2_code,guardian_appartment_number:p.edt.guardian_appartment_number,guardian_building_number:p.edt.guardian_building_number,guardian_street_number:p.edt.guardian_street_number,guardian_area_number:p.edt.guardian_area_number,guardian_city:p.edt.guardian_city,guardian_state:p.edt.guardian_state,guardian_country_code:p.edt.guardian_country_code,guardian_summary_address:p.edt.guardian_summary_address,guardian_po_box:p.edt.guardian_po_box,guardian_phone:p.edt.guardian_phone,guardian_mobile:p.edt.guardian_mobile,guardian_fax:p.edt.guardian_fax,guardian_email:p.edt.guardian_email,guardian_occupation:p.edt.guardian_occupation,guardian_company:p.edt.guardian_company,guardian_passport_number:p.edt.guardian_passport_number,guardian_relationship_code:p.edt.guardian_relationship_code,mother_salutation_code:p.edt.mother_salutation_code,mother_first_name:p.edt.mother_first_name,mother_middle_name:p.edt.mother_middle_name,mother_last_name:p.edt.mother_last_name,mother_family_name:p.edt.mother_family_name,mother_name_ot:p.edt.mother_name_ot,mother_nationality1_code:p.edt.mother_nationality1_code,mother_nationality2_code:p.edt.mother_nationality2_code,mother_appartment_number:p.edt.mother_appartment_number,mother_building_number:p.edt.mother_building_number,mother_street_number:p.edt.mother_street_number,mother_area_number:p.edt.mother_area_number,mother_city:p.edt.mother_city,mother_state:p.edt.mother_state,mother_country_code:p.edt.mother_country_code,mother_summary_address:p.edt.mother_summary_address,mother_po_box:p.edt.mother_po_box,mother_phone:p.edt.mother_phone,mother_mobile:p.edt.mother_mobile,mother_fax:p.edt.mother_fax,mother_email:p.edt.mother_email,mother_occupation:p.edt.mother_occupation,mother_passport_number:p.edt.mother_passport_number,current_school_status:p.edt.current_school_status,current_school_name:p.edt.current_school_name,current_school_enroll_number:p.edt.current_school_enroll_number,current_school_grade:p.edt.current_school_grade,current_school_cur:p.edt.current_school_cur,current_school_from_date:p.edt.current_school_from_date,current_school_to_date:p.edt.current_school_to_date,current_school_language:p.edt.current_school_language,current_school_head_teacher:p.edt.current_school_head_teacher,current_school_phone:p.edt.current_school_phone,current_school_fax:p.edt.current_school_fax,current_school_city:p.edt.current_school_city,current_school_country_code:p.edt.current_school_country_code,current_school_address:p.edt.current_school_address,marketing_code:p.edt.marketing_code,marketing_description:p.edt.marketing_description,parent_status_code:p.edt.parent_status_code,legal_custody_code:p.edt.legal_custody_code,health_card_number:p.edt.health_card_number,health_card_issue_date:p.edt.health_card_issue_date,health_card_issuing_authority:p.edt.health_card_issuing_authority,blood_group_code:p.edt.blood_group_code,medication_status:p.edt.medication_status,medication_desc:p.edt.medication_desc,disability_status:p.edt.disability_status,disability_desc:p.edt.disability_desc,behaviour_status:p.edt.behaviour_status,behaviour_desc:p.edt.behaviour_desc,health_restriction_status:p.edt.health_restriction_status,health_restriction_desc:p.edt.health_restriction_desc,health_hearing_status:p.edt.health_hearing_status,health_hearing_desc:p.edt.health_hearing_desc,health_vision_status:p.edt.health_vision_status,health_vision_desc:p.edt.health_vision_desc,health_other_status:p.edt.health_other_status,health_other_desc:p.edt.health_other_desc,gifted_status:p.edt.gifted_status,gifted_desc:p.edt.gifted_desc,music_status:p.edt.music_status,music_desc:p.edt.music_desc,sports_status:p.edt.sports_status,sports_desc:p.edt.sports_desc,language_support_status:p.edt.language_support_status,language_support_desc:p.edt.language_support_desc,declaration_status:p.edt.declaration_status,fees_paid_status:p.edt.fees_paid_status,fee_category_code:p.edt.fee_category_code,ip:p.edt.ip,dns:p.edt.dns,user_code:p.edt.user_code,status:p.edt.status,sims_student_attribute1:p.edt.sims_student_attribute1,sims_student_attribute2:p.edt.sims_student_attribute2,sims_student_attribute3:p.edt.sims_student_attribute3,sims_student_attribute4:p.edt.sims_student_attribute4,sims_student_health_respiratory_status:p.edt.sims_student_health_respiratory_status,sims_student_health_respiratory_desc:p.edt.sims_student_health_respiratory_desc,sims_student_health_hay_fever_status:p.edt.sims_student_health_hay_fever_status,sims_student_health_hay_fever_desc:p.edt.sims_student_health_hay_fever_desc,sims_student_health_epilepsy_status:p.edt.sims_student_health_epilepsy_status,sims_student_health_epilepsy_desc:p.edt.sims_student_health_epilepsy_desc,sims_student_health_skin_status:p.edt.sims_student_health_skin_status,sims_student_health_skin_desc:p.edt.sims_student_health_skin_desc,sims_student_health_diabetes_status:p.edt.sims_student_health_diabetes_status,sims_student_health_diabetes_desc:p.edt.sims_student_health_diabetes_desc,sims_student_health_surgery_status:p.edt.sims_student_health_surgery_status,sims_student_health_surgery_desc:p.edt.sims_student_health_surgery_desc,sims_admission_recommendation:p.edt.sims_admission_recommendation,sims_admission_mother_national_id:p.edt.sims_admission_mother_national_id,sims_admission_guardian_national_id:p.edt.sims_admission_guardian_national_id,sims_fee_month_code:p.edt.sims_fee_month_code,sims_student_attribute5:p.edt.sims_student_attribute5,sims_student_attribute6:p.edt.sims_student_attribute6,sims_student_attribute7:p.edt.sims_student_attribute7,sims_student_attribute8:p.edt.sims_student_attribute8,sims_student_attribute9:p.edt.sims_student_attribute9,sims_student_attribute10:p.edt.sims_student_attribute10,sims_student_attribute11:p.edt.sims_student_attribute11,sims_student_attribute12:p.edt.sims_student_attribute12,sims_admission_second_lang_code:p.edt.sims_admission_second_lang_code,sims_admission_third_lang_code:p.edt.sims_admission_third_lang_code,sims_admission_subject_code:p.edt.sims_admission_second_lang_code+","+p.edt.sims_admission_third_lang_code};a.push(e),h.post(g.apiUrl+"api/common/Admission_dpsd/ApproveStudent",a).then(function(e){p.display=!0,p.msg1=e.data}),p.grid1=!0,$("#myModal1").modal({backdrop:"static",keyboard:!0})},p.get_studentfee=function(){s.go("main.Sim043")},p.schoolcheck=function(){!0===p.edt.current_school_status?p.school_edit=!1:p.school_edit=!0},p.chk_desc=function(){!0===p.edt.marketing_code?p.desc_edit=!1:p.desc_edit=!0},p.chk_cicumstances=function(){!0===p.edt.parent_status_code?p.circum_edit=!1:p.circum_edit=!0},p.chk_disab_status=function(){!0===p.edt.disability_status?p.disab_edit=!1:p.disab_edit=!0},p.chk_health_res=function(){!0===p.edt.health_restriction_status?p.healthres_edit=!1:p.healthres_edit=!0},p.chk_medic_status=function(){!0===p.edt.medication_status?p.med_edit=!1:p.med_edit=!0},p.chk_other=function(){!0===p.edt.health_other_status?p.other_edit=!1:p.other_edit=!0},p.chk_hearing=function(){!0===p.edt.health_hearing_status?p.hearing_edit=!1:p.hearing_edit=!0},p.chk_vision=function(){!0===p.edt.health_vision_status?p.health_vision_edit=!1:p.health_vision_edit=!0},p.chk_behaviour=function(){!0===p.edt.behaviour_status?p.behaviour_edit=!1:p.behaviour_edit=!0},p.chk_gifted_status=function(){!0===p.edt.gifted_status?p.gifted_edit=!1:p.gifted_edit=!0},p.chk_music_pro=function(){!0===p.edt.music_status?p.music_edit=!1:p.music_edit=!0},p.chk_sport_pro=function(){!0===p.edt.sports_status?p.sport_edit=!1:p.sport_edit=!0},p.chk_lang_sup=function(){!0===p.edt.language_support_status?p.lang_sup_edit=!1:p.lang_sup_edit=!0},p.chk_Pri_contact=function(){!0===p.edt.primary_contact_code?p.pricont_edit=!1:p.pricont_edit=!0},p.chk_transport_requin=function(){!0===p.edt.transport_status?p.transreq_edit=!1:p.transreq_edit=!0},p.chk_employee=function(){!0===document.getElementById("chk_employee").checked?document.getElementById("txt_emp_code").disabled=!1:document.getElementById("txt_emp_code").disabled=!0},p.chk_Sibling_attend=function(){!0===p.edt.sibling_status?p.disableparent=!1:p.disableparent=!0},p.chk_learn_ther=function(){!0===p.edt.sims_admission_learning_therapy_status?p.learnther_edit=!1:p.learnther_edit=!0},p.chk_spec_edu=function(){!0===p.edt.sims_admission_special_education_status?p.spec_edu_edit=!1:p.spec_edu_edit=!0},p.chk_falled_grade=function(){!0===p.edt.sims_admission_falled_grade_status?p.falledgrade_edit=!1:p.falledgrade_edit=!0},p.chk_commun=function(){!0===p.edt.sims_admission_communication_status?p.commun_edit=!1:p.commun_edit=!0},p.chk_spec_activies=function(){!0===p.edt.sims_admission_specialAct_status?p.specActiv_edit=!1:p.specActiv_edit=!0},p.chk_studyingin=function(){!0===p.edt.sibling_status?(p.Study_edit=!1,document.getElementById("t3"),document.getElementById("t4"),document.getElementById("t5"),p.t=!1):(p.Study_edit=!0,document.getElementById("t3"),document.getElementById("t4"),document.getElementById("t5"),p.t=!0)},p.chk_ticking=function(){!0===p.edt.declaration_status?(p.tick_edit=!1,p.confirm_edit=!1):(p.tick_edit=!0,p.confirm_edit=!0)},p.chk_copy_mother_add=function(){!0===p.edt.copy_add?(p.edt.mother_appartment_number=p.edt.father_appartment_number,p.edt.mother_area_number=p.edt.father_area_number,p.edt.mother_building_number=p.edt.father_building_number,p.edt.mother_street_number=p.edt.father_street_number,p.edt.mother_city=p.edt.father_city,p.edt.mother_state=p.edt.father_state,p.edt.mother_country_code=p.edt.father_country_code,p.edt.mother_po_box=p.edt.father_po_box,p.edt.mother_nationality1_code=p.edt.father_nationality1_code,p.edt.mother_nationality2_code=p.edt.father_nationality2_code,p.edt.mother_summary_address=p.edt.father_summary_address,p.edt.mother_phone=p.edt.father_phone,p.edt.mother_po_box=p.edt.father_po_box,p.edt.mother_mobile=p.edt.father_mobile,p.edt.mother_occupation=p.edt.father_occupation,p.edt.mother_email=p.edt.father_email,p.edt.mother_company=p.edt.father_company):(p.edt.mother_appartment_number="",p.edt.mother_area_number="",p.edt.mother_building_number="",p.edt.mother_street_number="",p.edt.mother_city="",p.edt.mother_state="",p.edt.mother_country_code="",p.edt.mother_po_box="",p.edt.mother_nationality1_code="",p.edt.mother_nationality2_code="",p.edt.mother_summary_address="",p.edt.mother_phone="",p.edt.mother_po_box="",p.edt.mother_mobile="",p.edt.mother_occupation="",p.edt.mother_email="",p.edt.mother_company="")},p.chk_copy_guar_add1=function(){!0===p.edt.copy_add1?(p.edt.guardian_appartment_number=p.edt.father_appartment_number,p.edt.guardian_area_number=p.edt.father_area_number,p.edt.guardian_building_number=p.edt.father_building_number,p.edt.guardian_street_number=p.edt.father_street_number,p.edt.guardian_city=p.edt.father_city,p.edt.guardian_state=p.edt.father_state,p.edt.guardian_country_code=p.edt.father_country_code,p.edt.guardian_po_box=p.edt.father_po_box,p.edt.guardian_nationality1_code=p.edt.father_nationality1_code,p.edt.guardian_nationality2_code=p.edt.father_nationality2_code,p.edt.guardian_summary_address=p.edt.father_summary_address,p.edt.guardian_phone=p.edt.father_phone,p.edt.guardian_po_box=p.edt.father_po_box,p.edt.guardian_mobile=p.edt.father_mobile,p.edt.guardian_occupation=p.edt.father_occupation,p.edt.guardian_email=p.edt.father_email,p.edt.guardian_company=p.edt.father_company):(p.edt.guardian_appartment_number="",p.edt.guardian_area_number="",p.edt.guardian_building_number="",p.edt.guardian_street_number="",p.edt.guardian_city="",p.edt.guardian_state="",p.edt.guardian_country_code="",p.edt.guardian_po_box="",p.edt.guardian_nationality1_code="",p.edt.guardian_nationality2_code="",p.edt.guardian_summary_address="",p.edt.guardian_phone="",p.edt.guardian_po_box="",p.edt.guardian_mobile="",p.edt.guardian_occupation="",p.edt.guardian_email="",p.edt.guardian_company="")},p.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+=0p.sectionlst1.section_strength?swal({title:"Alert",text:"Section Strength is Full.If You still want to Continue?",showCloseButton:!0,width:380}).then(function(e){e?p.adm_update():($("#cmb_section").css("background-color","#E5E9EC"),$('.nav-tabs a[href="#admtab1"]').tab("show"))}):p.adm_update())},p.adm_update=function(){null==p.edt.home_country_isdcode&&(p.edt.home_country_isdcode=""),null==p.edt.home_phone&&(p.edt.home_phone="");var e={admission_number:param,appl_num:p.edt.appl_num,pros_num:p.edt.pros_num,pros_appl_num:p.edt.pros_appl_num,admission_date:p.edt.admission_date,school_code:p.edt.school_code,curr_code:p.edt.curr_code,academic_year:p.edt.academic_year,grade_code:p.edt.grade_code,section_code:p.edt.section_code,term_code:p.edt.term_code,tent_join_date:p.edt.tent_join_date,sims_student_emergency_contact_number1:p.edt.sims_student_emergency_contact_number1,sims_student_emergency_contact_name1:p.edt.sims_student_emergency_contact_name1,first_name:p.edt.first_name,middle_name:p.edt.middle_name,last_name:p.edt.last_name,family_name:p.edt.family_name,first_name_ot:p.edt.first_name_ot,midd_name_ot:p.edt.midd_name_ot,last_name_ot:p.edt.last_name_ot,family_name_ot:p.edt.family_name_ot,nicke_name:p.edt.nicke_name,birth_date:p.edt.birth_date,sims_admission_tag_name:p.edt.sims_admission_tag_name,comm_date:p.edt.comm_date,birth_country_code:p.edt.birth_country_code,nationality_code:p.edt.nationality_code,ethinicity_code:p.edt.ethinicity_code,gender_code:p.edt.gender_code,religion_code:p.edt.religion_code,passport_num:p.edt.passport_num,passport_issue_date:p.edt.passport_issue_date,passport_expiry:p.edt.passport_expiry,passport_issue_auth:p.edt.passport_issue_auth,passport_issue_place:p.edt.passport_issue_place,visa_number:p.edt.visa_number,visa_type:p.edt.visa_type,visa_issuing_authority:p.edt.visa_issuing_authority,visa_issue_date:p.edt.visa_issue_date,visa_expiry_date:p.edt.visa_expiry_date,visa_issuing_place:p.edt.visa_issuing_place,national_id:p.edt.national_id,national_id_issue_date:p.edt.national_id_issue_date,national_id_expiry_date:p.edt.national_id_expiry_date,sibling_status:p.edt.sibling_status,parent_id:p.edt.parent_id,sibling_enroll:p.edt.sibling_enroll,sibling_name:p.edt.sibling_name,sibling_dob:p.edt.sibling_dob,sibling_school_code:p.edt.sibling_school_code,employee_type:p.edt.employee_type,employee_code:p.edt.employee_code,employee_school_code:p.edt.employee_school_code,motherTounge_language_code:p.edt.motherTounge_language_code,main_language_code:p.edt.main_language_code,main_language_r_code:p.edt.main_language_r_code,main_language_w_code:p.edt.main_language_w_code,main_language_s_code:p.edt.main_language_s_code,primary_contact_code:p.edt.primary_contact_code,primary_contact_pref_code:p.edt.primary_contact_pref_code,fee_payment_contact_pref_code:p.edt.fee_payment_contact_pref_code,transport_status:p.edt.transport_status,transport_desc:p.edt.transport_desc,father_salutation_code:p.edt.father_salutation_code,father_first_name:p.edt.father_first_name,father_middle_name:p.edt.father_middle_name,father_last_name:p.edt.father_last_name,father_family_name:p.edt.father_family_name,father_family_name_ot:p.edt.father_family_name_ot,father_nationality1_code:p.edt.father_nationality1_code,father_nationality2_code:p.edt.father_nationality2_code,father_appartment_number:p.edt.father_appartment_number,father_building_number:p.edt.father_building_number,father_street_number:p.edt.father_street_number,father_area_number:p.edt.father_area_number,father_city:p.edt.father_city,father_state:p.edt.father_state,father_country_code:p.edt.father_country_code,father_summary_address:p.edt.father_summary_address,father_po_box:p.edt.father_po_box,father_phone:p.edt.father_phone,father_email:p.edt.father_email,father_mobile:p.edt.father_mobile,father_fax:p.edt.father_fax,father_occupation:p.edt.father_occupation,father_company:p.edt.father_company,father_passport_number:p.edt.father_passport_number,sims_admission_father_national_id:p.edt.sims_admission_father_national_id,guardian_salutation_code:p.edt.guardian_salutation_code,guardian_first_name:p.edt.guardian_first_name,guardian_middle_name:p.edt.guardian_middle_name,guardian_last_name:p.edt.guardian_last_name,guardian_family_name:p.edt.guardian_family_name,guardian_nationality1_code:p.edt.guardian_nationality1_code,guardian_nationality2_code:p.edt.guardian_nationality2_code,guardian_appartment_number:p.edt.guardian_appartment_number,guardian_building_number:p.edt.guardian_building_number,guardian_street_number:p.edt.guardian_street_number,guardian_area_number:p.edt.guardian_area_number,guardian_city:p.edt.guardian_city,guardian_state:p.edt.guardian_state,guardian_country_code:p.edt.guardian_country_code,guardian_summary_address:p.edt.guardian_summary_address,guardian_po_box:p.edt.guardian_po_box,guardian_phone:p.edt.guardian_phone,guardian_mobile:p.edt.guardian_mobile,guardian_fax:p.edt.guardian_fax,guardian_email:p.edt.guardian_email,guardian_occupation:p.edt.guardian_occupation,guardian_company:p.edt.guardian_company,guardian_passport_number:p.edt.guardian_passport_number,guardian_relationship_code:p.edt.guardian_relationship_code,mother_salutation_code:p.edt.mother_salutation_code,mother_first_name:p.edt.mother_first_name,mother_middle_name:p.edt.mother_middle_name,mother_last_name:p.edt.mother_last_name,mother_family_name:p.edt.mother_family_name,mother_name_ot:p.edt.mother_name_ot,mother_nationality1_code:p.edt.mother_nationality1_code,mother_nationality2_code:p.edt.mother_nationality2_code,mother_appartment_number:p.edt.mother_appartment_number,mother_building_number:p.edt.mother_building_number,mother_street_number:p.edt.mother_street_number,mother_area_number:p.edt.mother_area_number,mother_city:p.edt.mother_city,mother_state:p.edt.mother_state,mother_country_code:p.edt.mother_country_code,mother_summary_address:p.edt.mother_summary_address,mother_po_box:p.edt.mother_po_box,mother_phone:p.edt.mother_phone,mother_mobile:p.edt.mother_mobile,mother_fax:p.edt.mother_fax,mother_email:p.edt.mother_email,mother_occupation:p.edt.mother_occupation,mother_passport_number:p.edt.mother_passport_number,current_school_status:p.edt.current_school_status,current_school_name:p.edt.current_school_name,current_school_enroll_number:p.edt.current_school_enroll_number,current_school_grade:p.edt.current_school_grade,current_school_cur:p.edt.current_school_cur,current_school_from_date:p.edt.current_school_from_date,current_school_to_date:p.edt.current_school_to_date,current_school_language:p.edt.current_school_language,current_school_head_teacher:p.edt.current_school_head_teacher,current_school_phone:p.edt.current_school_phone,current_school_fax:p.edt.current_school_fax,current_school_city:p.edt.current_school_city,current_school_country_code:p.edt.current_school_country_code,current_school_address:p.edt.current_school_address,marketing_code:p.edt.marketing_code,marketing_description:p.edt.marketing_description,parent_status_code:p.edt.parent_status_code,legal_custody_code:p.edt.legal_custody_code,health_card_number:p.edt.health_card_number,health_card_issue_date:p.edt.health_card_issue_date,health_card_issuing_authority:p.edt.health_card_issuing_authority,blood_group_code:p.edt.blood_group_code,medication_status:p.edt.medication_status,medication_desc:p.edt.medication_desc,disability_status:p.edt.disability_status,disability_desc:p.edt.disability_desc,behaviour_status:p.edt.behaviour_status,behaviour_desc:p.edt.behaviour_desc,health_restriction_status:p.edt.health_restriction_status,health_restriction_desc:p.edt.health_restriction_desc,health_hearing_status:p.edt.health_hearing_status,health_hearing_desc:p.edt.health_hearing_desc,health_vision_status:p.edt.health_vision_status,health_vision_desc:p.edt.health_vision_desc,health_other_status:p.edt.health_other_status,health_other_desc:p.edt.health_other_desc,gifted_status:p.edt.gifted_status,gifted_desc:p.edt.gifted_desc,music_status:p.edt.music_status,music_desc:p.edt.music_desc,sports_status:p.edt.sports_status,sports_desc:p.edt.sports_desc,language_support_status:p.edt.language_support_status,language_support_desc:p.edt.language_support_desc,declaration_status:p.edt.declaration_status,fees_paid_status:p.edt.fees_paid_status,fee_category_code:p.edt.fee_category_code,ip:p.edt.ip,dns:p.edt.dns,user_code:p.edt.user_code,status:p.edt.status,sims_student_attribute1:p.edt.sims_student_attribute1,sims_student_attribute2:p.edt.sims_student_attribute2,sims_student_attribute3:p.edt.sims_student_attribute3,sims_student_attribute4:p.edt.sims_student_attribute4,sims_student_health_respiratory_status:p.edt.sims_student_health_respiratory_status,sims_student_health_respiratory_desc:p.edt.sims_student_health_respiratory_desc,sims_student_health_hay_fever_status:p.edt.sims_student_health_hay_fever_status,sims_student_health_hay_fever_desc:p.edt.sims_student_health_hay_fever_desc,sims_student_health_epilepsy_status:p.edt.sims_student_health_epilepsy_status,sims_student_health_epilepsy_desc:p.edt.sims_student_health_epilepsy_desc,sims_student_health_skin_status:p.edt.sims_student_health_skin_status,sims_student_health_skin_desc:p.edt.sims_student_health_skin_desc,sims_student_health_diabetes_status:p.edt.sims_student_health_diabetes_status,sims_student_health_diabetes_desc:p.edt.sims_student_health_diabetes_desc,sims_student_health_surgery_status:p.edt.sims_student_health_surgery_status,sims_student_health_surgery_desc:p.edt.sims_student_health_surgery_desc,sims_admission_recommendation:p.edt.sims_admission_recommendation,sims_admission_mother_national_id:p.edt.sims_admission_mother_national_id,sims_admission_guardian_national_id:p.edt.sims_admission_guardian_national_id,sims_fee_month_code:p.edt.sims_fee_month_code,sims_student_attribute5:p.edt.sims_student_attribute5,sims_student_attribute6:p.edt.sims_student_attribute6,sims_student_attribute7:p.edt.sims_student_attribute7,sims_student_attribute8:p.edt.sims_student_attribute8,sims_student_attribute9:p.edt.sims_student_attribute9,sims_student_attribute10:p.edt.sims_student_attribute10,sims_student_attribute11:p.edt.sims_student_attribute11,sims_student_attribute12:p.edt.sims_student_attribute12,sims_admission_second_lang_code:p.edt.sims_admission_second_lang_code,sims_admission_third_lang_code:p.edt.sims_admission_third_lang_code,sims_admission_subject_code:p.edt.sims_admission_second_lang_code+","+p.edt.sims_admission_third_lang_code};a.push(e),h.post(g.apiUrl+"api/common/Admission_dpsd/ApproveStudent",a).then(function(e){p.display=!0,p.msg1=e.data}),p.grid1=!0,$("#myModal1").modal({backdrop:"static",keyboard:!0})},p.get_studentfee=function(){s.go("main.Sim043")},p.schoolcheck=function(){!0===p.edt.current_school_status?p.school_edit=!1:p.school_edit=!0},p.chk_desc=function(){!0===p.edt.marketing_code?p.desc_edit=!1:p.desc_edit=!0},p.chk_cicumstances=function(){!0===p.edt.parent_status_code?p.circum_edit=!1:p.circum_edit=!0},p.chk_disab_status=function(){!0===p.edt.disability_status?p.disab_edit=!1:p.disab_edit=!0},p.chk_health_res=function(){!0===p.edt.health_restriction_status?p.healthres_edit=!1:p.healthres_edit=!0},p.chk_medic_status=function(){!0===p.edt.medication_status?p.med_edit=!1:p.med_edit=!0},p.chk_other=function(){!0===p.edt.health_other_status?p.other_edit=!1:p.other_edit=!0},p.chk_hearing=function(){!0===p.edt.health_hearing_status?p.hearing_edit=!1:p.hearing_edit=!0},p.chk_vision=function(){!0===p.edt.health_vision_status?p.health_vision_edit=!1:p.health_vision_edit=!0},p.chk_behaviour=function(){!0===p.edt.behaviour_status?p.behaviour_edit=!1:p.behaviour_edit=!0},p.chk_gifted_status=function(){!0===p.edt.gifted_status?p.gifted_edit=!1:p.gifted_edit=!0},p.chk_music_pro=function(){!0===p.edt.music_status?p.music_edit=!1:p.music_edit=!0},p.chk_sport_pro=function(){!0===p.edt.sports_status?p.sport_edit=!1:p.sport_edit=!0},p.chk_lang_sup=function(){!0===p.edt.language_support_status?p.lang_sup_edit=!1:p.lang_sup_edit=!0},p.chk_Pri_contact=function(){!0===p.edt.primary_contact_code?p.pricont_edit=!1:p.pricont_edit=!0},p.chk_transport_requin=function(){!0===p.edt.transport_status?p.transreq_edit=!1:p.transreq_edit=!0},p.chk_employee=function(){!0===document.getElementById("chk_employee").checked?document.getElementById("txt_emp_code").disabled=!1:document.getElementById("txt_emp_code").disabled=!0},p.chk_Sibling_attend=function(){!0===p.edt.sibling_status?p.disableparent=!1:p.disableparent=!0},p.chk_learn_ther=function(){!0===p.edt.sims_admission_learning_therapy_status?p.learnther_edit=!1:p.learnther_edit=!0},p.chk_spec_edu=function(){!0===p.edt.sims_admission_special_education_status?p.spec_edu_edit=!1:p.spec_edu_edit=!0},p.chk_falled_grade=function(){!0===p.edt.sims_admission_falled_grade_status?p.falledgrade_edit=!1:p.falledgrade_edit=!0},p.chk_commun=function(){!0===p.edt.sims_admission_communication_status?p.commun_edit=!1:p.commun_edit=!0},p.chk_spec_activies=function(){!0===p.edt.sims_admission_specialAct_status?p.specActiv_edit=!1:p.specActiv_edit=!0},p.chk_studyingin=function(){!0===p.edt.sibling_status?(p.Study_edit=!1,document.getElementById("t3"),document.getElementById("t4"),document.getElementById("t5"),p.t=!1):(p.Study_edit=!0,document.getElementById("t3"),document.getElementById("t4"),document.getElementById("t5"),p.t=!0)},p.chk_ticking=function(){!0===p.edt.declaration_status?(p.tick_edit=!1,p.confirm_edit=!1):(p.tick_edit=!0,p.confirm_edit=!0)},p.chk_copy_mother_add=function(){!0===p.edt.copy_add?(p.edt.mother_appartment_number=p.edt.father_appartment_number,p.edt.mother_area_number=p.edt.father_area_number,p.edt.mother_building_number=p.edt.father_building_number,p.edt.mother_street_number=p.edt.father_street_number,p.edt.mother_city=p.edt.father_city,p.edt.mother_state=p.edt.father_state,p.edt.mother_country_code=p.edt.father_country_code,p.edt.mother_po_box=p.edt.father_po_box,p.edt.mother_nationality1_code=p.edt.father_nationality1_code,p.edt.mother_nationality2_code=p.edt.father_nationality2_code,p.edt.mother_summary_address=p.edt.father_summary_address,p.edt.mother_phone=p.edt.father_phone,p.edt.mother_po_box=p.edt.father_po_box,p.edt.mother_mobile=p.edt.father_mobile,p.edt.mother_occupation=p.edt.father_occupation,p.edt.mother_email=p.edt.father_email,p.edt.mother_company=p.edt.father_company):(p.edt.mother_appartment_number="",p.edt.mother_area_number="",p.edt.mother_building_number="",p.edt.mother_street_number="",p.edt.mother_city="",p.edt.mother_state="",p.edt.mother_country_code="",p.edt.mother_po_box="",p.edt.mother_nationality1_code="",p.edt.mother_nationality2_code="",p.edt.mother_summary_address="",p.edt.mother_phone="",p.edt.mother_po_box="",p.edt.mother_mobile="",p.edt.mother_occupation="",p.edt.mother_email="",p.edt.mother_company="")},p.chk_copy_guar_add1=function(){!0===p.edt.copy_add1?(p.edt.guardian_appartment_number=p.edt.father_appartment_number,p.edt.guardian_area_number=p.edt.father_area_number,p.edt.guardian_building_number=p.edt.father_building_number,p.edt.guardian_street_number=p.edt.father_street_number,p.edt.guardian_city=p.edt.father_city,p.edt.guardian_state=p.edt.father_state,p.edt.guardian_country_code=p.edt.father_country_code,p.edt.guardian_po_box=p.edt.father_po_box,p.edt.guardian_nationality1_code=p.edt.father_nationality1_code,p.edt.guardian_nationality2_code=p.edt.father_nationality2_code,p.edt.guardian_summary_address=p.edt.father_summary_address,p.edt.guardian_phone=p.edt.father_phone,p.edt.guardian_po_box=p.edt.father_po_box,p.edt.guardian_mobile=p.edt.father_mobile,p.edt.guardian_occupation=p.edt.father_occupation,p.edt.guardian_email=p.edt.father_email,p.edt.guardian_company=p.edt.father_company):(p.edt.guardian_appartment_number="",p.edt.guardian_area_number="",p.edt.guardian_building_number="",p.edt.guardian_street_number="",p.edt.guardian_city="",p.edt.guardian_state="",p.edt.guardian_country_code="",p.edt.guardian_po_box="",p.edt.guardian_nationality1_code="",p.edt.guardian_nationality2_code="",p.edt.guardian_summary_address="",p.edt.guardian_phone="",p.edt.guardian_po_box="",p.edt.guardian_mobile="",p.edt.guardian_occupation="",p.edt.guardian_email="",p.edt.guardian_company="")},p.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=date3||date1<=e)&&(swal({title:"Birth Date",text:"Age Should Not be less than 4 yrs or greater than current year",imageUrl:"assets/img/notification-alert.png"}),document.getElementById("dp_birth_date").value="")},i.Save=function(e){if(e&&!1===i.btn_NewSave){for(var t=i.edt,a=(t.red_id=i.admission_num_new,t.opr="U",i.flg_sub=!1,[]),s=1,o=0;o=date3||date1<=e)&&(swal({title:"Birth Date",text:"Age Should Not be less than 4 yrs or greater than current year",imageUrl:"assets/img/notification-alert.png"}),document.getElementById("dp_birth_date").value="")},o.Save=function(e){e&&!1===o.btn_NewSave&&((e=o.edt).red_id=o.admission_num_new,e.opr="U",(o.flg_sub=!1)===o.flg_sub)&&_.post(d.apiUrl+"api/common/AdmissionJc/CUDUpdateAdmission",e).then(function(e){o.updatedata=e.data,swal({title:"Alert",text:"Application Updated Sucessfully",imageUrl:"assets/img/notification-alert.png"},function(){})})},o.check_click=function(e,t){for(var a=0,s=0;so&&(s.s.r=o),s.s.c>n&&(s.s.c=n),s.e.rn.temp.sims_agenda_edate&&(swal({title:"Alert",text:"End date should be greater than Start date",showCloseButton:!0,width:300,height:200}),n.temp.sims_agenda_edate="")},n.clear=function(){n.temp="",n.filteredTodos=[],n.agenda_grid=!1,n.PageSize_Search=!1,n.pageSize_txt=!1,n.search_txt=!1},i.get(d.apiUrl+"api/Agenda/getAll_Agenda_Details").then(function(e){n.agenda_Details=e.data,n.totalItems=n.agenda_Details.length,n.todos=n.agenda_Details,n.makeTodos(),console.log(n.agenda_Details)}),n.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()},n.print=function(){n.colsvis=!0,swal({title:"Alert",text:"Do you want to Print?",showCloseButton:!0,showCancelButton:!0,confirmButtonText:"Yes",width:380,cancelButtonText:"No"}).then(function(e){var t,a,s;e&&(e=document.head.outerHTML,t=document.getElementById("pdf_print").outerHTML,(s=(a=window.open("","_blank","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")).document).open(),s.write(""+e+''+t+""),s.close(),a.focus(),n.detailsField=!1,n.colsvis=!1,n.agenda_Details_fun())})},n.exportAction=function(){$("#test").tableExport({type:"pdf",pdfFontSize:"7",escape:"false"})},n.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"))})},n.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")},n.setMonth=function(){},n.agenda_Details_fun=function(e,t,a,s){var o=n.temp.sims_week.split("-");i.get(d.apiUrl+"api/AgendaData/getAgendaWeeklyData_AHIS?sims_acaedmic_year="+e+"&sims_grade_code="+t+"&sims_section_code="+a+"&sims_subject_code="+s+"&em_login_code="+r+"&sdate="+o[0]+"&edate="+o[1]).then(function(e){if(n.filteredTodos=e.data,n.section_name=n.filteredTodos.sims_grade,console.log(n.filteredTodos),0"+e+''+t+""),s.close(),a.focus(),o.detailsField=!1,o.colsvis=!1,o.getsubdetail())})},o.reset_data=function(){o.temp.sims_grade_code="";try{$("#cmb_grade_code").multipleSelect("uncheckAll")}catch(e){}try{$("#cmb_section_code").multipleSelect("uncheckAll")}catch(e){}o.temp.sims_section_code="",o.filteredTodos=[]},o.ischeck=function(){o.checklick=function(){var e=document.getElementById("expire");1==e.checked&&e.checked}}}])}(),function(){"use strict";var e=angular.module("sims.module.Student");e.run(["$rootScope","$templateCache",function(e,t){e.$on("$viewContentLoaded",function(){t.removeAll()})}]),e.controller("ClassListReportByTeacherCont",["$scope","$state","$rootScope","$timeout","gettextCatalog","$http","ENV",function(o,e,t,a,s,n,i){o.temp={},o.detailsField=!0,o.hideprintpdf=!1,o.pagesize="30",o.pageindex="0",o.pager=!0,o.size=function(e){"All"==e?(o.currentPage="1",o.filteredTodos=o.todos,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,console.log("currentPage="+o.currentPage),o.makeTodos(),o.chk={},o.chk.chk_all=!1,o.row1=""},o.filteredTodos=[],o.currentPage=1,o.numPerPage=30,o.maxSize=100,o.makeTodos=function(){var e,t;"All"==o.pagesize?(o.currentPage=1,o.showPager=!1,o.filteredTodos=o.report_data):(e=parseInt(o.totalItems%o.numPerPage),o.pagersize="0"==e?parseInt(o.totalItems/o.numPerPage):parseInt(o.totalItems/o.numPerPage)+1,e=(o.currentPage-1)*o.numPerPage,t=parseInt(e)+parseInt(o.numPerPage),console.log("begin="+e),console.log("end="+t),o.filteredTodos=o.todos.slice(e,t))},n.get(i.apiUrl+"api/common/getCuriculum").then(function(e){o.cur_data=e.data,o.temp.sims_cur_code=o.cur_data[0].sims_cur_code,o.getAcademic_year(o.cur_data[0].sims_cur_code)}),o.getAcademic_year=function(e){n.get(i.apiUrl+"api/common/getAcademicYear?curCode="+e).then(function(e){o.acad_data=e.data,o.temp.sims_academic_year=o.acad_data[0].sims_academic_year,o.getGrade(o.temp.sims_cur_code,o.temp.sims_academic_year)})},o.getGrade=function(e,t){n.get(i.apiUrl+"api/common/getAllGrades?cur_code="+o.temp.sims_cur_code+"&academic_year="+o.temp.sims_academic_year).then(function(e){o.Grade_code=e.data,setTimeout(function(){$("#cmb_grade_code").change(function(){console.log($(this).val())}).multipleSelect({width:"100%"})},1e3)})},o.getSection=function(e,t,a){n.get(i.apiUrl+"api/common/getSectionFromGrade?cur_code="+o.temp.sims_cur_code+"&grade_code="+o.temp.sims_grade_code+"&academic_year="+o.temp.sims_academic_year).then(function(e){o.Section_code=e.data,setTimeout(function(){$("#cmb_section_code").change(function(){console.log($(this).val())}).multipleSelect({width:"100%"})},1e3)})},o.getdetails=function(){o.colsvis=!1,n.get(i.apiUrl+"api/classlist/getlistbyteacher?cur_code="+o.temp.sims_cur_code+"&acad_year="+o.temp.sims_academic_year+"&grade_code="+o.temp.sims_grade_code+"§ion_code="+o.temp.sims_section_code).then(function(e){0"+e+''+t+""),s.close(),a.focus(),o.detailsField=!1,o.colsvis=!1,o.getsubdetail()),o.getdetails()})},o.reset_data=function(){o.temp.sims_grade_code="",o.temp.sims_section_code="",o.filteredTodos=[],o.pager=!1;try{$("#cmb_grade_code").multipleSelect("uncheckAll")}catch(e){}try{$("#cmb_section_code").multipleSelect("uncheckAll")}catch(e){}},o.ischeck=function(){o.checklick=function(){var e=document.getElementById("expire");1==e.checked&&e.checked}}}])}(),function(){"use strict";var e=angular.module("sims.module.Fleet");e.run(["$rootScope","$templateCache",function(e,t){e.$on("$viewContentLoaded",function(){t.removeAll()})}]),e.controller("StudentsByBusReportCont",["$scope","$state","$rootScope","$timeout","gettextCatalog","$http","ENV",function(o,e,t,a,s,n,i){o.temp={},o.detailsField=!0,o.hideprintpdf=!1,o.pagesize="30",o.pageindex="0",o.pager=!0,o.show_student_true=!1,o.mom_end_date_check=!0,o.mom_start_date_check=!0,o.temp={};var d=(c=new Date).getDate(),r=c.getMonth()+1,c=(c.getFullYear(),o.mom_start_date="",o.mom_end_date="",$(function(){$("#bell_box").multipleSelect({width:"100%"}),$("#teacher_box").multipleSelect({width:"100%",filter:!0})}),new Date);(d=c.getDate())<10&&(d="0"+d);(r=c.getMonth()+1)<10&&(r="0"+r);var m=c.getFullYear();o.sdate=d+"-"+r+"-"+m,o.edate=d+"-"+r+"-"+m,o.mom_start_date=d+"-"+r+"-"+m,o.mom_end_date=d+"-"+r+"-"+m,$(function(){$("#chkmarks").click(function(){$(this).is(":checked")?($("#fdate").attr("disabled","disabled"),o.mom_start_date=""):($("#fdate").removeAttr("disabled"),$("#fdate").focus(),o.mom_start_date=d+"-"+r+"-"+m)})}),1==o.mom_start_date_check?o.mom_start_date="":o.mom_start_date=d+"-"+r+"-"+m,$(function(){$("#chkmarks1").click(function(){$(this).is(":checked")?($("#fdate").attr("disabled","disabled"),o.mom_end_date=""):($("#fdate").removeAttr("disabled"),$("#fdate").focus(),o.mom_end_date=d+"-"+r+"-"+m)})}),1==o.mom_end_date_check?o.mom_end_date="":o.mom_end_date=d+"-"+r+"-"+m,o.size=function(e){"All"==e?(o.currentPage="1",o.filteredTodos=o.todos,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,console.log("currentPage="+o.currentPage),o.makeTodos(),o.chk={},o.chk.chk_all=!1,o.row1=""},o.filteredTodos=[],o.currentPage=1,o.numPerPage=30,o.maxSize=100,o.makeTodos=function(){var e,t;"All"==o.pagesize?(o.currentPage=1,o.showPager=!1,o.filteredTodos=o.report_data):(e=parseInt(o.totalItems%o.numPerPage),o.pagersize="0"==e?parseInt(o.totalItems/o.numPerPage):parseInt(o.totalItems/o.numPerPage)+1,e=(o.currentPage-1)*o.numPerPage,t=parseInt(e)+parseInt(o.numPerPage),console.log("begin="+e),console.log("end="+t),o.filteredTodos=o.todos.slice(e,t))},o.ischeck=function(){o.checklick=function(){var e=document.getElementById("Show");1==e.checked&&e.checked}},n.get(i.apiUrl+"api/common/getCuriculum").then(function(e){o.cur_data=e.data,o.temp.sims_cur_code=o.cur_data[0].sims_cur_code,o.getAcademic_year(o.cur_data[0].sims_cur_code)}),o.getAcademic_year=function(e){n.get(i.apiUrl+"api/common/getAcademicYear?curCode="+e).then(function(e){o.acad_data=e.data,o.temp.sims_academic_year=o.acad_data[0].sims_academic_year,o.getGrade(o.temp.sims_cur_code,o.temp.sims_academic_year),o.getroute_parameter(o.temp.sims_academic_year,o.temp.sims_appl_parameter)})},n.get(i.apiUrl+"api/StudentsTransport/getdirection").then(function(e){o.dir_for=e.data,o.temp.sims_appl_parameter=o.dir_for[0].sims_appl_parameter,setTimeout(function(){$("#dir").change(function(){console.log($(this).val())}).multipleSelect({width:"100%"})},1e3),o.getroute_parameter(o.temp.sims_academic_year,o.temp.sims_appl_parameter)}),o.getroute_parameter=function(e,t){n.get(i.apiUrl+"api/StudentsTransport/getroutebus?acad_year="+e+"&direction="+t).then(function(e){o.route_for=e.data,o.temp.sims_transport_route=o.route_for[0].sims_transport_route_code,setTimeout(function(){$("#route").change(function(){console.log($(this).val())}).multipleSelect({width:"100%"})},1e3)})},o.getbus_parameter=function(e,t,a){n.get(i.apiUrl+"api/StudentsTransport/getbus?acad_year="+o.temp.sims_academic_year+"&direction="+o.temp.sims_appl_parameter+"&route_code="+o.temp.sims_transport_route).then(function(e){o.bus_for=e.data,o.temp.sims_transport_vehicle_code=o.bus_for[0].sims_transport_vehicle_code,setTimeout(function(){$("#bus").change(function(){console.log($(this).val())}).multipleSelect({width:"100%"})},1e3)})},n.get(i.apiUrl+"api/StudentsTransport/getreporttype").then(function(e){o.type_for=e.data,o.temp.comn_appl_parameter=o.type_for[0].comn_appl_parameter}),o.getdetails=function(){o.colsvis=!1,1==o.temp.sims_view_mode?(o.show_student_true=!0,o.show_student_false=!1):(o.show_student_true=!1,o.show_student_false=!0),1==o.temp.sims_view_mode?o.show_report="S":o.show_report="M",n.get(i.apiUrl+"api/StudentsTransport/getstudentsbybus?opr="+o.show_report+"&cur_code="+o.temp.sims_cur_code+"&acad_year="+o.temp.sims_academic_year+"&direction="+o.temp.sims_appl_parameter+"&route_code="+o.temp.sims_transport_route+"&bus="+o.temp.sims_transport_vehicle_code+"&date="+o.mom_start_date+"&use_transport="+o.temp.comn_appl_parameter).then(function(e){0"+e+''+t+""),s.close(),a.focus(),o.detailsField=!1,o.colsvis=!1,o.getsubdetail())})},o.reset_data=function(){o.temp.sims_grade_code="";try{$("#cmb_grade_code").multipleSelect("uncheckAll")}catch(e){}try{$("#cmb_section_code").multipleSelect("uncheckAll")}catch(e){}o.temp.sims_section_code="",o.filteredTodos=[]},o.ischeck=function(){o.checklick=function(){var e=document.getElementById("expire");1==e.checked&&e.checked}}}])}(),function(){"use strict";var e=angular.module("sims.module.Fleet");e.run(["$rootScope","$templateCache",function(e,t){e.$on("$viewContentLoaded",function(){t.removeAll()})}]),e.controller("EnrolledStudentsTransportCont",["$scope","$state","$rootScope","$timeout","gettextCatalog","$http","ENV",function(o,e,t,a,s,n,i){o.temp={},o.detailsField=!0,o.hideprintpdf=!1,o.pagesize="30",o.pageindex="0",o.pager=!0,o.mom_end_date_check=!0,o.mom_start_date_check=!0,o.temp={};var d=(c=new Date).getDate(),r=c.getMonth()+1,c=(c.getFullYear(),o.mom_start_date="",o.mom_end_date="",$(function(){$("#bell_box").multipleSelect({width:"100%"}),$("#teacher_box").multipleSelect({width:"100%",filter:!0})}),new Date);(d=c.getDate())<10&&(d="0"+d);(r=c.getMonth()+1)<10&&(r="0"+r);var m=c.getFullYear();o.sdate=d+"-"+r+"-"+m,o.edate=d+"-"+r+"-"+m,o.mom_start_date=d+"-"+r+"-"+m,o.mom_end_date=d+"-"+r+"-"+m,$(function(){$("#chkmarks").click(function(){$(this).is(":checked")?($("#fdate").attr("disabled","disabled"),o.mom_start_date=""):($("#fdate").removeAttr("disabled"),$("#fdate").focus(),o.mom_start_date=d+"-"+r+"-"+m)})}),1==o.mom_start_date_check?o.mom_start_date="":o.mom_start_date=d+"-"+r+"-"+m,$(function(){$("#chkmarks1").click(function(){$(this).is(":checked")?($("#fdate").attr("disabled","disabled"),o.mom_end_date=""):($("#fdate").removeAttr("disabled"),$("#fdate").focus(),o.mom_end_date=d+"-"+r+"-"+m)})}),1==o.mom_end_date_check?o.mom_end_date="":o.mom_end_date=d+"-"+r+"-"+m,o.size=function(e){"All"==e?(o.currentPage="1",o.filteredTodos=o.todos,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,console.log("currentPage="+o.currentPage),o.makeTodos(),o.chk={},o.chk.chk_all=!1,o.row1=""},o.filteredTodos=[],o.currentPage=1,o.numPerPage=30,o.maxSize=100,o.makeTodos=function(){var e,t;"All"==o.pagesize?(o.currentPage=1,o.showPager=!1,o.filteredTodos=o.report_data):(e=parseInt(o.totalItems%o.numPerPage),o.pagersize="0"==e?parseInt(o.totalItems/o.numPerPage):parseInt(o.totalItems/o.numPerPage)+1,e=(o.currentPage-1)*o.numPerPage,t=parseInt(e)+parseInt(o.numPerPage),console.log("begin="+e),console.log("end="+t),o.filteredTodos=o.todos.slice(e,t))},o.ischeck=function(){o.checklick=function(){var e=document.getElementById("without");1==e.checked&&e.checked}},n.get(i.apiUrl+"api/common/getCuriculum").then(function(e){o.cur_data=e.data,o.temp.sims_cur_code=o.cur_data[0].sims_cur_code,o.getAcademic_year(o.cur_data[0].sims_cur_code)}),o.getAcademic_year=function(e){n.get(i.apiUrl+"api/common/getAcademicYear?curCode="+e).then(function(e){o.acad_data=e.data,o.temp.sims_academic_year=o.acad_data[0].sims_academic_year,o.getGrade(o.temp.sims_cur_code,o.temp.sims_academic_year)})},o.getGrade=function(e,t){n.get(i.apiUrl+"api/common/getAllGrades?cur_code="+o.temp.sims_cur_code+"&academic_year="+o.temp.sims_academic_year).then(function(e){o.Grade_code=e.data,setTimeout(function(){$("#cmb_grade_code").change(function(){console.log($(this).val())}).multipleSelect({width:"100%"})},1e3)})},o.getSection=function(e,t,a){n.get(i.apiUrl+"api/common/getSectionFromGrade?cur_code="+o.temp.sims_cur_code+"&grade_code="+o.temp.sims_grade_code+"&academic_year="+o.temp.sims_academic_year).then(function(e){o.Section_code=e.data,setTimeout(function(){$("#cmb_section_code").change(function(){console.log($(this).val())}).multipleSelect({width:"100%"})},1e3)})},o.parameter=function(){n.get(i.apiUrl+"api/StudentsTransport/getrpt_parameter").then(function(e){o.report_for=e.data,o.temp.comn_appl_parameter=o.report_for[0].comn_appl_parameter})},o.getReport=function(e,t,a){n.get(i.apiUrl+"api/common/getSectionFromGrade?cur_code="+o.temp.sims_cur_code+"&grade_code="+o.temp.sims_grade_code+"&academic_year="+o.temp.sims_academic_year).then(function(e){o.Section_code=e.data,setTimeout(function(){$("#cmb_section_code").change(function(){console.log($(this).val())}).multipleSelect({width:"100%"})},1e3)})},o.getdetails=function(){o.colsvis=!1,n.get(i.apiUrl+"api/StudentsTransport/getstudenttranslist?cur_code="+o.temp.sims_cur_code+"&acad_year="+o.temp.sims_academic_year+"&grade_code="+o.temp.sims_grade_code+"§ion_code="+o.temp.sims_section_code+"&without_effective_upto="+o.temp.sims_view_mode+"&report_type="+o.temp.comn_appl_parameter).then(function(e){0"+e+''+t+""),s.close(),a.focus(),o.getdetails())}),o.getdetails()},o.reset_data=function(){o.temp.sims_grade_code="",o.filteredTodos=[],o.report_data=[],o.pager=!1;try{$("#cmb_grade_code").multipleSelect("uncheckAll")}catch(e){}try{$("#cmb_section_code").multipleSelect("uncheckAll")}catch(e){}o.temp.sims_section_code="",o.filteredTodos=[]},o.ischeck=function(){o.checklick=function(){var e=document.getElementById("expire");1==e.checked&&e.checked}}}])}(),function(){"use strict";var e=angular.module("sims.module.Scheduling");e.run(["$rootScope","$templateCache",function(e,t){e.$on("$viewContentLoaded",function(){t.removeAll()})}]),e.controller("FreeTeacherListReportCont",["$scope","$state","$rootScope","$timeout","gettextCatalog","$http","ENV",function(o,e,t,a,s,n,i){o.temp={},o.detailsField=!0,o.hideprintpdf=!1,o.pagesize="30",o.pageindex="0",o.pager=!0,o.mom_end_date_check=!0,o.mom_start_date_check=!0,o.temp={};var d=(c=new Date).getDate(),r=c.getMonth()+1,c=(c.getFullYear(),o.mom_start_date="",o.mom_end_date="",$(function(){$("#bell_box").multipleSelect({width:"100%"}),$("#teacher_box").multipleSelect({width:"100%",filter:!0})}),new Date);(d=c.getDate())<10&&(d="0"+d);(r=c.getMonth()+1)<10&&(r="0"+r);var m=c.getFullYear();o.sdate=d+"-"+r+"-"+m,o.edate=d+"-"+r+"-"+m,o.mom_start_date=d+"-"+r+"-"+m,o.mom_end_date=d+"-"+r+"-"+m,$(function(){$("#chkmarks").click(function(){$(this).is(":checked")?($("#fdate").attr("disabled","disabled"),o.mom_start_date=""):($("#fdate").removeAttr("disabled"),$("#fdate").focus(),o.mom_start_date=d+"-"+r+"-"+m)})}),1==o.mom_start_date_check?o.mom_start_date="":o.mom_start_date=d+"-"+r+"-"+m,$(function(){$("#chkmarks1").click(function(){$(this).is(":checked")?($("#fdate").attr("disabled","disabled"),o.mom_end_date=""):($("#fdate").removeAttr("disabled"),$("#fdate").focus(),o.mom_end_date=d+"-"+r+"-"+m)})}),1==o.mom_end_date_check?o.mom_end_date="":o.mom_end_date=d+"-"+r+"-"+m,o.size=function(e){"All"==e?(o.currentPage="1",o.filteredTodos=o.todos,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,console.log("currentPage="+o.currentPage),o.makeTodos(),o.chk={},o.chk.chk_all=!1,o.row1=""},o.filteredTodos=[],o.currentPage=1,o.numPerPage=30,o.maxSize=100,o.makeTodos=function(){var e,t;"All"==o.pagesize?(o.currentPage=1,o.showPager=!1,o.filteredTodos=o.report_data):(e=parseInt(o.totalItems%o.numPerPage),o.pagersize="0"==e?parseInt(o.totalItems/o.numPerPage):parseInt(o.totalItems/o.numPerPage)+1,e=(o.currentPage-1)*o.numPerPage,t=parseInt(e)+parseInt(o.numPerPage),console.log("begin="+e),console.log("end="+t),o.filteredTodos=o.todos.slice(e,t))},o.ischeck=function(){o.checklick=function(){var e=document.getElementById("without");1==e.checked&&e.checked}},n.get(i.apiUrl+"api/common/getCuriculum").then(function(e){o.cur_data=e.data,o.temp.sims_cur_code=o.cur_data[0].sims_cur_code,o.getAcademic_year(o.cur_data[0].sims_cur_code)}),o.getAcademic_year=function(e){n.get(i.apiUrl+"api/common/getAcademicYear?curCode="+e).then(function(e){o.acad_data=e.data,o.temp.sims_academic_year=o.acad_data[0].sims_academic_year,o.getbell_parameter(o.temp.sims_academic_year)})},o.getbell_parameter=function(e){n.get(i.apiUrl+"api/FreeTeacher/getbell?acad_year="+e).then(function(e){o.bell_for=e.data,o.temp.sims_bell_code=o.bell_for[0].sims_bell_code})},n.get(i.apiUrl+"api/FreeTeacher/getday").then(function(e){o.day_for=e.data,o.temp.sims_bell_day_code=o.day_for[0].sims_bell_day_code}),n.get(i.apiUrl+"api/FreeTeacher/getslot").then(function(e){o.slot_for=e.data,o.temp.sims_bell_slot_group=o.slot_for[0].sims_bell_slot_group}),o.getdetails=function(){o.colsvis=!1,n.get(i.apiUrl+"api/FreeTeacher/getfreeteacherlist?cur_code="+o.temp.sims_cur_code+"&acad_year="+o.temp.sims_academic_year+"&bell_code="+o.temp.sims_bell_code+"&day="+o.temp.sims_bell_day_code+"&slot="+o.temp.sims_bell_slot_group).then(function(e){0"+e+''+t+""),s.close(),a.focus(),o.getdetails())}),o.getdetails()},o.reset_data=function(){o.temp.sims_grade_code="",o.filteredTodos=[],o.pager=!1;try{$("#cmb_grade_code").multipleSelect("uncheckAll")}catch(e){}try{$("#cmb_section_code").multipleSelect("uncheckAll")}catch(e){}o.temp.sims_section_code="",o.filteredTodos=[]},o.ischeck=function(){o.checklick=function(){var e=document.getElementById("expire");1==e.checked&&e.checked}}}])}(),function(){"use strict";var e=angular.module("sims.module.Scheduling");e.run(["$rootScope","$templateCache",function(e,t){e.$on("$viewContentLoaded",function(){t.removeAll()})}]),e.controller("SupervisorListReportCont",["$scope","$state","$rootScope","$timeout","gettextCatalog","$http","ENV",function(o,e,t,a,s,n,i){o.temp={},o.detailsField=!0,o.hideprintpdf=!1,o.pagesize="30",o.pageindex="0",o.pager=!0,o.size=function(e){"All"==e?(o.currentPage="1",o.filteredTodos=o.todos,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,console.log("currentPage="+o.currentPage),o.makeTodos(),o.chk={},o.chk.chk_all=!1,o.row1=""},o.filteredTodos=[],o.currentPage=1,o.numPerPage=30,o.maxSize=100,o.makeTodos=function(){var e,t;"All"==o.pagesize?(o.currentPage=1,o.showPager=!1,o.filteredTodos=o.report_data):(e=parseInt(o.totalItems%o.numPerPage),o.pagersize="0"==e?parseInt(o.totalItems/o.numPerPage):parseInt(o.totalItems/o.numPerPage)+1,e=(o.currentPage-1)*o.numPerPage,t=parseInt(e)+parseInt(o.numPerPage),console.log("begin="+e),console.log("end="+t),o.filteredTodos=o.todos.slice(e,t))},n.get(i.apiUrl+"api/common/getCuriculum").then(function(e){o.cur_data=e.data,o.temp.sims_cur_code=o.cur_data[0].sims_cur_code,o.getAcademic_year(o.cur_data[0].sims_cur_code)}),o.getAcademic_year=function(e){n.get(i.apiUrl+"api/common/getAcademicYear?curCode="+e).then(function(e){o.acad_data=e.data,o.temp.sims_academic_year=o.acad_data[0].sims_academic_year,o.getGrade(o.temp.sims_cur_code,o.temp.sims_academic_year)})},o.getGrade=function(e,t){n.get(i.apiUrl+"api/common/getAllGrades?cur_code="+o.temp.sims_cur_code+"&academic_year="+o.temp.sims_academic_year).then(function(e){o.Grade_code=e.data,setTimeout(function(){$("#cmb_grade_code").change(function(){console.log($(this).val())}).multipleSelect({width:"100%"})},1e3)})},o.getSection=function(e,t,a){n.get(i.apiUrl+"api/common/getSectionFromGrade?cur_code="+o.temp.sims_cur_code+"&grade_code="+o.temp.sims_grade_code+"&academic_year="+o.temp.sims_academic_year).then(function(e){o.Section_code=e.data,setTimeout(function(){$("#cmb_section_code").change(function(){console.log($(this).val())}).multipleSelect({width:"100%"})},1e3)})},o.getdetails=function(){o.colsvis=!1,n.get(i.apiUrl+"api/FreeTeacher/getsupervisorlist?cur_code="+o.temp.sims_cur_code+"&acad_year="+o.temp.sims_academic_year+"&grade_code="+o.temp.sims_grade_code+"§ion_code="+o.temp.sims_section_code).then(function(e){0"+e+''+t+""),s.close(),a.focus(),o.getdetails())}),o.getdetails()},o.reset_data=function(){o.temp.sims_grade_code="",o.filteredTodos=[],o.pager=!1;try{$("#cmb_grade_code").multipleSelect("uncheckAll")}catch(e){}try{$("#cmb_section_code").multipleSelect("uncheckAll")}catch(e){}o.temp.sims_section_code="",o.report_data=[]},o.ischeck=function(){o.checklick=function(){var e=document.getElementById("expire");1==e.checked&&e.checked}}}])}(),function(){"use strict";var e=angular.module("sims.module.Scheduling");e.run(["$rootScope","$templateCache",function(e,t){e.$on("$viewContentLoaded",function(){t.removeAll()})}]),e.controller("LectureTimeConflictReportCont",["$scope","$state","$rootScope","$timeout","gettextCatalog","$http","ENV",function(o,e,t,a,s,n,i){o.temp={},o.detailsField=!0,o.hideprintpdf=!1,o.pagesize="30",o.pageindex="0",o.pager=!0,o.size=function(e){"All"==e?(o.currentPage="1",o.filteredTodos=o.todos,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,console.log("currentPage="+o.currentPage),o.makeTodos(),o.chk={},o.chk.chk_all=!1,o.row1=""},o.filteredTodos=[],o.currentPage=1,o.numPerPage=30,o.maxSize=100,o.makeTodos=function(){var e,t;"All"==o.pagesize?(o.currentPage=1,o.showPager=!1,o.filteredTodos=o.report_data):(e=parseInt(o.totalItems%o.numPerPage),o.pagersize="0"==e?parseInt(o.totalItems/o.numPerPage):parseInt(o.totalItems/o.numPerPage)+1,e=(o.currentPage-1)*o.numPerPage,t=parseInt(e)+parseInt(o.numPerPage),console.log("begin="+e),console.log("end="+t),o.filteredTodos=o.todos.slice(e,t))},n.get(i.apiUrl+"api/common/getCuriculum").then(function(e){o.cur_data=e.data,o.temp.sims_cur_code=o.cur_data[0].sims_cur_code,o.getAcademic_year(o.cur_data[0].sims_cur_code)}),o.getAcademic_year=function(e){n.get(i.apiUrl+"api/common/getAcademicYear?curCode="+e).then(function(e){o.acad_data=e.data,o.temp.sims_academic_year=o.acad_data[0].sims_academic_year})},o.getdetails=function(){o.colsvis=!1,n.get(i.apiUrl+"api/FreeTeacher/getlecconflictlist?cur_code="+o.temp.sims_cur_code+"&acad_year="+o.temp.sims_academic_year).then(function(e){0"+e+''+t+""),s.close(),a.focus(),o.getdetails()),o.getdetails()})},o.reset_data=function(){o.temp.sims_grade_code="";try{$("#cmb_grade_code").multipleSelect("uncheckAll")}catch(e){}try{$("#cmb_section_code").multipleSelect("uncheckAll")}catch(e){}o.temp.sims_section_code="",o.report_data=[]},o.ischeck=function(){o.checklick=function(){var e=document.getElementById("expire");1==e.checked&&e.checked}}}])}();var teacherBlockData,dragstartsfrom,pendingtrid,teachercode,allowDrop=function(e){$("body").hasClass("viewtt")||($("td.dropabletd").css({background:"transparent"}),"TD"==dragstartsfrom.tagName?e.target.parentNode.id==dragstartsfrom.parentNode.id&&$(e.target).css({background:"#ccc"}):(dragstartsfrom.id,e.target.parentNode.id==pendingtrid&&$(e.target).css({background:"#ccc"})),e.preventDefault())},drag=function(e){$("body").hasClass("viewtt")||(teachercode=$(e.target).children(".hoverdiv").data("teachercode"),dragstartsfrom="pendingsubid"==e.target.parentNode.id?(pendingtrid=$(e.target).attr("trid"),$(e.target).addClass("filled"),document.getElementById(e.target.parentNode.id)):e.target.parentNode,e.dataTransfer.setData("text",e.target.id))},drop=function(e){var t,a,s,o,n,_,i,d;$("body").hasClass("viewtt")||(d=$(e.target).parents("tr").attr("id"),t="TD"==dragstartsfrom.tagName?dragstartsfrom.parentNode.id:pendingtrid,s=(a=e.dataTransfer.getData("text")).split("_"),sub_code=$("#"+a).data("subcode"),o=!0,n="sub_"+(_=e.target.id.split("_"))[2]+"_"+_[3]+"_"+sub_code+"_"+s[4],_=_[2]+"_"+_[3]+"_"+s[4],d==t?void 0===teacherBlockData[s[4]]||void 0===teacherBlockData[s[4]][$(e.currentTarget).data("day")]||void 0===teacherBlockData[s[4]][$(e.currentTarget).data("day")][$(e.currentTarget).data("slot")]||"2"!=teacherBlockData[s[4]][$(e.currentTarget).data("day")][$(e.currentTarget).data("slot")]?($(e.target).is("div")?"01"!=$("#"+a).data("slotgroup")&&($(e.currentTarget).data("subcode")!=$("#"+a).data("subcode")&&$(e.currentTarget).data("slotgroup")==$("#"+a).data("slotgroup")&&"0"==$(".dropabletd").find("[data-teacherallo= "+$(e.currentTarget).data("day")+"_"+$(e.currentTarget).data("slot")+"_"+s[4]+"]").length?($(e.currentTarget).parents("td").append(document.getElementById(a)),$(e.currentTarget).parents("td").addClass("groupClass"),$(e.currentTarget).parents("td").children(".filled").attr("id",n),$(e.currentTarget).parents("td").children(".filled").attr("data-teacherallo",_)):($(e.currentTarget).data("slotgroup")!=$("#"+a).data("slotgroup")&&($("#showmessage").show(),$("#showmessage").find("h5").text("This is not parallel with given slot group"),o=!1),"0"!=$(".dropabletd").find("[data-teacherallo= "+$(e.currentTarget).data("day")+"_"+$(e.currentTarget).data("slot")+"_"+s[4]+"]").length&&($("#showmessage").show(),i=$(".dropabletd").find("[data-teacherallo= "+$(e.currentTarget).data("day")+"_"+$(e.currentTarget).data("slot")+"_"+s[4]+"]").parents("tr").attr("id"),$("#showmessage").find("h5").text("Teacher Busy at "+i),o=!1))):"01"!=$("#"+a).data("slotgroup")?$(e.currentTarget).is(":empty")?"0"==$(".dropabletd").find("[data-teacherallo= "+$(e.currentTarget).data("day")+"_"+$(e.currentTarget).data("slot")+"_"+s[4]+"]").length||"01"!=$(e.currentTarget).data("slotroom")&&$(".dropabletd").find("[data-teacherallo= "+$(e.currentTarget).data("day")+"_"+$(e.currentTarget).data("slot")+"_"+s[4]+"]").data("slotroom")==$(e.currentTarget).data("slotroom")?($(e.currentTarget).append(document.getElementById(a)),$(e.currentTarget).addClass("groupClass"),$(e.currentTarget).children(".filled").attr("id",n),$(e.currentTarget).children(".filled").attr("data-teacherallo",_)):(i=$(".dropabletd").find("[data-teacherallo= "+$(e.currentTarget).data("day")+"_"+$(e.currentTarget).data("slot")+"_"+s[4]+"]").parents("tr").find(".gradetd").text(),$("#showmessage").removeClass("ng-hide"),$("#showmessage").find("h5").text("Teacher Busy at "+i),o=!1):$(e.currentTarget).find(".dragablesubjects").data("slotgroup")==$("#"+a).data("slotgroup")?"0"==$(".dropabletd").find("[data-teacherallo= "+$(e.currentTarget).data("day")+"_"+$(e.currentTarget).data("slot")+"_"+s[4]+"]").length?$(e.currentTarget).find(".dragablesubjects").data("subcode")!=$("#"+a).data("subcode")||$(e.currentTarget).find(".dragablesubjects").data("teachercode")!=s[4]?smallfunction(e,a,n,_):msgFunction(e,a,i):$(e.currentTarget).find(".dragablesubjects").data("slotroom")==$("#"+a).data("slotroom")?smallfunction(e,a):msgFunction(e,a,i):msgFunction(e,a,i):$(e.currentTarget).is(":empty")&&("0"==$(".dropabletd").find("[data-teacherallo= "+$(e.currentTarget).data("day")+"_"+$(e.currentTarget).data("slot")+"_"+s[4]+"]").length||"01"!=$(e.currentTarget).data("slotroom")&&null!=$(e.currentTarget).data("slotroom")?($(e.currentTarget).append(document.getElementById(a)),$(dragstartsfrom).removeClass("groupClass"),$(e.currentTarget).children(".filled").attr("id",n),$(e.currentTarget).children(".filled").attr("data-teacherallo",_)):(i=$(".dropabletd").find("[data-teacherallo= "+$(e.currentTarget).data("day")+"_"+$(e.currentTarget).data("slot")+"_"+s[4]+"]").parents("tr").find(".gradetd").text(),$("#showmessage").removeClass("ng-hide"),$("#showmessage").find("h5").text("Teacher Busy at "+i),o=!1)),$(dragstartsfrom).is(":empty")&&$(dragstartsfrom).removeClass("occupied groupClass").addClass("emptd"),1==o&&$(e.currentTarget).addClass("occupied").removeClass("emptd"),$(e.currentTarget).parents("tr").find(".count_td").html($(e.target).parents("tr").children(".occupied").length)):($("#showmessage").removeClass("ng-hide"),$("#showmessage").find("h5").text("Teacher cannot be allocated due to Teacher Allocation Criteria")):("pendingsubid"==$(e.target).attr("id")&&(d=$(dragstartsfrom).parents("tr").attr("id"),$("#"+a).attr("trid",d),$(dragstartsfrom).removeClass("groupClass"),$(e.target).append(document.getElementById(a)),$(e.target).children(".dragablesubjects").removeClass("filled")),$(dragstartsfrom).removeClass("occupied").addClass("emptd"),$(dragstartsfrom).parents("tr").find(".count_td").html($(dragstartsfrom).parents("tr").children(".occupied").length)))},smallfunction=function(e,t,a,s){($(e.currentTarget).is("div")?($(e.currentTarget).parents("td").append(document.getElementById(t)),$(e.currentTarget).parents("td").addClass("groupClass"),$(e.currentTarget).parents("td").children(".filled").attr("id",a),$(e.currentTarget).parents("td")):($(e.currentTarget).append(document.getElementById(t)),$(e.currentTarget).parents("td").removeClass("groupClass"),$(e.currentTarget).children(".filled").attr("id",a),$(e.currentTarget))).children(".filled").attr("data-teacherallo",s)},messageFunction=function(e,t,a){$(e.currentTarget).data("subcode")==$("#"+t).data("subcode")?($("#showmessage").removeClass("ng-hide"),$("#showmessage").find("h5").text("Same Subject Not Allowed!")):$(e.currentTarget).data("slotgroup")!=$("#"+t).data("slotgroup")?($("#showmessage").removeClass("ng-hide"),$("#showmessage").find("h5").text("This is not parallel with")):"0"!=$(".dropabletd").find("[data-teacherallo= "+$(e.currentTarget).data("day")+"_"+$(e.currentTarget).data("slot")+"_"+$("#"+t).data("teachercode")+"]").length&&($("#showmessage").removeClass("ng-hide"),$(".dropabletd").find("[data-teacherallo= "+$(e.currentTarget).data("day")+"_"+$(e.currentTarget).data("slot")+"_"+$("#"+t).data("teachercode")+"]").parents("tr").find(".gradetd").text(),$("#showmessage").find("h5").text("Teacher Busy at "+a))},filterPendingSubject=function(e){$("#fixTable .trrow").removeClass("activetr"),$("#"+e).addClass("activetr"),$("#hiddenpending").append($("#pendingsubid .dragablesubjects")),$("#pendingsubid").append($("#hiddenpending").find("[trid="+e+"]"))};!function(){"use strict";var e=angular.module("sims.module.Scheduling"),m={};e.run(["$rootScope","$templateCache",function(e,t){e.$on("$viewContentLoaded",function(){t.removeAll()})}]),e.controller("aScSchoolTimeTableCont",["$scope","$compile","$anchorScroll","$location","$state","$rootScope","$timeout","gettextCatalog","$locale","$http","ENV",function(b,n,e,t,a,s,o,_,i,d,r){function c(a,s,e,t,o){for(var n=0;n")+' G/D '+'Count';$(b.iSlotDayDetail_list).each(function(e,t){a+=''+b.oSlotDayNames[t.sims_bell_day_code-1]+""}),a+='',$(b.iSlotDayDetail_list).each(function(e,t){$(t.slot_code_list).each(function(e,t){a+=''+(e+1)+""})}),a+="",$(".slotArea .headerpart").html(""),$(".slotArea .headerpart").append(a),$(b.AllGradeSec).each(function(e,s){var t=s.sims_grade_name_en.replace("Class","");o=o+(' '+t+" "+s.sims_section_name_en)+'',$(b.iSlotDayDetail_list).each(function(e,a){$(a.slot_code_list).each(function(e,t){o+=''})}),o+=""}),$(".slotArea .contentpart").html(""),$(".slotArea .contentpart").append(o),$("#fixTable").tableHeadFixer(),$("#fixTable").tableHeadFixer({left:2,"z-index":100})},b.genTeachersView=function(){$("#fixTableTeacher .contenttd").html(""),$("#fixTableTeacher").find(".trrow").each(function(e,s){var t={opr:"N",AcaYear:b.aca_year,cur_code:b.cur_code,bellCode:b.bell_code,teacher_code:s.id};d.post(r.apiUrl+"api/SchoolTimeTable/TimeTableView",t).then(function(e){b.gridData=e.data.table2,$(b.gridData).each(function(e,t){var a='
'+t.sims_subject_name_en+'
['+t.sims_grade_name_en+" "+t.sims_section_name_en+"]
",a=n(a)(b);0<$("#"+s.id+"_"+t.sims_bell_day_code+"_"+t.sims_bell_slot_code).children(".sub_tec_cont").length&&$("#"+s.id+"_"+t.sims_bell_day_code+"_"+t.sims_bell_slot_code).addClass("group"),$("#"+s.id+"_"+t.sims_bell_day_code+"_"+t.sims_bell_slot_code).addClass("occupied").append(a)}),b.loaderShow=!1}).then(function(){$("#fixTableTeacher .trrow").each(function(e,t){$(t).find(".count_td").html($(t).children(".occupied").length),e+1==$("#fixTableTeacher .trrow").length&&(b.loaderShow=!1)})})})},b.closeTeacherView=function(){$(".timetablecontainer").removeClass("hide"),b.teacherViewShow=!1},b.genTimeTableNew=function(e){b.editversionshow=!1,$("body").removeClass("viewtt"),$("#fixTable .trrow").removeClass("activetr"),b.pendingShow=!0,b.loaderShow=!0,$(".contentpart td.dropabletd").html("").removeClass("occupied").addClass("emptd").attr("slotgid",""),$(".contentpart td.count_td").html(""),$("#pendingsubid").html(""),$(".slotArea").removeClass("editmode").attr("version",""),$("#fixTable .trrow").each(function(e,t){t=$(t).attr("id").split("_");t[0],t[1];m={Opr:"BS",academic_year:b.aca_year,bell_code:b.bell_code,gradecode:b.grade_code,sectioncode:b.sec_code,curcode:b.cur_code},d.post(r.apiUrl+"api/asctimetable/Synctimetable",m).then(function(e){b.pendingArr=[],b.PendingViewd=!1,b.insertingPendingsFlag=!1,b.pendingShow=!1,b.loaderShow=!1}).then(function(){})})},b.viewTimeTable=function(){b.enableSave=!0,$("body").addClass("viewtt"),b.loaderShow=!0,$(".contentpart td.dropabletd").html("").removeClass("occupied").addClass("emptd"),$("#pendingsubid").html(""),$("#fixTable .trrow").removeClass("activetr"),m={opr:"3",AcaYear:b.aca_year,bellCode:b.bell_code,cur_code:b.cur_code},d.post(r.apiUrl+"api/SchoolTimeTable/TimeTableViewDataASC",m).then(function(e){console.log(e),b.AllGradeSectionView=e.data,console.log(e.data),$(b.AllGradeSectionView).each(function(e,t){"0"==t.day_code?b.insertIntoPending(t,"editversion"):b.insertIntoSlot(t)})}).then(function(){$("#fixTable .trrow").each(function(e,t){$(t).find(".count_td").html($(t).children(".occupied").length),e+1==$("#fixTable .trrow").length&&(b.loaderShow=!1)})})},b.insertIntoPending=function(a,e){Math.floor(5*Math.random()),Math.floor(8*Math.random());if("editversion"==e){var t='
',s=(t+='
'+a.subject_name+"
",n(t+="
")(b));$("#pendingsubid").append(s)}else if(1==b.PendingViewd)for(var o=0;o',s=(t+='
'+a.sims_subject_name_en+"
",n(t+="")(b));$("#pendingsubid").append(s)}else b.inpendingexist=!1,$(b.pendingArr).each(function(e,t){if(a.sims_bell_subject_code==t.sims_bell_subject_code&&a.sims_bell_teacher_code==t.sims_bell_teacher_code)return!(b.inpendingexist=!0)}),b.inpendingexist||b.pendingArr.push(a)},b.insertIntoSlot=function(e){var t='
',a=(t=t+('
'+e.subject_name+"
")+"
",e.grade_code+"_"+e.section_code+"_"+e.day_code+"_"+e.slot_code),t=($("#"+a).addClass("occupied").removeClass("emptd"),n(t)(b));"1"==e.slot_group?$("#"+a).html(t).removeClass("groupClass").addClass("cellWidth "):($("#"+a).addClass("groupClass").removeClass("cellWidth"),$("#"+a).append(t),console.log(t),e=100/$("#"+a).find(".dragablesubjects").length,$("#"+a).find(".dragablesubjects").css({width:e+"%"}))},b.goToRow=function(e){$("#fixTable .trrow").removeClass("activetr"),$("#"+e).addClass("activetr");$(".headerpart").height();$(".slotArea").scrollTop(24*$("#"+e).index())},b.isTeacerAvailable=function(e,t,a,s,o,n){var _,i;void 0===b.data[a]||void 0===b.data[a][e.toString()]||void 0===b.data[a][e.toString()][t.toString()]||"2"!=b.data[a][e.toString()][t.toString()]?0<$("#fixTable .trrow").find("[data-teacherallo="+e+"_"+t+"_"+a+"]").length?($("#fixTable .trrow").find("[data-teacherallo="+e+"_"+t+"_"+a+"]").data("slotgroup"),_=$("#fixTable .trrow").find("[data-teacherallo="+e+"_"+t+"_"+a+"]").data("slotroom"),i=$("#fixTable .trrow").find("[data-teacherallo="+e+"_"+t+"_"+a+"]").data("subcode"),$("#fixTable .trrow").find("[data-teacherallo="+e+"_"+t+"_"+a+"]").parents("tr").data("gradecode"),$("#fixTable .trrow").find("[data-teacherallo="+e+"_"+t+"_"+a+"]").parents("tr").data("seccode"),b.teacheralloc=n!=i||o!=_||"01"==s||"01"==o):b.teacheralloc=!1:b.teacheralloc=!0},b.isTeacherBusyPreviousSlot=function(e,t,a,s,o,n,_,i){$("#fixTable .trrow").find("[data-teacherallo="+e+"_"+t+"_"+a+"]").parents("tr").data("gradecode")==_&&$("#fixTable .trrow").find("[data-teacherallo="+e+"_"+t+"_"+a+"]").parents("tr").data("seccode")==i&&0<$("#fixTable .trrow").find("[data-teacherallo="+e+"_"+t+"_"+a+"]").length?b.checkBusyPrevious=b.checkBusyPrevious||!0:b.checkBusyPrevious=b.checkBusyPrevious||!1},b.isSubjectExist=function(a,s){for(var o=1;o<=b.iSlotDayDetail_list[s.day-b.start_day-1].slot_code_list.length&&(0<$("#"+a.sims_bell_grade_code+"_"+a.sims_bell_section_code+"_"+s.day+"_"+o).find(".filled").length?$("#"+a.sims_bell_grade_code+"_"+a.sims_bell_section_code+"_"+s.day+"_"+o).find(".filled").each(function(e,t){if($(t).data("subcode")==a.sims_bell_subject_code)return!(b.result={id:a.sims_bell_grade_code+"_"+a.sims_bell_section_code+"_"+s.day+"_"+o,day:s.day,slot:o});b.result="false"}):b.result="false","false"==b.result);o++);b.isSubjectExistCount++},b.changeSlot=function(e,t){"01"!=t.sims_bell_slot_group.trim()?b.slot_type="group":b.slot_type="single","group"==b.slot_type&&(a=0<$("#"+t.sims_bell_grade_code+"_"+t.sims_bell_section_code).find('[slotgid="'+t.sims_bell_slot_group.trim()+'"]').length?"yes":"no");var a,s=0;0<$("#"+e).parents("tr").find(".occupied").length&&(s=$("#"+e).parents("tr").find(".dropabletd").length-$("#"+e).parents("tr").find(".occupied").length),b.changeSlotCalledCount>s&&(b.insPending=!0,b.result=!1),b.changeSlotCalledCount++,1!=b.insPending&&(s=e.split("_"),e=parseInt(s[2]),s=parseInt(s[3])+3,e>b.start_day+b.iSlotDayDetail_list.length&&(e-=b.iSlotDayDetail_list.length),s>b.iSlotDayDetail_list[e-b.start_day-1].slot_code_list.length&&(s-=b.iSlotDayDetail_list[e-b.start_day-1].slot_code_list.length,e++),null!=(e=b.checkAvl(t.sims_bell_subject_code,t.sims_bell_grade_code,t.sims_bell_section_code,t.sims_bell_teacher_code,e,s,a,t.sims_bell_slot_group.trim(),"",t.sims_bell_slot_room))?(b.isSubjectExist(t,e),"false"!=b.result&&null!=b.result?Math.abs(parseInt(e.slot)-parseInt(b.result.slot))<2&&b.changeSlot(e.id,t):1!=b.insPending&&(b.changed_id=e.id)):b.insertIntoPending(t))},b.checkAvl=function(o,n,_,i,d,r,e,t,a,s){b.gemptyfound=!1,b.flag="1";var c="";if("yes"==e){if(0<$("#"+n+"_"+_).find("[slotgid= "+t+"]").length&&$("#"+n+"_"+_).find("[slotgid= "+t+"]").each(function(e,t){var a,s;if("0"==$(t).find("[data-teachercode = "+i+"]").length)return a=$(t).attr("id"),s=(t=$(t).find(".dragablesubjects").attr("id").split("_"))[1],t=t[2],c={day:s,slot:t,id:a,sub_id:"sub_"+s+"_"+t+"_"+o+"_"+i+"_"+n+"_"+_,nextday:d,nextslot:r,prev_id:n+"_"+_+"_"+s+"_"+t,slot_type:"group"},!(b.gemptyfound=!0);b.gemptyfound=!1}),""!=c)return b.flag="0",c;b.flag="1"}if("0"!=b.flag){d>b.start_day+b.iSlotDayDetail_list.length&&(d-=b.iSlotDayDetail_list.length),null!=b.iSlotDayDetail_list[d-1]&&r>b.iSlotDayDetail_list[d-b.start_day-1].slot_code_list.length&&(r-=b.iSlotDayDetail_list[d-b.start_day-1].slot_code_list.length,d++),"preference"!=a&&null!=(e=b.checkPreviousEmptySlot(n,_,d,r))&&0==b.teacheralloc&&(r=e),b.checkBusyPrevious=!1,b.daycounter=b.start_day+1;for(var m=d;b.daycounter<=b.start_day+b.iSlotDayDetail_list.length;m++){m>b.start_day+b.iSlotDayDetail_list.length&&(m=b.start_day+1),b.daycounter++;for(var l,u,p,h,g,f=r,y=1;y<=b.iSlotDayDetail_list[m-b.start_day-1].slot_code_list.length;f++)if(f>b.iSlotDayDetail_list[m-b.start_day-1].slot_code_list.length&&(f-=b.iSlotDayDetail_list[m-b.start_day-1].slot_code_list.length),y++,$("#"+n+"_"+_+"_"+m+"_"+b.iSlotDayDetail_list[m-b.start_day-1].slot_code_list[f-1].slot_code).is(":empty")&&(b.isTeacerAvailable(m,b.iSlotDayDetail_list[m-b.start_day-1].slot_code_list[f-1].slot_code,i,t,s,o),b.checkBusyPrevious=!1,1b.start_day+b.iSlotDayDetail_list.length&&(u-=b.iSlotDayDetail_list.length),p>b.iSlotDayDetail_list[m-b.start_day-1].slot_code_list.length&&(p-=b.iSlotDayDetail_list[m-b.start_day-1].slot_code_list.length),g=n+"_"+_+"_"+d+"_"+r,{day:m,slot:b.iSlotDayDetail_list[m-b.start_day-1].slot_code_list[f-1].slot_code,id:h,sub_id:l,nextday:u,nextslot:p,prev_id:g}}}},b.checkPreviousEmptySlot=function(e,t,a,s){for(var o=1;o<=s;o++)if($("#"+e+"_"+t+"_"+a+"_"+o).is(":empty"))return o},b.checkCalssTeacher=function(e){for(var t=0;t'+(""+e.data+' clearcreate"),n(t=t+""+"")(b));$("#exportTT").hasClass("editmode")||$("#version_div").append(e),b.loaderShow=!1}))},b.IterationLoop=function(){var e=b.makeObjOfAllocatedSubjects();0arrow_drop_down')):(b.temporder="asc",$(e.currentTarget).html('arrow_drop_up')),s=document.getElementById("fixTableTeacher"),n=!0;n;){for(n=!1,o=s.getElementsByClassName("trrow"),_=0;_r.innerHTML.toLowerCase():parseInt(d.innerHTML)>parseInt(r.innerHTML):"str"==a?d.innerHTML.toLowerCase()'+e+"")(b);$(".hide_div_container").append(a)},b.show_div=function(e){var t=$(".slotArea").height()-$(e.target).data("height"),t=($(".slotArea").height(t),$(e.target).data("id"));$(e.target).remove(),$("#"+t).show()},b.resetPendingSubjects=function(){$("#fixTable .trrow").removeClass("activetr"),$("#pendingsubid").append($("#hiddenpending .dragablesubjects"))},b.immport=function(t){var e;$(".count_td").css({"background-color":"#fff"}),$(".top_fix").find(".cursor-pointer i").remove(),e=""==t?"Time Table":"Teacher Time Table";swal({title:"",text:"Are you sure you want to Save "+b.obj1.lic_school_name+" "+e+".xls ?",showCloseButton:!0,showCancelButton:!0,confirmButtonText:"Yes",width:390,cancelButtonText:"No"}).then(function(e){e&&(e=new Blob([document.getElementById(t).innerHTML],{type:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet;charset=utf-8"}),saveAs(e,b.obj1.lic_school_name+" Time Table.xls"),$(".count_td").css({"background-color":"#000"}),$(".top_fix").find(".cursor-pointer").html('arrow_drop_down'))})},b.messagehide=function(){var e=n('
{{message}}
')(b);$("#showmessage").html(e),b.messageShow=!1,$("#showmessage").addClass("ng-hide")},b.getSlotDays=function(){var e={opr:"T",cur_code:b.cur_code};d.post(r.apiUrl+"api/SchoolTimeTable/TimeTableView",e).then(function(e){b.oSlotDayNames=[],$(e.data.table).each(function(e,t){b.oSlotDayNames.push(t.sims_appl_form_field_value1)})})},b.btnPreview_click=function(){d.get(r.apiUrl+"api/asctimetable/GetAllTimeTableasc?&curcode="+b.cur_code+"&acayear="+b.aca_year+"&bellcode="+b.bell_code+"&gradecode="+b.grade_code+"§ioncode="+b.section_code).then(function(e){b.total_count=e.data,0"+e+''+t+""),s.close(),a.focus(),o.getdetails())}),o.getdetails()},o.reset_data=function(){o.temp.sims_grade_code="",o.filteredTodos=[],o.pager=!1;try{$("#cmb_grade_code").multipleSelect("uncheckAll")}catch(e){}try{$("#cmb_section_code").multipleSelect("uncheckAll")}catch(e){}o.temp.sims_section_code="",o.filteredTodos=[]},o.ischeck=function(){o.checklick=function(){var e=document.getElementById("expire");!0===e.checked&&(e.checked=!1)}}}])}(),function(){"use strict";var u,e=angular.module("sims.module.Health");e.run(["$rootScope","$templateCache",function(e,t){e.$on("$viewContentLoaded",function(){t.removeAll()})}]),e.controller("StudentHealthProfileCont",["$scope","$state","$rootScope","$timeout","gettextCatalog","$http","$filter","ENV",function(i,e,t,a,s,d,r,c){i.pagesize="10",i.pageindex="0",i.pager=!0,i.save_btn=!0,i.search_btn=!0,i.clr_btn=!0,i.Update_btn=!1,i.newdisplay=!1,i.table=!0;var o=new FormData;i.hide_img=!1,i.imgurl=c.docUrl+d.defaults.headers.common.schoolId+"/Images/StudentImages/",i.url_new=c.docUrl+d.defaults.headers.common.schoolId+"/Docs/StudentHealth/",d.get(c.apiUrl+"api/StudHealthProfile/getModeofEducation").then(function(e){i.Mode_of_Education=e.data}),d.get(c.apiUrl+"api/StudHealthProfile/getChronicIllness").then(function(e){i.obj=e.data}),i.getVaccinationUptodate=function(e){$("#dateModal1").modal({backdrop:"static",keyboard:!0}),e.ischecked=!0,i.temp1={reg_date:e.sims_vaccination_uptodate}},i.getDatedetails1=function(){for(var e=0;e
Issuing Authority Teeth Medication StatusMedication DescDisability Status Disability Desc Restriction StatusRestriction Desc
"+e.sims_health_card_issuing_authority1+" "+e.sims_teeth+" "+e.sims_medication_status+""+e.sims_medication_desc+""+e.sims_disability_status+" "+e.sims_disability_desc+" "+e.sims_health_restriction_status+""+e.sims_health_restriction_desc+"
Hearing Status Hearing Desc Vision StatusVision DescOther Status Other Desc Hospital NameHospital Phone No
"+e.sims_health_hearing_status+" "+e.sims_health_hearing_desc+" "+e.sims_health_vision_status+""+e.sims_health_vision_desc+""+e.sims_health_other_status+" "+e.sims_health_other_desc+" "+e.sims_regular_hospital_name+""+e.sims_regular_hospital_phone+"
Doctor Name Doctor Phone No
"+e.sims_regular_doctor_name+" "+e.sims_regular_doctor_phone+"
"),$(t.currentTarget).parents("tr").after(n),i.flag=!1;else{$("#innerRow").css({display:"none"});for(var a=0;ao&&(s.s.r=o),s.s.c>n&&(s.s.c=n),s.e.r"+e+''+t+""),s.close(),a.focus(),o.detailsField=!1,o.colsvis=!1,o.getsubdetail())}),o.getdetails()},o.reset_data=function(){o.temp.sims_grade_code="",o.filteredTodos=[],o.pager=!1;try{$("#cmb_grade_code").multipleSelect("uncheckAll")}catch(e){}try{$("#cmb_section_code").multipleSelect("uncheckAll")}catch(e){}o.temp.sims_section_code="",o.filteredTodos=[]},o.ischeck=function(){o.checklick=function(){var e=document.getElementById("expire");1==e.checked&&e.checked}}}])}(),function(){"use strict";var l,e=angular.module("sims.module.Security");e.run(["$rootScope","$templateCache",function(e,t){e.$on("$viewContentLoaded",function(){t.removeAll()})}]),e.controller("UserFormRptCont",["$scope","$state","$rootScope","$timeout","gettextCatalog","$http","ENV",function(n,e,t,a,s,i,d){n.pagesize="All",n.pageindex=0,n.save_btn=!0,n.Update_btn=!1,n.display=!1,n.table=!0,n.maindisplay=!0,n.rst_btn=!0,n.sub_btn=!0,n.search_btn=!0,n.parent=!1,n.student=!1,n.buttons=!1,n.temp={},n.edt={},n.usrCode="",a(function(){$("#fixTable").tableHeadFixer({top:1})},100);t.globals.currentUser.username;n.propertyName=null,n.reverse=!1,n.temp.sims_mod_code=[],n.edt.comn_appl_type_code=[],n.temp.sims_appl_code=[],n.sortBy=function(e){n.reverse=n.propertyName===e&&!n.reverse,n.propertyName=e};var o=(c=new Date).getDate(),r=c.getMonth()+1,c=(c.getFullYear(),n.mom_start_date="",n.mom_end_date="",$(function(){$("#bell_box").multipleSelect({width:"100%"}),$("#teacher_box").multipleSelect({width:"100%",filter:!0})}),setTimeout(function(){$("#app_name").select2()},100),new Date);(o=c.getDate())<10&&(o="0"+o);(r=c.getMonth()+1)<10&&(r="0"+r);var m=c.getFullYear();n.sdate=o+"-"+r+"-"+m,n.edate=o+"-"+r+"-"+m,n.mom_start_date=o+"-"+r+"-"+m,n.mom_end_date=o+"-"+r+"-"+m,$(function(){$("#chkmarks").click(function(){$(this).is(":checked")?($("#fdate").attr("disabled","disabled"),n.mom_start_date=""):($("#fdate").removeAttr("disabled"),$("#fdate").focus(),n.mom_start_date=o+"-"+r+"-"+m)})}),1==n.mom_start_date_check?n.mom_start_date="":n.mom_start_date=o+"-"+r+"-"+m,$(function(){$("#chkmarks1").click(function(){$(this).is(":checked")?($("#fdate").attr("disabled","disabled"),n.mom_end_date=""):($("#fdate").removeAttr("disabled"),$("#fdate").focus(),n.mom_end_date=o+"-"+r+"-"+m)})}),1==n.mom_end_date_check?n.mom_end_date="":n.mom_end_date=o+"-"+r+"-"+m,i.get(d.apiUrl+"api/common/ApplicationMaster/getAppTypes").then(function(e){n.obj2=e.data,setTimeout(function(){$("#cmb_appl_type").change(function(){console.log($(this).val())}).multipleSelect({width:"100%"})},1e3)}),n.UserAuditfun=function(){for(var e="",t="",a="",s=0;s"+e+''+t+""),s.close(),a.focus(),o.detailsField=!1,o.colsvis=!1,o.getsubdetail())}),o.getdetails()},o.reset_data=function(){o.temp.sims_grade_code="",o.filteredTodos=[],o.pager=!1;try{$("#cmb_grade_code").multipleSelect("uncheckAll")}catch(e){}try{$("#cmb_section_code").multipleSelect("uncheckAll")}catch(e){}o.temp.sims_section_code="",o.filteredTodos=[]},o.ischeck=function(){o.checklick=function(){var e=document.getElementById("expire");1==e.checked&&e.checked}}}])}(),function(){"use strict";var e=angular.module("sims.module.Security");e.run(["$rootScope","$templateCache",function(e,t){e.$on("$viewContentLoaded",function(){t.removeAll()})}]),e.controller("UserStatusReportCont",["$scope","$state","$rootScope","$timeout","gettextCatalog","$http","ENV",function(o,e,t,a,s,n,i){o.temp={},o.detailsField=!0,o.hideprintpdf=!1,o.pagesize="30",o.pageindex="0",o.pager=!0,o.mom_end_date_check=!0,o.mom_start_date_check=!0,o.temp={};var d=(c=new Date).getDate(),r=c.getMonth()+1,c=(c.getFullYear(),o.mom_attendance_date="",o.mom_end_date="",$(function(){$("#bell_box").multipleSelect({width:"100%"}),$("#teacher_box").multipleSelect({width:"100%",filter:!0})}),new Date);(d=c.getDate())<10&&(d="0"+d);(r=c.getMonth()+1)<10&&(r="0"+r);var m=c.getFullYear();o.sdate=d+"-"+r+"-"+m,o.edate=d+"-"+r+"-"+m,o.mom_attendance_date=d+"-"+r+"-"+m,o.mom_end_date=d+"-"+r+"-"+m,$(function(){$("#chkmarks").click(function(){$(this).is(":checked")?($("#fdate").attr("disabled","disabled"),o.mom_attendance_date=""):($("#fdate").removeAttr("disabled"),$("#fdate").focus(),o.mom_attendance_date=d+"-"+r+"-"+m)})}),1==o.mom_attendance_date_check?o.mom_attendance_date="":o.mom_attendance_date=d+"-"+r+"-"+m,$(function(){$("#chkmarks1").click(function(){$(this).is(":checked")?($("#fdate").attr("disabled","disabled"),o.mom_end_date=""):($("#fdate").removeAttr("disabled"),$("#fdate").focus(),o.mom_end_date=d+"-"+r+"-"+m)})}),1==o.mom_end_date_check?o.mom_end_date="":o.mom_end_date=d+"-"+r+"-"+m,o.size=function(e){"All"==e?(o.currentPage="1",o.filteredTodos=o.todos,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,console.log("currentPage="+o.currentPage),o.makeTodos(),o.chk={},o.chk.chk_all=!1,o.row1=""},o.filteredTodos=[],o.currentPage=1,o.numPerPage=30,o.maxSize=100,o.makeTodos=function(){var e,t;"All"==o.pagesize?(o.currentPage=1,o.showPager=!1,o.filteredTodos=o.report_data):(e=parseInt(o.totalItems%o.numPerPage),o.pagersize="0"==e?parseInt(o.totalItems/o.numPerPage):parseInt(o.totalItems/o.numPerPage)+1,e=(o.currentPage-1)*o.numPerPage,t=parseInt(e)+parseInt(o.numPerPage),console.log("begin="+e),console.log("end="+t),o.filteredTodos=o.todos.slice(e,t))},o.ischeck=function(){o.checklick=function(){var e=document.getElementById("without");1==e.checked&&e.checked}},n.get(i.apiUrl+"api/common/getCuriculum").then(function(e){o.cur_data=e.data,o.temp.sims_cur_code=o.cur_data[0].sims_cur_code}),n.get(i.apiUrl+"api/RoleApplication/getusertype").then(function(e){o.type_for=e.data,o.temp.comn_user_group_code=o.type_for[0].comn_user_group_code,setTimeout(function(){$("#type").change(function(){console.log($(this).val())}).multipleSelect({width:"100%"})},1e3)}),n.get(i.apiUrl+"api/RoleApplication/getuserstatus").then(function(e){o.status_for=e.data,o.temp.sims_appl_parameter=o.status_for[0].sims_appl_parameter,setTimeout(function(){$("#status").change(function(){console.log($(this).val())}).multipleSelect({width:"100%"})},1e3)}),o.getdetails=function(){o.colsvis=!1,n.get(i.apiUrl+"api/RoleApplication/getstatusdetails?cur_code="+o.temp.sims_cur_code+"&user_type="+o.temp.comn_user_group_code+"&user_status="+o.temp.sims_appl_parameter).then(function(e){0"+e+''+t+""),s.close(),a.focus(),o.detailsField=!1,o.colsvis=!1,o.getsubdetail())}),o.getdetails()},o.reset_data=function(){o.temp.sims_grade_code="",o.filteredTodos=[],o.pager=!1;try{$("#cmb_grade_code").multipleSelect("uncheckAll")}catch(e){}try{$("#cmb_section_code").multipleSelect("uncheckAll")}catch(e){}o.temp.sims_section_code="",o.filteredTodos=[]},o.ischeck=function(){o.checklick=function(){var e=document.getElementById("expire");1==e.checked&&e.checked}}}])}(),function(){"use strict";var e=angular.module("sims.module.Security");e.run(["$rootScope","$templateCache",function(e,t){e.$on("$viewContentLoaded",function(){t.removeAll()})}]),e.controller("UserLoginDetailsCont",["$scope","$state","$rootScope","$timeout","gettextCatalog","$http","ENV",function(o,e,t,a,s,n,i){o.temp={},o.detailsField=!0,o.hideprintpdf=!1,o.pagesize="30",o.pageindex="0",o.pager=!0,o.mom_end_date_check=!0,o.mom_start_date_check=!0,o.temp={};var d=(c=new Date).getDate(),r=c.getMonth()+1,c=(c.getFullYear(),o.mom_start_date="",o.mom_end_date="",$(function(){$("#bell_box").multipleSelect({width:"100%"}),$("#teacher_box").multipleSelect({width:"100%",filter:!0})}),new Date);(d=c.getDate())<10&&(d="0"+d);(r=c.getMonth()+1)<10&&(r="0"+r);var m=c.getFullYear();o.sdate=d+"-"+r+"-"+m,o.edate=d+"-"+r+"-"+m,o.mom_start_date=d+"-"+r+"-"+m,o.mom_end_date=d+"-"+r+"-"+m,$(function(){$("#chkmarks").click(function(){$(this).is(":checked")?($("#fdate").attr("disabled","disabled"),o.mom_start_date=""):($("#fdate").removeAttr("disabled"),$("#fdate").focus(),o.mom_start_date=d+"-"+r+"-"+m)})}),1==o.mom_start_date_check?o.mom_start_date="":o.mom_start_date=d+"-"+r+"-"+m,$(function(){$("#chkmarks1").click(function(){$(this).is(":checked")?($("#fdate").attr("disabled","disabled"),o.mom_end_date=""):($("#fdate").removeAttr("disabled"),$("#fdate").focus(),o.mom_end_date=d+"-"+r+"-"+m)})}),1==o.mom_end_date_check?o.mom_end_date="":o.mom_end_date=d+"-"+r+"-"+m,o.size=function(e){"All"==e?(o.currentPage="1",o.filteredTodos=o.todos,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,console.log("currentPage="+o.currentPage),o.makeTodos(),o.chk={},o.chk.chk_all=!1,o.row1=""},o.filteredTodos=[],o.currentPage=1,o.numPerPage=30,o.maxSize=100,o.makeTodos=function(){var e,t;"All"==o.pagesize?(o.currentPage=1,o.showPager=!1,o.filteredTodos=o.report_data):(e=parseInt(o.totalItems%o.numPerPage),o.pagersize="0"==e?parseInt(o.totalItems/o.numPerPage):parseInt(o.totalItems/o.numPerPage)+1,e=(o.currentPage-1)*o.numPerPage,t=parseInt(e)+parseInt(o.numPerPage),console.log("begin="+e),console.log("end="+t),o.filteredTodos=o.todos.slice(e,t))},o.ischeck=function(){o.checklick=function(){var e=document.getElementById("without");1==e.checked&&e.checked}},n.get(i.apiUrl+"api/common/getCuriculum").then(function(e){o.cur_data=e.data,o.temp.sims_cur_code=o.cur_data[0].sims_cur_code}),n.get(i.apiUrl+"api/RoleApplication/getusergroup").then(function(e){o.group_for=e.data,o.temp.comn_user_group_code=o.group_for[0].comn_user_group_code,setTimeout(function(){$("#group").change(function(){console.log($(this).val())}).multipleSelect({width:"100%"})},1e3)}),n.get(i.apiUrl+"api/RoleApplication/getlogindetail").then(function(e){o.login_for=e.data,o.temp.comn_appl_parameter=o.login_for[0].comn_appl_parameter}),o.getdetails=function(){o.colsvis=!1,n.get(i.apiUrl+"api/RoleApplication/getlogdetails?cur_code="+o.temp.sims_cur_code+"&group_code="+o.temp.comn_user_group_code+"&from_date="+o.mom_start_date+"&to_date="+o.mom_end_date+"&login="+o.temp.comn_appl_parameter).then(function(e){0"+e+''+t+""),s.close(),a.focus(),o.detailsField=!1,o.colsvis=!1,o.getsubdetail())}),o.getdetails()},o.reset_data=function(){o.temp.sims_grade_code="",o.filteredTodos=[],o.pager=!1;try{$("#cmb_grade_code").multipleSelect("uncheckAll")}catch(e){}try{$("#cmb_section_code").multipleSelect("uncheckAll")}catch(e){}o.temp.sims_section_code="",o.filteredTodos=[]},o.ischeck=function(){o.checklick=function(){var e=document.getElementById("expire");1==e.checked&&e.checked}}}])}(),function(){"use strict";var e=angular.module("sims.module.Inventory");e.run(["$rootScope","$templateCache",function(e,t){e.$on("$viewContentLoaded",function(){t.removeAll()})}]),e.controller("StockDetailsReportCont",["$scope","$state","$rootScope","$timeout","gettextCatalog","$http","ENV",function(o,e,t,a,s,n,i){o.temp={},o.detailsField=!0,o.hideprintpdf=!1,o.pagesize="30",o.pageindex="0",o.pager=!0,o.mom_end_date_check=!0,o.mom_start_date_check=!0,o.temp={};var d=(c=new Date).getDate(),r=c.getMonth()+1,c=(c.getFullYear(),o.mom_attendance_date="",o.mom_end_date="",$(function(){$("#bell_box").multipleSelect({width:"100%"}),$("#teacher_box").multipleSelect({width:"100%",filter:!0})}),new Date);(d=c.getDate())<10&&(d="0"+d);(r=c.getMonth()+1)<10&&(r="0"+r);var m=c.getFullYear();o.sdate=d+"-"+r+"-"+m,o.edate=d+"-"+r+"-"+m,o.mom_attendance_date=d+"-"+r+"-"+m,o.mom_end_date=d+"-"+r+"-"+m,$(function(){$("#chkmarks").click(function(){$(this).is(":checked")?($("#fdate").attr("disabled","disabled"),o.mom_attendance_date=""):($("#fdate").removeAttr("disabled"),$("#fdate").focus(),o.mom_attendance_date=d+"-"+r+"-"+m)})}),1==o.mom_attendance_date_check?o.mom_attendance_date="":o.mom_attendance_date=d+"-"+r+"-"+m,$(function(){$("#chkmarks1").click(function(){$(this).is(":checked")?($("#fdate").attr("disabled","disabled"),o.mom_end_date=""):($("#fdate").removeAttr("disabled"),$("#fdate").focus(),o.mom_end_date=d+"-"+r+"-"+m)})}),1==o.mom_end_date_check?o.mom_end_date="":o.mom_end_date=d+"-"+r+"-"+m,o.size=function(e){"All"==e?(o.currentPage="1",o.filteredTodos=o.todos,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,console.log("currentPage="+o.currentPage),o.makeTodos(),o.chk={},o.chk.chk_all=!1,o.row1=""},o.filteredTodos=[],o.currentPage=1,o.numPerPage=30,o.maxSize=100,o.makeTodos=function(){var e,t;"All"==o.pagesize?(o.currentPage=1,o.showPager=!1,o.filteredTodos=o.report_data):(e=parseInt(o.totalItems%o.numPerPage),o.pagersize="0"==e?parseInt(o.totalItems/o.numPerPage):parseInt(o.totalItems/o.numPerPage)+1,e=(o.currentPage-1)*o.numPerPage,t=parseInt(e)+parseInt(o.numPerPage),console.log("begin="+e),console.log("end="+t),o.filteredTodos=o.todos.slice(e,t))},o.ischeck=function(){o.checklick=function(){var e=document.getElementById("without");1==e.checked&&e.checked}},n.get(i.apiUrl+"api/common/getCuriculum").then(function(e){o.cur_data=e.data,o.temp.sims_cur_code=o.cur_data[0].sims_cur_code}),setTimeout(function(){$("#cat").change(function(){console.log($(this).val())}).multipleSelect({width:"100%"})},1e3),n.get(i.apiUrl+"api/StockDetailsReport/getcat").then(function(e){o.cat_for=e.data,o.temp.pc_category=o.cat_for[0].pc_code,o.getcategory(o.temp.sims_subcat),setTimeout(function(){$("#cat").change(function(){console.log($(this).val())}).multipleSelect({width:"100%"})},1e3)}),o.getcategory=function(e){n.get(i.apiUrl+"api/StockDetailsReport/getsubcat?&cat="+o.temp.pc_category).then(function(e){o.subcat_for=e.data,o.temp.sims_subcat=o.subcat_for[0].pc_code,setTimeout(function(){$("#subcat").change(function(){console.log($(this).val())}).multipleSelect({width:"100%"})},1e3)})},o.getdetails=function(){o.colsvis=!1,n.get(i.apiUrl+"api/StockDetailsReport/getstock?cur_code="+o.temp.sims_cur_code+"&cat="+o.temp.pc_category+"&subcat="+o.temp.sims_subcat).then(function(e){0"+e+''+t+""),s.close(),a.focus(),o.detailsField=!1,o.colsvis=!1,o.getsubdetail())}),o.getdetails()},o.reset_data=function(){o.temp.sims_grade_code="",o.filteredTodos=[],o.pager=!1;try{$("#cmb_grade_code").multipleSelect("uncheckAll")}catch(e){}try{$("#cmb_section_code").multipleSelect("uncheckAll")}catch(e){}o.temp.sims_section_code="",o.filteredTodos=[]},o.ischeck=function(){o.checklick=function(){var e=document.getElementById("expire");1==e.checked&&e.checked}}}])}(),function(){"use strict";var e=angular.module("sims.module.Inventory");e.run(["$rootScope","$templateCache",function(e,t){e.$on("$viewContentLoaded",function(){t.removeAll()})}]),e.controller("RequestDetailSummaryCont",["$scope","$state","$rootScope","$timeout","gettextCatalog","$http","ENV",function(o,e,t,a,s,n,i){o.temp={},o.detailsField=!0,o.hideprintpdf=!1,o.pagesize="30",o.pageindex="0",o.pager=!0,o.mom_end_date_check=!0,o.mom_start_date_check=!0,o.temp={};var d=(c=new Date).getDate(),r=c.getMonth()+1,c=(c.getFullYear(),o.mom_start_date="",o.mom_end_date="",$(function(){$("#bell_box").multipleSelect({width:"100%"}),$("#teacher_box").multipleSelect({width:"100%",filter:!0})}),new Date);(d=c.getDate())<10&&(d="0"+d);(r=c.getMonth()+1)<10&&(r="0"+r);var m=c.getFullYear();o.sdate=d+"-"+r+"-"+m,o.edate=d+"-"+r+"-"+m,o.mom_start_date=d+"-"+r+"-"+m,o.mom_end_date=d+"-"+r+"-"+m,$(function(){$("#chkmarks").click(function(){$(this).is(":checked")?($("#fdate").attr("disabled","disabled"),o.mom_start_date=""):($("#fdate").removeAttr("disabled"),$("#fdate").focus(),o.mom_start_date=d+"-"+r+"-"+m)})}),1==o.mom_start_date_check?o.mom_start_date="":o.mom_start_date=d+"-"+r+"-"+m,$(function(){$("#chkmarks1").click(function(){$(this).is(":checked")?($("#fdate").attr("disabled","disabled"),o.mom_end_date=""):($("#fdate").removeAttr("disabled"),$("#fdate").focus(),o.mom_end_date=d+"-"+r+"-"+m)})}),1==o.mom_end_date_check?o.mom_end_date="":o.mom_end_date=d+"-"+r+"-"+m,o.size=function(e){"All"==e?(o.currentPage="1",o.filteredTodos=o.todos,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,console.log("currentPage="+o.currentPage),o.makeTodos(),o.chk={},o.chk.chk_all=!1,o.row1=""},o.filteredTodos=[],o.currentPage=1,o.numPerPage=30,o.maxSize=100,o.makeTodos=function(){var e,t;"All"==o.pagesize?(o.currentPage=1,o.showPager=!1,o.filteredTodos=o.report_data):(e=parseInt(o.totalItems%o.numPerPage),o.pagersize="0"==e?parseInt(o.totalItems/o.numPerPage):parseInt(o.totalItems/o.numPerPage)+1,e=(o.currentPage-1)*o.numPerPage,t=parseInt(e)+parseInt(o.numPerPage),console.log("begin="+e),console.log("end="+t),o.filteredTodos=o.todos.slice(e,t))},o.ischeck=function(){o.checklick=function(){var e=document.getElementById("without");1==e.checked&&e.checked}},n.get(i.apiUrl+"api/common/getCuriculum").then(function(e){o.cur_data=e.data,o.temp.sims_cur_code=o.cur_data[0].sims_cur_code}),n.get(i.apiUrl+"api/StockDetailsReport/getdepartment").then(function(e){o.dep_for=e.data,o.temp.department_name=o.dep_for[0].dep_name}),n.get(i.apiUrl+"api/StockDetailsReport/getreptype").then(function(e){o.rep_for=e.data,o.temp.invs_appl_parameter=o.rep_for[0].invs_appl_parameter,setTimeout(function(){$("#rep_type").change(function(){console.log($(this).val())}).multipleSelect({width:"100%"})},1e3)}),n.get(i.apiUrl+"api/StockDetailsReport/getstatusp").then(function(e){o.status_for=e.data,o.temp.invs_status_parameter=o.status_for[0].invs_appl_parameter,setTimeout(function(){$("#status").change(function(){console.log($(this).val())}).multipleSelect({width:"100%"})},1e3)}),o.getdetails=function(){o.colsvis=!1,n.get(i.apiUrl+"api/StockDetailsReport/getrequest?dname="+o.temp.department_name+"&rt="+o.temp.invs_appl_parameter+"&rs="+o.temp.invs_status_parameter+"&from_date="+o.mom_start_date+"&to_date="+o.mom_end_date).then(function(e){0"+e+''+t+""),s.close(),a.focus(),o.detailsField=!1,o.colsvis=!1,o.getsubdetail())}),o.getdetails()},o.reset_data=function(){o.temp.sims_grade_code="",o.filteredTodos=[],o.pager=!1;try{$("#cmb_grade_code").multipleSelect("uncheckAll")}catch(e){}try{$("#cmb_section_code").multipleSelect("uncheckAll")}catch(e){}o.temp.sims_section_code="",o.filteredTodos=[]},o.ischeck=function(){o.checklick=function(){var e=document.getElementById("expire");1==e.checked&&e.checked}}}])}(),function(){"use strict";angular.module("sims.module.Student").controller("LearningLeamsCont",["$scope","$state","$rootScope","$timeout","gettextCatalog","$http","ENV","$stateParams",function(n,e,t,s,a,_,i,o){n.colorCodeArray=["#FFACAC","#F58DA87D","#FFC490","#98D27AAB","#74DBD1C9","#C468D8A6","#E29F9F"];var d,r,c,m,l=new FormData,u=t.globals.currentUser.username,p=t.globals.currentUser.username,h=(n.jointeval=!1,d="admin"!=p?p.toUpperCase():p,"saisa"==_.defaults.headers.common.schoolId?n.answer_h="T":n.answer_v="T",t.globals.currentUser.username),p=(n.temp=[],new Date),g=p.getDate(),f=p.getMonth()+1,y=p.getFullYear(),b=(n.temp.att_date=("0"+g).slice(-2)+"-"+("0"+f).slice(-2)+"-"+y,setTimeout(function(){$("#cmb_subject").select2()},100),setTimeout(function(){$("#cmb_slot").select2()},100),o.learn_obj),v=o.status,p=(n.paramobj=b,console.log("PARAM",b),"saisd"==_.defaults.headers.common.schoolId&&(n.jointeval=!0),"saisa"==_.defaults.headers.common.schoolId&&(n.btn_sub=!0,t={opr:"X",ACA_YEAR:b.sims_academic_year,user:u},_.post(i.apiUrl+"api/LearningAsd/UserAccessData",t).then(function(e){0${t.sims_teacher_name}`:a+=``}),$("#cmb_slot").empty(),$("#cmb_slot").select2("destroy"),$("#cmb_slot").append(''),$("#cmb_slot").append(a),$("#cmb_slot").select2(),$("#cmb_slot").val(""),void 0!==b.sims_academic_year&&(o.learn_obj!={}&&null!=o.learn_obj?(n.temp.sims_lesson_created_for=o.learn_obj.sims_lesson_observation_for,s(function(){$("#cmb_slot").val(o.learn_obj.sims_lesson_observation_for).trigger("change"),$("#cmb_slot").select2()}),n.$$phase||n.$apply()):0${t.sims_subject_name_en}`}),$("#cmb_subject").empty(),$("#cmb_subject").select2("destroy"),$("#cmb_subject").append(''),$("#cmb_subject").append(a),$("#cmb_subject").select2()),n.subject_change()})},_.get(i.apiUrl+"api/LearningAsd/getTemplate").then(function(e){n.templatelst=e.data,n.temp.temp_id=n.templatelst[0].sims_comment_template_id}),n.body1=!1,n.buttons3=!1,n.getdata=function(e){n.body1=!0,n.buttons3=!0,e&&(_.get(i.apiUrl+"api/LearningAsd/getTemplateDetails?cur="+n.temp.cur_code+"&academic="+n.temp.acdm_yr+"&temp_id="+n.temp.temp_id+"&grade="+n.temp.grade_code+"&sec="+n.temp.sec_code+"&sub="+n.temp.subject_code+"&dt="+n.temp.att_date+"&slot="+n.temp.sims_lesson_created_for+"&lession_id="+n.temp.sims_lesson_id_new+"&user="+h+"&period="+n.temp.slot_code).then(function(e){n.templateDetaillst=e.data,console.log("data1",n.templateDetaillst),setTimeout(function(){for(var e,t=0;t{}]/g,"_"),n.photo_filename.split("/")[1]),e=(n.filename1=n.filename+"."+e,null!=n.photo_filename&&""!=n.photo_filename||swal({title:"Alert",text:"Please Select File",width:300,height:200}),{method:"POST",url:i.apiUrl+"api/AssignmentUpload/upload1?filename="+n.filename1+"&location=Docs/LessonObservation/",data:r,headers:{"Content-Type":void 0}});_(e).success(function(e){i.AWS.includes(_.defaults.headers.common.schoolId)&&(e=e.substring(e.lastIndexOf("/")+1)),n.showFileName=!0,n.file_name=e,null!=n.filename1&&""!=n.filename1&&null!=n.filename1||(n.showFileName=!1),n.performanceemp=n.filename1,swal({text:"Document Uploaded Successfully. Save the form to view the uploaded document.",imageUrl:"assets/img/check.png"})},function(){alert("Err")}),angular.forEach(angular.element("input[type='file']"),function(e){angular.element(e).val(null)}),$("#myModal").modal("hide")},n.downloaddoc=function(){n.getViewDocuments=n.templateDetaillst[1].sims_comment_filepath,n.url=i.docUrl+_.defaults.headers.common.schoolId+"/Docs/LessonObservation/",window.open(n.url+n.getViewDocuments,"_new")},n.print=function(){n.colsvis=!0,n.show_report_header=!0,n.pacad=$("select[name=cmb_academic] option:selected").text(),n.pclass=$("select[name=cmb_grade] option:selected").text()+"-"+$("select[name=cmb_section] option:selected").text(),n.psubject=$("select[name=cmb_subject1] option:selected").text(),n.pPeriod=$("select[name=cmb_slot] option:selected").text(),swal({title:"Alert",text:"Do you want to Print?",showCloseButton:!0,showCancelButton:!0,confirmButtonText:"Yes",width:380,cancelButtonText:"No"}).then(function(e){var t,a,s;e&&(e=document.head.outerHTML,t=document.getElementById("printable").outerHTML,(s=(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")).document).open(),s.write(""+e+''+t+""),s.close(),a.focus())})}}])}(),function(){"use strict";angular.module("sims.module.Student").controller("PeerObservationCont",["$scope","$state","$rootScope","$timeout","gettextCatalog","$http","ENV","$stateParams",function(n,e,t,a,s,_,i,o){n.colorCodeArray=["#FFACAC","#F58DA87D","#FFC490","#98D27AAB","#74DBD1C9","#C468D8A6","#E29F9F"];var d,r,c,m,l=new FormData,u=t.globals.currentUser.username,p=t.globals.currentUser.username,h=(n.jointeval=!1,d="admin"!=p?p.toUpperCase():p,"saisa"==_.defaults.headers.common.schoolId?n.answer_h="T":n.answer_v="T",t.globals.currentUser.username),p=(n.temp=[],new Date),g=p.getDate(),f=p.getMonth()+1,y=p.getFullYear(),b=(n.temp.att_date=("0"+g).slice(-2)+"-"+("0"+f).slice(-2)+"-"+y,setTimeout(function(){$("#cmb_subject").select2()},100),setTimeout(function(){$("#cmb_slot").select2()},100),o.learn_obj),p=(n.paramobj=b,"saisd"==_.defaults.headers.common.schoolId&&(n.jointeval=!0),"saisa"==_.defaults.headers.common.schoolId&&(n.btn_sub=!0,t={opr:"X",ACA_YEAR:b.sims_academic_year,user:u},_.post(i.apiUrl+"api/LearningAsd/UserAccessData",t).then(function(e){0${t.sims_teacher_name}`:a+=``}),$("#cmb_slot").empty(),$("#cmb_slot").select2("destroy"),$("#cmb_slot").append(''),$("#cmb_slot").append(a),$("#cmb_slot").select2(),$("#cmb_slot").val(""),void 0!==b.sims_academic_year&&0<(e=n.attSlot.filter(function(e){return e.sims_employee_code===b.sims_lesson_observation_for})).length&&(n.temp.sims_lesson_created_for=e[0].sims_teacher_name,$("#cmb_slot").val(e[0].sims_teacher_name).trigger("change"),$("#cmb_slot").select2())})},n.getSubject=function(){n.flg_count=!1,null==n.temp.grade_code&&(n.temp.grade_code=""),null==n.temp.sec_code&&(n.temp.sec_code=""),_.get(i.apiUrl+"api/LearningAsd/getSubject?cur="+n.temp.cur_code+"&academic_year="+n.temp.acdm_yr+"&grade="+n.temp.grade_code+"§ion="+n.temp.sec_code+"&user_name="+d+"&date="+n.temp.att_date).then(function(e){n.subjectlst=e.data;var a,e=e.data;1<=e.length&&(a="",$.each(e,function(e,t){a+=``}),$("#cmb_subject").empty(),$("#cmb_subject").select2("destroy"),$("#cmb_subject").append(''),$("#cmb_subject").append(a),$("#cmb_subject").select2()),n.subject_change()})},_.get(i.apiUrl+"api/LearningAsd/getTemplateforPeer").then(function(e){n.templatelst=e.data,n.temp.temp_id=n.templatelst[0].sims_comment_template_id}),n.body1=!1,n.buttons3=!1,n.getdata=function(e){n.body1=!0,n.buttons3=!0,e&&(_.get(i.apiUrl+"api/LearningAsd/getTemplateDetails?cur="+n.temp.cur_code+"&academic="+n.temp.acdm_yr+"&temp_id="+n.temp.temp_id+"&grade="+n.temp.grade_code+"&sec="+n.temp.sec_code+"&sub="+n.temp.subject_code+"&dt="+n.temp.att_date+"&slot="+n.temp.sims_lesson_created_for+"&lession_id="+n.temp.sims_lesson_id_new+"&user="+h+"&period="+n.temp.slot_code).then(function(e){n.templateDetaillst=e.data;for(var t=0;t{}]/g,"_"),n.photo_filename.split("/")[1]),e=(n.filename1=n.filename+"."+e,null!=n.photo_filename&&""!=n.photo_filename||swal({title:"Alert",text:"Please Select File",width:300,height:200}),{method:"POST",url:i.apiUrl+"api/AssignmentUpload/upload1?filename="+n.filename1+"&location=Docs/LessonObservation/",data:r,headers:{"Content-Type":void 0}});_(e).success(function(e){i.AWS.includes(_.defaults.headers.common.schoolId)&&(e=e.substring(e.lastIndexOf("/")+1)),n.showFileName=!0,n.file_name=e,null!=n.filename1&&""!=n.filename1&&null!=n.filename1||(n.showFileName=!1),n.performanceemp=n.filename1},function(){alert("Err")}),angular.forEach(angular.element("input[type='file']"),function(e){angular.element(e).val(null)}),$("#myModal").modal("hide")},n.downloaddoc=function(){n.getViewDocuments=n.templateDetaillst[1].sims_comment_filepath,n.url=i.docUrl+_.defaults.headers.common.schoolId+"/Docs/LessonObservation/"+n.file_name,window.open(n.url+n.getViewDocuments,"_new")},n.print=function(){n.colsvis=!0,n.show_report_header=!0,n.pacad=$("select[name=cmb_academic] option:selected").text(),n.pclass=$("select[name=cmb_grade] option:selected").text()+"-"+$("select[name=cmb_section] option:selected").text(),n.psubject=$("select[name=cmb_subject1] option:selected").text(),n.pPeriod=$("select[name=cmb_slot] option:selected").text(),swal({title:"Alert",text:"Do you want to Print?",showCloseButton:!0,showCancelButton:!0,confirmButtonText:"Yes",width:380,cancelButtonText:"No"}).then(function(e){var t,a,s;e&&(e=document.head.outerHTML,t=document.getElementById("printable").outerHTML,(s=(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")).document).open(),s.write(""+e+''+t+""),s.close(),a.focus())})}}])}(),function(){"use strict";angular.module("sims.module.Student").controller("TeacherObservationCont",["$scope","$state","$rootScope","$timeout","gettextCatalog","$http","ENV","$stateParams",function(n,e,t,s,a,_,i,o){n.colorCodeArray=["#FFACAC","#F58DA87D","#FFC490","#98D27AAB","#74DBD1C9","#C468D8A6","#E29F9F"];var d,r,c,m,l=new FormData,u=t.globals.currentUser.username,p=t.globals.currentUser.username,h=(n.jointeval=!1,d="admin"!=p?p.toUpperCase():p,"saisa"==_.defaults.headers.common.schoolId?n.answer_h="T":n.answer_v="T",t.globals.currentUser.username),p=(n.temp=[],new Date),g=p.getDate(),f=p.getMonth()+1,y=p.getFullYear(),b=(n.temp.att_date=("0"+g).slice(-2)+"-"+("0"+f).slice(-2)+"-"+y,setTimeout(function(){$("#cmb_subject").select2()},100),setTimeout(function(){$("#cmb_slot").select2()},100),o.learn_obj),v=o.status,p=(n.paramobj=b,"saisd"==_.defaults.headers.common.schoolId&&(n.jointeval=!0),"saisa"==_.defaults.headers.common.schoolId&&(n.btn_sub=!0,t={opr:"X",ACA_YEAR:b.sims_academic_year,user:u},_.post(i.apiUrl+"api/LearningAsd/UserAccessData",t).then(function(e){0${t.sims_teacher_name}`:a+=``}),$("#cmb_slot").empty(),$("#cmb_slot").select2("destroy"),$("#cmb_slot").append(''),$("#cmb_slot").append(a),$("#cmb_slot").select2(),$("#cmb_slot").val(""),void 0!==b.sims_academic_year&&(o.learn_obj!={}&&null!=o.learn_obj?(n.temp.sims_lesson_created_for=o.learn_obj.sims_lesson_observation_for,s(function(){$("#cmb_slot").val(o.learn_obj.sims_lesson_observation_for).trigger("change"),$("#cmb_slot").select2()}),n.$$phase||n.$apply()):0${t.sims_subject_name_en}`}),$("#cmb_subject").empty(),$("#cmb_subject").select2("destroy"),$("#cmb_subject").append(''),$("#cmb_subject").append(a),$("#cmb_subject").select2()),n.subject_change()})},_.get(i.apiUrl+"api/LearningAsd/getTemplateforTeacher").then(function(e){n.templatelst=e.data,n.temp.temp_id=n.templatelst[0].sims_comment_template_id}),n.body1=!1,n.buttons3=!1,n.getdata=function(e){n.body1=!0,n.buttons3=!0,e&&(_.get(i.apiUrl+"api/LearningAsd/getTemplateInclusionDetails?cur="+n.temp.cur_code+"&academic="+n.temp.acdm_yr+"&temp_id="+n.temp.temp_id+"&grade="+n.temp.grade_code+"&sec="+n.temp.sec_code+"&sub="+n.temp.subject_code+"&dt="+n.temp.att_date+"&slot="+n.temp.sims_lesson_created_for+"&lession_id="+n.temp.sims_lesson_id_new+"&user="+h+"&period="+n.temp.slot_code+"&term="+n.temp.sims_inclusion_term_code).then(function(e){n.templateDetaillst=e.data,console.log("data1",n.templateDetaillst),setTimeout(function(){for(var e,t=0;t{}]/g,"_"),n.photo_filename.split("/")[1]),e=(n.filename1=n.filename+"."+e,null!=n.photo_filename&&""!=n.photo_filename||swal({title:"Alert",text:"Please Select File",width:300,height:200}),{method:"POST",url:i.apiUrl+"api/AssignmentUpload/upload1?filename="+n.filename1+"&location=Docs/LessonObservation/",data:r,headers:{"Content-Type":void 0}});_(e).success(function(e){i.AWS.includes(_.defaults.headers.common.schoolId)&&(e=e.substring(e.lastIndexOf("/")+1)),n.showFileName=!0,n.file_name=e,null!=n.filename1&&""!=n.filename1&&null!=n.filename1||(n.showFileName=!1),n.performanceemp=n.filename1,swal({text:"Document Uploaded Successfully. Save the form to view the uploaded document.",imageUrl:"assets/img/check.png"})},function(){alert("Err")}),angular.forEach(angular.element("input[type='file']"),function(e){angular.element(e).val(null)}),$("#myModal").modal("hide")},n.downloaddoc=function(){n.getViewDocuments=n.templateDetaillst[1].sims_comment_filepath,n.url=i.docUrl+_.defaults.headers.common.schoolId+"/Docs/LessonObservation/",window.open(n.url+n.getViewDocuments,"_new")},n.print=function(){n.colsvis=!0,n.show_report_header=!0,n.pacad=$("select[name=cmb_academic] option:selected").text(),n.pclass=$("select[name=cmb_grade] option:selected").text()+"-"+$("select[name=cmb_section] option:selected").text(),n.psubject=$("select[name=cmb_subject1] option:selected").text(),n.pPeriod=$("select[name=cmb_slot] option:selected").text(),swal({title:"Alert",text:"Do you want to Print?",showCloseButton:!0,showCancelButton:!0,confirmButtonText:"Yes",width:380,cancelButtonText:"No"}).then(function(e){var t,a,s;e&&(e=document.head.outerHTML,t=document.getElementById("printable").outerHTML,(s=(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")).document).open(),s.write(""+e+''+t+""),s.close(),a.focus())})}}])}(),function(){"use strict";var e=angular.module("sims.module.Scheduling");e.run(["$rootScope","$templateCache",function(e,t){e.$on("$viewContentLoaded",function(){t.removeAll()})}]),e.controller("ExceedingTeacherWorkloadRptCont",["$scope","$state","$rootScope","$timeout","gettextCatalog","$http","ENV",function(o,e,t,a,s,n,i){o.temp={},o.detailsField=!0,o.hideprintpdf=!1,o.temp.sims_version="T",o.pagesize="30",o.pageindex="0",o.pager=!0,o.size=function(e){"All"==e?(o.currentPage="1",o.filteredTodos=o.todos,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,console.log("currentPage="+o.currentPage),o.makeTodos(),o.chk={},o.chk.chk_all=!1,o.row1=""},o.filteredTodos=[],o.currentPage=1,o.numPerPage=30,o.maxSize=100,o.makeTodos=function(){var e,t;"All"==o.pagesize?(o.currentPage=1,o.showPager=!1,o.filteredTodos=o.report_data_new):(e=parseInt(o.totalItems%o.numPerPage),o.pagersize="0"==e?parseInt(o.totalItems/o.numPerPage):parseInt(o.totalItems/o.numPerPage)+1,e=(o.currentPage-1)*o.numPerPage,t=parseInt(e)+parseInt(o.numPerPage),console.log("begin="+e),console.log("end="+t),o.filteredTodos=o.todos.slice(e,t))},n.get(i.apiUrl+"api/common/getCuriculum").then(function(e){o.cur_data=e.data,o.temp.sims_cur_code=o.cur_data[0].sims_cur_code,o.getAcademic_year(o.cur_data[0].sims_cur_code)}),o.getAcademic_year=function(e){n.get(i.apiUrl+"api/common/getAcademicYear?curCode="+e).then(function(e){o.acad_data=e.data,o.temp.sims_academic_year=o.acad_data[0].sims_academic_year,o.getbell(o.temp.sims_academic_year),o.getversion(o.temp.sims_academic_year,o.temp.sims_bell)})},o.getbell=function(e){n.get(i.apiUrl+"api/SchedulingExceed/getBell?acad_year="+o.temp.sims_academic_year).then(function(e){o.Bell_as=e.data,o.temp.sims_bell=o.Bell_as[0].sims_bell_code,setTimeout(function(){$("#bell_id").change(function(){console.log($(this).val())}).multipleSelect({width:"100%"})},1e3),o.getversion(o.temp.sims_academic_year,o.temp.sims_bell)})},o.getversion=function(e,t){n.get(i.apiUrl+"api/SchedulingExceed/getVersion?acad_year="+o.temp.sims_academic_year+"&bell="+o.temp.sims_bell).then(function(e){o.version_as=e.data,o.temp.sims_version=o.version_as[0].sims_bell_version_name})},n.get(i.apiUrl+"api/SchedulingExceed/getType").then(function(e){o.type_as=e.data,o.temp.sims_type=o.type_as[0].value}),o.getdetails=function(){n.get(i.apiUrl+"api/SchedulingExceed/getExceedingWorkLoad?cur_code="+o.temp.sims_cur_code+"&acad_year="+o.temp.sims_academic_year+"&bell="+o.temp.sims_bell+"&version="+o.temp.sims_version+"¶m="+o.temp.sims_type+"&value="+o.temp.enter_value).then(function(e){0"+e+''+t+""),s.close(),a.focus(),o.detailsField=!1,o.colsvis=!1,o.getdetails())})},o.reset_data=function(){o.filteredTodos=[];try{$("#cmb_grade_code").multipleSelect("uncheckAll")}catch(e){}try{$("#cmb_section_code").multipleSelect("uncheckAll")}catch(e){}o.temp.sims_bell_code="",o.report_data_new=[]},o.ischeck=function(){o.checklick=function(){var e=document.getElementById("show_unassign");1==e.checked&&e.checked}}}])}(),function(){"use strict";var e=angular.module("sims.module.HRMS");e.run(["$rootScope","$templateCache",function(e,t){e.$on("$viewContentLoaded",function(){t.removeAll()})}]),e.controller("RoleWiseUserListRptCont",["$scope","$state","$rootScope","$timeout","gettextCatalog","$http","ENV",function(o,e,t,a,s,n,i){o.temp={},o.detailsField=!0,o.hideprintpdf=!1,o.pagesize="30",o.pageindex="0",o.pager=!0,o.size=function(e){"All"==e?(o.currentPage="1",o.filteredTodos=o.todos,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,console.log("currentPage="+o.currentPage),o.makeTodos(),o.chk={},o.chk.chk_all=!1,o.row1=""},o.filteredTodos=[],o.currentPage=1,o.numPerPage=30,o.maxSize=100,o.makeTodos=function(){var e,t;"All"==o.pagesize?(o.currentPage=1,o.showPager=!1,o.filteredTodos=o.report_data_new):(e=parseInt(o.totalItems%o.numPerPage),o.pagersize="0"==e?parseInt(o.totalItems/o.numPerPage):parseInt(o.totalItems/o.numPerPage)+1,e=(o.currentPage-1)*o.numPerPage,t=parseInt(e)+parseInt(o.numPerPage),console.log("begin="+e),console.log("end="+t),o.filteredTodos=o.todos.slice(e,t))},n.get(i.apiUrl+"api/common/getCompanyName").then(function(e){o.CompanyName_Data=e.data}),n.get(i.apiUrl+"api/hrms/getRoleWiseUserListRoleCode").then(function(e){o.emp_as=e.data,o.temp.sims_employee_role=o.emp_as[0].comn_role_code,setTimeout(function(){$("#EMPRole").change(function(){console.log($(this).val())}).multipleSelect({width:"100%"})},1e3)}),o.getdetails=function(){n.get(i.apiUrl+"api/hrms/getRoleWiseUserList?comp_code="+o.temp.company_code+"&role_code="+o.temp.sims_employee_role).then(function(e){0"+e+''+t+""),s.close(),a.focus(),o.detailsField=!1,o.colsvis=!1,o.getsubdetail())})},o.reset_data=function(){o.filteredTodos=[];try{$("#cmb_grade_code").multipleSelect("uncheckAll")}catch(e){}try{$("#cmb_section_code").multipleSelect("uncheckAll")}catch(e){}o.temp.sims_bell_code="",o.report_data_new=[]}}])}(),function(){"use strict";var e=angular.module("sims.module.Inventory");e.run(["$rootScope","$templateCache",function(e,t){e.$on("$viewContentLoaded",function(){t.removeAll()})}]),e.controller("ItemStockReportCont",["$scope","$state","$rootScope","$timeout","gettextCatalog","$http","ENV",function(o,e,t,a,s,n,i){o.temp={},o.detailsField=!0,o.hideprintpdf=!1,o.pagesize="30",o.pageindex="0",o.pager=!0,o.size=function(e){"All"==e?(o.currentPage="1",o.filteredTodos=o.todos,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,console.log("currentPage="+o.currentPage),o.makeTodos(),o.chk={},o.chk.chk_all=!1,o.row1=""},o.filteredTodos=[],o.currentPage=1,o.numPerPage=30,o.maxSize=100,o.makeTodos=function(){var e,t;"All"==o.pagesize?(o.currentPage=1,o.showPager=!1,o.filteredTodos=o.report_data_new):(e=parseInt(o.totalItems%o.numPerPage),o.pagersize="0"==e?parseInt(o.totalItems/o.numPerPage):parseInt(o.totalItems/o.numPerPage)+1,e=(o.currentPage-1)*o.numPerPage,t=parseInt(e)+parseInt(o.numPerPage),console.log("begin="+e),console.log("end="+t),o.filteredTodos=o.todos.slice(e,t))},n.get(i.apiUrl+"api/common/getCompanyName").then(function(e){o.CompanyName_Data=e.data,o.temp.company_code=o.CompanyName_Data[0].pc_company_code,o.getDepartment(o.temp.sims_dept)}),n.get(i.apiUrl+"api/Inv/getItemStockCategory").then(function(e){o.category_as=e.data,o.temp.sims_category=o.category_as[0].pc_code,o.getSubcategory(o.temp.sims_subcategory),setTimeout(function(){$("#cat").change(function(){console.log($(this).val())}).multipleSelect({width:"100%"})},1e3)}),o.getSubcategory=function(e){n.get(i.apiUrl+"api/Inv/getItemStockSubategory?cat="+o.temp.sims_category).then(function(e){o.subcategory_as=e.data,o.temp.sims_subcategory=o.subcategory_as[0].pc_code,setTimeout(function(){$("#sub_cat").change(function(){console.log($(this).val())}).multipleSelect({width:"100%"})},1e3)})},o.getDepartment=function(e){n.get(i.apiUrl+"api/Inv/getItemStockDept?comp_code="+o.temp.company_code).then(function(e){o.dept_as=e.data,o.temp.sims_dept=o.dept_as[0].dep_code,setTimeout(function(){$("#dept").change(function(){console.log($(this).val())}).multipleSelect({width:"100%"})},1e3)})},o.getdetails=function(){n.get(i.apiUrl+"api/Inv/getItemStockReport?comp_code="+o.temp.company_code+"&cat="+o.temp.sims_category+"&subcat="+o.temp.sims_subcategory+"&department="+o.temp.sims_dept).then(function(e){0"+e+''+t+""),s.close(),a.focus(),o.detailsField=!1,o.colsvis=!1)})},o.reset_data=function(){o.filteredTodos=[];try{$("#cmb_grade_code").multipleSelect("uncheckAll")}catch(e){}try{$("#cmb_section_code").multipleSelect("uncheckAll")}catch(e){}o.temp.sims_bell_code="",o.report_data_new=[]}}])}(),function(){"use strict";var e=angular.module("sims.module.Inventory");e.run(["$rootScope","$templateCache",function(e,t){e.$on("$viewContentLoaded",function(){t.removeAll()})}]),e.controller("ItemReorderListRptCont",["$scope","$state","$rootScope","$timeout","gettextCatalog","$http","ENV",function(o,e,t,a,s,n,i){o.temp={},o.detailsField=!0,o.hideprintpdf=!1,o.pagesize="30",o.pageindex="0",o.pager=!0,o.size=function(e){"All"==e?(o.currentPage="1",o.filteredTodos=o.todos,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,console.log("currentPage="+o.currentPage),o.makeTodos(),o.chk={},o.chk.chk_all=!1,o.row1=""},o.filteredTodos=[],o.currentPage=1,o.numPerPage=30,o.maxSize=100,o.makeTodos=function(){var e,t;"All"==o.pagesize?(o.currentPage=1,o.showPager=!1,o.filteredTodos=o.report_data_new):(e=parseInt(o.totalItems%o.numPerPage),o.pagersize="0"==e?parseInt(o.totalItems/o.numPerPage):parseInt(o.totalItems/o.numPerPage)+1,e=(o.currentPage-1)*o.numPerPage,t=parseInt(e)+parseInt(o.numPerPage),console.log("begin="+e),console.log("end="+t),o.filteredTodos=o.todos.slice(e,t))},n.get(i.apiUrl+"api/common/getCuriculum").then(function(e){o.cur_data=e.data,o.temp.sims_cur_code=o.cur_data[0].sims_cur_code,o.getAcademic_year(o.cur_data[0].sims_cur_code)}),n.get(i.apiUrl+"api/Inv/getItemReorderListCategory").then(function(e){o.category_as=e.data,o.temp.sims_category=o.category_as[0].pc_code,o.getSubcategory(o.temp.sims_subcategory),setTimeout(function(){$("#cat").change(function(){console.log($(this).val())}).multipleSelect({width:"100%"})},1e3)}),o.getSubcategory=function(e){n.get(i.apiUrl+"api/Inv/getItemReorderListSubCategory?category="+o.temp.sims_category).then(function(e){o.subcategory_as=e.data,o.temp.sims_subcategory=o.subcategory_as[0].pc_code,setTimeout(function(){$("#sub_cat").change(function(){console.log($(this).val())}).multipleSelect({width:"100%"})},1e3)})},n.get(i.apiUrl+"api/Inv/getItemReorderListDept").then(function(e){o.dept_as=e.data,o.temp.sims_dept=o.dept_as[0].dep_code}),o.getdetails=function(){n.get(i.apiUrl+"api/Inv/getItemReorderList?cur_code="+o.temp.sims_cur_code+"&category="+o.temp.sims_category+"&subcategory="+o.temp.sims_subcategory+"&dep_code="+o.temp.sims_dept).then(function(e){0"+e+''+t+""),s.close(),a.focus(),o.detailsField=!1,o.colsvis=!1)})},o.reset_data=function(){o.filteredTodos=[];try{$("#cmb_grade_code").multipleSelect("uncheckAll")}catch(e){}try{$("#cmb_section_code").multipleSelect("uncheckAll")}catch(e){}o.temp.sims_bell_code="",o.report_data_new=[]}}])}(),function(){"use strict";var e=angular.module("sims.module.Student");e.run(["$rootScope","$templateCache",function(e,t){e.$on("$viewContentLoaded",function(){t.removeAll()})}]),e.controller("promote_student_listCont",["$scope","$state","$rootScope","$timeout","gettextCatalog","$http","ENV",function(o,e,t,a,s,n,i){o.temp={},o.detailsField=!0,o.hideprintpdf=!1,o.temp.sims_view_mode=!1,o.pagesize="30",o.pageindex="0",o.pager=!0,o.size=function(e){"All"==e?(o.currentPage="1",o.filteredTodos=o.todos,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,console.log("currentPage="+o.currentPage),o.makeTodos(),o.chk={},o.chk.chk_all=!1,o.row1=""},o.filteredTodos=[],o.currentPage=1,o.numPerPage=30,o.maxSize=100,o.makeTodos=function(){var e,t;"All"==o.pagesize?(o.currentPage=1,o.showPager=!1,o.filteredTodos=o.report_data_new):(e=parseInt(o.totalItems%o.numPerPage),o.pagersize="0"==e?parseInt(o.totalItems/o.numPerPage):parseInt(o.totalItems/o.numPerPage)+1,e=(o.currentPage-1)*o.numPerPage,t=parseInt(e)+parseInt(o.numPerPage),console.log("begin="+e),console.log("end="+t),o.filteredTodos=o.todos.slice(e,t))},n.get(i.apiUrl+"api/common/getCuriculum").then(function(e){o.cur_data=e.data,o.temp.sims_cur_code=o.cur_data[0].sims_cur_code,o.getAcademic_year(o.cur_data[0].sims_cur_code)}),o.getAcademic_year=function(e){n.get(i.apiUrl+"api/common/getAcademicYear?curCode="+e).then(function(e){o.acad_data=e.data,o.temp.sims_academic_year=o.acad_data[0].sims_academic_year,o.getGrade(o.temp.sims_cur_code,o.temp.sims_academic_year)})},o.getGrade=function(e,t){n.get(i.apiUrl+"api/common/getAllGrades?cur_code="+o.temp.sims_cur_code+"&academic_year="+o.temp.sims_academic_year).then(function(e){o.Grade_code=e.data,setTimeout(function(){$("#cmb_grade_code").change(function(){console.log($(this).val())}).multipleSelect({width:"100%"})},1e3)}),o.getSection(o.temp.sims_cur_code,o.temp.sims_academic_year,o.temp.grade_code)},o.getdetails=function(){n.get(i.apiUrl+"api/promotestudlist/getpromotelist?view_mode="+o.temp.sims_view_mode+"&cur_code="+o.temp.sims_cur_code+"&acad_year="+o.temp.sims_academic_year+"&grade_code="+o.temp.sims_grade_code+"§ion_code="+o.temp.sims_section_code).then(function(e){o.report_data=e.data,o.report_data=e.data,o.totalItems=o.report_data.length,o.todos=o.report_data,o.makeTodos()})},o.getSection=function(e,t,a){n.get(i.apiUrl+"api/common/getSectionFromGrade?cur_code="+o.temp.sims_cur_code+"&grade_code="+o.temp.sims_grade_code+"&academic_year="+o.temp.sims_academic_year).then(function(e){o.Section_code=e.data,setTimeout(function(){$("#cmb_section_code").change(function(){console.log($(this).val())}).multipleSelect({width:"100%"})},1e3)})},o.getCircdetail=function(){o.report_data_new=[],o.detailsField=!0,n.get(i.apiUrl+"api/CircularStatusByParent/GetCircularuserstatus?cur_code="+o.temp.sims_cur_code+"&acad_year="+o.temp.sims_academic_year+"&circular_status="+o.temp.sims_status+"&user_group="+o.temp.user_group_code+"&from="+o.from_date+"&to="+o.to_date+"&search="+o.searchParent+"&report_view="+o.temp.show_expire_circular).then(function(e){0"+e+''+t+""),s.close(),a.focus(),o.detailsField=!1,o.colsvis=!1,o.getsubdetail())})},o.reset_data=function(){o.filteredTodos=[];try{$("#cmb_grade_code").multipleSelect("uncheckAll")}catch(e){}try{$("#cmb_section_code").multipleSelect("uncheckAll")}catch(e){}o.temp.sims_bell_code="",o.report_data_new=[]},o.ischeck=function(){o.checklick=function(){var e=document.getElementById("show_unassign");1==e.checked&&e.checked}}}])}(),function(){"use strict";var e=angular.module("sims.module.Student");e.run(["$rootScope","$templateCache",function(e,t){e.$on("$viewContentLoaded",function(){t.removeAll()})}]),e.controller("agewiselistCont",["$scope","$state","$rootScope","$timeout","gettextCatalog","$http","ENV",function(o,e,t,a,s,n,i){o.temp={},o.detailsField=!0,o.hideprintpdf=!1,o.pagesize="30",o.pageindex="0",o.pager=!0,o.size=function(e){"All"==e?(o.currentPage="1",o.filteredTodos=o.todos,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,console.log("currentPage="+o.currentPage),o.makeTodos(),o.chk={},o.chk.chk_all=!1,o.row1=""},o.filteredTodos=[],o.currentPage=1,o.numPerPage=30,o.maxSize=100,o.makeTodos=function(){var e,t;"All"==o.pagesize?(o.currentPage=1,o.showPager=!1,o.filteredTodos=o.report_data_new):(e=parseInt(o.totalItems%o.numPerPage),o.pagersize="0"==e?parseInt(o.totalItems/o.numPerPage):parseInt(o.totalItems/o.numPerPage)+1,e=(o.currentPage-1)*o.numPerPage,t=parseInt(e)+parseInt(o.numPerPage),console.log("begin="+e),console.log("end="+t),o.filteredTodos=o.todos.slice(e,t))},n.get(i.apiUrl+"api/common/getCuriculum").then(function(e){o.cur_data=e.data,o.temp.sims_cur_code=o.cur_data[0].sims_cur_code,o.getAcademic_year(o.cur_data[0].sims_cur_code)}),n.get(i.apiUrl+"api/promotestudlist/getcanceladmissionsummaryView").then(function(e){o.view_mode=e.data}),o.getAcademic_year=function(e){n.get(i.apiUrl+"api/common/getAcademicYear?curCode="+e).then(function(e){o.acad_data=e.data,o.temp.sims_academic_year=o.acad_data[0].sims_academic_year,o.getGrade(o.temp.sims_cur_code,o.temp.sims_academic_year)})},o.getGrade=function(e,t){n.get(i.apiUrl+"api/common/getAllGrades?cur_code="+o.temp.sims_cur_code+"&academic_year="+o.temp.sims_academic_year).then(function(e){o.Grade_code=e.data,setTimeout(function(){$("#cmb_grade_code").change(function(){console.log($(this).val())}).multipleSelect({width:"100%"})},1e3)}),o.getSection(o.temp.sims_cur_code,o.temp.sims_academic_year,o.temp.grade_code)},o.getdetails=function(){n.get(i.apiUrl+"api/promotestudlist/getstudentlistbyage?cur_code="+o.temp.sims_cur_code+"&acad_year="+o.temp.sims_academic_year+"&grade_code="+o.temp.sims_grade_code+"§ion_code="+o.temp.sims_section_code+"&max_age="+o.temp.max_age_value+"&min_age="+o.temp.min_age_value).then(function(e){o.report_data=e.data,o.report_data=e.data,o.totalItems=o.report_data.length,o.todos=o.report_data,o.makeTodos()})},o.getSection=function(e,t,a){n.get(i.apiUrl+"api/common/getSectionFromGrade?cur_code="+o.temp.sims_cur_code+"&grade_code="+o.temp.sims_grade_code+"&academic_year="+o.temp.sims_academic_year).then(function(e){o.Section_code=e.data,setTimeout(function(){$("#cmb_section_code").change(function(){console.log($(this).val())}).multipleSelect({width:"100%"})},1e3)})},o.getCircdetail=function(){o.report_data_new=[],o.detailsField=!0,n.get(i.apiUrl+"api/CircularStatusByParent/GetCircularuserstatus?cur_code="+o.temp.sims_cur_code+"&acad_year="+o.temp.sims_academic_year+"&circular_status="+o.temp.sims_status+"&user_group="+o.temp.user_group_code+"&from="+o.from_date+"&to="+o.to_date+"&search="+o.searchParent+"&report_view="+o.temp.show_expire_circular).then(function(e){0"+e+''+t+""),s.close(),a.focus(),o.detailsField=!1,o.colsvis=!1,o.getsubdetail())})},o.reset_data=function(){o.filteredTodos=[];try{$("#cmb_grade_code").multipleSelect("uncheckAll")}catch(e){}try{$("#cmb_section_code").multipleSelect("uncheckAll")}catch(e){}o.temp.sims_bell_code="",o.report_data_new=[]}}])}(),function(){"use strict";var e=angular.module("sims.module.Gradebook");e.run(["$rootScope","$templateCache",function(e,t){e.$on("$viewContentLoaded",function(){t.removeAll()})}]),e.controller("BulkAssessmentDataDownloadCont",["$scope","$state","$rootScope","$timeout","gettextCatalog","$http","ENV",function(n,e,t,a,s,i,d){n.temp={};var o=(c=new Date).getDate(),r=c.getMonth()+1,c=(c.getFullYear(),n.temp={},n.pagesize="5000",n.pageindex="0",n.pager=!0,n.display=!1,n.dublicate=!1,n.colsvis=!1,n.busy=!1,t.globals.currentUser.username,$(function(){$("#cmb_grade_code").multipleSelect({width:"100%"}),$("#cmb_section_code").multipleSelect({width:"100%"})}),new Date);(o=c.getDate())<10&&(o="0"+o);(r=c.getMonth()+1)<10&&(r="0"+r);var m=c.getFullYear();n.sdate=o+"-"+r+"-"+m,n.edate=o+"-"+r+"-"+m,n.mom_start_date=o+"-"+r+"-"+m,n.mom_end_date=o+"-"+r+"-"+m,$(function(){$("#chkmarks").click(function(){$(this).is(":checked")?($("#fdate").attr("disabled","disabled"),n.mom_start_date=""):($("#fdate").removeAttr("disabled"),$("#fdate").focus(),n.mom_start_date=o+"-"+r+"-"+m)})}),$(function(){$("#chkmarks1").click(function(){$(this).is(":checked")?($("#fdate").attr("disabled","disabled"),n.mom_end_date=""):($("#fdate").removeAttr("disabled"),$("#fdate").focus(),n.mom_end_date=o+"-"+r+"-"+m)})}),n.size=function(e){"All"==e?(n.currentPage="1",n.filteredTodos=n.todos,n.pager=!1):(n.pager=!0,n.pagesize=e,n.currentPage=1,n.numPerPage=e,n.makeTodos())},n.index=function(e){n.pageindex=e,n.currentPage=e,console.log("currentPage="+n.currentPage),n.makeTodos(),n.chk={},n.chk.chk_all=!1,n.row1=""},n.filteredTodos=[],n.currentPage=1,n.numPerPage=5e3,n.maxSize=100,n.makeTodos=function(){var e,t;"All"==n.pagesize?(n.currentPage=1,n.showPager=!1,n.filteredTodos=n.report_data):(e=parseInt(n.totalItems%n.numPerPage),n.pagersize="0"==e?parseInt(n.totalItems/n.numPerPage):parseInt(n.totalItems/n.numPerPage)+1,e=(n.currentPage-1)*n.numPerPage,t=parseInt(e)+parseInt(n.numPerPage),console.log("begin="+e),console.log("end="+t),n.filteredTodos=n.todos.slice(e,t))},i.get(d.apiUrl+"api/BulkAssessmentData/getCuriculum").then(function(e){n.cur_data=e.data,0o&&(s.s.r=o),s.s.c>n&&(s.s.c=n),s.e.r"+e+''+t+""),s.close(),a.focus(),o.detailsField=!1,o.colsvis=!1,o.getsubdetail())})},o.reset_data=function(){o.filteredTodos=[];try{$("#cmb_grade_code").multipleSelect("uncheckAll")}catch(e){}try{$("#cmb_section_code").multipleSelect("uncheckAll")}catch(e){}o.temp.sims_bell_code="",o.report_data_new=[]},o.ischeck=function(){o.checklick=function(){var e=document.getElementById("show_unassign");1==e.checked&&e.checked}}}])}(),function(){"use strict";var e=angular.module("sims.module.Student");e.run(["$rootScope","$templateCache",function(e,t){e.$on("$viewContentLoaded",function(){t.removeAll()})}]),e.controller("ClassTeacherListRptCont",["$scope","$state","$rootScope","$timeout","gettextCatalog","$http","ENV",function(o,e,t,a,s,n,i){o.temp={},o.detailsField=!0,o.hideprintpdf=!1,o.pagesize="30",o.pageindex="0",o.pager=!0,o.size=function(e){"All"==e?(o.currentPage="1",o.filteredTodos=o.todos,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,console.log("currentPage="+o.currentPage),o.makeTodos(),o.chk={},o.chk.chk_all=!1,o.row1=""},o.filteredTodos=[],o.currentPage=1,o.numPerPage=30,o.maxSize=100,o.makeTodos=function(){var e,t;"All"==o.pagesize?(o.currentPage=1,o.showPager=!1,o.filteredTodos=o.report_data_new):(e=parseInt(o.totalItems%o.numPerPage),o.pagersize="0"==e?parseInt(o.totalItems/o.numPerPage):parseInt(o.totalItems/o.numPerPage)+1,e=(o.currentPage-1)*o.numPerPage,t=parseInt(e)+parseInt(o.numPerPage),console.log("begin="+e),console.log("end="+t),o.filteredTodos=o.todos.slice(e,t))},n.get(i.apiUrl+"api/common/getCuriculum").then(function(e){o.cur_data=e.data,o.temp.sims_cur_code=o.cur_data[0].sims_cur_code,o.getAcademic_year(o.cur_data[0].sims_cur_code)}),o.getAcademic_year=function(e){n.get(i.apiUrl+"api/common/getAcademicYear?curCode="+e).then(function(e){o.acad_data=e.data,o.temp.sims_academic_year=o.acad_data[0].sims_academic_year})},n.get(i.apiUrl+"api/promotestudlist/getClassTeacherListRptSubjectStatus").then(function(e){o.subject_status_as=e.data,o.temp.sims_subject_status=o.subject_status_as[0].code}),o.getdetails=function(){n.get(i.apiUrl+"api/promotestudlist/getClassTeacherListRpt?cur_code="+o.temp.sims_cur_code+"&acad_year="+o.temp.sims_academic_year+"&subject_status="+o.temp.sims_subject_status).then(function(e){0"+e+''+t+""),s.close(),a.focus(),o.detailsField=!1,o.colsvis=!1,o.getsubdetail())})},o.reset_data=function(){o.filteredTodos=[];try{$("#cmb_grade_code").multipleSelect("uncheckAll")}catch(e){}try{$("#cmb_section_code").multipleSelect("uncheckAll")}catch(e){}o.temp.sims_bell_code="",o.report_data_new=[]}}])}(),function(){"use strict";var e=angular.module("sims.module.Student");e.run(["$rootScope","$templateCache",function(e,t){e.$on("$viewContentLoaded",function(){t.removeAll()})}]),e.controller("canceladmissionsummarycont",["$scope","$state","$rootScope","$timeout","gettextCatalog","$http","ENV",function(o,e,t,a,s,n,i){o.temp={},o.detailsField=!0,o.hideprintpdf=!1,o.pagesize="30",o.pageindex="0",o.pager=!0,o.size=function(e){"All"==e?(o.currentPage="1",o.filteredTodos=o.todos,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,console.log("currentPage="+o.currentPage),o.makeTodos(),o.chk={},o.chk.chk_all=!1,o.row1=""},o.filteredTodos=[],o.currentPage=1,o.numPerPage=30,o.maxSize=100,o.makeTodos=function(){var e,t;"All"==o.pagesize?(o.currentPage=1,o.showPager=!1,o.filteredTodos=o.report_data_new):(e=parseInt(o.totalItems%o.numPerPage),o.pagersize="0"==e?parseInt(o.totalItems/o.numPerPage):parseInt(o.totalItems/o.numPerPage)+1,e=(o.currentPage-1)*o.numPerPage,t=parseInt(e)+parseInt(o.numPerPage),console.log("begin="+e),console.log("end="+t),o.filteredTodos=o.todos.slice(e,t))},n.get(i.apiUrl+"api/common/getCuriculum").then(function(e){o.cur_data=e.data,o.temp.sims_cur_code=o.cur_data[0].sims_cur_code,o.getAcademic_year(o.cur_data[0].sims_cur_code)}),n.get(i.apiUrl+"api/promotestudlist/getcanceladmissionsummaryView").then(function(e){o.view_mode=e.data,o.temp.comn_appl_parameter=o.view_mode[0].comn_appl_parameter}),o.getAcademic_year=function(e){n.get(i.apiUrl+"api/common/getAcademicYear?curCode="+e).then(function(e){o.acad_data=e.data,o.temp.sims_academic_year=o.acad_data[0].sims_academic_year,o.getGrade(o.temp.sims_cur_code,o.temp.sims_academic_year)})},o.getGrade=function(e,t){n.get(i.apiUrl+"api/common/getAllGrades?cur_code="+o.temp.sims_cur_code+"&academic_year="+o.temp.sims_academic_year).then(function(e){o.Grade_code=e.data,setTimeout(function(){$("#cmb_grade_code").change(function(){console.log($(this).val())}).multipleSelect({width:"100%"})},1e3)}),o.getSection(o.temp.sims_cur_code,o.temp.sims_academic_year,o.temp.grade_code)},o.getdetails=function(){n.get(i.apiUrl+"api/promotestudlist/getcanceladmissionsummary?cur_code="+o.temp.sims_cur_code+"&acad_year="+o.temp.sims_academic_year+"&grade_code="+o.temp.sims_grade_code+"§ion_code="+o.temp.sims_section_code+"&report_view="+o.temp.view_as).then(function(e){o.report_data=e.data,o.report_data=e.data,o.totalItems=o.report_data.length,o.todos=o.report_data,o.makeTodos()})},o.getSection=function(e,t,a){n.get(i.apiUrl+"api/common/getSectionFromGrade?cur_code="+o.temp.sims_cur_code+"&grade_code="+o.temp.sims_grade_code+"&academic_year="+o.temp.sims_academic_year).then(function(e){o.Section_code=e.data,setTimeout(function(){$("#cmb_section_code").change(function(){console.log($(this).val())}).multipleSelect({width:"100%"})},1e3)})},o.getCircdetail=function(){o.report_data_new=[],o.detailsField=!0,n.get(i.apiUrl+"api/CircularStatusByParent/GetCircularuserstatus?cur_code="+o.temp.sims_cur_code+"&acad_year="+o.temp.sims_academic_year+"&circular_status="+o.temp.sims_status+"&user_group="+o.temp.user_group_code+"&from="+o.from_date+"&to="+o.to_date+"&search="+o.searchParent+"&report_view="+o.temp.show_expire_circular).then(function(e){0"+e+''+t+""),s.close(),a.focus(),o.detailsField=!1,o.colsvis=!1,o.getsubdetail())})},o.reset_data=function(){o.filteredTodos=[];try{$("#cmb_grade_code").multipleSelect("uncheckAll")}catch(e){}try{$("#cmb_section_code").multipleSelect("uncheckAll")}catch(e){}o.temp.sims_bell_code="",o.report_data_new=[]},o.ischeck=function(){o.checklick=function(){var e=document.getElementById("show_unassign");1==e.checked&&e.checked}}}])}(),function(){"use strict";var e=angular.module("sims.module.Student");e.run(["$rootScope","$templateCache",function(e,t){e.$on("$viewContentLoaded",function(){t.removeAll()})}]),e.controller("AdmissionListByGradeSectionRptCont",["$scope","$state","$rootScope","$timeout","gettextCatalog","$http","ENV",function(o,e,t,a,s,n,i){o.temp={},o.detailsField=!0,o.hideprintpdf=!1,o.pagesize="30",o.pageindex="0",o.pager=!0,o.size=function(e){"All"==e?(o.currentPage="1",o.filteredTodos=o.todos,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,console.log("currentPage="+o.currentPage),o.makeTodos(),o.chk={},o.chk.chk_all=!1,o.row1=""},o.filteredTodos=[],o.currentPage=1,o.numPerPage=30,o.maxSize=100,o.makeTodos=function(){var e,t;"All"==o.pagesize?(o.currentPage=1,o.showPager=!1,o.filteredTodos=o.report_data_new):(e=parseInt(o.totalItems%o.numPerPage),o.pagersize="0"==e?parseInt(o.totalItems/o.numPerPage):parseInt(o.totalItems/o.numPerPage)+1,e=(o.currentPage-1)*o.numPerPage,t=parseInt(e)+parseInt(o.numPerPage),console.log("begin="+e),console.log("end="+t),o.filteredTodos=o.todos.slice(e,t))},n.get(i.apiUrl+"api/common/getCuriculum").then(function(e){o.cur_data=e.data,o.temp.sims_cur_code=o.cur_data[0].sims_cur_code,o.getAcademic_year(o.cur_data[0].sims_cur_code)}),n.get(i.apiUrl+"api/promotestudlist/getcanceladmissionsummaryView").then(function(e){o.view_mode=e.data}),o.getAcademic_year=function(e){n.get(i.apiUrl+"api/common/getAcademicYear?curCode="+e).then(function(e){o.acad_data=e.data,o.temp.sims_academic_year=o.acad_data[0].sims_academic_year,o.getGrade(o.temp.sims_cur_code,o.temp.sims_academic_year)})},o.getGrade=function(e,t){n.get(i.apiUrl+"api/common/getAllGrades?cur_code="+o.temp.sims_cur_code+"&academic_year="+o.temp.sims_academic_year).then(function(e){o.Grade_code=e.data,setTimeout(function(){$("#cmb_grade_code").change(function(){console.log($(this).val())}).multipleSelect({width:"100%"})},1e3)}),o.getSection(o.temp.sims_cur_code,o.temp.sims_academic_year,o.temp.grade_code)},o.getdetails=function(){n.get(i.apiUrl+"api/promotestudlist/getstudentlistbygradesection?cur_code="+o.temp.sims_cur_code+"&acad_year="+o.temp.sims_academic_year+"&grade_code="+o.temp.sims_grade_code+"§ion_code="+o.temp.sims_section_code).then(function(e){o.report_data=e.data,o.report_data=e.data,o.totalItems=o.report_data.length,o.todos=o.report_data,o.makeTodos()})},o.getSection=function(e,t,a){n.get(i.apiUrl+"api/common/getSectionFromGrade?cur_code="+o.temp.sims_cur_code+"&grade_code="+o.temp.sims_grade_code+"&academic_year="+o.temp.sims_academic_year).then(function(e){o.Section_code=e.data,setTimeout(function(){$("#cmb_section_code").change(function(){console.log($(this).val())}).multipleSelect({width:"100%"})},1e3)})},o.getCircdetail=function(){o.report_data_new=[],o.detailsField=!0,n.get(i.apiUrl+"api/CircularStatusByParent/GetCircularuserstatus?cur_code="+o.temp.sims_cur_code+"&acad_year="+o.temp.sims_academic_year+"&circular_status="+o.temp.sims_status+"&user_group="+o.temp.user_group_code+"&from="+o.from_date+"&to="+o.to_date+"&search="+o.searchParent+"&report_view="+o.temp.show_expire_circular).then(function(e){0"+e+''+t+""),s.close(),a.focus(),o.detailsField=!1,o.colsvis=!1,o.getsubdetail())})},o.reset_data=function(){o.filteredTodos=[];try{$("#cmb_grade_code").multipleSelect("uncheckAll")}catch(e){}try{$("#cmb_section_code").multipleSelect("uncheckAll")}catch(e){}o.temp.sims_bell_code="",o.report_data_new=[]}}])}(),function(){"use strict";var e=angular.module("sims.module.Student");e.run(["$rootScope","$templateCache",function(e,t){e.$on("$viewContentLoaded",function(){t.removeAll()})}]),e.controller("StudentImmigrationDetailsRptCont",["$scope","$state","$rootScope","$timeout","gettextCatalog","$http","ENV",function(o,e,t,a,s,n,i){o.temp={},o.detailsField=!0,o.hideprintpdf=!1,o.pagesize="30",o.pageindex="0",o.pager=!0,o.size=function(e){"All"==e?(o.currentPage="1",o.filteredTodos=o.todos,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,console.log("currentPage="+o.currentPage),o.makeTodos(),o.chk={},o.chk.chk_all=!1,o.row1=""},o.filteredTodos=[],o.currentPage=1,o.numPerPage=30,o.maxSize=100,o.makeTodos=function(){var e,t;"All"==o.pagesize?(o.currentPage=1,o.showPager=!1,o.filteredTodos=o.report_data_new):(e=parseInt(o.totalItems%o.numPerPage),o.pagersize="0"==e?parseInt(o.totalItems/o.numPerPage):parseInt(o.totalItems/o.numPerPage)+1,e=(o.currentPage-1)*o.numPerPage,t=parseInt(e)+parseInt(o.numPerPage),console.log("begin="+e),console.log("end="+t),o.filteredTodos=o.todos.slice(e,t))},n.get(i.apiUrl+"api/common/getCuriculum").then(function(e){o.cur_data=e.data,o.temp.sims_cur_code=o.cur_data[0].sims_cur_code,o.getAcademic_year(o.cur_data[0].sims_cur_code)}),o.getAcademic_year=function(e){n.get(i.apiUrl+"api/common/getAcademicYear?curCode="+e).then(function(e){o.acad_data=e.data,o.temp.sims_academic_year=o.acad_data[0].sims_academic_year,o.getGrade(o.temp.sims_cur_code,o.temp.sims_academic_year)})},o.getGrade=function(e,t){n.get(i.apiUrl+"api/common/getAllGrades?cur_code="+o.temp.sims_cur_code+"&academic_year="+o.temp.sims_academic_year).then(function(e){o.Grade_code=e.data,setTimeout(function(){$("#cmb_grade_code").change(function(){console.log($(this).val())}).multipleSelect({width:"100%"})},1e3)}),o.getSection(o.temp.sims_cur_code,o.temp.sims_academic_year,o.temp.grade_code)},o.getdetails=function(){o.colsvis=!1,n.get(i.apiUrl+"api/promotestudlist/getstudentimmigrationdetails?cur_code="+o.temp.sims_cur_code+"&acad_year="+o.temp.sims_academic_year+"&grade_code="+o.temp.sims_grade_code+"§ion_code="+o.temp.sims_section_code).then(function(e){0"+e+''+t+""),s.close(),a.focus(),o.detailsField=!1,o.colsvis=!1,o.getsubdetail())})},o.reset_data=function(){o.filteredTodos=[];try{$("#cmb_grade_code").multipleSelect("uncheckAll")}catch(e){}try{$("#cmb_section_code").multipleSelect("uncheckAll")}catch(e){}o.temp.sims_bell_code="",o.report_data_new=[]},o.ischeck=function(){o.checklick=function(){var e=document.getElementById("show_student");1==e.checked&&e.checked}}}])}(),function(){"use strict";var m,e=angular.module("sims.module.Student");e.run(["$rootScope","$templateCache",function(e,t){e.$on("$viewContentLoaded",function(){t.removeAll()})}]),e.controller("ConsistancyCheck1Cont",["$scope","$state","$rootScope","$timeout","gettextCatalog","$http","ENV",function(o,e,t,a,s,n,i){o.pagesize="10",o.pageindex="0",o.pager=!0,o.ConsistancyCheck1_data=[];o.user_access=[],o.appcode=e.current.name.split(".");var e=t.globals.currentUser.username,t=(n.get(i.apiUrl+"api/AlertTransaction/Get_user_access_rights?username="+e+"&appl_code="+o.appcode[1]).then(function(e){o.user_rights=e.data;for(var t=0;t"+e+''+t+""),s.close(),a.focus(),o.detailsField=!1,o.colsvis=!1,o.getsubdetail())})},o.reset_data=function(){o.filteredTodos=[];try{$("#cmb_grade_code").multipleSelect("uncheckAll")}catch(e){}try{$("#cmb_section_code").multipleSelect("uncheckAll")}catch(e){}o.temp.sims_bell_code="",o.report_data_new=[]},o.ischeck=function(){o.checklick=function(){var e=document.getElementById("show_unassign");1==e.checked&&e.checked}}}])}(),function(){"use strict";var e=angular.module("sims.module.Student");e.run(["$rootScope","$templateCache",function(e,t){e.$on("$viewContentLoaded",function(){t.removeAll()})}]),e.controller("ClassListTeacherViewLeamsCont",["$scope","$state","$rootScope","$timeout","gettextCatalog","$http","ENV",function(o,e,n,t,a,_,i){o.display=!0,o.table_data=!1;let s=n.globals.currentUser.username;o.flag=!1,"staging1"==_.defaults.headers.common.schoolId||"staging2"==_.defaults.headers.common.schoolId||"staging3"==_.defaults.headers.common.schoolId||"staging4"==_.defaults.headers.common.schoolId||"aisdxb"==_.defaults.headers.common.schoolId||"tiadxb"==_.defaults.headers.common.schoolId||"tiashj"==_.defaults.headers.common.schoolId||"tosdxb"==_.defaults.headers.common.schoolId||"erp"==_.defaults.headers.common.schoolId||"staging"==_.defaults.headers.common.schoolId||"erp-modern"==_.defaults.headers.common.schoolId?o.flag=!0:o.flag=!1,_.get(i.apiUrl+"api/common/getCuriculum").then(function(e){o.temp={},o.cur_data=e.data,o.temp.sims_cur_code=o.cur_data[0].sims_cur_code,o.academic_year()}),o.academic_year=function(){o.grades_data=[],o.aca_year=[],_.get(i.apiUrl+"api/common/getAcademicYear?curCode="+o.temp.sims_cur_code).then(function(e){o.aca_year=e.data,o.temp.sims_academic_year=o.aca_year[0].sims_academic_year,o.get_grades(o.temp.sims_cur_code,o.aca_year[0].sims_academic_year)})},o.get_grades=function(e,t){_.get(i.apiUrl+"api/ClassListTeacherViewLeams/getclasslistgrades?cur="+e+"&a_year="+t+"&username="+s).then(function(e){o.grades_data=e.data})},o.pas_ssection=function(e,t,a){_.get(i.apiUrl+"api/ClassListTeacherViewLeams/getclasslistsection?cur="+e+"&a_year="+t+"&grades="+a+"&username="+s).then(function(e){o.section_data=e.data})},o.colname=null,o.reverse=!1,o.sort=function(e){o.colname=e,o.reverse=o.colname===e&&!o.reverse},o.Fetch=function(e,t,a,s){""!=o.temp.sims_bell_grade_code&&o.temp.sims_bell_grade_code&&""!=o.temp.sims_bell_section_code&&o.temp.sims_bell_section_code?(o.msg1=!1,o.table_data=!1,_.get(i.apiUrl+"api/ClassListTeacherViewLeams/getallData?cur="+e+"&a_year="+t+"&grades="+a+"§ion="+s+"&login_code="+n.globals.currentUser.username).then(function(e){o.get_all_data=e.data})):o.msg1=swal({showCloseButton:!0,text:"Please select School and Section",width:350,showCloseButon:!0})},o.ExportData=function(){swal({title:"",text:"Are you sure you want to Save ClassListTeacherView.xlsx ?",showCloseButton:!0,showCancelButton:!0,confirmButtonText:"Yes",width:390,cancelButtonText:"No"}).then(function(e){e&&alasql('SELECT * INTO XLSX("ClassListTeacherView.xlsx",{headers:true}) FROM HTML("#printdata3",{headers:true,skipdisplaynone:true})')})}}])}(),function(){"use strict";var e=angular.module("sims.module.Student");e.run(["$rootScope","$templateCache",function(e,t){e.$on("$viewContentLoaded",function(){t.removeAll()})}]),e.controller("StudentContactRptCont",["$scope","$state","$rootScope","$timeout","gettextCatalog","$http","ENV",function(o,e,t,a,s,n,i){o.temp={},o.detailsField=!0,o.hideprintpdf=!1,o.pagesize="30",o.pageindex="0",o.pager=!0,o.size=function(e){"All"==e?(o.currentPage="1",o.filteredTodos=o.todos,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,console.log("currentPage="+o.currentPage),o.makeTodos(),o.chk={},o.chk.chk_all=!1,o.row1=""},o.filteredTodos=[],o.currentPage=1,o.numPerPage=30,o.maxSize=100,o.makeTodos=function(){var e,t;"All"==o.pagesize?(o.currentPage=1,o.showPager=!1,o.filteredTodos=o.report_data_new):(e=parseInt(o.totalItems%o.numPerPage),o.pagersize="0"==e?parseInt(o.totalItems/o.numPerPage):parseInt(o.totalItems/o.numPerPage)+1,e=(o.currentPage-1)*o.numPerPage,t=parseInt(e)+parseInt(o.numPerPage),console.log("begin="+e),console.log("end="+t),o.filteredTodos=o.todos.slice(e,t))},n.get(i.apiUrl+"api/common/getCuriculum").then(function(e){o.cur_data=e.data,o.temp.sims_cur_code=o.cur_data[0].sims_cur_code,o.getAcademic_year(o.cur_data[0].sims_cur_code)}),o.getAcademic_year=function(e){n.get(i.apiUrl+"api/common/getAcademicYear?curCode="+e).then(function(e){o.acad_data=e.data,o.temp.sims_academic_year=o.acad_data[0].sims_academic_year,o.getGrade(o.temp.sims_cur_code,o.temp.sims_academic_year)})},o.getGrade=function(e,t){n.get(i.apiUrl+"api/common/getAllGrades?cur_code="+o.temp.sims_cur_code+"&academic_year="+o.temp.sims_academic_year).then(function(e){o.Grade_code=e.data,setTimeout(function(){$("#cmb_grade_code").change(function(){console.log($(this).val())}).multipleSelect({width:"100%"})},1e3)}),o.getSection(o.temp.sims_cur_code,o.temp.sims_academic_year,o.temp.grade_code)},o.getdetails=function(){n.get(i.apiUrl+"api/promotestudlist/getStudentContactReport?cur_code="+o.temp.sims_cur_code+"&acad_year="+o.temp.sims_academic_year+"&grade_code="+o.temp.sims_grade_code+"§ion_code="+o.temp.sims_section_code).then(function(e){0"+e+''+t+""),s.close(),a.focus(),o.detailsField=!1,o.colsvis=!1,o.getdetails())})},o.reset_data=function(){o.filteredTodos=[];try{$("#cmb_grade_code").multipleSelect("uncheckAll")}catch(e){}try{$("#cmb_section_code").multipleSelect("uncheckAll")}catch(e){}o.temp.sims_bell_code="",o.report_data_new=[]},o.ischeck=function(){o.checklick=function(){var e=document.getElementById("show_unassign");1==e.checked&&e.checked}}}])}(),function(){"use strict";var e=angular.module("sims.module.Student");e.run(["$rootScope","$templateCache",function(e,t){e.$on("$viewContentLoaded",function(){t.removeAll()})}]),e.controller("ExamNumMappingByTeacherRptCont",["$scope","$state","$rootScope","$timeout","gettextCatalog","$http","ENV",function(o,e,t,a,s,n,i){o.temp={},o.detailsField=!0,o.hideprintpdf=!1,o.pagesize="30",o.pageindex="0",o.pager=!0,o.size=function(e){"All"==e?(o.currentPage="1",o.filteredTodos=o.todos,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,console.log("currentPage="+o.currentPage),o.makeTodos(),o.chk={},o.chk.chk_all=!1,o.row1=""},o.filteredTodos=[],o.currentPage=1,o.numPerPage=30,o.maxSize=100,o.makeTodos=function(){var e,t;"All"==o.pagesize?(o.currentPage=1,o.showPager=!1,o.filteredTodos=o.report_data_new):(e=parseInt(o.totalItems%o.numPerPage),o.pagersize="0"==e?parseInt(o.totalItems/o.numPerPage):parseInt(o.totalItems/o.numPerPage)+1,e=(o.currentPage-1)*o.numPerPage,t=parseInt(e)+parseInt(o.numPerPage),console.log("begin="+e),console.log("end="+t),o.filteredTodos=o.todos.slice(e,t))},n.get(i.apiUrl+"api/common/getCuriculum").then(function(e){o.cur_data=e.data,o.temp.sims_cur_code=o.cur_data[0].sims_cur_code,o.getAcademic_year(o.cur_data[0].sims_cur_code)}),n.get(i.apiUrl+"api/promotestudlist/getBoardCode").then(function(e){o.BoardCode=e.data,o.temp.board_code=o.BoardCode[0].sims_board_code}),n.get(i.apiUrl+"api/promotestudlist/getExamCode?board_code="+o.temp.board_code).then(function(e){o.ExamCode=e.data,o.temp.exam_code=o.ExamCode[0].sims_board_exam_code,o.getExam(o.ExamCode[0].sims_board_exam_code)}),n.get(i.apiUrl+"api/promotestudlist/getTeacherCode").then(function(e){o.TeacherCode=e.data,o.temp.teacher_code=o.TeacherCode[0].sims_class_teacher_code,setTimeout(function(){$("#teacher").change(function(){console.log($(this).val())}).multipleSelect({width:"100%"})},1e3)}),o.getAcademic_year=function(e){n.get(i.apiUrl+"api/common/getAcademicYear?curCode="+e).then(function(e){o.acad_data=e.data,o.temp.sims_academic_year=o.acad_data[0].sims_academic_year,o.getGrade(o.temp.sims_cur_code,o.temp.sims_academic_year)})},o.getExam=function(e){n.get(i.apiUrl+"api/promotestudlist/getExamCode?board_code="+o.temp.board_code).then(function(e){o.ExamCode=e.data,o.temp.exam_code=o.ExamCode[0].sims_board_exam_code})},o.getdetails=function(){n.get(i.apiUrl+"api/promotestudlist/getStudentMappingByTeacher?cur_code="+o.temp.sims_cur_code+"&acad_year="+o.temp.sims_academic_year+"&board_code="+o.temp.board_code+"&exam_code="+o.temp.exam_code+"&teacher_code="+o.temp.teacher_code).then(function(e){0"+e+''+t+""),s.close(),a.focus(),o.detailsField=!1,o.colsvis=!1,o.getsubdetail())})},o.reset_data=function(){o.filteredTodos=[];try{$("#cmb_grade_code").multipleSelect("uncheckAll")}catch(e){}try{$("#cmb_section_code").multipleSelect("uncheckAll")}catch(e){}o.temp.sims_bell_code="",o.report_data_new=[]},o.ischeck=function(){o.checklick=function(){var e=document.getElementById("show_unassign");1==e.checked&&e.checked}}}])}(),function(){"use strict";var e=angular.module("sims.module.Student");e.run(["$rootScope","$templateCache",function(e,t){e.$on("$viewContentLoaded",function(){t.removeAll()})}]),e.controller("Re-RegisterdStudRptCont",["$scope","$state","$rootScope","$timeout","gettextCatalog","$http","ENV",function(o,e,t,a,s,n,i){o.temp={},o.detailsField=!0,o.hideprintpdf=!1,o.pagesize="30",o.pageindex="0",o.pager=!0,o.size=function(e){"All"==e?(o.currentPage="1",o.filteredTodos=o.todos,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,console.log("currentPage="+o.currentPage),o.makeTodos(),o.chk={},o.chk.chk_all=!1,o.row1=""},o.filteredTodos=[],o.currentPage=1,o.numPerPage=30,o.maxSize=100,o.makeTodos=function(){var e,t;"All"==o.pagesize?(o.currentPage=1,o.showPager=!1,o.filteredTodos=o.report_data_new):(e=parseInt(o.totalItems%o.numPerPage),o.pagersize="0"==e?parseInt(o.totalItems/o.numPerPage):parseInt(o.totalItems/o.numPerPage)+1,e=(o.currentPage-1)*o.numPerPage,t=parseInt(e)+parseInt(o.numPerPage),console.log("begin="+e),console.log("end="+t),o.filteredTodos=o.todos.slice(e,t))},n.get(i.apiUrl+"api/common/getCuriculum").then(function(e){o.cur_data=e.data,o.temp.sims_cur_code=o.cur_data[0].sims_cur_code,o.getAcademic_year(o.cur_data[0].sims_cur_code)}),n.get(i.apiUrl+"api/promotestudlist/getcanceladmissionsummaryView").then(function(e){o.view_mode=e.data,o.temp.comn_appl_parameter=o.view_mode[0].comn_appl_parameter}),o.getAcademic_year=function(e){n.get(i.apiUrl+"api/common/getAcademicYear?curCode="+e).then(function(e){o.acad_data=e.data,o.temp.sims_academic_year=o.acad_data[0].sims_academic_year,o.getGrade(o.temp.sims_cur_code,o.temp.sims_academic_year)})},o.getGrade=function(e,t){n.get(i.apiUrl+"api/common/getAllGrades?cur_code="+o.temp.sims_cur_code+"&academic_year="+o.temp.sims_academic_year).then(function(e){o.Grade_code=e.data,setTimeout(function(){$("#cmb_grade_code").change(function(){console.log($(this).val())}).multipleSelect({width:"100%"})},1e3)}),o.getSection(o.temp.sims_cur_code,o.temp.sims_academic_year,o.temp.grade_code)},o.getdetails=function(){n.get(i.apiUrl+"api/promotestudlist/getReRegisteredReport?cur_code="+o.temp.sims_cur_code+"&acad_year="+o.temp.sims_academic_year+"&grade_code="+o.temp.sims_grade_code+"§ion_code="+o.temp.sims_section_code).then(function(e){o.report_data=e.data,o.report_data=e.data,o.totalItems=o.report_data.length,o.todos=o.report_data,o.makeTodos()})},o.getSection=function(e,t,a){n.get(i.apiUrl+"api/common/getSectionFromGrade?cur_code="+o.temp.sims_cur_code+"&grade_code="+o.temp.sims_grade_code+"&academic_year="+o.temp.sims_academic_year).then(function(e){o.Section_code=e.data,setTimeout(function(){$("#cmb_section_code").change(function(){console.log($(this).val())}).multipleSelect({width:"100%"})},1e3)})},o.getCircdetail=function(){o.report_data_new=[],o.detailsField=!0,n.get(i.apiUrl+"api/CircularStatusByParent/GetCircularuserstatus?cur_code="+o.temp.sims_cur_code+"&acad_year="+o.temp.sims_academic_year+"&circular_status="+o.temp.sims_status+"&user_group="+o.temp.user_group_code+"&from="+o.from_date+"&to="+o.to_date+"&search="+o.searchParent+"&report_view="+o.temp.show_expire_circular).then(function(e){0"+e+''+t+""),s.close(),a.focus(),o.detailsField=!1,o.colsvis=!1,o.getsubdetail())})},o.reset_data=function(){o.filteredTodos=[];try{$("#cmb_grade_code").multipleSelect("uncheckAll")}catch(e){}try{$("#cmb_section_code").multipleSelect("uncheckAll")}catch(e){}o.temp.sims_bell_code="",o.report_data_new=[]},o.ischeck=function(){o.checklick=function(){var e=document.getElementById("show_unassign");1==e.checked&&e.checked}}}])}(),function(){"use strict";var e=angular.module("sims.module.HRMS");e.run(["$rootScope","$templateCache",function(e,t){e.$on("$viewContentLoaded",function(){t.removeAll()})}]),e.controller("EmployeePunchReportCont",["$scope","$state","$rootScope","$timeout","gettextCatalog","$http","ENV",function(o,e,t,a,s,n,i){o.temp={},o.detailsField=!0,o.hideprintpdf=!1,o.pagesize="30",o.pageindex="0",o.pager=!0,o.temp={};var d=(c=new Date).getDate(),r=c.getMonth()+1,c=(c.getFullYear(),o.mom_start_date="",o.mom_end_date="",$(function(){$("#bell_box").multipleSelect({width:"100%"}),$("#teacher_box").multipleSelect({width:"100%",filter:!0})}),new Date);(d=c.getDate())<10&&(d="0"+d);(r=c.getMonth()+1)<10&&(r="0"+r);var m=c.getFullYear();o.sdate=d+"-"+r+"-"+m,o.edate=d+"-"+r+"-"+m,o.mom_start_date=d+"-"+r+"-"+m,o.mom_end_date=d+"-"+r+"-"+m,$(function(){$("#chkmarks").click(function(){$(this).is(":checked")?($("#fdate").attr("disabled","disabled"),o.mom_start_date=""):($("#fdate").removeAttr("disabled"),$("#fdate").focus(),o.mom_start_date=d+"-"+r+"-"+m)})}),1==o.mom_start_date_check?o.mom_start_date="":o.mom_start_date=d+"-"+r+"-"+m,$(function(){$("#chkmarks1").click(function(){$(this).is(":checked")?($("#fdate").attr("disabled","disabled"),o.mom_end_date=""):($("#fdate").removeAttr("disabled"),$("#fdate").focus(),o.mom_end_date=d+"-"+r+"-"+m)})}),1==o.mom_end_date_check?o.mom_end_date="":o.mom_end_date=d+"-"+r+"-"+m,o.size=function(e){"All"==e?(o.currentPage="1",o.filteredTodos=o.todos,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,console.log("currentPage="+o.currentPage),o.makeTodos(),o.chk={},o.chk.chk_all=!1,o.row1=""},o.filteredTodos=[],o.currentPage=1,o.numPerPage=30,o.maxSize=100,o.makeTodos=function(){var e,t;"All"==o.pagesize?(o.currentPage=1,o.showPager=!1,o.filteredTodos=o.report_data_new):(e=parseInt(o.totalItems%o.numPerPage),o.pagersize="0"==e?parseInt(o.totalItems/o.numPerPage):parseInt(o.totalItems/o.numPerPage)+1,e=(o.currentPage-1)*o.numPerPage,t=parseInt(e)+parseInt(o.numPerPage),console.log("begin="+e),console.log("end="+t),o.filteredTodos=o.todos.slice(e,t))},n.get(i.apiUrl+"api/common/getCompanyName").then(function(e){o.CompanyName_Data=e.data}),n.get(i.apiUrl+"api/hrms/getReportFor").then(function(e){o.rpt_as=e.data,o.temp.report_for=o.rpt_as[0].comn_appl_parameter}),o.getdetails=function(){n.get(i.apiUrl+"api/hrms/getEmployeePunchReport?comp_code="+o.temp.company_code+"&show_machine_punch="+o.temp.report_for).then(function(e){o.report_data=e.data,o.report_data=e.data,o.totalItems=o.report_data.length,o.todos=o.report_data,o.makeTodos()})},o.searched=function(e,a){return _.filter(e,function(e){return t=a,-1<(e=e).e_details[0].email_subject.toLowerCase().indexOf(t.toLowerCase())||-1"+e+''+t+""),s.close(),a.focus(),o.detailsField=!1,o.colsvis=!1,o.getsubdetail())})},o.reset_data=function(){o.filteredTodos=[];try{$("#cmb_grade_code").multipleSelect("uncheckAll")}catch(e){}try{$("#cmb_section_code").multipleSelect("uncheckAll")}catch(e){}o.temp.sims_bell_code="",o.report_data_new=[]}}])}(),function(){"use strict";var e=angular.module("sims.module.HRMS");e.run(["$rootScope","$templateCache",function(e,t){e.$on("$viewContentLoaded",function(){t.removeAll()})}]),e.controller("ProbationReportForEmployeeRptCont",["$scope","$state","$rootScope","$timeout","gettextCatalog","$http","ENV",function(o,e,t,a,s,n,i){o.temp={},o.detailsField=!0,o.hideprintpdf=!1,o.pagesize="30",o.pageindex="0",o.pager=!0,o.size=function(e){"All"==e?(o.currentPage="1",o.filteredTodos=o.todos,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,console.log("currentPage="+o.currentPage),o.makeTodos(),o.chk={},o.chk.chk_all=!1,o.row1=""},o.filteredTodos=[],o.currentPage=1,o.numPerPage=30,o.maxSize=100,o.makeTodos=function(){var e,t;"All"==o.pagesize?(o.currentPage=1,o.showPager=!1,o.filteredTodos=o.report_data_new):(e=parseInt(o.totalItems%o.numPerPage),o.pagersize="0"==e?parseInt(o.totalItems/o.numPerPage):parseInt(o.totalItems/o.numPerPage)+1,e=(o.currentPage-1)*o.numPerPage,t=parseInt(e)+parseInt(o.numPerPage),console.log("begin="+e),console.log("end="+t),o.filteredTodos=o.todos.slice(e,t))},n.get(i.apiUrl+"api/common/getCompanyName").then(function(e){o.CompanyName_Data=e.data,o.temp.company_code=o.CompanyName_Data[0].pc_company_code,o.getAcademic_year(1)}),o.getAcademic_year=function(e){n.get(i.apiUrl+"api/common/getAcademicYear?curCode=01").then(function(e){o.acad_data=e.data,o.temp.sims_academic_year=o.acad_data[0].sims_academic_year,o.getGrade(o.temp.sims_cur_code,o.temp.sims_academic_year)})},n.get(i.apiUrl+"api/hrms/getProbationDept?comp_code="+o.temp.company_code).then(function(e){o.dep_as=e.data,o.temp.sims_department=o.dep_as[0].codp_dept_no,setTimeout(function(){$("#dept").change(function(){console.log($(this).val())}).multipleSelect({width:"100%"})},1e3)}),n.get(i.apiUrl+"api/hrms/getProbationDesignation?comp_code="+o.temp.company_code).then(function(e){o.desi_as=e.data,o.temp.sims_designation=o.desi_as[0].dg_code,setTimeout(function(){$("#desi").change(function(){console.log($(this).val())}).multipleSelect({width:"100%"})},1e3)}),o.getdetails=function(){n.get(i.apiUrl+"api/hrms/getProbationReportForEmployee?comp_code="+o.temp.company_code+"&acad_year="+o.temp.sims_academic_year+"&dep_code="+o.temp.sims_department+"&desg_code="+o.temp.sims_designation).then(function(e){0"+e+''+t+""),s.close(),a.focus(),o.detailsField=!1,o.colsvis=!1,o.getsubdetail())})},o.reset_data=function(){o.filteredTodos=[];try{$("#cmb_grade_code").multipleSelect("uncheckAll")}catch(e){}try{$("#cmb_section_code").multipleSelect("uncheckAll")}catch(e){}o.temp.sims_bell_code="",o.report_data_new=[]}}])}(),function(){"use strict";var e=angular.module("sims.module.HRMS");e.run(["$rootScope","$templateCache",function(e,t){e.$on("$viewContentLoaded",function(){t.removeAll()})}]),e.controller("IncrementDueRptCont",["$scope","$state","$rootScope","$timeout","gettextCatalog","$http","ENV",function(o,e,t,a,s,n,i){o.temp={},o.detailsField=!0,o.hideprintpdf=!1,o.pagesize="30",o.pageindex="0",o.pager=!0,o.size=function(e){"All"==e?(o.currentPage="1",o.filteredTodos=o.todos,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,console.log("currentPage="+o.currentPage),o.makeTodos(),o.chk={},o.chk.chk_all=!1,o.row1=""},o.filteredTodos=[],o.currentPage=1,o.numPerPage=30,o.maxSize=100,o.makeTodos=function(){var e,t;"All"==o.pagesize?(o.currentPage=1,o.showPager=!1,o.filteredTodos=o.report_data_new):(e=parseInt(o.totalItems%o.numPerPage),o.pagersize="0"==e?parseInt(o.totalItems/o.numPerPage):parseInt(o.totalItems/o.numPerPage)+1,e=(o.currentPage-1)*o.numPerPage,t=parseInt(e)+parseInt(o.numPerPage),console.log("begin="+e),console.log("end="+t),o.filteredTodos=o.todos.slice(e,t))},n.get(i.apiUrl+"api/common/getCuriculum").then(function(e){o.cur_data=e.data,o.temp.sims_cur_code=o.cur_data[0].sims_cur_code,o.getAcademic_year(o.cur_data[0].sims_cur_code)}),o.getAcademic_year=function(){n.get(i.apiUrl+"api/hrms/getAcadyear").then(function(e){o.acad_data=e.data,o.temp.sims_academic_year=o.acad_data[0].sims_academic_year,o.getGrade(o.temp.sims_cur_code,o.temp.sims_academic_year),n.get(i.apiUrl+"api/hrms/getIncrementDueReportDepartment?&academic_year="+o.temp.sims_academic_year).then(function(e){o.Department_name=e.data,o.temp.sims_dept_name=o.Department_name[0].codp_dept_no,setTimeout(function(){$("#dept").change(function(){console.log($(this).val())}).multipleSelect({width:"100%"})},1e3)})})},o.getGrade=function(){n.get(i.apiUrl+"api/hrms/getgradecode").then(function(e){o.Grade_code=e.data,o.temp.sims_grade_code=o.Grade_code[0].gr_code,setTimeout(function(){$("#cmb_grade_code").change(function(){console.log($(this).val())}).multipleSelect({width:"100%"})},1e3)})},o.getdetails=function(){n.get(i.apiUrl+"api/hrms/getIncrementDueReport?cur_code="+o.temp.sims_cur_code+"&academic_year="+o.temp.sims_academic_year+"&grade_code="+o.temp.sims_grade_code+"&dep="+o.temp.sims_dept_name).then(function(e){0"+e+''+t+""),s.close(),a.focus(),o.detailsField=!1,o.colsvis=!1,o.getsubdetail())})},o.reset_data=function(){o.filteredTodos=[];try{$("#cmb_grade_code").multipleSelect("uncheckAll")}catch(e){}try{$("#cmb_section_code").multipleSelect("uncheckAll")}catch(e){}o.temp.sims_bell_code="",o.report_data_new=[]},o.ischeck=function(){o.checklick=function(){var e=document.getElementById("show_unassign");1==e.checked&&e.checked}}}])}(),function(){"use strict";var e=angular.module("sims.module.Library");e.run(["$rootScope","$templateCache",function(e,t){e.$on("$viewContentLoaded",function(){t.removeAll()})}]),e.controller("AvailableBookStockRptCont",["$scope","$state","$rootScope","$timeout","gettextCatalog","$http","ENV",function(o,e,t,a,s,n,i){o.temp={},o.detailsField=!0,o.hideprintpdf=!1,o.pagesize="30",o.pageindex="0",o.pager=!0,o.size=function(e){"All"==e?(o.currentPage="1",o.filteredTodos=o.todos,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,console.log("currentPage="+o.currentPage),o.makeTodos(),o.chk={},o.chk.chk_all=!1,o.row1=""},o.filteredTodos=[],o.currentPage=1,o.numPerPage=30,o.maxSize=100,o.makeTodos=function(){var e,t;"All"==o.pagesize?(o.currentPage=1,o.showPager=!1,o.filteredTodos=o.report_data_new):(e=parseInt(o.totalItems%o.numPerPage),o.pagersize="0"==e?parseInt(o.totalItems/o.numPerPage):parseInt(o.totalItems/o.numPerPage)+1,e=(o.currentPage-1)*o.numPerPage,t=parseInt(e)+parseInt(o.numPerPage),console.log("begin="+e),console.log("end="+t),o.filteredTodos=o.todos.slice(e,t))},n.get(i.apiUrl+"api/common/getCuriculum").then(function(e){o.cur_data=e.data,o.temp.sims_cur_code=o.cur_data[0].sims_cur_code,o.getAcademic_year(o.cur_data[0].sims_cur_code)}),n.get(i.apiUrl+"api/getLib/getCategory").then(function(e){o.stock=e.data,o.temp.item_category=o.stock[0].sims_library_category_code,setTimeout(function(){$("#IC").change(function(){console.log($(this).val())}).multipleSelect({width:"100%"})},1e3)}),n.get(i.apiUrl+"api/getLib/getSubCategory").then(function(e){o.sub_stock=e.data,o.temp.item_sub_category=o.sub_stock[0].sims_library_subcategory_code,setTimeout(function(){$("#ISC").change(function(){console.log($(this).val())}).multipleSelect({width:"100%"})},1e3)}),o.getdetails=function(){n.get(i.apiUrl+"api/getLib/getAvailableBookStock?cur_code="+o.temp.sims_cur_code+"&item_category="+o.temp.item_category+"&item_subcategory="+o.temp.item_sub_category).then(function(e){o.report_data=e.data,o.report_data=e.data,o.totalItems=o.report_data.length,o.todos=o.report_data,o.makeTodos()})},o.searched=function(e,t){return _.filter(e,function(e){return searchUtil(e,t)})},o.search=function(){o.todos=o.searched(o.studlist,o.searchText),o.totalItems=o.todos.length,o.currentPage="1",""==o.searchText&&(o.todos=o.report_data_new),o.makeTodos()},o.colname=null,o.reverse=!1,o.sort=function(e){o.colname=e,o.reverse=o.colname===e&&!o.reverse},o.colsvis=!1,o.exportData=function(){o.colsvis=!0,swal({title:"Alert",text:"Do you want to Export in MS-Excel?",showCloseButton:!0,showCancelButton:!0,confirmButtonText:"Yes",width:380,cancelButtonText:"No"}).then(function(e){e&&(e=new Blob([document.getElementById("pdf_print").innerHTML],{type:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet;charset=utf-8"}),o.detailsField=!1,saveAs(e,"SubstituteLectureDetailsReport.xls"),o.colsvis=!1,o.getsubdetail())}),o.colsvis=!0},o.print=function(){o.colsvis=!0,swal({title:"Alert",text:"Do you want to Print?",showCloseButton:!0,showCancelButton:!0,confirmButtonText:"Yes",width:380,cancelButtonText:"No"}).then(function(e){var t,a,s;e&&(e=document.head.outerHTML,t=document.getElementById("pdf_print").outerHTML,(s=(a=window.open("","_blank","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")).document).open(),s.write(""+e+''+t+""),s.close(),a.focus(),o.detailsField=!1,o.colsvis=!1,o.getsubdetail())})},o.reset_data=function(){o.filteredTodos=[];try{$("#cmb_grade_code").multipleSelect("uncheckAll")}catch(e){}try{$("#cmb_section_code").multipleSelect("uncheckAll")}catch(e){}o.temp.sims_bell_code="",o.report_data_new=[]},o.ischeck=function(){o.checklick=function(){var e=document.getElementById("show_unassign");1==e.checked&&e.checked}}}])}(),function(){"use strict";var e=angular.module("sims.module.Library");e.run(["$rootScope","$templateCache",function(e,t){e.$on("$viewContentLoaded",function(){t.removeAll()})}]),e.controller("LibMembershipByGradeRptCont",["$scope","$state","$rootScope","$timeout","gettextCatalog","$http","ENV",function(o,e,t,a,s,n,i){o.temp={},o.detailsField=!0,o.hideprintpdf=!1,o.pagesize="30",o.pageindex="0",o.pager=!0,o.size=function(e){"All"==e?(o.currentPage="1",o.filteredTodos=o.todos,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,console.log("currentPage="+o.currentPage),o.makeTodos(),o.chk={},o.chk.chk_all=!1,o.row1=""},o.filteredTodos=[],o.currentPage=1,o.numPerPage=30,o.maxSize=100,o.makeTodos=function(){var e,t;"All"==o.pagesize?(o.currentPage=1,o.showPager=!1,o.filteredTodos=o.report_data_new):(e=parseInt(o.totalItems%o.numPerPage),o.pagersize="0"==e?parseInt(o.totalItems/o.numPerPage):parseInt(o.totalItems/o.numPerPage)+1,e=(o.currentPage-1)*o.numPerPage,t=parseInt(e)+parseInt(o.numPerPage),console.log("begin="+e),console.log("end="+t),o.filteredTodos=o.todos.slice(e,t))},n.get(i.apiUrl+"api/common/getCuriculum").then(function(e){o.cur_data=e.data,o.temp.sims_cur_code=o.cur_data[0].sims_cur_code,o.getAcademic_year(o.cur_data[0].sims_cur_code)}),n.get(i.apiUrl+"api/getLib/getPrivilage").then(function(e){o.lib_prev=e.data,o.temp.sims_privilage=o.lib_prev[0].sims_library_membership_type,setTimeout(function(){$("#prev").change(function(){console.log($(this).val())}).multipleSelect({width:"100%"})},1e3)}),n.get(i.apiUrl+"api/getLib/getMembership").then(function(e){o.membership_status=e.data,o.temp.sims_membership_status=o.membership_status[0].code1}),o.getAcademic_year=function(e){n.get(i.apiUrl+"api/common/getAcademicYear?curCode="+e).then(function(e){o.acad_data=e.data,o.temp.sims_academic_year=o.acad_data[0].sims_academic_year,o.getGrade(o.temp.sims_cur_code,o.temp.sims_academic_year)})},o.getGrade=function(e,t){n.get(i.apiUrl+"api/common/getAllGrades?cur_code="+o.temp.sims_cur_code+"&academic_year="+o.temp.sims_academic_year).then(function(e){o.Grade_code=e.data,setTimeout(function(){$("#cmb_grade_code").change(function(){console.log($(this).val())}).multipleSelect({width:"100%"})},1e3)}),o.getSection(o.temp.sims_cur_code,o.temp.sims_academic_year,o.temp.grade_code)},o.getdetails=function(){n.get(i.apiUrl+"api/getLib/getMembershipByGrade?cur_code="+o.temp.sims_cur_code+"&acad_year="+o.temp.sims_academic_year+"&grade_code="+o.temp.sims_grade_code+"§ion_code="+o.temp.sims_section_code+"&previlige_type="+o.temp.sims_privilage+"&status="+o.temp.sims_membership_status).then(function(e){o.report_data=e.data,o.report_data=e.data,o.totalItems=o.report_data.length,o.todos=o.report_data,o.makeTodos()})},o.getSection=function(e,t,a){n.get(i.apiUrl+"api/common/getSectionFromGrade?cur_code="+o.temp.sims_cur_code+"&grade_code="+o.temp.sims_grade_code+"&academic_year="+o.temp.sims_academic_year).then(function(e){o.Section_code=e.data,setTimeout(function(){$("#cmb_section_code").change(function(){console.log($(this).val())}).multipleSelect({width:"100%"})},1e3)})},o.searched=function(e,t){return _.filter(e,function(e){return searchUtil(e,t)})},o.search=function(){o.todos=o.searched(o.studlist,o.searchText),o.totalItems=o.todos.length,o.currentPage="1",""==o.searchText&&(o.todos=o.report_data_new),o.makeTodos()},o.colname=null,o.reverse=!1,o.sort=function(e){o.colname=e,o.reverse=o.colname===e&&!o.reverse},o.colsvis=!1,o.exportData=function(){o.colsvis=!0,swal({title:"Alert",text:"Do you want to Export in MS-Excel?",showCloseButton:!0,showCancelButton:!0,confirmButtonText:"Yes",width:380,cancelButtonText:"No"}).then(function(e){e&&(e=new Blob([document.getElementById("pdf_print").innerHTML],{type:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet;charset=utf-8"}),o.detailsField=!1,saveAs(e,"SubstituteLectureDetailsReport.xls"),o.colsvis=!1,o.getsubdetail())}),o.colsvis=!0},o.print=function(){o.colsvis=!0,swal({title:"Alert",text:"Do you want to Print?",showCloseButton:!0,showCancelButton:!0,confirmButtonText:"Yes",width:380,cancelButtonText:"No"}).then(function(e){var t,a,s;e&&(e=document.head.outerHTML,t=document.getElementById("pdf_print").outerHTML,(s=(a=window.open("","_blank","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")).document).open(),s.write(""+e+''+t+""),s.close(),a.focus(),o.detailsField=!1,o.colsvis=!1,o.getsubdetail())})},o.reset_data=function(){o.filteredTodos=[];try{$("#cmb_grade_code").multipleSelect("uncheckAll")}catch(e){}try{$("#cmb_section_code").multipleSelect("uncheckAll")}catch(e){}o.temp.sims_bell_code="",o.report_data_new=[]},o.ischeck=function(){o.checklick=function(){var e=document.getElementById("show_unassign");1==e.checked&&e.checked}}}])}(),function(){"use strict";var e=angular.module("sims.module.Library");e.run(["$rootScope","$templateCache",function(e,t){e.$on("$viewContentLoaded",function(){t.removeAll()})}]),e.controller("LibraryItemRptCont",["$scope","$state","$rootScope","$timeout","gettextCatalog","$http","ENV",function(o,e,t,a,s,n,i){o.temp={},o.detailsField=!0,o.hideprintpdf=!1,o.main_div=!1,o.summary_div=!1,o.temp={};var d=(c=new Date).getDate(),r=c.getMonth()+1,c=(c.getFullYear(),o.mom_start_date="",o.mom_end_date="",$(function(){$("#bell_box").multipleSelect({width:"100%"}),$("#teacher_box").multipleSelect({width:"100%",filter:!0})}),new Date);(d=c.getDate())<10&&(d="0"+d);(r=c.getMonth()+1)<10&&(r="0"+r);var m=c.getFullYear();o.sdate=d+"-"+r+"-"+m,o.edate=d+"-"+r+"-"+m,o.mom_start_date=d+"-"+r+"-"+m,o.mom_end_date=d+"-"+r+"-"+m,$(function(){$("#chkmarks").click(function(){$(this).is(":checked")?($("#fdate").attr("disabled","disabled"),o.mom_start_date=""):($("#fdate").removeAttr("disabled"),$("#fdate").focus(),o.mom_start_date=d+"-"+r+"-"+m)})}),1==o.mom_start_date_check?o.mom_start_date="":o.mom_start_date=d+"-"+r+"-"+m,$(function(){$("#chkmarks1").click(function(){$(this).is(":checked")?($("#fdate").attr("disabled","disabled"),o.mom_end_date=""):($("#fdate").removeAttr("disabled"),$("#fdate").focus(),o.mom_end_date=d+"-"+r+"-"+m)})}),1==o.mom_end_date_check?o.mom_end_date="":o.mom_end_date=d+"-"+r+"-"+m,o.pagesize="30",o.pageindex="0",o.pager=!0,o.size=function(e){"All"==e?(o.currentPage="1",o.filteredTodos=o.todos,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,console.log("currentPage="+o.currentPage),o.makeTodos(),o.chk={},o.chk.chk_all=!1,o.row1=""},o.filteredTodos=[],o.currentPage=1,o.numPerPage=30,o.maxSize=100,o.makeTodos=function(){var e,t;"All"==o.pagesize?(o.currentPage=1,o.showPager=!1,o.filteredTodos=o.report_data_new):(e=parseInt(o.totalItems%o.numPerPage),o.pagersize="0"==e?parseInt(o.totalItems/o.numPerPage):parseInt(o.totalItems/o.numPerPage)+1,e=(o.currentPage-1)*o.numPerPage,t=parseInt(e)+parseInt(o.numPerPage),console.log("begin="+e),console.log("end="+t),o.filteredTodos=o.todos.slice(e,t))},n.get(i.apiUrl+"api/common/getCuriculum").then(function(e){o.cur_data=e.data,o.temp.sims_cur_code=o.cur_data[0].sims_cur_code,o.getAcademic_year(o.cur_data[0].sims_cur_code)}),n.get(i.apiUrl+"api/getLib/getCat").then(function(e){o.item_cat=e.data,o.temp.sims_cat=o.item_cat[0].sims_library_category_code,setTimeout(function(){$("#cat").change(function(){console.log($(this).val())}).multipleSelect({width:"100%"})},1e3)}),n.get(i.apiUrl+"api/getLib/getLocation").then(function(e){o.item_loc=e.data,o.temp.sims_loc=o.item_loc[0].sims_library_location_code,setTimeout(function(){$("#loc").change(function(){console.log($(this).val())}).multipleSelect({width:"100%"})},1e3)}),n.get(i.apiUrl+"api/getLib/getStatus?opr").then(function(e){o.item_status=e.data,o.temp.sims_sta=o.item_status[0].sims_appl_parameter,setTimeout(function(){$("#sta").change(function(){console.log($(this).val())}).multipleSelect({width:"100%"})},1e3)}),o.getdetails=function(){1==document.getElementById("summary").checked?n.get(i.apiUrl+"api/getLib/getLibItemSecond?cur_code="+o.temp.sims_cur_code+"&cat_code="+o.temp.sims_cat+"&location="+o.temp.sims_loc+"&book_status="+o.temp.sims_sta).then(function(e){o.report_data_summary=e.data,o.summary_div=!0,o.main_div=!1}):n.get(i.apiUrl+"api/getLib/getLibItem?cur_code="+o.temp.sims_cur_code+"&cat_code="+o.temp.sims_cat+"&location="+o.temp.sims_loc+"&book_status="+o.temp.sims_sta).then(function(e){o.report_data=e.data,o.report_data=e.data,o.totalItems=o.report_data.length,o.todos=o.report_data,o.makeTodos(),o.main_div=!0,o.summary_div=!1})},o.getSection=function(e,t,a){n.get(i.apiUrl+"api/common/getSectionFromGrade?cur_code="+o.temp.sims_cur_code+"&grade_code="+o.temp.sims_grade_code+"&academic_year="+o.temp.sims_academic_year).then(function(e){o.Section_code=e.data,setTimeout(function(){$("#cmb_section_code").change(function(){console.log($(this).val())}).multipleSelect({width:"100%"})},1e3)})},o.getCircdetail=function(){o.report_data_new=[],o.detailsField=!0,n.get(i.apiUrl+"api/CircularStatusByParent/GetCircularuserstatus?cur_code="+o.temp.sims_cur_code+"&acad_year="+o.temp.sims_academic_year+"&circular_status="+o.temp.sims_status+"&user_group="+o.temp.user_group_code+"&from="+o.from_date+"&to="+o.to_date+"&search="+o.searchParent+"&report_view="+o.temp.show_expire_circular).then(function(e){0"+e+''+t+""),s.close(),a.focus(),o.detailsField=!1,o.colsvis=!1,o.getsubdetail())})},o.reset_data=function(){o.filteredTodos=[];try{$("#cmb_grade_code").multipleSelect("uncheckAll")}catch(e){}try{$("#cmb_section_code").multipleSelect("uncheckAll")}catch(e){}o.temp.sims_bell_code="",o.report_data_new=[]},o.ischeck=function(){o.checklick=function(){var e=document.getElementById("summary");1==e.checked&&e.checked}}}])}(),function(){"use strict";var e=angular.module("sims.module.Library");e.run(["$rootScope","$templateCache",function(e,t){e.$on("$viewContentLoaded",function(){t.removeAll()})}]),e.controller("LibTransactionRptCont",["$scope","$state","$rootScope","$timeout","gettextCatalog","$http","ENV",function(o,e,t,a,s,n,i){o.temp={},o.detailsField=!0,o.hideprintpdf=!1,o.pagesize="30",o.pageindex="0",o.pager=!0,o.temp={};var d=(c=new Date).getDate(),r=c.getMonth()+1,c=(c.getFullYear(),o.mom_start_date="",o.mom_end_date="",$(function(){$("#bell_box").multipleSelect({width:"100%"}),$("#teacher_box").multipleSelect({width:"100%",filter:!0})}),new Date);(d=c.getDate())<10&&(d="0"+d);(r=c.getMonth()+1)<10&&(r="0"+r);var m=c.getFullYear();o.sdate=d+"-"+r+"-"+m,o.edate=d+"-"+r+"-"+m,o.mom_start_date=d+"-"+r+"-"+m,o.mom_end_date=d+"-"+r+"-"+m,$(function(){$("#chkmarks").click(function(){$(this).is(":checked")?($("#fdate").attr("disabled","disabled"),o.mom_start_date=""):($("#fdate").removeAttr("disabled"),$("#fdate").focus(),o.mom_start_date=d+"-"+r+"-"+m)})}),1==o.mom_start_date_check?o.mom_start_date="":o.mom_start_date=d+"-"+r+"-"+m,$(function(){$("#chkmarks1").click(function(){$(this).is(":checked")?($("#fdate").attr("disabled","disabled"),o.mom_end_date=""):($("#fdate").removeAttr("disabled"),$("#fdate").focus(),o.mom_end_date=d+"-"+r+"-"+m)})}),1==o.mom_end_date_check?o.mom_end_date="":o.mom_end_date=d+"-"+r+"-"+m,o.size=function(e){"All"==e?(o.currentPage="1",o.filteredTodos=o.todos,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,console.log("currentPage="+o.currentPage),o.makeTodos(),o.chk={},o.chk.chk_all=!1,o.row1=""},o.filteredTodos=[],o.currentPage=1,o.numPerPage=30,o.maxSize=100,o.makeTodos=function(){var e,t;"All"==o.pagesize?(o.currentPage=1,o.showPager=!1,o.filteredTodos=o.report_data_new):(e=parseInt(o.totalItems%o.numPerPage),o.pagersize="0"==e?parseInt(o.totalItems/o.numPerPage):parseInt(o.totalItems/o.numPerPage)+1,e=(o.currentPage-1)*o.numPerPage,t=parseInt(e)+parseInt(o.numPerPage),console.log("begin="+e),console.log("end="+t),o.filteredTodos=o.todos.slice(e,t))},n.get(i.apiUrl+"api/common/getCuriculum").then(function(e){o.cur_data=e.data,o.temp.sims_cur_code=o.cur_data[0].sims_cur_code,o.getAcademic_year(o.cur_data[0].sims_cur_code)}),o.getAcademic_year=function(e){n.get(i.apiUrl+"api/common/getAcademicYear?curCode="+e).then(function(e){o.acad_data=e.data,o.temp.sims_academic_year=o.acad_data[0].sims_academic_year,o.getGrade(o.temp.sims_cur_code,o.temp.sims_academic_year)})},n.get(i.apiUrl+"api/getLib/getLibTransactionCat").then(function(e){o.item_cat=e.data,o.temp.sims_cat=o.item_cat[0].sims_library_category_code,setTimeout(function(){$("#Select1").change(function(){console.log($(this).val())}).multipleSelect({width:"100%"})},1e3)}),n.get(i.apiUrl+"api/getLib/getLibTransactionSubCat").then(function(e){o.item_subcat=e.data,o.temp.sims_subcat=o.item_subcat[0].sims_library_subcategory_code,setTimeout(function(){$("#subcat").change(function(){console.log($(this).val())}).multipleSelect({width:"100%"})},1e3)}),n.get(i.apiUrl+"api/getLib/getLibTransactionUserType").then(function(e){o.item_user_type=e.data,o.temp.sims_user_type=o.item_user_type[0].code}),n.get(i.apiUrl+"api/getLib/getLibTransactionType").then(function(e){o.item_transaction_type=e.data,o.temp.sims_transaction_type=o.item_transaction_type[0].sims_appl_parameter}),o.getGrade=function(e,t){n.get(i.apiUrl+"api/common/getAllGrades?cur_code="+o.temp.sims_cur_code+"&academic_year="+o.temp.sims_academic_year).then(function(e){o.Grade_code=e.data,setTimeout(function(){$("#cmb_grade_code").change(function(){console.log($(this).val())}).multipleSelect({width:"100%"})},1e3)}),o.getSection(o.temp.sims_cur_code,o.temp.sims_academic_year,o.temp.grade_code)},o.getdetails=function(){n.get(i.apiUrl+"api/getLib/getLibTransactionReport?cur_code="+o.temp.sims_cur_code+"&grade_code="+o.temp.sims_grade_code+"§ion="+o.temp.sims_section_code+"&user_type="+o.temp.sims_user_type+"&cat_code="+o.temp.sims_cat+"&sub_cat_code="+o.temp.sims_subcat+"&trns_type="+o.temp.sims_transaction_type+"&from_date="+o.mom_start_date+"&to_date="+o.mom_end_date).then(function(e){o.report_data=e.data,o.report_data=e.data,o.totalItems=o.report_data.length,o.todos=o.report_data,o.makeTodos()})},o.getSection=function(e,t,a){n.get(i.apiUrl+"api/common/getSectionFromGrade?cur_code="+o.temp.sims_cur_code+"&grade_code="+o.temp.sims_grade_code+"&academic_year="+o.temp.sims_academic_year).then(function(e){o.Section_code=e.data,setTimeout(function(){$("#cmb_section_code").change(function(){console.log($(this).val())}).multipleSelect({width:"100%"})},1e3)})},o.searched=function(e,t){return _.filter(e,function(e){return searchUtil(e,t)})},o.search=function(){o.todos=o.searched(o.studlist,o.searchText),o.totalItems=o.todos.length,o.currentPage="1",""==o.searchText&&(o.todos=o.report_data_new),o.makeTodos()},o.colname=null,o.reverse=!1,o.sort=function(e){o.colname=e,o.reverse=o.colname===e&&!o.reverse},o.colsvis=!1,o.exportData=function(){o.colsvis=!0,swal({title:"Alert",text:"Do you want to Export in MS-Excel?",showCloseButton:!0,showCancelButton:!0,confirmButtonText:"Yes",width:380,cancelButtonText:"No"}).then(function(e){e&&(e=new Blob([document.getElementById("pdf_print").innerHTML],{type:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet;charset=utf-8"}),o.detailsField=!1,saveAs(e,"SubstituteLectureDetailsReport.xls"),o.colsvis=!1,o.getsubdetail())}),o.colsvis=!0},o.print=function(){o.colsvis=!0,swal({title:"Alert",text:"Do you want to Print?",showCloseButton:!0,showCancelButton:!0,confirmButtonText:"Yes",width:380,cancelButtonText:"No"}).then(function(e){var t,a,s;e&&(e=document.head.outerHTML,t=document.getElementById("pdf_print").outerHTML,(s=(a=window.open("","_blank","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")).document).open(),s.write(""+e+''+t+""),s.close(),a.focus(),o.detailsField=!1,o.colsvis=!1,o.getsubdetail())})},o.reset_data=function(){try{$("#cmb_grade_code").multipleSelect("uncheckAll")}catch(e){}try{$("#cmb_section_code").multipleSelect("uncheckAll")}catch(e){}o.temp.sims_bell_code="",o.report_data_new=[]},o.ischeck=function(){o.checklick=function(){var e=document.getElementById("show_unassign");1==e.checked&&e.checked}}}])}(),function(){"use strict";var e=angular.module("sims.module.Library");e.run(["$rootScope","$templateCache",function(e,t){e.$on("$viewContentLoaded",function(){t.removeAll()})}]),e.controller("NoIssueBookListByStudentCont",["$scope","$state","$rootScope","$timeout","gettextCatalog","$http","ENV",function(o,e,t,a,s,n,i){o.temp={},o.detailsField=!0,o.hideprintpdf=!1,o.pagesize="30",o.pageindex="0",o.pager=!0,o.temp={};var d=(c=new Date).getDate(),r=c.getMonth()+1,c=(c.getFullYear(),o.mom_start_date="",o.mom_end_date="",$(function(){$("#bell_box").multipleSelect({width:"100%"}),$("#teacher_box").multipleSelect({width:"100%",filter:!0})}),new Date);(d=c.getDate())<10&&(d="0"+d);(r=c.getMonth()+1)<10&&(r="0"+r);var m=c.getFullYear();o.sdate=d+"-"+r+"-"+m,o.edate=d+"-"+r+"-"+m,o.mom_start_date=d+"-"+r+"-"+m,o.mom_end_date=d+"-"+r+"-"+m,$(function(){$("#chkmarks").click(function(){$(this).is(":checked")?($("#fdate").attr("disabled","disabled"),o.mom_start_date=""):($("#fdate").removeAttr("disabled"),$("#fdate").focus(),o.mom_start_date=d+"-"+r+"-"+m)})}),1==o.mom_start_date_check?o.mom_start_date="":o.mom_start_date=d+"-"+r+"-"+m,$(function(){$("#chkmarks1").click(function(){$(this).is(":checked")?($("#fdate").attr("disabled","disabled"),o.mom_end_date=""):($("#fdate").removeAttr("disabled"),$("#fdate").focus(),o.mom_end_date=d+"-"+r+"-"+m)})}),1==o.mom_end_date_check?o.mom_end_date="":o.mom_end_date=d+"-"+r+"-"+m,o.size=function(e){"All"==e?(o.currentPage="1",o.filteredTodos=o.todos,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,console.log("currentPage="+o.currentPage),o.makeTodos(),o.chk={},o.chk.chk_all=!1,o.row1=""},o.filteredTodos=[],o.currentPage=1,o.numPerPage=30,o.maxSize=100,o.makeTodos=function(){var e,t;"All"==o.pagesize?(o.currentPage=1,o.showPager=!1,o.filteredTodos=o.report_data_new):(e=parseInt(o.totalItems%o.numPerPage),o.pagersize="0"==e?parseInt(o.totalItems/o.numPerPage):parseInt(o.totalItems/o.numPerPage)+1,e=(o.currentPage-1)*o.numPerPage,t=parseInt(e)+parseInt(o.numPerPage),console.log("begin="+e),console.log("end="+t),o.filteredTodos=o.todos.slice(e,t))},n.get(i.apiUrl+"api/common/getCuriculum").then(function(e){o.cur_data=e.data,o.temp.sims_cur_code=o.cur_data[0].sims_cur_code,o.getAcademic_year(o.cur_data[0].sims_cur_code)}),o.getAcademic_year=function(e){n.get(i.apiUrl+"api/common/getAcademicYear?curCode="+e).then(function(e){o.acad_data=e.data,o.temp.sims_academic_year=o.acad_data[0].sims_academic_year,o.getGrade(o.temp.sims_cur_code,o.temp.sims_academic_year)})},o.getGrade=function(e,t){n.get(i.apiUrl+"api/common/getAllGrades?cur_code="+o.temp.sims_cur_code+"&academic_year="+o.temp.sims_academic_year).then(function(e){o.Grade_code=e.data,setTimeout(function(){$("#cmb_grade_code").change(function(){console.log($(this).val())}).multipleSelect({width:"100%"})},1e3)}),o.getSection(o.temp.sims_cur_code,o.temp.sims_academic_year,o.temp.grade_code)},o.getdetails=function(){n.get(i.apiUrl+"api/getLib/getNoIssueBook?cur_code="+o.temp.sims_cur_code+"&acad_year="+o.temp.sims_academic_year+"&grade_code="+o.temp.sims_grade_code+"§ion_code="+o.temp.sims_section_code+"&from_date="+o.mom_start_date+"&to_date="+o.mom_end_date).then(function(e){o.report_data=e.data,o.report_data=e.data,o.totalItems=o.report_data.length,o.todos=o.report_data,o.makeTodos()})},o.getSection=function(e,t,a){n.get(i.apiUrl+"api/common/getSectionFromGrade?cur_code="+o.temp.sims_cur_code+"&grade_code="+o.temp.sims_grade_code+"&academic_year="+o.temp.sims_academic_year).then(function(e){o.Section_code=e.data,setTimeout(function(){$("#cmb_section_code").change(function(){console.log($(this).val())}).multipleSelect({width:"100%"})},1e3)})},o.searched=function(e,t){return _.filter(e,function(e){return searchUtil(e,t)})},o.search=function(){o.todos=o.searched(o.studlist,o.searchText),o.totalItems=o.todos.length,o.currentPage="1",""==o.searchText&&(o.todos=o.report_data_new),o.makeTodos()},o.colname=null,o.reverse=!1,o.sort=function(e){o.colname=e,o.reverse=o.colname===e&&!o.reverse},o.colsvis=!1,o.exportData=function(){o.colsvis=!0,swal({title:"Alert",text:"Do you want to Export in MS-Excel?",showCloseButton:!0,showCancelButton:!0,confirmButtonText:"Yes",width:380,cancelButtonText:"No"}).then(function(e){e&&(e=new Blob([document.getElementById("pdf_print").innerHTML],{type:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet;charset=utf-8"}),o.detailsField=!1,saveAs(e,"SubstituteLectureDetailsReport.xls"),o.colsvis=!1,o.getsubdetail())}),o.colsvis=!0},o.print=function(){o.colsvis=!0,swal({title:"Alert",text:"Do you want to Print?",showCloseButton:!0,showCancelButton:!0,confirmButtonText:"Yes",width:380,cancelButtonText:"No"}).then(function(e){var t,a,s;e&&(e=document.head.outerHTML,t=document.getElementById("pdf_print").outerHTML,(s=(a=window.open("","_blank","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")).document).open(),s.write(""+e+''+t+""),s.close(),a.focus(),o.detailsField=!1,o.colsvis=!1,o.getsubdetail())})},o.reset_data=function(){o.filteredTodos=[];try{$("#cmb_grade_code").multipleSelect("uncheckAll")}catch(e){}try{$("#cmb_section_code").multipleSelect("uncheckAll")}catch(e){}o.temp.sims_bell_code="",o.report_data_new=[]},o.ischeck=function(){o.checklick=function(){var e=document.getElementById("show_unassign");1==e.checked&&e.checked}}}])}(),function(){"use strict";var e=angular.module("sims.module.Library");e.run(["$rootScope","$templateCache",function(e,t){e.$on("$viewContentLoaded",function(){t.removeAll()})}]),e.controller("StudentDefaulterListRptCont",["$scope","$state","$rootScope","$timeout","gettextCatalog","$http","ENV",function(o,e,t,a,s,n,i){o.temp={},o.detailsField=!0,o.hideprintpdf=!1,o.des_dept=!1,o.class_d=!0,o.pagesize="30",o.pageindex="0",o.pager=!0,o.showGradeSection=!0,o.temp={},o.mom_start_date="",o.mom_end_date="";var d,r=new Date,c=r.getDate(),m=r.getMonth()+1;r.getFullYear();$(function(){$("#bell_box").multipleSelect({width:"100%"}),$("#teacher_box").multipleSelect({width:"100%",filter:!0})}),r=new Date,(c=r.getDate())<10&&(c="0"+c),(m=r.getMonth()+1)<10&&(m="0"+m),d=r.getFullYear(),o.sdate=c+"-"+m+"-"+d,o.edate=c+"-"+m+"-"+d,o.mom_start_date=c+"-"+m+"-"+d,o.mom_end_date=c+"-"+m+"-"+d,$(function(){$("#chkmarks").click(function(){$(this).is(":checked")?($("#fdate").attr("disabled","disabled"),o.mom_start_date=""):($("#fdate").removeAttr("disabled"),$("#fdate").focus(),o.mom_start_date=c+"-"+m+"-"+d)})}),!0===o.mom_start_date_check?o.mom_start_date="":o.mom_start_date=c+"-"+m+"-"+d,$(function(){$("#chkmarks1").click(function(){$(this).is(":checked")?($("#fdate").attr("disabled","disabled"),o.mom_end_date=""):($("#fdate").removeAttr("disabled"),$("#fdate").focus(),o.mom_end_date=c+"-"+m+"-"+d)})}),!0===o.mom_end_date_check?o.mom_end_date="":o.mom_end_date=c+"-"+m+"-"+d,"ihs"==n.defaults.headers.common.schoolId||"ihsonlineom"==n.defaults.headers.common.schoolId||"mstagingom"==n.defaults.headers.common.schoolId||"ihsonlineag"==n.defaults.headers.common.schoolId?(o.itemnumber=!1,o.bookprice=!0):(o.itemnumber=!0,o.bookprice=!1),o.size=function(e){"All"===e?(o.currentPage="1",o.filteredTodos=o.todos,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(),o.chk={},o.chk.chk_all=!1,o.row1=""},o.filteredTodos=[],o.currentPage=1,o.numPerPage=30,o.maxSize=100,o.makeTodos=function(){var e,t;"All"===o.pagesize?(o.currentPage=1,o.showPager=!1,o.filteredTodos=o.report_data_new):(e=parseInt(o.totalItems%o.numPerPage),o.pagersize="0"===e?parseInt(o.totalItems/o.numPerPage):parseInt(o.totalItems/o.numPerPage)+1,e=(o.currentPage-1)*o.numPerPage,t=parseInt(e)+parseInt(o.numPerPage),o.filteredTodos=o.todos.slice(e,t))},o.setGradeSectionVisibility=function(e){o.showGradeSection="04"===e},n.get(i.apiUrl+"api/common/getCuriculum").then(function(e){o.cur_data=e.data,o.temp.sims_cur_code=o.cur_data[0].sims_cur_code,o.getAcademicYear(o.temp.sims_cur_code)}),o.getAcademicYear=function(t){n.get(i.apiUrl+"api/common/getAcademicYear?curCode="+o.temp.sims_cur_code).then(function(e){o.Acc_year=e.data,o.temp.sims_academic_year=o.Acc_year[0].sims_academic_year,o.getGrade(t,o.temp.sims_academic_year)})},n.get(i.apiUrl+"api/getLib/getDefaultertype").then(function(e){o.sims_type=e.data,o.temp.sims_library_user_group_type=o.sims_type[0].sims_library_user_group_type}),o.getdetails=function(){"03"===o.temp.sims_library_user_group_type?(o.des_dept=!0,o.class_d=!1):("04"===o.temp.sims_library_user_group_type?o.class_d=!0:o.class_d=!1,o.des_dept=!1),n.get(i.apiUrl+"api/getLib/getDefaulterListStudent?cur_code="+o.temp.sims_cur_code+"&from_date="+o.mom_start_date+"&to_date="+o.mom_end_date+"&type="+o.temp.sims_library_user_group_type+"&grade="+o.edt.sims_grade_code+"§ion="+o.edt.sims_section_code).then(function(e){0"+e+''+t+""),s.close(),a.focus(),o.detailsField=!1,o.colsvis=!1,o.getsubdetail())})},o.reset_data=function(){o.filteredTodos=[];try{$("#cmb_grade_code").multipleSelect("uncheckAll")}catch(e){}try{$("#cmb_section_code").multipleSelect("uncheckAll")}catch(e){}o.temp.sims_bell_code="",o.report_data_new=[]},o.ischeck=function(){o.checklick=function(){var e=document.getElementById("show_unassign");!0===e.checked&&e.checked}}}])}(),function(){"use strict";var e=angular.module("sims.module.Library");e.run(["$rootScope","$templateCache",function(e,t){e.$on("$viewContentLoaded",function(){t.removeAll()})}]),e.controller("LibraryTranIHSController",["$scope","$state","$rootScope","$timeout","gettextCatalog","$http","ENV","$location","$anchorScroll",function(_,e,t,a,s,o,n,i,d){$('*[data-datepicker="true"] input[type="text"]').datepicker({todayBtn:!0,orientation:"top left",autoclose:!0,todayHighlight:!0,format:"yyyy-mm-dd"}),$(document).on("touch click",'*[data-datepicker="true"] .add-on',function(e){$('input[type="text"]',$(this).parent()).focus()});function r(){_.hide_error_message=!1,a(r,1e4)}var c;t.globals.currentUser.username,_.edt="",_.isexpanded=!1,_.hide_error_message=!1,_.isshowMemberHis=!1,_.deposit_returned_th=!1,_.sims_date_for=(new Date).getDate()+"-"+((new Date).getMonth()+1)+"-"+(new Date).getFullYear(),_.searchuser_btn=function(){t.visible_parent=!1,t.visible_search_parent=!1,t.visible_stud=!0,t.visible_teacher=!0,t.visible_User=!0,t.visible_Employee=!0,t.chkMulti=!1,_.deposit_returned_td=!1,_.deposit_returned_th=!1,""==_.search_user?(_.global_Search_click(),$("#Global_Search_Modal").modal({backdrop:"static"})):(_.temp_new_books=[],o.get(n.apiUrl+"api/LibTransaction/GetLibraryDetails?Search_Code="+_.search_user).then(function(e){0t?t:e-_.borrowed_items;if(_.temp_new_books.length!=t)for(var a=!1,s=0;s<_.book_search_data.length;s++){for(var a=!1,o=_.book_search_data[s].sims_library_item_accession_number,n=0;n<_.transactions.length;n++)if(o==_.transactions[n].sims_library_item_accession_number){a=!0;break}0==a?(_.book_search="",_.transactions.push(_.book_search_data[s]),_.temp_new_books.push(_.book_search_data[s])):(_.book_search="",_.hide_error_message=!0,_.error_message="Book Details Already Added")}else _.hide_error_message=!0,_.error_message="Allowed limit Exceeded",_.book_search=""}else console.log(_.book_search_data),0==_.book_search_data.length?(_.hide_error_message=!0,_.error_message="Reference Book/Item can not be issued"):(_.hide_error_message=!0,_.error_message="Item Details Not found Or Item Already Issued to User "+_.book_search_data[0].user_detail),_.book_search=""}))},_.book_showFilter=!0,_.book_filter=function(){_.book_showFilter=!_.book_showFilter},_.edtbs={},_.seachOrderKeyPress=function(e){13==e.keyCode&&_.search_books()},_.reset_book_filter=function(){_.edtbs={},_.book_search_data1="",document.getElementById("mainchk").checked=!1},_.CheckOneByOne=function(e){$("input[type='checkbox']").change(function(e){$(this).is(":checked")?$(this).closest("tr").addClass("row_selected"):$(this).closest("tr").removeClass("row_selected")});var t=document.getElementById("mainchk");1==t.checked&&(t.checked=!1)},_.CheckMultiple=function(){for(var e=document.getElementById("mainchk"),t=0;t<_.book_search_data1.length;t++)1==e.checked?(_.book_search_data1[t].items_check_status=!0,$("tr").addClass("row_selected"),_.color="#edefef"):0==e.checked&&($("tr").removeClass("row_selected"),_.color="#edefef",e.checked=!1,_.book_search_data1[t].items_check_status=!1)},_.search_books=function(){document.getElementById("mainchk").checked=!1,o.post(n.apiUrl+"api/LibTransaction/booksearchdetails",_.edtbs).then(function(e){_.book_search_data1=e.data,_.book_search_data1.length<=0&&swal({text:"No books found.",imageUrl:"assets/img/notification-alert.png",width:300,height:200})})},_.temp_new_books=[],_.searchBook=function(){_.reset_book_filter(),$("#booksearch").modal({backdrop:"static",keyboard:!0})},_.addbooktoIssue=function(){console.log(_.book_search_data1),_.selectedBooks=[];for(var e=0;e<_.book_search_data1.length;e++)1==_.book_search_data1[e].items_check_status&&_.selectedBooks.push(_.book_search_data1[e].sims_library_item_number);if(_.selectedBooks.length<=0)swal({text:"Please select at least one book for issue/reissue.",imageUrl:"assets/img/notification-alert.png",width:300,height:200});else{console.log(_.selectedBooks);for(var t=0;t<_.selectedBooks.length;t++)o.get(n.apiUrl+"api/LibTransaction/GetBookSearch?Search_Code="+_.selectedBooks[t]+"&graceDays="+_.userDetails.sims_library_duration+"&seldate="+_.sims_date_for).then(function(e){if(_.book_search_data=e.data,0<_.book_search_data.length){var e=_.user_details.sims_library_borrow_limit,t=_.user_details.sims_library_allowed_limit,t=e-_.borrowed_items>t?t:e-_.borrowed_items;if(_.temp_new_books.length!=t)for(var a=!1,s=0;s<_.book_search_data.length;s++){for(var a=!1,o=_.book_search_data[s].sims_library_item_accession_number,n=0;n<_.transactions.length;n++)if(o==_.transactions[n].sims_library_item_accession_number){a=!0;break}0==a?(_.book_search="",_.transactions.push(_.book_search_data[s]),_.temp_new_books.push(_.book_search_data[s])):(_.book_search="",_.hide_error_message=!0,_.error_message="Book Details Already Added")}else _.hide_error_message=!0,_.error_message="Allowed limit Exceeded"}else _.hide_error_message=!0,_.error_message="Item Details Not found Or Item Already Issue to User Or Reference Book/Item"});$("#booksearch").modal("hide")}},_.date_change=function(e){console.log(_.transactions),console.log(_.transactions),console.log(_.sims_library_duration);for(var t=0;t<_.transactions.length;t++)for(var a=0;a<_.temp_new_books.length;a++)_.transactions[t].sims_library_item_accession_number==_.temp_new_books[a].sims_library_item_accession_number&&(_.transactions[t].sims_library_transaction_date=e,_.temp_new_books[a].sims_library_transaction_date=e)},o.get(n.apiUrl+"api/LibTransaction/getBSCur").then(function(e){_.search_book_cur=e.data}),o.get(n.apiUrl+"api/LibTransaction/booksearchdetails").then(function(e){_.search_book_style=e.data}),o.get(n.apiUrl+"api/LibTransaction/getBSLanguage").then(function(e){_.search_book_lang=e.data}),o.get(n.apiUrl+"api/LibTransaction/getBSCategory").then(function(e){_.search_book_cat=e.data}),_.onCat_chagne=function(){o.get(n.apiUrl+"api/LibTransaction/getBSSubCategory?cat_Code="+_.edtbs.sims_library_item_category).then(function(e){_.search_book_subcat=e.data})},_.temp_new_books=[],_.timeInMs=1e4;a(r,1e4),_.removeNewBooks=function(e){_.transactions.pop(e),_.temp_new_books.pop(e)},_.returnBook=function(e){e.sims_library_transaction_date=_.sims_date_for,console.log(_.info),o.post(n.apiUrl+"api/LibTransaction/BookReturn",e).then(function(e){e.data&&(swal({showCloseButton:!0,text:"Book/Item Returned successfully",imageUrl:"assets/img/check.png",width:350,showCloseButon:!0}),_.fetchTransactions())})},_.reissueBook=function(e){e.sims_library_transaction_date=_.sims_date_for,o.post(n.apiUrl+"api/LibTransaction/BookReIssue?days="+_.userDetails.sims_library_grace_days,e).then(function(e){e.data?(swal({showCloseButton:!0,text:" Book/Item Reissued successfully",imageUrl:"assets/img/check.png",width:350,showCloseButon:!0}),_.fetchTransactions(),_.reset()):(_.hide_error_message=!0,_.error_message="This book is not allowed for Re-Issue.")})},_.issueBooks=function(){_.temp_new_books.length<=0?(_.hide_error_message=!0,_.error_message="There are no New book(s) to Issue"):(_.create_transaction={sims_library_user_number:"",sims_library_transaction_date:"",sims_library_transaction_type:"",sims_library_transaction_remarks:"",sims_library_transaction_total:"",sims_library_transaction_created_by:""},_.create_transaction.sims_library_user_number=_.search_user,_.create_transaction.sims_library_transaction_date=_.sims_date_for,_.create_transaction.sims_library_transaction_type="01".toString(),_.create_transaction.sims_library_transaction_remarks=_.remark,_.create_transaction.sims_library_transaction_created_by=t.globals.currentUser.username,o.post(n.apiUrl+"api/LibTransaction/Insert_NewBooks",_.create_transaction).then(function(e){if(e.data){_.remark="",_.book_search="";var t=e.data;console.log(_.temp_new_books);for(var a=0;a<_.temp_new_books.length;a++)_.temp_new_books[a].sims_library_transaction_number=t,_.temp_new_books[a].sims_library_transaction_line_number=a+1;_.temp_new_books.sims_library_transaction_date=_.sims_date_for,_.temp_new_books[0].sims_library_transaction_remarks=_.create_transaction.sims_library_transaction_remarks,o.post(n.apiUrl+"api/LibTransaction/InsertTransactionDetailsIHS",_.temp_new_books).then(function(e){swal({showCloseButton:!0,text:"Books Issued Successfully. Your Transaction No is :"+_.temp_new_books[0].sims_library_transaction_number,imageUrl:"assets/img/check.png",width:350,showCloseButon:!0}),_.temp_new_books=[],_.reset()})}}))},_.book_history=function(e,t){o.get(n.apiUrl+"api/LibTransaction/GetBookSearchHistoryDetails?Search_Code="+e).then(function(e){$("#MyModal").modal({backdrop:"static",keyboard:!0}),_.history=e.data,_.title=t.sims_library_item_title,_.accession_no=t.sims_library_item_accession_number})},_.win_member_history=function(e){_.isshowMemberHis&&(o.get(n.apiUrl+"api/LibTransaction/GetMemberSearchHistoryDetails?Search_Code="+_.user_number).then(function(e){_.member_history=e.data}),$("#MemberModel").modal({backdrop:"static",keyboard:!0}))},_.reset=function(){_.isshowMemberHis=!1,_.user_details=[],_.temp_new_books=[],_.book_search="",_.search_user="",_.remark="",_.user_details="",_.borrowed_items="",_.allowed_items="",_.user_name="",_.userDetails=[],_.isEnabled=!1,_.transactions=[],_.prev_img="",_.sims_date_for=(new Date).getDate()+"-"+((new Date).getMonth()+1)+"-"+(new Date).getFullYear()},_.return_items=function(){_.return_itemlist=[],_.temp.sims_library_item_accession_number="",_.temp.sims_library_isbn_number="",_.temp.sims_library_item_name="",_.temp.sims_library_item_title="",$("#ReturnBooks").modal({backdrop:"static"})},_.reset_returnbook=function(){_.return_itemlist=[],_.temp={}},_.temp={},_.searchissue_books=function(){"undefined"!=_.temp.sims_library_item_accession_number&&""!=_.temp.sims_library_item_accession_number||(_.temp.sims_library_item_accession_number=null),_.tempnew={},_.tempnew.sims_library_item_accession_number=_.temp.sims_library_item_accession_number,_.tempnew.sims_library_isbn_number=_.temp.sims_library_isbn_number,_.tempnew.sims_student_enroll_number=_.temp.sims_student_enroll_number,_.tempnew.sims_library_item_title=_.temp.sims_library_item_title,_.tempnew.sims_library_item_name=_.temp.sims_library_item_name,_.tempnew.studentname=_.temp.studentname,_.tempnew.sims_library_item_bar_code=_.temp.sims_library_item_bar_code,o.post(n.apiUrl+"api/LibTransaction/UseritemSearch",_.tempnew).then(function(e){_.return_itemlist=e.data,_.return_itemlist.length<=0&&swal({text:"No books found.",imageUrl:"assets/img/notification-alert.png",width:300,height:200})})},_.CheckAllChecked=function(){if(1==(c=document.getElementById("check1")).checked)for(var e=0;e<_.return_itemlist.length;e++)document.getElementById(_.return_itemlist[e].sims_library_transaction_number+_.return_itemlist[e].sims_library_transaction_line_number+e).checked=!0,$("tr").addClass("row_selected");else for(e=0;e<_.return_itemlist.length;e++)document.getElementById(_.return_itemlist[e].sims_library_transaction_number+_.return_itemlist[e].sims_library_transaction_line_number+e).checked=!1,c.checked=!1,_.row1="",$("tr").removeClass("row_selected")},_.checkonebyonedelete=function(){$("input[type='checkbox']").change(function(e){$(this).is(":checked")?$(this).closest("tr").addClass("row_selected"):$(this).closest("tr").removeClass("row_selected"),_.color="#edefef"}),1==(c=document.getElementById("check1")).checked&&(c.checked=!1,_.color="#edefef",_.row1="")},_.returnall_books=function(){for(var e,t=[],a=0;a<_.return_itemlist.length;a++)1==document.getElementById(_.return_itemlist[a].sims_library_transaction_number+_.return_itemlist[a].sims_library_transaction_line_number+a).checked&&(_.flag=!0,e={sims_library_item_number:_.return_itemlist[a].sims_library_item_number,sims_library_transaction_number:_.return_itemlist[a].sims_library_transaction_number,sims_library_transaction_line_number:_.return_itemlist[a].sims_library_transaction_line_number,sims_library_transaction_created_by:_.return_itemlist[a].sims_library_transaction_created_by,sims_library_transaction_remarks:_.return_itemlist[a].sims_library_transaction_remarks},t.push(e));console.log(t),o.post(n.apiUrl+"api/LibTransaction/Returnitem",t).then(function(e){_.msg1=e.data,1==_.msg1?(swal({text:"Items Returned Successfully",imageUrl:"assets/img/check.png",showCloseButton:!0,width:380}),1==(c=document.getElementById("check1")).checked&&(c.checked=!1,_.CheckAllChecked()),$("#ReturnBooks").modal("hide"),_.return_itemlist=[],_.reset()):(swal({text:"Items Not Returned",imageUrl:"assets/img/close.png",showCloseButton:!0,width:380}),c.checked=!1,$("tr").removeClass("row_selected"))})},_.gettype=function(){o.get(n.apiUrl+"api/LibTransaction/GetBookIssueTypebook").then(function(e){_.type=e.data})},_.getYesNo_DepositReturned=function(){o.get(n.apiUrl+"api/LibTransaction/GetDepositReturned").then(function(e){_.depositReturned=e.data})},_.gettype()}])}(),function(){"use strict";var e=angular.module("sims.module.HRMS");e.run(["$rootScope","$templateCache",function(e,t){e.$on("$viewContentLoaded",function(){t.removeAll()})}]),e.controller("DistributionByDesGenRptCont",["$scope","$state","$rootScope","$timeout","gettextCatalog","$http","ENV",function(o,e,t,a,s,n,i){o.temp={},o.detailsField=!0,o.hideprintpdf=!1,o.pagesize="30",o.pageindex="0",o.pager=!0,o.size=function(e){"All"==e?(o.currentPage="1",o.filteredTodos=o.todos,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,console.log("currentPage="+o.currentPage),o.makeTodos(),o.chk={},o.chk.chk_all=!1,o.row1=""},o.filteredTodos=[],o.currentPage=1,o.numPerPage=30,o.maxSize=100,o.makeTodos=function(){var e,t;"All"==o.pagesize?(o.currentPage=1,o.showPager=!1,o.filteredTodos=o.report_data_new):(e=parseInt(o.totalItems%o.numPerPage),o.pagersize="0"==e?parseInt(o.totalItems/o.numPerPage):parseInt(o.totalItems/o.numPerPage)+1,e=(o.currentPage-1)*o.numPerPage,t=parseInt(e)+parseInt(o.numPerPage),console.log("begin="+e),console.log("end="+t),o.filteredTodos=o.todos.slice(e,t))},n.get(i.apiUrl+"api/common/getCuriculum").then(function(e){o.cur_data=e.data,o.temp.sims_cur_code=o.cur_data[0].sims_cur_code,o.getAcademic_year(o.cur_data[0].sims_cur_code)}),o.getAcademic_year=function(e){n.get(i.apiUrl+"api/common/getAcademicYear?curCode="+e).then(function(e){o.acad_data=e.data,o.temp.sims_academic_year=o.acad_data[0].sims_academic_year,o.getGrade(o.temp.sims_cur_code,o.temp.sims_academic_year),o.getSection(o.temp.sims_academic_year,o.temp.grade_code,o.temp.sims_cur_code)})},o.getGrade=function(e,t){n.get(i.apiUrl+"api/common/getAllGrades?cur_code="+o.temp.sims_cur_code+"&academic_year="+o.temp.sims_academic_year).then(function(e){o.Grade_code=e.data,setTimeout(function(){$("#cmb_grade_code").change(function(){console.log($(this).val())}).multipleSelect({width:"100%"})},1e3)}),o.getSection(o.temp.sims_cur_code,o.temp.sims_academic_year,o.temp.grade_code)},o.getdetails=function(){o.colsvis=!1,n.get(i.apiUrl+"api/hrms/getdistributionofstaffbydesignationgender?cur_code=").then(function(e){0"+e+''+t+""),s.close(),a.focus(),o.detailsField=!1,o.colsvis=!1,o.getsubdetail())})},o.reset_data=function(){o.filteredTodos=[];try{$("#cmb_grade_code").multipleSelect("uncheckAll")}catch(e){}try{$("#cmb_section_code").multipleSelect("uncheckAll")}catch(e){}o.temp.sims_bell_code="",o.report_data_new=[]},o.ischeck=function(){o.checklick=function(){var e=document.getElementById("show_student");1==e.checked&&e.checked}}}])}(),function(){"use strict";var e=angular.module("sims.module.HRMS");e.run(["$rootScope","$templateCache",function(e,t){e.$on("$viewContentLoaded",function(){t.removeAll()})}]),e.controller("ImmigrationDocRptCont",["$scope","$state","$rootScope","$timeout","gettextCatalog","$http","ENV",function(o,e,t,a,s,n,i){o.temp={},o.detailsField=!0,o.hideprintpdf=!1,o.pagesize="30",o.pageindex="0",o.pager=!0,o.size=function(e){"All"==e?(o.currentPage="1",o.filteredTodos=o.todos,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,console.log("currentPage="+o.currentPage),o.makeTodos(),o.chk={},o.chk.chk_all=!1,o.row1=""},o.filteredTodos=[],o.currentPage=1,o.numPerPage=30,o.maxSize=100,o.makeTodos=function(){var e,t;"All"==o.pagesize?(o.currentPage=1,o.showPager=!1,o.filteredTodos=o.report_data_new):(e=parseInt(o.totalItems%o.numPerPage),o.pagersize="0"==e?parseInt(o.totalItems/o.numPerPage):parseInt(o.totalItems/o.numPerPage)+1,e=(o.currentPage-1)*o.numPerPage,t=parseInt(e)+parseInt(o.numPerPage),console.log("begin="+e),console.log("end="+t),o.filteredTodos=o.todos.slice(e,t))},n.get(i.apiUrl+"api/common/getCompanyName").then(function(e){o.CompanyName_Data=e.data}),n.get(i.apiUrl+"api/hrms/getImmigrationDept").then(function(e){o.department=e.data,o.temp.department=o.department[0].codp_dept_no,setTimeout(function(){$("#department").change(function(){console.log($(this).val())}).multipleSelect({width:"100%"})},1e3)}),n.get(i.apiUrl+"api/hrms/getImmigrationDoc").then(function(e){o.document=e.data,o.temp.document=o.document[0].comn_appl_parameter,setTimeout(function(){$("#document").change(function(){console.log($(this).val())}).multipleSelect({width:"100%"})},1e3)}),o.getdetails=function(){n.get(i.apiUrl+"api/hrms/getImmigration?comp_code="+o.temp.company_code+"&doc_code="+o.temp.document+"&dept_code="+o.temp.department+"&show_expired="+o.temp.sims_show_expired).then(function(e){o.report_data=e.data,o.report_data=e.data,o.totalItems=o.report_data.length,o.todos=o.report_data,o.makeTodos()})},o.getSection=function(e,t,a){n.get(i.apiUrl+"api/common/getSectionFromGrade?cur_code="+o.temp.sims_cur_code+"&grade_code="+o.temp.sims_grade_code+"&academic_year="+o.temp.sims_academic_year).then(function(e){o.Section_code=e.data,setTimeout(function(){$("#cmb_section_code").change(function(){console.log($(this).val())}).multipleSelect({width:"100%"})},1e3)})},o.getCircdetail=function(){o.report_data_new=[],o.detailsField=!0,n.get(i.apiUrl+"api/CircularStatusByParent/GetCircularuserstatus?cur_code="+o.temp.sims_cur_code+"&acad_year="+o.temp.sims_academic_year+"&circular_status="+o.temp.sims_status+"&user_group="+o.temp.user_group_code+"&from="+o.from_date+"&to="+o.to_date+"&search="+o.searchParent+"&report_view="+o.temp.show_expire_circular).then(function(e){0"+e+''+t+""),s.close(),a.focus(),o.detailsField=!1,o.colsvis=!1,o.getsubdetail())})},o.reset_data=function(){o.filteredTodos=[];try{$("#cmb_grade_code").multipleSelect("uncheckAll")}catch(e){}try{$("#cmb_section_code").multipleSelect("uncheckAll")}catch(e){}o.temp.sims_bell_code="",o.report_data_new=[]},o.ischeck=function(){o.checklick=function(){var e=document.getElementById("show_expired");1==e.checked&&e.checked}}}])}(),function(){"use strict";var e=angular.module("sims.module.HRMS");e.run(["$rootScope","$templateCache",function(e,t){e.$on("$viewContentLoaded",function(){t.removeAll()})}]),e.controller("EmpListRptCont",["$scope","$state","$rootScope","$timeout","gettextCatalog","$http","ENV",function(o,e,t,a,s,n,i){o.temp={},o.detailsField=!0,o.hideprintpdf=!1,o.main_div=!1,o.summary_div=!1,o.pagesize="30",o.pageindex="0",o.pager=!0,o.size=function(e){"All"==e?(o.currentPage="1",o.filteredTodos=o.todos,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,console.log("currentPage="+o.currentPage),o.makeTodos(),o.chk={},o.chk.chk_all=!1,o.row1=""},o.filteredTodos=[],o.currentPage=1,o.numPerPage=30,o.maxSize=100,o.makeTodos=function(){var e,t;"All"==o.pagesize?(o.currentPage=1,o.showPager=!1,o.filteredTodos=o.report_data_new):(e=parseInt(o.totalItems%o.numPerPage),o.pagersize="0"==e?parseInt(o.totalItems/o.numPerPage):parseInt(o.totalItems/o.numPerPage)+1,e=(o.currentPage-1)*o.numPerPage,t=parseInt(e)+parseInt(o.numPerPage),console.log("begin="+e),console.log("end="+t),o.filteredTodos=o.todos.slice(e,t))},n.get(i.apiUrl+"api/common/getCompanyName").then(function(e){o.CompanyName_Data=e.data,o.temp.company_code=o.CompanyName_Data[0].pc_company_code,n.get(i.apiUrl+"api/hrms/getDesignation?comp_code="+o.temp.company_code).then(function(e){o.designation=e.data,o.temp.designation=o.designation[0].dg_code,setTimeout(function(){$("#designation").change(function(){console.log($(this).val())}).multipleSelect({width:"100%"})},1e3)}),n.get(i.apiUrl+"api/hrms/getEmpDept?comp_code="+o.temp.company_code).then(function(e){o.department=e.data,o.temp.department=o.department[0].codp_dept_no,setTimeout(function(){$("#department").change(function(){console.log($(this).val())}).multipleSelect({width:"100%"})},1e3)})}),n.get(i.apiUrl+"api/hrms/getStaffService?opr=W").then(function(e){o.staff=e.data,o.temp.staff=o.staff[0].sims_appl_parameter,setTimeout(function(){$("#staff").change(function(){console.log($(this).val())}).multipleSelect({width:"100%"})},1e3)}),n.get(i.apiUrl+"api/hrms/getStaffService?opr=X").then(function(e){o.service=e.data,o.temp.service=o.service[0].sims_appl_parameter,setTimeout(function(){$("#service").change(function(){console.log($(this).val())}).multipleSelect({width:"100%"})},1e3)}),o.getdetails=function(){1==document.getElementById("summary").checked?n.get(i.apiUrl+"api/hrms/getEmpListSecond?comp_code="+o.temp.company_code+"&dept_code="+o.temp.department+"&designation_code="+o.temp.designation+"&staff_type="+o.temp.staff+"&service_status="+o.temp.service).then(function(e){o.report_data_summary=e.data,o.summary_div=!0,o.main_div=!1}):n.get(i.apiUrl+"api/hrms/getEmpList?comp_code="+o.temp.company_code+"&dept_code="+o.temp.department+"&designation_code="+o.temp.designation+"&staff_type="+o.temp.staff+"&service_status="+o.temp.service).then(function(e){o.report_data=e.data,o.report_data=e.data,o.totalItems=o.report_data.length,o.todos=o.report_data,o.makeTodos(),o.main_div=!0,o.summary_div=!1})},o.getSection=function(e,t,a){n.get(i.apiUrl+"api/common/getSectionFromGrade?cur_code="+o.temp.sims_cur_code+"&grade_code="+o.temp.sims_grade_code+"&academic_year="+o.temp.sims_academic_year).then(function(e){o.Section_code=e.data,setTimeout(function(){$("#cmb_section_code").change(function(){console.log($(this).val())}).multipleSelect({width:"100%"})},1e3)})},o.getCircdetail=function(){o.report_data_new=[],o.detailsField=!0,n.get(i.apiUrl+"api/CircularStatusByParent/GetCircularuserstatus?cur_code="+o.temp.sims_cur_code+"&acad_year="+o.temp.sims_academic_year+"&circular_status="+o.temp.sims_status+"&user_group="+o.temp.user_group_code+"&from="+o.from_date+"&to="+o.to_date+"&search="+o.searchParent+"&report_view="+o.temp.show_expire_circular).then(function(e){0"+e+''+t+""),s.close(),a.focus(),o.detailsField=!1,o.colsvis=!1,o.getsubdetail())})},o.reset_data=function(){o.filteredTodos=[];try{$("#cmb_grade_code").multipleSelect("uncheckAll")}catch(e){}try{$("#cmb_section_code").multipleSelect("uncheckAll")}catch(e){}o.temp.sims_bell_code="",o.report_data_new=[]},o.ischeck=function(){o.checklick=function(){var e=document.getElementById("summary");1==e.checked&&e.checked}}}])}(),function(){"use strict";var e=angular.module("sims.module.HRMS");e.controller("EmployeeMaster_ABQISCont",["$scope","$state","$rootScope","$timeout","gettextCatalog","$http","ENV",function(i,e,t,a,s,o,n){i.imageUrl=n.docUrl+o.defaults.headers.common.schoolId+"/Images/EmployeeImages/",i.imageUrl_public=n.docUrl+o.defaults.headers.common.schoolId,i.edt={},i.temp={},o.get(n.apiUrl+"api/HRMS/emp/getEmpMasterData").then(function(e){i.empstat=!0,i.obj=e.data,i.operation=!0,i.Save_btn=!0,i.Update_btn=!1,i.display=!0,i.roleList=!0,i.temp.em_Company_Code=i.obj[0].em_Company_Code,i.temp.em_service_status_code="V"}),i.searchEmp=function(e){13==e.keyCode&&i.EmpSearch1(i.temp.enroll_number1)},i.showAgreementDetails=!0,i.uae=!1,i.oman=!1,i.qatar=!0,i.slisLabel=!1,i.india=!1,i.updateBtn=!1,i.saveBtn=!1,i.temp.pays_hobbies_code=[],$(document).ready(function(){$("#DOB").kendoDatePicker({format:"dd-MM-yyyy"}),$("#DOB").data("kendoDatePicker").enable(!0)}),i.globalSrch=function(){t.visible_stud=!1,t.visible_parent=!1,t.visible_search_parent=!1,t.visible_teacher=!1,t.visible_User=!1,t.visible_Employee=!0,t.chkMulti=!1,i.global_Search_click(),$("#Global_Search_Modal").modal({backdrop:"static"}),i.showBtn=!1},i.$on("global_cancel",function(e){0"+e+''+t+""),s.close(),a.focus(),o.detailsField=!1,o.colsvis=!1,o.getsubdetail())})},o.reset_data=function(){o.filteredTodos=[];try{$("#cmb_grade_code").multipleSelect("uncheckAll")}catch(e){}try{$("#cmb_section_code").multipleSelect("uncheckAll")}catch(e){}o.temp.sims_bell_code="",o.report_data_new=[]},o.ischeck=function(){o.checklick=function(){var e=document.getElementById("show_student");1==e.checked&&e.checked}}}])}(),function(){"use strict";var e=angular.module("sims.module.HRMS");e.run(["$rootScope","$templateCache",function(e,t){e.$on("$viewContentLoaded",function(){t.removeAll()})}]),e.controller("StaffStrengthRptCont",["$scope","$state","$rootScope","$timeout","gettextCatalog","$http","ENV",function(o,e,t,a,s,n,i){o.temp={},o.detailsField=!0,o.hideprintpdf=!1,o.pagesize="30",o.pageindex="0",o.pager=!0,o.size=function(e){"All"==e?(o.currentPage="1",o.filteredTodos=o.todos,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,console.log("currentPage="+o.currentPage),o.makeTodos(),o.chk={},o.chk.chk_all=!1,o.row1=""},o.filteredTodos=[],o.currentPage=1,o.numPerPage=30,o.maxSize=100,o.makeTodos=function(){var e,t;"All"==o.pagesize?(o.currentPage=1,o.showPager=!1,o.filteredTodos=o.report_data_new):(e=parseInt(o.totalItems%o.numPerPage),o.pagersize="0"==e?parseInt(o.totalItems/o.numPerPage):parseInt(o.totalItems/o.numPerPage)+1,e=(o.currentPage-1)*o.numPerPage,t=parseInt(e)+parseInt(o.numPerPage),console.log("begin="+e),console.log("end="+t),o.filteredTodos=o.todos.slice(e,t))},n.get(i.apiUrl+"api/common/getCompanyName").then(function(e){o.CompanyName_Data=e.data,o.temp.company_code=o.CompanyName_Data[0].pc_company_code}),n.get(i.apiUrl+"api/hrms/getReportParam").then(function(e){o.strength=e.data,o.temp.sims_strength=o.strength[0].sims_appl_parameter,setTimeout(function(){$("#strength").change(function(){console.log($(this).val())}).multipleSelect({width:"100%"})},1e3)}),o.getdetails=function(){o.colsvis=!1,n.get(i.apiUrl+"api/hrms/getStrength?comp_code="+o.temp.company_code+"&em_staff_type="+o.temp.sims_strength).then(function(e){0"+e+''+t+""),s.close(),a.focus(),o.detailsField=!1,o.colsvis=!1,o.getsubdetail())})},o.reset_data=function(){o.filteredTodos=[];try{$("#cmb_grade_code").multipleSelect("uncheckAll")}catch(e){}try{$("#cmb_section_code").multipleSelect("uncheckAll")}catch(e){}o.temp.sims_bell_code="",o.report_data_new=[]}}])}(),function(){"use strict";angular.module("sims.module.TimeTable").controller("StaffTimeTableCont",["$scope","$state","$rootScope","$timeout","gettextCatalog","$filter","$http","ENV",function(a,e,t,s,o,n,_,i){a.getcur=function(){_.get(i.apiUrl+"api/common/getCuriculum").then(function(e){a.curriculum=e.data,a.edt={sims_cur_code:a.curriculum[0].sims_cur_code},a.getAccYear(a.edt.sims_cur_code)})},a.getcur(),a.getAccYear=function(e){_.get(i.apiUrl+"api/common/getAcademicYear?curCode="+e).then(function(e){a.Acc_year=e.data,a.temp={sims_academic_year:a.Acc_year[0].sims_academic_year},a.getGrade()})},a.getGrade=function(){_.get(i.apiUrl+"api/VacancyMst/getAllGrades?cur_code="+a.edt.sims_cur_code+"&ac_year="+a.temp.sims_academic_year+"&log_code="+t.globals.currentUser.username).then(function(e){a.Grade_code=e.data})},a.getSection=function(){_.get(i.apiUrl+"api/VacancyMst/getSectionFromGrade?cur_code="+a.edt.sims_cur_code+"&ac_year="+a.temp.sims_academic_year+"&grade_code="+a.edt.sims_grade_code+"&log_code="+t.globals.currentUser.username).then(function(e){a.Section_code=e.data})},a.Search=function(){null!=a.edt.sims_grade_code?null!=a.edt.sims_section_code?_.get(i.apiUrl+"api/VacancyMst/gettimetable?cur_code="+a.edt.sims_cur_code+"&ac_year="+a.temp.sims_academic_year+"&grade_code="+a.edt.sims_grade_code+"§ion_code="+a.edt.sims_section_code+"&log_code="+t.globals.currentUser.username).then(function(t){0"+e+''+t+""),s.close(),a.focus(),o.detailsField=!1,o.colsvis=!1,o.getsubdetail())})},o.reset_data=function(){o.filteredTodos=[];try{$("#cmb_grade_code").multipleSelect("uncheckAll")}catch(e){}try{$("#cmb_section_code").multipleSelect("uncheckAll")}catch(e){}o.temp.sims_bell_code="",o.report_data_new=[]}}])}(),function(){"use strict";var e=angular.module("sims.module.Common");e.run(["$rootScope","$templateCache",function(e,t){e.$on("$viewContentLoaded",function(){t.removeAll()})}]),e.controller("AirFareReportCont",["$scope","$state","$rootScope","$timeout","gettextCatalog","$http","ENV",function(o,e,t,a,s,n,i){o.temp={},o.detailsField=!0,o.hideprintpdf=!1,o.pagesize="30",o.pageindex="0",o.pager=!0,o.size=function(e){"All"==e?(o.currentPage="1",o.filteredTodos=o.todos,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,console.log("currentPage="+o.currentPage),o.makeTodos(),o.chk={},o.chk.chk_all=!1,o.row1=""},o.filteredTodos=[],o.currentPage=1,o.numPerPage=30,o.maxSize=100,o.makeTodos=function(){var e,t;"All"==o.pagesize?(o.currentPage=1,o.showPager=!1,o.filteredTodos=o.report_data_new):(e=parseInt(o.totalItems%o.numPerPage),o.pagersize="0"==e?parseInt(o.totalItems/o.numPerPage):parseInt(o.totalItems/o.numPerPage)+1,e=(o.currentPage-1)*o.numPerPage,t=parseInt(e)+parseInt(o.numPerPage),console.log("begin="+e),console.log("end="+t),o.filteredTodos=o.todos.slice(e,t))},n.get(i.apiUrl+"api/common/getCompanyName").then(function(e){o.CompanyName_Data=e.data,o.temp.company_code=o.CompanyName_Data[0].pc_company_code}),n.get(i.apiUrl+"api/payroll/getAirFareReportYear").then(function(e){o.year_as=e.data,o.temp.sims_acad_year=o.year_as[0].sims_academic_year,n.get(i.apiUrl+"api/payroll/getAirFareReportMonth?year="+o.temp.sims_acad_year).then(function(e){o.month_as=e.data,o.temp.sims_month=o.month_as[0].paysheet_month})}),o.getdetails=function(){o.total_unit_rate=0,n.get(i.apiUrl+"api/payroll/getAirFareReport?company_code="+o.temp.company_code+"&year="+o.temp.sims_acad_year+"&month="+o.temp.sims_month).then(function(e){if(0"+e+''+t+""),s.close(),a.focus(),o.detailsField=!1,o.colsvis=!1,o.getsubdetail())})},o.reset_data=function(){o.filteredTodos=[];try{$("#cmb_grade_code").multipleSelect("uncheckAll")}catch(e){}try{$("#cmb_section_code").multipleSelect("uncheckAll")}catch(e){}o.temp.sims_bell_code="",o.report_data_new=[]}}])}(),function(){"use strict";var e=angular.module("sims.module.Fleet");e.run(["$rootScope","$templateCache",function(e,t){e.$on("$viewContentLoaded",function(){t.removeAll()})}]),e.controller("StopByRouteRptCont",["$scope","$state","$rootScope","$timeout","gettextCatalog","$http","ENV",function(o,e,t,a,s,n,i){o.temp={},o.detailsField=!0,o.hideprintpdf=!1,o.pagesize="30",o.pageindex="0",o.pager=!0,o.size=function(e){"All"===e?(o.currentPage="1",o.filteredTodos=o.todos,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(),o.chk={},o.chk.chk_all=!1,o.row1=""},o.filteredTodos=[],o.currentPage=1,o.numPerPage=30,o.maxSize=100,o.makeTodos=function(){var e,t;"All"===o.pagesize?(o.currentPage=1,o.showPager=!1,o.filteredTodos=o.report_data_new):(e=parseInt(o.totalItems%o.numPerPage),o.pagersize="0"===e?parseInt(o.totalItems/o.numPerPage):parseInt(o.totalItems/o.numPerPage)+1,e=(o.currentPage-1)*o.numPerPage,t=parseInt(e)+parseInt(o.numPerPage),o.filteredTodos=o.todos.slice(e,t))},n.get(i.apiUrl+"api/common/getCuriculum").then(function(e){o.cur_data=e.data,o.temp.sims_cur_code=o.cur_data[0].sims_cur_code,o.getAcademic_year(o.cur_data[0].sims_cur_code)}),n.get(i.apiUrl+"api/getFleet/getDirection").then(function(e){o.route_direction=e.data,o.temp.direction_as=o.route_direction[0].sims_transport_route_direction,setTimeout(function(){$("#direction_stop").change(function(){}).multipleSelect({width:"100%"})},1e3)}),n.get(i.apiUrl+"api/getFleet/getStatus").then(function(e){o.status_stop=e.data,o.temp.sims_status=o.status_stop[0].comn_appl_parameter}),n.get(i.apiUrl+"api/getFleet/getGenrelReport").then(function(e){o.report_stop=e.data,o.temp.sims_generate_report=o.report_stop[0].comn_appl_parameter}),o.getAcademic_year=function(e){n.get(i.apiUrl+"api/common/getAcademicYear?curCode="+e).then(function(e){o.acad_data=e.data,o.temp.sims_academic_year=o.acad_data[0].sims_academic_year,n.get(i.apiUrl+"api/getFleet/getRoute?acad_year="+o.temp.sims_academic_year).then(function(e){o.route_stop=e.data,o.temp.route_as=o.route_stop[0].sims_transport_route_code,setTimeout(function(){$("#route_id").change(function(){}).multipleSelect({width:"100%"})},1e3)}),o.getGrade(o.temp.sims_cur_code,o.temp.sims_academic_year)})},o.getdetails=function(){n.get(i.apiUrl+"api/getFleet/getStopByRoute?&acad_year="+o.temp.sims_academic_year+"&route_direction="+o.temp.direction_as+"&route_code="+o.temp.route_as).then(function(e){0"+e+''+t+""),s.close(),a.focus(),o.detailsField=!1,o.colsvis=!1,o.getsubdetail())})},o.reset_data=function(){o.filteredTodos=[];try{$("#cmb_grade_code").multipleSelect("uncheckAll")}catch(e){}try{$("#cmb_section_code").multipleSelect("uncheckAll")}catch(e){}o.temp.sims_bell_code="",o.report_data_new=[]},o.ischeck=function(){o.checklick=function(){var e=document.getElementById("show_unassign");!0===e.checked&&(e.checked=!1)}}}])}(),function(){"use strict";angular.module("sims.module.Fleet").controller("TransportAttendanceDashboardCont",["$scope","$state","$rootScope","$timeout","gettextCatalog","$http","ENV","AuthenticationService",function(o,e,t,s,a,n,i,d){o.display=!0,o.alternative=!1,o.main=!0,o.temp={},o.temp1={},o.pagesize="10",o.pageindex="0",o.pager=!0,o.grid=!1,o.busy=!1;var r=new Date;let c=("0"+r.getDate()).slice(-2)+"-"+("0"+(r.getMonth()+1)).slice(-2)+"-"+r.getFullYear();o.temp.sims_transport_date=c;n.post(i.apiUrl+"api/TransportAttendanceDashboard/ShowDropdwnDatatransport",{opr:"C"}).then(function(e){o.curiculums=e.data.table,o.temp.sims_cur_code=o.curiculums[0].sims_cur_code,o.academicYear(o.temp.sims_cur_code)}),n.post(i.apiUrl+"api/TransportAttendanceDashboard/Transportfeedetails",{opr:"TD"}).then(function(e){o.decimalcur=e.data.table,o.curdecimal=o.decimalcur[0].decimal}),o.academicYear=function(e){n.get(i.apiUrl+"api/TransportAttendanceDashboard/getAcademicYear?curcode="+e).then(function(e){o.academics=e.data,o.temp={sims_cur_code:o.academics[0].sims_cur_code,sims_academic_year:o.academics[0].sims_academic_year,sims_transport_date:c},o.getRoutes(o.temp.sims_academic_year)})},o.getRoutes=function(){n.get(i.apiUrl+"api/TransportAttendanceDashboard/getRoute?sims_academic_year="+o.temp.sims_academic_year).then(function(e){o.routelist=e.data,setTimeout(function(){$("#cmb_route").change(function(){}).multipleSelect({width:"100%"})},1e3)})},o.academicChange=function(){for(let e=0;o.academics.length>e;e++)o.academics[e].sims_academic_year===o.temp.sims_transport_academic_year&&(o.sims_transport_effective_upto=d.GetDateYYYYMMDDFormat(o.academics[e].sims_academic_year_end_date),o.yearEndDate=new Date(o.academics[e].sims_academic_year_end_date));o.getTilesCount()};n.post(i.apiUrl+"api/TransportAttendanceDashboard/ShowDropdwnDatatransport",{opr:"J"}).then(function(e){o.statuslist=e.data.table,setTimeout(function(){$("#cmb_status").change(function(){}).multipleSelect({width:"100%"})},1e3)}),o.selectPickDrop=function(){let t="";for(let e=0;ee;e++)"mi"==o.statusesCount[e].remark&&(o.morningIn=o.statusesCount[e].no_of_record),"mo"==o.statusesCount[e].remark&&(o.morningOut=o.statusesCount[e].no_of_record),"Ai"==o.statusesCount[e].remark&&(o.AfternoonIn=o.statusesCount[e].no_of_record),"Ao"==o.statusesCount[e].remark&&(o.AfternoonOut=o.statusesCount[e].no_of_record)})},o.showData=function(){o.busy=!0,null!=o.temp.sims_transport_date&&(o.apprvfrdate=d.GetDateYYYYMMDDFormat(o.temp.sims_transport_date));let t="";for(let e=0;et&&(n.s.r=t),n.s.c>e&&(n.s.c=e),n.e.r"+e+''+t+""),s.close(),a.focus(),o.detailsField=!1,o.colsvis=!1,o.getsubdetail())})},o.reset_data=function(){o.filteredTodos=[];try{$("#cmb_grade_code").multipleSelect("uncheckAll")}catch(e){}try{$("#cmb_section_code").multipleSelect("uncheckAll")}catch(e){}o.temp.sims_bell_code="",o.report_data_new=[]},o.ischeck=function(){o.checklick=function(){var e=document.getElementById("show_unassign");1==e.checked&&e.checked}}}])}(),function(){"use strict";var e=angular.module("sims.module.Student");e.run(["$rootScope","$templateCache",function(e,t){e.$on("$viewContentLoaded",function(){t.removeAll()})}]),e.controller("StudentAssesmentScheduleObaCont",["$scope","$state","$rootScope","$stateParams","$timeout","gettextCatalog","$http","$filter","ENV",function(d,e,a,t,s,o,n,_,i){d.display=!0,d.grid=!0,d.pagesize="10",d.pageindex="1",d.flag=!0,d.filesize=!0,new Date,d.ddMMyyyy=_("date")(new Date,"dd-MM-yyyy"),d.obj1=[],d.obj3=[],d.filteredTodos=[],d.currentPage=1,d.numPerPage=5,d.maxSize=10,d.edt={sims_assesment_date:d.ddMMyyyy,sims_assesment_time:"12:00 AM"},d.sortBy=function(e){d.reverse=d.propertyName===e&&!d.reverse,d.propertyName=e},d.countData=[{val:10,data:10},{val:15,data:15}],n.get(i.apiUrl+"api/common/Attendance/getCuriculum").then(function(e){d.obj2=e.data,d.edt.curr_code=d.obj2[0].sims_attendance_cur_code,d.curr_code=d.obj2[0].sims_attendance_cur_code,d.getCur(d.edt.curr_code)}),n.get(i.apiUrl+"api/StudentAssessmentSchedule/GetAssesmentTeacher").then(function(e){d.teach_data=e.data}),d.getCur=function(t){n.get(i.apiUrl+"api/common/getAllAcademicYearAss?cur_code="+t).then(function(e){d.obj1=e.data,console.log(d.obj1[0].sims_academic_year),d.edt.academic_year=d.obj1[0].sims_academic_year,d.acad_yr=d.obj1[0].sims_academic_year,d.GetGrade(t,d.acad_yr)})},d.GetGrade=function(e,t){n.get(i.apiUrl+"api/common/getAllGrades?cur_code="+e+"&academic_year="+t).then(function(e){d.obj3=e.data,d.edt.grade_code=d.obj3[0].sims_grade_code,d.grade=d.obj3[0].sims_grade_code})},d.getAssessmentscheduleData=function(){d.filteredTodos=[],n.get(i.apiUrl+"api/StudentAssessmentSchedule/GetAssesmentScheduleObaCenter?cur_code="+d.edt.curr_code+"&acad_yr="+d.edt.academic_year+"&grade_code=").then(function(e){d.assessmentscheduleData=e.data,0"+e+''+t+""),s.close(),a.focus(),o.detailsField=!1,o.colsvis=!1)})},o.reset_data=function(){o.filteredTodos=[];try{$("#cmb_grade_code").multipleSelect("uncheckAll")}catch(e){}try{$("#cmb_section_code").multipleSelect("uncheckAll")}catch(e){}o.temp.sims_bell_code="",o.report_data_new=[]},o.ischeck=function(){o.checklick=function(){var e=document.getElementById("show_unassign");1==e.checked&&e.checked}}}])}(),function(){"use strict";var e=angular.module("sims.module.Inventory");e.run(["$rootScope","$templateCache",function(e,t){e.$on("$viewContentLoaded",function(){t.removeAll()})}]),e.controller("CancelledSaleDocumentListRptCont",["$scope","$state","$rootScope","$timeout","gettextCatalog","$http","ENV",function(o,e,t,a,s,n,i){o.temp={},o.detailsField=!0,o.hideprintpdf=!1,o.pagesize="30",o.pageindex="0",o.pager=!0,o.temp={};var d=(c=new Date).getDate(),r=c.getMonth()+1,c=(c.getFullYear(),o.mom_start_date="",o.mom_end_date="",$(function(){$("#bell_box").multipleSelect({width:"100%"}),$("#teacher_box").multipleSelect({width:"100%",filter:!0})}),new Date);(d=c.getDate())<10&&(d="0"+d);(r=c.getMonth()+1)<10&&(r="0"+r);var m=c.getFullYear();o.sdate=d+"-"+r+"-"+m,o.edate=d+"-"+r+"-"+m,o.mom_start_date=d+"-"+r+"-"+m,o.mom_end_date=d+"-"+r+"-"+m,$(function(){$("#chkmarks").click(function(){$(this).is(":checked")?($("#fdate").attr("disabled","disabled"),o.mom_start_date=""):($("#fdate").removeAttr("disabled"),$("#fdate").focus(),o.mom_start_date=d+"-"+r+"-"+m)})}),1==o.mom_start_date_check?o.mom_start_date="":o.mom_start_date=d+"-"+r+"-"+m,$(function(){$("#chkmarks1").click(function(){$(this).is(":checked")?($("#fdate").attr("disabled","disabled"),o.mom_end_date=""):($("#fdate").removeAttr("disabled"),$("#fdate").focus(),o.mom_end_date=d+"-"+r+"-"+m)})}),1==o.mom_end_date_check?o.mom_end_date="":o.mom_end_date=d+"-"+r+"-"+m,o.size=function(e){"All"==e?(o.currentPage="1",o.filteredTodos=o.todos,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,console.log("currentPage="+o.currentPage),o.makeTodos(),o.chk={},o.chk.chk_all=!1,o.row1=""},o.filteredTodos=[],o.currentPage=1,o.numPerPage=30,o.maxSize=100,o.makeTodos=function(){var e,t;"All"==o.pagesize?(o.currentPage=1,o.showPager=!1,o.filteredTodos=o.report_data_new):(e=parseInt(o.totalItems%o.numPerPage),o.pagersize="0"==e?parseInt(o.totalItems/o.numPerPage):parseInt(o.totalItems/o.numPerPage)+1,e=(o.currentPage-1)*o.numPerPage,t=parseInt(e)+parseInt(o.numPerPage),console.log("begin="+e),console.log("end="+t),o.filteredTodos=o.todos.slice(e,t))},n.get(i.apiUrl+"api/common/getCompanyName").then(function(e){o.CompanyName_Data=e.data,o.temp.company_code=o.CompanyName_Data[0].pc_company_code,o.getDepartment(o.temp.sims_dept)}),o.getDepartment=function(e){n.get(i.apiUrl+"api/Inv/getCancelledSaleDocumentListDept?comp_code="+o.temp.company_code).then(function(e){o.dept_as=e.data,o.temp.sims_dept=o.dept_as[0].dep_code,setTimeout(function(){$("#dept").change(function(){console.log($(this).val())}).multipleSelect({width:"100%"})},1e3)})},o.getdetails=function(){o.total_amount=0,n.get(i.apiUrl+"api/Inv/getCancelledSaleDocumentList?comp_code="+o.temp.company_code+"&dep_code="+o.temp.sims_dept+"&from_date="+o.mom_start_date+"&to_date="+o.mom_end_date).then(function(e){if(0"+e+''+t+""),s.close(),a.focus(),o.detailsField=!1,o.colsvis=!1)})},o.reset_data=function(){o.filteredTodos=[];try{$("#cmb_grade_code").multipleSelect("uncheckAll")}catch(e){}try{$("#cmb_section_code").multipleSelect("uncheckAll")}catch(e){}o.temp.sims_bell_code="",o.report_data_new=[]}}])}(),function(){"use strict";var e=angular.module("sims.module.Inventory");e.run(["$rootScope","$templateCache",function(e,t){e.$on("$viewContentLoaded",function(){t.removeAll()})}]),e.controller("SalesReportByItemRptCont",["$scope","$state","$rootScope","$timeout","gettextCatalog","$http","ENV",function(o,e,t,a,s,n,i){o.temp={},o.detailsField=!0,o.hideprintpdf=!1,o.pagesize="30",o.pageindex="0",o.pager=!0,o.temp={};var d=(c=new Date).getDate(),r=c.getMonth()+1,c=(c.getFullYear(),o.mom_start_date="",o.mom_end_date="",$(function(){$("#bell_box").multipleSelect({width:"100%"}),$("#teacher_box").multipleSelect({width:"100%",filter:!0})}),new Date);(d=c.getDate())<10&&(d="0"+d);(r=c.getMonth()+1)<10&&(r="0"+r);var m=c.getFullYear();o.sdate=d+"-"+r+"-"+m,o.edate=d+"-"+r+"-"+m,o.mom_start_date=d+"-"+r+"-"+m,o.mom_end_date=d+"-"+r+"-"+m,$(function(){$("#chkmarks").click(function(){$(this).is(":checked")?($("#fdate").attr("disabled","disabled"),o.mom_start_date=""):($("#fdate").removeAttr("disabled"),$("#fdate").focus(),o.mom_start_date=d+"-"+r+"-"+m)})}),1==o.mom_start_date_check?o.mom_start_date="":o.mom_start_date=d+"-"+r+"-"+m,$(function(){$("#chkmarks1").click(function(){$(this).is(":checked")?($("#fdate").attr("disabled","disabled"),o.mom_end_date=""):($("#fdate").removeAttr("disabled"),$("#fdate").focus(),o.mom_end_date=d+"-"+r+"-"+m)})}),1==o.mom_end_date_check?o.mom_end_date="":o.mom_end_date=d+"-"+r+"-"+m,o.size=function(e){"All"==e?(o.currentPage="1",o.filteredTodos=o.todos,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,console.log("currentPage="+o.currentPage),o.makeTodos(),o.chk={},o.chk.chk_all=!1,o.row1=""},o.filteredTodos=[],o.currentPage=1,o.numPerPage=30,o.maxSize=100,o.makeTodos=function(){var e,t;"All"==o.pagesize?(o.currentPage=1,o.showPager=!1,o.filteredTodos=o.report_data_new):(e=parseInt(o.totalItems%o.numPerPage),o.pagersize="0"==e?parseInt(o.totalItems/o.numPerPage):parseInt(o.totalItems/o.numPerPage)+1,e=(o.currentPage-1)*o.numPerPage,t=parseInt(e)+parseInt(o.numPerPage),console.log("begin="+e),console.log("end="+t),o.filteredTodos=o.todos.slice(e,t))},o.getdetails=function(){o.total_Cost_Price=0,o.total_Sale_Price=0,o.total_Quantity_Price=0,n.get(i.apiUrl+"api/Inv/getSalesReportByItem?from_date="+o.mom_start_date+"&to_date="+o.mom_end_date+"&View_as="+o.temp.sims_view_mode).then(function(e){if(0"+e+''+t+""),s.close(),a.focus(),o.detailsField=!1,o.colsvis=!1)})},o.reset_data=function(){o.filteredTodos=[];try{$("#cmb_grade_code").multipleSelect("uncheckAll")}catch(e){}try{$("#cmb_section_code").multipleSelect("uncheckAll")}catch(e){}o.temp.sims_bell_code="",o.report_data_new=[]},o.ischeck=function(){o.checklick=function(){var e=document.getElementById("show_unassign");1==e.checked&&e.checked}}}])}(),function(){"use strict";var e=angular.module("sims.module.Inventory");e.run(["$rootScope","$templateCache",function(e,t){e.$on("$viewContentLoaded",function(){t.removeAll()})}]),e.controller("SalesDocumentListReportCont",["$scope","$state","$rootScope","$timeout","gettextCatalog","$http","ENV",function(o,e,t,a,s,n,i){o.temp={},o.detailsField=!0,o.hideprintpdf=!1,o.pagesize="30",o.pageindex="0",o.pager=!0,o.mom_end_date_check=!0,o.mom_start_date_check=!0,o.temp={};var d=(c=new Date).getDate(),r=c.getMonth()+1,c=(c.getFullYear(),o.mom_attendance_date="",o.mom_end_date="",$(function(){$("#bell_box").multipleSelect({width:"100%"}),$("#teacher_box").multipleSelect({width:"100%",filter:!0})}),new Date);(d=c.getDate())<10&&(d="0"+d);(r=c.getMonth()+1)<10&&(r="0"+r);var m=c.getFullYear();o.sdate=d+"-"+r+"-"+m,o.edate=d+"-"+r+"-"+m,o.mom_attendance_date=d+"-"+r+"-"+m,o.mom_end_date=d+"-"+r+"-"+m,$(function(){$("#chkmarks").click(function(){$(this).is(":checked")?($("#fdate").attr("disabled","disabled"),o.mom_attendance_date=""):($("#fdate").removeAttr("disabled"),$("#fdate").focus(),o.mom_attendance_date=d+"-"+r+"-"+m)})}),1==o.mom_attendance_date_check?o.mom_attendance_date="":o.mom_attendance_date=d+"-"+r+"-"+m,$(function(){$("#chkmarks1").click(function(){$(this).is(":checked")?($("#fdate").attr("disabled","disabled"),o.mom_end_date=""):($("#fdate").removeAttr("disabled"),$("#fdate").focus(),o.mom_end_date=d+"-"+r+"-"+m)})}),1==o.mom_end_date_check?o.mom_end_date="":o.mom_end_date=d+"-"+r+"-"+m,o.size=function(e){"All"==e?(o.currentPage="1",o.filteredTodos=o.todos,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,console.log("currentPage="+o.currentPage),o.makeTodos(),o.chk={},o.chk.chk_all=!1,o.row1=""},o.filteredTodos=[],o.currentPage=1,o.numPerPage=30,o.maxSize=100,o.makeTodos=function(){var e,t;"All"==o.pagesize?(o.currentPage=1,o.showPager=!1,o.filteredTodos=o.report_data):(e=parseInt(o.totalItems%o.numPerPage),o.pagersize="0"==e?parseInt(o.totalItems/o.numPerPage):parseInt(o.totalItems/o.numPerPage)+1,e=(o.currentPage-1)*o.numPerPage,t=parseInt(e)+parseInt(o.numPerPage),console.log("begin="+e),console.log("end="+t),o.filteredTodos=o.todos.slice(e,t))},o.ischeck=function(){o.checklick=function(){var e=document.getElementById("without");1==e.checked&&e.checked}},n.get(i.apiUrl+"api/StockDetailsReport/getcomp").then(function(e){o.comp_for=e.data,o.temp.comp_code=o.comp_for[0].comp_code,o.getdepartment(o.temp.department_code)}),o.getdepartment=function(e){n.get(i.apiUrl+"api/StockDetailsReport/getdepart?icom_code="+o.temp.comp_code).then(function(e){o.dep_for=e.data,o.temp.department_code=o.dep_for[0].dep_code,setTimeout(function(){$("#dep").change(function(){console.log($(this).val())}).multipleSelect({width:"100%"})},1e3)})},o.getdetails=function(){o.colsvis=!1,o.total_amount=0,n.get(i.apiUrl+"api/StockDetailsReport/getsales?icom_code="+o.temp.comp_code+"&dep_code="+o.temp.department_code+"&from_date="+o.mom_start_date+"&to_date="+o.mom_end_date).then(function(e){if(0"+e+''+t+""),s.close(),a.focus(),o.detailsField=!1,o.colsvis=!1,o.getsubdetail())}),o.getdetails()},o.reset_data=function(){o.temp.sims_grade_code="",o.filteredTodos=[],o.pager=!1;try{$("#cmb_grade_code").multipleSelect("uncheckAll")}catch(e){}try{$("#cmb_section_code").multipleSelect("uncheckAll")}catch(e){}o.temp.sims_section_code="",o.filteredTodos=[]},o.ischeck=function(){o.checklick=function(){var e=document.getElementById("expire");1==e.checked&&e.checked}}}])}(),function(){"use strict";var e=angular.module("sims.module.Attendance");e.run(["$rootScope","$templateCache",function(e,t){e.$on("$viewContentLoaded",function(){t.removeAll()})}]),e.controller("HolidayReptCont",["$scope","$state","$rootScope","$timeout","gettextCatalog","$http","ENV",function(o,e,t,a,s,n,i){o.temp={},o.detailsField=!0,o.hideprintpdf=!1,o.pagesize="30",o.pageindex="0",o.pager=!0,o.mom_end_date_check=!0,o.mom_start_date_check=!0,o.temp={};var d=(c=new Date).getDate(),r=c.getMonth()+1,c=(c.getFullYear(),o.mom_start_date="",o.mom_end_date="",$(function(){$("#bell_box").multipleSelect({width:"100%"}),$("#teacher_box").multipleSelect({width:"100%",filter:!0})}),new Date);(d=c.getDate())<10&&(d="0"+d);(r=c.getMonth()+1)<10&&(r="0"+r);var m=c.getFullYear();o.sdate=d+"-"+r+"-"+m,o.edate=d+"-"+r+"-"+m,o.mom_start_date=d+"-"+r+"-"+m,o.mom_end_date=d+"-"+r+"-"+m,$(function(){$("#chkmarks").click(function(){$(this).is(":checked")?($("#fdate").attr("disabled","disabled"),o.mom_start_date=""):($("#fdate").removeAttr("disabled"),$("#fdate").focus(),o.mom_start_date=d+"-"+r+"-"+m)})}),1==o.mom_start_date_check?o.mom_start_date="":o.mom_start_date=d+"-"+r+"-"+m,$(function(){$("#chkmarks1").click(function(){$(this).is(":checked")?($("#fdate").attr("disabled","disabled"),o.mom_end_date=""):($("#fdate").removeAttr("disabled"),$("#fdate").focus(),o.mom_end_date=d+"-"+r+"-"+m)})}),1==o.mom_end_date_check?o.mom_end_date="":o.mom_end_date=d+"-"+r+"-"+m,o.size=function(e){"All"==e?(o.currentPage="1",o.filteredTodos=o.todos,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,console.log("currentPage="+o.currentPage),o.makeTodos(),o.chk={},o.chk.chk_all=!1,o.row1=""},o.filteredTodos=[],o.currentPage=1,o.numPerPage=30,o.maxSize=100,o.makeTodos=function(){var e,t;"All"==o.pagesize?(o.currentPage=1,o.showPager=!1,o.filteredTodos=o.report_data):(e=parseInt(o.totalItems%o.numPerPage),o.pagersize="0"==e?parseInt(o.totalItems/o.numPerPage):parseInt(o.totalItems/o.numPerPage)+1,e=(o.currentPage-1)*o.numPerPage,t=parseInt(e)+parseInt(o.numPerPage),console.log("begin="+e),console.log("end="+t),o.filteredTodos=o.todos.slice(e,t))},o.ischeck=function(){o.checklick=function(){var e=document.getElementById("without");1==e.checked&&e.checked}},n.get(i.apiUrl+"api/common/getCuriculum").then(function(e){o.cur_data=e.data,o.temp.sims_cur_code=o.cur_data[0].sims_cur_code,o.getAcademic_year(o.cur_data[0].sims_cur_code)}),o.getAcademic_year=function(e){n.get(i.apiUrl+"api/common/getAcademicYear?curCode="+e).then(function(e){o.acad_data=e.data,o.temp.sims_academic_year=o.acad_data[0].sims_academic_year})},n.get(i.apiUrl+"api/HolidayAttendance/getrptparam").then(function(e){o.rep_for=e.data,o.temp.comn_appl_parameter=o.rep_for[0].comn_appl_parameter,o.getexception(o.temp.sims_appl_parameter)}),o.getexception=function(e){n.get(i.apiUrl+"api/HolidayAttendance/getexceptiontype?report_param="+o.temp.comn_appl_parameter).then(function(e){o.exp_for=e.data,o.temp.sims_appl_parameter=o.exp_for[0].sims_appl_parameter})},o.getdetails=function(){o.colsvis=!1,n.get(i.apiUrl+"api/HolidayAttendance/getholidayrep?cur_code="+o.temp.sims_cur_code+"&acad_year="+o.temp.sims_academic_year+"&report_param="+o.temp.comn_appl_parameter+"&exception_type="+o.sims_appl_parameter).then(function(e){0"+e+''+t+""),s.close(),a.focus(),o.detailsField=!1,o.colsvis=!1,o.getsubdetail())}),o.getdetails()},o.reset_data=function(){o.temp.sims_grade_code="",o.filteredTodos=[],o.pager=!1;try{$("#cmb_grade_code").multipleSelect("uncheckAll")}catch(e){}try{$("#cmb_section_code").multipleSelect("uncheckAll")}catch(e){}o.temp.sims_section_code="",o.filteredTodos=[]},o.ischeck=function(){o.checklick=function(){var e=document.getElementById("expire");1==e.checked&&e.checked}}}])}(),function(){"use strict";var e=angular.module("sims.module.Attendance");e.run(["$rootScope","$templateCache",function(e,t){e.$on("$viewContentLoaded",function(){t.removeAll()})}]),e.controller("AttendanceNotMarkedCont",["$scope","$state","$rootScope","$timeout","gettextCatalog","$http","ENV",function(o,e,t,a,s,n,i){o.temp={},o.detailsField=!0,o.hideprintpdf=!1,o.pagesize="30",o.pageindex="0",o.pager=!0,o.mom_end_date_check=!0,o.mom_start_date_check=!0,o.temp={};var d=(c=new Date).getDate(),r=c.getMonth()+1,c=(c.getFullYear(),o.mom_start_date="",o.mom_end_date="",$(function(){$("#bell_box").multipleSelect({width:"100%"}),$("#teacher_box").multipleSelect({width:"100%",filter:!0})}),new Date);(d=c.getDate())<10&&(d="0"+d);(r=c.getMonth()+1)<10&&(r="0"+r);var m=c.getFullYear();o.sdate=d+"-"+r+"-"+m,o.edate=d+"-"+r+"-"+m,o.mom_start_date=d+"-"+r+"-"+m,o.mom_end_date=d+"-"+r+"-"+m,o.temp.from_date=d+"-"+r+"-"+m,o.temp.to_date=d+"-"+r+"-"+m,$(function(){$("#chkmarks").click(function(){$(this).is(":checked")?($("#fdate").attr("disabled","disabled"),o.mom_start_date=""):($("#fdate").removeAttr("disabled"),$("#fdate").focus(),o.mom_start_date=d+"-"+r+"-"+m)})}),$(function(){$("#chkmarks1").click(function(){$(this).is(":checked")?($("#fdate").attr("disabled","disabled"),o.mom_end_date=""):($("#fdate").removeAttr("disabled"),$("#fdate").focus(),o.mom_end_date=d+"-"+r+"-"+m)})}),o.size=function(e){"All"==e?(o.currentPage="1",o.filteredTodos=o.todos,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,console.log("currentPage="+o.currentPage),o.makeTodos(),o.chk={},o.chk.chk_all=!1,o.row1=""},o.filteredTodos=[],o.currentPage=1,o.numPerPage=30,o.maxSize=100,o.makeTodos=function(){var e,t;"All"==o.pagesize?(o.currentPage=1,o.showPager=!1,o.filteredTodos=o.report_data):(e=parseInt(o.totalItems%o.numPerPage),o.pagersize="0"==e?parseInt(o.totalItems/o.numPerPage):parseInt(o.totalItems/o.numPerPage)+1,e=(o.currentPage-1)*o.numPerPage,t=parseInt(e)+parseInt(o.numPerPage),console.log("begin="+e),console.log("end="+t),o.filteredTodos=o.todos.slice(e,t))},n.get(i.apiUrl+"api/common/getCuriculum").then(function(e){o.cur_data=e.data,o.temp.sims_cur_code=o.cur_data[0].sims_cur_code,o.getAcademic_year(o.cur_data[0].sims_cur_code)}),o.getAcademic_year=function(e){n.get(i.apiUrl+"api/common/getAcademicYear?curCode="+e).then(function(e){o.acad_data=e.data,o.temp.sims_academic_year=o.acad_data[0].sims_academic_year,o.getGrade(o.temp.sims_cur_code,o.temp.sims_academic_year)})},o.getGrade=function(e,t){n.get(i.apiUrl+"api/common/getAllGrades?cur_code="+o.temp.sims_cur_code+"&academic_year="+o.temp.sims_academic_year).then(function(e){o.Grade_code=e.data,setTimeout(function(){$("#cmb_grade_code").change(function(){console.log($(this).val())}).multipleSelect({width:"100%"}),$("#cmb_grade_code").multipleSelect("checkAll")},1e3)})},o.getSection=function(e,t,a){n.get(i.apiUrl+"api/common/getSectionFromGrade?cur_code="+o.temp.sims_cur_code+"&grade_code="+o.temp.sims_grade_code+"&academic_year="+o.temp.sims_academic_year).then(function(e){o.Section_code=e.data,setTimeout(function(){$("#cmb_section_code").change(function(){console.log($(this).val())}).multipleSelect({width:"100%"}),$("#cmb_section_code").multipleSelect("checkAll")},1e3)})},o.getReport=function(e,t,a){n.get(i.apiUrl+"api/common/getSectionFromGrade?cur_code="+o.temp.sims_cur_code+"&grade_code="+o.temp.sims_grade_code+"&academic_year="+o.temp.sims_academic_year).then(function(e){o.Section_code=e.data,setTimeout(function(){$("#cmb_section_code").change(function(){console.log($(this).val())}).multipleSelect({width:"100%"})},1e3)})},o.getdetails=function(){o.colsvis=!1,n.get(i.apiUrl+"api/HolidayAttendance/getattendance?cur_code="+o.temp.sims_cur_code+"&acad_year="+o.temp.sims_academic_year+"&grade_code="+o.temp.sims_grade_code+"§ion_code="+o.temp.sims_section_code+"&from_date="+o.mom_start_date+"&to_date="+o.mom_end_date).then(function(e){0"+e+''+t+""),s.close(),a.focus(),o.getdetails()),o.getdetails()})},o.reset_data=function(){o.temp.sims_grade_code="",o.filteredTodos=[],o.pager=!1;try{$("#cmb_grade_code").multipleSelect("uncheckAll")}catch(e){}try{$("#cmb_section_code").multipleSelect("uncheckAll")}catch(e){}o.temp.sims_section_code="",o.filteredTodos=[]},o.ischeck=function(){o.checklick=function(){var e=document.getElementById("expire");1==e.checked&&e.checked}}}])}(),function(){"use strict";var e=angular.module("sims.module.Attendance");e.run(["$rootScope","$templateCache",function(e,t){e.$on("$viewContentLoaded",function(){t.removeAll()})}]),e.controller("VarianceAttendanceTeacherReportCont",["$scope","$state","$rootScope","$timeout","gettextCatalog","$http","ENV",function(o,e,t,a,s,n,i){o.temp={},o.detailsField=!0,o.hideprintpdf=!1,o.pagesize="30",o.pageindex="0",o.pager=!0,o.mom_end_date_check=!0,o.mom_start_date_check=!0,o.temp={};var d=(c=new Date).getDate(),r=c.getMonth()+1,c=(c.getFullYear(),o.mom_start_date="",o.mom_end_date="",$(function(){$("#bell_box").multipleSelect({width:"100%"}),$("#teacher_box").multipleSelect({width:"100%",filter:!0})}),new Date);(d=c.getDate())<10&&(d="0"+d);(r=c.getMonth()+1)<10&&(r="0"+r);var m=c.getFullYear();o.sdate=d+"-"+r+"-"+m,o.edate=d+"-"+r+"-"+m,o.mom_start_date=d+"-"+r+"-"+m,o.mom_end_date=d+"-"+r+"-"+m,$(function(){$("#chkmarks").click(function(){$(this).is(":checked")?($("#fdate").attr("disabled","disabled"),o.mom_start_date=""):($("#fdate").removeAttr("disabled"),$("#fdate").focus(),o.mom_start_date=d+"-"+r+"-"+m)})}),1==o.mom_start_date_check?o.mom_start_date="":o.mom_start_date=d+"-"+r+"-"+m,$(function(){$("#chkmarks1").click(function(){$(this).is(":checked")?($("#fdate").attr("disabled","disabled"),o.mom_end_date=""):($("#fdate").removeAttr("disabled"),$("#fdate").focus(),o.mom_end_date=d+"-"+r+"-"+m)})}),1==o.mom_end_date_check?o.mom_end_date="":o.mom_end_date=d+"-"+r+"-"+m,o.size=function(e){"All"==e?(o.currentPage="1",o.filteredTodos=o.todos,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,console.log("currentPage="+o.currentPage),o.makeTodos(),o.chk={},o.chk.chk_all=!1,o.row1=""},o.filteredTodos=[],o.currentPage=1,o.numPerPage=30,o.maxSize=100,o.makeTodos=function(){var e,t;"All"==o.pagesize?(o.currentPage=1,o.showPager=!1,o.filteredTodos=o.report_data):(e=parseInt(o.totalItems%o.numPerPage),o.pagersize="0"==e?parseInt(o.totalItems/o.numPerPage):parseInt(o.totalItems/o.numPerPage)+1,e=(o.currentPage-1)*o.numPerPage,t=parseInt(e)+parseInt(o.numPerPage),console.log("begin="+e),console.log("end="+t),o.filteredTodos=o.todos.slice(e,t))},n.get(i.apiUrl+"api/common/getCuriculum").then(function(e){o.cur_data=e.data,o.temp.sims_cur_code=o.cur_data[0].sims_cur_code,o.getAcademic_year(o.cur_data[0].sims_cur_code)}),o.getAcademic_year=function(e){n.get(i.apiUrl+"api/common/getAcademicYear?curCode="+e).then(function(e){o.acad_data=e.data,o.temp.sims_academic_year=o.acad_data[0].sims_academic_year,o.getGrade(o.temp.sims_cur_code,o.temp.sims_academic_year)})},o.getGrade=function(e,t){n.get(i.apiUrl+"api/common/getAllGrades?cur_code="+o.temp.sims_cur_code+"&academic_year="+o.temp.sims_academic_year).then(function(e){o.Grade_code=e.data,setTimeout(function(){$("#cmb_grade_code").change(function(){console.log($(this).val())}).multipleSelect({width:"100%"})},1e3)})},o.getSection=function(e,t,a){n.get(i.apiUrl+"api/common/getSectionFromGrade?cur_code="+o.temp.sims_cur_code+"&grade_code="+o.temp.sims_grade_code+"&academic_year="+o.temp.sims_academic_year).then(function(e){o.Section_code=e.data,setTimeout(function(){$("#cmb_section_code").change(function(){console.log($(this).val())}).multipleSelect({width:"100%"})},1e3)})},o.getReport=function(e,t,a){n.get(i.apiUrl+"api/common/getSectionFromGrade?cur_code="+o.temp.sims_cur_code+"&grade_code="+o.temp.sims_grade_code+"&academic_year="+o.temp.sims_academic_year).then(function(e){o.Section_code=e.data,setTimeout(function(){$("#cmb_section_code").change(function(){console.log($(this).val())}).multipleSelect({width:"100%"})},1e3)})},o.getdetails=function(){o.colsvis=!1,n.get(i.apiUrl+"api/HolidayAttendance/getvariance?cur_code="+o.temp.sims_cur_code+"&acad_year="+o.temp.sims_academic_year+"&grade="+o.temp.sims_grade_code+"§ion="+o.temp.sims_section_code+"&from_date="+o.mom_start_date+"&to_date="+o.mom_end_date).then(function(e){0"+e+''+t+""),s.close(),a.focus(),o.getdetails()),o.getdetails()})},o.reset_data=function(){o.temp.sims_grade_code="",o.filteredTodos=[],o.pager=!1;try{$("#cmb_grade_code").multipleSelect("uncheckAll")}catch(e){}try{$("#cmb_section_code").multipleSelect("uncheckAll")}catch(e){}o.temp.sims_section_code="",o.filteredTodos=[]},o.ischeck=function(){o.checklick=function(){var e=document.getElementById("expire");1==e.checked&&e.checked}}}])}(),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("StudentQueryCont",["$scope","$state","$rootScope","$timeout","$stateParams","gettextCatalog","$http","ENV",function(s,t,e,a,o,n,_,i){s.pagesize="10",s.pageindex=0,s.small_table=!1,s.propertyName=null,s.reverse=!1,s.amount_total=0,s.total_paid=0,s.balance=0,s.sortBy=function(e){s.reverse=s.propertyName===e&&!s.reverse,s.propertyName=e},$('*[data-datepicker="true"] input[type="text"]').datepicker({todayBtn:!0,orientation:"top left",autoclose:!0,todayHighlight:!0,format:"dd-mm-yyyy"});o=o.sel;if(null!=o)try{s.edt={},s.edt.sims_cur_code=o.cur,s.edt.sims_academic_year=o.ac,s.edt.sims_grade_code=o.gr,s.edt.sims_section_code=o.sc,s.edt.search_txt=o.st}catch(e){}function d(){_.get(i.apiUrl+"api/Fee/SFS/GetAllTotalStudent?acyear="+s.edt.sims_academic_year).then(function(e){s.total_count=e.data,s.count_total=s.total_count[0].student_count}),null==s.edt.search_txt&&(s.edt.search_txt=""),s.sel={cur:s.edt.sims_cur_code,ac:s.edt.sims_academic_year,gr:s.edt.sims_grade_code,sc:s.edt.sims_section_code,st:s.edt.search_txt,search_flag:"3"},_.get(i.apiUrl+"api/Fee/SFS/getStudent_Fees?minval=0&maxval=0&cc="+s.edt.sims_cur_code+"&ay="+s.edt.sims_academic_year+"&gc="+s.edt.sims_grade_code+"&sc="+s.edt.sims_section_code+"&search_stud="+s.edt.search_txt+"&search_flag="+s.edt.sims_search_code).then(function(e){s.feesData=e.data,s.feesData.length<=0?swal({showCloseButton:!0,text:"No Data found.",width:350,imageUrl:"assets/img/close.png",showCloseButon:!0}):(s.feesData.length,s.totalItems=s.feesData.length,s.todos=s.feesData,s.makeTodos()),s.length_array=s.feesData.length})}s.gotoCancelReceipt=function(){t.go("main.Sm043C")},$(document).on("touch click",'*[data-datepicker="true"] .add-on',function(e){$('input[type="text"]',$(this).parent()).focus()}),s.edt={sims_cur_code:"",sims_academic_year:"",sims_grade_code:"",sims_section_code:"",sims_enroll_number:"",sims_search_code:""},_.get(i.apiUrl+"api/Fee/SFS/GetAllCurName").then(function(e){s.CurData=e.data,s.edt.sims_cur_code=e.data[0].sims_cur_code,s.cur_code_change(e.data[0].sims_cur_code)}),_.get(i.apiUrl+"api/Fee/SFS/getSeachOptions").then(function(e){s.searchoptions=e.data;for(var t=0;ts.totalItems?s.pagersize=Math.round(s.totalItems/s.numPerPage):s.pagersize=Math.round(s.totalItems/s.numPerPage)+1;var e=(s.currentPage-1)*s.numPerPage,t=parseInt(e)+parseInt(s.numPerPage);s.filteredTodos=s.todos.slice(e,t),s.amount_total=0,s.total_paid=0;for(var a=s.balance=0;ao&&(s.s.r=o),s.s.c>n&&(s.s.c=n),s.e.rc.sectionlst1.section_strength?swal({title:"Alert",text:"Section Strength is Full.If You still want to Continue?",showCloseButton:!0,width:380}).then(function(e){e?c.adm_update():($("#cmb_section").css("background-color","#E5E9EC"),$('.nav-tabs a[href="#admtab1"]').tab("show"))}):c.adm_update())},c.adm_update=function(){null==c.edt.home_country_isdcode&&(c.edt.home_country_isdcode=""),null==c.edt.home_phone&&(c.edt.home_phone="");var e={admission_number:param,appl_num:c.edt.appl_num,pros_num:c.edt.pros_num,pros_appl_num:c.edt.pros_appl_num,admission_date:c.edt.admission_date,school_code:c.edt.school_code,curr_code:c.edt.curr_code,academic_year:c.edt.academic_year,grade_code:c.edt.grade_code,section_code:c.edt.section_code,term_code:c.edt.term_code,tent_join_date:c.edt.tent_join_date,sims_student_emergency_contact_number1:c.edt.sims_student_emergency_contact_number1,sims_student_emergency_contact_name1:c.edt.sims_student_emergency_contact_name1,first_name:c.edt.first_name,middle_name:c.edt.middle_name,last_name:c.edt.last_name,family_name:c.edt.family_name,first_name_ot:c.edt.first_name_ot,midd_name_ot:c.edt.midd_name_ot,last_name_ot:c.edt.last_name_ot,family_name_ot:c.edt.family_name_ot,nicke_name:c.edt.nicke_name,birth_date:c.edt.birth_date,comm_date:c.edt.comm_date,birth_country_code:c.edt.birth_country_code,nationality_code:c.edt.nationality_code,ethinicity_code:c.edt.ethinicity_code,gender_code:c.edt.gender_code,religion_code:c.edt.religion_code,passport_num:c.edt.passport_num,passport_issue_date:c.edt.passport_issue_date,passport_expiry:c.edt.passport_expiry,passport_issue_auth:c.edt.passport_issue_auth,passport_issue_place:c.edt.passport_issue_place,visa_number:c.edt.visa_number,visa_type:c.edt.visa_type,visa_issuing_authority:c.edt.visa_issuing_authority,visa_issue_date:c.edt.visa_issue_date,visa_expiry_date:c.edt.visa_expiry_date,visa_issuing_place:c.edt.visa_issuing_place,national_id:c.edt.national_id,national_id_issue_date:c.edt.national_id_issue_date,national_id_expiry_date:c.edt.national_id_expiry_date,sibling_status:c.edt.sibling_status,parent_id:c.edt.parent_id,sibling_enroll:c.edt.sibling_enroll,sibling_name:c.edt.sibling_name,sibling_dob:c.edt.sibling_dob,sibling_school_code:c.edt.sibling_school_code,employee_type:c.edt.employee_type,employee_code:c.edt.employee_code,employee_school_code:c.edt.employee_school_code,motherTounge_language_code:c.edt.motherTounge_language_code,main_language_code:c.edt.main_language_code,main_language_r_code:c.edt.main_language_r_code,main_language_w_code:c.edt.main_language_w_code,main_language_s_code:c.edt.main_language_s_code,primary_contact_code:c.edt.primary_contact_code,primary_contact_pref_code:c.edt.primary_contact_pref_code,fee_payment_contact_pref_code:c.edt.fee_payment_contact_pref_code,transport_status:c.edt.transport_status,transport_desc:c.edt.transport_desc,father_salutation_code:c.edt.father_salutation_code,father_first_name:c.edt.father_first_name,father_middle_name:c.edt.father_middle_name,father_last_name:c.edt.father_last_name,father_family_name:c.edt.father_family_name,father_family_name_ot:c.edt.father_family_name_ot,father_nationality1_code:c.edt.father_nationality1_code,father_nationality2_code:c.edt.father_nationality2_code,father_appartment_number:c.edt.father_appartment_number,father_building_number:c.edt.father_building_number,father_street_number:c.edt.father_street_number,father_area_number:c.edt.father_area_number,father_city:c.edt.father_city,father_state:c.edt.father_state,father_country_code:c.edt.father_country_code,father_summary_address:c.edt.father_summary_address,father_po_box:c.edt.father_po_box,father_phone:c.edt.father_phone,father_email:c.edt.father_email,father_mobile:c.edt.father_mobile,father_fax:c.edt.father_fax,father_occupation:c.edt.father_occupation,father_company:c.edt.father_company,father_passport_number:c.edt.father_passport_number,sims_admission_father_national_id:c.edt.sims_admission_father_national_id,guardian_salutation_code:c.edt.guardian_salutation_code,guardian_first_name:c.edt.guardian_first_name,guardian_middle_name:c.edt.guardian_middle_name,guardian_last_name:c.edt.guardian_last_name,guardian_family_name:c.edt.guardian_family_name,guardian_nationality1_code:c.edt.guardian_nationality1_code,guardian_nationality2_code:c.edt.guardian_nationality2_code,guardian_appartment_number:c.edt.guardian_appartment_number,guardian_building_number:c.edt.guardian_building_number,guardian_street_number:c.edt.guardian_street_number,guardian_area_number:c.edt.guardian_area_number,guardian_city:c.edt.guardian_city,guardian_state:c.edt.guardian_state,guardian_country_code:c.edt.guardian_country_code,guardian_summary_address:c.edt.guardian_summary_address,guardian_po_box:c.edt.guardian_po_box,guardian_phone:c.edt.guardian_phone,guardian_mobile:c.edt.guardian_mobile,guardian_fax:c.edt.guardian_fax,guardian_email:c.edt.guardian_email,guardian_occupation:c.edt.guardian_occupation,guardian_company:c.edt.guardian_company,guardian_passport_number:c.edt.guardian_passport_number,guardian_relationship_code:c.edt.guardian_relationship_code,mother_salutation_code:c.edt.mother_salutation_code,mother_first_name:c.edt.mother_first_name,mother_middle_name:c.edt.mother_middle_name,mother_last_name:c.edt.mother_last_name,mother_family_name:c.edt.mother_family_name,mother_name_ot:c.edt.mother_name_ot,mother_nationality1_code:c.edt.mother_nationality1_code,mother_nationality2_code:c.edt.mother_nationality2_code,mother_appartment_number:c.edt.mother_appartment_number,mother_building_number:c.edt.mother_building_number,mother_street_number:c.edt.mother_street_number,mother_area_number:c.edt.mother_area_number,mother_city:c.edt.mother_city,mother_state:c.edt.mother_state,mother_country_code:c.edt.mother_country_code,mother_summary_address:c.edt.mother_summary_address,mother_po_box:c.edt.mother_po_box,mother_phone:c.edt.mother_phone,mother_mobile:c.edt.mother_mobile,mother_fax:c.edt.mother_fax,mother_email:c.edt.mother_email,mother_occupation:c.edt.mother_occupation,mother_passport_number:c.edt.mother_passport_number,current_school_status:c.edt.current_school_status,current_school_name:c.edt.current_school_name,current_school_enroll_number:c.edt.current_school_enroll_number,current_school_grade:c.edt.current_school_grade,current_school_cur:c.edt.current_school_cur,current_school_from_date:c.edt.current_school_from_date,current_school_to_date:c.edt.current_school_to_date,current_school_language:c.edt.current_school_language,current_school_head_teacher:c.edt.current_school_head_teacher,current_school_phone:c.edt.current_school_phone,current_school_fax:c.edt.current_school_fax,current_school_city:c.edt.current_school_city,current_school_country_code:c.edt.current_school_country_code,current_school_address:c.edt.current_school_address,marketing_code:c.edt.marketing_code,marketing_description:c.edt.marketing_description,parent_status_code:c.edt.parent_status_code,legal_custody_code:c.edt.legal_custody_code,health_card_number:c.edt.health_card_number,health_card_issue_date:c.edt.health_card_issue_date,health_card_issuing_authority:c.edt.health_card_issuing_authority,blood_group_code:c.edt.blood_group_code,medication_status:c.edt.medication_status,medication_desc:c.edt.medication_desc,disability_status:c.edt.disability_status,disability_desc:c.edt.disability_desc,behaviour_status:c.edt.behaviour_status,behaviour_desc:c.edt.behaviour_desc,health_restriction_status:c.edt.health_restriction_status,health_restriction_desc:c.edt.health_restriction_desc,health_hearing_status:c.edt.health_hearing_status,health_hearing_desc:c.edt.health_hearing_desc,health_vision_status:c.edt.health_vision_status,health_vision_desc:c.edt.health_vision_desc,health_other_status:c.edt.health_other_status,health_other_desc:c.edt.health_other_desc,gifted_status:c.edt.gifted_status,gifted_desc:c.edt.gifted_desc,music_status:c.edt.music_status,music_desc:c.edt.music_desc,sports_status:c.edt.sports_status,sports_desc:c.edt.sports_desc,language_support_status:c.edt.language_support_status,language_support_desc:c.edt.language_support_desc,declaration_status:c.edt.declaration_status,fees_paid_status:c.edt.fees_paid_status,fee_category_code:c.edt.fee_category_code,ip:c.edt.ip,dns:c.edt.dns,user_code:c.edt.user_code,status:c.edt.status,sims_student_attribute1:c.edt.sims_student_attribute1,sims_student_attribute2:c.edt.sims_student_attribute2,sims_student_attribute3:c.edt.sims_student_attribute3,sims_student_attribute4:c.edt.sims_student_attribute4,sims_student_health_respiratory_status:c.edt.sims_student_health_respiratory_status,sims_student_health_respiratory_desc:c.edt.sims_student_health_respiratory_desc,sims_student_health_hay_fever_status:c.edt.sims_student_health_hay_fever_status,sims_student_health_hay_fever_desc:c.edt.sims_student_health_hay_fever_desc,sims_student_health_epilepsy_status:c.edt.sims_student_health_epilepsy_status,sims_student_health_epilepsy_desc:c.edt.sims_student_health_epilepsy_desc,sims_student_health_skin_status:c.edt.sims_student_health_skin_status,sims_student_health_skin_desc:c.edt.sims_student_health_skin_desc,sims_student_health_diabetes_status:c.edt.sims_student_health_diabetes_status,sims_student_health_diabetes_desc:c.edt.sims_student_health_diabetes_desc,sims_student_health_surgery_status:c.edt.sims_student_health_surgery_status,sims_student_health_surgery_desc:c.edt.sims_student_health_surgery_desc,sims_admission_recommendation:c.edt.sims_admission_recommendation,sims_admission_mother_national_id:c.edt.sims_admission_mother_national_id,sims_admission_guardian_national_id:c.edt.sims_admission_guardian_national_id,sims_fee_month_code:c.edt.sims_fee_month_code,sims_student_attribute5:c.edt.sims_student_attribute5,sims_student_attribute6:c.edt.sims_student_attribute6,sims_student_attribute7:c.edt.sims_student_attribute7,sims_student_attribute8:c.edt.sims_student_attribute8,sims_student_attribute9:c.edt.sims_student_attribute9,sims_student_attribute10:c.edt.sims_student_attribute10,sims_student_attribute11:c.edt.sims_student_attribute11,sims_student_attribute12:c.edt.sims_student_attribute12,sims_admission_second_lang_code:c.edt.sims_admission_second_lang_code,sims_admission_third_lang_code:c.edt.sims_admission_third_lang_code,sims_admission_subject_code:c.edt.sims_admission_second_lang_code+","+c.edt.sims_admission_third_lang_code};_.push(e),m.post(l.apiUrl+"api/common/Admission_dpsd/ApproveStudent",_).then(function(e){c.display=!0,c.msg1=e.data,console.log(c.msg1)}),c.grid1=!0,$("#myModal1").modal({backdrop:"static",keyboard:!0})},c.get_studentfee=function(){e.go("main.Sim043")},c.schoolcheck=function(){1==c.edt.current_school_status?c.school_edit=!1:c.school_edit=!0},c.chk_desc=function(){1==c.edt.marketing_code?c.desc_edit=!1:c.desc_edit=!0},c.chk_cicumstances=function(){1==c.edt.parent_status_code?c.circum_edit=!1:c.circum_edit=!0},c.chk_disab_status=function(){1==c.edt.disability_status?c.disab_edit=!1:c.disab_edit=!0},c.chk_health_res=function(){1==c.edt.health_restriction_status?c.healthres_edit=!1:c.healthres_edit=!0},c.chk_medic_status=function(){1==c.edt.medication_status?c.med_edit=!1:c.med_edit=!0},c.chk_other=function(){1==c.edt.health_other_status?c.other_edit=!1:c.other_edit=!0},c.chk_hearing=function(){1==c.edt.health_hearing_status?c.hearing_edit=!1:c.hearing_edit=!0},c.chk_vision=function(){1==c.edt.health_vision_status?c.health_vision_edit=!1:c.health_vision_edit=!0},c.chk_behaviour=function(){1==c.edt.behaviour_status?c.behaviour_edit=!1:c.behaviour_edit=!0},c.chk_gifted_status=function(){1==c.edt.gifted_status?c.gifted_edit=!1:c.gifted_edit=!0},c.chk_music_pro=function(){1==c.edt.music_status?c.music_edit=!1:c.music_edit=!0},c.chk_sport_pro=function(){1==c.edt.sports_status?c.sport_edit=!1:c.sport_edit=!0},c.chk_lang_sup=function(){1==c.edt.language_support_status?c.lang_sup_edit=!1:c.lang_sup_edit=!0},c.chk_Pri_contact=function(){1==c.edt.primary_contact_code?c.pricont_edit=!1:c.pricont_edit=!0},c.chk_transport_requin=function(){1==c.edt.transport_status?c.transreq_edit=!1:c.transreq_edit=!0},c.chk_employee=function(){1==document.getElementById("chk_employee").checked?document.getElementById("txt_emp_code").disabled=!1:document.getElementById("txt_emp_code").disabled=!0},c.chk_Sibling_attend=function(){1==c.edt.sibling_status?c.disableparent=!1:c.disableparent=!0},c.chk_learn_ther=function(){1==c.edt.sims_admission_learning_therapy_status?c.learnther_edit=!1:c.learnther_edit=!0},c.chk_spec_edu=function(){1==c.edt.sims_admission_special_education_status?c.spec_edu_edit=!1:c.spec_edu_edit=!0},c.chk_falled_grade=function(){1==c.edt.sims_admission_falled_grade_status?c.falledgrade_edit=!1:c.falledgrade_edit=!0},c.chk_commun=function(){1==c.edt.sims_admission_communication_status?c.commun_edit=!1:c.commun_edit=!0},c.chk_spec_activies=function(){1==c.edt.sims_admission_specialAct_status?c.specActiv_edit=!1:c.specActiv_edit=!0},c.chk_studyingin=function(){1==c.edt.sibling_status?(c.Study_edit=!1,document.getElementById("t3"),document.getElementById("t4"),document.getElementById("t5"),c.t=!1):(c.Study_edit=!0,document.getElementById("t3"),document.getElementById("t4"),document.getElementById("t5"),c.t=!0)},c.chk_ticking=function(){1==c.edt.declaration_status?(c.tick_edit=!1,c.confirm_edit=!1):(c.tick_edit=!0,c.confirm_edit=!0)},c.chk_copy_mother_add=function(){1==c.edt.copy_add?(c.edt.mother_appartment_number=c.edt.father_appartment_number,c.edt.mother_area_number=c.edt.father_area_number,c.edt.mother_building_number=c.edt.father_building_number,c.edt.mother_street_number=c.edt.father_street_number,c.edt.mother_city=c.edt.father_city,c.edt.mother_state=c.edt.father_state,c.edt.mother_country_code=c.edt.father_country_code,c.edt.mother_po_box=c.edt.father_po_box,c.edt.mother_nationality1_code=c.edt.father_nationality1_code,c.edt.mother_nationality2_code=c.edt.father_nationality2_code,c.edt.mother_summary_address=c.edt.father_summary_address,c.edt.mother_phone=c.edt.father_phone,c.edt.mother_po_box=c.edt.father_po_box,c.edt.mother_mobile=c.edt.father_mobile,c.edt.mother_occupation=c.edt.father_occupation,c.edt.mother_email=c.edt.father_email,c.edt.mother_company=c.edt.father_company):(c.edt.mother_appartment_number="",c.edt.mother_area_number="",c.edt.mother_building_number="",c.edt.mother_street_number="",c.edt.mother_city="",c.edt.mother_state="",c.edt.mother_country_code="",c.edt.mother_po_box="",c.edt.mother_nationality1_code="",c.edt.mother_nationality2_code="",c.edt.mother_summary_address="",c.edt.mother_phone="",c.edt.mother_po_box="",c.edt.mother_mobile="",c.edt.mother_occupation="",c.edt.mother_email="",c.edt.mother_company="")},c.chk_copy_guar_add1=function(){1==c.edt.copy_add1?(c.edt.guardian_appartment_number=c.edt.father_appartment_number,c.edt.guardian_area_number=c.edt.father_area_number,c.edt.guardian_building_number=c.edt.father_building_number,c.edt.guardian_street_number=c.edt.father_street_number,c.edt.guardian_city=c.edt.father_city,c.edt.guardian_state=c.edt.father_state,c.edt.guardian_country_code=c.edt.father_country_code,c.edt.guardian_po_box=c.edt.father_po_box,c.edt.guardian_nationality1_code=c.edt.father_nationality1_code,c.edt.guardian_nationality2_code=c.edt.father_nationality2_code,c.edt.guardian_summary_address=c.edt.father_summary_address,c.edt.guardian_phone=c.edt.father_phone,c.edt.guardian_po_box=c.edt.father_po_box,c.edt.guardian_mobile=c.edt.father_mobile,c.edt.guardian_occupation=c.edt.father_occupation,c.edt.guardian_email=c.edt.father_email,c.edt.guardian_company=c.edt.father_company):(c.edt.guardian_appartment_number="",c.edt.guardian_area_number="",c.edt.guardian_building_number="",c.edt.guardian_street_number="",c.edt.guardian_city="",c.edt.guardian_state="",c.edt.guardian_country_code="",c.edt.guardian_po_box="",c.edt.guardian_nationality1_code="",c.edt.guardian_nationality2_code="",c.edt.guardian_summary_address="",c.edt.guardian_phone="",c.edt.guardian_po_box="",c.edt.guardian_mobile="",c.edt.guardian_occupation="",c.edt.guardian_email="",c.edt.guardian_company="")},c.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+=0d.pageCount()-5?d.pageCount()-5+1:t;a=new Date(e)&&new Date(moment(o.ddata_copy[a].sims_detention_transaction_created_date,"DD-MM-YYYY").format("YYYY-MM-DD"))<=new Date(t))&&o.ddata_new.push(o.ddata_copy[a]);o.ddata=o.ddata_new},o.back_data=function(){o.merit1=!1,o.short_data=!1,o.merit3=!1,o.back=!0,o.merit2=!1},o.modal_cancel=function(){o.merit3=!0,o.short_data=!0},o.save_comment=function(){n.post(_.apiUrl+"api/attendance/markAttendanceComment_update?enroll="+o.copy_comment.sims_student_enroll+"&date="+o.edt.attDate+"&comment="+o.copy_comment.sims_attendance_day_comment).then(function(e){$("#comment_dailog").modal("hide")})}}])}(),function(){"use strict";var e=angular.module("sims.module.Student");e.run(["$rootScope","$templateCache",function(e,t){e.$on("$viewContentLoaded",function(){t.removeAll()})}]),e.controller("RecruitmentDashboardCont",["$scope","$state","$rootScope","$stateParams","$timeout","gettextCatalog","$http","$filter","ENV",function(m,a,s,e,t,o,l,n,u){m.display=!0,m.grid=!0,m.pagesize="5",m.pageindex="1",m.pagesize1="5",m.pageindex1="1",m.pagesize2="5",m.pageindex2="1",m.pagesize3="5",m.pageindex3="1",m.pagesize4="5",m.pageindex4="1",m.pagesize5="5",m.pageindex5="1",m.flag=!0,m.btn_selected=!1,m.dash=[],m.view=[],m.screen_datails=[],m.Upload_doc_datails=[];var i,d=[],r=(m.btn_prospect=!0,m.btn_edit=!0,m.btn_reject=!0,m.click=!1,m.btn_visible=null,m.gender=null,m.btn_nationality=null,m.btn_emp=[],m.btn_siblingenroll=[],m.maingrid2=!0,m.temp1={adm_no:"",first_name1:""},[]),c=(m.filesize=!0,new Date,m.ddMMyyyy=n("date")(new Date,"dd-MM-yyyy"),m.email={sims_msg_subject:void 0},m.once=!0,e.Class);m.filteredTodos1=[],m.currentPage1=1,m.numPerPage1=5,m.maxSize1=5,m.filteredTodos2=[],m.currentPage2=1,m.numPerPage2=5,m.maxSize2=5,m.filteredTodos3=[],m.currentPage3=1,m.numPerPage3=5,m.maxSize3=5,m.filteredTodos4=[],m.currentPage4=1,m.numPerPage4=5,m.maxSize4=5,m.filteredTodos5=[],m.currentPage5=1,m.numPerPage5=5,m.maxSize5=5,m.docurl=u.docUrl+l.defaults.headers.common.schoolId,"geis"==l.defaults.headers.common.schoolId?m.lbl_nationalid="Civil ID":m.lbl_nationalid="National ID",m.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("Div21").innerHTML],{type:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet;charset=utf-8"}),saveAs(e,"Report.xls"))})},t(function(){$("#fixedtable,#fixedtable4").tableHeadFixer({top:1})},100),m.sortBy=function(e){m.reverse=m.propertyName===e&&!m.reverse,m.propertyName=e},""!=c&&(m.edt={curr_code:c.curr_code,academic_year:c.academic_year,grade_code:c.grade_code,sims_appl_parameter_reg:c.sims_appl_parameter_reg}),m.printDetails=function(t){l.get(u.apiUrl+"api/common/AdmissionDashboard_dpsdNew/GetAdm_dashRpt").then(function(e){m.reportparameter=e.data;e={location:e.data,parameter:{admission_no:t},state:"main.Dasdps",ready:function(){this.refreshReport()}};window.localStorage.ReportDetails=JSON.stringify(e),a.go("main.ReportCardParameter")})},m.ConfirmprintDetails=function(e){console.log(e);e={location:"Sims.SMR107",parameter:{AdmissionNo:e},state:"main.Dasdps",ready:function(){this.refreshReport()}};console.log(e),window.localStorage.ReportDetails=JSON.stringify(e),a.go("main.ReportCardParameter")},m.size3=function(e){m.itemsPerPage3=e},m.range3=function(){for(var e=[],t=m.currentPage3,a=t=t>m.pageCount3()-5?m.pageCount3()-5+1:t;a"+e+''+t+""),s.close(),a.focus())})}}])}(),function(){"use strict";var m,e=angular.module("sims.module.Student");e.run(["$rootScope","$templateCache",function(e,t){e.$on("$viewContentLoaded",function(){t.removeAll()})}]),e.directive("ngFiles",["$parse",function(o){return{link:function(t,e,a){var s=o(a.ngFiles);e.on("change",function(e){s(t,{$files:e.target.files})})}}}]),e.controller("StudentDatabaseLeamsCont",["$scope","$state","$rootScope","$timeout","gettextCatalog","$http","$filter","ENV",function(_,e,s,t,a,i,o,d){d.docUrl="https://assets.mograsys.com/Content/",_.defaultImage="default.jpg",_.imageUrl_public=d.docUrl+i.defaults.headers.common.schoolId,_.Restriction=!0,_.demo=!0,_.readonlyParentLoginCode=!0,_.table1=!0,_.hide=!0,_.EmploymentNo=!0,_.editmode=!1;var n,r,c=new FormData;_.read1=!0,_.read2=!0,_.read3=!0,_.read4=!0,_.read5=!0,_.Medication=!0,_.Disability=!0,_.Hearing=!0,_.Vision=!0,_.Other=!0,_.student_info={},_.dynamicLableFlag=!1,_.sisCollegeLableFlag=!1,_.motherTongueMandatory=!1,_.mobileNoPrefixGES=!1,_.mobileNoPrefixOES=!1,_.docurl=d.docUrl+i.defaults.headers.common.schoolId,_.stud_of_deter=!0,_.stu_sen=!1,_.stud_of_sod=!0,_.emiratii=!0,_.arabb=!0,_.ampsdemo=!0,_.mothertounge=!1,"svs"==i.defaults.headers.common.schoolId?_.mothertounge=!0:_.mothertounge=!1,"amps"==i.defaults.headers.common.schoolId?_.ampsdemo=!1:_.ampsdemo=!0,"ihsonlineom"!=i.defaults.headers.common.schoolId&&"ihsonlineag"!=i.defaults.headers.common.schoolId&&"iisonlinedso"!=i.defaults.headers.common.schoolId&&"mstagingom"!=i.defaults.headers.common.schoolId&&"mstagingag"!=i.defaults.headers.common.schoolId&&"mstagingdso"!=i.defaults.headers.common.schoolId||(_.flg_ihs=!0);_.img_url_path=d.docUrl+i.defaults.headers.common.schoolId+"/","corvuss"==i.defaults.headers.common.schoolId||"seps"==i.defaults.headers.common.schoolId?(_.emiratii=!1,_.arabb=!1):(_.emiratii=!0,_.arabb=!0),"nas"==i.defaults.headers.common.schoolId&&(_.stud_of_deter=!1,_.stu_sen=!0),"aisdxb"!=i.defaults.headers.common.schoolId&&"tiadxb"!=i.defaults.headers.common.schoolId&&"tiashj"!=i.defaults.headers.common.schoolId&&"tosdxb"!=i.defaults.headers.common.schoolId&&"staging1"!=i.defaults.headers.common.schoolId&&"staging2"!=i.defaults.headers.common.schoolId&&"staging3"!=i.defaults.headers.common.schoolId&&"staging4"!=i.defaults.headers.common.schoolId||(_.stud_of_sod=!1,_.stu_sen=!0),"siserp"==i.defaults.headers.common.schoolId&&(_.emiratesbtnshow=!0),"eiama"==i.defaults.headers.common.schoolId||"eiam"==i.defaults.headers.common.schoolId||"eiand"==i.defaults.headers.common.schoolId||"oes"==i.defaults.headers.common.schoolId?(_.joined_date=!1,_.commenced_date=!1,$(document).ready(function(){$("#dp_start_date").kendoDatePicker(),$("#f_date").kendoDatePicker(),$("#dp_start_date").data("kendoDatePicker").enable(!0),$("#f_date").data("kendoDatePicker").enable(!0)})):(_.joined_date=!0,_.commenced_date=!0,$(document).ready(function(){$("#dp_start_date").kendoDatePicker(),$("#f_date").kendoDatePicker(),$("#dp_start_date").data("kendoDatePicker").enable(!1),$("#f_date").data("kendoDatePicker").enable(!1)})),"nas"==i.defaults.headers.common.schoolId?$(document).ready(function(){$("#f_date").kendoDatePicker(),$("#f_date").data("kendoDatePicker").enable(!0)}):$(document).ready(function(){$("#f_date").kendoDatePicker(),$("#f_date").data("kendoDatePicker").enable(!1)}),"siscollege"==i.defaults.headers.common.schoolId||"svcc"==i.defaults.headers.common.schoolId?(_.nationalIdLabelDetails="Aadhar Id Details",_.nationalIdLabel="Aadhar Id"):"pearl"==i.defaults.headers.common.schoolId?(_.nationalIdLabelDetails="Qatar Id Details",_.nationalIdLabel="Qatar Id"):(_.nationalIdLabelDetails="National Id Details",_.nationalIdLabel="National Id"),"iis"==i.defaults.headers.common.schoolId&&(_.motherTongueMandatory=!0),"ges"==i.defaults.headers.common.schoolId?(_.mobileNoPrefixGES=!0,_.mobileNoPrefixOES=!1):"oes"==i.defaults.headers.common.schoolId?(_.mobileNoPrefixOES=!0,_.mobileNoPrefixGES=!1):(_.mobileNoPrefixGES=!1,_.mobileNoPrefixOES=!1),_.getdemocode1=function(){i.get(d.apiUrl+"api/studentdatabase/getdemo").then(function(e){_.demo_values=e.data})},_.getcode1=function(){i.get(d.apiUrl+"api/studentdatabase/getisdd?country_code="+_.parent_info.sims_admission_father_code).then(function(e){_.isdcode1=e.data,null!=_.parent_info.sims_admission_father_mobile&&"-"!=_.parent_info.sims_admission_father_mobile&&(null!=_.oldisdcode?(_.parent_info.sims_admission_father_mobile=_.parent_info.sims_admission_father_mobile,_.parent_info.sims_admission_father_mobile=_.parent_info.sims_admission_father_mobile.replace(_.oldisdcode,_.isdcode1[0].sims_country_isd_code)):_.parent_info.sims_admission_father_mobile=_.parent_info.sims_admission_father_mobile),_.olisdcode()}),i.get(d.apiUrl+"api/studentdatabase/getisdd?country_code="+_.parent_info.sims_admission_father_phone_code).then(function(e){_.isdcode2=e.data,"-"!=_.parent_info.sims_admission_father_phone&&null!=_.parent_info.sims_admission_father_phone&&(null!=_.oldisdcode?(_.parent_info.sims_admission_father_phone=_.parent_info.sims_admission_father_phone,_.parent_info.sims_admission_father_phone=_.parent_info.sims_admission_father_phone.replace(_.oldisdcode,_.isdcode2[0].sims_country_isd_code)):_.parent_info.sims_admission_father_phone=_.isdcode2[0].sims_country_isd_code+_.parent_info.sims_admission_father_phone),_.olisdcode()})},_.olisdcode=function(){0<_.isdcode1.length&&(_.oldisdcode=_.isdcode1[0].sims_country_isd_code)},_.getmothercode=function(){i.get(d.apiUrl+"api/studentdatabase/getisdd?country_code="+_.parent_info.sims_admission_mother_code).then(function(e){_.motherisdcode=e.data,null!=_.parent_info.sims_admission_mother_mobile&&"-"!=_.parent_info.sims_admission_mother_mobile&&(null!=_.olisdcodemother?(_.parent_info.sims_admission_mother_mobile=_.parent_info.sims_admission_mother_mobile,_.parent_info.sims_admission_mother_mobile=_.parent_info.sims_admission_mother_mobile.replace(_.olisdcodemother,_.motherisdcode[0].sims_country_isd_code)):_.parent_info.sims_admission_mother_mobile=_.parent_info.sims_admission_mother_mobile),_.oldisdcodemother()}),i.get(d.apiUrl+"api/studentdatabase/getisdd?country_code="+_.parent_info.sims_admission_mother_phone_code).then(function(e){_.motherisdcode1=e.data,"-"!=_.parent_info.sims_admission_mother_phone&&null!=_.parent_info.sims_admission_mother_phone&&(null!=_.oldisdcode?(_.parent_info.sims_admission_mother_phone=_.parent_info.sims_admission_father_phone,_.parent_info.sims_admission_mother_phone=_.parent_info.sims_admission_mother_phone.replace(_.olisdcodemother,_.motherisdcode1[0].sims_country_isd_code)):_.parent_info.sims_admission_mother_phone=_.parent_info.sims_admission_mother_phone),_.oldisdcodemother()})},_.oldisdcodemother=function(){0<_.motherisdcode.length&&(_.olisdcodemother=_.motherisdcode[0].sims_country_isd_code)},_.getguardiancode=function(){i.get(d.apiUrl+"api/studentdatabase/getisdd?country_code="+_.parent_info.sims_admission_guardian_code).then(function(e){_.isdcodeguard=e.data,null!=_.parent_info.sims_admission_guardian_mobile&&"-"!=_.parent_info.sims_admission_guardian_mobile&&(null!=_.oldisdcodeguard?(_.parent_info.sims_admission_guardian_mobile=_.parent_info.sims_admission_guardian_mobile,_.parent_info.sims_admission_guardian_mobile=_.parent_info.sims_admission_guardian_mobile.replace(_.oldisdcodeguard,_.isdcodeguard[0].sims_country_isd_code)):_.parent_info.sims_admission_guardian_mobile=_.parent_info.sims_admission_guardian_mobile,_.oldguardisdcode()),_.oldguardisdcode()}),i.get(d.apiUrl+"api/studentdatabase/getisdd?country_code="+_.parent_info.sims_admission_guardian_phone_code).then(function(e){_.isdcodeguard1=e.data,"-"!=_.parent_info.sims_admission_guardian_phone&&null!=_.parent_info.sims_admission_guardian_phone&&(null!=_.oldisdcodeguard?(_.parent_info.sims_admission_guardian_phone=_.parent_info.sims_admission_guardian_phone,_.parent_info.sims_admission_guardian_phone=_.parent_info.sims_admission_guardian_phone.replace(_.oldisdcodeguard,_.isdcodeguard1[0].sims_country_isd_code)):_.parent_info.sims_admission_guardian_phone=_.parent_info.sims_admission_guardian_phone,_.oldguardisdcode())})},_.oldguardisdcode=function(){0<_.isdcodeguard.length&&(_.oldisdcodeguard=_.isdcodeguard[0].sims_country_isd_code)},_.emergency_phone1=function(){i.get(d.apiUrl+"api/studentdatabase/getisdd?country_code="+_.student_info.sims_emergency_phone_code1).then(function(e){_.get_phonecode=e.data,null!=_.student_info.sims_student_emergency_contact_number1&&"-"!=_.student_info.sims_student_emergency_contact_number1&&(null!=_.olisdcode_emergency?(_.student_info.sims_student_emergency_contact_number1=_.student_info.sims_student_emergency_contact_number1,_.student_info.sims_student_emergency_contact_number1=_.student_info.sims_student_emergency_contact_number1.replace(_.olisdcode_emergency,_.get_phonecode[0].sims_country_isd_code)):_.student_info.sims_student_emergency_contact_number1=_.student_info.sims_student_emergency_contact_number1),_.olisdcode_emergencyphone()})},_.olisdcode_emergencyphone=function(){0<_.get_phonecode.length&&(_.olisdcode_emergency=_.get_phonecode[0].sims_country_isd_code)},_.emergency_phone2=function(){i.get(d.apiUrl+"api/studentdatabase/getisdd?country_code="+_.student_info.sims_emergency_phone_code2).then(function(e){_.get_phonecode=e.data,null!=_.student_info.sims_student_emergency_contact_number2&&"-"!=_.student_info.sims_student_emergency_contact_number2&&(null!=_.olisdcode_emergency1?(_.student_info.sims_student_emergency_contact_number2=_.student_info.sims_student_emergency_contact_number2,_.student_info.sims_student_emergency_contact_number2=_.student_info.sims_student_emergency_contact_number2.replace(_.olisdcode_emergency1,_.get_phonecode[0].sims_country_isd_code)):_.student_info.sims_student_emergency_contact_number2=_.student_info.sims_student_emergency_contact_number2),_.olisdcode_emergencyphone2()})},_.olisdcode_emergencyphone2=function(){0<_.get_phonecode.length&&(_.olisdcode_emergency1=_.get_phonecode[0].sims_country_isd_code)},i.get(d.apiUrl+"api/common/Admission_dpsd/getAdmissionList").then(function(e){_.adm_cmb_lst=angular.copy(e.data),_.obj=e.data}),_.globalSearch=function(){s.visible_stud=!0,s.visible_parent=!1,s.visible_search_parent=!1,s.visible_teacher=!1,s.visible_User=!1,s.visible_Employee=!1,s.chkMulti=!1,_.global_Search_click(),$("#Global_Search_Modal").modal({backdrop:"static"}),_.enrollno=""},_.$on("global_cancel",function(e){0<_.SelectedUserLst.length&&(_.enrollno=_.SelectedUserLst[0].s_enroll_no,_.SearchStudentData())}),_.searchGlobalClick=function(){_.Global_Search_by_student()},_.getdemocode1(),i.get(d.apiUrl+"api/common/getAllComboBoxValues?academicYear=2016&routeCode=01").then(function(e){_.ComboBoxValues=e.data,_.temp={sims_academic_year:_.ComboBoxValues[0].sims_acadmic_year,s_cur_code:_.ComboBoxValues[0].sims_cur_code}}),_.access_nos=function(e){"Enter"==e.key&&_.SearchStudentData()},i.get(d.apiUrl+"api/studentdatabase/").then(function(e){_.lbl=e.data,_.lbl_no=_.lbl[0].sims_student_lbl}),i.get(d.apiUrl+"api/studentdatabase/getSalutation").then(function(e){_.Salutations=e.data}),i.get(d.apiUrl+"api/studentdatabase/getSEN").then(function(e){_.Sen_values=e.data}),i.get(d.apiUrl+"api/studentdatabase/getGifted").then(function(e){_.gift_values=e.data}),i.get(d.apiUrl+"api/studentdatabase/getTalented").then(function(e){_.talent_values=e.data}),i.get(d.apiUrl+"api/studentdatabase/GetPreviousSchool").then(function(e){_.prevSchools=e.data}),_.SearchStudentData=function(){var e;$(document).ready(function(){$(window).keydown(function(e){if(13==e.keyCode)return e.preventDefault(),!1})}),null==_.enrollno||""==_.enrollno||null==_.enrollno?(_.demo=!1,$(document).ready(function(){$("#studDOB").kendoDatePicker({format:"dd-MM-yyyy"}),$("#studDOB").data("studDOB").enable(!0)}),$(document).ready(function(){$("#dp_start_date").kendoDatePicker({format:"dd-MM-yyyy"}),$("#dp_start_date").data("dp_start_date").enable(!0)}),$(document).ready(function(){$("#f_date").kendoDatePicker({format:"dd-MM-yyyy"}),$("#f_date").data("f_date").enable(!0)}),$(document).ready(function(){$("#st_startdate").kendoDatePicker({format:"dd-MM-yyyy"}),$("#st_startdate").data("st_startdate").enable(!0)}),$(document).ready(function(){$("#trans_expiry_date").kendoDatePicker({format:"dd-MM-yyyy"}),$("#trans_expiry_date").data("trans_expiry_date").enable(!0)}),$(document).ready(function(){$("#dp_visa_issue_date").kendoDatePicker({format:"dd-MM-yyyy"}),$("#dp_visa_issue_date").data("dp_visa_issue_date").enable(!0)}),$(document).ready(function(){$("#dp_visa_expiry_date").kendoDatePicker({format:"dd-MM-yyyy"}),$("#dp_visa_expiry_date").data("dp_visa_expiry_date").enable(!0)}),$(document).ready(function(){$("#dp_national_issue_date").kendoDatePicker({format:"dd-MM-yyyy"}),$("#dp_national_issue_date").data("dp_national_issue_date").enable(!0)}),$(document).ready(function(){$("#dp_national_expiry_date").kendoDatePicker({format:"dd-MM-yyyy"}),$("#dp_national_expiry_date").data("dp_national_expiry_date").enable(!0)}),$(document).ready(function(){$("#joineddate").kendoDatePicker({format:"dd-MM-yyyy"}),$("#joineddate").data("joineddate").enable(!0)}),$(document).ready(function(){$("#start_date").kendoDatePicker({format:"dd-MM-yyyy"}),$("#start_date").data("start_date").enable(!0)}),$(document).ready(function(){$("#expiry_date").kendoDatePicker({format:"dd-MM-yyyy"}),$("#expiry_date").data("expiry_date").enable(!0)}),$(document).ready(function(){$("#passport_issue_date").kendoDatePicker({format:"dd-MM-yyyy"}),$("#passport_issue_date").data("passport_issue_date").enable(!0)}),$(document).ready(function(){$("#passport_expiry_date").kendoDatePicker({format:"dd-MM-yyyy"}),$("#passport_expiry_date").data("passport_expiry_date").enable(!0)}),$(document).ready(function(){$("#id_issue_date").kendoDatePicker({format:"dd-MM-yyyy"}),$("#id_issue_date").data("id_issue_date").enable(!0)}),$(document).ready(function(){$("#expiry_date1").kendoDatePicker({format:"dd-MM-yyyy"}),$("#expiry_date1").data("expiry_date1").enable(!0)}),$(document).ready(function(){$("#MothNatIssueDate").kendoDatePicker({format:"dd-MM-yyyy"}),$("#MothNatIssueDate").data("MothNatIssueDate").enable(!0)}),$(document).ready(function(){$("#MothNatExpDate").kendoDatePicker({format:"dd-MM-yyyy"}),$("#MothNatExpDate").data("MothNatExpDate").enable(!0)}),$(document).ready(function(){$("#created_date").kendoDatePicker({format:"dd-MM-yyyy"}),$("#created_date").data("created_date").enable(!0)}),$(document).ready(function(){$("#dp_expiry_date1").kendoDatePicker({format:"dd-MM-yyyy"}),$("#dp_expiry_date1").data("dp_expiry_date1").enable(!0)}),$(document).ready(function(){$("#issuedate").kendoDatePicker({format:"dd-MM-yyyy"}),$("#issuedate").data("issuedate").enable(!0)}),$(document).ready(function(){$("#dp_expiry_date2").kendoDatePicker({format:"dd-MM-yyyy"}),$("#dp_expiry_date2").data("dp_expiry_date2").enable(!0)}),$(document).ready(function(){$("#issuedate1").kendoDatePicker({format:"dd-MM-yyyy"}),$("#issuedate1").data("issuedate1").enable(!0)}),$(document).ready(function(){$("#dp_expiry_date").kendoDatePicker({format:"dd-MM-yyyy"}),$("#dp_expiry_date").data("dp_expiry_date").enable(!0)}),$(document).ready(function(){$("#creation_start_date").kendoDatePicker({format:"dd-MM-yyyy"}),$("#creation_start_date").data("creation_start_date").enable(!0)}),_.searchtable=!1,_.readonlyParentLoginCode=!0,$('.nav-tabs a[href="#personal_information"]').tab("show"),_.Myform.$setPristine(),_.Myform.$setUntouched(),s.visible_stud=!0,s.visible_parent=!1,s.visible_search_parent=!1,s.visible_teacher=!1,s.visible_User=!1,s.visible_Employee=!1,s.chkMulti=!1,_.global_Search_click(),$("#Global_Search_Modal").modal({backdrop:"static"}),i.get(d.apiUrl+"api/common/getAllComboBoxValues?academicYear=2016&routeCode=01").then(function(e){_.ComboBoxValues=e.data,_.temp={sims_academic_year:_.ComboBoxValues[0].sims_acadmic_year,s_cur_code:_.ComboBoxValues[0].sims_cur_code}}),_.student=[],_.enrollno="",_.temp.search_std_grade_name="",_.temp.search_std_section_name="",_.temp.search_std_passport_no="",_.temp.search_std_family_name="",_.temp.sims_nationality_name_en="",_.temp.std_national_id="",_.temp.s_cur_code="",_.temp.sims_academic_year=""):(_.demo=!1,$(document).ready(function(){$("#studDOB").kendoDatePicker({format:"dd-MM-yyyy"}),$("#studDOB").data("studDOB").enable(!0)}),$(document).ready(function(){$("#dp_start_date").kendoDatePicker({format:"dd-MM-yyyy"}),$("#dp_start_date").data("dp_start_date").enable(!0)}),$(document).ready(function(){$("#f_date").kendoDatePicker({format:"dd-MM-yyyy"}),$("#f_date").data("f_date").enable(!0)}),$(document).ready(function(){$("#st_startdate").kendoDatePicker({format:"dd-MM-yyyy"}),$("#st_startdate").data("st_startdate").enable(!0)}),$(document).ready(function(){$("#trans_expiry_date").kendoDatePicker({format:"dd-MM-yyyy"}),$("#trans_expiry_date").data("trans_expiry_date").enable(!0)}),$(document).ready(function(){$("#dp_visa_issue_date").kendoDatePicker({format:"dd-MM-yyyy"}),$("#dp_visa_issue_date").data("dp_visa_issue_date").enable(!0)}),$(document).ready(function(){$("#dp_visa_expiry_date").kendoDatePicker({format:"dd-MM-yyyy"}),$("#dp_visa_expiry_date").data("dp_visa_expiry_date").enable(!0)}),$(document).ready(function(){$("#dp_national_issue_date").kendoDatePicker({format:"dd-MM-yyyy"}),$("#dp_national_issue_date").data("dp_national_issue_date").enable(!0)}),$(document).ready(function(){$("#dp_national_expiry_date").kendoDatePicker({format:"dd-MM-yyyy"}),$("#dp_national_expiry_date").data("dp_national_expiry_date").enable(!0)}),$(document).ready(function(){$("#joineddate").kendoDatePicker({format:"dd-MM-yyyy"}),$("#joineddate").data("joineddate").enable(!0)}),$(document).ready(function(){$("#start_date").kendoDatePicker({format:"dd-MM-yyyy"}),$("#start_date").data("start_date").enable(!0)}),$(document).ready(function(){$("#expiry_date").kendoDatePicker({format:"dd-MM-yyyy"}),$("#expiry_date").data("expiry_date").enable(!0)}),$(document).ready(function(){$("#passport_issue_date").kendoDatePicker({format:"dd-MM-yyyy"}),$("#passport_issue_date").data("passport_issue_date").enable(!0)}),$(document).ready(function(){$("#passport_expiry_date").kendoDatePicker({format:"dd-MM-yyyy"}),$("#passport_expiry_date").data("passport_expiry_date").enable(!0)}),$(document).ready(function(){$("#id_issue_date").kendoDatePicker({format:"dd-MM-yyyy"}),$("#id_issue_date").data("id_issue_date").enable(!0)}),$(document).ready(function(){$("#expiry_date1").kendoDatePicker({format:"dd-MM-yyyy"}),$("#expiry_date1").data("expiry_date1").enable(!0)}),$(document).ready(function(){$("#MothNatIssueDate").kendoDatePicker({format:"dd-MM-yyyy"}),$("#MothNatIssueDate").data("MothNatIssueDate").enable(!0)}),$(document).ready(function(){$("#MothNatExpDate").kendoDatePicker({format:"dd-MM-yyyy"}),$("#MothNatExpDate").data("MothNatExpDate").enable(!0)}),$(document).ready(function(){$("#created_date").kendoDatePicker({format:"dd-MM-yyyy"}),$("#created_date").data("created_date").enable(!0)}),$(document).ready(function(){$("#dp_expiry_date1").kendoDatePicker({format:"dd-MM-yyyy"}),$("#dp_expiry_date1").data("dp_expiry_date1").enable(!0)}),$(document).ready(function(){$("#issuedate").kendoDatePicker({format:"dd-MM-yyyy"}),$("#issuedate").data("issuedate").enable(!0)}),$(document).ready(function(){$("#dp_expiry_date2").kendoDatePicker({format:"dd-MM-yyyy"}),$("#dp_expiry_date2").data("dp_expiry_date2").enable(!0)}),$(document).ready(function(){$("#issuedate1").kendoDatePicker({format:"dd-MM-yyyy"}),$("#issuedate1").data("issuedate1").enable(!0)}),$(document).ready(function(){$("#dp_expiry_date").kendoDatePicker({format:"dd-MM-yyyy"}),$("#dp_expiry_date").data("dp_expiry_date").enable(!0)}),$(document).ready(function(){$("#creation_start_date").kendoDatePicker({format:"dd-MM-yyyy"}),$("#creation_start_date").data("creation_start_date").enable(!0)}),_.readonlyParentLoginCode=!0,_.parent_info={},_.medical_info={},_.student_info={},_.Sibling_Details=[],_.sims_student_image="",_.sims_admisison_father_image="",_.sims_admisison_mother_image="",_.sims_admisison_guardian_image="",("0"+(e=new Date).getDate()).slice(-2),("0"+(e.getMonth()+1)).slice(-2),e.getFullYear(),i.get(d.apiUrl+"api/studentdatabase/getSEN").then(function(e){_.Sen_values=e.data}),i.get(d.apiUrl+"api/studentdatabase/getGifted").then(function(e){_.gift_values=e.data}),i.get(d.apiUrl+"api/studentdatabase/getTalented").then(function(e){_.talent_values=e.data}),i.get(d.apiUrl+"api/studentdatabase/get_Sims_Student_DetailsLeams?enroll_no="+_.enrollno).then(function(e){if(_.student_data=e.data,_.sims_student_sports_desc=_.student_data[0].sims_student_sports_desc,0==_.student_data.length)return swal({text:"Student ID not found",width:300,showCloseButton:!0,timer:4e3}),!1;_.student_info=_.student_data[0];i.get(d.apiUrl+"api/student/UploadRemainingDocument/GetCriteriaNameNew?student_roll_number="+_.enrollno).then(function(e){_.Upload_doc_datails=e.data;for(var t=0;t<_.Upload_doc_datails.length;t++)_.Upload_doc_datails[t]=e.data[t],_.visible=[],_.visible=e.data[t].sims_admission_doc_path.split(","),_.Upload_doc_datails[t].path=_.visible}),["sms","sis"].includes(i.defaults.headers.common.schoolId)&&(null==_.student_data[0].sims_student_primary_contact_pref||""==_.student_data[0].sims_student_primary_contact_pref||null==_.student_data[0].sims_student_primary_contact_pref?_.student_info.sims_student_primary_contact_pref="F":_.student_info.sims_student_primary_contact_pref=_.student_data[0].sims_student_primary_contact_pref),_.MusicProficiency(_.student_info.sims_student_music_status),_.LanguageSupportStatus(_.student_info.sims_student_language_support_status),_.BehaviourStatus(_.student_info.sims_student_behaviour_status),_.sims_student_image=d.docUrl+i.defaults.headers.common.schoolId+"/Images/StudentImages/"+_.student_info.sims_student_image}),i.get(d.apiUrl+"api/studentdatabase/get_Sims_Sibling_Details?enroll_no="+_.enrollno).then(function(e){_.Sibling_Details=e.data}),i.get(d.apiUrl+"api/studentdatabase/get_Student_Medical_Details?enroll_no="+_.enrollno).then(function(e){_.Medical_Details=e.data,_.medical_info={},0<_.Medical_Details.length?_.medical_info=_.Medical_Details[0]:_.medical_info.student_enroll_no=_.enrollno,_.MedicationStatus(_.medical_info.sims_medication_status),_.DisabilityStatus(_.medical_info.sims_disability_status),_.RestrictionStatus(_.medical_info.student_health_restriction_status),_.HearingStatus(_.medical_info.sims_health_hearing_status),_.VisionStatus(_.medical_info.sims_health_vision_status),_.OtherStatus(_.medical_info.sims_health_other_status)}),i.get(d.apiUrl+"api/studentdatabase/getParentDetails?enroll_no="+_.enrollno).then(function(e){_.Parent_Details=e.data,_.parent_info=e.data[0],_.getstatefather(),_.getcityfather(),""!=_.parent_info.sims_admission_father_country_code&&_.getcode1(),""!=_.parent_info.sims_admission_mother_country_code&&_.getmothercode(),""!=_.parent_info.sims_admission_guardian_country_code&&_.getguardiancode(),_.isparentschoolemployee(_.parent_info.sims_parent_is_employment_status),_.student_father_image=d.docUrl+i.defaults.headers.common.schoolId+"/Images/ParentImages/"+_.parent_info.sims_admisison_father_image,_.student_mother_image=d.docUrl+i.defaults.headers.common.schoolId+"/Images/ParentImages/"+_.parent_info.sims_admisison_mother_image,_.student_guardian_image1=d.docUrl+i.defaults.headers.common.schoolId+"/Images/ParentImages/"+_.parent_info.sims_admisison_guardian_image,null==_.Parent_Details[0].sims_admission_father_salutation_code||""==_.Parent_Details[0].sims_admission_father_salutation_code||null==_.Parent_Details[0].sims_admission_father_salutation_code?_.parent_info.sims_admission_father_salutation_code="Mr.":_.parent_info.sims_admission_father_salutation_code=_.Parent_Details[0].sims_admission_father_salutation_code,null==_.Parent_Details[0].sims_admission_mother_salutation_code||""==_.Parent_Details[0].sims_admission_mother_salutation_code||null==_.Parent_Details[0].sims_admission_mother_salutation_code?_.parent_info.sims_admission_mother_salutation_code="Mrs.":_.parent_info.sims_admission_mother_salutation_code=_.Parent_Details[0].sims_admission_mother_salutation_code,null==_.Parent_Details[0].sims_admission_guardian_salutation_code||""==_.Parent_Details[0].sims_admission_guardian_salutation_code||null==_.Parent_Details[0].sims_admission_guardian_salutation_code?_.parent_info.sims_admission_guardian_salutation_code="Mr.":_.parent_info.sims_admission_guardian_salutation_code=_.Parent_Details[0].sims_admission_guardian_salutation_code,_.parent_info.sims_admission_guardian_area_number=_.Parent_Details[0].sims_admission_guardian_area_number,_.parent_info.sims_municipality_name_en=_.Parent_Details[0].sims_admission_mother_area_number}))},_.SaveStudent_data=function(e){null!=_.student_info?e?($('.nav-tabs a[href="#personal_information"]').tab("show"),"ihsonlineom"==i.defaults.headers.common.schoolId||"ihsonlineag"==i.defaults.headers.common.schoolId||"iisonlinedso"==i.defaults.headers.common.schoolId||"mstagingom"==i.defaults.headers.common.schoolId||"mstagingag"==i.defaults.headers.common.schoolId||"mstagingdso"==i.defaults.headers.common.schoolId?i.post(d.apiUrl+"api/studentdatabase/UpdateSims_Student_DetailsLeams1",_.student_info).then(function(e){_.msgstr=e.data}):i.post(d.apiUrl+"api/studentdatabase/UpdateSims_Student_DetailsLeams",_.student_info).then(function(e){_.msgstr=e.data}),i.post(d.apiUrl+"api/studentdatabase/update_Student_Medical_Details",_.medical_info).then(function(e){_.msgstr3=e.data}),i.post(d.apiUrl+"api/studentdatabase/UpdateSims_Parent_Details",_.parent_info).then(function(e){_.msgstr2=e.data,setTimeout(function(){1==_.msgstr&&1==_.msgstr2&&1==_.msgstr3?swal({text:"Student Data Updated Successfully Parent Data Updated Successfully Student Medical Data Updated Successfully",width:420,showCloseButton:!0,timer:3e3}):0==_.msgstr&&0==_.msgstr2&&0==_.msgstr3?swal({text:"Student Data Not Updated Parent Data Not Updated Student Medical Data Not Updated",width:420,showCloseButton:!0,timer:3e3}):1==_.msgstr&&1==_.msgstr2&&0==_.msgstr3?swal({text:"Student Data Updated Successfully Parent Data Updated Successfully Student Medical Data Not Updated",width:420,showCloseButton:!0,timer:3e3}):0==_.msgstr&&1==_.msgstr2&&0==_.msgstr3?swal({text:"Student Data Not Updated Parent Data Updated Successfully Student Medical Data Not Updated",width:420,showCloseButton:!0,timer:3e3}):0==_.msgstr&&0==_.msgstr2&&1==_.msgstr3?swal({text:"Student Data Not Updated Parent Data Not Updated Student Medical Data Updated Successfully",width:420,showCloseButton:!0,timer:3e3}):1==_.msgstr&&0==_.msgstr2&&1==_.msgstr3?swal({text:"Student Data Updated Successfully Parent Data Not Updated Student Medical Data Updated Successfully",width:420,showCloseButton:!0,timer:3e3}):1==_.msgstr&&0==_.msgstr2&&0==_.msgstr3?swal({text:"Student Data Updated Successfully Parent Data Not Updated Student Medical Data Not Updated",width:420,showCloseButton:!0,timer:3e3}):0==_.msgstr&&1==_.msgstr2&&1==_.msgstr3&&swal({text:"Student Data Updated Parent Data Updated Successfully Student Medical Data Updated Successfully",width:420,showCloseButton:!0,timer:3e3})},10),_.student_info={},_.parent_info={},_.medical_info={},_.Myform.$setPristine(),_.Myform.$setUntouched(),_.parent_info=[],_.medical_info=[],_.student_info=[],_.Sibling_Details=[],_.father_photo="",_.mother_photo="",_.guardian_photo="",_.enrollno="",_.sims_student_photo="",_.sims_admisison_father_image="",_.sims_admisison_mother_image="",_.sims_admisison_guardian_image="",_.sims_student_image="",_.student_info.sims_student_image="",_.parent_info.sims_admisison_father_image="",_.parent_info.sims_admisison_guardian_image="",_.parent_info.sims_admisison_mother_image="",_.demo=!0,document.getElementById("chk_company_emp").checked})):swal({text:"Fill required fields",width:300,showCloseButton:!0}):swal({text:"Fields Are Empty",width:300,showCloseButton:!0})},t(function(){$("#fixTable").tableHeadFixer({top:1})},100),_.IsCompanyEmployee=function(){1==document.getElementById("chk_company_emp").checked?document.getElementById("cmb_company_emp").disabled=!1:(document.getElementById("cmb_company_emp").disabled=!0,document.getElementById(""))},_.GiftedStatus=function(e){_.read1=!e},_.MusicProficiency=function(e){_.read2=!e},_.SportStatus=function(e){_.read3=!e},_.LanguageSupportStatus=function(e){_.read4=!e},_.BehaviourStatus=function(e){_.read5=!e},_.MedicationStatus=function(e){_.Medication=!e},_.DisabilityStatus=function(e){_.Disability=!e},_.RestrictionStatus=function(e){_.Restriction=!e},_.HearingStatus=function(e){_.Hearing=!e},_.VisionStatus=function(e){_.Vision=!e},_.OtherStatus=function(e){_.Other=!e},_.getstatefather=function(){i.get(d.apiUrl+"api/State/getState").then(function(e){_.stt=e.data})},_.getcityfather=function(){i.get(d.apiUrl+"api/CityMaster/getCity").then(function(e){_.ctt=e.data})},_.getstatemother=function(e){i.get(d.apiUrl+"api/HRMS/emp/getState?em_Country_Code="+e).then(function(e){_.mst=e.data})},_.getcitymother=function(e){i.get(d.apiUrl+"api/HRMS/emp/getCity?em_State_Code="+e).then(function(e){_.mct=e.data})},_.getstateguardian=function(e){i.get(d.apiUrl+"api/HRMS/emp/getState?em_Country_Code="+e).then(function(e){_.gtt=e.data})},_.getcityguardian=function(e){i.get(d.apiUrl+"api/HRMS/emp/getCity?em_State_Code="+e).then(function(e){_.ctt=e.data})},_.isparentschoolemployee=function(e){e?(_.hide=!1,_.EmploymentNo=!1):(_.hide=!0,_.EmploymentNo=!0)},_.createdate=function(e,t,a){ee);)a.pop().remove();0==a.length&&s&&s.remove()}function h(i,d,e,r,c){c=c||0;var m=m||angular.element,t=(m(d.currentTarget).addClass("context"),m("
")),l=(s?t=s:s=t,t.addClass("dropdown clearfix tmy"),m('