!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 n=parseFloat(l.SelectedFees[_].FPamt)-n-parseFloat(l.pd[o].FPamt),i=(l.SelectedFees[_].chqNo=l.pd[o].chequeNo,l.SelectedFees[_].chqDate=l.pd[o].chqDate,l.SelectedFees[_].chqBank=l.pd[o].chqBank,l.SelectedFees[_].mode=l.pd[o].modeO,l.SelectedFees[_].FPamt=parseFloat(l.pd[o].FPamt),l.SelectedFees[_].TXNNo=l.pd[o].trxID,l.pd[o].feeNumber=l.SelectedFees[_].feeNumber,l.pd[o].flag=!0,l.SelectedFees[_].flag=!0,{});i.ref=l.SelectedFees[_].$$hashKey,i.pno=l.SelectedFees[_].pno,i.feeNumber=l.SelectedFees[_].feeNumber,i.ID=l.SelectedFees[_].ID,i.flag=!1,i.FD=l.SelectedFees[_].FD,i.enroll=l.SelectedFees[_].enroll,i.studCurr=l.SelectedFees[_].studCurr,i.studAcademic=l.SelectedFees[_].studAcademic,i.studGrade=l.SelectedFees[_].studGrade,i.studSection=l.SelectedFees[_].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[_].studBalanceAMT,i.FPamtORG=l.SelectedFees[_].studBalancePayingAMT,i.FPamt=n,i.FPamtINT=parseFloat(n),i.FeeCat=l.SelectedFees[_].FeeCat,i.FeeCode=l.SelectedFees[_].FeeCode,l.SelectedFees.push(i),o=a,_=s,t=!0;break}}if(t){e();break}}}();for(var o=l.SelectedFees.length,_=0;_t.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>_&&(s.s.c=_),s.e.r=t?((t=_.temp).student_name=e.student_name,t.sims_student_enroll_number=e.sims_student_enroll_number,t.classname=_.temp.sims_grade_name_en+" "+_.temp.sims_section_name_en,_.stud_obj=t,_.readonly=!0,_.stud_obj.sims_grade_code_new=_.temp.sims_grade_code,$("#myModal").modal({backdrop:"static"}),n.get(i.apiUrl+"api/common/getAllGradesFeePost?cur_code="+_.edt.sims_cur_code+"&ac_year="+_.edt.sims_academic_year).then(function(e){_.grade_names_obj=e.data,n.get(i.apiUrl+"api/student/UpdateStudentSection/getSectionFee?jsonobj="+JSON.stringify(_.temp)).then(function(e){_.section_fee_obj=e.data,_.getsectionForNIS(_.temp.sims_grade_code)})})):swal({text:"Previous years records cannot be edited",imageUrl:"assets/img/notification-alert.png",showCloseButton:!0,width:370})},_.SaveSectionDetails=function(e){var t=[];if(e){for(var a="",s=0;s<_.section_fee_obj.length;s++)1==_.section_fee_obj[s].ischecked&&(a=a+_.section_fee_obj[s].sims_fee_code+",");_.stud_obj.fee_code_list=a,t.push(_.stud_obj),$("#Div3").modal("show"),n.post(i.apiUrl+"api/student/UpdateStudentSection/StudentSectionUpdateNew",t).then(function(e){_.result=e.data,console.log(_.result),1==_.result?($("#myModal").modal("hide"),$("#Div3").modal("hide"),swal({text:"Section Updated Successfully",imageUrl:"assets/img/check.png",width:300,showCloseButton:!0}),_.getSectionDetails(_.edt.sims_cur_code,_.edt.sims_academic_year)):0==_.result?($("#myModal").modal("hide"),$("#Div3").modal("hide"),swal({text:"Section Not Updated. ",imageUrl:"assets/img/close.png",width:300,showCloseButton:!0}),_.getSectionDetails(_.edt.sims_cur_code,_.edt.sims_academic_year)):swal("Error-"+_.result)})}},a(function(){$("#Table2").tableHeadFixer({top:1})},100),a(function(){$("#fixTable").tableHeadFixer({top:1}),$("#example").tableHeadFixer({top:1})},100),a(function(){$("#fixTable").tableHeadFixer({top:1})},100),a(function(){$("#Table1").tableHeadFixer({top:1})},100),$('*[data-datepicker="true"] input[type="text"]').datepicker({todayBtn:!0,orientation:"top left",autoclose:!0,todayHighlight:!0,format:"mm/dd/yyyy"}),$(document).on("touch click",'*[data-datepicker="true"] .add-on',function(e){$('input[type="text"]',$(this).parent()).focus()}),_.ClasswiseStudentshow=function(e){_.classwise=!0,_.sectiontable=!1,_.getsections()},_.getsections=function(){n.get(i.apiUrl+"api/common/getAllGrades?cur_code="+_.edt.sims_cur_code+"&academic_year="+_.edt.sims_academic_year).then(function(e){_.grade=e.data,_.edt.sims_grade_code=_.grade[0].sims_grade_code,_.getsection()})},_.getsection=function(){n.get(i.apiUrl+"api/common/getSectionFromGrade?cur_code="+_.edt.sims_cur_code+"&grade_code="+_.edt.sims_grade_code+"&academic_year="+_.edt.sims_academic_year).then(function(e){_.section1=e.data})},_.BacktoMainForm=function(){_.Studentdata=[],_.classwise=!1},_.ShowClassWiseStudent=function(){_.sectiontable=!1,_.busy=!0,null!=_.edt.sims_grade_code?n.post(i.apiUrl+"api/student/UpdateStudentSection/classwiseStudentSectionUpdate",_.edt).then(function(e){_.Studentdata1=e.data,0<_.Studentdata1.length?(_.Studentdata=_.Studentdata1,_.sectiontable=!0,_.busy=!1,_.tablehead=_.Studentdata[0].section_list,a(function(){$("#example").tableHeadFixer({top:1})},100)):(_.busy=!1,swal({text:"Student Not Found",width:320,showCloseButton:!0}))}):(_.busy=!1,swal({text:"Select Grade",width:270,showCloseButton:!0}))},_.Select_One_Student_For_One_Section=function(e,t,a,s){for(var o=0;oc.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),_.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"!=_.defaults.headers.common.schoolId&&"tiashj"!=_.defaults.headers.common.schoolId&&"tosdxb"!=_.defaults.headers.common.schoolId&&_.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,_=$("#txt_mother_state").val().length,n=$("#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{n.edt={}},n.GetGrade=function(e,t){_.get(d.apiUrl+"api/common/getAllGrades?cur_code="+e+"&academic_year="+t).then(function(e){n.obj3=e.data,n.edt.grade_code=n.obj3[0].sims_grade_code,n.grade=n.obj3[0].sims_grade_code,setTimeout(function(){$("#cmb_grade").select2()},100)})},n.getAssessmentscheduleData=function(){n.filteredTodos=[],_.get(d.apiUrl+"api/StudentAssessmentSchedule/GetAssesmentSchedule?cur_code="+n.edt.curr_code+"&acad_yr="+n.edt.academic_year+"&grade_code="+n.edt.grade_code).then(function(e){n.assessmentscheduleData=e.data,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),_.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"==_.defaults.headers.common.schoolId||"tiashj"==_.defaults.headers.common.schoolId||"tosdxb"==_.defaults.headers.common.schoolId||"aisdxb"==_.defaults.headers.common.schoolId?e.go("main.dashL",{Class:t.Class}):"faipserp"!=_.defaults.headers.common.schoolId&&("seps"==_.defaults.headers.common.schoolId||"apsportal"==_.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,_=$("#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,_=$("#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>_&&(s.s.c=_),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,_){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){_.$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"!=_.defaults.headers.common.schoolId&&"portal"!=_.defaults.headers.common.schoolId&&"rmps"!=_.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},_.get(n.apiUrl+"api/common/Admission/religionList_nas").then(function(e){o.religion=e.data,console.log("abc",o.reg)}),_.get(n.apiUrl+"api/common/Admission/religionList_leams").then(function(e){o.religion=e.data,console.log("abc",o.reg)}),_.get(n.apiUrl+"api/common/ProspectDashboard/GetAboutUsData").then(function(e){o.about_lst=e.data,console.log("about school",o.about_lst)}),_.get(n.apiUrl+"api/TransRouteStudDetails/getpickdropLocation").then(function(e){o.location1=e.data,console.log("LOCATION1",o.location1)}),_.get(n.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();_.get(n.apiUrl+"api/common/Admission/GetPickupLocation?route_code="+e).then(function(e){o.PickupDrop1=e.data,console.log("PickupDrop1",o.PickupDrop)})},_.get(n.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),_.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"==_.defaults.headers.common.schoolId||"siso"==_.defaults.headers.common.schoolId||"asis"==_.defaults.headers.common.schoolId||"abqis"==_.defaults.headers.common.schoolId||"alimtiaz"==_.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,_=$("#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"}}})}),_.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"}}})}),_.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}),_.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}),_.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}),_.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}),_.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){_.get(n.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=n.docUrl+_.defaults.headers.common.schoolId+"/Docs/portalReference","eiama"!=_.defaults.headers.common.schoolId&&"EIAMA"!=_.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"})},_.get(n.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=n.docUrl+_.defaults.headers.common.schoolId+"/Docs/portalReference","eiama"!=_.defaults.headers.common.schoolId&&"EIAMA"!=_.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,_.get(n.apiUrl+"api/LogBook_Dashboard/getUseraccess?user_code_from="+t.username).then(function(e){"0"==e.data[0].message&&(console.log("done"),t.newN=!1)}),_.get(n.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(_,e,s,t,a,n,i){_.pagesize="10",_.pageindex=0,_.showForm=!1,_.showData=!0,_.edt={},_.edit_code=!1,_.simsArray=[],_.selectedStudentList=[],t(function(){$("#fixTable").tableHeadFixer({top:1})},100),_.username=s.globals.currentUser.username;var o,d=s.globals.currentUser.username,r=(_.busyindicator=!0,_.propertyName=null,_.reverse=!1,_.filteredTodos=[],_.currentPage=1,_.numPerPage=10,_.maxSize=10,_.table=!0,_.size=function(e){_.pager=10==e||20==e,"*"==e?(_.numPerPage=_.getweightage.length,_.filteredTodos=_.getweightage,_.pager=!1):(_.pagesize=e,_.currentPage=1,_.numPerPage=e),_.makeTodos()},_.index=function(e){_.pageindex=e,_.currentPage=e,_.makeTodos(),l.checked=!1,_.row1=""},_.countData=[{val:10,data:10},{val:20,data:20}],_.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);console.log("begin="+e),console.log("end="+t),_.filteredTodos=_.todos.slice(e,t)},_.sortBy=function(e){_.reverse=_.propertyName===e&&!_.reverse,_.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(),_.newBtn=!0,_.deleteBtn=!0,n.get(i.apiUrl+"api/LogBook_Dashboard/getUseraccess?user_code_from="+_.username).then(function(e){"0"==e.data[0].message&&(console.log("done"),_.newBtn=!1,_.deleteBtn=!1)}),n.get(i.apiUrl+"api/bellsectionsubject/GetAllTeacherNameNew").then(function(e){_.GetAllTeacherName=e.data}),_.term_changeNew=function(e,t){n.get(i.apiUrl+"api/StudentSectionSubject/getTermNew?curcode="+e+"&academicyear="+t).then(function(e){_.terms_obj=e.data})},_.cur=function(){n.get(i.apiUrl+"api/common/getCuriculum").then(function(e){_.curriculum=e.data,_.edt.sims_cur_code=_.curriculum[0].sims_cur_code,_.getAccYear(_.curriculum[0].sims_cur_code)})},n.get(i.apiUrl+"api/common/getCuriculum").then(function(e){_.curriculum=e.data,_.edt={sims_cur_code:_.curriculum[0].sims_cur_code},_.getAccYear1(_.curriculum[0].sims_cur_code)}),_.getAccYear1=function(e){n.get(i.apiUrl+"api/common/getAcademicYear?curCode="+e).then(function(e){_.Acc_year=e.data,_.edt={sims_cur_code:_.curriculum[0].sims_cur_code,sims_academic_year:_.Acc_year[0].sims_academic_year},_.getGrade1(_.edt.sims_cur_code,_.edt.sims_academic_year)})},_.getGrade1=function(e,t){n.get(i.apiUrl+"api/common/getAllGrades?cur_code="+e+"&academic_year="+t).then(function(e){_.Grade_code=e.data,setTimeout(function(){$("#cmb_grade_code1").change(function(){console.log($(this).val())}).multipleSelect({width:"100%"})},1e3)}),_.getSection1(_.edt.sims_cur_code,_.edt.sims_grade_code,_.edt.sims_academic_year)},_.getSection1=function(e,t,a){n.get(i.apiUrl+"api/common/getSectionFromGrade?cur_code="+_.edt.sims_cur_code+"&grade_code="+_.edt.sims_grade_code+"&academic_year="+_.edt.sims_academic_year).then(function(e){_.Section_code=e.data,setTimeout(function(){$("#cmb_section_code1").change(function(){console.log($(this).val())}).multipleSelect({width:"100%"})},1e3)})},_.Show_Data=function(e,t,a,s){null!=e&&null!=t&&null!=a&&null!=_.edt.sims_section_name?n.get(i.apiUrl+"api/weigntageComponent/getweightagenew?sims_cur_code="+e+"&sims_academic_year="+t+"&grd_code="+a+"&sec_code="+_.edt.sims_section_name).then(function(e){_.getweightage=e.data;for(var t=0;t<_.getweightage.length;t++)_.getweightage[t].ischecked=!1;_.totalItems=_.getweightage.length,_.totalItems=_.getweightage,_.todos=_.getweightage,_.makeTodos()}):swal({title:"Alert",text:"Please Select Curriculum & Academic Year Then Try Again...",showCloseButton:!0,width:450,height:200})},_.getAccYear=function(e){n.get(i.apiUrl+"api/bellsectionsubject/getAcademicYear?curCode="+e).then(function(e){_.Acc_year=e.data,_.edt.sims_academic_year=_.Acc_year[0].cheque_number,_.getGrade()})},_.getSection=function(e,t,a){n.get(i.apiUrl+"api/common/AdmissionSubject/getSectionFromGrade?cur_code="+_.edt.sims_cur_code+"&grade_code="+_.edt.sims_grade_code+"&academic_year="+_.edt.sims_academic_year+"&user_name="+s.globals.currentUser.username).then(function(e){_.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%"})}),_.getGrade=function(){n.get(i.apiUrl+"api/common/AdmissionSubject/getAllGrades?cur_code="+_.edt.sims_cur_code+"&academic_year="+_.edt.sims_academic_year+"&user_name="+s.globals.currentUser.username).then(function(e){_.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%"})}),_.get=function(){n.get(i.apiUrl+"api/bellsectionsubject/getSectionSubject?curcode="+_.edt.sims_cur_code+"&gradecode="+_.edt.sims_grade_code+"&academicyear="+_.edt.sims_academic_year+"§ion="+_.edt.sims_section_name+"&login_user="+d).then(function(e){_.cmb_subject_name=e.data,console.log("SubjectName",_.cmb_subject_name),setTimeout(function(){$("#cmb_grade").change(function(){console.log($(this).val())}).multipleSelect({width:"100%"})},1e3)})},$(function(){$("#cmb_grade").multipleSelect({width:"100%"})}),n.get(i.apiUrl+"api/weigntageComponent/getcomponent").then(function(e){_.getcomponent=e.data}),_.getData=function(){_.showForm=!1,_.showData=!0,n.get(i.apiUrl+"api/weigntageComponent/getweightage").then(function(e){_.getweightage=e.data;for(var t=0;t<_.getweightage.length;t++)_.getweightage[t].ischecked=!1;_.totalItems=_.getweightage.length,_.totalItems=_.getweightage,_.todos=_.getweightage,_.makeTodos()})},_.Save=function(e){var t=void 0+","+_.edt.sims_grade_code,t=(t.substr(t.indexOf(",")+1),void 0+","+_.edt.sims_section_name),t=(t.substr(t.indexOf(",")+1),void 0+","+_.edt.sims_subject_code);t.substr(t.indexOf(",")+1);if(e){var a=[];for(let t=0;t<_.edt.sims_grade_code.length;t++)for(var s=0;s<_.edt.sims_section_name.length;s++)for(let e=0;e<_.edt.sims_subject_code.length;e++){var o={sims_cur_code:_.edt.sims_cur_code,sims_academic_year:_.edt.sims_academic_year,sims_grade_code:_.edt.sims_grade_code[t],sims_section_code:_.edt.sims_section_name[s],sims_subject_name:_.edt.sims_subject_code[e],sims_weightage_term1:_.edt.sims_weightage_term1,sims_weightage_term2:_.edt.sims_weightage_term2,sims_weightage_term3:_.edt.sims_weightage_term3,sims_component:_.edt.sims_component,sims_weightage:_.edt.sims_weightage,sims_details:_.edt.sims_details,opr:"I"};a.push(o)}n.post(i.apiUrl+"api/weigntageComponent/insertweightage",a).then(function(e){_.msg1=e.data,_.Myform.$setPristine(),_.Myform.$setUntouched(),1==_.msg1?(swal({text:"Record Inserted Successfully",imageUrl:"assets/img/check.png",width:380,height:200,showCloseButton:!0}),_.table=!0,_.display=!1,_.Cancel(),_.getData()):(swal({text:"Record not saved Successfully",imageUrl:"assets/img/notification-alert.png",width:380,height:200,showCloseButton:!0}),_.showForm=!1,_.showData=!0,_.Cancel())})}},[]);_.Update=function(e){if(e){for(let t=0;t<_.edt.sims_grade_code.length;t++)for(var a=0;a<_.edt.sims_section_name.length;a++)for(let e=0;e<_.edt.sims_subject_code.length;e++){var s={sims_cur_code:_.edt.sims_cur_code,sims_academic_year:_.edt.sims_academic_year,sims_grade_code:_.edt.sims_grade_code[t],sims_section_code:_.edt.sims_section_name[a],sims_subject_name:_.edt.sims_subject_code[e],sims_weightage_term1:_.edt.sims_weightage_term1,sims_weightage_term2:_.edt.sims_weightage_term2,sims_weightage_term3:_.edt.sims_weightage_term3,sims_component:_.edt.sims_component,sims_weightage:_.edt.sims_weightage,sims_details:_.edt.sims_details,opr:"I"};m.push(s)}n.post(i.apiUrl+"api/weigntageComponent/insertweightage",m).then(function(e){_.msg1=e.data,1==_.msg1?(swal({text:"Record Updated Successfully",imageUrl:"assets/img/check.png",width:300,height:200}),_.table=!0,_.display=!1,_.Cancel(),_.getData()):0==_.msg1&&swal({text:"Record Not Updated. ",imageUrl:"assets/img/close.png",width:300,height:200}),_.table=!0,_.display=!1,_.Cancel()})}},_.New=function(){_.cur(),_.showForm=!0,_.showData=!1,_.save_btn=!0,_.Update_btn=!1,_.edt={},_.Myform.$setPristine(),_.Myform.$setUntouched(),_.edit_code=!1},_.Cancel=function(){_.showForm=!1,_.showData=!0,_.edt=void 0,_.table=!0,_.display=!1,_.Myform.$setPristine(),_.Myform.$setUntouched()},_.edit=function(e){_.showForm=!0,_.showData=!1,_.save_btn=!1,_.Update_btn=!0;var t=(new Date).getFullYear().toString();e.sims_academic_year>=t?(_.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},_.edt.sims_grade_code.push(e.sims_grade_code),_.edt.sims_section_name.push(e.sims_section_code),_.edt.sims_subject_code.push(e.sims_subject_name),_.cur(),_.getGrade(),_.getSection(),_.get(),_.edit_code=!1):swal({title:"Alert",text:"Records from Previous Years Cannot Be Updated",imageUrl:"assets/img/notification-alert.png",showCloseButton:!0,width:380})},_.check_all=function(){if(!0===(l=document.getElementById("all_chk")).checked)for(let e=0;e<_.filteredTodos.length;e++)document.getElementById(e+_.filteredTodos[e].sims_details).checked=!0,_.row1="row_selected",$("tr").addClass("row_selected");else for(var e=0;e<_.filteredTodos.length;e++)document.getElementById(e+_.filteredTodos[e].sims_details).checked=!1,l.checked=!1,_.row1=""},_.check_once=function(e){$("input[type='checkbox']").change(function(e){$(this).is(":checked")?$(this).closest("tr").addClass("row_selected"):$(this).closest("tr").removeClass("row_selected"),_.color="#edefef"}),!0===(l=document.getElementById("all_chk")).checked&&(l.checked=!1,$("input[type='checkbox']").change(function(e){$(this).is(":checked")?$(this).closest("tr").addClass("row_selected"):$(this).closest("tr").removeClass("row_selected")}))},_.OkDelete=function(){_.flag=!1;for(var e,s=[],t=0;t<_.filteredTodos.length;t++)1==document.getElementById(t+_.filteredTodos[t].sims_details).checked&&(_.flag=!0,e={sims_academic_year:_.filteredTodos[t].sims_academic_year,sims_grade_code:_.filteredTodos[t].sims_grade_code,sims_section_code:_.filteredTodos[t].sims_section_code,sims_subject_name:_.filteredTodos[t].sims_subject_name,opr:"D"},s.push(e));_.flag?swal({title:"",text:"Are you sure you want to Delete?",showCloseButton:!0,showCancelButton:!0,confirmButtonText:"Yes",width:380,cancelButtonText:"No"}).then(function(e){if(e)n.post(i.apiUrl+"api/weigntageComponent/insertweightage",s).then(function(e){_.msg1=e.data,1==_.msg1?swal({text:"Deleted Successfully",imageUrl:"assets/img/check.png",showCloseButton:!0,width:380}).then(function(e){e&&n.get(i.apiUrl+"api/weigntageComponent/getweightage").then(function(e){_.getweightage=e.data,_.totalItems=_.getweightage.length,_.todos=_.getweightage,_.makeTodos()}),_.currentPage=!0}):0==_.msg1?swal({text:"Record Not Deleted. ",imageUrl:"assets/img/close.png",showCloseButton:!0,width:380}).then(function(e){e&&n.get(i.apiUrl+"api/weigntageComponent/getweightage").then(function(e){_.getweightage=e.data,_.totalItems=_.getweightage.length,_.todos=_.getweightage,_.makeTodos(),l.checked=!1,$("tr").removeClass("row_selected")})}):swal("Error-"+_.msg1)});else{!0===(l=document.getElementById("all_chk")).checked&&(l.checked=!1);for(var t=0;t<_.filteredTodos.length;t++){var a=document.getElementById(t+_.filteredTodos[t].sims_details);1==a.checked&&(a.checked=!1,l.checked=!1,$("tr").removeClass("row_selected"))}}}):swal({text:"Please Select Atleast One Record",imageUrl:"assets/img/notification-alert.png",showCloseButton:!0,width:380}),_.currentPage=!0}}])}(),function(){"use strict";var m=angular.module("sims.module.Student");m.run(["$rootScope","$templateCache",function(e,t){e.$on("$viewContentLoaded",function(){t.removeAll()})}]),m.controller("myTimetableCont",["$scope","$state","$rootScope","$timeout","gettextCatalog","$http","ENV","$route","$templateCache","$location",function(n,e,t,a,s,i,d,o,_,r){n.viewTimeTable=!0,n.pagesize="10",n.pageindex="0",n.pager=!0,n.edt={};var c=t.globals.currentUser.username;n.showBtn=!1,n.updateBtn=!1,n.cancelBtn=!1,n.viewTimeTable=!0,n.editTimeTable=!1,n.createBtn=!0,n.editBtn=!1,a(function(){$("#fixTable").tableHeadFixer({top:1})},100),n.gettimetable=function(){i.get(d.apiUrl+"api/myTimetable_ihs/getMyTimetableData?user="+c).then(function(e){n.getMyTimetabledata=e.data})},n.editTime=function(e,t,a,s){n.viewTimeTable=!1,n.editTimeTable=!0,n.createBtn=!1,n.editBtn=!1,n.updateBtn=!0,n.cancelBtn=!0,n.showBtn=!1,n.edt=n.getMyTimetabledata[0],n.edt.sims_cur_code=e,n.edt.sims_academic_year=t,n.edt.sims_grade_code=a,n.edt.sims_section_code=s},i.get(d.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){i.get(d.apiUrl+"api/common/getAcademicYear?curCode="+e).then(function(e){n.Acc_year=e.data,n.edt={sims_cur_code:n.curriculum[0].sims_cur_code,sims_academic_year:n.Acc_year[0].sims_academic_year},n.getGrade(n.edt.sims_cur_code,n.edt.sims_academic_year)})},n.getGrade=function(e,t){i.get(d.apiUrl+"api/common/getAllGrades?cur_code="+e+"&academic_year="+t).then(function(e){n.Grade_code=e.data}),n.getSection(n.edt.sims_cur_code,n.edt.sims_grade_code,n.edt.sims_academic_year)},n.getSection=function(e,t,a){i.get(d.apiUrl+"api/common/getSectionFromGrade?cur_code="+n.edt.sims_cur_code+"&grade_code="+n.edt.sims_grade_code+"&academic_year="+n.edt.sims_academic_year).then(function(e){n.Section_code=e.data})},n.Show_Data=function(e,t,a,s){null!=e&&null!=t&&null!=a&&null!=s?(i.get(d.apiUrl+"api/myTimetable_ihs/getMyTimetableData?user="+c+"&cur_code="+e+"&ac_year="+t+"&grd_code="+a+"&sec_code="+s).then(function(e){n.getMyTimetabledata=e.data}),n.editBtn=!0):swal({title:"Alert",text:"Please Select Curriculum & Academic Year Then Try Again...",showCloseButton:!0,width:450,height:200})},n.editForm=function(e){n.viewTimeTable=!1,n.editTimeTable=!0,n.createBtn=!1,n.editBtn=!1,n.updateBtn=!0,n.cancelBtn=!0,n.showBtn=!1,n.edt={mo_sims_slot_code_1:e.mo_sims_slot_code_1,mo_sims_slot_code_2:e.mo_sims_slot_code_2,mo_sims_slot_code_3:e.mo_sims_slot_code_3,mo_sims_slot_code_4:e.mo_sims_slot_code_4,mo_sims_slot_code_5:e.mo_sims_slot_code_5,mo_sims_slot_code_6:e.mo_sims_slot_code_6,mo_sims_slot_code_7:e.mo_sims_slot_code_7,mo_sims_slot_code_8:e.mo_sims_slot_code_8,mo_sims_slot_code_9:e.mo_sims_slot_code_9,tu_sims_slot_code_1:e.tu_sims_slot_code_1,tu_sims_slot_code_2:e.tu_sims_slot_code_2,tu_sims_slot_code_3:e.tu_sims_slot_code_3,tu_sims_slot_code_4:e.tu_sims_slot_code_4,tu_sims_slot_code_5:e.tu_sims_slot_code_5,tu_sims_slot_code_6:e.tu_sims_slot_code_6,tu_sims_slot_code_7:e.tu_sims_slot_code_7,tu_sims_slot_code_8:e.tu_sims_slot_code_8,tu_sims_slot_code_9:e.tu_sims_slot_code_9,we_sims_slot_code_1:e.we_sims_slot_code_1,we_sims_slot_code_2:e.we_sims_slot_code_2,we_sims_slot_code_3:e.we_sims_slot_code_3,we_sims_slot_code_4:e.we_sims_slot_code_4,we_sims_slot_code_5:e.we_sims_slot_code_5,we_sims_slot_code_6:e.we_sims_slot_code_6,we_sims_slot_code_7:e.we_sims_slot_code_7,we_sims_slot_code_8:e.we_sims_slot_code_8,we_sims_slot_code_9:e.we_sims_slot_code_9,th_sims_slot_code_1:e.th_sims_slot_code_1,th_sims_slot_code_2:e.th_sims_slot_code_2,th_sims_slot_code_3:e.th_sims_slot_code_3,th_sims_slot_code_4:e.th_sims_slot_code_4,th_sims_slot_code_5:e.th_sims_slot_code_5,th_sims_slot_code_6:e.th_sims_slot_code_6,th_sims_slot_code_7:e.th_sims_slot_code_7,th_sims_slot_code_8:e.th_sims_slot_code_8,th_sims_slot_code_9:e.th_sims_slot_code_9,fr_sims_slot_code_1:e.fr_sims_slot_code_1,fr_sims_slot_code_2:e.fr_sims_slot_code_2,fr_sims_slot_code_3:e.fr_sims_slot_code_3,fr_sims_slot_code_4:e.fr_sims_slot_code_4,fr_sims_slot_code_5:e.fr_sims_slot_code_5,fr_sims_slot_code_6:e.fr_sims_slot_code_6,fr_sims_slot_code_7:e.fr_sims_slot_code_7,fr_sims_slot_code_8:e.fr_sims_slot_code_8,fr_sims_slot_code_9:e.fr_sims_slot_code_9}},n.Create=function(){n.viewTimeTable=!1,n.editTimeTable=!0,n.showBtn=!0,n.updateBtn=!1,n.cancelBtn=!1,n.createBtn=!1,n.editBtn=!1},n.Cancel=function(){n.showBtn=!1,n.updateBtn=!1,n.cancelBtn=!1,n.editBtn=!0,n.viewTimeTable=!0,n.editTimeTable=!1},n.Update=function(t,a,s,o){var e=[],_={sims_created_by:c,mo_sims_slot_code_1:n.edt.mo_sims_slot_code_1,mo_sims_slot_code_2:n.edt.mo_sims_slot_code_2,mo_sims_slot_code_3:n.edt.mo_sims_slot_code_3,mo_sims_slot_code_4:n.edt.mo_sims_slot_code_4,mo_sims_slot_code_5:n.edt.mo_sims_slot_code_5,mo_sims_slot_code_6:n.edt.mo_sims_slot_code_6,mo_sims_slot_code_7:n.edt.mo_sims_slot_code_7,mo_sims_slot_code_8:n.edt.mo_sims_slot_code_8,mo_sims_slot_code_9:n.edt.mo_sims_slot_code_9,tu_sims_slot_code_1:n.edt.tu_sims_slot_code_1,tu_sims_slot_code_2:n.edt.tu_sims_slot_code_2,tu_sims_slot_code_3:n.edt.tu_sims_slot_code_3,tu_sims_slot_code_4:n.edt.tu_sims_slot_code_4,tu_sims_slot_code_5:n.edt.tu_sims_slot_code_5,tu_sims_slot_code_6:n.edt.tu_sims_slot_code_6,tu_sims_slot_code_7:n.edt.tu_sims_slot_code_7,tu_sims_slot_code_8:n.edt.tu_sims_slot_code_8,tu_sims_slot_code_9:n.edt.tu_sims_slot_code_9,we_sims_slot_code_1:n.edt.we_sims_slot_code_1,we_sims_slot_code_2:n.edt.we_sims_slot_code_2,we_sims_slot_code_3:n.edt.we_sims_slot_code_3,we_sims_slot_code_4:n.edt.we_sims_slot_code_4,we_sims_slot_code_5:n.edt.we_sims_slot_code_5,we_sims_slot_code_6:n.edt.we_sims_slot_code_6,we_sims_slot_code_7:n.edt.we_sims_slot_code_7,we_sims_slot_code_8:n.edt.we_sims_slot_code_8,we_sims_slot_code_9:n.edt.we_sims_slot_code_9,th_sims_slot_code_1:n.edt.th_sims_slot_code_1,th_sims_slot_code_2:n.edt.th_sims_slot_code_2,th_sims_slot_code_3:n.edt.th_sims_slot_code_3,th_sims_slot_code_4:n.edt.th_sims_slot_code_4,th_sims_slot_code_5:n.edt.th_sims_slot_code_5,th_sims_slot_code_6:n.edt.th_sims_slot_code_6,th_sims_slot_code_7:n.edt.th_sims_slot_code_7,th_sims_slot_code_8:n.edt.th_sims_slot_code_8,th_sims_slot_code_9:n.edt.th_sims_slot_code_9,fr_sims_slot_code_1:n.edt.fr_sims_slot_code_1,fr_sims_slot_code_2:n.edt.fr_sims_slot_code_2,fr_sims_slot_code_3:n.edt.fr_sims_slot_code_3,fr_sims_slot_code_4:n.edt.fr_sims_slot_code_4,fr_sims_slot_code_5:n.edt.fr_sims_slot_code_5,fr_sims_slot_code_6:n.edt.fr_sims_slot_code_6,fr_sims_slot_code_7:n.edt.fr_sims_slot_code_7,fr_sims_slot_code_8:n.edt.fr_sims_slot_code_8,fr_sims_slot_code_9:n.edt.fr_sims_slot_code_9};e.push(_),i.post(d.apiUrl+"api/myTimetable_ihs/UpdateTimetableData?user="+c+"&cur_code="+t+"&ac_year="+a+"&grd_code="+s+"&sec_code="+o,e).then(function(e){n.msg1=e.data,1==n.msg1?(swal({text:"Timetable Updated successfully",imageUrl:"assets/img/check.png",showCloseButton:!0,width:300,height:200}),n.Show_Data(t,a,s,o),n.showBtn=!1,n.updateBtn=!1,n.cancelBtn=!1,n.editTimeTable=!1,n.viewTimeTable=!0):swal({text:"Timetable not Updated successfully",imageUrl:"assets/img/alert.png",showCloseButton:!0,width:300,height:200})})},n.SaveData=function(a,s,o,_){swal({title:"",text:"If you save this, your existing timetable will be replaced. Do you want to proceed?",showCloseButton:!0,confirmButtonText:"Yes",showCancelButton:!0,width:380,cancelButtonText:"No"}).then(function(e){var t;e&&(e={sims_created_by:c,mo_sims_slot_code_1:n.edt.mo_sims_slot_code_1,mo_sims_slot_code_2:n.edt.mo_sims_slot_code_2,mo_sims_slot_code_3:n.edt.mo_sims_slot_code_3,mo_sims_slot_code_4:n.edt.mo_sims_slot_code_4,mo_sims_slot_code_5:n.edt.mo_sims_slot_code_5,mo_sims_slot_code_6:n.edt.mo_sims_slot_code_6,mo_sims_slot_code_7:n.edt.mo_sims_slot_code_7,mo_sims_slot_code_8:n.edt.mo_sims_slot_code_8,mo_sims_slot_code_9:n.edt.mo_sims_slot_code_9,tu_sims_slot_code_1:n.edt.tu_sims_slot_code_1,tu_sims_slot_code_2:n.edt.tu_sims_slot_code_2,tu_sims_slot_code_3:n.edt.tu_sims_slot_code_3,tu_sims_slot_code_4:n.edt.tu_sims_slot_code_4,tu_sims_slot_code_5:n.edt.tu_sims_slot_code_5,tu_sims_slot_code_6:n.edt.tu_sims_slot_code_6,tu_sims_slot_code_7:n.edt.tu_sims_slot_code_7,tu_sims_slot_code_8:n.edt.tu_sims_slot_code_8,tu_sims_slot_code_9:n.edt.tu_sims_slot_code_9,we_sims_slot_code_1:n.edt.we_sims_slot_code_1,we_sims_slot_code_2:n.edt.we_sims_slot_code_2,we_sims_slot_code_3:n.edt.we_sims_slot_code_3,we_sims_slot_code_4:n.edt.we_sims_slot_code_4,we_sims_slot_code_5:n.edt.we_sims_slot_code_5,we_sims_slot_code_6:n.edt.we_sims_slot_code_6,we_sims_slot_code_7:n.edt.we_sims_slot_code_7,we_sims_slot_code_8:n.edt.we_sims_slot_code_8,we_sims_slot_code_9:n.edt.we_sims_slot_code_9,th_sims_slot_code_1:n.edt.th_sims_slot_code_1,th_sims_slot_code_2:n.edt.th_sims_slot_code_2,th_sims_slot_code_3:n.edt.th_sims_slot_code_3,th_sims_slot_code_4:n.edt.th_sims_slot_code_4,th_sims_slot_code_5:n.edt.th_sims_slot_code_5,th_sims_slot_code_6:n.edt.th_sims_slot_code_6,th_sims_slot_code_7:n.edt.th_sims_slot_code_7,th_sims_slot_code_8:n.edt.th_sims_slot_code_8,th_sims_slot_code_9:n.edt.th_sims_slot_code_9,fr_sims_slot_code_1:n.edt.fr_sims_slot_code_1,fr_sims_slot_code_2:n.edt.fr_sims_slot_code_2,fr_sims_slot_code_3:n.edt.fr_sims_slot_code_3,fr_sims_slot_code_4:n.edt.fr_sims_slot_code_4,fr_sims_slot_code_5:n.edt.fr_sims_slot_code_5,fr_sims_slot_code_6:n.edt.fr_sims_slot_code_6,fr_sims_slot_code_7:n.edt.fr_sims_slot_code_7,fr_sims_slot_code_8:n.edt.fr_sims_slot_code_8,fr_sims_slot_code_9:n.edt.fr_sims_slot_code_9},(t=[]).push(e),i.post(d.apiUrl+"api/myTimetable_ihs/InsertTimetableData?user="+c+"&cur_code="+a+"&ac_year="+s+"&grd_code="+o+"&sec_code="+_,t).then(function(e){n.msg1=e.data,1==n.msg1?(swal({text:"Timetable Saved successfully",imageUrl:"assets/img/check.png",showCloseButton:!0,width:300,height:200}),n.Show_Data(a,s,o,_)):swal({text:"Timetable not Saved successfully",imageUrl:"assets/img/alert.png",showCloseButton:!0,width:300,height:200}),n.showBtn=!1,n.editBtn=!0,n.editTimeTable=!1,n.viewTimeTable=!0,n.gettimetable()}))})},"admin"==c?i.get(d.apiUrl+"api/myTimetable_ihs/getSubjectDetailsadmin").then(function(e){n.subjectDetails=e.data}):i.get(d.apiUrl+"api/myTimetable_ihs/getSubjectDetails?user="+c).then(function(e){n.subjectDetails=e.data}),m.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 e=angular.module("sims.module.Fee");angular.module("bindHtmlExample",["ngSanitize"]),e.run(["$rootScope","$templateCache",function(e,t){e.$on("$viewContentLoaded",function(){t.removeAll()})}]),e.controller("VisionMissionCont",["$scope","$state","$stateParams","$rootScope","$timeout","gettextCatalog","$http","$filter","ENV",function(o,e,t,a,s,_,n,i,d){o.container2=!0,o.showContainer2=!1,o.username=a.globals.currentUser.username,console.log("USER",o.username),$("#editor,#editor1,#editor2").kendoEditor({tools:["bold","italic","underline","strikethrough","justifyLeft","justifyCenter","justifyRight","justifyFull","insertUnorderedList","insertOrderedList","indent","outdent","createLink","unlink","insertImage","insertFile","subscript","superscript","tableWizard","createTable","addRowAbove","addRowBelow","addColumnLeft","addColumnRight","deleteRow","deleteColumn","mergeCellsHorizontally","mergeCellsVertically","splitCellHorizontally","splitCellVertically","viewHtml","formatting","fontName","fontSize","foreColor","backColor"]});$("textarea").data("kendoEditor");function r(){n.get(d.apiUrl+"api/LogBook_Dashboard/getVMOPrompt").then(function(e){o.data1=e.data,o.data1&&0t+1),k.currentPage=1,l()}function l(){var e=(k.currentPage-1)*k.pageSize,t=e+k.pageSize;k.visibleTodos=k.todos.slice(e,t)}k.cur=function(){x.post(C.apiUrl+"api/LogBookEvaluation/sims_Cur").then(function(e){k.curr_data=e.data.table,0k.totalPages||(k.currentPage=e,l())},k.setPageSize=function(e){k.pageSize=e,m()},k.$watch("currentPage",function(){l()}),k.showOne=!1,k.showTwo=!1,k.currentSchedulerDate=new Date,k.fetchData=function(e,t,a,s){var o=$("#scheduler").data("kendoScheduler");o&&(k.currentSchedulerDate=o.date(),o.destroy(),$("#scheduler").empty()),x.get(C.apiUrl+"api/lessonPlan_ihs/getLessonPlanNew?cur_name="+e+"&academic_year="+t+"&grd_code="+a+"&sec_code="+s+"&user_code_from="+S+"&from_date="+k.edt.from_date+"&to_date="+k.edt.to_date+"&sub_status="+k.edt.sims_sub_status).then(function(t){k.display=!0,k.obj=t.data,k.eventsList=[],k.colorData=[];for(let e=0;etype: '+e[0].type+", "+Math.round(e[0].size/1024)+" KB")})}$(document).ready(function(){function e(){$("input[type=file]").change(function(){var e=this.files,t=$(this).parent();1type: '+e[0].type+", "+Math.round(e[0].size/1024)+" KB")})}e(),$("input[type=file]").on("focus",function(){$(this).parent().addClass("focus")}),$("input[type=file]").on("blur",function(){$(this).parent().removeClass("focus")}),$("#clearButton").on("click",function(){$("#file").val(""),$("#fileLabel").html(u),$("input[type=file]").trigger("blur"),setTimeout(function(){e(),$("input[type=file]").trigger("focus")},100)}),$("#cancelButton").on("click",function(){$("#file").val(""),$("#fileLabel").html(u),$("input[type=file]").trigger("blur"),setTimeout(function(){e(),$("input[type=file]").trigger("focus")},100)}),$("#reset").on("click",function(){$("#file").val(""),$("#fileLabel").html(u),$("input[type=file]").trigger("blur"),setTimeout(function(){e(),$("input[type=file]").trigger("focus")},100)}),$("#backButton").on("click",function(){$("#file").val(""),$("#fileLabel").html(u),$("input[type=file]").trigger("blur"),setTimeout(function(){e(),$("input[type=file]").trigger("focus")},100)}),$("#prepareButton").on("click",function(){$("#file").val(""),$("#fileLabel").html(u),$("input[type=file]").trigger("blur"),setTimeout(function(){e(),$("input[type=file]").trigger("focus")},100)}),$("#verifyButton").on("click",function(){$("#file").val(""),$("#fileLabel").html(u),$("input[type=file]").trigger("blur"),setTimeout(function(){e(),$("input[type=file]").trigger("focus")},100)}),$("#authorizeButton").on("click",function(){$("#file").val(""),$("#fileLabel").html(u),$("input[type=file]").trigger("blur"),setTimeout(function(){e(),$("input[type=file]").trigger("focus")},100)}),$("#btn56").on("click",function(){$("#file").val(""),$("#fileLabel").html(u),$("input[type=file]").trigger("blur"),setTimeout(function(){e(),$("input[type=file]").trigger("focus")},100)}),$("#btn57").on("click",function(){$("#file").val(""),$("#fileLabel").html(u),$("input[type=file]").trigger("blur"),setTimeout(function(){e(),$("input[type=file]").trigger("focus")},100)}),$("#btn58").on("click",function(){$("#file").val(""),$("#fileLabel").html(u),$("input[type=file]").trigger("blur"),setTimeout(function(){e(),$("input[type=file]").trigger("focus")},100)})}),k.viewDoc=function(e){k.url=C.docUrl+x.defaults.headers.common.schoolId+"/Images/UploadedFiles/",window.open(k.url+e)},k.Doc_table=!1,k.AddDocumenDetailtGrid=function(){k.Doc_table=!0,""!=k.sims_doc_name&&null!=k.sims_doc_name?(k.url=C.docUrl+"sis/Images/UploadedFiles/",k.gltd_attribute1=k.url+k.gltd_attr1,k.doc_detail_data.push({doc_path:k.filename+"."+k.t,sims_doc_name:k.sims_doc_name,lesson_date:moment(new Date).format("DD-MM-YYYY")}),k.gltd_attribute1=""):swal({title:"Alert",text:"Doc name was not entered, please reattach the document",showCloseButton:!0,width:400}),k.doc_data=!1},k.downPdf=function(e){e=C.docUrl+k.mainurl.replace(/\/[^/]+$/,"/")+e;window.open(e,"_new")},k.delete_document=function(t,a){swal({title:"",text:"Do you want delete the document?",showCloseButton:!0,showCancelButton:!0,confirmButtonText:"Yes",width:380,cancelButtonText:"No",allowOutsideClick:!1}).then(function(e){e&&x.post(C.apiUrl+"api/lessonPlan_ihs/insertDeleteDoc?sims_sr_no="+t+"&lesson_id="+a).then(function(e){1==e.data?(swal({text:"Document deleted successfully.",imageUrl:"assets/img/check.png",width:300,height:200}),x.get(C.apiUrl+"api/lessonPlan_ihs/getLessonDoc?lesson_id="+a).then(function(e){k.doc_detail_data_new=e.data,0==k.doc_detail_data_new.length?(k.no_document_table=!0,k.document_table=!1):(k.no_document_table=!1,k.document_table=!0)})):(swal({text:"Document not deleted. ",imageUrl:"assets/img/close.png",width:300,height:200}),x.get(C.apiUrl+"api/lessonPlan_ihs/getLessonDoc?lesson_id="+a).then(function(e){k.doc_detail_data_new=e.data,0==k.doc_detail_data_new.length?(k.no_document_table=!0,k.document_table=!1):(k.no_document_table=!1,k.document_table=!0)}))})})},k.Doc_detailCancel=function(){k.doc_data=!1,k.block4="",k.gltd_attr1="",k.gltd_attribute1=""},k.New=function(){k.cur(),0==k.user_access.data_insert?swal({title:"Alert",text:"Login user does not have required privilege to perform this action.",width:350,height:200}):(k.disabled=!1,k.gdisabled=!1,k.aydisabled=!1,k.table=!1,k.display=!0,k.newbutton=!0,k.save_btn=!0,k.Update_btn=!1,k.divcode_readonly=!1,k.Doc_table=!1,k.doc_details_edit=!1,k.showTwo=!1,k.edt={},k.Myform.$setPristine(),k.Myform.$setUntouched(),$("#text-editor1").data("wysihtml5").editor.clear(),$("#text-editor2").data("wysihtml5").editor.clear(),$("#text-editor3").data("wysihtml5").editor.clear(),$("#text-editor4").data("wysihtml5").editor.clear(),$("#text-editor5").data("wysihtml5").editor.clear(),$("#text-editor6").data("wysihtml5").editor.clear(),$("#text-editor7").data("wysihtml5").editor.clear(),$("#text-editor8").data("wysihtml5").editor.clear(),$("#text-editor9").data("wysihtml5").editor.clear(),$("#text-editor10").data("wysihtml5").editor.clear(),$("#text-editor11").data("wysihtml5").editor.clear(),$("#text-editor12").data("wysihtml5").editor.clear(),$("#text-editor13").data("wysihtml5").editor.clear(),$("#text-editor14").data("wysihtml5").editor.clear(),$("#text-editor15").data("wysihtml5").editor.clear(),$("#text-editor16").data("wysihtml5").editor.clear(),$("#text-editor17").data("wysihtml5").editor.clear())},k.Cancel=function(){k.temp="",k.table=!0,k.newbutton=!1,k.display=!1,k.Myform.$setPristine(),k.Myform.$setUntouched()},k.cur1=function(){x.post(C.apiUrl+"api/LogBookEvaluation/sims_Cur").then(function(e){k.curr_data=e.data.table,0"+e+''+t+""),s.close(),a.focus()},o.reset=function(){o.table=!1,$("#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.searchText?o.todos=o.studlist:o.todos=o.studlist.filter(function(e){var t=o.searchText;return t=t.toLowerCase(),e.sims_student_id.toLowerCase().includes(t)||e.sims_garde.toLowerCase().includes(t)||e.sims_stud_name.toLowerCase().includes(t)||e.sims_mentor_id.toLowerCase().includes(t)||e.sims_mentor_name.toLowerCase().includes(t)||e.sims_co_mentor.toLowerCase().includes(t)||e.sims_co_mentor_name.toLowerCase().includes(t)||e.sims_pco_id.toLowerCase().includes(t)||e.sims_pco_name.toLowerCase().includes(t)||e.sims_section.toLowerCase()===t}),o.totalItems=o.todos.length,o.currentPage=1,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(_.obj_age[o].sims_birth_date_to))&&(e=_.edt.birth_date="",swal({title:"Alert",text:"Age criteria is not met.",showCloseButton:!0,width:450}))},_.Save=function(e){var t=[];e&&(_.BUSY=!0,"G"==_.edt.legal_custody_code&&(_.edt.guardian_first_name=_.edt.father_first_name,_.edt.guardian_last_name=_.edt.father_last_name,_.edt.guardian_middle_name=_.edt.father_middle_name,_.edt.guardian_mobile=_.edt.father_mobile,_.edt.guardian_email=_.edt.father_email,_.edt.guardian_summary_address=_.edt.father_summary_address,_.edt.guardian_nationality1_code=_.edt.father_nationality1_code,_.edt.sims_parent_guardian_national_id=_.edt.sims_parent_father_national_id),e={admission_number:_.edt.admission_number,appl_num:_.edt.appl_num,pros_num:_.edt.pros_num,pros_appl_num:_.edt.pros_appl_num,admission_date:_.edt.admission_date,school_code:_.edt.school_code,curr_code:_.edt.curr_code,academic_year:_.edt.academic_year,grade_code:_.edt.grade_code,section_code:_.edt.section_code,term_code:_.edt.term_code,tent_join_date:_.edt.tent_join_date,sims_student_emergency_contact_number1:_.edt.sims_student_emergency_contact_number1,sims_student_emergency_contact_name1:_.edt.sims_student_emergency_contact_name1,first_name:_.edt.first_name,middle_name:_.edt.middle_name,last_name:_.edt.last_name,family_name:_.edt.family_name,first_name_ot:_.edt.first_name_ot,midd_name_ot:_.edt.midd_name_ot,last_name_ot:_.edt.last_name_ot,family_name_ot:_.edt.family_name_ot,nicke_name:_.edt.nicke_name,birth_date:_.edt.birth_date,comm_date:_.edt.comm_date,birth_country_code:_.edt.birth_country_code,nationality_code:_.edt.nationality_code,ethinicity_code:_.edt.ethinicity_code,gender_code:_.edt.gender_code,religion_code:_.edt.religion_code,passport_num:_.edt.passport_num,passport_issue_date:_.edt.passport_issue_date,passport_expiry:_.edt.passport_expiry,passport_issue_auth:_.edt.passport_issue_auth,passport_issue_place:_.edt.passport_issue_place,visa_number:_.edt.visa_number,visa_type:_.edt.visa_type,visa_issuing_authority:_.edt.visa_issuing_authority,visa_issue_date:_.edt.visa_issue_date,visa_expiry_date:_.edt.visa_expiry_date,visa_issuing_place:_.edt.visa_issuing_place,national_id:_.edt.national_id,national_id_issue_date:_.edt.national_id_issue_date,national_id_expiry_date:_.edt.national_id_expiry_date,sibling_status:_.edt.sibling_status,parent_id:_.edt.sims_parent_number,sibling_enroll:_.edt.sibling_enroll,sibling_name:_.edt.sibling_name,sibling_dob:_.edt.sibling_dob,sibling_school_code:_.edt.sibling_school_code,employee_type:_.edt.employee_type,employee_code:_.edt.employee_code,employee_school_code:_.edt.employee_school_code,motherTounge_language_code:_.edt.motherTounge_language_code,main_language_code:_.edt.main_language_code,main_language_r_code:_.edt.main_language_r_code,main_language_w_code:_.edt.main_language_w_code,main_language_s_code:_.edt.main_language_s_code,primary_contact_code:_.edt.primary_contact_code,primary_contact_pref_code:_.edt.primary_contact_pref_code,fee_payment_contact_pref_code:_.edt.fee_payment_contact_pref_code,transport_status:_.edt.transport_status,transport_desc:_.edt.transport_desc,father_salutation_code:_.edt.father_salutation_code,father_first_name:_.edt.father_first_name,father_middle_name:_.edt.father_middle_name,father_last_name:_.edt.father_last_name,father_family_name:_.edt.father_family_name,father_family_name_ot:_.edt.father_family_name_ot,father_nationality1_code:_.edt.father_nationality1_code,father_nationality2_code:_.edt.father_nationality2_code,father_appartment_number:_.edt.father_appartment_number,father_building_number:_.edt.father_building_number,father_street_number:_.edt.father_street_number,father_area_number:_.edt.father_area_number,father_city:_.edt.father_city,father_state:_.edt.father_state,father_country_code:_.edt.father_country_code,father_summary_address:_.edt.father_summary_address,father_po_box:_.edt.father_po_box,father_phone:_.edt.father_phone,father_email:_.edt.father_email,father_mobile:_.edt.father_mobile,father_fax:_.edt.father_fax,father_occupation:_.edt.father_occupation,father_company:_.edt.father_company,father_passport_number:_.edt.father_passport_number,sims_admission_father_national_id:_.edt.sims_admission_father_national_id,guardian_salutation_code:_.edt.guardian_salutation_code,guardian_first_name:_.edt.guardian_first_name,guardian_middle_name:_.edt.guardian_middle_name,guardian_last_name:_.edt.guardian_last_name,guardian_family_name:_.edt.guardian_family_name,guardian_nationality1_code:_.edt.guardian_nationality1_code,guardian_nationality2_code:_.edt.guardian_nationality2_code,guardian_appartment_number:_.edt.guardian_appartment_number,guardian_building_number:_.edt.guardian_building_number,guardian_street_number:_.edt.guardian_street_number,guardian_area_number:_.edt.guardian_area_number,guardian_city:_.edt.guardian_city,guardian_state:_.edt.guardian_state,guardian_country_code:_.edt.guardian_country_code,guardian_summary_address:_.edt.guardian_summary_address,guardian_po_box:_.edt.guardian_po_box,guardian_phone:_.edt.guardian_phone,guardian_mobile:_.edt.guardian_mobile,guardian_fax:_.edt.guardian_fax,guardian_email:_.edt.guardian_email,guardian_occupation:_.edt.guardian_occupation,guardian_company:_.edt.guardian_company,guardian_passport_number:_.edt.guardian_passport_number,guardian_relationship_code:_.edt.guardian_relationship_code,mother_salutation_code:_.edt.mother_salutation_code,mother_first_name:_.edt.mother_first_name,mother_middle_name:_.edt.mother_middle_name,mother_last_name:_.edt.mother_last_name,mother_family_name:_.edt.mother_family_name,mother_name_ot:_.edt.mother_name_ot,mother_nationality1_code:_.edt.mother_nationality1_code,mother_nationality2_code:_.edt.mother_nationality2_code,mother_appartment_number:_.edt.mother_appartment_number,mother_building_number:_.edt.mother_building_number,mother_street_number:_.edt.mother_street_number,mother_area_number:_.edt.mother_area_number,mother_city:_.edt.mother_city,mother_state:_.edt.mother_state,mother_country_code:_.edt.mother_country_code,mother_summary_address:_.edt.mother_summary_address,mother_po_box:_.edt.mother_po_box,mother_phone:_.edt.mother_phone,mother_mobile:_.edt.mother_mobile,mother_fax:_.edt.mother_fax,mother_email:_.edt.mother_email,mother_occupation:_.edt.mother_occupation,mother_passport_number:_.edt.mother_passport_number,current_school_status:_.edt.current_school_status,current_school_name:_.edt.current_school_name,current_school_enroll_number:_.edt.current_school_enroll_number,current_school_grade:_.edt.current_school_grade,current_school_cur:_.edt.current_school_cur,current_school_from_date:_.edt.current_school_from_date,current_school_to_date:_.edt.current_school_to_date,current_school_language:_.edt.current_school_language,current_school_head_teacher:_.edt.current_school_head_teacher,current_school_phone:_.edt.current_school_phone,current_school_fax:_.edt.current_school_fax,current_school_city:_.edt.current_school_city,current_school_country_code:_.edt.current_school_country_code,current_school_address:_.edt.current_school_address,marketing_code:_.edt.marketing_code,marketing_description:_.edt.marketing_description,parent_status_code:_.edt.parent_status_code,legal_custody_code:_.edt.legal_custody_code,health_card_number:_.edt.health_card_number,health_card_issue_date:_.edt.health_card_issue_date,health_card_issuing_authority:_.edt.health_card_issuing_authority,blood_group_code:_.edt.blood_group_code,medication_status:_.edt.medication_status,medication_desc:_.edt.medication_desc,disability_status:_.edt.disability_status,disability_desc:_.edt.disability_desc,behaviour_status:_.edt.behaviour_status,behaviour_desc:_.edt.behaviour_desc,health_restriction_status:_.edt.health_restriction_status,health_restriction_desc:_.edt.health_restriction_desc,health_hearing_status:_.edt.health_hearing_status,health_hearing_desc:_.edt.health_hearing_desc,health_vision_status:_.edt.health_vision_status,health_vision_desc:_.edt.health_vision_desc,health_other_status:_.edt.health_other_status,health_other_desc:_.edt.health_other_desc,gifted_status:_.edt.gifted_status,gifted_desc:_.edt.gifted_desc,music_status:_.edt.music_status,music_desc:_.edt.music_desc,sports_status:_.edt.sports_status,sports_desc:_.edt.sports_desc,language_support_status:_.edt.language_support_status,language_support_desc:_.edt.language_support_desc,declaration_status:_.edt.declaration_status,fees_paid_status:_.edt.fees_paid_status,fee_category_code:_.edt.fee_category_code,ip:_.edt.ip,dns:_.edt.dns,user_code:_.edt.user_code,status:_.edt.status,sims_student_attribute1:_.edt.sims_student_attribute1,sims_student_attribute2:_.edt.sims_student_attribute2,sims_student_attribute3:_.edt.sims_student_attribute3,sims_student_attribute4:_.edt.sims_student_attribute4,sims_student_health_respiratory_status:_.edt.sims_student_health_respiratory_status,sims_student_health_respiratory_desc:_.edt.sims_student_health_respiratory_desc,sims_student_health_hay_fever_status:_.edt.sims_student_health_hay_fever_status,sims_student_health_hay_fever_desc:_.edt.sims_student_health_hay_fever_desc,sims_student_health_epilepsy_status:_.edt.sims_student_health_epilepsy_status,sims_student_health_epilepsy_desc:_.edt.sims_student_health_epilepsy_desc,sims_student_health_skin_status:_.edt.sims_student_health_skin_status,sims_student_health_skin_desc:_.edt.sims_student_health_skin_desc,sims_student_health_diabetes_status:_.edt.sims_student_health_diabetes_status,sims_student_health_diabetes_desc:_.edt.sims_student_health_diabetes_desc,sims_student_health_surgery_status:_.edt.sims_student_health_surgery_status,sims_student_health_surgery_desc:_.edt.sims_student_health_surgery_desc,quota_code:_.edt.quota_code,sims_admission_mother_national_id:_.edt.sims_admission_mother_national_id,category_code:_.edt.category_code,sims_pros_attribute8:_.edt.sims_pros_attribute8,opr:"I"},t.push(e),n.post(d.apiUrl+"api/common/ProspectDashboard/CUDUpdateProspectAdmission",t).then(function(e){_.display=!0,_.msg1=e.data,!0===_.msg1.status&&swal({title:"Alert",text:_.msg1.strMessage,showCloseButton:!0,width:380}).then(function(e){e?_.Cancel():swal({title:"Alert",text:"Please fill mandatory fields.",showCloseButton:!0,width:380})})}))},_.get_legaldetails=function(e){"F"==e&&(_.edt.father_first_name=_.msg1.father_first_name,_.edt.father_middle_name=_.msg1.father_middle_name,_.edt.father_last_name=_.msg1.father_last_name,_.edt.father_summary_address=_.msg1.father_summary_address,_.edt.father_mobile=_.msg1.father_mobile,_.edt.father_email=_.msg1.father_email,_.edt.sims_admission_father_national_id=_.msg1.sims_parent_father_national_id,_.edt.father_nationality1_code=_.msg1.father_nationality1_code),"M"==e&&(_.edt.father_first_name=_.msg1.mother_first_name,_.edt.father_middle_name=_.msg1.mother_middle_name,_.edt.father_last_name=_.msg1.mother_last_name,_.edt.father_summary_address=_.msg1.mother_summary_address,_.edt.father_mobile=_.msg1.mother_mobile,_.edt.father_email=_.msg1.mother_email,_.edt.sims_admission_father_national_id=_.msg1.sims_parent_mother_national_id,_.edt.mother_nationality1_code=_.msg1.mother_nationality1_code),"G"==e&&(_.edt.father_first_name=_.msg1.guardian_first_name,_.edt.father_middle_name=_.msg1.guardian_middle_name,_.edt.father_last_name=_.msg1.guardian_last_name,_.edt.father_summary_address=_.msg1.guardian_summary_address,_.edt.father_mobile=_.msg1.guardian_mobile_no,_.edt.father_email=_.msg1.guardian_email_id,_.edt.sims_admission_father_national_id=_.msg1.sims_parent_guardian_national_id,_.edt.guardian_nationality1_code=_.msg1.guardian_nationality1_code)},_.getgrid=function(){_.edt=[],_.msg1="",_.myForm.$setPristine(),_.myForm.$setUntouched(),$('.nav-tabs a[href="#tab1"]').tab("show")},_.Update=function(e){var t=[];e&&(e={admission_number:_.edt.admission_number,appl_num:_.edt.appl_num,pros_num:_.edt.pros_num,pros_appl_num:_.edt.pros_appl_num,admission_date:_.edt.admission_date,school_code:_.edt.school_code,curr_code:_.edt.curr_code,academic_year:_.edt.academic_year,grade_code:_.edt.grade_code,section_code:_.edt.section_code,term_code:_.edt.term_code,tent_join_date:_.edt.tent_join_date,sims_student_emergency_contact_number1:_.edt.sims_student_emergency_contact_number1,sims_student_emergency_contact_name1:_.edt.sims_student_emergency_contact_name1,first_name:_.edt.first_name,middle_name:_.edt.middle_name,last_name:_.edt.last_name,family_name:_.edt.family_name,first_name_ot:_.edt.first_name_ot,midd_name_ot:_.edt.midd_name_ot,last_name_ot:_.edt.last_name_ot,family_name_ot:_.edt.family_name_ot,nicke_name:_.edt.nicke_name,birth_date:_.edt.birth_date,comm_date:_.edt.comm_date,birth_country_code:_.edt.birth_country_code,nationality_code:_.edt.nationality_code,ethinicity_code:_.edt.ethinicity_code,gender_code:_.edt.gender_code,religion_code:_.edt.religion_code,passport_num:_.edt.passport_num,passport_issue_date:_.edt.passport_issue_date,passport_expiry:_.edt.passport_expiry,passport_issue_auth:_.edt.passport_issue_auth,passport_issue_place:_.edt.passport_issue_place,visa_number:_.edt.visa_number,visa_type:_.edt.visa_type,visa_issuing_authority:_.edt.visa_issuing_authority,visa_issue_date:_.edt.visa_issue_date,visa_expiry_date:_.edt.visa_expiry_date,visa_issuing_place:_.edt.visa_issuing_place,national_id:_.edt.national_id,national_id_issue_date:_.edt.national_id_issue_date,national_id_expiry_date:_.edt.national_id_expiry_date,sibling_status:_.edt.sibling_status,parent_id:_.edt.parent_id,sibling_enroll:_.edt.sibling_enroll,sibling_name:_.edt.sibling_name,sibling_dob:_.edt.sibling_dob,sibling_school_code:_.edt.sibling_school_code,employee_type:_.edt.employee_type,employee_code:_.edt.employee_code,employee_school_code:_.edt.employee_school_code,motherTounge_language_code:_.edt.motherTounge_language_code,main_language_code:_.edt.main_language_code,main_language_r_code:_.edt.main_language_r_code,main_language_w_code:_.edt.main_language_w_code,main_language_s_code:_.edt.main_language_s_code,primary_contact_code:_.edt.primary_contact_code,primary_contact_pref_code:_.edt.primary_contact_pref_code,fee_payment_contact_pref_code:_.edt.fee_payment_contact_pref_code,transport_status:_.edt.transport_status,transport_desc:_.edt.transport_desc,father_salutation_code:_.edt.father_salutation_code,father_first_name:_.edt.father_first_name,father_middle_name:_.edt.father_middle_name,father_last_name:_.edt.father_last_name,father_family_name:_.edt.father_family_name,father_family_name_ot:_.edt.father_family_name_ot,father_nationality1_code:_.edt.father_nationality1_code,father_nationality2_code:_.edt.father_nationality2_code,father_appartment_number:_.edt.father_appartment_number,father_building_number:_.edt.father_building_number,father_street_number:_.edt.father_street_number,father_area_number:_.edt.father_area_number,father_city:_.edt.father_city,father_state:_.edt.father_state,father_country_code:_.edt.father_country_code,father_summary_address:_.edt.father_summary_address,father_po_box:_.edt.father_po_box,father_phone:_.edt.father_phone,father_email:_.edt.father_email,father_mobile:_.edt.father_mobile,father_fax:_.edt.father_fax,father_occupation:_.edt.father_occupation,father_company:_.edt.father_company,father_passport_number:_.edt.father_passport_number,sims_admission_father_national_id:_.edt.sims_admission_father_national_id,guardian_salutation_code:_.edt.guardian_salutation_code,guardian_first_name:_.edt.guardian_first_name,guardian_middle_name:_.edt.guardian_middle_name,guardian_last_name:_.edt.guardian_last_name,guardian_family_name:_.edt.guardian_family_name,guardian_nationality1_code:_.edt.guardian_nationality1_code,guardian_nationality2_code:_.edt.guardian_nationality2_code,guardian_appartment_number:_.edt.guardian_appartment_number,guardian_building_number:_.edt.guardian_building_number,guardian_street_number:_.edt.guardian_street_number,guardian_area_number:_.edt.guardian_area_number,guardian_city:_.edt.guardian_city,guardian_state:_.edt.guardian_state,guardian_country_code:_.edt.guardian_country_code,guardian_summary_address:_.edt.guardian_summary_address,guardian_po_box:_.edt.guardian_po_box,guardian_phone:_.edt.guardian_phone,guardian_mobile:_.edt.guardian_mobile,guardian_fax:_.edt.guardian_fax,guardian_email:_.edt.guardian_email,guardian_occupation:_.edt.guardian_occupation,guardian_company:_.edt.guardian_company,guardian_passport_number:_.edt.guardian_passport_number,guardian_relationship_code:_.edt.guardian_relationship_code,mother_salutation_code:_.edt.mother_salutation_code,mother_first_name:_.edt.mother_first_name,mother_middle_name:_.edt.mother_middle_name,mother_last_name:_.edt.mother_last_name,mother_family_name:_.edt.mother_family_name,mother_name_ot:_.edt.mother_name_ot,mother_nationality1_code:_.edt.mother_nationality1_code,mother_nationality2_code:_.edt.mother_nationality2_code,mother_appartment_number:_.edt.mother_appartment_number,mother_building_number:_.edt.mother_building_number,mother_street_number:_.edt.mother_street_number,mother_area_number:_.edt.mother_area_number,mother_city:_.edt.mother_city,mother_state:_.edt.mother_state,mother_country_code:_.edt.mother_country_code,mother_summary_address:_.edt.mother_summary_address,mother_po_box:_.edt.mother_po_box,mother_phone:_.edt.mother_phone,mother_mobile:_.edt.mother_mobile,mother_fax:_.edt.mother_fax,mother_email:_.edt.mother_email,mother_occupation:_.edt.mother_occupation,mother_passport_number:_.edt.mother_passport_number,current_school_status:_.edt.current_school_status,current_school_name:_.edt.current_school_name,current_school_enroll_number:_.edt.current_school_enroll_number,current_school_grade:_.edt.current_school_grade,current_school_cur:_.edt.current_school_cur,current_school_from_date:_.edt.current_school_from_date,current_school_to_date:_.edt.current_school_to_date,current_school_language:_.edt.current_school_language,current_school_head_teacher:_.edt.current_school_head_teacher,current_school_phone:_.edt.current_school_phone,current_school_fax:_.edt.current_school_fax,current_school_city:_.edt.current_school_city,current_school_country_code:_.edt.current_school_country_code,current_school_address:_.edt.current_school_address,marketing_code:_.edt.marketing_code,marketing_description:_.edt.marketing_description,parent_status_code:_.edt.parent_status_code,legal_custody_code:_.edt.legal_custody_code,health_card_number:_.edt.health_card_number,health_card_issue_date:_.edt.health_card_issue_date,health_card_issuing_authority:_.edt.health_card_issuing_authority,blood_group_code:_.edt.blood_group_code,medication_status:_.edt.medication_status,medication_desc:_.edt.medication_desc,disability_status:_.edt.disability_status,disability_desc:_.edt.disability_desc,behaviour_status:_.edt.behaviour_status,behaviour_desc:_.edt.behaviour_desc,health_restriction_status:_.edt.health_restriction_status,health_restriction_desc:_.edt.health_restriction_desc,health_hearing_status:_.edt.health_hearing_status,health_hearing_desc:_.edt.health_hearing_desc,health_vision_status:_.edt.health_vision_status,health_vision_desc:_.edt.health_vision_desc,health_other_status:_.edt.health_other_status,health_other_desc:_.edt.health_other_desc,gifted_status:_.edt.gifted_status,gifted_desc:_.edt.gifted_desc,music_status:_.edt.music_status,music_desc:_.edt.music_desc,sports_status:_.edt.sports_status,sports_desc:_.edt.sports_desc,language_support_status:_.edt.language_support_status,language_support_desc:_.edt.language_support_desc,declaration_status:_.edt.declaration_status,fees_paid_status:_.edt.fees_paid_status,fee_category_code:_.edt.fee_category_code,ip:_.edt.ip,dns:_.edt.dns,user_code:_.edt.user_code,status:_.edt.status,sims_student_attribute1:_.edt.sims_student_attribute1,sims_student_attribute2:_.edt.sims_student_attribute2,sims_student_attribute3:_.edt.sims_student_attribute3,sims_student_attribute4:_.edt.sims_student_attribute4,sims_student_health_respiratory_status:_.edt.sims_student_health_respiratory_status,sims_student_health_respiratory_desc:_.edt.sims_student_health_respiratory_desc,sims_student_health_hay_fever_status:_.edt.sims_student_health_hay_fever_status,sims_student_health_hay_fever_desc:_.edt.sims_student_health_hay_fever_desc,sims_student_health_epilepsy_status:_.edt.sims_student_health_epilepsy_status,sims_student_health_epilepsy_desc:_.edt.sims_student_health_epilepsy_desc,sims_student_health_skin_status:_.edt.sims_student_health_skin_status,sims_student_health_skin_desc:_.edt.sims_student_health_skin_desc,sims_student_health_diabetes_status:_.edt.sims_student_health_diabetes_status,sims_student_health_diabetes_desc:_.edt.sims_student_health_diabetes_desc,sims_student_health_surgery_status:_.edt.sims_student_health_surgery_status,sims_student_health_surgery_desc:_.edt.sims_student_health_surgery_desc,quota_code:_.edt.quota_code,sims_admission_recommendation:_.edt.sims_admission_recommendation,category_code:_.edt.category_code,sims_pros_attribute8:_.edt.sims_pros_attribute8,opr:"U"},t.push(e),n.post(d.apiUrl+"api/common/ProspectDashboard/CUDUpdateProspectAdmission",t).then(function(e){_.display=!0,_.msg1=e.data,!0===_.msg1.status&&swal({title:"Alert",text:"Enquiry number "+_.edt.pros_num+" validated successfully.",showCloseButton:!0,width:380}).then(function(e){e&&_.modal_cancel()})}))},_.Update1=function(e){var t=[];e&&(e={admission_number:_.edt.admission_number,appl_num:_.edt.appl_num,pros_num:_.edt.pros_num,pros_appl_num:_.edt.pros_appl_num,admission_date:_.edt.admission_date,school_code:_.edt.school_code,curr_code:_.edt.curr_code,academic_year:_.edt.academic_year,grade_code:_.edt.grade_code,section_code:_.edt.section_code,term_code:_.edt.term_code,tent_join_date:_.edt.tent_join_date,sims_student_emergency_contact_number1:_.edt.sims_student_emergency_contact_number1,sims_student_emergency_contact_name1:_.edt.sims_student_emergency_contact_name1,first_name:_.edt.first_name,middle_name:_.edt.middle_name,last_name:_.edt.last_name,family_name:_.edt.family_name,first_name_ot:_.edt.first_name_ot,midd_name_ot:_.edt.midd_name_ot,last_name_ot:_.edt.last_name_ot,family_name_ot:_.edt.family_name_ot,nicke_name:_.edt.nicke_name,birth_date:_.edt.birth_date,comm_date:_.edt.comm_date,birth_country_code:_.edt.birth_country_code,nationality_code:_.edt.nationality_code,ethinicity_code:_.edt.ethinicity_code,gender_code:_.edt.gender_code,religion_code:_.edt.religion_code,passport_num:_.edt.passport_num,passport_issue_date:_.edt.passport_issue_date,passport_expiry:_.edt.passport_expiry,passport_issue_auth:_.edt.passport_issue_auth,passport_issue_place:_.edt.passport_issue_place,visa_number:_.edt.visa_number,visa_type:_.edt.visa_type,visa_issuing_authority:_.edt.visa_issuing_authority,visa_issue_date:_.edt.visa_issue_date,visa_expiry_date:_.edt.visa_expiry_date,visa_issuing_place:_.edt.visa_issuing_place,national_id:_.edt.national_id,national_id_issue_date:_.edt.national_id_issue_date,national_id_expiry_date:_.edt.national_id_expiry_date,sibling_status:_.edt.sibling_status,parent_id:_.edt.parent_id,sibling_enroll:_.edt.sibling_enroll,sibling_name:_.edt.sibling_name,sibling_dob:_.edt.sibling_dob,sibling_school_code:_.edt.sibling_school_code,employee_type:_.edt.employee_type,employee_code:_.edt.employee_code,employee_school_code:_.edt.employee_school_code,motherTounge_language_code:_.edt.motherTounge_language_code,main_language_code:_.edt.main_language_code,main_language_r_code:_.edt.main_language_r_code,main_language_w_code:_.edt.main_language_w_code,main_language_s_code:_.edt.main_language_s_code,primary_contact_code:_.edt.primary_contact_code,primary_contact_pref_code:_.edt.primary_contact_pref_code,fee_payment_contact_pref_code:_.edt.fee_payment_contact_pref_code,transport_status:_.edt.transport_status,transport_desc:_.edt.transport_desc,father_salutation_code:_.edt.father_salutation_code,father_first_name:_.edt.father_first_name,father_middle_name:_.edt.father_middle_name,father_last_name:_.edt.father_last_name,father_family_name:_.edt.father_family_name,father_family_name_ot:_.edt.father_family_name_ot,father_nationality1_code:_.edt.father_nationality1_code,father_nationality2_code:_.edt.father_nationality2_code,father_appartment_number:_.edt.father_appartment_number,father_building_number:_.edt.father_building_number,father_street_number:_.edt.father_street_number,father_area_number:_.edt.father_area_number,father_city:_.edt.father_city,father_state:_.edt.father_state,father_country_code:_.edt.father_country_code,father_summary_address:_.edt.father_summary_address,father_po_box:_.edt.father_po_box,father_phone:_.edt.father_phone,father_email:_.edt.father_email,father_mobile:_.edt.father_mobile,father_fax:_.edt.father_fax,father_occupation:_.edt.father_occupation,father_company:_.edt.father_company,father_passport_number:_.edt.father_passport_number,sims_admission_father_national_id:_.edt.sims_admission_father_national_id,guardian_salutation_code:_.edt.guardian_salutation_code,guardian_first_name:_.edt.guardian_first_name,guardian_middle_name:_.edt.guardian_middle_name,guardian_last_name:_.edt.guardian_last_name,guardian_family_name:_.edt.guardian_family_name,guardian_nationality1_code:_.edt.guardian_nationality1_code,guardian_nationality2_code:_.edt.guardian_nationality2_code,guardian_appartment_number:_.edt.guardian_appartment_number,guardian_building_number:_.edt.guardian_building_number,guardian_street_number:_.edt.guardian_street_number,guardian_area_number:_.edt.guardian_area_number,guardian_city:_.edt.guardian_city,guardian_state:_.edt.guardian_state,guardian_country_code:_.edt.guardian_country_code,guardian_summary_address:_.edt.guardian_summary_address,guardian_po_box:_.edt.guardian_po_box,guardian_phone:_.edt.guardian_phone,guardian_mobile:_.edt.guardian_mobile,guardian_fax:_.edt.guardian_fax,guardian_email:_.edt.guardian_email,guardian_occupation:_.edt.guardian_occupation,guardian_company:_.edt.guardian_company,guardian_passport_number:_.edt.guardian_passport_number,guardian_relationship_code:_.edt.guardian_relationship_code,mother_salutation_code:_.edt.mother_salutation_code,mother_first_name:_.edt.mother_first_name,mother_middle_name:_.edt.mother_middle_name,mother_last_name:_.edt.mother_last_name,mother_family_name:_.edt.mother_family_name,mother_name_ot:_.edt.mother_name_ot,mother_nationality1_code:_.edt.mother_nationality1_code,mother_nationality2_code:_.edt.mother_nationality2_code,mother_appartment_number:_.edt.mother_appartment_number,mother_building_number:_.edt.mother_building_number,mother_street_number:_.edt.mother_street_number,mother_area_number:_.edt.mother_area_number,mother_city:_.edt.mother_city,mother_state:_.edt.mother_state,mother_country_code:_.edt.mother_country_code,mother_summary_address:_.edt.mother_summary_address,mother_po_box:_.edt.mother_po_box,mother_phone:_.edt.mother_phone,mother_mobile:_.edt.mother_mobile,mother_fax:_.edt.mother_fax,mother_email:_.edt.mother_email,mother_occupation:_.edt.mother_occupation,mother_passport_number:_.edt.mother_passport_number,current_school_status:_.edt.current_school_status,current_school_name:_.edt.current_school_name,current_school_enroll_number:_.edt.current_school_enroll_number,current_school_grade:_.edt.current_school_grade,current_school_cur:_.edt.current_school_cur,current_school_from_date:_.edt.current_school_from_date,current_school_to_date:_.edt.current_school_to_date,current_school_language:_.edt.current_school_language,current_school_head_teacher:_.edt.current_school_head_teacher,current_school_phone:_.edt.current_school_phone,current_school_fax:_.edt.current_school_fax,current_school_city:_.edt.current_school_city,current_school_country_code:_.edt.current_school_country_code,current_school_address:_.edt.current_school_address,marketing_code:_.edt.marketing_code,marketing_description:_.edt.marketing_description,parent_status_code:_.edt.parent_status_code,legal_custody_code:_.edt.legal_custody_code,health_card_number:_.edt.health_card_number,health_card_issue_date:_.edt.health_card_issue_date,health_card_issuing_authority:_.edt.health_card_issuing_authority,blood_group_code:_.edt.blood_group_code,medication_status:_.edt.medication_status,medication_desc:_.edt.medication_desc,disability_status:_.edt.disability_status,disability_desc:_.edt.disability_desc,behaviour_status:_.edt.behaviour_status,behaviour_desc:_.edt.behaviour_desc,health_restriction_status:_.edt.health_restriction_status,health_restriction_desc:_.edt.health_restriction_desc,health_hearing_status:_.edt.health_hearing_status,health_hearing_desc:_.edt.health_hearing_desc,health_vision_status:_.edt.health_vision_status,health_vision_desc:_.edt.health_vision_desc,health_other_status:_.edt.health_other_status,health_other_desc:_.edt.health_other_desc,gifted_status:_.edt.gifted_status,gifted_desc:_.edt.gifted_desc,music_status:_.edt.music_status,music_desc:_.edt.music_desc,sports_status:_.edt.sports_status,sports_desc:_.edt.sports_desc,language_support_status:_.edt.language_support_status,language_support_desc:_.edt.language_support_desc,declaration_status:_.edt.declaration_status,fees_paid_status:_.edt.fees_paid_status,fee_category_code:_.edt.fee_category_code,ip:_.edt.ip,dns:_.edt.dns,user_code:_.edt.user_code,status:_.edt.status,sims_student_attribute1:_.edt.sims_student_attribute1,sims_student_attribute2:_.edt.sims_student_attribute2,sims_student_attribute3:_.edt.sims_student_attribute3,sims_student_attribute4:_.edt.sims_student_attribute4,sims_student_health_respiratory_status:_.edt.sims_student_health_respiratory_status,sims_student_health_respiratory_desc:_.edt.sims_student_health_respiratory_desc,sims_student_health_hay_fever_status:_.edt.sims_student_health_hay_fever_status,sims_student_health_hay_fever_desc:_.edt.sims_student_health_hay_fever_desc,sims_student_health_epilepsy_status:_.edt.sims_student_health_epilepsy_status,sims_student_health_epilepsy_desc:_.edt.sims_student_health_epilepsy_desc,sims_student_health_skin_status:_.edt.sims_student_health_skin_status,sims_student_health_skin_desc:_.edt.sims_student_health_skin_desc,sims_student_health_diabetes_status:_.edt.sims_student_health_diabetes_status,sims_student_health_diabetes_desc:_.edt.sims_student_health_diabetes_desc,sims_student_health_surgery_status:_.edt.sims_student_health_surgery_status,sims_student_health_surgery_desc:_.edt.sims_student_health_surgery_desc,quota_code:_.edt.quota_code,sims_admission_recommendation:_.edt.sims_admission_recommendation,category_code:_.edt.category_code,sims_pros_attribute8:_.edt.sims_pros_attribute8,opr:"U"},t.push(e),n.post(d.apiUrl+"api/common/ProspectDashboard/CUDUpdateProspectAdmission",t).then(function(e){_.display=!0,_.msg1=e.data,!0===_.msg1.status&&swal({title:"Alert",text:"Enquiry number "+_.edt.pros_num+" has been validated and moved to admission process successfully.",showCloseButton:!0,width:380}).then(function(e){var t;e&&(e=(e=[])+_.edt.pros_num+",",0<((t=_.edt).pros_num=e).length?n.post(d.apiUrl+"api/common/ProspectDashboard/ApproveMultiple",t).then(function(e){_.modal_cancel()}):_.modal_cancel())})}))},_.modal_cancel=function(){"clarionschool"==n.defaults.headers.common.schoolId||"alpha"==n.defaults.headers.common.schoolId?e.go("main.PrCsd",{Class:t.Class}):"staging3"===n.defaults.headers.common.schoolId||"staging1"===n.defaults.headers.common.schoolId||"staging2"===n.defaults.headers.common.schoolId||"staging4"===n.defaults.headers.common.schoolId||"tiadxb"===n.defaults.headers.common.schoolId||"tiashj"===n.defaults.headers.common.schoolId||"tosdxb"===n.defaults.headers.common.schoolId||"aisdxb"===n.defaults.headers.common.schoolId||"ics"===n.defaults.headers.common.schoolId||"sis"===n.defaults.headers.common.schoolId||"ksa"===n.defaults.headers.common.schoolId?e.go("main.Prleam",{Class:t.Class}):e.go("main.Prsiso",{Class:t.Class})},_.back=function(){_.modal_cancel()},_.schoolcheck=function(){!0===_.edt.current_school_status?_.school_edit=!1:_.school_edit=!0},_.chk_desc=function(){!0===_.edt.marketing_code?_.desc_edit=!1:_.desc_edit=!0},_.chk_cicumstances=function(){!0===_.edt.parent_status_code?_.circum_edit=!1:_.circum_edit=!0},_.chk_disab_status=function(){!0===_.edt.disability_status?_.disab_edit=!1:_.disab_edit=!0},_.chk_health_res=function(){!0===_.edt.health_restriction_status?_.healthres_edit=!1:_.healthres_edit=!0},_.chk_medic_status=function(){!0===_.edt.medication_status?_.med_edit=!1:_.med_edit=!0},_.chk_other=function(){!0===_.edt.health_other_status?_.other_edit=!1:_.other_edit=!0},_.chk_hearing=function(){!0===_.edt.health_hearing_status?_.hearing_edit=!1:_.hearing_edit=!0},_.chk_vision=function(){!0===_.edt.health_vision_status?_.health_vision_edit=!1:_.health_vision_edit=!0},_.chk_behaviour=function(){!0===_.edt.behaviour_status?_.behaviour_edit=!1:_.behaviour_edit=!0},_.chk_gifted_status=function(){!0===_.edt.gifted_status?_.gifted_edit=!1:_.gifted_edit=!0},_.chk_music_pro=function(){!0===_.edt.music_status?_.music_edit=!1:_.music_edit=!0},_.chk_sport_pro=function(){!0===_.edt.sports_status?_.sport_edit=!1:_.sport_edit=!0},_.chk_lang_sup=function(){!0===_.edt.language_support_status?_.lang_sup_edit=!1:_.lang_sup_edit=!0},_.chk_Pri_contact=function(){!0===_.edt.primary_contact_code?_.pricont_edit=!1:_.pricont_edit=!0},_.chk_transport_requin=function(){!0===_.edt.transport_status?_.transreq_edit=!1:_.transreq_edit=!0},_.chk_employee=function(){!0===_.edt.employee_type?_.emp_edit=!1:_.emp_edit=!0},_.chk_studyingin=function(){!0===_.edt.sibling_status?(_.Study_edit=!1,document.getElementById("t3"),document.getElementById("t4"),document.getElementById("t5"),_.t=!1):(_.Study_edit=!0,document.getElementById("t3"),document.getElementById("t4"),document.getElementById("t5"),_.t=!0)},_.chk_ticking=function(){!0===_.edt.declaration_status?(_.tick_edit=!1,_.confirm_edit=!0):(_.tick_edit=!0,_.confirm_edit=!1)},_.chk_copy_mother_add=function(){!0===_.edt.copy_add?(_.edt.mother_appartment_number=_.edt.father_appartment_number,_.edt.mother_area_number=_.edt.father_area_number,_.edt.mother_building_number=_.edt.father_building_number,_.edt.mother_street_number=_.edt.father_street_number,_.edt.mother_city=_.edt.father_city,_.edt.mother_state=_.edt.father_state,_.edt.mother_country_code=_.edt.father_country_code,_.edt.mother_po_box=_.edt.father_po_box,_.edt.mother_nationality1_code=_.edt.father_nationality1_code,_.edt.mother_nationality2_code=_.edt.father_nationality2_code,_.edt.mother_summary_address=_.edt.father_summary_address,_.edt.mother_phone=_.edt.father_phone,_.edt.mother_po_box=_.edt.father_po_box,_.edt.mother_mobile=_.edt.father_mobile,_.edt.mother_occupation=_.edt.father_occupation,_.edt.mother_email=_.edt.father_email,_.edt.mother_company=_.edt.father_company):(_.edt.mother_appartment_number="",_.edt.mother_area_number="",_.edt.mother_building_number="",_.edt.mother_street_number="",_.edt.mother_city="",_.edt.mother_state="",_.edt.mother_country_code="",_.edt.mother_po_box="",_.edt.mother_nationality1_code="",_.edt.mother_nationality2_code="",_.edt.mother_summary_address="",_.edt.mother_phone="",_.edt.mother_po_box="",_.edt.mother_mobile="",_.edt.mother_occupation="",_.edt.mother_email="",_.edt.mother_company="")},_.chk_copy_guar_add1=function(){!0===_.edt.copy_add1?(_.edt.guardian_appartment_number=_.edt.father_appartment_number,_.edt.guardian_area_number=_.edt.father_area_number,_.edt.guardian_building_number=_.edt.father_building_number,_.edt.guardian_street_number=_.edt.father_street_number,_.edt.guardian_city=_.edt.father_city,_.edt.guardian_state=_.edt.father_state,_.edt.guardian_country_code=_.edt.father_country_code,_.edt.guardian_po_box=_.edt.father_po_box,_.edt.guardian_nationality1_code=_.edt.father_nationality1_code,_.edt.guardian_nationality2_code=_.edt.father_nationality2_code,_.edt.guardian_summary_address=_.edt.father_summary_address,_.edt.guardian_phone=_.edt.father_phone,_.edt.guardian_po_box=_.edt.father_po_box,_.edt.guardian_mobile=_.edt.father_mobile,_.edt.guardian_occupation=_.edt.father_occupation,_.edt.guardian_email=_.edt.father_email,_.edt.guardian_company=_.edt.father_company):(_.edt.guardian_appartment_number="",_.edt.guardian_area_number="",_.edt.guardian_building_number="",_.edt.guardian_street_number="",_.edt.guardian_city="",_.edt.guardian_state="",_.edt.guardian_country_code="",_.edt.guardian_po_box="",_.edt.guardian_nationality1_code="",_.edt.guardian_nationality2_code="",_.edt.guardian_summary_address="",_.edt.guardian_phone="",_.edt.guardian_po_box="",_.edt.guardian_mobile="",_.edt.guardian_occupation="",_.edt.guardian_email="",_.edt.guardian_company="")},_.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,_=$("#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&&(_.s.r=t),_.s.c>e&&(_.s.c=e),_.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 _="no";angular.forEach(o,function(e,t){f.append(t,e);var a=0;if(10485760new Date(_.obj_age[o].sims_birth_date_to))&&(e=_.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){_.demo_values=e.data,_.edt.mobile_code1=e.data[210].sims_country_code,_.emergency_phone1()}):i.get(d.apiUrl+"api/studentdatabase/getdemo").then(function(e){_.demo_values=e.data}),_.emergency_phone1=function(){i.get(d.apiUrl+"api/studentdatabase/getisdd?country_code="+_.edt.mobile_code1).then(function(e){_.get_phonecode=e.data,null!=_.edt.mobile&&"-"!=_.edt.mobile&&(null!=_.olisdcode_emergency?_.edt.mobile=_.edt.mobile.replace(_.olisdcode_emergency,_.get_phonecode[0].sims_country_isd_code):_.edt.mobile=_.get_phonecode[0].sims_country_isd_code+_.edt.mobile),null==_.edt.mobile&&(_.edt.mobile=_.get_phonecode[0].sims_country_isd_code.slice(1,-1)),_.olisdcode_emergencyphone()})},_.olisdcode_emergencyphone=function(){0<_.get_phonecode.length&&(_.olisdcode_emergency=_.get_phonecode[0].sims_country_isd_code)},_.mobile_change=function(){i.get(d.apiUrl+"api/common/ProspectDashboard/GetMobileDetails?mobile="+_.edt.mobile).then(function(e){_.mobile_lst=e.data,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,_.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=[],_.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,_.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=[],_.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+"";_+="",e.forEach(function(e,t){_+="";for(var a=0;a'+e[s[a].dataKey]+"";_+=""});var e={worksheet:t||"Worksheet",table:_+=""},n=document.createElement("a"),e=(n.href="data:application/vnd.ms-excel;base64,"+i.base64(i.format('\x3c!--[if gte mso 9]>{worksheet}{table}
',e)),new Date);n.download=t.replace(/ /g,"_")+"_"+i.getFormatedDate(e,"dd./.mm./.yyyy. .hh.:.mn.:.ss").replace(/ /g,"_")+".xls",n.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(_,t,a,s,e,o,n,i,d,r){$('*[data-datepicker="true"] input[type="text"]').datepicker({todayBtn:!0,orientation:"top left",autoclose:!0,todayHighlight:!0,format:"yyyy-mm-dd"}),_.username="",_.password="",_.schoolUrl="",_.user={},_.temp={},_.signup=function(){},_.showForgetPaaword=!1,_.edt={},_.schoolUrl=window.location.href;var c=_.schoolUrl.substring(_.schoolUrl.indexOf("/")+2,_.schoolUrl.indexOf("."));"www"==c||"WWW"==c?(_.schoolUrl=window.location.href,c=_.schoolUrl.split(".")[1],d.defaults.headers.common.schoolId=c):d.defaults.headers.common.schoolId="sis",_.onKeyPress=function(e){13==e.keyCode&&_.login()},d.get(r.apiUrl+"api/Fee/SFS/getvacancyEmpData").then(function(e){_.obj=e.data,console.log(_.obj)}),_.login=function(){d.get(r.apiUrl+"api/common/getlastLogin?uname="+_.username).then(function(e){_.isfistTimeLog=e.data,console.log(e.data),$("#loader").modal({backdrop:"static",keyboard:!1}),_.showForgetPaaword?_.toggleLoginScreen():(_.showMessage=!1,s.Login(_.username,_.password,function(e){console.log(e),_.showMessage=!0,0==e.success?(_.showMessage=!0,_.messageClass="alert alert-warning alert-dismissable",_.message="Invalid username or password!!!",$("#loader").modal("hide")):($("#loader").modal("hide"),_.showMessage=!0,_.messageClass="alert alert-success alert-dismissable",s.ClearCredentials(),s.SetCredentials(_.username,_.password),_.message="SuccessFully Authenticated!!!",$(".modal-backdrop").removeClass("modal-backdrop"),$("#loader").modal("hide"),o(function(){var e;a.isfistTimeLog=_.isfistTimeLog,t.go("main.dashboard"),_.keepMeSign&&(e={id:d.defaults.headers.common.schoolId,uname:_.username,pass:_.password},window.localStorage.KeepMeDetails=JSON.stringify(e))}))}))})},_.GetSumAddr=function(){var e=_.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,_,a,n,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",_(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,_.get(n.apiUrl+"api/common/ProspectDashboard/GetAcademicYear").then(function(e){a.academicYears=e.data,a.edt.academic_year=e.data[0].academic_year}),_.get("https://oa.mograsys.com/"+_.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,_.post(n.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,_.post("https://oa.mograsys.com/"+_.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||_.post("https://oa.mograsys.com/"+_.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;_.post(n.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(n,e,i,t,a,o,_){n.temp={},n.edt={};i.globals.currentUser.username;n.expand_object=!1;var s=("0"+(s=new Date).getDate()).slice(-2)+"-"+("0"+(s.getMonth()+1)).slice(-2)+"-"+s.getFullYear(),d=(n.temp.to_date=s,n.temp.from_date=s,n.temp.issue_creation_date=s,n.hide_submit=!1,n.showDetails=!1,n.showStudDetails=!1,n.submitBtnDisabled=!1,n.hide_grid=!1,n.busyindicator=!0,n.hide_save=!0,n.loadingscr=!0,[]),r=(n.images=[],n.images_delete=[],""),c=(n.getcur=function(){o.get(_.apiUrl+"api/common/getCuriculum").then(function(e){n.curriculum=e.data,n.temp.sims_cur_code=n.curriculum[0].sims_cur_code,n.getAccYear(n.temp.sims_cur_code)})},n.getcur(),n.getAccYear=function(e){o.get(_.apiUrl+"api/common/getAcademicYear?curCode="+e).then(function(e){n.Acc_year=e.data,n.temp.sims_academic_year=n.Acc_year[0].sims_academic_year,n.getCampDetails()})},n.getCampDetails=function(){o.get(_.apiUrl+"api/CampTransaction/getCampNameForFileUpload?username="+i.globals.currentUser.username+"&cur_code="+n.temp.sims_cur_code+"&academic_year="+n.temp.sims_academic_year).then(function(e){n.campDetails=e.data})},n.getTestNames=function(e){n.showDetails=!0;e=JSON.parse(e);n.edt.sims_health_package_code=e.sims_health_package_code,n.edt.sims_health_camp_code=e.sims_health_camp_code,o.get(_.apiUrl+"api/CampTransaction/getTestName?package_code="+e.sims_health_package_code+"&camp_code="+e.sims_health_camp_code).then(function(e){n.testNames=e.data})},new FormData),m=(n.uploadImgCancel=function(){n.uploadImgClickFShow=!1,d=[],n.images=[]},n.getTheFiles=function(s){var o=0,_="no";angular.forEach(s,function(e,t){if(c.append(t,e),2097152o&&(s.s.r=o),s.s.c>_&&(s.s.c=_),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,_=$("#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,n,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,i=(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=i.find("tbody tr:first").children();$(window).resize(function(){a=d.map(function(){return $(this).width()}).get(),i.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=[],_=[],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+"";_+="",e.forEach(function(e,t){_+="";for(var a=0;a'+e[s[a].dataKey]+"";_+=""});var e={worksheet:t||"Worksheet",table:_+=""},n=document.createElement("a"),e=(n.href="data:application/vnd.ms-excel;base64,"+r.base64(r.format('\x3c!--[if gte mso 9]>{worksheet}{table}
',e)),new Date);n.download=t.replace(/ /g,"_")+"_"+r.getFormatedDate(e,"dd./.mm./.yyyy. .hh.:.mn.:.ss").replace(/ /g,"_")+".xls",n.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):(_=100+c*(parseInt(g.day_code,10)-1)+parseInt(g.slot_code,10),$("td#"+_).html(w)),n++;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):(_=100+c*(parseInt(g.day_code,10)-1)+parseInt(g.slot_code,10),$("td#"+_).html(w)),n++}}n--,r();var i="",d="";if(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};r.push(e),n.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)},n.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){n.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){n.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){n.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=n.docUrl+_.defaults.headers.common.schoolId+"/","siscollege"==_.defaults.headers.common.schoolId||"svcc"==_.defaults.headers.common.schoolId?(s.nationalIdLabelDetails="Aadhar Id Details",s.nationalIdLabel="Aadhar Id"):"pearl"==_.defaults.headers.common.schoolId?(s.nationalIdLabelDetails="Qatar Id Details",s.nationalIdLabel="Qatar Id"):(s.nationalIdLabelDetails="Civil Id Details",s.nationalIdLabel="Civil Id"),"iis"==_.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),n.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"==n.defaults.headers.common.schoolId?a(function(){e.go("main.DasSis",{Class:t.Class})},300):a(function(){e.go("main.Sim000",{Class:t.Class})},300)},n.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){n.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){n.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){n.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=n.docUrl+_.defaults.headers.common.schoolId+"/","facp"!=_.defaults.headers.common.schoolId&&"cesc"!=_.defaults.headers.common.schoolId&&"dmc"!=_.defaults.headers.common.schoolId||(s.ethnicity_flg=!0),"siscollege"==_.defaults.headers.common.schoolId||"svcc"==_.defaults.headers.common.schoolId||"dmc"==_.defaults.headers.common.schoolId?(s.nationalIdLabelDetails="Aadhar Id Details",s.nationalIdLabel="Aadhar Id"):"pearl"==_.defaults.headers.common.schoolId?(s.nationalIdLabelDetails="Qatar Id Details",s.nationalIdLabel="Qatar Id"):(s.nationalIdLabelDetails="National Id Details",s.nationalIdLabel="National Id"),"iis"==_.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),n.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)},n.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){n.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){n.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){n.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,_=$("#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};n.push(e),m.post(l.apiUrl+"api/common/Admission_dpsd/ApproveStudent",n).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,_=$("#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";_.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,_=$("#txt_father_pobox").val().length,n=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),_.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"==_.defaults.headers.common.schoolId||"asis"==_.defaults.headers.common.schoolId||"abqis"==_.defaults.headers.common.schoolId||"abps"==_.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,_=$("#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";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,_=$("#txt_father_pobox").val().length,n=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};n.push(e),m.post(l.apiUrl+"api/common/Admission_dpsd/ApproveStudent",n).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,_=$("#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};n.push(e),m.post(l.apiUrl+"api/common/Admission_dpsd/ApproveStudent",n).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,_=$("#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,_=r.edt.sims_incidence_action_code;if(0==r.Studentdata.length)swal("Alert","Please select atleast one student.");else{r.sims_incidence_user_code=r.edt.sims_incidence_user_code.split("/")[0];for(var n="",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 "+n.temp.valid_date+" to "+n.temp.sims_transport_effective_upto1,imageUrl:"assets/img/check.png",showCloseButton:!0,width:380}),$("#MyModal").modal("hide"),n.searchtable=!0,i.get(d.apiUrl+"api/UpdateCancleStudentTransDetails/getStudentTransportDetails?cur_code="+n.edt.sims_cur_code+"&acayear="+n.edt.sims_academic_year+"&grade="+n.edt.sims_grade_code+"&sec_code="+n.edt.sims_section_code+"&enroll="+n.edt.sims_enroll_number+"&vehicle_code="+n.edt.sims_transport_vehicle_code).then(function(e){n.StudentTransportDetails=e.data,n.totalItems=n.StudentTransportDetails.length,n.todos=n.StudentTransportDetails,n.makeTodos()})})):1==l.checked?0==B&&0==M&&0==E&&0==j&&0==N&&0==F&&0==L&&0==R&&0==G&&0==Y&&0==q&&0==O||(e=(e=(1==B?"1,":"")+(1==M?"2,":"")+(1==E?"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:n.temp.sims_academic_year,sims_transport_enroll_number:n.temp.sims_enroll_number,sims_fee_cur_code:n.temp.sims_fee_cur_code,sims_fee_grade_code:n.temp.sims_fee_grade_code,sims_fee_section_code:n.temp.sims_fee_section_code,sims_fee_number:n.temp.sims_fee_number,sims_transport_route_code:n.temp.sims_transport_route_code,sims_transport_route_direction:n.temp.sims_transport_route_direction,sims_transport_effective_from:n.temp.sims_transport_effective_from1,sims_transport_effective_upto:n.temp.sims_transport_effective_upto1,sims_transport_route_direction_old:n.sims_transport_route_direction_old,sims_transport_effective_from_old:n.temp.sims_transport_effective_from1,sims_transport_effective_upto_old:n.temp.sims_transport_effective_upto1,sims_transport_pickup_stop_code_old:n.sims_transport_pickup_stop_code_old,sims_transport_drop_stop_code_old:n.sims_transport_drop_stop_code_old,sims_transport_route_code_old:n.sims_transport_route_code_old,v_Code:n.v_Code_old,v_Name_Code:n.temp.v_Code,sims_transport_pickup_stop_code:n.temp.sims_transport_pickup_stop_code,sims_transport_drop_stop_code:n.temp.sims_transport_drop_stop_code,sims_transport_route_rejecte_date:n.temp.valid_date,sims_fee_period1:n.temp1.sims_fee_period1,sims_fee_period2:n.temp1.sims_fee_period2,sims_fee_period3:n.temp1.sims_fee_period3,sims_fee_period4:n.temp1.sims_fee_period4,sims_fee_period5:n.temp1.sims_fee_period5,sims_fee_period6:n.temp1.sims_fee_period6,sims_fee_period7:n.temp1.sims_fee_period7,sims_fee_period8:n.temp1.sims_fee_period8,sims_fee_period9:n.temp1.sims_fee_period9,sims_fee_period10:n.temp1.sims_fee_period10,sims_fee_period11:n.temp1.sims_fee_period11,sims_fee_period12:n.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:M,sims_fee_period3_paid:E,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"},i.post(d.apiUrl+"api/UpdateCancleStudentTransDetails/CancelTransport",t).then(function(e){n.msg1=e.data,swal({text:"Transport Cancel Successfully ",imageUrl:"assets/img/check.png",showCloseButton:!0,width:380}),$("#MyModal").modal("hide"),n.searchtable=!0,i.get(d.apiUrl+"api/UpdateCancleStudentTransDetails/getStudentTransportDetails?cur_code="+n.edt.sims_cur_code+"&acayear="+n.edt.sims_academic_year+"&grade="+n.edt.sims_grade_code+"&sec_code="+n.edt.sims_section_code+"&enroll="+n.edt.sims_enroll_number+"&vehicle_code="+n.edt.sims_transport_vehicle_code).then(function(e){n.StudentTransportDetails=e.data,n.totalItems=n.StudentTransportDetails.length,n.todos=n.StudentTransportDetails,n.makeTodos()})})):""==n.temp.valid_date||null!=n.temp.valid_date||0==l.checked?null!=n.temp.valid_date&&0!=l.checked||(t={sims_transport_academic_year:n.temp.sims_academic_year,sims_transport_enroll_number:n.temp.sims_enroll_number,sims_fee_cur_code:n.temp.sims_fee_cur_code,sims_fee_grade_code:n.temp.sims_fee_grade_code,sims_fee_section_code:n.temp.sims_fee_section_code,sims_fee_number:n.temp.sims_fee_number,sims_transport_route_code:n.temp.sims_transport_route_code,sims_transport_route_direction:n.temp.sims_transport_route_direction,sims_transport_route_direction_old:n.sims_transport_route_direction_old,sims_transport_effective_from_old:n.temp.sims_transport_effective_from1,sims_transport_effective_upto_old:n.temp.sims_transport_effective_upto1,sims_transport_pickup_stop_code_old:n.sims_transport_pickup_stop_code_old,sims_transport_drop_stop_code_old:n.sims_transport_drop_stop_code_old,sims_transport_route_code_old:n.sims_transport_route_code_old,v_Code:n.v_Code_old,v_Name_Code:n.temp.v_Code,sims_transport_pickup_stop_code:n.temp.sims_transport_pickup_stop_code,sims_transport_drop_stop_code:n.temp.sims_transport_drop_stop_code,sims_fee_period1:n.temp1.sims_fee_period1,sims_fee_period2:n.temp1.sims_fee_period2,sims_fee_period3:n.temp1.sims_fee_period3,sims_fee_period4:n.temp1.sims_fee_period4,sims_fee_period5:n.temp1.sims_fee_period5,sims_fee_period6:n.temp1.sims_fee_period6,sims_fee_period7:n.temp1.sims_fee_period7,sims_fee_period8:n.temp1.sims_fee_period8,sims_fee_period9:n.temp1.sims_fee_period9,sims_fee_period10:n.temp1.sims_fee_period10,sims_fee_period11:n.temp1.sims_fee_period11,sims_fee_period12:n.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"},i.post(d.apiUrl+"api/UpdateCancleStudentTransDetails/CancelTransport",t).then(function(e){n.msg1=e.data,swal({text:"Transport Cancel Successfully From "+n.temp.sims_transport_effective_from+" to "+n.temp.sims_transport_effective_upto1,imageUrl:"assets/img/check.png",showCloseButton:!0,width:380}),$("#MyModal").modal("hide"),n.searchtable=!0,i.get(d.apiUrl+"api/UpdateCancleStudentTransDetails/getStudentTransportDetails?cur_code="+n.edt.sims_cur_code+"&acayear="+n.edt.sims_academic_year+"&grade="+n.edt.sims_grade_code+"&sec_code="+n.edt.sims_section_code+"&enroll="+n.edt.sims_enroll_number+"&vehicle_code="+n.edt.sims_transport_vehicle_code).then(function(e){n.StudentTransportDetails=e.data,n.totalItems=n.StudentTransportDetails.length,n.todos=n.StudentTransportDetails,n.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(n.startdt),endDate:new Date(n.enddt)}),$(document).on("touch click",'*[data-datepicker1="true"] .add-on',function(e){$('input[type="text"]',$(this).parent()).focus()}),n.Comparedate=function(){n.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),_=($("#txt_father_city2").val().length,$("#guardiantaluka1").val().length),n=($("#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{}]/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,_=$("#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="")},_.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";_.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",_.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",_.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),_=($("#txt_father_city2").val().length,$("#guardiantaluka1").val().length),n=($("#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+=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,_=$("#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,_=$("#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,_=$("#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)&&n.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>_&&(s.s.c=_),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,_="sub_"+(n=e.target.id.split("_"))[2]+"_"+n[3]+"_"+sub_code+"_"+s[4],n=n[2]+"_"+n[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",_),$(e.currentTarget).parents("td").children(".filled").attr("data-teacherallo",n)):($(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",_),$(e.currentTarget).children(".filled").attr("data-teacherallo",n)):(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",_),$(e.currentTarget).children(".filled").attr("data-teacherallo",n)):(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,_,e,t,a,s,o,n,i,d,r){function c(a,s,e,t,o){for(var _=0;_")+' 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=_(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+"
",_(t+="
")(b));$("#pendingsubid").append(s)}else if(1==b.PendingViewd)for(var o=0;o',s=(t+='
'+a.sims_subject_name_en+"
",_(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"),_(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,_){var n,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"),n=$("#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=_!=i||o!=n||"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")==n&&$("#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"),_(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"),_=!0;_;){for(_=!1,o=s.getElementsByClassName("trrow"),n=0;nr.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=_('
{{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>_&&(s.s.c=_),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,d,o){n.colorCodeArray=["#FFACAC","#F58DA87D","#FFC490","#98D27AAB","#74DBD1C9","#C468D8A6","#E29F9F"];var _,r,c,m,l=new FormData,u=t.globals.currentUser.username,p=t.globals.currentUser.username,h=(n.jointeval=!1,_="admin"!=p?p.toUpperCase():p,"saisa"==i.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,p=p.getFullYear(),y=(n.temp.att_date=("0"+g).slice(-2)+"-"+("0"+f).slice(-2)+"-"+p,setTimeout(function(){$("#cmb_subject").select2()},100),setTimeout(function(){$("#cmb_slot").select2()},100),o.learn_obj),b=o.status,f=(n.paramobj=y,console.log("PARAM",y),"saisd"==i.defaults.headers.common.schoolId&&(n.jointeval=!0),"saisa"==i.defaults.headers.common.schoolId&&(n.btn_sub=!0,g={opr:"X",ACA_YEAR:y.sims_academic_year,user:u},i.post(d.apiUrl+"api/LearningAsd/UserAccessData",g).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!==y.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()})},t.globals.currentUser.username);n.template_change=function(){i.get(d.apiUrl+"api/LearningAsd/getTemplatenew1?cur="+n.temp.cur_code+"&academic_year="+n.temp.acdm_yr+"&userName="+_).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&&(void 0!==n.temp.schedule_employee&&n.temp.schedule_employee.super&&(h=n.temp.schedule_employee.super),i.get(d.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+"&login_user="+v).then(function(e){n.templateDetaillst=e.data,console.log("data1",n.templateDetaillst),"uksmf"!=i.defaults.headers.common.schoolId&&"cbsesmf"!=i.defaults.headers.common.schoolId||("Y"==n.templateDetaillst[0].user_role?n.approveOnHOD=!0:n.approveOnHOD=!1,""==n.templateDetaillst[0].sims_lesson_status_updated||null==n.templateDetaillst[0].sims_lesson_status_updated||null==n.templateDetaillst[0].sims_lesson_status_updated?(n.hideOnApprove=!1,n.approve_disable=!1):(n.hideOnApprove=!0,n.approve_disable=!0)),s(function(){for(var e=0;e{}]/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:d.apiUrl+"api/AssignmentUpload/upload1?filename="+n.filename1+"&location=Docs/LessonObservation/",data:r,headers:{"Content-Type":void 0}});i(e).success(function(e){d.AWS.includes(i.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=d.docUrl+i.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(_,e,t,a,s,n,i,o){_.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=(_.jointeval=!1,d="admin"!=p?p.toUpperCase():p,"saisa"==n.defaults.headers.common.schoolId?_.answer_h="T":_.answer_v="T",t.globals.currentUser.username),p=(_.temp=[],new Date),g=p.getDate(),f=p.getMonth()+1,y=p.getFullYear(),b=(_.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=(_.paramobj=b,"saisd"==n.defaults.headers.common.schoolId&&(_.jointeval=!0),"saisa"==n.defaults.headers.common.schoolId&&(_.btn_sub=!0,t={opr:"X",ACA_YEAR:b.sims_academic_year,user:u},n.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=_.attSlot.filter(function(e){return e.sims_employee_code===b.sims_lesson_observation_for})).length&&(_.temp.sims_lesson_created_for=e[0].sims_teacher_name,$("#cmb_slot").val(e[0].sims_teacher_name).trigger("change"),$("#cmb_slot").select2())})},_.getSubject=function(){_.flg_count=!1,null==_.temp.grade_code&&(_.temp.grade_code=""),null==_.temp.sec_code&&(_.temp.sec_code=""),n.get(i.apiUrl+"api/LearningAsd/getSubject?cur="+_.temp.cur_code+"&academic_year="+_.temp.acdm_yr+"&grade="+_.temp.grade_code+"§ion="+_.temp.sec_code+"&user_name="+d+"&date="+_.temp.att_date).then(function(e){_.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()),_.subject_change()})},n.get(i.apiUrl+"api/LearningAsd/getTemplateforPeer").then(function(e){_.templatelst=e.data,_.temp.temp_id=_.templatelst[0].sims_comment_template_id}),_.body1=!1,_.buttons3=!1,_.getdata=function(e){_.body1=!0,_.buttons3=!0,e&&(n.get(i.apiUrl+"api/LearningAsd/getTemplateDetails?cur="+_.temp.cur_code+"&academic="+_.temp.acdm_yr+"&temp_id="+_.temp.temp_id+"&grade="+_.temp.grade_code+"&sec="+_.temp.sec_code+"&sub="+_.temp.subject_code+"&dt="+_.temp.att_date+"&slot="+_.temp.sims_lesson_created_for+"&lession_id="+_.temp.sims_lesson_id_new+"&user="+h+"&period="+_.temp.slot_code).then(function(e){_.templateDetaillst=e.data;for(var t=0;t<_.templateDetaillst.length;t++)"H"==_.templateDetaillst[t].sims_comment_type&&"T"==_.templateDetaillst[t].sims_value_type&&(_.templateDetaillst[t].sims_value_type="R");setTimeout(function(){for(var e,t=0;t<_.templateDetaillst.length;t++)"R"==_.templateDetaillst[t].sims_value_type&&(e="#"+_.templateDetaillst[t].sims_comment_code+"rich",$(e).wysihtml5(),$(e).data("wysihtml5").editor.setValue(_.templateDetaillst[t].desc))},2e3)}),n.get(i.apiUrl+"api/LearningAsd/getDropDown?cur_code="+_.temp.cur_code+"&academic_year="+_.temp.acdm_yr).then(function(e){_.drop_lst=e.data}),_.flg_count=!0,e={opr:"L",sims_cur_code:_.temp.cur_code,sims_academic_year:_.temp.acdm_yr,sims_grade_code:_.temp.grade_code,sims_section_code:_.temp.sec_code},n.post(i.apiUrl+"api/LearningAsd/lessionData",e).then(function(e){_.count_data=[],0{}]/g,"_"),_.photo_filename.split("/")[1]),e=(_.filename1=_.filename+"."+e,null!=_.photo_filename&&""!=_.photo_filename||swal({title:"Alert",text:"Please Select File",width:300,height:200}),{method:"POST",url:i.apiUrl+"api/AssignmentUpload/upload1?filename="+_.filename1+"&location=Docs/LessonObservation/",data:r,headers:{"Content-Type":void 0}});n(e).success(function(e){i.AWS.includes(n.defaults.headers.common.schoolId)&&(e=e.substring(e.lastIndexOf("/")+1)),_.showFileName=!0,_.file_name=e,null!=_.filename1&&""!=_.filename1&&null!=_.filename1||(_.showFileName=!1),_.performanceemp=_.filename1},function(){alert("Err")}),angular.forEach(angular.element("input[type='file']"),function(e){angular.element(e).val(null)}),$("#myModal").modal("hide")},_.downloaddoc=function(){_.getViewDocuments=_.templateDetaillst[1].sims_comment_filepath,_.url=i.docUrl+n.defaults.headers.common.schoolId+"/Docs/LessonObservation/"+_.file_name,window.open(_.url+_.getViewDocuments,"_new")},_.print=function(){_.colsvis=!0,_.show_report_header=!0,_.pacad=$("select[name=cmb_academic] option:selected").text(),_.pclass=$("select[name=cmb_grade] option:selected").text()+"-"+$("select[name=cmb_section] option:selected").text(),_.psubject=$("select[name=cmb_subject1] option:selected").text(),_.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(_,e,t,s,a,n,i,o){_.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=(_.jointeval=!1,d="admin"!=p?p.toUpperCase():p,"saisa"==n.defaults.headers.common.schoolId?_.answer_h="T":_.answer_v="T",t.globals.currentUser.username),p=(_.temp=[],new Date),g=p.getDate(),f=p.getMonth()+1,y=p.getFullYear(),b=(_.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=(_.paramobj=b,"saisd"==n.defaults.headers.common.schoolId&&(_.jointeval=!0),"saisa"==n.defaults.headers.common.schoolId&&(_.btn_sub=!0,t={opr:"X",ACA_YEAR:b.sims_academic_year,user:u},n.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?(_.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()}),_.$$phase||_.$apply()):0${t.sims_subject_name_en}`}),$("#cmb_subject").empty(),$("#cmb_subject").select2("destroy"),$("#cmb_subject").append(''),$("#cmb_subject").append(a),$("#cmb_subject").select2()),_.subject_change()})},n.get(i.apiUrl+"api/LearningAsd/getTemplateforTeacher").then(function(e){_.templatelst=e.data,_.temp.temp_id=_.templatelst[0].sims_comment_template_id}),_.body1=!1,_.buttons3=!1,_.getdata=function(e){_.body1=!0,_.buttons3=!0,e&&(n.get(i.apiUrl+"api/LearningAsd/getTemplateInclusionDetails?cur="+_.temp.cur_code+"&academic="+_.temp.acdm_yr+"&temp_id="+_.temp.temp_id+"&grade="+_.temp.grade_code+"&sec="+_.temp.sec_code+"&sub="+_.temp.subject_code+"&dt="+_.temp.att_date+"&slot="+_.temp.sims_lesson_created_for+"&lession_id="+_.temp.sims_lesson_id_new+"&user="+h+"&period="+_.temp.slot_code+"&term="+_.temp.sims_inclusion_term_code).then(function(e){_.templateDetaillst=e.data,console.log("data1",_.templateDetaillst),setTimeout(function(){for(var e,t=0;t<_.templateDetaillst.length;t++)"R"==_.templateDetaillst[t].sims_value_type&&(e="#"+_.templateDetaillst[t].sims_comment_code+"rich",$(e).wysihtml5(),$(e).data("wysihtml5").editor.setValue(_.templateDetaillst[t].desc))},2e3)}),n.get(i.apiUrl+"api/LearningAsd/getDropDown?cur_code="+_.temp.cur_code+"&academic_year="+_.temp.acdm_yr).then(function(e){_.drop_lst=e.data}),_.flg_count=!0,e={opr:"L",sims_cur_code:_.temp.cur_code,sims_academic_year:_.temp.acdm_yr,sims_grade_code:_.temp.grade_code,sims_section_code:_.temp.sec_code},n.post(i.apiUrl+"api/LearningAsd/lessionData",e).then(function(e){_.count_data=[],0{}]/g,"_"),_.photo_filename.split("/")[1]),e=(_.filename1=_.filename+"."+e,null!=_.photo_filename&&""!=_.photo_filename||swal({title:"Alert",text:"Please Select File",width:300,height:200}),{method:"POST",url:i.apiUrl+"api/AssignmentUpload/upload1?filename="+_.filename1+"&location=Docs/LessonObservation/",data:r,headers:{"Content-Type":void 0}});n(e).success(function(e){i.AWS.includes(n.defaults.headers.common.schoolId)&&(e=e.substring(e.lastIndexOf("/")+1)),_.showFileName=!0,_.file_name=e,null!=_.filename1&&""!=_.filename1&&null!=_.filename1||(_.showFileName=!1),_.performanceemp=_.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")},_.downloaddoc=function(){_.getViewDocuments=_.templateDetaillst[1].sims_comment_filepath,_.url=i.docUrl+n.defaults.headers.common.schoolId+"/Docs/LessonObservation/",window.open(_.url+_.getViewDocuments,"_new")},_.print=function(){_.colsvis=!0,_.show_report_header=!0,_.pacad=$("select[name=cmb_academic] option:selected").text(),_.pclass=$("select[name=cmb_grade] option:selected").text()+"-"+$("select[name=cmb_section] option:selected").text(),_.psubject=$("select[name=cmb_subject1] option:selected").text(),_.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.Gradebook").controller("PerformanceAppraisalFormCont",["$scope","$state","$rootScope","$timeout","gettextCatalog","$http","ENV","$stateParams",function(_,e,t,s,a,n,i,o){_.colorCodeArray=["#FFACAC","#F58DA87D","#FFC490","#98D27AAB","#74DBD1C9","#C468D8A6","#E29F9F"];var d,r,c,m,l=new FormData,u=(t.globals.currentUser.username,t.globals.currentUser.username),p=(_.jointeval=!1,d="admin"!=u?u.toUpperCase():u,"saisa"==n.defaults.headers.common.schoolId?_.answer_h="T":_.answer_v="T",t.globals.currentUser.username),u=(_.temp=[],new Date),h=u.getDate(),g=u.getMonth()+1,f=u.getFullYear(),y=(_.temp.att_date=("0"+h).slice(-2)+"-"+("0"+g).slice(-2)+"-"+f,setTimeout(function(){$("#cmb_slot").select2()},100),o.learn_obj),b=o.status,t=(_.paramobj=y,console.log("PARAM",y),n.get(i.apiUrl+"api/ERP/Grade/getCuriculum_new").then(function(e){_.curiculum=e.data,_.temp.cur_code=_.curiculum[0].sims_cur_code,_.cur_change(),_.subject_change()}),{opr:"K",user_name:d});n.post(i.apiUrl+"api/LearningAsd/lessionData",t).then(function(e){_.emp_lst=[],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!==y.sims_academic_year&&(o.learn_obj!={}&&null!=o.learn_obj?(_.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()}),_.$$phase||_.$apply()):0{}]/g,"_"),_.photo_filename.split("/")[1]),e=(_.filename1=_.filename+"."+e,null!=_.photo_filename&&""!=_.photo_filename||swal({title:"Alert",text:"Please Select File",width:300,height:200}),{method:"POST",url:i.apiUrl+"api/AssignmentUpload/upload1?filename="+_.filename1+"&location=Docs/LessonObservation/",data:r,headers:{"Content-Type":void 0}});n(e).success(function(e){i.AWS.includes(n.defaults.headers.common.schoolId)&&(e=e.substring(e.lastIndexOf("/")+1)),_.showFileName=!0,_.file_name=e,null!=_.filename1&&""!=_.filename1&&null!=_.filename1||(_.showFileName=!1),_.performanceemp=_.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")},_.downloaddoc=function(){_.getViewDocuments=_.templateDetaillst[1].sims_comment_filepath,_.url=i.docUrl+n.defaults.headers.common.schoolId+"/Docs/LessonObservation/",window.open(_.url+_.getViewDocuments,"_new")},_.print=function(){_.colsvis=!0,_.show_report_header=!0,_.pacad=$("select[name=cmb_academic] option:selected").text(),_.pclass=$("select[name=cmb_grade] option:selected").text()+"-"+$("select[name=cmb_section] option:selected").text(),_.psubject=$("select[name=cmb_subject1] option:selected").text(),_.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.Gradebook").controller("RiskAssessmentCont",["$scope","$state","$rootScope","$timeout","gettextCatalog","$http","ENV","$stateParams",function(_,e,t,a,s,n,i,o){_.colorCodeArray=["#FFACAC","#F58DA87D","#FFC490","#98D27AAB","#74DBD1C9","#C468D8A6","#E29F9F"];var d,r,c,m,l=new FormData,u=(t.globals.currentUser.username,t.globals.currentUser.username),p=(d="admin"!=u?u.toUpperCase():u,"saisa"==n.defaults.headers.common.schoolId?_.answer_h="T":_.answer_v="T",t.globals.currentUser.username),u=(_.temp=[],new Date),h=u.getDate(),g=u.getMonth()+1,f=u.getFullYear(),t=(_.temp.att_date=("0"+h).slice(-2)+"-"+("0"+g).slice(-2)+"-"+f,o.learn_obj),y=o.status,u=(_.paramobj=t,n.get(i.apiUrl+"api/ERP/Grade/getCuriculum_new").then(function(e){_.curiculum=e.data,_.temp.cur_code=_.curiculum[0].sims_cur_code,_.cur_change(),_.subject_change()}),{opr:"K",user_name:d});n.post(i.apiUrl+"api/LearningAsd/lessionData",u).then(function(e){_.emp_lst=[],0{}]/g,"_"),_.photo_filename.split("/")[1]),e=(_.filename1=_.filename+"."+e,null!=_.photo_filename&&""!=_.photo_filename||swal({title:"Alert",text:"Please Select File",width:300,height:200}),{method:"POST",url:i.apiUrl+"api/AssignmentUpload/upload1?filename="+_.filename1+"&location=Docs/LessonObservation/",data:r,headers:{"Content-Type":void 0}});n(e).success(function(e){i.AWS.includes(n.defaults.headers.common.schoolId)&&(e=e.substring(e.lastIndexOf("/")+1)),_.showFileName=!0,_.file_name=e,null!=_.filename1&&""!=_.filename1&&null!=_.filename1||(_.showFileName=!1),_.performanceemp=_.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")},_.downloaddoc=function(){_.getViewDocuments=_.templateDetaillst[1].sims_comment_filepath,_.url=i.docUrl+n.defaults.headers.common.schoolId+"/Docs/LessonObservation/",window.open(_.url+_.getViewDocuments,"_new")},_.print=function(){_.colsvis=!0,_.show_report_header=!0,_.pacad=$("select[name=cmb_academic] option:selected").text(),_.pclass=$("select[name=cmb_grade] option:selected").text()+"-"+$("select[name=cmb_section] option:selected").text(),_.psubject=$("select[name=cmb_subject1] option:selected").text(),_.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>_&&(s.s.c=_),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,_,t,a,n,i){o.display=!0,o.table_data=!1;let s=_.globals.currentUser.username;o.flag=!1,"staging1"==n.defaults.headers.common.schoolId||"staging2"==n.defaults.headers.common.schoolId||"staging3"==n.defaults.headers.common.schoolId||"staging4"==n.defaults.headers.common.schoolId||"aisdxb"==n.defaults.headers.common.schoolId||"tiadxb"==n.defaults.headers.common.schoolId||"tiashj"==n.defaults.headers.common.schoolId||"tosdxb"==n.defaults.headers.common.schoolId||"erp"==n.defaults.headers.common.schoolId||"staging"==n.defaults.headers.common.schoolId||"erp-modern"==n.defaults.headers.common.schoolId?o.flag=!0:o.flag=!1,n.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=[],n.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){n.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){n.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,n.get(i.apiUrl+"api/ClassListTeacherViewLeams/getallData?cur="+e+"&a_year="+t+"&grades="+a+"§ion="+s+"&login_code="+_.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(n,e,t,a,s,o,_,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(){n.hide_error_message=!1,a(r,1e4)}var c;t.globals.currentUser.username,n.edt="",n.isexpanded=!1,n.hide_error_message=!1,n.isshowMemberHis=!1,n.deposit_returned_th=!1,n.sims_date_for=(new Date).getDate()+"-"+((new Date).getMonth()+1)+"-"+(new Date).getFullYear(),n.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,n.deposit_returned_td=!1,n.deposit_returned_th=!1,""==n.search_user?(n.global_Search_click(),$("#Global_Search_Modal").modal({backdrop:"static"})):(n.temp_new_books=[],o.get(_.apiUrl+"api/LibTransaction/GetLibraryDetails?Search_Code="+n.search_user).then(function(e){0t?t:e-n.borrowed_items;if(n.temp_new_books.length!=t)for(var a=!1,s=0;st?t:e-n.borrowed_items;if(n.temp_new_books.length!=t)for(var a=!1,s=0;s"+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,_){i.imageUrl=_.docUrl+o.defaults.headers.common.schoolId+"/Images/EmployeeImages/",i.imageUrl_public=_.docUrl+o.defaults.headers.common.schoolId,i.edt={},i.temp={},o.get(_.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(){n.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){n.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(){n.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(){n.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?n.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&&(_.s.r=t),_.s.c>e&&(_.s.c=e),_.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=n("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}],_.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)}),_.get(i.apiUrl+"api/StudentAssessmentSchedule/GetAssesmentTeacher").then(function(e){d.teach_data=e.data}),d.getCur=function(t){_.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){_.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=[],_.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(){n.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"},n.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:""},n.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)}),n.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>_&&(s.s.c=_),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};n.push(e),m.post(l.apiUrl+"api/common/Admission_dpsd/ApproveStudent",n).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,_=$("#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(){_.post(n.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(n,e,s,t,a,i,o,d){d.docUrl="https://assets.mograsys.com/Content/",n.defaultImage="default.jpg",n.imageUrl_public=d.docUrl+i.defaults.headers.common.schoolId,n.Restriction=!0,n.demo=!0,n.readonlyParentLoginCode=!0,n.table1=!0,n.hide=!0,n.EmploymentNo=!0,n.editmode=!1;var _,r,c=new FormData;n.read1=!0,n.read2=!0,n.read3=!0,n.read4=!0,n.read5=!0,n.Medication=!0,n.Disability=!0,n.Hearing=!0,n.Vision=!0,n.Other=!0,n.student_info={},n.dynamicLableFlag=!1,n.sisCollegeLableFlag=!1,n.motherTongueMandatory=!1,n.mobileNoPrefixGES=!1,n.mobileNoPrefixOES=!1,n.docurl=d.docUrl+i.defaults.headers.common.schoolId,n.stud_of_deter=!0,n.stu_sen=!1,n.stud_of_sod=!0,n.emiratii=!0,n.arabb=!0,n.ampsdemo=!0,n.mothertounge=!1,"svs"==i.defaults.headers.common.schoolId?n.mothertounge=!0:n.mothertounge=!1,"amps"==i.defaults.headers.common.schoolId?n.ampsdemo=!1:n.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||(n.flg_ihs=!0);n.img_url_path=d.docUrl+i.defaults.headers.common.schoolId+"/","corvuss"==i.defaults.headers.common.schoolId||"seps"==i.defaults.headers.common.schoolId?(n.emiratii=!1,n.arabb=!1):(n.emiratii=!0,n.arabb=!0),"nas"==i.defaults.headers.common.schoolId&&(n.stud_of_deter=!1,n.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||(n.stud_of_sod=!1,n.stu_sen=!0),"siserp"==i.defaults.headers.common.schoolId&&(n.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?(n.joined_date=!1,n.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)})):(n.joined_date=!0,n.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?(n.nationalIdLabelDetails="Aadhar Id Details",n.nationalIdLabel="Aadhar Id"):"pearl"==i.defaults.headers.common.schoolId?(n.nationalIdLabelDetails="Qatar Id Details",n.nationalIdLabel="Qatar Id"):(n.nationalIdLabelDetails="National Id Details",n.nationalIdLabel="National Id"),"iis"==i.defaults.headers.common.schoolId&&(n.motherTongueMandatory=!0),"ges"==i.defaults.headers.common.schoolId?(n.mobileNoPrefixGES=!0,n.mobileNoPrefixOES=!1):"oes"==i.defaults.headers.common.schoolId?(n.mobileNoPrefixOES=!0,n.mobileNoPrefixGES=!1):(n.mobileNoPrefixGES=!1,n.mobileNoPrefixOES=!1),n.getdemocode1=function(){i.get(d.apiUrl+"api/studentdatabase/getdemo").then(function(e){n.demo_values=e.data})},n.getcode1=function(){i.get(d.apiUrl+"api/studentdatabase/getisdd?country_code="+n.parent_info.sims_admission_father_code).then(function(e){n.isdcode1=e.data,null!=n.parent_info.sims_admission_father_mobile&&"-"!=n.parent_info.sims_admission_father_mobile&&(null!=n.oldisdcode?(n.parent_info.sims_admission_father_mobile=n.parent_info.sims_admission_father_mobile,n.parent_info.sims_admission_father_mobile=n.parent_info.sims_admission_father_mobile.replace(n.oldisdcode,n.isdcode1[0].sims_country_isd_code)):n.parent_info.sims_admission_father_mobile=n.parent_info.sims_admission_father_mobile),n.olisdcode()}),i.get(d.apiUrl+"api/studentdatabase/getisdd?country_code="+n.parent_info.sims_admission_father_phone_code).then(function(e){n.isdcode2=e.data,"-"!=n.parent_info.sims_admission_father_phone&&null!=n.parent_info.sims_admission_father_phone&&(null!=n.oldisdcode?(n.parent_info.sims_admission_father_phone=n.parent_info.sims_admission_father_phone,n.parent_info.sims_admission_father_phone=n.parent_info.sims_admission_father_phone.replace(n.oldisdcode,n.isdcode2[0].sims_country_isd_code)):n.parent_info.sims_admission_father_phone=n.isdcode2[0].sims_country_isd_code+n.parent_info.sims_admission_father_phone),n.olisdcode()})},n.olisdcode=function(){0e);)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('