!function(){"use strict";var e=angular.module("sims.module.Setup");e.run(["$rootScope","$templateCache",function(e,t){e.$on("$viewContentLoaded",function(){t.removeAll()})}]),e.controller("streamsubjectconfigCont",["$scope","$state","$rootScope","$timeout","gettextCatalog","$http","ENV","commonFunctionsService",function(r,e,t,a,s,c,_,o){r.stream_data=[],r.Allcurriculum=[],r.AllAcademicYear=[],r.streamdrp=!1,r.groupadd=!1,r.groupdelete=!1,r.groupsave=!1,r.temp={},r.temp.group_status=!0,r.temp.choice=!1,r.datagrid=!0,r.creategroupgrid=!1,r.createsubgroupgrid=!1,r.updates=!0,r.ppnbtn=!1,r.subject_data_array=[],r.temp.cho_status=!0,r.temp.map_all=!0,r.up_criteriabtn=!0,r.add_criteriabtn=!0,r.add_sub_btn=!0,r.up_sub_btn=!0,r.add_exam_btn=!0,r.up_exam_btn=!0,r.finalize=!1,r.finalizenew=!0;t.globals.currentUser.username;t={1:{gender:"Boys",value:"B"},2:{gender:"Girls",value:"G"},3:{gender:"Boys/Girls",value:"A"}};r.Gender=[],r.Gender=t,r.Gender=[],r.Gender=t,r.criteria_data=[],c.get(_.apiUrl+"api/Streameligibilityis/getcriterias").then(function(e){r.criteria_data=e.data}),r.gettimeline=function(){c.get(_.apiUrl+"api/Streameligibilityis/Gettimelineinfo?year="+r.temp.sims_academic_year).then(function(e){if(r.timelineinfo=e.data,r.displaytimeline=!0,0o&&(s.s.r=o),s.s.c>n&&(s.s.c=n),s.e.r{e.style.color="black"}),e.outerHTML),e="data:application/vnd.ms-excel,"+escape(e),t=document.createElement("a");t.href=e,t.download="Student Response.xls",t.click()},m.details_Eligibility=function(e,t,a,s){$("#MyModaleligiblity").modal("show"),m.enroll_number=e,m.student_name=a,m.current_class=s,n.get(i.apiUrl+"api/Streameligibilityis/GetdetailsEligibility?year_code="+t+"&enroll_no="+e).then(function(e){m.Eligibility_list=e.data.table,m.allcriteria=[],m.eligiblity_data=[],angular.forEach(m.Eligibility_list,function(e){e=e.sims_criteria_name;-1===m.allcriteria.indexOf(e)&&m.allcriteria.push(e)}),angular.forEach(m.Eligibility_list,function(e){e.sims_criteria_code;var t=e.sims_criteria_name,a=e.sims_choice_code,s=e.sims_choice_name,o=e.sims_choice_preference,e=e.eligibility_status,n=m.eligiblity_data.find(function(e){return e.sims_choice_code===a});n||m.eligiblity_data.push(n={sims_choice_name:s,sims_choice_code:a,preference:o,criterias:{}}),n.criterias[t]||(n.criterias[t]=[]),n.criterias[t].some(function(e){return e.sims_choice_name===s&&e.sims_choice_code===a})||n.criterias[t].push({status:e})})}),console.log(m.eligiblity_data)},m.details_Exams=function(e,t,a,s,o){$("#MyModalexams").modal("show"),m.enroll_number=e,m.student_name=a,m.current_class=s+"("+o+")",n.get(i.apiUrl+"api/Streameligibilityis/Getdetailsexam?year_code="+m.temp.sims_academic_year+"&enroll_no="+e).then(function(e){m.exams_data=e.data.table,m.subjectdata=e.data.table1,m.allexams=[],m.subjects_data=[],angular.forEach(m.exams_data,function(e){e=e.sims_reportcard_name+"("+parseFloat(e.sims_reportcard_weightage).toFixed(0)+")";-1===m.allexams.indexOf(e)&&m.allexams.push(e)}),angular.forEach(m.exams_data,function(e){var t=e.sims_subject_code,a=(e.sims_subject_name,e.sims_reportcard_name+"("+parseFloat(e.sims_reportcard_weightage).toFixed(0)+")"),s=e.sims_marks_obtained,o=e.sims_marks_outoff,n=e.sims_subject_weightage_obtained,i=(e.sims_reportcard_weightage,e.total_sub_weightage),d=e.agg_total,r=e.agg_per,c=m.subjects_data.find(function(e){return e.code===t});c||(c={name:e.sims_subject_name,code:e.sims_subject_code,sub_cal_agg:i,sub_cal_weightage:e.sims_subject_obtained_weightage,agg_total:d,agg_per:r,exams:{}},m.subjects_data.push(c)),c.exams[a]={recevied:s,max:o,sub_agg:n}}),angular.forEach(m.subjects_data,function(t){angular.forEach(m.allexams,function(e){t.exams[e]||(t.exams[e]={recevied:"0.00",max:"0.00",sub_agg:"0.00"})})}),$("#loader").modal("hide"),$(".modal-backdrop").removeClass("modal-backdrop"),m.subjects_datanew=[],m.subjects_datanew.push(m.subjects_data[0])})},m.fetchexamdata=function(){if($("#loader").modal({backdrop:"static",keyboard:!1}),void 0===m.temp.sims_academic_year||" "===m.temp.sims_academic_year||null===m.temp.sims_academic_year||void 0===m.temp.sims_grade_code||" "===m.temp.sims_grade_code||null===m.temp.sims_grade_code||void 0===m.temp.sims_section_code||" "===m.temp.sims_section_code||null===m.temp.sims_section_code)swal({text:"Please select mandatory feilds",width:300,height:200}),$("#loader").modal("hide"),$(".modal-backdrop").removeClass("modal-backdrop");else{let t="";for(let e=0;ee.sims_group_sub_group_code===a&&!0===e.chk_status).length;m.viewdata.forEach(e=>{e.sims_group_sub_group_code===a&&(oe.sims_group_sub_group_code).filter((e,t,a)=>a.indexOf(e)===t).forEach(t=>{let a=m.viewdata.filter(e=>e.sims_group_sub_group_code===t&&!0===e.chk_status).length;var e=m.viewdata.filter(e=>e.sims_group_sub_group_code===t);let s=0{e.sims_group_sub_group_code===t&&(a{e.pref_type===a&&t!==s&&(m.viewdata[s].pref_type="",swal({title:"",text:"Preference "+a+" already selected",width:"300px",height:"300px"}))})},m.saveData=function(){let a=0;m.send_data=[],m.viewdata.forEach(function(e,t){e.chk_status&&""!=e.pref_type&&null!=e.pref_type&&""!=e.pref_type&&(m.send_data.push({sims_academic_year:m.temp.sims_academic_year,sims_stream_code:e.sims_stream_code,sims_group_sub_group_subject_code:e.sims_group_sub_group_subject_code,sims_student_res_ctrl_group_code:e.sims_student_res_ctrl_group_code,sims_group_sub_group_code:e.sims_group_sub_group_code,sims_enroll_number:m.studentid,remark:m.remark,prefrence:e.pref_type,preference_status:"Y",current_index:a,appcode:"Grbok7",array:JSON.stringify(m.viewdata)}),a++)}),m.send_data.length==m.viewdata[0].sims_subject_count?""!=m.remark?null!=m.remark?(m.disableBtn=!0,n.post(i.apiUrl+"api/Streameligibilityis/UpdateStudentRes",m.send_data).then(function(e){e.data?(swal({title:"",text:"Response saved successfully",width:"300px",height:"300px"}),m.remark="",$("#MyModalresponse").modal("hide"),m.disableBtn=!1,$(".modal-backdrop").removeClass("modal-backdrop"),m.fetchcommunicationdata()):(swal({title:"",text:"Response not saved ",width:"300px",height:"300px"}),m.disableBtn=!1)}),console.log("$scope.selectedDataArr: ",m.selectedDataArr)):swal({title:"",text:"Remark should not exceed 500 characters",width:"300px",height:"300px"}):swal({title:"",text:"Please enter remark",width:"300px",height:"300px"}):swal({title:"",text:"Please select atleast "+m.viewdata[0].sims_subject_count+" choices",width:"300px",height:"300px"})},m.disableBtn=!1,m.saveStudentRes=function(){m.send_data2=[];for(let e=0;e{1==e&&(m.saveData(),$("#MyModalresponse").modal({backdrop:"static",keyboard:!1}))})}}])}(),function(){"use strict";var u=[],p=[],g={1:{gender:"Boys",value:"B"},2:{gender:"Girls",value:"G"},3:{gender:"Boys/Girls",value:"A"}},e=angular.module("sims.module.Gradebook");e.directive("bindHtmlCompile",["$compile",function(o){return{restrict:"A",link:function(t,a,s){t.$watch(function(){return t.$eval(s.bindHtmlCompile)},function(e){a.html(e&&e.toString());e=t;s.bindHtmlScope&&(e=t.$eval(s.bindHtmlScope)),o(a.contents())(e)})}}}]),e.run(["$rootScope","$templateCache",function(e,t){e.$on("$viewContentLoaded",function(){t.removeAll()})}]),e.controller("CreatechoiceNew",["$scope","$compile","$state","$rootScope","$timeout","gettextCatalog","$locale","$http","ENV","$sce",function(c,e,t,a,s,o,n,_,l,i){c.Mcat1=[],c.subj1=[],c.AllTerms=[],c.showAllMaster=!0,c.viewMappedClick=!1,c.showNotSavedConf=!1,c.dropdownexam=!1,c.updatebtnex=!1,c.criteriashow=!1,c.multi_array=[{}],c.att=[],c.savesubjectList=[],c.busyindicator=!1,c.user=a.globals.currentUser.username,c.exams=[],c.desc=!1,c.definefreqn=!1,c.freqn=!1,c.catg=!1,c.add3=!0,c.examcattermmap=!1,c.exammap=!1,c.mapping_status=!1,c.saveforall=!1,c.saveforschema=!1,c.choiceUpdateBtn=!0,c.choicesaveBtn=!0,c.isDivDisabled=!0,c.buttons1=!0,c.buttons2=!0,c.selectedChoice=!1,c.selectedSubject=!1,c.selectedstream=!1,c.edit=!0,c.delete=!0,c.subjectsE=!0,$(function(){$("#cmb_subject_code").multipleSelect({width:"100%",filter:!0})}),c.firstRowIndex=0;var d;a.globals.currentUser.username,c.getstreams=function(e){_.get(l.apiUrl+"api/Streamchoices/GetStreams?year_code="+e).then(function(e){c.stream_data=e.data})},_.get(l.apiUrl+"api/Streamchoices/Getcriteria").then(function(e){c.criteria_data=e.data}),c.exams=[],c.subjectdata=[],c.criteriadatalist=[],c.exams.push({gldd_include_vat:!1,gldd_doc_amount_debit:0,gldd_doc_amount_credit:0,gldd_doc_vat_amt:0,gldd_ledger_code:"00"}),c.subjectdata.push({subject_name:"",subject_weight:""}),c.criteriadatalist.push({criteria_code:"",criteria_priority:""}),setTimeout(function(){$("#cmb_acct_code10").select2()},500),c.add_Grid=function(e,t,a,s){setTimeout(function(){c.Scroll()},700),c.exams.push({exam_code:"",exam_weight:""})},c.add_Grid1=function(e,t,a,s){setTimeout(function(){c.Scroll()},700),c.subjectdata.push({subject_name:"",subject_weight:""})},c.Delete_Grid1=function(e,t,a,s){1!=length&&e.splice(a,1)},c.Delete_Grid=function(e){c.exams.splice(e,1)},c.getgrid1=function(){_.get(l.apiUrl+"api/Streamchoices/GetAllExams").then(function(e){c.exams=e.data})},c.getgrid1(),_.post(l.apiUrl+"api/Gradebook/GradeScaleDataOpr?teachercode="+c.user+"&opr=SC").then(function(e){c.All_SCALE_GRADE=e.data}),c.Gender=[],c.Gender=g;_.post(l.apiUrl+"api/GradebookNew/GradeBookNewCommon",{opr:"Y"}).then(function(e){c.AllAssignmentType=e.data.table,c.assign_type=c.AllAssignmentType[0].sims_appl_parameter,c.getTermsmaster(),c.getMasterCategories("test"),c.getMasterAssignments(),c.getattributemaster()}),c.hide_grading_scheme=!1,c.getCurriculum=function(){_.get(l.apiUrl+"api/common/getCuriculum").then(function(e){c.Allcurriculum=e.data,0e.cho_desc===c.choice.cho_desc))return console.log(c.choice.cho_desc+" already exists in the array."),void swal({text:"Choice description already exists",imageUrl:"assets/img/check.png",width:300,height:200});e?(u=[],(t=c.choice).opr="C",t.stream_code=c.stream.stream_code,c.choice="",c.exist=!1,u.push(t),_.post(l.apiUrl+"api/Streamchoices/CUDChoice",u).then(function(e){c.msg1=e.data,c.BoardData1=!1,c.getallchoices(t),c.addNewScreenMaster=!1,1==c.msg1?swal({text:"Record Inserted Successfully",imageUrl:"assets/img/check.png",width:300,height:200}):0==c.msg1?swal({text:"Choice Already Exits",imageUrl:"assets/img/close.png",width:300,height:200}):swal("Error-"+c.msg1)}),c.display=!1,c.table=!0,u=[]):swal({text:"Enter Mandatory fields",imageUrl:"assets/img/check.png",width:300,height:200})}},c.updatedatachoice=function(e){var t;c.choice.gender_max{e.opr="H",e.stream_code=c.stream.stream_code,e.cho_codes=c.choice.cho_code}),c.Mcat="",c.exist=!1,_.post(l.apiUrl+"api/Streamchoices/CUDChoice",t).then(function(e){c.msg1=e.data,c.BoardData1=!1,c.getallexams(t[0]),c.closeaddNewCatMaster(),1==c.msg1?(swal({text:"Record Updated Successfully",imageUrl:"assets/img/check.png",width:300,height:200}),c.updateGrades()):0==c.msg1?swal({text:"Record not updated",imageUrl:"assets/img/close.png",width:300,height:200}):swal("Error-"+c.msg1)}),c.temp.grade_code="",c.display=!1,c.table=!0,c.choice="",t=[])}},c.savedataSubject=function(){c.finalarray=[];for(var e=0;e=parseInt(c.MAXsims_term_display_order)||(c.sims_term_display_order=c.MAXsims_term_display_order)},c.MappedAttributeAssignment=function(){var e={opr:"BL",cur_code:c.cur_code,aca_year:c.aca_year,config_code:c.config_code,term_code:c.ct.split("_")[1],cat_code:c.ct.split("_")[0],assign_number:c.sims_report_card_assign_number_master};_.post(l.apiUrl+"api/GradebookNew/GradeBookNewCommon",e).then(function(e){c.popupattribute=e.data.table;for(var t=0;t=parseInt(c.MAXsims_term_display_order)||(e=c.MAXsims_term_display_order),e=1==c.term_status?"A":"I",1==c.sims_report_card_is_co_scolastic_term?c.sims_report_card_is_co_scolastic_term="A":c.sims_report_card_is_co_scolastic_term="I","edit"==c.add_or_edit&&"term"==c.actionForm?t={sims_cur_code:c.cur_code,sims_academic_year:c.aca_year,sims_report_card_config_code:c.config_code,sims_report_card_term_code:c.termcode_edit,sims_report_card_term_desc:c.term_desc_en,sims_report_card_term_desc_ot:c.term_desc_ot,sims_report_card_term_st_date:c.term_start_date,sims_report_card_term_end_date:c.term_end_date,sims_report_card_term_grade_scale:c.term_grade_scale,sims_report_card_term_status:e,sims_term_display_order:c.sims_term_display_order,sims_report_card_is_co_scolastic:c.sims_report_card_is_co_scolastic_term,sims_report_card_term_type:c.sims_report_card_term_type,sims_term_code:c.sims_term_code,sims_report_card_target_term_code:c.sims_report_card_target_term_code}:"add"==c.add_or_edit&&"term"==c.actionForm&&(t={sims_cur_code:c.cur_code,sims_academic_year:c.aca_year,sims_report_card_config_code:c.config_code,sims_report_card_term_desc:c.term_desc_en,sims_report_card_term_desc_ot:c.term_desc_ot,sims_report_card_term_st_date:c.term_start_date,sims_report_card_term_end_date:c.term_end_date,sims_report_card_term_grade_scale:c.term_grade_scale,sims_report_card_term_status:e,sims_term_display_order:c.sims_term_display_order,sims_report_card_is_co_scolastic:c.sims_report_card_is_co_scolastic_term,sims_report_card_term_type:c.sims_report_card_term_type,sims_term_code:c.sims_term_code,sims_report_card_target_term_code:c.sims_report_card_target_term_code}),void 0!==(a=void 0!==c.AllTermsMaster?c.AllTermsMaster.find(function(e){return e.sims_report_card_term_desc===c.term_desc_en}):a)&&c.term_desc_en_currentValue!==c.term_desc_en?swal({title:"Alert",text:"Term name already exists.",imageUrl:"assets/img/close.png",width:300,height:200}):_.post(l.apiUrl+"api/gradebooknew/terminsertion?ctemp=h",t).then(function(e){"edit"==c.add_or_edit&&"term"==c.actionForm?(c.findIndex(c.termcode_edit,"term"),c.AllTerms[c.termindextoupdate]=e.data):"add"==c.add_or_edit&&"term"==c.actionForm&&c.AllTerms.push(e.data),1==e.data.inserted_flg?("add"==c.add_or_edit?swal({title:"Alert",text:"Term Created successfully",imageUrl:"assets/img/check.png",width:300,height:200}):swal({title:"Alert",text:"Term Updated successfully",imageUrl:"assets/img/check.png",width:300,height:200}),c.getTermsmaster(),c.closeAddNewMaster()):swal({title:"Alert",text:"Unable To Create Term. ",imageUrl:"assets/img/close.png",width:300,height:200}),c.closeAddNew()}))},c.showGradesscale=function(){c.addNewGradeScaletrans=!0,c.gradescalebtn=!0,c.GradebookGradingSchemeShow()},c.closeAddNew=function(){c.addNewScreen=!1,c.addNewConfig=!1,c.addNewTerm=!1,c.addNewCat=!1,c.addNewAssign=!1,c.assignConfigShow=!1,c.catConfigShow=!1,c.sims_allow_edit=!1,c.AllMaterCategories=[],c.disalbleselection=!1,c.definefreqn=!1,c.freqn=!1,c.catg=!1,c.examcattermmap=!1,c.exammap=!1,c.assign_start_date="",$("#assign_start_date").val(""),setTimeout(function(){$(document).ready(function(){$("#assign_start_date, #assign_end_date,#assign_publish_date").kendoDatePicker({format:"dd-MM-yyyy",value:""})})},500),c.assign_end_date="",$("#assign_end_date").val(""),c.assign_publish_date="",$("#assign_publish_date").val(""),c.term_start_date="",$("#term_start_date").val(""),c.term_end_date="",$("#term_end_date").val("")},c.reset=function(){c.exams="",c.subjects="",c.CreDiv="",c.selectedChoice=!0,c.selectedexam=!1,c.edit1=!0,c.delete1=!0,c.add3=!0,c.edit=!1,c.add2=!0,c.edit=!0,c.handalechangestream(c.stream_data[0])},c.closeaddNewTermMaster=function(){c.addNewTermMaster=!1,c.addNewScreenMaster=!1},c.closeaddNewCatMaster=function(){c.addNewCatMaster=!1,c.addNewScreenMaster=!1},c.closeaddNewAssignMaster=function(){c.addNewAssignMaster=!1,c.addNewScreenMaster=!1},c.closeaddNewcriteria=function(){c.addNewcriteria=!1,c.addNewScreenMaster=!1},c.editConfig=function(e){c.add_or_edit="edit",c.actionForm="config",c.addNewScreen=!0,c.addNewConfig=!0,c.config_code_edit=$("#config_div").find(".bg-red").attr("configcode"),c.config_desc=$("#config_div").find(".bg-red").attr("configdesc"),"A"==$("#config_div").find(".bg-red").attr("configstatus")?c.config_status=!0:c.config_status=!1},c.updateStatus=function(t){var e=$(t.target).parents(".div_item").attr("configcode"),a=($(t.target).parents(".div_item").attr("configdesc"),$(t.target).parents(".div_item").attr("configstatus")),s="A"==a?"I":"A",e={opr:"D",cur_code:c.cur_code,aca_year:c.aca_year,config_code:e,config_status:s};_.post(l.apiUrl+"api/GradebookNew/GradeBookNewCommon",e).then(function(e){"A"==a?($(t.target).removeClass("label-danger").addClass("label-default").text("I"),$(t.target).parents(".div_item").attr("configstatus","I")):($(t.target).removeClass("label-default").addClass("label-danger").text("A"),$(t.target).parents(".div_item").attr("configstatus","A"))})},c.deleteConfig=function(e,t){$(e.target).parents(".tab-pane").attr("id");0<$("#config_div").find(".bg-red").length?(e=$("#config_div").find(".bg-red").attr("configcode"),e={opr:"C",cur_code:c.cur_code,aca_year:c.aca_year,config_code:e},_.post(l.apiUrl+"api/GradebookNew/GradeBookNewCommon",e).then(function(e){$("#config_div").find(".bg-red").remove()})):alert("Select any config")},c.deleteAttribute=function(e){0<$("#Div55").find("input:checked").length?$("#Div55").find("input:checked").each(function(e,t){c.att.sims_attribute_code=$(t).parents(".div_cat_item").data("attrcode");var a={opr:"BF",cur_code:c.cur_code,aca_year:c.aca_year,sims_attribute_code:c.att.sims_attribute_code};swal({title:"",text:"Are you sure you want to Delete?",showCloseButton:!0,showCancelButton:!0,confirmButtonText:"Yes",width:380,cancelButtonText:"No"}).then(function(e){e&&_.post(l.apiUrl+"api/GradebookNew/GradeBookNewCommon",a).then(function(e){0o&&(s.s.r=o),s.s.c>n&&(s.s.c=n),s.e.rl.pageCount3()-5?l.pageCount3()-5+1:t;as.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:_,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};c.push(e),i.post(r.apiUrl+"api/common/Admission/ApproveStudent",c).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.Dasiso",{Class:t.Class})},300)},i.get(r.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){i.get(r.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){i.get(r.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){i.get(r.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";angular.module("sims.module.Student").controller("CareerStudentMappingCont",["$scope","$state","$rootScope","$timeout","gettextCatalog","$http","ENV",function(i,e,t,a,s,d,r){i.edt={},i.temp={},i.selectedStudentList=[];var o,n=t.globals.currentUser.username,c=(i.busyindicator=!0,i.propertyName=null,i.reverse=!1,i.grade=[],i.section1=[],i.gradeSectionArray=[],i.SectionArray=[],i.cmb_subject_name=[],i.postData=[],i.homeroomStudents=[],i.disabledSubmit=!0,i.showSectionMsg=!1,i.showGradeMsg=!1,i.showEditField=!1,i.edt.homeroomStatus=!0,i.showSubjectMsg=!1,i.gradeSection=[],i.tempArray=[],i.edt.sims_grade_section=[],i.SectionStudent=[],i.showDeleteBtn=!1,i.showTeacherDropdown=!1,$("table.scroll")),_=c.find("tbody tr:first").children(),t=($(window).resize(function(){o=_.map(function(){return $(this).width()}).get(),c.find("thead tr").children().each(function(e,t){$(t).width(o[e])})}).resize(),$(function(){$("#cmb_grade").multipleSelect({width:"100%"})}),$(function(){$("#cmb_section_code").multipleSelect({width:"100%"})}),$(function(){$("#gradesection").multipleSelect({width:"100%"})}),$(function(){$("#gradesec").multipleSelect({width:"100%"})}),d.post(r.apiUrl+"api/StudentDYPCareerMappingController/CareerMappingcommon",{opr:"A"}).then(function(e){i.AllEmployees=e.data.table,setTimeout(function(){$("#mentorbox").select2()},100)}),{opr:"F",sims_cur_code:i.edt.sims_cur_code,sims_academic_year:i.edt.sims_academic_year});d.post(r.apiUrl+"api/StudentDYPCareerMappingController/CareerMappingcommon",t).then(function(e){i.careerData=e.data.table}),i.getCurriculum=function(){d.get(r.apiUrl+"api/common/getCuriculum").then(function(e){i.curriculum=e.data,i.edt.sims_cur_code=i.curriculum[0].sims_cur_code,i.temp.sims_cur_code=i.curriculum[0].sims_cur_code,i.getacyr(i.curriculum[0].sims_cur_code)})},i.getCurriculum(),i.getacyr=function(e){i.cur_code=e,d.get(r.apiUrl+"api/common/getAcademicYear?curCode="+e).then(function(e){i.Academic_year=e.data,i.edt.sims_academic_year=i.Academic_year[0].sims_academic_year,i.temp.sims_academic_year=i.Academic_year[0].sims_academic_year,i.getgradeformentor(i.edt.sims_cur_code,i.edt.sims_academic_year);e={opr:"DA",sims_academic_year:i.edt.sims_academic_year,sims_employee_code:n};d.post(r.apiUrl+"api/StudentDYPCareerMappingController/CareerMappingcommon",e).then(function(e){"1"==e.data.table[0].flag?i.checkadmin=!1:(i.checkadmin=!0,i.edt.sims_employee_code=n)})})},i.getgradeformentor=function(e,t){var a={opr:"B",sims_cur_code:i.edt.sims_cur_code,sims_academic_year:i.edt.sims_academic_year,sims_employee_code:i.edt.sims_employee_code};d.post(r.apiUrl+"api/StudentDYPCareerMappingController/CareerMappingcommon",a).then(function(e){i.Grade_code=e.data.table,i.edt.sims_grade_code=i.Grade_code[0],i.getSectionformentor(i.edt.sims_cur_code,i.edt.sims_academic_year,i.edt.sims_grade_code),setTimeout(function(){$("#cmb_grade_code").change(function(){console.log($(this).val())}).multipleSelect({width:"100%"})},1e3)})},i.getSectionformentor=function(e,t,a){for(var s="",o=0;ol.pageCount3()-5?l.pageCount3()-5+1:t;at&&(n.s.r=t),n.s.c>e&&(n.s.c=e),n.e.rl.pageCount3()-5?l.pageCount3()-5+1:a;ep.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),g.post(h.apiUrl+"api/common/Admission_dpsd/ApproveStudent",d).then(function(e){p.display=!0,p.msg1=e.data}),p.grid1=!0,$("#myModal1").modal({backdrop:"static",keyboard:!0})},p.get_studentfee=function(){s.go("main.Sim043")},p.schoolcheck=function(){!0===p.edt.current_school_status?p.school_edit=!1:p.school_edit=!0},p.chk_desc=function(){!0===p.edt.marketing_code?p.desc_edit=!1:p.desc_edit=!0},p.chk_cicumstances=function(){!0===p.edt.parent_status_code?p.circum_edit=!1:p.circum_edit=!0},p.chk_disab_status=function(){!0===p.edt.disability_status?p.disab_edit=!1:p.disab_edit=!0},p.chk_health_res=function(){!0===p.edt.health_restriction_status?p.healthres_edit=!1:p.healthres_edit=!0},p.chk_medic_status=function(){!0===p.edt.medication_status?p.med_edit=!1:p.med_edit=!0},p.chk_other=function(){!0===p.edt.health_other_status?p.other_edit=!1:p.other_edit=!0},p.chk_hearing=function(){!0===p.edt.health_hearing_status?p.hearing_edit=!1:p.hearing_edit=!0},p.chk_vision=function(){!0===p.edt.health_vision_status?p.health_vision_edit=!1:p.health_vision_edit=!0},p.chk_behaviour=function(){!0===p.edt.behaviour_status?p.behaviour_edit=!1:p.behaviour_edit=!0},p.chk_gifted_status=function(){!0===p.edt.gifted_status?p.gifted_edit=!1:p.gifted_edit=!0},p.chk_music_pro=function(){!0===p.edt.music_status?p.music_edit=!1:p.music_edit=!0},p.chk_sport_pro=function(){!0===p.edt.sports_status?p.sport_edit=!1:p.sport_edit=!0},p.chk_lang_sup=function(){!0===p.edt.language_support_status?p.lang_sup_edit=!1:p.lang_sup_edit=!0},p.chk_Pri_contact=function(){!0===p.edt.primary_contact_code?p.pricont_edit=!1:p.pricont_edit=!0},p.chk_transport_requin=function(){!0===p.edt.transport_status?p.transreq_edit=!1:p.transreq_edit=!0},p.chk_employee=function(){!0===document.getElementById("chk_employee").checked?document.getElementById("txt_emp_code").disabled=!1:document.getElementById("txt_emp_code").disabled=!0},p.chk_Sibling_attend=function(){!0===p.edt.sibling_status?p.disableparent=!1:p.disableparent=!0},p.chk_learn_ther=function(){!0===p.edt.sims_admission_learning_therapy_status?p.learnther_edit=!1:p.learnther_edit=!0},p.chk_spec_edu=function(){!0===p.edt.sims_admission_special_education_status?p.spec_edu_edit=!1:p.spec_edu_edit=!0},p.chk_falled_grade=function(){!0===p.edt.sims_admission_falled_grade_status?p.falledgrade_edit=!1:p.falledgrade_edit=!0},p.chk_commun=function(){!0===p.edt.sims_admission_communication_status?p.commun_edit=!1:p.commun_edit=!0},p.chk_spec_activies=function(){!0===p.edt.sims_admission_specialAct_status?p.specActiv_edit=!1:p.specActiv_edit=!0},p.chk_studyingin=function(){!0===p.edt.sibling_status?(p.Study_edit=!1,document.getElementById("t3"),document.getElementById("t4"),document.getElementById("t5"),p.t=!1):(p.Study_edit=!0,document.getElementById("t3"),document.getElementById("t4"),document.getElementById("t5"),p.t=!0)},p.chk_ticking=function(){!0===p.edt.declaration_status?(p.tick_edit=!1,p.confirm_edit=!1):(p.tick_edit=!0,p.confirm_edit=!0)},p.chk_copy_mother_add=function(){!0===p.edt.copy_add?(p.edt.mother_appartment_number=p.edt.father_appartment_number,p.edt.mother_area_number=p.edt.father_area_number,p.edt.mother_building_number=p.edt.father_building_number,p.edt.mother_street_number=p.edt.father_street_number,p.edt.mother_city=p.edt.father_city,p.edt.mother_state=p.edt.father_state,p.edt.mother_country_code=p.edt.father_country_code,p.edt.mother_po_box=p.edt.father_po_box,p.edt.mother_nationality1_code=p.edt.father_nationality1_code,p.edt.mother_nationality2_code=p.edt.father_nationality2_code,p.edt.mother_summary_address=p.edt.father_summary_address,p.edt.mother_phone=p.edt.father_phone,p.edt.mother_po_box=p.edt.father_po_box,p.edt.mother_mobile=p.edt.father_mobile,p.edt.mother_occupation=p.edt.father_occupation,p.edt.mother_email=p.edt.father_email,p.edt.mother_company=p.edt.father_company):(p.edt.mother_appartment_number="",p.edt.mother_area_number="",p.edt.mother_building_number="",p.edt.mother_street_number="",p.edt.mother_city="",p.edt.mother_state="",p.edt.mother_country_code="",p.edt.mother_po_box="",p.edt.mother_nationality1_code="",p.edt.mother_nationality2_code="",p.edt.mother_summary_address="",p.edt.mother_phone="",p.edt.mother_po_box="",p.edt.mother_mobile="",p.edt.mother_occupation="",p.edt.mother_email="",p.edt.mother_company="")},p.chk_copy_guar_add1=function(){!0===p.edt.copy_add1?(p.edt.guardian_appartment_number=p.edt.father_appartment_number,p.edt.guardian_area_number=p.edt.father_area_number,p.edt.guardian_building_number=p.edt.father_building_number,p.edt.guardian_street_number=p.edt.father_street_number,p.edt.guardian_city=p.edt.father_city,p.edt.guardian_state=p.edt.father_state,p.edt.guardian_country_code=p.edt.father_country_code,p.edt.guardian_po_box=p.edt.father_po_box,p.edt.guardian_nationality1_code=p.edt.father_nationality1_code,p.edt.guardian_nationality2_code=p.edt.father_nationality2_code,p.edt.guardian_summary_address=p.edt.father_summary_address,p.edt.guardian_phone=p.edt.father_phone,p.edt.guardian_po_box=p.edt.father_po_box,p.edt.guardian_mobile=p.edt.father_mobile,p.edt.guardian_occupation=p.edt.father_occupation,p.edt.guardian_email=p.edt.father_email,p.edt.guardian_company=p.edt.father_company):(p.edt.guardian_appartment_number="",p.edt.guardian_area_number="",p.edt.guardian_building_number="",p.edt.guardian_street_number="",p.edt.guardian_city="",p.edt.guardian_state="",p.edt.guardian_country_code="",p.edt.guardian_po_box="",p.edt.guardian_nationality1_code="",p.edt.guardian_nationality2_code="",p.edt.guardian_summary_address="",p.edt.guardian_phone="",p.edt.guardian_po_box="",p.edt.guardian_mobile="",p.edt.guardian_occupation="",p.edt.guardian_email="",p.edt.guardian_company="")},p.GetFatherSumAddr=function(){var e=document.getElementById("cmb_father_country").options[document.getElementById("cmb_father_country").selectedIndex].text,t=($("#txt_father_aprt").val().length,$("#txt_father_build").val().length,$("#txt_father_Street").val().length,$("#txt_father_area").val().length),a=$("#txt_father_city").val().length,s=$("#txt_father_state").val().length,o=$("#cmb_father_country").val().length,n=$("#txt_father_pobox").val().length;document.getElementById("txt_father_summary_add").value=0<$("#txt_father_aprt").val().length?document.getElementById("txt_father_aprt").value+",":"",document.getElementById("txt_father_summary_add").value+=0<$("#txt_father_build").val().length?document.getElementById("txt_father_build").value+",":"",document.getElementById("txt_father_summary_add").value+=0<$("#txt_father_Street").val().length?document.getElementById("txt_father_Street").value+",":"",document.getElementById("txt_father_summary_add").value+=0o.pageCount()-20?o.pageCount()-20+1:t;aparseFloat(e.sims_grade_fee_amount)&&(swal({title:"Alert",text:"Amount Should be less than "+e.sims_grade_fee_amount,width:300,height:200}),e.sims_fee_paying_amount=e.sims_grade_fee_amount)},o.check_paying_amt=function(e){null!=e.sims_fee_paying_amount&&"0"!=e.sims_fee_paying_amount||(swal({title:"Alert",text:"Please Enter Amount",width:300,height:200}),e.sims_fee_paying_amount=e.sims_grade_fee_amount),parseFloat(e.sims_fee_paying_amount)>parseFloat(e.sims_grade_fee_amount)&&(swal({title:"Alert",text:"Amount Should be less than "+e.sims_grade_fee_amount,width:300,height:200}),e.sims_fee_paying_amount=e.sims_grade_fee_amount)},o.checkonebyone_fee=function(e){"0"!=e.sims_fee_paying_amount&&""!=e.sims_fee_paying_amount&&null!=e.sims_fee_paying_amount||swal({title:"Alert",text:"Please Enter Amount",showCloseButton:!0,width:380}),1==e.no?o.temp.grandtotal=parseFloat(o.temp.grandtotal)+parseFloat(e.total_paying_amt):o.temp.grandtotal=parseFloat(o.temp.grandtotal)-parseFloat(e.total_paying_amt)},$(document).ready(function(){$("#Text6").kendoDatePicker({format:"dd-MM-yyyy"})})}])}(),function(){"use strict";var p,g,e=angular.module("sims.module.Student");e.run(["$rootScope","$templateCache",function(e,t){e.$on("$viewContentLoaded",function(){t.removeAll()})}]),e.controller("DigitalDiaryAproveCont",["$scope","$state","$rootScope","$timeout","gettextCatalog","$http","ENV","$filter",function(d,e,t,a,s,r,c,o){d.pagesize="5",d.pageindex=0,d.save_btn=!0,d.Update_btn=!0,d.display=!0,d.table=!0,d.agenda_grid=!1,d.PageSize_Search=!1,d.pageSize_txt=!1,d.search_txt=!1,d.exporttab=!0;var n=t.globals.currentUser.username,i=(r.defaults.headers.common.schoolId,t.globals.currentUser.username,d.CurrentDate=new Date,new Date),l=i.getDate(),m=i.getMonth()+1,i=i.getFullYear(),i=(p=i+"-"+m+"-"+l,console.log("Current Date"),console.log(p),o("date")(new Date,"dd-MM-yyyy"));function u(e,t){e?r.get(c.apiUrl+"api/ERP/Grade/getCuriculum_new").then(function(e){d.curriculum=e.data,d.temp={sims_cur_code:d.curriculum[0].sims_cur_code},d.getAccYear(d.curriculum[0].sims_cur_code)}):r.get(c.apiUrl+"api/ERP/Grade/getCuriculumfor_Company?comp_code="+t).then(function(e){d.curriculum=e.data,d.temp={sims_cur_code:d.curriculum[0].sims_cur_code},d.getAccYear(d.curriculum[0].sims_cur_code)})}d.edt={sims_agenda_sdate:i,sims_agenda_edate:i},$(document).on("touch click",'*[data-datepicker="true"] .add-on',function(e){$('input[type="text"]',$(this).parent()).focus()}),$('*[data-datepicker="true"] input[type="text"]').datepicker({todayBtn:!0,orientation:"top left",autoclose:!0,todayHighlight:!0,format:"dd-mm-yyyy"}),a(function(){$("#fixTable").tableHeadFixer({top:1})},100),a(function(){$("#test").tableHeadFixer({top:1})},100),d.downloaddoc=function(e){d.url=c.docUrl+r.defaults.headers.common.schoolId+"/Agenda/"+e,window.open(d.url)},d.compareDate=function(){d.temp.sims_agenda_sdate>d.temp.sims_agenda_edate&&(swal({title:"Alert",text:"End date should be greater than Start date",showCloseButton:!0,width:300,height:200}),d.temp.sims_agenda_edate="")},d.clear=function(){d.temp="",d.filteredTodos=[],d.agenda_grid=!1,d.PageSize_Search=!1,d.pageSize_txt=!1,d.search_txt=!1},r.get(c.apiUrl+"api/ERP/Grade/getAccecssUser?user="+t.globals.currentUser.username).then(function(e){d.global_count_comp=e.data,d.global_count_comp?u(!0,d.user_details.comp):u(!1,d.user_details.comp)}),d.getAccYear=function(e){r.get(c.apiUrl+"api/common/getAcademicYear?curCode="+e).then(function(e){d.Acc_year=e.data,d.temp.sims_academic_year=d.Acc_year[0].sims_academic_year,d.getDepart(d.temp.sims_cur_code,d.temp.sims_academic_year)})},d.getDepart=function(e,t){r.get(c.apiUrl+"api/DigitalDiary/getDepartment?cur_code="+e+"&academic_year="+t+"&emp_login_code="+n).then(function(e){d.deprt_code=e.data,d.temp.codp_dept_no=d.deprt_code[0].codp_dept_no,d.getFaculty(d.temp.codp_dept_no)})},d.getFaculty=function(e){r.get(c.apiUrl+"api/DigitalDiary/getDepartmentFromFaculty?dept_code="+e+"&emp_login_code="+n).then(function(e){d.faculty_code=e.data,d.temp.em_number=d.faculty_code[0].em_number,d.getSubject(d.temp.em_number)})},d.getSubject=function(e){r.get(c.apiUrl+"api/DigitalDiary/GetSubject?em_number="+e).then(function(e){d.subjects=e.data,d.temp.sims_subject_code=d.subjects[0].sims_subject_code})},d.agenda_Details_fun=function(e,t,a,s,o,n,i){r.get(c.apiUrl+"api/DigitalDiary/getAgendaDetails?sims_acaedmic_year="+e+"&sdate="+t+"&edate="+a+"&sims_dept_code="+s+"&sims_emp_code="+o+"&sims_subject_code="+n+"&sims_status="+i).then(function(e){d.agenda_Details=e.data,console.log("data",d.agenda_Details),0o&&(s.s.r=o),s.s.c>n&&(s.s.c=n),s.e.rl.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?l.adm_update():($("#cmb_section").css("background-color","#E5E9EC"),$('.nav-tabs a[href="#admtab1"]').tab("show"))}):l.adm_update())},l.adm_update=function(){null==l.edt.home_country_isdcode&&(l.edt.home_country_isdcode=""),null==l.edt.home_phone&&(l.edt.home_phone="");var e={admission_number:param,appl_num:l.edt.appl_num,pros_num:l.edt.pros_num,pros_appl_num:l.edt.pros_appl_num,admission_date:l.edt.admission_date,school_code:l.edt.school_code,curr_code:l.edt.curr_code,academic_year:l.edt.academic_year,grade_code:l.edt.grade_code,section_code:l.edt.section_code,term_code:l.edt.term_code,tent_join_date:l.edt.tent_join_date,sims_student_emergency_contact_number1:l.edt.sims_student_emergency_contact_number1,sims_student_emergency_contact_name1:l.edt.sims_student_emergency_contact_name1,first_name:l.edt.first_name,middle_name:l.edt.middle_name,last_name:l.edt.last_name,family_name:l.edt.family_name,first_name_ot:l.edt.first_name_ot,midd_name_ot:l.edt.midd_name_ot,last_name_ot:l.edt.last_name_ot,family_name_ot:l.edt.family_name_ot,nicke_name:l.edt.nicke_name,birth_date:l.edt.birth_date,comm_date:l.edt.comm_date,birth_country_code:l.edt.birth_country_code,nationality_code:l.edt.nationality_code,ethinicity_code:l.edt.ethinicity_code,gender_code:l.edt.gender_code,religion_code:l.edt.religion_code,passport_num:l.edt.passport_num,passport_issue_date:l.edt.passport_issue_date,passport_expiry:l.edt.passport_expiry,passport_issue_auth:l.edt.passport_issue_auth,passport_issue_place:l.edt.passport_issue_place,visa_number:l.edt.visa_number,visa_type:l.edt.visa_type,visa_issuing_authority:l.edt.visa_issuing_authority,visa_issue_date:l.edt.visa_issue_date,visa_expiry_date:l.edt.visa_expiry_date,visa_issuing_place:l.edt.visa_issuing_place,national_id:l.edt.national_id,national_id_issue_date:l.edt.national_id_issue_date,national_id_expiry_date:l.edt.national_id_expiry_date,sibling_status:l.edt.sibling_status,parent_id:l.edt.parent_id,sibling_enroll:l.edt.sibling_enroll,sibling_name:l.edt.sibling_name,sibling_dob:l.edt.sibling_dob,sibling_school_code:l.edt.sibling_school_code,employee_type:l.edt.employee_type,employee_code:l.edt.employee_code,employee_school_code:l.edt.employee_school_code,motherTounge_language_code:l.edt.motherTounge_language_code,main_language_code:l.edt.main_language_code,main_language_r_code:l.edt.main_language_r_code,main_language_w_code:l.edt.main_language_w_code,main_language_s_code:l.edt.main_language_s_code,primary_contact_code:l.edt.primary_contact_code,primary_contact_pref_code:l.edt.primary_contact_pref_code,fee_payment_contact_pref_code:l.edt.fee_payment_contact_pref_code,transport_statusnew:l.edt.transport_statusnew,transport_desc:l.edt.transport_desc,father_salutation_code:l.edt.father_salutation_code,father_first_name:l.edt.father_first_name,father_middle_name:l.edt.father_middle_name,father_last_name:l.edt.father_last_name,father_family_name:l.edt.father_family_name,father_family_name_ot:l.edt.father_family_name_ot,father_nationality1_code:l.edt.father_nationality1_code,father_nationality2_code:l.edt.father_nationality2_code,father_appartment_number:l.edt.father_appartment_number,father_building_number:l.edt.father_building_number,father_street_number:l.edt.father_street_number,father_area_number:l.edt.father_area_number,father_city:l.edt.father_city,father_state:l.edt.father_state,father_country_code:l.edt.father_country_code,father_summary_address:l.edt.father_summary_address,father_po_box:l.edt.father_po_box,father_phone:l.edt.father_phone,father_email:l.edt.father_email,father_mobile:l.edt.father_mobile,father_fax:l.edt.father_fax,father_occupation:l.edt.father_occupation,father_company:l.edt.father_company,father_passport_number:l.edt.father_passport_number,sims_admission_father_national_id:l.edt.sims_admission_father_national_id,guardian_salutation_code:l.edt.guardian_salutation_code,guardian_first_name:l.edt.guardian_first_name,guardian_middle_name:l.edt.guardian_middle_name,guardian_last_name:l.edt.guardian_last_name,guardian_family_name:l.edt.guardian_family_name,guardian_nationality1_code:l.edt.guardian_nationality1_code,guardian_nationality2_code:l.edt.guardian_nationality2_code,guardian_appartment_number:l.edt.guardian_appartment_number,guardian_building_number:l.edt.guardian_building_number,guardian_street_number:l.edt.guardian_street_number,guardian_area_number:l.edt.guardian_area_number,guardian_city:l.edt.guardian_city,guardian_state:l.edt.guardian_state,guardian_country_code:l.edt.guardian_country_code,guardian_summary_address:l.edt.guardian_summary_address,guardian_po_box:l.edt.guardian_po_box,guardian_phone:l.edt.guardian_phone,guardian_mobile:l.edt.guardian_mobile,guardian_fax:l.edt.guardian_fax,guardian_email:l.edt.guardian_email,guardian_occupation:l.edt.guardian_occupation,guardian_company:l.edt.guardian_company,guardian_passport_number:l.edt.guardian_passport_number,guardian_relationship_code:l.edt.guardian_relationship_code,mother_salutation_code:l.edt.mother_salutation_code,mother_first_name:l.edt.mother_first_name,mother_middle_name:l.edt.mother_middle_name,mother_last_name:l.edt.mother_last_name,mother_family_name:l.edt.mother_family_name,mother_name_ot:l.edt.mother_name_ot,mother_nationality1_code:l.edt.mother_nationality1_code,mother_nationality2_code:l.edt.mother_nationality2_code,mother_appartment_number:l.edt.mother_appartment_number,mother_building_number:l.edt.mother_building_number,mother_street_number:l.edt.mother_street_number,mother_area_number:l.edt.mother_area_number,mother_city:l.edt.mother_city,mother_state:l.edt.mother_state,mother_country_code:l.edt.mother_country_code,mother_summary_address:l.edt.mother_summary_address,mother_po_box:l.edt.mother_po_box,mother_phone:l.edt.mother_phone,mother_mobile:l.edt.mother_mobile,mother_fax:l.edt.mother_fax,mother_email:l.edt.mother_email,mother_occupation:l.edt.mother_occupation,mother_passport_number:l.edt.mother_passport_number,current_school_status:l.edt.current_school_status,current_school_name:l.edt.current_school_name,current_school_enroll_number:l.edt.current_school_enroll_number,current_school_grade:l.edt.current_school_grade,current_school_cur:l.edt.current_school_cur,current_school_from_date:l.edt.current_school_from_date,current_school_to_date:l.edt.current_school_to_date,current_school_language:l.edt.current_school_language,current_school_head_teacher:l.edt.current_school_head_teacher,current_school_phone:l.edt.current_school_phone,current_school_fax:l.edt.current_school_fax,current_school_city:l.edt.current_school_city,current_school_country_code:l.edt.current_school_country_code,current_school_address:l.edt.current_school_address,marketing_code:l.edt.marketing_code,marketing_description:l.edt.marketing_description,parent_status_code:l.edt.parent_status_code,legal_custody_code:l.edt.legal_custody_code,health_card_number:l.edt.health_card_number,health_card_issue_date:l.edt.health_card_issue_date,health_card_issuing_authority:l.edt.health_card_issuing_authority,blood_group_code:l.edt.blood_group_code,medication_status:l.edt.medication_status,medication_desc:l.edt.medication_desc,disability_status:l.edt.disability_status,disability_desc:l.edt.disability_desc,behaviour_status:l.edt.behaviour_status,behaviour_desc:l.edt.behaviour_desc,health_restriction_status:l.edt.health_restriction_status,health_restriction_desc:l.edt.health_restriction_desc,health_hearing_status:l.edt.health_hearing_status,health_hearing_desc:l.edt.health_hearing_desc,health_vision_status:l.edt.health_vision_status,health_vision_desc:l.edt.health_vision_desc,health_other_status:l.edt.health_other_status,health_other_desc:l.edt.health_other_desc,gifted_status:l.edt.gifted_status,gifted_desc:l.edt.gifted_desc,music_status:l.edt.music_status,music_desc:l.edt.music_desc,sports_status:l.edt.sports_status,sports_desc:l.edt.sports_desc,language_support_status:l.edt.language_support_status,language_support_desc:l.edt.language_support_desc,declaration_status:l.edt.declaration_status,fees_paid_status:l.edt.fees_paid_status,fee_category_code:l.edt.fee_category_code,ip:l.edt.ip,dns:l.edt.dns,user_code:l.edt.user_code,status:l.edt.status,sims_student_attribute1:l.edt.sims_student_attribute1,sims_student_attribute2:l.edt.sims_student_attribute2,sims_student_attribute3:l.edt.sims_student_attribute3,sims_student_attribute4:l.edt.sims_student_attribute4,sims_student_health_respiratory_status:l.edt.sims_student_health_respiratory_status,sims_student_health_respiratory_desc:l.edt.sims_student_health_respiratory_desc,sims_student_health_hay_fever_status:l.edt.sims_student_health_hay_fever_status,sims_student_health_hay_fever_desc:l.edt.sims_student_health_hay_fever_desc,sims_student_health_epilepsy_status:l.edt.sims_student_health_epilepsy_status,sims_student_health_epilepsy_desc:l.edt.sims_student_health_epilepsy_desc,sims_student_health_skin_status:l.edt.sims_student_health_skin_status,sims_student_health_skin_desc:l.edt.sims_student_health_skin_desc,sims_student_health_diabetes_status:l.edt.sims_student_health_diabetes_status,sims_student_health_diabetes_desc:l.edt.sims_student_health_diabetes_desc,sims_student_health_surgery_status:l.edt.sims_student_health_surgery_status,sims_student_health_surgery_desc:l.edt.sims_student_health_surgery_desc,sims_admission_recommendation:l.edt.sims_admission_recommendation,sims_admission_mother_national_id:l.edt.sims_admission_mother_national_id,sims_admission_guardian_national_id:l.edt.sims_admission_guardian_national_id,sims_fee_month_code:l.edt.sims_fee_month_code,sims_student_attribute5:l.edt.sims_student_attribute5,sims_student_attribute6:l.edt.sims_student_attribute6,sims_student_attribute7:l.edt.sims_student_attribute7,sims_student_attribute8:l.edt.sims_student_attribute8,sims_student_attribute9:l.edt.sims_student_attribute9,sims_student_attribute10:l.edt.sims_student_attribute10,sims_student_attribute11:l.edt.sims_student_attribute11,sims_student_attribute12:l.edt.sims_student_attribute12,sims_admission_second_lang_code:l.edt.sims_admission_second_lang_code,sims_admission_third_lang_code:l.edt.sims_admission_third_lang_code,sims_admission_subject_code:l.edt.sims_admission_second_lang_code+","+l.edt.sims_admission_third_lang_code};n.push(e),m.post(u.apiUrl+"api/common/Admission_dpsd/ApproveStudent",n).then(function(e){l.display=!0,l.msg1=e.data,console.log(l.msg1)}),l.grid1=!0,$("#myModal1").modal({backdrop:"static",keyboard:!0})},l.get_studentfee=function(){a.go("main.Sim043")},l.schoolcheck=function(){1==l.edt.current_school_status?l.school_edit=!1:l.school_edit=!0},l.chk_desc=function(){1==l.edt.marketing_code?l.desc_edit=!1:l.desc_edit=!0},l.chk_cicumstances=function(){1==l.edt.parent_status_code?l.circum_edit=!1:l.circum_edit=!0},l.chk_disab_status=function(){1==l.edt.disability_status?l.disab_edit=!1:l.disab_edit=!0},l.chk_health_res=function(){1==l.edt.health_restriction_status?l.healthres_edit=!1:l.healthres_edit=!0},l.chk_medic_status=function(){1==l.edt.medication_status?l.med_edit=!1:l.med_edit=!0},l.chk_other=function(){1==l.edt.health_other_status?l.other_edit=!1:l.other_edit=!0},l.chk_hearing=function(){1==l.edt.health_hearing_status?l.hearing_edit=!1:l.hearing_edit=!0},l.chk_vision=function(){1==l.edt.health_vision_status?l.health_vision_edit=!1:l.health_vision_edit=!0},l.chk_behaviour=function(){1==l.edt.behaviour_status?l.behaviour_edit=!1:l.behaviour_edit=!0},l.chk_gifted_status=function(){1==l.edt.gifted_status?l.gifted_edit=!1:l.gifted_edit=!0},l.chk_music_pro=function(){1==l.edt.music_status?l.music_edit=!1:l.music_edit=!0},l.chk_sport_pro=function(){1==l.edt.sports_status?l.sport_edit=!1:l.sport_edit=!0},l.chk_lang_sup=function(){1==l.edt.language_support_status?l.lang_sup_edit=!1:l.lang_sup_edit=!0},l.chk_Pri_contact=function(){1==l.edt.primary_contact_code?l.pricont_edit=!1:l.pricont_edit=!0},l.chk_transport_requin=function(){1==l.edt.transport_statusnew?l.transreq_edit=!1:l.transreq_edit=!0},l.chk_employee=function(){1==document.getElementById("chk_employee").checked?document.getElementById("txt_emp_code").disabled=!1:document.getElementById("txt_emp_code").disabled=!0},l.chk_Sibling_attend=function(){1==l.edt.sibling_status?l.disableparent=!1:l.disableparent=!0},l.chk_learn_ther=function(){1==l.edt.sims_admission_learning_therapy_status?l.learnther_edit=!1:l.learnther_edit=!0},l.chk_spec_edu=function(){1==l.edt.sims_admission_special_education_status?l.spec_edu_edit=!1:l.spec_edu_edit=!0},l.chk_falled_grade=function(){1==l.edt.sims_admission_falled_grade_status?l.falledgrade_edit=!1:l.falledgrade_edit=!0},l.chk_commun=function(){1==l.edt.sims_admission_communication_status?l.commun_edit=!1:l.commun_edit=!0},l.chk_spec_activies=function(){1==l.edt.sims_admission_specialAct_status?l.specActiv_edit=!1:l.specActiv_edit=!0},l.chk_studyingin=function(){1==l.edt.sibling_status?(l.Study_edit=!1,document.getElementById("t3"),document.getElementById("t4"),document.getElementById("t5"),l.t=!1):(l.Study_edit=!0,document.getElementById("t3"),document.getElementById("t4"),document.getElementById("t5"),l.t=!0)},l.chk_ticking=function(){1==l.edt.declaration_status?(l.tick_edit=!1,l.confirm_edit=!1):(l.tick_edit=!0,l.confirm_edit=!0)},l.chk_copy_mother_add=function(){1==l.edt.copy_add?(l.edt.mother_appartment_number=l.edt.father_appartment_number,l.edt.mother_area_number=l.edt.father_area_number,l.edt.mother_building_number=l.edt.father_building_number,l.edt.mother_street_number=l.edt.father_street_number,l.edt.mother_city=l.edt.father_city,l.edt.mother_state=l.edt.father_state,l.edt.mother_country_code=l.edt.father_country_code,l.edt.mother_po_box=l.edt.father_po_box,l.edt.mother_nationality1_code=l.edt.father_nationality1_code,l.edt.mother_nationality2_code=l.edt.father_nationality2_code,l.edt.mother_summary_address=l.edt.father_summary_address,l.edt.mother_phone=l.edt.father_phone,l.edt.mother_po_box=l.edt.father_po_box,l.edt.mother_mobile=l.edt.father_mobile,l.edt.mother_occupation=l.edt.father_occupation,l.edt.mother_email=l.edt.father_email,l.edt.mother_company=l.edt.father_company):(l.edt.mother_appartment_number="",l.edt.mother_area_number="",l.edt.mother_building_number="",l.edt.mother_street_number="",l.edt.mother_city="",l.edt.mother_state="",l.edt.mother_country_code="",l.edt.mother_po_box="",l.edt.mother_nationality1_code="",l.edt.mother_nationality2_code="",l.edt.mother_summary_address="",l.edt.mother_phone="",l.edt.mother_po_box="",l.edt.mother_mobile="",l.edt.mother_occupation="",l.edt.mother_email="",l.edt.mother_company="")},l.chk_copy_guar_add1=function(){1==l.edt.copy_add1?(l.edt.guardian_appartment_number=l.edt.father_appartment_number,l.edt.guardian_area_number=l.edt.father_area_number,l.edt.guardian_building_number=l.edt.father_building_number,l.edt.guardian_street_number=l.edt.father_street_number,l.edt.guardian_city=l.edt.father_city,l.edt.guardian_state=l.edt.father_state,l.edt.guardian_country_code=l.edt.father_country_code,l.edt.guardian_po_box=l.edt.father_po_box,l.edt.guardian_nationality1_code=l.edt.father_nationality1_code,l.edt.guardian_nationality2_code=l.edt.father_nationality2_code,l.edt.guardian_summary_address=l.edt.father_summary_address,l.edt.guardian_phone=l.edt.father_phone,l.edt.guardian_po_box=l.edt.father_po_box,l.edt.guardian_mobile=l.edt.father_mobile,l.edt.guardian_occupation=l.edt.father_occupation,l.edt.guardian_email=l.edt.father_email,l.edt.guardian_company=l.edt.father_company):(l.edt.guardian_appartment_number="",l.edt.guardian_area_number="",l.edt.guardian_building_number="",l.edt.guardian_street_number="",l.edt.guardian_city="",l.edt.guardian_state="",l.edt.guardian_country_code="",l.edt.guardian_po_box="",l.edt.guardian_nationality1_code="",l.edt.guardian_nationality2_code="",l.edt.guardian_summary_address="",l.edt.guardian_phone="",l.edt.guardian_po_box="",l.edt.guardian_mobile="",l.edt.guardian_occupation="",l.edt.guardian_email="",l.edt.guardian_company="")},l.GetFatherSumAddr=function(){var e=document.getElementById("cmb_father_country").options[document.getElementById("cmb_father_country").selectedIndex].text,t=($("#txt_father_aprt").val().length,$("#txt_father_build").val().length,$("#txt_father_Street").val().length,$("#txt_father_area").val().length),a=$("#txt_father_city").val().length,s=$("#txt_father_state").val().length,o=$("#cmb_father_country").val().length,n=$("#txt_father_pobox").val().length;document.getElementById("txt_father_summary_add").value=0<$("#txt_father_aprt").val().length?document.getElementById("txt_father_aprt").value+",":"",document.getElementById("txt_father_summary_add").value+=0<$("#txt_father_build").val().length?document.getElementById("txt_father_build").value+",":"",document.getElementById("txt_father_summary_add").value+=0<$("#txt_father_Street").val().length?document.getElementById("txt_father_Street").value+",":"",document.getElementById("txt_father_summary_add").value+=0r.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?r.adm_update():($("#cmb_section").css("background-color","#E5E9EC"),$('.nav-tabs a[href="#admtab1"]').tab("show"))}):r.adm_update())},r.adm_update=function(){null==r.edt.home_country_isdcode&&(r.edt.home_country_isdcode=""),null==r.edt.home_phone&&(r.edt.home_phone="");var e={admission_number:l,appl_num:r.edt.appl_num,pros_num:r.edt.pros_num,pros_appl_num:r.edt.pros_appl_num,admission_date:r.edt.admission_date,school_code:r.edt.school_code,curr_code:r.edt.curr_code,academic_year:r.edt.academic_year,grade_code:r.edt.grade_code,section_code:r.edt.section_code,term_code:r.edt.term_code,tent_join_date:r.edt.tent_join_date,sims_student_emergency_contact_number1:r.edt.sims_student_emergency_contact_number1,sims_student_emergency_contact_name1:r.edt.sims_student_emergency_contact_name1,first_name:r.edt.first_name,middle_name:r.edt.middle_name,last_name:r.edt.last_name,family_name:r.edt.family_name,first_name_ot:r.edt.first_name_ot,midd_name_ot:r.edt.midd_name_ot,last_name_ot:r.edt.last_name_ot,family_name_ot:r.edt.family_name_ot,nicke_name:r.edt.nicke_name,birth_date:r.edt.birth_date,comm_date:r.edt.comm_date,birth_country_code:r.edt.birth_country_code,nationality_code:r.edt.nationality_code,ethinicity_code:r.edt.ethinicity_code,gender_code:r.edt.gender_code,religion_code:r.edt.religion_code,passport_num:r.edt.passport_num,passport_issue_date:r.edt.passport_issue_date,passport_expiry:r.edt.passport_expiry,passport_issue_auth:r.edt.passport_issue_auth,passport_issue_place:r.edt.passport_issue_place,visa_number:r.edt.visa_number,visa_type:r.edt.visa_type,visa_issuing_authority:r.edt.visa_issuing_authority,visa_issue_date:r.edt.visa_issue_date,visa_expiry_date:r.edt.visa_expiry_date,visa_issuing_place:r.edt.visa_issuing_place,national_id:r.edt.national_id,national_id_issue_date:r.edt.national_id_issue_date,national_id_expiry_date:r.edt.national_id_expiry_date,sibling_status:r.edt.sibling_status,parent_id:r.edt.parent_id,sibling_enroll:r.edt.sibling_enroll,sibling_name:r.edt.sibling_name,sibling_dob:r.edt.sibling_dob,sibling_school_code:r.edt.sibling_school_code,employee_type:r.edt.employee_type,employee_code:r.edt.employee_code,employee_school_code:r.edt.employee_school_code,motherTounge_language_code:r.edt.motherTounge_language_code,main_language_code:r.edt.main_language_code,main_language_r_code:r.edt.main_language_r_code,main_language_w_code:r.edt.main_language_w_code,main_language_s_code:r.edt.main_language_s_code,primary_contact_code:r.edt.primary_contact_code,primary_contact_pref_code:r.edt.primary_contact_pref_code,fee_payment_contact_pref_code:r.edt.fee_payment_contact_pref_code,transport_statusnew:r.edt.transport_statusnew,transport_desc:r.edt.transport_desc,father_salutation_code:r.edt.father_salutation_code,father_first_name:r.edt.father_first_name,father_middle_name:r.edt.father_middle_name,father_last_name:r.edt.father_last_name,father_family_name:r.edt.father_family_name,father_family_name_ot:r.edt.father_family_name_ot,father_nationality1_code:r.edt.father_nationality1_code,father_nationality2_code:r.edt.father_nationality2_code,father_appartment_number:r.edt.father_appartment_number,father_building_number:r.edt.father_building_number,father_street_number:r.edt.father_street_number,father_area_number:r.edt.father_area_number,father_city:r.edt.father_city,father_state:r.edt.father_state,father_country_code:r.edt.father_country_code,father_summary_address:r.edt.father_summary_address,father_po_box:r.edt.father_po_box,father_phone:r.edt.father_phone,father_email:r.edt.father_email,father_mobile:r.edt.father_mobile,father_fax:r.edt.father_fax,father_occupation:r.edt.father_occupation,father_company:r.edt.father_company,father_company_address:r.edt.father_company_address,father_company_phone:r.edt.father_company_phone,mother_company_address:r.edt.mother_company_address,mother_company_phone:r.edt.mother_company_phone,father_passport_number:r.edt.father_passport_number,sims_admission_father_national_id:r.edt.sims_admission_father_national_id,guardian_salutation_code:r.edt.guardian_salutation_code,guardian_first_name:r.edt.guardian_first_name,guardian_middle_name:r.edt.guardian_middle_name,guardian_last_name:r.edt.guardian_last_name,guardian_family_name:r.edt.guardian_family_name,guardian_nationality1_code:r.edt.guardian_nationality1_code,guardian_nationality2_code:r.edt.guardian_nationality2_code,guardian_appartment_number:r.edt.guardian_appartment_number,guardian_building_number:r.edt.guardian_building_number,guardian_street_number:r.edt.guardian_street_number,guardian_area_number:r.edt.guardian_area_number,guardian_city:r.edt.guardian_city,guardian_state:r.edt.guardian_state,guardian_country_code:r.edt.guardian_country_code,guardian_summary_address:r.edt.guardian_summary_address,guardian_po_box:r.edt.guardian_po_box,guardian_phone:r.edt.guardian_phone,guardian_mobile:r.edt.guardian_mobile,guardian_fax:r.edt.guardian_fax,guardian_email:r.edt.guardian_email,guardian_occupation:r.edt.guardian_occupation,guardian_company:r.edt.guardian_company,guardian_passport_number:r.edt.guardian_passport_number,guardian_relationship_code:r.edt.guardian_relationship_code,mother_salutation_code:r.edt.mother_salutation_code,mother_first_name:r.edt.mother_first_name,mother_middle_name:r.edt.mother_middle_name,mother_last_name:r.edt.mother_last_name,mother_family_name:r.edt.mother_family_name,mother_name_ot:r.edt.mother_name_ot,mother_nationality1_code:r.edt.mother_nationality1_code,mother_nationality2_code:r.edt.mother_nationality2_code,mother_appartment_number:r.edt.mother_appartment_number,mother_building_number:r.edt.mother_building_number,mother_street_number:r.edt.mother_street_number,mother_area_number:r.edt.mother_area_number,mother_city:r.edt.mother_city,mother_state:r.edt.mother_state,mother_country_code:r.edt.mother_country_code,mother_summary_address:r.edt.mother_summary_address,mother_po_box:r.edt.mother_po_box,mother_phone:r.edt.mother_phone,mother_mobile:r.edt.mother_mobile,mother_fax:r.edt.mother_fax,mother_email:r.edt.mother_email,mother_occupation:r.edt.mother_occupation,mother_company:r.edt.mother_company,mother_passport_number:r.edt.mother_passport_number,current_school_status:r.edt.current_school_status,current_school_name:r.edt.current_school_name,current_school_enroll_number:r.edt.current_school_enroll_number,current_school_grade:r.edt.current_school_grade,current_school_cur:r.edt.current_school_cur,current_school_from_date:r.edt.current_school_from_date,current_school_to_date:r.edt.current_school_to_date,current_school_language:r.edt.current_school_language,current_school_head_teacher:r.edt.current_school_head_teacher,current_school_phone:r.edt.current_school_phone,current_school_fax:r.edt.current_school_fax,current_school_city:r.edt.current_school_city,current_school_country_code:r.edt.current_school_country_code,current_school_address:r.edt.current_school_address,marketing_code:r.edt.marketing_code,marketing_description:r.edt.marketing_description,parent_status_code:r.edt.parent_status_code,legal_custody_code:r.edt.legal_custody_code,health_card_number:r.edt.health_card_number,health_card_issue_date:r.edt.health_card_issue_date,health_card_issuing_authority:r.edt.health_card_issuing_authority,blood_group_code:r.edt.blood_group_code,medication_status:r.edt.medication_status,medication_desc:r.edt.medication_desc,disability_status:r.edt.disability_status,disability_desc:r.edt.disability_desc,behaviour_status:r.edt.behaviour_status,behaviour_desc:r.edt.behaviour_desc,health_restriction_status:r.edt.health_restriction_status,health_restriction_desc:r.edt.health_restriction_desc,health_hearing_status:r.edt.health_hearing_status,health_hearing_desc:r.edt.health_hearing_desc,health_vision_status:r.edt.health_vision_status,health_vision_desc:r.edt.health_vision_desc,health_other_status:r.edt.health_other_status,health_other_desc:r.edt.health_other_desc,gifted_status:r.edt.gifted_status,gifted_desc:r.edt.gifted_desc,music_status:r.edt.music_status,music_desc:r.edt.music_desc,sports_status:r.edt.sports_status,sports_desc:r.edt.sports_desc,language_support_status:r.edt.language_support_status,language_support_desc:r.edt.language_support_desc,declaration_status:r.edt.declaration_status,fees_paid_status:r.edt.fees_paid_status,fee_category_code:r.edt.fee_category_code,ip:r.edt.ip,dns:r.edt.dns,user_code:r.edt.user_code,status:r.edt.status,sims_student_attribute1:r.edt.sims_student_attribute1,sims_student_attribute2:r.edt.sims_student_attribute2,sims_student_attribute3:r.edt.sims_student_attribute3,sims_student_attribute4:r.edt.sims_student_attribute4,sims_student_health_respiratory_status:r.edt.sims_student_health_respiratory_status,sims_student_health_respiratory_desc:r.edt.sims_student_health_respiratory_desc,sims_student_health_hay_fever_status:r.edt.sims_student_health_hay_fever_status,sims_student_health_hay_fever_desc:r.edt.sims_student_health_hay_fever_desc,sims_student_health_epilepsy_status:r.edt.sims_student_health_epilepsy_status,sims_student_health_epilepsy_desc:r.edt.sims_student_health_epilepsy_desc,sims_student_health_skin_status:r.edt.sims_student_health_skin_status,sims_student_health_skin_desc:r.edt.sims_student_health_skin_desc,sims_student_health_diabetes_status:r.edt.sims_student_health_diabetes_status,sims_student_health_diabetes_desc:r.edt.sims_student_health_diabetes_desc,sims_student_health_surgery_status:r.edt.sims_student_health_surgery_status,sims_student_health_surgery_desc:r.edt.sims_student_health_surgery_desc,sims_admission_recommendation:r.edt.sims_admission_recommendation,sims_admission_mother_national_id:r.edt.sims_admission_mother_national_id,sims_admission_guardian_national_id:r.edt.sims_admission_guardian_national_id,sims_fee_month_code:r.edt.sims_fee_month_code,sims_student_attribute5:r.edt.sims_student_attribute5,sims_student_attribute6:r.edt.sims_student_attribute6,sims_student_attribute7:r.edt.sims_student_attribute7,sims_student_attribute8:r.edt.sims_student_attribute8,sims_student_attribute9:r.edt.sims_student_attribute9,sims_student_attribute10:r.edt.sims_student_attribute10,sims_student_attribute11:r.edt.sims_student_attribute11,sims_student_attribute12:r.edt.sims_student_attribute12,sims_admission_second_lang_code:r.edt.sims_admission_second_lang_code,sims_admission_third_lang_code:r.edt.sims_admission_third_lang_code,sims_admission_subject_code:r.edt.sims_admission_second_lang_code+","+r.edt.sims_admission_third_lang_code,Sportplayed1:r.edt.Sportplayed1,Sportplayed2:r.edt.Sportplayed2,Sportplayed3:r.edt.Sportplayed3};i.push(e),c.post(_.apiUrl+"api/common/Admission_dpsd/ApproveStudent",i).then(function(e){r.display=!0,r.msg1=e.data,console.log(r.msg1)}),r.grid1=!0,$("#myModal1").modal({backdrop:"static",keyboard:!0})},r.modal_cancel=function(){$("#myModal1").modal("hide"),console.log(t.Class),s(function(){"tiadxb"!=c.defaults.headers.common.schoolId&&"tiashj"!=c.defaults.headers.common.schoolId&&"tosdxb"!=c.defaults.headers.common.schoolId&&c.defaults.headers.common.schoolId,e.go("main.dashL",{Class:t.Class})},300)},r.get_studentfee=function(){e.go("main.Sim043")},r.back=function(){r.dd=!0,window.localStorage.Admflag=r.dd,r.modal_cancel()},r.schoolcheck=function(){1==r.edt.current_school_status?r.school_edit=!1:r.school_edit=!0},r.chk_desc=function(){1==r.edt.marketing_code?r.desc_edit=!1:r.desc_edit=!0},r.chk_cicumstances=function(){1==r.edt.parent_status_code?r.circum_edit=!1:r.circum_edit=!0},r.chk_disab_status=function(){1==r.edt.disability_status?r.disab_edit=!1:r.disab_edit=!0},r.chk_health_res=function(){1==r.edt.health_restriction_status?r.healthres_edit=!1:r.healthres_edit=!0},r.chk_medic_status=function(){1==r.edt.medication_status?r.med_edit=!1:r.med_edit=!0},r.chk_other=function(){1==r.edt.health_other_status?r.other_edit=!1:r.other_edit=!0},r.chk_hearing=function(){1==r.edt.health_hearing_status?r.hearing_edit=!1:r.hearing_edit=!0},r.chk_vision=function(){1==r.edt.health_vision_status?r.health_vision_edit=!1:r.health_vision_edit=!0},r.chk_behaviour=function(){1==r.edt.behaviour_status?r.behaviour_edit=!1:r.behaviour_edit=!0},r.chk_gifted_status=function(){1==r.edt.gifted_status?r.gifted_edit=!1:r.gifted_edit=!0},r.chk_music_pro=function(){1==r.edt.music_status?r.music_edit=!1:r.music_edit=!0},r.chk_sport_pro=function(){1==r.edt.sports_status?r.sport_edit=!1:r.sport_edit=!0},r.chk_lang_sup=function(){1==r.edt.language_support_status?r.lang_sup_edit=!1:r.lang_sup_edit=!0},r.chk_Pri_contact=function(){1==r.edt.primary_contact_code?r.pricont_edit=!1:r.pricont_edit=!0},r.chk_Sibling_attend=function(){1==r.edt.sibling_status?r.disableparent=!1:r.disableparent=!0},r.chk_employee=function(){1==r.edt.sims_empchk?(r.disableemployee=!1,r.edt.sims_empchk):r.disableemployee=!0},r.chk_learn_ther=function(){1==r.edt.sims_admission_learning_therapy_status?r.learnther_edit=!1:r.learnther_edit=!0},r.chk_spec_edu=function(){1==r.edt.sims_admission_special_education_status?(r.spec_edu_edit=!1,r.spec_edu_edit_status="Y"):(r.spec_edu_edit=!0,r.spec_edu_edit_status="N")},r.chk_falled_grade=function(){1==r.edt.sims_admission_falled_grade_status?r.falledgrade_edit=!1:r.falledgrade_edit=!0},r.chk_commun=function(){1==r.edt.sims_admission_communication_status?r.commun_edit=!1:r.commun_edit=!0},r.chk_spec_activies=function(){1==r.edt.sims_admission_specialAct_status?r.specActiv_edit=!1:r.specActiv_edit=!0},r.chk_studyingin=function(){1==r.edt.sibling_status?(r.Study_edit=!1,document.getElementById("t3"),document.getElementById("t4"),document.getElementById("t5"),r.t=!1):(r.Study_edit=!0,document.getElementById("t3"),document.getElementById("t4"),document.getElementById("t5"),r.t=!0)},r.chk_ticking=function(){1==r.edt.declaration_status?(r.tick_edit=!1,r.confirm_edit=!1):(r.tick_edit=!0,r.confirm_edit=!0)},r.chk_copy_mother_add=function(){1==r.edt.copy_add?(r.edt.mother_appartment_number=r.edt.father_appartment_number,r.edt.mother_area_number=r.edt.father_area_number,r.edt.mother_building_number=r.edt.father_building_number,r.edt.mother_street_number=r.edt.father_street_number,r.edt.mother_city=r.edt.father_city,r.edt.mother_state=r.edt.father_state,r.edt.mother_country_code=r.edt.father_country_code,r.edt.mother_po_box=r.edt.father_po_box,r.edt.mother_nationality1_code=r.edt.father_nationality1_code,r.edt.mother_nationality2_code=r.edt.father_nationality2_code,r.edt.mother_summary_address=r.edt.father_summary_address,r.edt.mother_phone=r.edt.father_phone,r.edt.mother_po_box=r.edt.father_po_box,r.edt.mother_mobile=r.edt.father_mobile,r.edt.mother_occupation=r.edt.father_occupation,r.edt.mother_email=r.edt.father_email,r.edt.mother_company=r.edt.father_company):(r.edt.mother_appartment_number="",r.edt.mother_area_number="",r.edt.mother_building_number="",r.edt.mother_street_number="",r.edt.mother_city="",r.edt.mother_state="",r.edt.mother_country_code="",r.edt.mother_po_box="",r.edt.mother_nationality1_code="",r.edt.mother_nationality2_code="",r.edt.mother_summary_address="",r.edt.mother_phone="",r.edt.mother_po_box="",r.edt.mother_mobile="",r.edt.mother_occupation="",r.edt.mother_email="",r.edt.mother_company="")},r.chk_copy_guar_add1=function(){1==r.edt.copy_add1?(r.edt.guardian_appartment_number=r.edt.father_appartment_number,r.edt.guardian_area_number=r.edt.father_area_number,r.edt.guardian_building_number=r.edt.father_building_number,r.edt.guardian_street_number=r.edt.father_street_number,r.edt.guardian_city=r.edt.father_city,r.edt.guardian_state=r.edt.father_state,r.edt.guardian_country_code=r.edt.father_country_code,r.edt.guardian_po_box=r.edt.father_po_box,r.edt.guardian_nationality1_code=r.edt.father_nationality1_code,r.edt.guardian_nationality2_code=r.edt.father_nationality2_code,r.edt.guardian_summary_address=r.edt.father_summary_address,r.edt.guardian_phone=r.edt.father_phone,r.edt.guardian_po_box=r.edt.father_po_box,r.edt.guardian_mobile=r.edt.father_mobile,r.edt.guardian_occupation=r.edt.father_occupation,r.edt.guardian_email=r.edt.father_email,r.edt.guardian_company=r.edt.father_company):(r.edt.guardian_appartment_number="",r.edt.guardian_area_number="",r.edt.guardian_building_number="",r.edt.guardian_street_number="",r.edt.guardian_city="",r.edt.guardian_state="",r.edt.guardian_country_code="",r.edt.guardian_po_box="",r.edt.guardian_nationality1_code="",r.edt.guardian_nationality2_code="",r.edt.guardian_summary_address="",r.edt.guardian_phone="",r.edt.guardian_po_box="",r.edt.guardian_mobile="",r.edt.guardian_occupation="",r.edt.guardian_email="",r.edt.guardian_company="")},r.GetFatherSumAddr=function(){var e=document.getElementById("cmb_father_country").options[document.getElementById("cmb_father_country").selectedIndex].text,t=($("#txt_father_aprt").val().length,$("#txt_father_build").val().length,$("#txt_father_Street").val().length,$("#txt_father_area").val().length),a=$("#txt_father_city").val().length,s=$("#txt_father_state").val().length,o=$("#cmb_father_country").val().length,n=$("#txt_father_pobox").val().length;document.getElementById("txt_father_summary_add").value=0<$("#txt_father_aprt").val().length?document.getElementById("txt_father_aprt").value+",":"",document.getElementById("txt_father_summary_add").value+=0<$("#txt_father_build").val().length?document.getElementById("txt_father_build").value+",":"",document.getElementById("txt_father_summary_add").value+=0<$("#txt_father_Street").val().length?document.getElementById("txt_father_Street").value+",":"",document.getElementById("txt_father_summary_add").value+=0"+e+''+t+""),s.close(),a.focus(),o.detailsField=!1,o.colsvis=!1,o.getsubdetail())})},o.reset_data=function(){try{$("#bell_box").multipleSelect("uncheckAll")}catch(e){}try{$("#teacher_box").multipleSelect("uncheckAll")}catch(e){}o.temp.sims_bell_code="",o.report_data_new=[]},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.TimeTable");e.run(["$rootScope","$templateCache",function(e,t){e.$on("$viewContentLoaded",function(){t.removeAll()})}]),e.controller("NotRegisterNextYrCont",["$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)}),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/commoncircular/GetCircularstatusbyparent").then(function(e){o.status_data=e.data,o.temp.sims_status=o.status_data[0].comn_appl_parameter}),n.get(i.apiUrl+"api/commoncircular/Getgroupcode").then(function(e){o.group_data=e.data,o.temp.user_group_code=o.group_data[0].comn_user_group_code}),o.getDetails=function(){o.report_data_new=[],o.detailsField=!0,n.get(i.apiUrl+"api/FinanceReportRoute/GetNextYearStud?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.detailsField=!1,o.colsvis=!1,o.getsubdetail())})},o.reset_data=function(){try{$("#bell_box").multipleSelect("uncheckAll")}catch(e){}try{$("#teacher_box").multipleSelect("uncheckAll")}catch(e){}o.temp.sims_bell_code="",o.report_data_new=[]},o.ischeck=function(){o.checklick=function(){var e=document.getElementById("expire");!0===e.checked&&e.checked}}}])}(),function(){"use strict";var m;angular.module("sims.module.Student").controller("CreateQuestionBankCont",["$scope","$state","$rootScope","$timeout","gettextCatalog","$http","ENV",function(i,e,d,t,a,r,c){i.div_staff=!1,i.div_parent=!1;i.surveyDetails=[];i.pagesize="10",i.pageindex="0",i.pager=!0,i.edit_code=!1,i.filteredTodos=[],i.currentPage=1,i.numPerPage=10,i.maxSize=10,i.user_group_code=[],i.department_code=[],i.grade_code=[],i.section_code=[];var s=[],o=[],n=[],l=[];$(function(){$("#cmb_grade").multipleSelect({width:"100%",placeholder:"Select Grade"}),$("#cmb_section").multipleSelect({width:"100%",placeholder:"Select Section"}),$("#cmb_dept").multipleSelect({width:"100%",placeholder:"Select Department"}),$("#cmb_group").multipleSelect({width:"100%",placeholder:"Select Group"})}),r.get(c.apiUrl+"api/ERP/SurveyDetails/getSurveyStatus").then(function(e){i.status_data=e.data}),i.edit1=function(e){e.status=!0},i.getSurveyStatusChange=function(e,t){},i.update1=function(e){r.post(c.apiUrl+"api/ERP/SurveyDetails/updateQuestionBankStatus?survey_code="+e.sims_questionbank_code+"&sims_survey_status="+e.sims_survey_status).then(function(e){i.msg1=e.data,i.getgrid()}),e.status=!1},i.cancel1=function(e){e.status=!1},i.New=function(){i.edt="",i.edit_code=!1,i.dis1=!1,i.dis2=!0,i.save1=!0,i.update1=!1,i.delete1=!1,i.edt={};var e=new Date;i.edt.sims_questionbank_start_date=("0"+e.getDate()).slice(-2)+"-"+("0"+(e.getMonth()+1)).slice(-2)+"-"+e.getFullYear(),i.edt.sims_questionbank_end_date=("0"+e.getDate()).slice(-2)+"-"+("0"+(e.getMonth()+1)).slice(-2)+"-"+e.getFullYear(),r.get(c.apiUrl+"api/ERP/SurveyDetails/getAcademicYear").then(function(e){i.acadYr_data=e.data}),r.get(c.apiUrl+"api/ERP/SurveyDetails/getGender").then(function(e){i.gender_data=e.data}),r.get(c.apiUrl+"api/ERP/SurveyDetails/getSurveyType").then(function(e){i.surveyType_data=e.data}),r.get(c.apiUrl+"api/ERP/SurveyDetails/getSurveyGroupType").then(function(e){i.group_data=e.data,setTimeout(function(){$("#cmb_group").change(function(){$(this).val()}).multipleSelect({width:"100%"})},1e3)}),r.get(c.apiUrl+"api/common/getDepartmentName").then(function(e){i.department=e.data,setTimeout(function(){$("#cmb_dept").change(function(){$(this).val()}).multipleSelect({width:"100%"})},1e3)}),i.getGrade=function(e){""==e&&null==e||r.get(c.apiUrl+"api/ERP/SurveyDetails/Get_Grade_CodebyCuriculum?acad_yr="+e).then(function(e){i.grade=e.data,setTimeout(function(){$("#cmb_grade").change(function(){$(this).val()}).multipleSelect({width:"100%"})},1e3)})},i.getSection=function(e,t){""!=e&&""!=t&&r.get(c.apiUrl+"api/ERP/SurveyDetails/Get_Section_CodebyCuriculum?acad_yr="+e+"&grade_code="+t).then(function(e){i.section=e.data,setTimeout(function(){$("#cmb_section").change(function(){$(this).val()}).multipleSelect({multiple:!0,width:"100%"})},1e3)})}},i.getGroupdetails=function(e){for(var t=0;tparseFloat(e.expected_Fee1)))&&(e.expected_Fee=angular.copy(e.expected_Fee1));for(var t=0,a=0;aparseFloat(e.expected_Fee1)))&&(e.expected_Fee=angular.copy(e.expected_Fee1));for(var t=0,a=0;a"+e+''+t+""),s.close(),a.focus(),o.pagination()),o.pagination()})},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}},o.report_show=!0,o.Report=function(){$("#feemodal").modal("show"),o.newDate=moment(o.mom_start_date,"DD-MM-YYYY").format("YYYY-MM-DD"),o.report_show=!1,o.Report_loc="","L"==o.report_status||"PL"==o.report_status?"sisqatar"==n.defaults.headers.common.schoolId?o.Report_loc="Invs.INVR02_SISQ":o.Report_loc="Invs.INVR02rakaag1":"LE"!=o.report_status&&"LX"!=o.report_status||("sisqatar"==n.defaults.headers.common.schoolId?o.Report_loc="Invs.INVR02_SISQ":o.Report_loc="Invs.INVR02rakaag");var e={location:o.Report_loc,parameter:{cur_details:o.reportdataparameter[0].sims_cur_code,acad_year:o.reportdataparameter[0].sims_acad_year,grade_code:o.reportdataparameter[0].sims_grade_code,section_code:o.reportdataparameter[0].sims_section_code,search:o.reportdataparameter[0].sims_enroll_number,date:o.newDate},state:"main.SLFQ55",ready:function(){this.refreshReport()}};window.localStorage.ReportDetails=JSON.stringify(e);try{o.rpt=JSON.parse(window.localStorage.ReportDetails),o.location=o.rpt.location,o.parameter=o.rpt.parameter,o.state=o.rpt.state}catch(e){}var e="SimsReports."+o.location+",SimsReports",t=window.location.href,t=t.substring(0,t.indexOf(":"));t="staging"==n.defaults.headers.common.schoolId||"staging2"==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?"https://reports.leamseducation.com/"+n.defaults.headers.common.schoolId+"/api/reports/":"ihsonline"==n.defaults.headers.common.schoolId||"iisonline"==n.defaults.headers.common.schoolId?"https"==t?"https://"+n.defaults.headers.common.schoolId+".ihsdubai.org/report/api/reports/":"http://"+n.defaults.headers.common.schoolId+".ihsdubai.org/report/api/reports/":"https://rep.mograsys.com/"+n.defaults.headers.common.schoolId+"/api/reports/",o.parameters={},$("#reportViewer1").telerik_ReportViewer({serviceUrl:t,viewMode:telerikReportViewer.ViewModes.INTERACTIVE,scaleMode:telerikReportViewer.ScaleModes.SPECIFIC,scale:1,ready:function(){}}),$("#reportViewer1").data("telerik_ReportViewer").reportSource({report:e,parameters:o.parameter}),setInterval(function(){$("#k-item k-state-default k-state-disabled").css({display:"block"}),$(".trv-report-viewer input[type=number]").css({"min-height":"0px"})},1e3),a(function(){$("#k-item k-state-default k-state-disabled").css({display:"block"}),$(".trv-report-viewer input[type=number]").css({"min-height":"0px"})},100)};o.Issue_buttonDisply=function(e,t){o.filteredTodos_copy[t].att_time==e.att_time&&o.filteredTodos_copy[t].sims_attendance_code==e.sims_attendance_code&&o.filteredTodos_copy[t].sims_slot_code==e.sims_slot_code?o.filteredTodos[t].flag=!0:o.filteredTodos[t].flag=!1},document.onkeydown=function(e){27==(e=e||window.event).keyCode&&$("#feemodal").modal("hide")}}])}(),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 g(d,r,e,c,_){_=_||0;var l=l||angular.element,t=(l(r.currentTarget).addClass("context"),l("
")),m=(s?t=s:s=t,t.addClass("dropdown clearfix tmy"),l('