403Webshell
Server IP : 127.0.0.1  /  Your IP : 192.168.99.1
Web Server : Apache/2.4.35 (Win64) OpenSSL/1.1.1b mod_fcgid/2.3.9
System : Windows NT WIN-JEJMB9EN0L0 10.0 build 14393 (Windows Server 2016) AMD64
User : Administrator ( 0)
PHP Version : 7.4.33
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  D:/wamp/www/sipapbd_2018_perubahan/application/modules/spmveri/controllers/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : D:/wamp/www/sipapbd_2018_perubahan/application/modules/spmveri/controllers/spmveri.php
<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class Spmveri extends Aktivitas_Controller {

  public function __construct()
  {
    parent::__construct();
    $this->modul_name = 'spmveri';
    $this->modul_display = 'Verifikasi SPM';
    $this->view_form = 'spmveri_form';
    $this->view_daftar = 'spmveri_view';
    $this->report_daftar = 'Daftar Verifikasi SPM';
    $this->report_form = 'Form Verifikasi SPM';
    $this->load->model('spmveri_model','data_model');
    $this->load->model('spp/spp_model', 'spp_model');

    $this->message_aktivitas_dihapus = 'Verifikasi SPM telah dibatalkan.';
    $this->message_aktivitas_gagal_dihapus = 'SPM telah dipakai di SP2D, tidak dapat dibatalkan.';
    $this->message_aktivitas_kesalahan_dihapus = 'Proses pembatalan verifikasi SPM tidak berhasil.';
  }

  function validasi()
  {
    $this->form_validation->set_rules('tgl_veri', 'Tanggal Verifikasi', 'required|trim');
    $this->form_validation->set_rules('catatan', 'Catatan', 'required|trim');
    $this->form_validation->set_rules('putusan', 'Keputusan', 'required');

    $this->form_validation->set_message('required', '%s tidak boleh kosong.');
    $this->form_validation->set_message('max_length', '%s tidak boleh melebihi %s karakter.');
  }

  function get_extra_data($id)
  {
    $extra = array();
    $extra['spp_up'] = $this->session->userdata('konf_spp_up');
    $extra['spp_tu'] = $this->session->userdata('konf_spp_tu');
    $extra['spp_up_serap_pagu'] = $this->session->userdata('konf_spp_up_serap_pagu');

    return $extra;
  }

  function extra_message()
  {
    $extra = array();
    $extra['verified'] = $this->data_model->data_verifikasi['VERIFIKASI'];

    return $extra;
  }

  function spd($id=0)
  {
    $result = $this->spp_model->get_spd_by_id($id);

    $response = (object) NULL;
    if ($result){
      for($i = 0; $i < count($result); $i++)
      {
        $response->rows[$i]['id'] = $result[$i]['ID_SPP_PAKAI_SPD'];
        $response->rows[$i]['cell'] = array(
              $result[$i]['ID_SPP_PAKAI_SPD'],
              $result[$i]['ID_AKTIVITAS_SPD'],
              $result[$i]['NOMOR'],
              format_date($result[$i]['TANGGAL']),
              $result[$i]['NOMINAL'],
        );
      }
    }
    echo json_encode($response);
  }

  function kegiatan($id=0)
  {
    $result = $this->spp_model->get_keg_by_id($id);

    $response = (object) NULL;
    if ($result){
      for($i=0; $i<count($result); $i++)
      {
        $response->rows[$i]['id'] = $result[$i]['ID_RINCIAN_SPP'];
        $response->rows[$i]['cell'] = array(
            $result[$i]['ID_RINCIAN_SPP'],
            $result[$i]['ID_KEGIATAN'],
            $result[$i]['KODE_KEGIATAN_SKPD'],
            $result[$i]['NAMA_KEGIATAN'],
            $result[$i]['NOMINAL'],
        );
      }
    }
    echo json_encode($response);
  }

  function rekening($id=0)
  {
    $result = $this->spp_model->get_rek_by_id($id);

    $response = (object) NULL;
    $response->sql = $this->db->queries;
    if ($result){
      for($i = 0; $i < count($result); $i++)
      {
        $response->rows[$i]['id'] = $result[$i]['ID_RINCIAN_SPP'];
        $response->rows[$i]['cell'] = array(
            $result[$i]['ID_RINCIAN_SPP'],
            $result[$i]['ID_REKENING'],
            $result[$i]['ID_KEGIATAN'],
            $result[$i]['KODE_KEGIATAN_SKPD'],
            $result[$i]['KODE_REKENING'],
            $result[$i]['NAMA_REKENING'],
            $result[$i]['NOMINAL']
        );
      }
    }
    echo json_encode($response);
  }

  function potongan($id=0)
  {
    $result = $this->spp_model->get_potongan_by_id($id);

    $response = (object) NULL;
    if ($result){
      for($i=0; $i<count($result); $i++)
      {
        $response->rows[$i]['id'] = $result[$i]['ID_REKENING'];
        $response->rows[$i]['cell'] = array(
              $result[$i]['ID_REKENING'],
              $result[$i]['KODE_REKENING'],
              $result[$i]['NAMA_REKENING'],
              $result[$i]['NOMINAL']
        );
      }
    }
    echo json_encode($response);
  }

  function pajak($id=0)
  {
    $result = $this->spp_model->get_pajak_by_id($id);

    $response = (object) NULL;
    if ($result){
      for($i=0; $i<count($result); $i++)
      {
        $response->rows[$i]['id'] = $result[$i]['ID_PAJAK'];
        $response->rows[$i]['cell']=array(
              $result[$i]['ID_PAJAK'],
              $result[$i]['ID_REKENING'],
              $result[$i]['NAMA_PAJAK'],
              $result[$i]['KODE_REKENING'],
              $result[$i]['NAMA_REKENING'],
              $result[$i]['PERSEN'],
              $result[$i]['NOMINAL'],
              $result[$i]['IS_INFORMASI']
        );
      }
    }
    echo json_encode($response);
  }

  function sumberdana($id=0)
  {
    $result = $this->spp_model->get_sumberdana_by_id($id);

    $response = (object) NULL;
    if ($result){
      for($i=0; $i<count($result); $i++)
      {
        $response->rows[$i]['id'] = $result[$i]['ID_SUMBER_DANA'];
        $response->rows[$i]['cell']=array(
              $result[$i]['ID_SUMBER_DANA'],
              $result[$i]['NAMA_SUMBER_DANA'],
              $result[$i]['KODE_REKENING'],
              $result[$i]['NAMA_REKENING'],
              $result[$i]['NOMINAL'],
        );
      }
    }
    echo json_encode($response);
  }

  public function sisa_kegiatan()
  {
    $idr = $this->input->post('idr') ? $this->input->post('idr') : 0;
    $param = array(
      'id_skpd' => $this->input->post('id_skpd') ? $this->input->post('id_skpd') : 0,
      'beban' => $this->input->post('beban') ? $this->input->post('beban') : '',
      'keperluan' => $this->input->post('keperluan') ? $this->input->post('keperluan') : '',
      'id_kegiatan' => $this->input->post('id_kegiatan') ? $this->input->post('id_kegiatan') : 0,
      'tanggal' => $this->input->post('tanggal') ? $this->input->post('tanggal') : '',
      'id_aktivitas' => $this->input->post('id') ? $this->input->post('id') : 0,
      'arrspd' => $this->input->post('arrspd') ? $this->input->post('arrspd') : ''
    );

    $response = (object) NULL;
    $spd_mode = $this->session->userdata('konf_spd_mode');
    if (($param['keperluan'] === 'GU' || $param['keperluan'] === 'GU NIHIL' || $param['keperluan'] === 'TU NIHIL' ))
    {
      $result = $this->spp_model->get_sisa_kegiatan_gutu($param);
      $response = array(
          'idr' => $idr,
          'sisa' => isset($result['NOMINAL']) ? $result['NOMINAL'] : 0,
          'spp' => isset($result['NOMINAL_SPP']) ? $result['NOMINAL_SPP'] : 0,
          'spj' => isset($result['NOMINAL_SPJ']) ? $result['NOMINAL_SPJ'] : 0
      );
    }
    else
    {
      $result = $this->spp_model->get_sisa_kegiatan($param);
      $response = array(
          'idr' => $idr,
          'sisa' => isset($result['NOMINAL']) ? $result['NOMINAL'] : 0,
          'cp' => isset($result['NOMINAL_CP']) ? $result['NOMINAL_CP'] : 0,
          'ssu' => isset($result['NOMINAL_SSU']) ? $result['NOMINAL_SSU'] : 0,
          'mp' => isset($result['NOMINAL_MP']) ? $result['NOMINAL_MP'] : 0
      );
    }
    echo json_encode($response);
  }

  public function sisa_rekening()
  {
    $idr = $this->input->post('idr') ? $this->input->post('idr') : 0;
    $param = array(
      'id_skpd' => $this->input->post('id_skpd') ? $this->input->post('id_skpd') : 0,
      'beban' => $this->input->post('beban') ? $this->input->post('beban') : '',
      'keperluan' => $this->input->post('keperluan') ? $this->input->post('keperluan') : '',
      'id_kegiatan' => $this->input->post('id_kegiatan') ? $this->input->post('id_kegiatan') : 0,
      'id_rekening' => $this->input->post('id_rekening') ? $this->input->post('id_rekening') : 0,
      'tanggal' => $this->input->post('tanggal') ? $this->input->post('tanggal') : '',
      'id_aktivitas' => $this->input->post('id') ? $this->input->post('id') : 0,
      'arrspd' => $this->input->post('arrspd') ? $this->input->post('arrspd') : '0',
    );

    $response = (object) NULL;
    if ($param['keperluan'] === 'PP')
    {
      $result = $this->spp_model->get_sisa_rekening_sts($param);
      $response = array(
        'idr' => $idr,
        'sisa' => isset($result['NOMINAL']) ? $result['NOMINAL'] : 0
      );
    }
    else if (($param['keperluan'] === 'GU' || $param['keperluan'] === 'GU NIHIL' || $param['keperluan'] === 'TU NIHIL' ))
    {
      $result = $this->spp_model->get_sisa_rekening_gutu($param);
      $response = array(
          'idr' => $idr,
          'sisa' => isset($result['NOMINAL']) ? $result['NOMINAL'] : 0,
          'sp' => isset($result['NOMINAL_SPP']) ? $result['NOMINAL_SPP'] : 0,
          'spj' => isset($result['NOMINAL_SPJ']) ? $result['NOMINAL_SPJ'] : 0
      );
    }
    else
    {
      $result = $this->spp_model->get_sisa_rekening($param);
      $response = array(
          'idr' => $idr,
          'sisa' => isset($result['NOMINAL']) ? $result['NOMINAL'] : 0,
          'cp' => isset($result['NOMINAL_CP']) ? $result['NOMINAL_CP'] : 0,
          'ssu' => isset($result['NOMINAL_SSU']) ? $result['NOMINAL_SSU'] : 0,
          'mp' => isset($result['NOMINAL_MP']) ? $result['NOMINAL_MP'] : 0,
          'sql' => $this->db->queries
      );
    }
    $response['sql'] = $this->db->queries;
    echo json_encode($response);
  }

  public function sisa_skpd()
  {
    $param = array(
      'id_skpd' => $this->input->post('id_skpd') ? $this->input->post('id_skpd') : 0,
      'beban' => $this->input->post('beban') ? $this->input->post('beban') : '',
      'keperluan' => $this->input->post('keperluan') ? $this->input->post('keperluan') : '',
      'tanggal' => $this->input->post('tanggal') ? $this->input->post('tanggal') : '',
      'id' => $this->input->post('id') ? $this->input->post('id') : 0,
      'arrspd' => $this->input->post('arrspd') ? $this->input->post('arrspd') : 0,
    );

    if ($param['keperluan'] === 'PP')
    {
      $sisa = $this->spp_model->get_sisa_sts($param);
      $sisa_gu = 0;
      $label = 'Sisa STS';
    }
    else
    {
      if ($param['keperluan'] === 'UP')
      {
        $sisa = $this->spp_model->get_sisa_skpd($param);
        $label = 'Sisa SPD + CP + SSU';
      }
      else if ($param['keperluan'] === 'GU NIHIL')
      {
        $sisa = 0;
        $label = 'UP yang dinihilkan';
      }
      else if ($param['keperluan'] === 'TU NIHIL')
      {
        $sisa = 0;
        $label = 'TU yang dinihilkan';
      }
      else
      {
        $sisa = $this->spp_model->get_sisa_skpd($param);
        $label = 'Sisa SPD + CP + SSU';
      }
      $sisa_gu = $this->spp_model->get_sisa_spj($param);
    }

    $response = (object) NULL;
    $response = array(
        'lbl_sisa_pagu' => $label,
        'sisa_pagu' => $sisa,
        'sisa_gu' => $sisa_gu,
        'sql' => $this->db->queries,
    );
    echo json_encode($response);
  }

}

Youez - 2016 - github.com/yon3zu
LinuXploit