angular.module("RdmApp").controller("tahunajaranCtrl",["$scope","$rootScope","common","DTOptionsBuilder","DTColumnBuilder","$http","$q","ApiServer","FileUploader",function(a,t,e,n,r,o,l,i){a.savetahunajaran=function(){$.blockUI({}),i.post("proktor/tahunajaran/save",{aktif:t.tahunajaran.aktif},(function(a){$.unblockUI({}),null!==a&&a.success?(t.gettahunajaran(),Swal.fire({type:"success",title:"Berhasil",showConfirmButton:!1,html:"Data Berhasil Disimpan",timer:1e3})):null==a?Swal.fire({type:"error",title:"Gagal",showConfirmButton:!0,html:"Data Gagal Disimpan"}):Swal.fire({type:"error",title:"Gagal",showConfirmButton:!0,html:a.message})}))}}]);