<?php
require_once GTFWConfiguration::GetValue( 'application', 'docroot').'module/pb_pengadaan_barang/response/ProcessPengadaanBarang.proc.class.php';

class DoPengadaanBarangInput extends JsonResponse 
{   
   function ProcessRequest()
   {
      $Obj = new ProcessPengadaanBarang;
		$id = $_GET['id']->Raw();
      if ($id!=''){$urlRedirect = $Obj->Update();}
      else {$urlRedirect = $Obj->Add();}
      
		return array( 'exec' => 'GtfwAjax.replaceContentWithUrl("subcontent-element","'.$urlRedirect.'&ascomponent=1")');  
   }
}
?>