<?php
class AppMahasiswaToSia extends Database {

	protected $mSqlFile= 'module/verifikasi/business/appmahasiswatosia.sql.php';

	function __construct($connectionNumber=1) {
		parent::__construct($connectionNumber);
		#$this->SetDebugOn();
	}
//===GET===
   function GetCekSemesterProdi($arrData){
      $result=$this->Open($this->mSqlQueries['get_cek_semester_prodi'],$arrData);
      return $result[0]['SEMPID'];
   }
   
//===DO===
   function DoInsertJatahSks($arrData)
   {
      $result = $this->Execute($this->mSqlQueries['do_insert_jatah_sks'],($arrData));
      return $result;
   }

   function DoInsertRegistrasi($arrData)
   {
      $result = $this->Execute($this->mSqlQueries['do_insert_registrasi'],($arrData));
      #print($this->GetLastError());  
      return $result;
   }

   function DoAddMahasiswaToSia($arrData)
   {
      $result = $this->Execute($this->mSqlQueries['do_add_mahasiswa_to_sia'],($arrData));
      //print($this->GetLastError());
      return $result;
   }
   
   function DoAddOrangTuaMahasiswaToSia($arrData)
   {
      $result = $this->Execute($this->mSqlQueries['do_add_ortu_mahasiswa_to_sia'],($arrData));
      //print($this->GetLastError());
      return $result;
   }
   
   // insert ke tabel mahasiswa_status_bayar
   function DoInsertStatusBayar($arrData)
   {
      $result = $this->Execute($this->mSqlQueries['do_insert_mahasiswa_status_bayar'],($arrData));
      //print($this->GetLastError());
      return $result;
   }
}
?>
