<?php
class ViewUpdateTransferKeluar extends HtmlResponse {

   function TemplateModule() {
      $this->SetTemplateBasedir(GTFWConfiguration::GetValue('application','docroot').'module/kdp_transfer_keluar/template');
      $this->SetTemplateFile('view_update_transfer_keluar.html');
   }

   function ProcessRequest() {
      #------- inisiasi tanggal --------------#
      $currTime = time();
      $year = date('Y',$currTime);
      $month = date('m',$currTime);
      $date = date('d',$currTime);
      Messenger::Instance()->SendToComponent('tanggal', 'tanggal', 'view', 'html', 'tgl_pembukuan', array($year.'-'.$month.'-'.$date, 1970), Messenger::CurrentRequest);
      Messenger::Instance()->SendToComponent('tanggal', 'tanggal', 'view', 'html', 'tgl_mulai_kontrak', array($year.'-'.$month.'-'.$date, 1970), Messenger::CurrentRequest);
      Messenger::Instance()->SendToComponent('tanggal', 'tanggal', 'view', 'html', 'tgl_akhir_kontrak', array($year.'-'.$month.'-'.$date, 1970), Messenger::CurrentRequest);
      Messenger::Instance()->SendToComponent('tanggal', 'tanggal', 'view', 'html', 'tgl_dasar_keputusan', array($year.'-'.$month.'-'.$date, 1970), Messenger::CurrentRequest);
      #------- END inisiasi tanggal ----------#
   }

   function ParseTemplate($data = NULL) {
   	  $urlAction = Dispatcher::Instance()->GetUrl('kdp_transfer_keluar', 'UpdateTransferKeluar', 'view', 'html');
   	  $urlPopup = Dispatcher::Instance()->GetUrl('kdp_transfer_keluar','PopupKodeKdp','view','html');
   	  $label = 'Transfer Keluar KDP';
   	  $this->mrTemplate->AddVar('content','TITLE', $label);
   	  $this->mrTemplate->AddVar('content','URL_ACTION', $urlAction);
   	  $this->mrTemplate->AddVar('content','URL_POPUP', $urlPopup);
   	  
   }
}
?>
