<?php
include "../../config/config.php";


?>

<?php
	include"$path/meta.php";
	include"$path/header.php";
	include"$path/menu.php";
	

	$MUTASI = new RETRIEVE_MUTASI;

	// pr($_GET);
    $data = $MUTASI->retrieve_detailMutasi($_GET);
    if ($data){
    	$disableButton = false;
    	if ($data[0]['FixMutasi']>0) $disableButton = true;
    }

    // pr($data);	
?>
  <!-- buat alert-->

        <script type="text/javascript">
            <!--
            function sendit(){
                alert("OK");
                document.location="transfer_antar_skpd.php";
            }
<?php

include "../../config/config.php";


// pr($_POST);
	
	$MUTASI = new RETRIEVE_MUTASI;

	if ($_POST['submit']){

		if (count($_POST['aset_id'])>0){

			$data = $MUTASI->hapusUsulanMutasi($_POST);	
		}
		
		redirect("$url_rewrite/module/mutasi/detail_usulan_mutasi.php?id=$_POST[Mutasi_ID]");
	}
	

	// pr($_GET);
    exit;

?>
<?php
include "../../config/config.php";

$MUTASI = new RETRIEVE_MUTASI;

 /*$aset_id=$_POST['mutasi_trans_filt_idaset'];
    $nama_aset=$_POST['mutasi_trans_filt_nmaset'];
    $nomor_kontrak=$_POST['mutasi_trans_filt_nokontrak'];
    $satker=$_POST['skpd_id'];
    $submit=$_POST['transfer'];*/
		// pr($_POST);
		$submit=$_POST['transfer'];
		$data['kd_idaset']= $_POST['mutasi_trans_filt_idaset'];
		$data['kd_namaaset'] = $_POST['mutasi_trans_filt_nmaset'];
		$data['kd_nokontrak'] = $_POST['mutasi_trans_filt_nokontrak'];
		$data['satker'] = $_POST['skpd_id'];
		$data['kd_tahun'] = $_POST['mutasi_trans_filt_thn'];
		$data['kelompok_id'] = $_POST['kelompok_id'];
		$data['lokasi_id'] = $_POST['lokasi_id'];
		$data['paging'] = $_GET['pid'];
		$data['sql'] = " Status_Validasi_Barang=1";
		//$data['sql'] = " StatusMenganggur=0 AND StatusMutasi=0";
		$data['sql_where'] = TRUE;
		$data['modul'] = "";
		// $getFilter = $HELPER_FILTER->filter_module($data);
		// pr($getFilter);
		// exit;
		//echo'ada';
    //open_connection();
        
     if (isset($submit)){
<?php
include "../../config/config.php";


?>

<?php
	include"$path/meta.php";
	include"$path/header.php";
	include"$path/menu.php";
	

	$MUTASI = new RETRIEVE_MUTASI;

	if (isset($_POST)){
		// unset($_SESSION['ses_mutasi_eksekusi']);

		$_POST['Mutasi'] = $MUTASI->getAsetList('MUTASI');
		$_SESSION['ses_mutasi_eksekusi'] = $_POST;
		
	}

	if ($_GET['id']){
		
		$_SESSION['ses_mutasi_eksekusi'] = $_GET;
		
	}

	$dataParam = $_SESSION['ses_mutasi_eksekusi'];
	// pr($_SESSION);
    $data = $MUTASI->retrieve_mutasi_eksekusi($dataParam);
<?php

include "../../config/config.php";


$MUTASI = new RETRIEVE_MUTASI;

   
$satker=$_POST['skpd_id']; 
$nodok=$_POST['mutasi_trans_eks_nodok'];
$tgl=$_POST['mutasi_trans_eks_tglproses'];
$olah_tgl=  format_tanggal_db2($tgl);
$alasan=$_POST['mutasi_trans_eks_alasan'];
$pemakai=$_POST['mutasi_trans_eks_pemakai'];


$UserNm=$_SESSION['ses_uoperatorid'];// usernm akan diganti jika session di implementasikan
$nmaset=$_POST['mutasi_nama_aset'];
$asset_id=Array();
$no_reg=Array();
$nm_barang=Array();

$panjang=intval(count($nmaset));

$mutasi_id=get_auto_increment("Mutasi");

$tanggal = $_POST['mutasi_trans_eks_tglproses'];
if (!$tanggal){
    echo "<script>alert('Tanggal proses tidak boleh kosong'); document.location='$url_rewrite/module/mutasi/transfer_hasil_filter.php?pid=1';</script>";
    exit;
}
<?php

include "../../config/config.php";


$MUTASI = new RETRIEVE_MUTASI;

   
$satker=$_POST['skpd_id']; 
$nodok=$_POST['mutasi_trans_eks_nodok'];
$tgl=$_POST['mutasi_trans_eks_tglproses'];
$olah_tgl=  format_tanggal_db2($tgl);
$alasan=$_POST['mutasi_trans_eks_alasan'];
$pemakai=$_POST['mutasi_trans_eks_pemakai'];


$UserNm=$_SESSION['ses_uoperatorid'];// usernm akan diganti jika session di implementasikan
$nmaset=$_POST['mutasi_nama_aset'];
$asset_id=Array();
$no_reg=Array();
$nm_barang=Array();

$panjang=count($nmaset);


$mutasi_id=get_auto_increment("Mutasi");

// pr($_POST);
if ($_POST['submit']){

    if (isset($_POST['aset_id'])){
<?php
include "../../config/config.php";


?>

<?php
	include"$path/meta.php";
	include"$path/header.php";
	include"$path/menu.php";
	

	$MUTASI = new RETRIEVE_MUTASI;

	// pr($_GET);
    $data = $MUTASI->retrieve_detail_usulan_mutasi($_GET);
    if ($data){
    	$disableButton = false;
    	if ($data[0]['FixMutasi']>0) $disableButton = true;
    }

    // pr($data);	
?>
  <!-- buat alert-->

        <script type="text/javascript">
            
            <!--
            function sendit(){
                alert("OK");
                document.location="transfer_antar_skpd.php";
<?php
include "../../config/config.php";

$MUTASI = new RETRIEVE_MUTASI;

 /*$aset_id=$_POST['mutasi_trans_filt_idaset'];
    $nama_aset=$_POST['mutasi_trans_filt_nmaset'];
    $nomor_kontrak=$_POST['mutasi_trans_filt_nokontrak'];
    $satker=$_POST['skpd_id'];
    $submit=$_POST['transfer'];*/
		// pr($_POST);
		$submit=$_POST['transfer'];
		$data['kd_idaset']= $_POST['mutasi_trans_filt_idaset'];
		$data['kd_namaaset'] = $_POST['mutasi_trans_filt_nmaset'];
		$data['kd_nokontrak'] = $_POST['mutasi_trans_filt_nokontrak'];
		$data['satker'] = $_POST['skpd_id'];
		$data['kd_tahun'] = $_POST['mutasi_trans_filt_thn'];
		$data['kelompok_id'] = $_POST['kelompok_id'];
		$data['lokasi_id'] = $_POST['lokasi_id'];
		$data['paging'] = $_GET['pid'];
		$data['sql'] = " Status_Validasi_Barang=1";
		//$data['sql'] = " StatusMenganggur=0 AND StatusMutasi=0";
		$data['sql_where'] = TRUE;
		$data['modul'] = "";
		// $getFilter = $HELPER_FILTER->filter_module($data);
		// pr($getFilter);
		// exit;
		//echo'ada';
    //open_connection();
        
     if (isset($submit)){
<?php
include "../../config/config.php";

$MUTASI = new RETRIEVE_MUTASI;

 /*$aset_id=$_POST['mutasi_trans_filt_idaset'];
    $nama_aset=$_POST['mutasi_trans_filt_nmaset'];
    $nomor_kontrak=$_POST['mutasi_trans_filt_nokontrak'];
    $satker=$_POST['skpd_id'];
    $submit=$_POST['transfer'];*/
		//pr($_POST);
		$submit=$_POST['transfer'];
		$data['kd_idaset']= $_POST['mutasi_trans_filt_idaset'];
		$data['kd_namaaset'] = $_POST['mutasi_trans_filt_nmaset'];
		$data['kd_nokontrak'] = $_POST['mutasi_trans_filt_nokontrak'];
		$data['satker'] = $_POST['skpd_id'];
		$data['kd_tahun'] = $_POST['mutasi_trans_filt_thn'];
		$data['kelompok_id'] = $_POST['kelompok_id'];
		$data['lokasi_id'] = $_POST['lokasi_id'];
		$data['paging'] = $_GET['pid'];
		$data['sql'] = " Status_Validasi_Barang=1";
		//$data['sql'] = " StatusMenganggur=0 AND StatusMutasi=0";
		$data['sql_where'] = TRUE;
		$data['modul'] = "";
		// $getFilter = $HELPER_FILTER->filter_module($data);
		// pr($getFilter);
		// exit;
		//echo'ada';
    //open_connection();
        
     if (isset($submit)){