public function get_nama_peg()
 {
     $nip = $_POST['nip'];
     $kd_st = $_POST['kd_st'];
     $st_lama = $_POST['st_lama'];
     $is_child = $st_lama != 0;
     if ($is_child) {
         $pb = new Penerima($this->registry);
         $pb->set_nip($nip);
         $pb->set_st($st_lama);
         $data = $pb->get_penerima_by_st_nip($pb);
         $nip = $data->get_kd_pb();
         $nm = $data->get_nama();
         $jk = $data->get_jkel();
         $gol = $data->get_gol();
         $unit = $data->get_unit_asal();
     } else {
         $peg = new Pegawai($this->registry);
         $peg->set_nip($nip);
         $data = $peg->get_peg_by_nip($peg);
         $nip = $peg->get_nip();
         $nm = $data->get_nama();
         $jk = $data->get_jkel();
         $gol = $data->get_golongan();
         $unit = $data->get_unit_asal();
     }
     //        $d_cek = $pb->cek_exist_pb();
     //        $d_cek = $d_cek['cek'];
     $d_cek = 0;
     if (!$is_child) {
         $pb = new Penerima($this->registry);
         $pb->set_nip($nip);
         $d_cek = $pb->is_prn_beasiswa_strata($nip, $kd_st);
     }
     $d_cek = $d_cek > 0 ? 1 : 0;
     $return = json_encode(array('kd_peg' => $nip, 'nama' => $nm, 'jkel' => $jk, 'gol' => Golongan::golongan_int_string($gol), 'unit' => $unit, 'registered' => $d_cek));
     echo $return;
 }