Last active
December 3, 2017 04:37
-
-
Save virbo/6ee8fe70dd34add8baa9ce7fb57533b9 to your computer and use it in GitHub Desktop.
WSFeeder insert mahasiswa dan riwayat pendidikan
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
public function actionInsert() | |
{ | |
$rec = [ | |
'nama_mahasiswa' => 'Yusuf Ayuba', | |
'jenis_kelamin' => 'L', | |
'tempat_lahir' => 'Tanobonunungan', | |
'tanggal_lahir' => '1980-08-23', | |
'id_agama' => 1, | |
'nik' => '7207022308800001', | |
//'nisn' => 000, | |
//'npwp' => 000,, | |
'kewarganegaraan' => 'ID', | |
'jalan' => 'Jl. G. Lompobatang', | |
//'dusun' => 'sdsd', | |
'rt' => 02, | |
'rw' => 01, | |
'kelurahan' => 'Kelurahan Baru', | |
'kode_pos' => '94711', | |
'id_wilayah' => '180405', | |
//id_jenis_tinggal => , | |
//'id_alat_transportasi' => , | |
//'telepon' => '000', | |
//'handphone' => '000', | |
//'email' => '[email protected]', | |
'penerima_kps' => 0, | |
//'nomor_kps' => '1212', | |
//'nik_ayah' => '232323', | |
//'nama_ayah' => 'nama ayah', | |
//'tanggal_lahir_ayah' => 'yyyy-mm-dd', | |
//'id_pendidikan_ayah' => 1, | |
//'id_pekerjaan_ayah' => 1, | |
//'id_penghasilan_ayah' => 1, | |
// 'nik_ibu' => '72000', | |
'nama_ibu_kandung' => 'Ry Dumbela', | |
//'tanggal_lahir_ibu' => 'yyyy-mm-dd', | |
//'id_pendidikan_ibu' => 1, | |
//'id_pekerjaan_ibu' => 1, | |
//'id_penghasilan_ibu' => 1, | |
//'nama_wali' => 'nama wali', | |
//'tanggal_lahir_wali' => 'yyyy-mm-dd', | |
//'id_pendidikan_wali' => 1, | |
//'id_pekerjaan_wali' => 1, | |
//'id_penghasilan_wali' => 1, | |
'id_kebutuhan_khusus_mahasiswa' => 0, | |
'id_kebutuhan_khusus_ayah' => 0, | |
'id_kebutuhan_khusus_ibu' => 0 | |
]; | |
$result = $this->_get->createBiodata($rec); //insert data ke feeder menggunakan fungsi InsertBiodataMahasiswa | |
echo "<pre>"; | |
print_r($result); | |
echo "</pre>"; | |
} | |
public function actionInsertRiwayat() | |
{ | |
$rec = [ | |
'id_mahasiswa' => 'c4f393f3-48c9-4b27-ac82-7218bf736062', | |
'nim' => '005410079', | |
'id_jenis_daftar' => 1, | |
'id_jalur_daftar' => 5, | |
'id_periode_masuk' => '20171', | |
'tanggal_daftar' => '2017-09-01', | |
'id_perguruan_tinggi' => '3dd4fcd5-69e0-4eca-b381-db314acdff8c', | |
'id_prodi' => '5d11bdfe-6be6-48c0-85fb-5f4440eef5c4', | |
//'sks_diakui' => '', | |
//'id_perguruan_tinggi_asal' => '', | |
//'id_prodi_asal' => '', | |
'id_pembiayaan' => 1 | |
]; | |
$result = $this->_get->createRiwayat($rec); //insert data ke feeder menggunakan fungsi InsertRiwayatPendidikanMahasiswa | |
echo "<pre>"; | |
print_r($result); | |
echo "</pre>"; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment