Commit 98b75504 by novanbagus

update const periode_id

parent 2d838e71
...@@ -40,6 +40,9 @@ class DaftarProposalController extends Controller ...@@ -40,6 +40,9 @@ class DaftarProposalController extends Controller
/* AJAX request */ /* AJAX request */
public function getData(Request $request){ public function getData(Request $request){
$periode = Periode::where('status', 1)->first();
$reqPeriodeId = $periode->periode_id;
// parameter // parameter
$jenis= $request->get('jenis'); $jenis= $request->get('jenis');
$status = $request->get('status'); $status = $request->get('status');
...@@ -116,7 +119,7 @@ class DaftarProposalController extends Controller ...@@ -116,7 +119,7 @@ class DaftarProposalController extends Controller
// $delete = "confirmLolos('".Crypt::encrypt($reviewer_id)."')"; // $delete = "confirmLolos('".Crypt::encrypt($reviewer_id)."')";
$reviewer = Reviewer::where('periode_id', DaftarProposalController::periode_id) $reviewer = Reviewer::where('periode_id', $reqPeriodeId)
->where('jenis_monev_id', 'ba11c2b5-d65d-4360-9717-98e4fa9b9188') ->where('jenis_monev_id', 'ba11c2b5-d65d-4360-9717-98e4fa9b9188')
->where("status_hapus", '0') ->where("status_hapus", '0')
->get(); ->get();
......
...@@ -43,6 +43,9 @@ class MonevProposalController extends Controller ...@@ -43,6 +43,9 @@ class MonevProposalController extends Controller
/* AJAX request */ /* AJAX request */
public function getData(Request $request){ public function getData(Request $request){
$periode = Periode::where('status', 1)->first();
$reqPeriodeId = $periode->periode_id;
// parameter // parameter
$jenis= $request->get('jenis'); $jenis= $request->get('jenis');
$status = $request->get('status'); $status = $request->get('status');
...@@ -124,7 +127,7 @@ class MonevProposalController extends Controller ...@@ -124,7 +127,7 @@ class MonevProposalController extends Controller
// $delete = "confirmLolos('".Crypt::encrypt($reviewer_id)."')"; // $delete = "confirmLolos('".Crypt::encrypt($reviewer_id)."')";
$reviewer = Reviewer::where('periode_id', MonevProposalController::periode_id) $reviewer = Reviewer::where('periode_id', $reqPeriodeId)
->where('jenis_monev_id', $jenis_monev_id) ->where('jenis_monev_id', $jenis_monev_id)
->where("status_hapus", '0') ->where("status_hapus", '0')
->get(); ->get();
......
...@@ -42,8 +42,11 @@ class DaftarMonevController extends Controller ...@@ -42,8 +42,11 @@ class DaftarMonevController extends Controller
public function index($id) public function index($id)
{ {
$periode = Periode::where('status', 1)->first();
$reqPeriodeId = $periode->periode_id;
$jenis_monev = JenisMonev::select('nama')->where('jenis_monev_id', Crypt::decrypt($id))->first(); $jenis_monev = JenisMonev::select('nama')->where('jenis_monev_id', Crypt::decrypt($id))->first();
$jadwal = JadwalKegiatan::where('periode_id', DaftarMonevController::periode_id)->where('nama',$jenis_monev->nama)->first(); $jadwal = JadwalKegiatan::where('periode_id', $reqPeriodeId)->where('nama',$jenis_monev->nama)->first();
$data = [ $data = [
'id'=> $id, 'id'=> $id,
'jadwal'=> $jadwal, 'jadwal'=> $jadwal,
...@@ -53,6 +56,7 @@ class DaftarMonevController extends Controller ...@@ -53,6 +56,7 @@ class DaftarMonevController extends Controller
/* AJAX request */ /* AJAX request */
public function getData(Request $request){ public function getData(Request $request){
## Read value ## Read value
$draw = $request->get('draw'); $draw = $request->get('draw');
$start = $request->get("start"); $start = $request->get("start");
......
...@@ -25,7 +25,6 @@ use App\Models\ReviewerProposalDetil; ...@@ -25,7 +25,6 @@ use App\Models\ReviewerProposalDetil;
class DaftarSeleksiController extends Controller class DaftarSeleksiController extends Controller
{ {
private const periode_id = '9857a29d-521f-413a-b811-94cda7b45897';
public function __construct() public function __construct()
{ {
......
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