angular.module("RdmApp").controller("nilaiCtrl",["$cookies","$scope","$rootScope","$stateParams","common","DTOptionsBuilder","DTColumnBuilder","$http","$q","ApiServer",function(a,i,n,t,l,o,s,e,c,p){i.dtInstance={},n.walasnilai={},n.dataketerampilan=[],n.bobot=[],n.kkmdata=[],i.$on("KelasChange",(function(a,i){i.length>0&&n.getwalasnilai()})),n.locknilai=function(a){""!==n.walas&&($.blockUI({}),p.post("guru/walas/locknilai/"+n.walas,{status:a},(function(a){$.unblockUI({}),n.getwalasnilai()})))},n.getwalasnilai=function(){""!==n.walas&&($.blockUI({}),p.get("guru/walas/datanilai/"+n.walas,(function(a){$.unblockUI({}),n.walasnilai=a.data,n.walaskirim=a.kirim,n.nilailock=a.nilailock})))},n.getwalasnilai(),i.dtOptions=o.newOptions().withOption("stateSave",!0).withOption("searching",!0).withOption("paging",!1).withOption("responsive",!0).withOption("ordering",!1).withOption("processing",!1)}]);