!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(_,e,t,a,s,o,n,c,l,i){_.Mcat1=[],_.subj1=[],_.AllTerms=[],_.showAllMaster=!0,_.viewMappedClick=!1,_.showNotSavedConf=!1,_.multi_array=[{}],_.att=[],_.savesubjectList=[],_.busyindicator=!1,_.user=a.globals.currentUser.username,_.prdocdata=[],_.definefreqn=!1,_.freqn=!1,_.catg=!1,_.examcattermmap=!1,_.exammap=!1,_.saveforall=!1,_.saveforschema=!1,_.choiceUpdateBtn=!0,_.choicesaveBtn=!0,_.isDivDisabled=!0,_.buttons1=!0,_.buttons2=!0,_.selectedChoice=!1,_.selectedSubject=!1,_.selectedstream=!1,_.edit=!0,_.delete=!0,_.subjectsE=!0,$(function(){$("#cmb_subject_code").multipleSelect({width:"100%",filter:!0})}),_.firstRowIndex=0;var d;a.globals.currentUser.username,_.getstreams=function(e){c.get(l.apiUrl+"api/CreateChoice/GetStreams?year_code="+e).then(function(e){_.stream_data=e.data})},_.prdocdata=[],_.subjectdata=[],_.prdocdata.push({gldd_include_vat:!1,gldd_doc_amount_debit:0,gldd_doc_amount_credit:0,gldd_doc_vat_amt:0,gldd_ledger_code:"00"}),_.subjectdata.push({subject_name:"",subject_weight:""}),setTimeout(function(){$("#cmb_acct_code10").select2()},500),_.add_Grid=function(e,t,a,s){setTimeout(function(){_.Scroll()},700),_.prdocdata.push({gldd_include_vat:!1,gldd_doc_amount_debit:"",gldd_doc_amount_credit:"",gldd_doc_vat_amt:0,gldd_ledger_code:"00"}),setTimeout(function(){$("#PostDateNew"+(_.prdocdata.length-1)).kendoDatePicker({format:"dd-MM-yyyy"})},500),setTimeout(function(){$("#cmb_acct_code"+(_.prdocdata.length-1)).select2()},500),_.getAccount_Number(_.prdocdata[_.prdocdata.length-1])},_.add_Grid1=function(e,t,a,s){setTimeout(function(){_.Scroll()},700),_.subjectdata.push({subject_name:"",subject_weight:""})},_.Delete_Grid1=function(e,t,a,s){1!=length&&e.splice(a,1)},_.Delete_Grid=function(e,t,a,s){1!=e.length&&(_.totalDebit=parseFloat(parseFloat(_.totalDebit)-parseFloat(s.gldd_doc_amount_debit)).toFixed(_.decimal_dsc),_.totalcredit=parseFloat(parseFloat(_.totalcredit)-parseFloat(s.gldd_doc_amount_credit)).toFixed(_.decimal_dsc),e.splice(a,1))},_.getgrid=function(){c.get(l.apiUrl+"api/CreateChoice/GetAllChoices").then(function(e){_.CreDiv=e.data,_.totalItems=_.CreDiv.length,_.todos=_.CreDiv,_.makeTodos()})},_.getgrid1=function(){c.get(l.apiUrl+"api/CreateChoice/GetAllExams").then(function(e){_.exams=e.data})},_.getgrid1(),_.grtgrid2=function(){c.get(l.apiUrl+"api/CreateChoice/GetAllSubjct").then(function(e){_.subjects=e.data})},_.grtgrid2(),c.post(l.apiUrl+"api/Gradebook/GradeScaleDataOpr?teachercode="+_.user+"&opr=SC").then(function(e){_.All_SCALE_GRADE=e.data}),_.Gender=[],_.Gender=g;c.post(l.apiUrl+"api/GradebookNew/GradeBookNewCommon",{opr:"Y"}).then(function(e){_.AllAssignmentType=e.data.table,_.assign_type=_.AllAssignmentType[0].sims_appl_parameter,_.getTermsmaster(),_.getMasterCategories("test"),_.getMasterAssignments(),_.getattributemaster()}),_.hide_grading_scheme=!1,_.getCurriculum=function(){c.get(l.apiUrl+"api/common/getCuriculum").then(function(e){_.Allcurriculum=e.data,0<_.Allcurriculum.length&&(_.showAll=!1,_.showData=!1,_.attributedisplay=!1,_.cur_code=_.Allcurriculum[0].sims_cur_code,_.getAcademicYear(_.cur_code))})},_.getAcademicYear=function(e){var t={opr:"AK",cur_code:_.cur_code};c.post(l.apiUrl+"api/GradebookNew/GradeBookNewCommon",t).then(function(e){_.AllAcademicYear=e.data.table,0<_.AllAcademicYear.length&&(_.aca_year=_.AllAcademicYear[0].sims_academic_year,_.getData(_.aca_year),_.getMasterAssignments(),_.getattributemaster())})},_.getData=function(e){_.aca_year=e,_.showData=!0,_.attributedisplay=!1,_.exams="",_.subjects="",_.CreDiv="",_.getstreams(e),_.importexistingsubjects(e),_.import(e),_.getConfig(),_.getGradeScalePointForSubject(),_.getTermsmaster(),_.getMasterCategories("test"),_.getMasterAssignments()},_.getConfig=function(){var e={opr:"A",cur_code:_.cur_code,aca_year:_.aca_year};c.post(l.apiUrl+"api/GradebookNew/GradeBookNewCommon",e).then(function(e){_.AllConfigs=e.data.table,0!==_.AllConfigs.length&&(_.sims_report_card_config_code=_.AllConfigs[0].sims_report_card_config_code,_.getsubjectConfigGrade(_.sims_report_card_config_code),_.getConfigTerm())})},_.getConfigTerm=function(){var e={opr:"AL",cur_code:_.cur_code,aca_year:_.aca_year,config_code:_.sims_report_card_config_code};c.post(l.apiUrl+"api/GradebookNew/GradeBookNewCommon",e).then(function(e){_.AllConfigTerm=e.data.table,_.sims_report_card_term_code=_.AllConfigTerm[0].sims_report_card_term_code})},_.getConfigTermSub=function(){for(var e="",t=0;t<_.sims_section_code.length;t++)e=e+_.sims_section_code[t].split("_")[0]+",";for(var a="",t=0;t<_.sims_section_code.length;t++)a=a+_.sims_section_code[t].split("_")[1]+",";var s={opr:"AM",cur_code:_.cur_code,aca_year:_.aca_year,config_code:_.sims_report_card_config_code,term_code:_.sims_report_card_term_code,grade_code:e,section_code:a};c.post(l.apiUrl+"api/GradebookNew/GradeBookNewCommon",s).then(function(e){_.AllConfigTermSub=e.data.table,_.sims_subject_code=_.AllConfigTermSub[0].sims_subject_code,setTimeout(function(){$("#subject_select").change(function(){}).multipleSelect({width:"100%"})},1e3)})},_.getDataByConfig=function(e){$(e.currentTarget).hasClass("div_item")?_.config_code=parseInt($(e.currentTarget).attr("configcode"),10):_.config_code=parseInt($(e.currentTarget).parents(".div_item").attr("configcode"),10),$("#config_div .div_item").removeClass("bg-red").addClass("bg-grey-md"),$(".div_item h6").removeClass("text-white"),($(e.currentTarget).hasClass("div_item")?($(e.currentTarget).addClass("bg-red").removeClass("bg-grey-md"),$(e.currentTarget)):($(e.currentTarget).parents(".div_item").addClass("bg-red").removeClass("bg-grey-md"),$(e.currentTarget).parents(".div_item"))).find("h6").addClass("text-white"),_.getGrade(),_.getTermsmaster(),_.getTerms(),_.getMasterCategories(),_.getMasterAssignments(),_.showAll=!0},_.checkboxClick=function(e){e.stopPropagation()},_.setCatType=function(e){_.showMaxAssign="M"==e,_.cat_type=e},_.getGrade=function(){_.gradeSecArr=[];_.cur_code,_.aca_year,_.config_code;c.post(l.apiUrl+"api/GradebookNew/importSavedConfigSecData?cur_code="+_.cur_code+"&&aca_year="+_.aca_year+"&&config_code="+_.config_code).then(function(e){_.gradeSecArr=e.data,$(_.gradeSecArr).each(function(e,a){a.grade_check="I",$(a.section).each(function(e,t){"A"==t.status&&(a.grade_check="A")})})})},_.getAssignData=function(e){$(e.currentTarget).find("input").is(":checked")&&(_.assigndivshow=!0,$("#category_div").removeClass("b-0"),$("#category_div").removeClass("col-md-6").addClass("col-md-4",{duration:600}))},_.getTerms=function(){var e={opr:"G",cur_code:_.cur_code,aca_year:_.aca_year,config_code:_.config_code};c.post(l.apiUrl+"api/GradebookNew/GradeBookNewCommon",e).then(function(e){_.AllTerms=e.data.table;e={opr:"Q",cur_code:_.cur_code,aca_year:_.aca_year,config_code:_.config_code};c.post(l.apiUrl+"api/GradebookNew/GradeBookNewCommon",e).then(function(e){_.AllCategories=e.data.table;e={opr:"R",cur_code:_.cur_code,aca_year:_.aca_year,config_code:_.config_code};c.post(l.apiUrl+"api/GradebookNew/GradeBookNewCommon",e).then(function(e){_.AllAssignment=e.data.table})})})},_.getTerms_master_term=function(e){e={opr:"AX",cur_code:_.cur_code,aca_year:_.aca_year,config_code:_.config_code,sims_report_card_master_term_code:e};c.post(l.apiUrl+"api/GradebookNew/GradeBookNewCommon",e).then(function(e){_.AllTermsData=e.data.table})},_.getTermsmaster=function(){var e={opr:"AQ",cur_code:_.cur_code,aca_year:_.aca_year,config_code:_.config_code};c.post(l.apiUrl+"api/GradebookNew/GradeBookNewCommon",e).then(function(e){_.AllTermsMaster=e.data.table,void 0!==_.AllTermsMaster&&0!==_.AllTermsMaster.length&&_.getSelectedTermData(_.sims_report_card_term_code_master)})},c.get(l.apiUrl+"api/CreateChoice/Getsubjectcode").then(function(e){_.subject_code=e.data[0].subject_code,_.subj={subject_code:_.subject_code},console.log(_.subj)}),_.existingexam=function(){0==_.existingtable?_.existingtable=!0:_.existingtable=!1},_.existingsubject=function(){0==_.existingStable?_.existingStable=!0:_.existingStable=!1},_.import=function(e){c.get(l.apiUrl+"api/CreateChoice/GetExams?year_code="+e).then(function(e){_.examdata=e.data})},_.import(),_.importexistingsubjects=function(e){c.get(l.apiUrl+"api/CreateChoice/GetExistSubject?year_code="+e).then(function(e){_.existingSubject=e.data,_.existingSubject.push({subject_code:"AG",subject_name:"AGGREGATE"})})},_.importSubject=function(){c.get(l.apiUrl+"api/CreateChoice/GetSubject").then(function(e){_.subjectsdrop=e.data,setTimeout(function(){$("#cmb_subject_code").change(function(){console.log($(this).val())}).multipleSelect({width:"100%"})},1e3)})},_.importSubject(),_.handleChoiceChange=function(e){_.selectedChoice=!0,_.selectedexam=!1,_.edit1=!0,_.delete1=!0,_.edit=!1,_.choice={cho_code:e.cho_code,cho_desc:e.cho_desc,cho_status:e.cho_status,grade_code:e.grade_code,stream_code:e.stream_code,gender:e.gender,gender_min:e.gender_min,gender_max:e.gender_max,sims_remark:e.sims_remark},_.buttons1=!1,_.buttons2=!0,_.getallexams(e)},_.getallexams=function(e){c.get(l.apiUrl+"api/CreateChoice/GetAllExams?cho_code="+e.cho_code+"&stream_code="+e.stream_code).then(function(e){0=parseInt(_.MAXsims_term_display_order)||(_.sims_term_display_order=_.MAXsims_term_display_order)},_.MappedAttributeAssignment=function(){var e={opr:"BL",cur_code:_.cur_code,aca_year:_.aca_year,config_code:_.config_code,term_code:_.ct.split("_")[1],cat_code:_.ct.split("_")[0],assign_number:_.sims_report_card_assign_number_master};c.post(l.apiUrl+"api/GradebookNew/GradeBookNewCommon",e).then(function(e){_.popupattribute=e.data.table;for(var t=0;t<_.popupattribute.length;t++)"true"==_.popupattribute[t].changeStatus?_.popupattribute[t].changeStatus=!0:_.popupattribute[t].changeStatus=!1;$("#AssignmentAttribute").modal({backdrop:"static",keyboard:!0})})},_.preparedDataAttrAssgn=function(e){e.ischange=!0},_.att_change=function(e){e.ischanged=!0},_.SaveAttributeAssignment=function(){for(var e,t=[],a=0;a<_.popupattribute.length;a++)1==_.popupattribute[a].ischanged&&(e={opr:"BM",sims_cur_code:_.cur_code,sims_academic_year:_.aca_year,sims_report_card_config_code:_.config_code,sims_report_card_term_code:_.ct.split("_")[1],sims_gb_cat_code:_.ct.split("_")[0],sims_gb_cat_assign_number:_.sims_report_card_assign_number_master,sims_attribute_code:_.popupattribute[a].sims_attribute_code,sims_report_card_term_status:1==_.popupattribute[a].changeStatus?"Y":"N"},t.push(e));c.post(l.apiUrl+"api/GradebookNew/insertsubjectattributeMapped",t).then(function(e){swal({title:"Alert",text:"Attribute Mapped Successfully.",imageUrl:"assets/img/check.png",width:300,height:200}),$("#AssignmentAttribute").modal("hide")})},_.editChoiceMaster=function(e){_.choicesaveBtn=!0,_.choiceUpdateBtn=!1,_.editchoice=!1,_.newchoice=!0,_.add_or_edit="edit",_.actionForm="term",console.log(_.choice),_.addNewScreenMaster=!0,_.addNewTermMaster=!0,c.get(l.apiUrl+"api/CreateChoice/GetGradeForChoice?cho_code="+_.choice.cho_code).then(function(e){_.grades=e.data});for(var t=[],a=0;a<_.grades.length;a++){var s=_.grades[a].grade_code;t.push(s)}},_.deletechoice=function(e,t){0<$("#term_divMaster").find("input:checked").length?$("#term_divMaster").find("input:checked").each(function(e,t){var t=$(t).parents(".div_item").data("choice"),a=(u=[],{opr:"D",cho_code:t,stream_code:_.stream.stream_code});u.push(a),c.post(l.apiUrl+"api/CreateChoice/CUDChoice",u).then(function(e){e.data?(swal({title:"Alert",text:"Choice Deleted successfully.",imageUrl:"assets/img/check.png",width:300,height:200}),_.getallchoices(a)):swal({title:"Alert",text:"The action can't be completed because the frequency is already mapped in scheme. ",imageUrl:"assets/img/close.png",width:300,height:200}),_.getTerms(),_.getCategories(),_.getMasterCategories(),_.getAssignments(),_.getMasterAssignments()})}):swal({text:"Select one at a time for edit.",imageUrl:"assets/img/close.png",width:320,showCloseButton:!0})},_.saveTermMaster=function(e){var t,a;!e||""===_.term_desc_en&&void 0===_.term_desc_en||(parseInt(_.sims_term_display_order)>=parseInt(_.MAXsims_term_display_order)||(e=_.MAXsims_term_display_order),e=1==_.term_status?"A":"I",1==_.sims_report_card_is_co_scolastic_term?_.sims_report_card_is_co_scolastic_term="A":_.sims_report_card_is_co_scolastic_term="I","edit"==_.add_or_edit&&"term"==_.actionForm?t={sims_cur_code:_.cur_code,sims_academic_year:_.aca_year,sims_report_card_config_code:_.config_code,sims_report_card_term_code:_.termcode_edit,sims_report_card_term_desc:_.term_desc_en,sims_report_card_term_desc_ot:_.term_desc_ot,sims_report_card_term_st_date:_.term_start_date,sims_report_card_term_end_date:_.term_end_date,sims_report_card_term_grade_scale:_.term_grade_scale,sims_report_card_term_status:e,sims_term_display_order:_.sims_term_display_order,sims_report_card_is_co_scolastic:_.sims_report_card_is_co_scolastic_term,sims_report_card_term_type:_.sims_report_card_term_type,sims_term_code:_.sims_term_code,sims_report_card_target_term_code:_.sims_report_card_target_term_code}:"add"==_.add_or_edit&&"term"==_.actionForm&&(t={sims_cur_code:_.cur_code,sims_academic_year:_.aca_year,sims_report_card_config_code:_.config_code,sims_report_card_term_desc:_.term_desc_en,sims_report_card_term_desc_ot:_.term_desc_ot,sims_report_card_term_st_date:_.term_start_date,sims_report_card_term_end_date:_.term_end_date,sims_report_card_term_grade_scale:_.term_grade_scale,sims_report_card_term_status:e,sims_term_display_order:_.sims_term_display_order,sims_report_card_is_co_scolastic:_.sims_report_card_is_co_scolastic_term,sims_report_card_term_type:_.sims_report_card_term_type,sims_term_code:_.sims_term_code,sims_report_card_target_term_code:_.sims_report_card_target_term_code}),void 0!==(a=void 0!==_.AllTermsMaster?_.AllTermsMaster.find(function(e){return e.sims_report_card_term_desc===_.term_desc_en}):a)&&_.term_desc_en_currentValue!==_.term_desc_en?swal({title:"Alert",text:"Term name already exists.",imageUrl:"assets/img/close.png",width:300,height:200}):c.post(l.apiUrl+"api/gradebooknew/terminsertion?ctemp=h",t).then(function(e){"edit"==_.add_or_edit&&"term"==_.actionForm?(_.findIndex(_.termcode_edit,"term"),_.AllTerms[_.termindextoupdate]=e.data):"add"==_.add_or_edit&&"term"==_.actionForm&&_.AllTerms.push(e.data),1==e.data.inserted_flg?("add"==_.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}),_.getTermsmaster(),_.closeAddNewMaster()):swal({title:"Alert",text:"Unable To Create Term. ",imageUrl:"assets/img/close.png",width:300,height:200}),_.closeAddNew()}))},_.showGradesscale=function(){_.addNewGradeScaletrans=!0,_.gradescalebtn=!0,_.GradebookGradingSchemeShow()},_.closeAddNew=function(){_.addNewScreen=!1,_.addNewConfig=!1,_.addNewTerm=!1,_.addNewCat=!1,_.addNewAssign=!1,_.assignConfigShow=!1,_.catConfigShow=!1,_.sims_allow_edit=!1,_.AllMaterCategories=[],_.disalbleselection=!1,_.definefreqn=!1,_.freqn=!1,_.catg=!1,_.examcattermmap=!1,_.exammap=!1,_.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),_.assign_end_date="",$("#assign_end_date").val(""),_.assign_publish_date="",$("#assign_publish_date").val(""),_.term_start_date="",$("#term_start_date").val(""),_.term_end_date="",$("#term_end_date").val("")},_.reset=function(){_.exams="",_.subjects="",_.CreDiv=""},_.closeAddNewMaster=function(){_.subjectdata=[],_.subjectdata.push({subject_name:"",subject_weight:""}),_.prdocdata=[],_.prdocdata.push({gldd_include_vat:!1,gldd_doc_amount_debit:0,gldd_doc_amount_credit:0,gldd_doc_vat_amt:0,gldd_ledger_code:"00"}),_.Mcat1=[],_.subj1=[],_.existingtable=!1,_.existingStable=!1,_.addNewScreenMaster=!1,_.addNewConfigMaster=!1,_.addNewTermMaster=!1,_.addNewCatMaster=!1,_.addNewAssignMaster=!1,_.assignConfigShowMaster=!1,_.catConfigShowMaster=!1,_.sims_allow_edit=!1,_.addNewGradeScaleMaster=!1,_.addNewGradeScaletrans=!1,_.gradescale="",_.addNewAattributeMaster=!1},_.editConfig=function(e){_.add_or_edit="edit",_.actionForm="config",_.addNewScreen=!0,_.addNewConfig=!0,_.config_code_edit=$("#config_div").find(".bg-red").attr("configcode"),_.config_desc=$("#config_div").find(".bg-red").attr("configdesc"),"A"==$("#config_div").find(".bg-red").attr("configstatus")?_.config_status=!0:_.config_status=!1},_.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:_.cur_code,aca_year:_.aca_year,config_code:e,config_status:s};c.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"))})},_.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:_.cur_code,aca_year:_.aca_year,config_code:e},c.post(l.apiUrl+"api/GradebookNew/GradeBookNewCommon",e).then(function(e){$("#config_div").find(".bg-red").remove()})):alert("Select any config")},_.deleteAttribute=function(e){0<$("#Div55").find("input:checked").length?$("#Div55").find("input:checked").each(function(e,t){_.att.sims_attribute_code=$(t).parents(".div_cat_item").data("attrcode");var a={opr:"BF",cur_code:_.cur_code,aca_year:_.aca_year,sims_attribute_code:_.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&&c.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.rc.pageCount3()-5?c.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:c,appl_num:s.edt.appl_num,pros_num:s.edt.pros_num,pros_appl_num:s.edt.pros_appl_num,admission_date:s.edt.admission_date,school_code:s.edt.school_code,curr_code:s.edt.curr_code,academic_year:s.edt.academic_year,grade_code:s.edt.grade_code,section_code:s.edt.section_code,term_code:s.edt.term_code,tent_join_date:s.edt.tent_join_date,sims_student_emergency_contact_number1:s.edt.sims_student_emergency_contact_number1,sims_student_emergency_contact_name1:s.edt.sims_student_emergency_contact_name1,first_name:s.edt.first_name,middle_name:s.edt.middle_name,last_name:s.edt.last_name,family_name:s.edt.family_name,first_name_ot:s.edt.first_name_ot,midd_name_ot:s.edt.midd_name_ot,last_name_ot:s.edt.last_name_ot,family_name_ot:s.edt.family_name_ot,nicke_name:s.edt.nicke_name,birth_date:s.edt.birth_date,comm_date:s.edt.comm_date,birth_country_code:s.edt.birth_country_code,nationality_code:s.edt.nationality_code,ethinicity_code:s.edt.ethinicity_code,gender_code:s.edt.gender_code,religion_code:s.edt.religion_code,passport_num:s.edt.passport_num,passport_issue_date:s.edt.passport_issue_date,passport_expiry:s.edt.passport_expiry,passport_issue_auth:s.edt.passport_issue_auth,passport_issue_place:s.edt.passport_issue_place,visa_number:s.edt.visa_number,visa_type:s.edt.visa_type,visa_issuing_authority:s.edt.visa_issuing_authority,visa_issue_date:s.edt.visa_issue_date,visa_expiry_date:s.edt.visa_expiry_date,visa_issuing_place:s.edt.visa_issuing_place,national_id:s.edt.national_id,national_id_issue_date:s.edt.national_id_issue_date,national_id_expiry_date:s.edt.national_id_expiry_date,sibling_status:s.edt.sibling_status,parent_id:s.edt.parent_id,sibling_enroll:s.edt.sibling_enroll,sibling_name:s.edt.sibling_name,sibling_dob:s.edt.sibling_dob,sibling_school_code:s.edt.sibling_school_code,employee_type:s.edt.employee_type,employee_code:s.edt.employee_code,employee_school_code:s.edt.employee_school_code,motherTounge_language_code:s.edt.motherTounge_language_code,main_language_code:s.edt.main_language_code,main_language_r_code:s.edt.main_language_r_code,main_language_w_code:s.edt.main_language_w_code,main_language_s_code:s.edt.main_language_s_code,primary_contact_code:s.edt.primary_contact_code,primary_contact_pref_code:s.edt.primary_contact_pref_code,fee_payment_contact_pref_code:s.edt.fee_payment_contact_pref_code,transport_status:s.edt.transport_status,transport_desc:s.edt.transport_desc,father_salutation_code:s.edt.father_salutation_code,father_first_name:s.edt.father_first_name,father_middle_name:s.edt.father_middle_name,father_last_name:s.edt.father_last_name,father_family_name:s.edt.father_family_name,father_family_name_ot:s.edt.father_family_name_ot,father_nationality1_code:s.edt.father_nationality1_code,father_nationality2_code:s.edt.father_nationality2_code,father_appartment_number:s.edt.father_appartment_number,father_building_number:s.edt.father_building_number,father_street_number:s.edt.father_street_number,father_area_number:s.edt.father_area_number,father_city:s.edt.father_city,father_state:s.edt.father_state,father_country_code:s.edt.father_country_code,father_summary_address:s.edt.father_summary_address,father_po_box:s.edt.father_po_box,father_phone:s.edt.father_phone,father_email:s.edt.father_email,father_mobile:s.edt.father_mobile,father_fax:s.edt.father_fax,father_occupation:s.edt.father_occupation,father_company:s.edt.father_company,father_passport_number:s.edt.father_passport_number,sims_admission_father_national_id:s.edt.sims_admission_father_national_id,guardian_salutation_code:s.edt.guardian_salutation_code,guardian_first_name:s.edt.guardian_first_name,guardian_middle_name:s.edt.guardian_middle_name,guardian_last_name:s.edt.guardian_last_name,guardian_family_name:s.edt.guardian_family_name,guardian_nationality1_code:s.edt.guardian_nationality1_code,guardian_nationality2_code:s.edt.guardian_nationality2_code,guardian_appartment_number:s.edt.guardian_appartment_number,guardian_building_number:s.edt.guardian_building_number,guardian_street_number:s.edt.guardian_street_number,guardian_area_number:s.edt.guardian_area_number,guardian_city:s.edt.guardian_city,guardian_state:s.edt.guardian_state,guardian_country_code:s.edt.guardian_country_code,guardian_summary_address:s.edt.guardian_summary_address,guardian_po_box:s.edt.guardian_po_box,guardian_phone:s.edt.guardian_phone,guardian_mobile:s.edt.guardian_mobile,guardian_fax:s.edt.guardian_fax,guardian_email:s.edt.guardian_email,guardian_occupation:s.edt.guardian_occupation,guardian_company:s.edt.guardian_company,guardian_passport_number:s.edt.guardian_passport_number,guardian_relationship_code:s.edt.guardian_relationship_code,mother_salutation_code:s.edt.mother_salutation_code,mother_first_name:s.edt.mother_first_name,mother_middle_name:s.edt.mother_middle_name,mother_last_name:s.edt.mother_last_name,mother_family_name:s.edt.mother_family_name,mother_name_ot:s.edt.mother_name_ot,mother_nationality1_code:s.edt.mother_nationality1_code,mother_nationality2_code:s.edt.mother_nationality2_code,mother_appartment_number:s.edt.mother_appartment_number,mother_building_number:s.edt.mother_building_number,mother_street_number:s.edt.mother_street_number,mother_area_number:s.edt.mother_area_number,mother_city:s.edt.mother_city,mother_state:s.edt.mother_state,mother_country_code:s.edt.mother_country_code,mother_summary_address:s.edt.mother_summary_address,mother_po_box:s.edt.mother_po_box,mother_phone:s.edt.mother_phone,mother_mobile:s.edt.mother_mobile,mother_fax:s.edt.mother_fax,mother_email:s.edt.mother_email,mother_occupation:s.edt.mother_occupation,mother_passport_number:s.edt.mother_passport_number,current_school_status:s.edt.current_school_status,current_school_name:s.edt.current_school_name,current_school_enroll_number:s.edt.current_school_enroll_number,current_school_grade:s.edt.current_school_grade,current_school_cur:s.edt.current_school_cur,current_school_from_date:s.edt.current_school_from_date,current_school_to_date:s.edt.current_school_to_date,current_school_language:s.edt.current_school_language,current_school_head_teacher:s.edt.current_school_head_teacher,current_school_phone:s.edt.current_school_phone,current_school_fax:s.edt.current_school_fax,current_school_city:s.edt.current_school_city,current_school_country_code:s.edt.current_school_country_code,current_school_address:s.edt.current_school_address,marketing_code:s.edt.marketing_code,marketing_description:s.edt.marketing_description,parent_status_code:s.edt.parent_status_code,legal_custody_code:s.edt.legal_custody_code,health_card_number:s.edt.health_card_number,health_card_issue_date:s.edt.health_card_issue_date,health_card_issuing_authority:s.edt.health_card_issuing_authority,blood_group_code:s.edt.blood_group_code,medication_status:s.edt.medication_status,medication_desc:s.edt.medication_desc,disability_status:s.edt.disability_status,disability_desc:s.edt.disability_desc,behaviour_status:s.edt.behaviour_status,behaviour_desc:s.edt.behaviour_desc,health_restriction_status:s.edt.health_restriction_status,health_restriction_desc:s.edt.health_restriction_desc,health_hearing_status:s.edt.health_hearing_status,health_hearing_desc:s.edt.health_hearing_desc,health_vision_status:s.edt.health_vision_status,health_vision_desc:s.edt.health_vision_desc,health_other_status:s.edt.health_other_status,health_other_desc:s.edt.health_other_desc,gifted_status:s.edt.gifted_status,gifted_desc:s.edt.gifted_desc,music_status:s.edt.music_status,music_desc:s.edt.music_desc,sports_status:s.edt.sports_status,sports_desc:s.edt.sports_desc,language_support_status:s.edt.language_support_status,language_support_desc:s.edt.language_support_desc,declaration_status:s.edt.declaration_status,fees_paid_status:s.edt.fees_paid_status,fee_category_code:s.edt.fee_category_code,ip:s.edt.ip,dns:s.edt.dns,user_code:o.globals.currentUser.username,status:s.edt.status,sims_student_attribute1:s.edt.sims_student_attribute1,sims_student_attribute2:s.edt.sims_student_attribute2,sims_student_attribute3:s.edt.sims_student_attribute3,sims_student_attribute4:s.edt.sims_student_attribute4,sims_student_health_respiratory_status:s.edt.sims_student_health_respiratory_status,sims_student_health_respiratory_desc:s.edt.sims_student_health_respiratory_desc,sims_student_health_hay_fever_status:s.edt.sims_student_health_hay_fever_status,sims_student_health_hay_fever_desc:s.edt.sims_student_health_hay_fever_desc,sims_student_health_epilepsy_status:s.edt.sims_student_health_epilepsy_status,sims_student_health_epilepsy_desc:s.edt.sims_student_health_epilepsy_desc,sims_student_health_skin_status:s.edt.sims_student_health_skin_status,sims_student_health_skin_desc:s.edt.sims_student_health_skin_desc,sims_student_health_diabetes_status:s.edt.sims_student_health_diabetes_status,sims_student_health_diabetes_desc:s.edt.sims_student_health_diabetes_desc,sims_student_health_surgery_status:s.edt.sims_student_health_surgery_status,sims_student_health_surgery_desc:s.edt.sims_student_health_surgery_desc,sims_admission_recommendation:s.edt.sims_admission_recommendation,sims_admission_mother_national_id:s.edt.sims_admission_mother_national_id,sims_admission_guardian_national_id:s.edt.sims_admission_guardian_national_id,sims_fee_month_code:s.edt.sims_fee_month_code};_.push(e),i.post(r.apiUrl+"api/common/Admission/ApproveStudent",_).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,_=(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=c.map(function(){return $(this).width()}).get(),_.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;oc.pageCount3()-5?c.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),_.post(c.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"!=_.defaults.headers.common.schoolId&&"tiashj"!=_.defaults.headers.common.schoolId&&"tosdxb"!=_.defaults.headers.common.schoolId&&_.defaults.headers.common.schoolId,e.go("main.dashL",{Class:t.Class})},300)},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){c=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('