angular.module("RdmApp").controller("pengaturanCtrl",["$scope","$rootScope","common","DTOptionsBuilder","DTColumnBuilder","$http","$q","ApiServer",function(a,t,e,n,r,i,l,o){a.savetahunajaran=function(){$.blockUI({}),o.post("proktor/pengaturan/save",{tahunajaran_id:t.tahunajaran.aktif,semester_id:t.datasemester.aktif,sistem_penilaian:t.penilaian.system},(function(a){$.unblockUI({}),null!==a&&a.success?(t.getpengaturan(),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})}))}}]);