Commit 635b9207 by novanbagus

update periode_id

parent 23ddea9b
...@@ -12,6 +12,7 @@ use Crypt; ...@@ -12,6 +12,7 @@ use Crypt;
use App\Models\User; use App\Models\User;
use GuzzleHttp\Client; use GuzzleHttp\Client;
use App\Models\Periode;
use App\Models\Reviewer; use App\Models\Reviewer;
use App\Traits\LoginTrait; use App\Traits\LoginTrait;
use Illuminate\Http\Request; use Illuminate\Http\Request;
...@@ -107,7 +108,9 @@ class ReviewerController extends Controller ...@@ -107,7 +108,9 @@ class ReviewerController extends Controller
public function store(Request $request) public function store(Request $request)
{ {
$reqPeriodeId = '9857a29d-521f-413a-b811-94cda7b45897'; $periode = Periode::where('status', 1)->first();
$reqPeriodeId = $periode->periode_id;
$reqJenisMonevId = 'ba11c2b5-d65d-4360-9717-98e4fa9b9188'; $reqJenisMonevId = 'ba11c2b5-d65d-4360-9717-98e4fa9b9188';
$result = $this->login_reviewer($request->input('nidn')); $result = $this->login_reviewer($request->input('nidn'));
......
...@@ -114,7 +114,9 @@ class ReviewerMonevController extends Controller ...@@ -114,7 +114,9 @@ class ReviewerMonevController extends Controller
public function store(Request $request) public function store(Request $request)
{ {
$reqPeriodeId = '9857a29d-521f-413a-b811-94cda7b45897'; $periode = Periode::where('status', 1)->first();
$reqPeriodeId = $periode->periode_id;
$reqJenisMonevId = Crypt::decrypt($request->input('jenis_monev_id')); $reqJenisMonevId = Crypt::decrypt($request->input('jenis_monev_id'));
$result = $this->login_reviewer($request->input('nidn')); $result = $this->login_reviewer($request->input('nidn'));
......
...@@ -236,6 +236,7 @@ class DaftarSeleksiController extends Controller ...@@ -236,6 +236,7 @@ class DaftarSeleksiController extends Controller
{ {
try { try {
$urut = DB::select("select ambil_data_reviewer_proposal('".$this->rBiodata->noidentitas."', '".decrypt($id)."', '1')")[0]->ambil_data_reviewer_proposal; $urut = DB::select("select ambil_data_reviewer_proposal('".$this->rBiodata->noidentitas."', '".decrypt($id)."', '1')")[0]->ambil_data_reviewer_proposal;
dd(decrypt($id));
$delete = ReviewerProposal::where('proposal_id', Crypt::decrypt($id))->where('urut', $urut)->update(['status_administrasi'=>$status]); $delete = ReviewerProposal::where('proposal_id', Crypt::decrypt($id))->where('urut', $urut)->update(['status_administrasi'=>$status]);
......
...@@ -122,7 +122,7 @@ ...@@ -122,7 +122,7 @@
}) })
.done(function(response){ .done(function(response){
swal.fire('Updated!', response.message, response.status).then(function(){ swal.fire('Updated!', response.message, response.status).then(function(){
location.reload(); // location.reload();
}); });
}) })
.fail(function(){ .fail(function(){
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment