Commit e9b446a1 by novanbagus

update ambil nilai

parent 565e140b
......@@ -44,6 +44,8 @@ class DaftarSeleksiController extends Controller
/* AJAX request */
public function getData(Request $request){
$noidentitas = $this->rBiodata->noidentitas;
## Read value
$draw = $request->get('draw');
$start = $request->get("start");
......@@ -60,7 +62,7 @@ class DaftarSeleksiController extends Controller
$searchValue = strtoupper($search_arr['value']); // Search value
// Total records
$statementGlobal = " 1=1 AND (NIDN_REVIEWER_ID_1 = '".$this->rBiodata->noidentitas."' OR NIDN_REVIEWER_ID_2 = '".$this->rBiodata->noidentitas."')";
$statementGlobal = " 1=1 AND (NIDN_REVIEWER_ID_1 = '".$noidentitas."' OR NIDN_REVIEWER_ID_2 = '".$noidentitas."')";
$totalRecords = DaftarProposal::select('count(1) as allcount')->whereRaw($statementGlobal)->count();
$statement = " AND (UPPER(JUDUL) LIKE '%".$searchValue."%') ";
......@@ -83,16 +85,18 @@ class DaftarSeleksiController extends Controller
$kode = $record->kode;
$jenis_pkm = $record->jenis_pkm;
$judul = $record->judul;
$nilai_1= $record->nilai_1;
$nilai_2 = $record->nilai_2;
$nilai_1= DB::select("select ambil_jumlah_penilaian_seleksi('".$record->reviewer_proposal_id_1."', '".$record->jenis_id."')")[0]->ambil_jumlah_penilaian_seleksi;
$nilai_2= DB::select("select ambil_jumlah_penilaian_seleksi('".$record->reviewer_proposal_id_2."', '".$record->jenis_id."')")[0]->ambil_jumlah_penilaian_seleksi;
$url = "https://statik.unesa.ac.id/simpkm/proposal/".$record->periode."/".$record->upload_dokumen;
$urut = DB::select("select ambil_data_reviewer_proposal('".$this->rBiodata->noidentitas."', '".$proposal_id."', '1')")[0]->ambil_data_reviewer_proposal;
$urut = DB::select("select ambil_data_reviewer_proposal('".$noidentitas."', '".$proposal_id."', '1')")[0]->ambil_data_reviewer_proposal;
$status_nilai = DB::select("select ambil_data_reviewer_proposal('".$this->rBiodata->noidentitas."', '".$proposal_id."', '2')")[0]->ambil_data_reviewer_proposal;
$status_nilai = DB::select("select ambil_data_reviewer_proposal('".$noidentitas."', '".$proposal_id."', '2')")[0]->ambil_data_reviewer_proposal;
$status_administrasi = DB::select("select ambil_data_reviewer_proposal('".$this->rBiodata->noidentitas."', '".$proposal_id."', '3')")[0]->ambil_data_reviewer_proposal;
$status_administrasi = DB::select("select ambil_data_reviewer_proposal('".$noidentitas."', '".$proposal_id."', '3')")[0]->ambil_data_reviewer_proposal;
$proposal = '<a href="'.$url.'" target="_blank" class="btn btn-primary btn-sm waves-effect waves-light" role="button"><i class="fas fa-search"></i></a>';
if($status_nilai > 0 ||$status_administrasi == '2')
......
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