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 :  /wamp/www/sipkd_2016/application/modules/pilih/controllers/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /wamp/www/sipkd_2016/application/modules/pilih/controllers/pilih_aktivitas.php
<?php

class Pilih_aktivitas extends Pilih_Controller{
  public function __construct()
  {
    parent:: __construct();
    $this->load->model('pilih_aktivitas_model', 'pilih_model');
  }

  function index()
  {
  }

  /*
    Pilih Aktivitas SPP
    Dipakai di : SPM
  */

  var $opt_spp = array(
    'multi' => array('default' =>0),
    'mode' => array('default' =>''),
    'tanggal' => array('default' =>''),
    'diterima' => array('default' => ''),
    'id_skpd' => array('default' => 0),
  );

  function getspp()
  {
    $param = $this->getParam($this->opt_spp);
    $result = $this->pilih_model->getSPP($param);
    $response = (object) NULL;
    if ($result){
      for($i=0; $i<count($result); $i++){
        $response->rows[$i]['id'] = $result[$i]['ID_AKTIVITAS'];
        $response->rows[$i]['cell'] = array(
            $result[$i]['ID_AKTIVITAS'],
            $result[$i]['NOMOR'],
            $result[$i]['TANGGAL'],
            $result[$i]['TANGGAL_VERIFIKASI'],
            $result[$i]['KODE_SKPD_LKP'],
            $result[$i]['NAMA_SKPD'],
            $result[$i]['NAMA_KEGIATAN'],
            $result[$i]['KEPERLUAN'],
            $result[$i]['BEBAN'],
            $result[$i]['NOMINAL'],
        );
      }
    }
    $response->sql = $this->db->queries;
    echo json_encode($response);
  }

  function spp()
  {
    $data['dialogname'] = 'spp';
    $data['colnames'] = array('', 'Nomor', 'Tanggal', 'Tgl Verifikasi', 'Kode SKPD', 'Nama SKPD', 'Nama Kegiatan', 'Keperluan', 'Beban', 'Nominal');
    $data['colmodel'] = array(
      array('name' => 'id', 'hidden' => true),
      array('name' => 'no', 'width' => '150', 'sortable' => true, 'search' => true, 'datatype' => 'string'),
      array('name' => 'tgl', 'width' => '80', 'sortable' => true, 'formatter' => 'date', 'search' => true, 'datatype' => 'date'),
      array('name' => 'tglveri', 'width' => '80', 'sortable' => true, 'formatter' => 'date', 'search' => true, 'datatype' => 'date'),
      array('name' => 'kdskpd', 'width' => '100', 'sortable' => true, 'search' => true, 'datatype' => 'string'),
      array('name' => 'nmskpd', 'width' => '200', 'sortable' => true, 'search' => true, 'datatype' => 'string'),
      array('name' => 'nmkeg', 'width' => '250', 'sortable' => true, 'search' => true, 'datatype' => 'string'),
      array('name' => 'kpl', 'width' => '100', 'sortable' => true, 'search' => true, 'datatype' => 'predefined', 'options' => array('UP' => 'UP', 'GU' => 'GU', 'TU' => 'TU', 'LS' => 'LS', 'PP' => 'PP', 'GU NIHIL' => 'GU Nihil', 'TU NIHIL' => 'TU Nihil') ),
      array('name' => 'bbn', 'width' => '100', 'sortable' => true, 'search' => true, 'datatype' => 'predefined', 'options' => array('-' => 'Tidak ada Beban', 'GJ' => 'Belanja Gaji', 'BTL' => 'Beban Tidak Langsung', 'BL' => 'Beban Langsung', 'KB' => 'Pembiayaan' ) ),
      array('name' => 'nom', 'width' => '150', 'sortable' => true, 'formatter' => 'currency', 'align' => 'right', 'search' => true, 'datatype' => 'numeric'),
    );
    $data['orderby'] = 'no';
    $data['param'] = $this->getParam($this->opt_spp);

    $response = (object) NULL;
    $response->html = $this->load->view('v_pilih', $data, true);
    $response->grid = array(
      'url' => base_url().'pilih/pilih_aktivitas/get'.$data['dialogname'],
      'pager' => '#pgrDialog'.$data['dialogname'],
      'sortname' => $data['orderby'],
      'multiselect' => $data['param']['multi'],
      'colNames' => $data['colnames'],
      'colModel' => $data['colmodel'],
      'postData' => $data['param'],
    );

    echo json_encode($response);
  }

  /*
    Pilih Aktivitas SPM
    Dipakai di : SP2D
  */

  var $opt_spm = array(
    'multi' => array('default' =>0),
    'mode' => array('default' =>''),
    'tanggal' => array('default' =>''),
    'diterima' => array('default' => ''),
    'id_skpd' => array('default' => 0),
  );

  function getspm()
  {
    $param = $this->getParam($this->opt_spm);
    $result = $this->pilih_model->getSPM($param);
    $response = (object) NULL;
    if ($result){
      for($i=0; $i<count($result); $i++){
        $response->rows[$i]['id'] = $result[$i]['ID_AKTIVITAS'];
        $response->rows[$i]['cell'] = array(
            $result[$i]['ID_AKTIVITAS'],
            $result[$i]['NOMOR'],
            $result[$i]['TANGGAL'],
            $result[$i]['TANGGAL_VERIFIKASI'],
            $result[$i]['KODE_SKPD_LKP'],
            $result[$i]['NAMA_SKPD'],
            $result[$i]['NAMA_KEGIATAN'],
            $result[$i]['KEPERLUAN'],
            $result[$i]['BEBAN'],
            $result[$i]['NOMINAL'],
        );
      }
    }
    $response->sql = $this->db->queries;
    echo json_encode($response);
  }

  function spm()
  {
    $data['dialogname'] = 'spm';
    $data['colnames'] = array('', 'Nomor', 'Tanggal', 'Tgl Verifikasi', 'Kode SKPD', 'Nama SKPD', 'Nama Kegiatan', 'Keperluan', 'Beban', 'Nominal');
    $data['colmodel'] = array(
      array('name' => 'id', 'hidden' => true),
      array('name' => 'no', 'width' => '150', 'sortable' => true, 'search' => true, 'datatype' => 'string'),
      array('name' => 'tgl', 'width' => '80', 'sortable' => true, 'formatter' => 'date', 'search' => true, 'datatype' => 'date'),
      array('name' => 'tglveri', 'width' => '80', 'sortable' => true, 'formatter' => 'date', 'search' => true, 'datatype' => 'date'),
      array('name' => 'kdskpd', 'width' => '100', 'sortable' => true, 'search' => true, 'datatype' => 'string'),
      array('name' => 'nmskpd', 'width' => '200', 'sortable' => true, 'search' => true, 'datatype' => 'string'),
      array('name' => 'nmkeg', 'width' => '250', 'sortable' => true, 'search' => true, 'datatype' => 'string'),
      array('name' => 'kpl', 'width' => '100', 'sortable' => true, 'search' => true, 'datatype' => 'predefined', 'options' => array('UP' => 'UP', 'GU' => 'GU', 'TU' => 'TU', 'LS' => 'LS', 'PP' => 'PP', 'GU NIHIL' => 'GU Nihil', 'TU NIHIL' => 'TU Nihil') ),
      array('name' => 'bbn', 'width' => '100', 'sortable' => true, 'search' => true, 'datatype' => 'predefined', 'options' => array('-' => 'Tidak ada Beban', 'GJ' => 'Belanja Gaji', 'BTL' => 'Beban Tidak Langsung', 'BL' => 'Beban Langsung', 'KB' => 'Pembiayaan' ) ),
      array('name' => 'nom', 'width' => '150', 'sortable' => true, 'formatter' => 'currency', 'align' => 'right', 'search' => true, 'datatype' => 'numeric'),
    );
    $data['orderby'] = 'no';
    $data['param'] = $this->getParam($this->opt_spm);

    $response = (object) NULL;
    $response->html = $this->load->view('v_pilih', $data, true);
    $response->grid = array(
      'url' => base_url().'pilih/pilih_aktivitas/get'.$data['dialogname'],
      'pager' => '#pgrDialog'.$data['dialogname'],
      'sortname' => $data['orderby'],
      'multiselect' => $data['param']['multi'],
      'colNames' => $data['colnames'],
      'colModel' => $data['colmodel'],
      'postData' => $data['param'],
    );

    echo json_encode($response);
  }

  /*
    Pilih Aktivitas SP2D
    Dipakai di : Daftar Penguji, BUD
  */

  var $opt_sp2d = array(
    'multi' => array('default' =>0),
    'mode' => array('default' =>''),
    'tanggal' => array('default' =>''),
  );

  function getsp2d()
  {
    $param = $this->getParam($this->opt_sp2d);
    $result = $this->pilih_model->getSP2D($param);
    $response = (object) NULL;
    if ($result){
      for($i=0; $i<count($result); $i++){
        $response->rows[$i]['id'] = $result[$i]['ID_AKTIVITAS'];
        $response->rows[$i]['cell'] = array(
            $result[$i]['ID_AKTIVITAS'],
            $result[$i]['NOMOR'],
            $result[$i]['TANGGAL'],
            $result[$i]['KODE_SKPD_LKP'],
            $result[$i]['NAMA_SKPD'],
            $result[$i]['NAMA_KEGIATAN'],
            $result[$i]['NAMA_PENERIMA'],
            $result[$i]['DESKRIPSI'],
            $result[$i]['NOMINAL'],
            $result[$i]['NOMINAL_KOTOR'],
            $result[$i]['NOMINAL_RINCIAN'],
            $result[$i]['NOMINAL_PFK'],
            $result[$i]['NOMINAL_PFK_INFORMASI'],
            $result[$i]['NOMINAL_PAJAK'],
            $result[$i]['NOMINAL_PAJAK_INFORMASI'],
        );
      }
    }
    $response->sql = $this->db->queries;
    echo json_encode($response);
  }

  function sp2d()
  {
    $data['dialogname'] = 'sp2d';
    $data['colnames'] = array('', 'Nomor', 'Tanggal', '', 'Nama SKPD', 'Nama Kegiatan', '', 'Deskripsi', 'Nominal', '', '', '', '', '', '');
    $data['colmodel'] = array(
      array('name' => 'id', 'hidden' => true),
      array('name' => 'no', 'width' => '150', 'sortable' => true, 'search' => true, 'datatype' => 'string'),
      array('name' => 'tgl', 'width' => '80', 'sortable' => true, 'formatter' => 'date', 'search' => true, 'datatype' => 'date'),
      array('name' => 'kdskpd', 'hidden' => true),
      array('name' => 'nmskpd', 'width' => '200', 'sortable' => true, 'search' => true, 'datatype' => 'string'),
      array('name' => 'nmkeg', 'width' => '250', 'sortable' => true, 'search' => true, 'datatype' => 'string'),
      array('name' => 'penerima', 'hidden' => true),
      array('name' => 'ket', 'width' => '300', 'sortable' => true, 'search' => true, 'datatype' => 'string'),
      array('name' => 'nom', 'width' => '150', 'sortable' => true, 'formatter' => 'currency', 'align' => 'right', 'search' => true, 'datatype' => 'numeric'),
      array('name' => 'brutto', 'hidden' => true),
      array('name' => 'rincian', 'hidden' => true),
      array('name' => 'pfk', 'hidden' => true),
      array('name' => 'pfkinfo', 'hidden' => true),
      array('name' => 'pjk', 'hidden' => true),
      array('name' => 'pjkinfo', 'hidden' => true),
    );
    $data['orderby'] = 'no';
    $data['param'] = $this->getParam($this->opt_sp2d);

    $response = (object) NULL;
    $response->html = $this->load->view('v_pilih', $data, true);
    $response->grid = array(
      'url' => base_url().'pilih/pilih_aktivitas/get'.$data['dialogname'],
      'pager' => '#pgrDialog'.$data['dialogname'],
      'sortname' => $data['orderby'],
      'multiselect' => $data['param']['multi'],
      'colNames' => $data['colnames'],
      'colModel' => $data['colmodel'],
      'postData' => $data['param'],
    );

    echo json_encode($response);
  }

  /*
    Pilih Aktivitas SPJ Administrasi
    Dipakai di : SPJ Fungsional
  */

  var $opt_spj = array(
    'multi' => array('default' =>0),
    'mode' => array('default' =>''),
    'tanggal' => array('default' =>''),
    'id_skpd' => array('default' =>'0'),
    'keperluan' => array('default' =>''),
    'beban' => array('default' =>''),
  );

  function getspj()
  {
    $param = $this->getParam($this->opt_spj);
    $result = $this->pilih_model->getSPJ($param);
    $response = (object) NULL;
    if ($result){
      for($i=0; $i<count($result); $i++){
        $response->rows[$i]['id'] = $result[$i]['ID_AKTIVITAS'];
        $response->rows[$i]['cell'] = array(
            $result[$i]['ID_AKTIVITAS'],
            $result[$i]['NOMOR'],
            $result[$i]['TANGGAL'],
            $result[$i]['KODE_SKPD_LKP'],
            $result[$i]['NAMA_SKPD'],
            $result[$i]['KEPERLUAN'],
            $result[$i]['BEBAN'],
            $result[$i]['DESKRIPSI'],
            $result[$i]['NOMINAL'],
        );
      }
    }
    $response->sql = $this->db->queries;
    echo json_encode($response);
  }

  function spj()
  {
    $data['dialogname'] = 'spj';
    $data['colnames'] = array('', 'Nomor', 'Tanggal', 'Kode SKPD', 'Nama SKPD', 'Keperluan', 'Beban', 'Deskripsi', 'Nominal');
    $data['colmodel'] = array(
      array('name' => 'id', 'hidden' => true),
      array('name' => 'no', 'width' => '150', 'sortable' => true, 'search' => true, 'datatype' => 'string'),
      array('name' => 'tgl', 'width' => '80', 'align' => 'center', 'sortable' => true, 'formatter' => 'date', 'search' => true, 'datatype' => 'date'),
      array('name' => 'kdskpd', 'width' => '80', 'align' => 'center', 'sortable' => true, 'search' => true, 'datatype' => 'string'),
      array('name' => 'nmskpd', 'width' => '250', 'sortable' => true, 'search' => true, 'datatype' => 'string'),
      array('name' => 'kpl', 'width' => '60', 'align' => 'center', 'sortable' => true, 'search' => true, 'datatype' => 'predefined', 'options' => array('UP' => 'UP/GU', 'TU' => 'TU')),
      array('name' => 'bbn', 'width' => '50', 'align' => 'center', 'sortable' => true, 'search' => true, 'datatype' => 'predefined', 'options' => array('-' => 'Tidak ada Beban', 'GJ' => 'Belanja Gaji', 'BTL' => 'Beban Tidak Langsung', 'BL' => 'Beban Langsung', 'KB' => 'Pembiayaan' ) ),
      array('name' => 'ket', 'width' => '300', 'sortable' => true, 'search' => true, 'datatype' => 'string'),
      array('name' => 'nom', 'width' => '150', 'sortable' => true, 'formatter' => 'currency', 'align' => 'right', 'search' => true, 'datatype' => 'numeric'),
    );
    $data['orderby'] = 'no';
    $data['param'] = $this->getParam($this->opt_spj);

    $response = (object) NULL;
    $response->html = $this->load->view('v_pilih', $data, true);
    $response->grid = array(
      'url' => base_url().'pilih/pilih_aktivitas/get'.$data['dialogname'],
      'pager' => '#pgrDialog'.$data['dialogname'],
      'sortname' => $data['orderby'],
      'multiselect' => $data['param']['multi'],
      'colNames' => $data['colnames'],
      'colModel' => $data['colmodel'],
      'postData' => $data['param'],
    );

    echo json_encode($response);
  }

  /*
    Pilih Aktivitas SPFK (Setoran PFK)
    Dipakai di : BUD
  */

  var $opt_spfk = array(
    'multi' => array('default' =>0),
    'mode' => array('default' =>''),
    'tanggal' => array('default' =>''),
  );

  function getspfk()
  {
    $param = $this->getParam($this->opt_spfk);
    $result = $this->pilih_model->getSPFK($param);
    $response = (object) NULL;
    if ($result){
      for($i=0; $i<count($result); $i++){
        $response->rows[$i]['id'] = $result[$i]['ID_AKTIVITAS'];
        $response->rows[$i]['cell'] = array(
            $result[$i]['ID_AKTIVITAS'],
            $result[$i]['NOMOR'],
            $result[$i]['TANGGAL'],
            $result[$i]['DESKRIPSI'],
            $result[$i]['NOMINAL'],
        );
      }
    }
    $response->sql = $this->db->queries;
    echo json_encode($response);
  }

  function spfk()
  {
    $data['dialogname'] = 'spfk';
    $data['colnames'] = array('', 'Nomor', 'Tanggal', 'Deskripsi', 'Nominal');
    $data['colmodel'] = array(
      array('name' => 'id', 'hidden' => true),
      array('name' => 'no', 'width' => '150', 'sortable' => true, 'search' => true, 'datatype' => 'string'),
      array('name' => 'tgl', 'width' => '80', 'sortable' => true, 'formatter' => 'date', 'search' => true, 'datatype' => 'date'),
      array('name' => 'ket', 'width' => '300', 'sortable' => true, 'search' => true, 'datatype' => 'string'),
      array('name' => 'nom', 'width' => '150', 'sortable' => true, 'formatter' => 'currency', 'align' => 'right', 'search' => true, 'datatype' => 'numeric'),
    );
    $data['orderby'] = 'no';
    $data['param'] = $this->getParam($this->opt_spfk);

    $response = (object) NULL;
    $response->html = $this->load->view('v_pilih', $data, true);
    $response->grid = array(
      'url' => base_url().'pilih/pilih_aktivitas/get'.$data['dialogname'],
      'pager' => '#pgrDialog'.$data['dialogname'],
      'sortname' => $data['orderby'],
      'multiselect' => $data['param']['multi'],
      'colNames' => $data['colnames'],
      'colModel' => $data['colmodel'],
      'postData' => $data['param'],
    );

    echo json_encode($response);
  }

  /*
    Pilih Aktivitas SPJK (Setoran Pajak SP2D)
    Dipakai di : BUD
  */

  var $opt_spjk = array(
    'multi' => array('default' =>0),
    'mode' => array('default' =>''),
    'tanggal' => array('default' =>''),
  );

  function getspjk()
  {
    $param = $this->getParam($this->opt_spjk);
    $result = $this->pilih_model->getSPJK($param);
    $response = (object) NULL;
    if ($result){
      for($i=0; $i<count($result); $i++){
        $response->rows[$i]['id'] = $result[$i]['ID_AKTIVITAS'];
        $response->rows[$i]['cell'] = array(
            $result[$i]['ID_AKTIVITAS'],
            $result[$i]['NOMOR'],
            $result[$i]['TANGGAL'],
            $result[$i]['DESKRIPSI'],
            $result[$i]['NOMINAL'],
        );
      }
    }
    $response->sql = $this->db->queries;
    echo json_encode($response);
  }

  function spjk()
  {
    $data['dialogname'] = 'spjk';
    $data['colnames'] = array('', 'Nomor', 'Tanggal', 'Deskripsi', 'Nominal');
    $data['colmodel'] = array(
      array('name' => 'id', 'hidden' => true),
      array('name' => 'no', 'width' => '150', 'sortable' => true, 'search' => true, 'datatype' => 'string'),
      array('name' => 'tgl', 'width' => '80', 'sortable' => true, 'formatter' => 'date', 'search' => true, 'datatype' => 'date'),
      array('name' => 'ket', 'width' => '300', 'sortable' => true, 'search' => true, 'datatype' => 'string'),
      array('name' => 'nom', 'width' => '150', 'sortable' => true, 'formatter' => 'currency', 'align' => 'right', 'search' => true, 'datatype' => 'numeric'),
    );
    $data['orderby'] = 'no';
    $data['param'] = $this->getParam($this->opt_spjk);

    $response = (object) NULL;
    $response->html = $this->load->view('v_pilih', $data, true);
    $response->grid = array(
      'url' => base_url().'pilih/pilih_aktivitas/get'.$data['dialogname'],
      'pager' => '#pgrDialog'.$data['dialogname'],
      'sortname' => $data['orderby'],
      'multiselect' => $data['param']['multi'],
      'colNames' => $data['colnames'],
      'colModel' => $data['colmodel'],
      'postData' => $data['param'],
    );

    echo json_encode($response);
  }

  /*
    Pilih Aktivitas SSU (Setoran Sisa UP)
    Dipakai di : BUD
  */

  var $opt_ssu = array(
    'multi' => array('default' =>0),
    'mode' => array('default' =>''),
    'tanggal' => array('default' =>''),
  );

  function getssu()
  {
    $param = $this->getParam($this->opt_ssu);
    $result = $this->pilih_model->getSSU($param);
    $response = (object) NULL;
    if ($result){
      for($i=0; $i<count($result); $i++){
        $response->rows[$i]['id'] = $result[$i]['ID_AKTIVITAS'];
        $response->rows[$i]['cell'] = array(
            $result[$i]['ID_AKTIVITAS'],
            $result[$i]['NOMOR'],
            $result[$i]['TANGGAL'],
            $result[$i]['DESKRIPSI'],
            $result[$i]['NOMINAL'],
        );
      }
    }
    $response->sql = $this->db->queries;
    echo json_encode($response);
  }

  function ssu()
  {
    $data['dialogname'] = 'ssu';
    $data['colnames'] = array('', 'Nomor', 'Tanggal', 'Deskripsi', 'Nominal');
    $data['colmodel'] = array(
      array('name' => 'id', 'hidden' => true),
      array('name' => 'no', 'width' => '150', 'sortable' => true, 'search' => true, 'datatype' => 'string'),
      array('name' => 'tgl', 'width' => '80', 'sortable' => true, 'formatter' => 'date', 'search' => true, 'datatype' => 'date'),
      array('name' => 'ket', 'width' => '300', 'sortable' => true, 'search' => true, 'datatype' => 'string'),
      array('name' => 'nom', 'width' => '150', 'sortable' => true, 'formatter' => 'currency', 'align' => 'right', 'search' => true, 'datatype' => 'numeric'),
    );
    $data['orderby'] = 'no';
    $data['param'] = $this->getParam($this->opt_ssu);

    $response = (object) NULL;
    $response->html = $this->load->view('v_pilih', $data, true);
    $response->grid = array(
      'url' => base_url().'pilih/pilih_aktivitas/get'.$data['dialogname'],
      'pager' => '#pgrDialog'.$data['dialogname'],
      'sortname' => $data['orderby'],
      'multiselect' => $data['param']['multi'],
      'colNames' => $data['colnames'],
      'colModel' => $data['colmodel'],
      'postData' => $data['param'],
    );

    echo json_encode($response);
  }

  /*
    Pilih Aktivitas STS (Surat Tanda Setoran)
    Dipakai di : BUD
  */

  var $opt_sts = array(
    'multi' => array('default' =>0),
    'mode' => array('default' =>''),
    'tanggal' => array('default' =>''),
  );

  function getsts()
  {
    $param = $this->getParam($this->opt_sts);
    $result = $this->pilih_model->getSTS($param);
    $response = (object) NULL;
    if ($result){
      for($i=0; $i<count($result); $i++){
        $response->rows[$i]['id'] = $result[$i]['ID_AKTIVITAS'];
        $response->rows[$i]['cell'] = array(
            $result[$i]['ID_AKTIVITAS'],
            $result[$i]['NOMOR'],
            $result[$i]['TANGGAL'],
            $result[$i]['DESKRIPSI'],
            $result[$i]['NOMINAL'],
        );
      }
    }
    $response->sql = $this->db->queries;
    echo json_encode($response);
  }

  function sts()
  {
    $data['dialogname'] = 'sts';
    $data['colnames'] = array('', 'Nomor', 'Tanggal', 'Deskripsi', 'Nominal');
    $data['colmodel'] = array(
      array('name' => 'id', 'hidden' => true),
      array('name' => 'no', 'width' => '150', 'sortable' => true, 'search' => true, 'datatype' => 'string'),
      array('name' => 'tgl', 'width' => '80', 'sortable' => true, 'formatter' => 'date', 'search' => true, 'datatype' => 'date'),
      array('name' => 'ket', 'width' => '300', 'sortable' => true, 'search' => true, 'datatype' => 'string'),
      array('name' => 'nom', 'width' => '150', 'sortable' => true, 'formatter' => 'currency', 'align' => 'right', 'search' => true, 'datatype' => 'numeric'),
    );
    $data['orderby'] = 'no';
    $data['param'] = $this->getParam($this->opt_sts);

    $response = (object) NULL;
    $response->html = $this->load->view('v_pilih', $data, true);
    $response->grid = array(
      'url' => base_url().'pilih/pilih_aktivitas/get'.$data['dialogname'],
      'pager' => '#pgrDialog'.$data['dialogname'],
      'sortname' => $data['orderby'],
      'multiselect' => $data['param']['multi'],
      'colNames' => $data['colnames'],
      'colModel' => $data['colmodel'],
      'postData' => $data['param'],
    );

    echo json_encode($response);
  }

  /*
    Pilih Aktivitas CP (Kontra Pos)
    Dipakai di : BUD
  */

  var $opt_cp = array(
    'multi' => array('default' =>0),
    'mode' => array('default' =>''),
    'tanggal' => array('default' =>''),
  );

  function getcp()
  {
    $param = $this->getParam($this->opt_cp);
    $result = $this->pilih_model->getCP($param);
    $response = (object) NULL;
    if ($result){
      for($i=0; $i<count($result); $i++){
        $response->rows[$i]['id'] = $result[$i]['ID_AKTIVITAS'];
        $response->rows[$i]['cell'] = array(
            $result[$i]['ID_AKTIVITAS'],
            $result[$i]['NOMOR'],
            $result[$i]['TANGGAL'],
            $result[$i]['DESKRIPSI'],
            $result[$i]['NOMINAL'],
        );
      }
    }
    $response->sql = $this->db->queries;
    echo json_encode($response);
  }

  function cp()
  {
    $data['dialogname'] = 'cp';
    $data['colnames'] = array('', 'Nomor', 'Tanggal', 'Deskripsi', 'Nominal');
    $data['colmodel'] = array(
      array('name' => 'id', 'hidden' => true),
      array('name' => 'no', 'width' => '150', 'sortable' => true, 'search' => true, 'datatype' => 'string'),
      array('name' => 'tgl', 'width' => '80', 'sortable' => true, 'formatter' => 'date', 'search' => true, 'datatype' => 'date'),
      array('name' => 'ket', 'width' => '300', 'sortable' => true, 'search' => true, 'datatype' => 'string'),
      array('name' => 'nom','width' => '150', 'sortable' => true, 'formatter' => 'currency', 'align' => 'right', 'search' => true, 'datatype' => 'numeric'),
    );
    $data['orderby'] = 'no';
    $data['param'] = $this->getParam($this->opt_cp);

    $response = (object) NULL;
    $response->html = $this->load->view('v_pilih', $data, true);
    $response->grid = array(
      'url' => base_url().'pilih/pilih_aktivitas/get'.$data['dialogname'],
      'pager' => '#pgrDialog'.$data['dialogname'],
      'sortname' => $data['orderby'],
      'multiselect' => $data['param']['multi'],
      'colNames' => $data['colnames'],
      'colModel' => $data['colmodel'],
      'postData' => $data['param'],
    );

    echo json_encode($response);
  }

  /*
    Pilih Aktivitas SPD (Surat Penyediaan Dana)
    Dipakai di : SPP
  */

  var $opt_spd = array(
    'multi' => array('default' =>0),
    'mode' => array('default' =>''),
    'id' => array('default' =>'0'),
    'tanggal' => array('default' =>''),
    'id_skpd' => array('default' =>'0'),
    'beban' => array('default' =>''),
    'keperluan' => array('default' =>''),
  );

  function getspd()
  {
    $param = $this->getParam($this->opt_spd);
    $result = $this->pilih_model->getSPD($param);
    $response = (object) NULL;
    $response->sql = $this->db->queries;
    if ($result){
      for($i=0; $i<count($result); $i++){
        $response->rows[$i]['id'] = $result[$i]['ID_AKTIVITAS'];
        $response->rows[$i]['cell'] = array(
            $result[$i]['ID_AKTIVITAS'],
            $result[$i]['NOMOR'],
            $result[$i]['TANGGAL'],
            $result[$i]['KODE_SKPD_LKP'],
            $result[$i]['NAMA_SKPD'],
            $result[$i]['BEBAN'],
            $result[$i]['DESKRIPSI'],
            $result[$i]['NOMINAL'],
        );
      }
    }
    $response->sql = $this->db->queries;
    echo json_encode($response);
  }

  function spd()
  {
    $data['dialogname'] = 'spd';
    $data['colnames'] = array('', 'Nomor', 'Tanggal', 'Kode SKPD', 'Nama SKPD', 'Beban', 'Deskripsi', 'Nominal');
    $data['colmodel'] = array(
      array('name' => 'id', 'hidden' => true),
      array('name' => 'no', 'width' => '150', 'sortable' => true, 'search' => true, 'datatype' => 'string'),
      array('name' => 'tgl', 'width' => '80', 'sortable' => true, 'formatter' => 'date', 'search' => true, 'datatype' => 'date'),
      array('name' => 'kdskpd', 'width' => '100', 'sortable' => true, 'search' => true, 'datatype' => 'string'),
      array('name' => 'nmskpd', 'width' => '150', 'sortable' => true, 'search' => true, 'datatype' => 'string'),
      array('name' => 'bbn', 'width' => '80', 'sortable' => true, 'align' => 'center', 'search' => true, 'datatype' => 'predefined', 'options' => array( 'BTL' => 'Beban Tidak Langsung', 'BL' => 'Beban Langsung', 'KB' => 'Pembiayaan' )),
      array('name' => 'ket', 'width' => '300', 'sortable' => true, 'search' => true, 'datatype' => 'string'),
      array('name' => 'nom','width' => '150', 'sortable' => true, 'formatter' => 'currency', 'align' => 'right', 'search' => true, 'datatype' => 'numeric'),
    );
    $data['orderby'] = 'no';
    $data['param'] = $this->getParam($this->opt_spd);

    $response = (object) NULL;
    $response->html = $this->load->view('v_pilih', $data, true);
    $response->grid = array(
      'url' => base_url().'pilih/pilih_aktivitas/get'.$data['dialogname'],
      'pager' => '#pgrDialog'.$data['dialogname'],
      'sortname' => $data['orderby'],
      'multiselect' => $data['param']['multi'],
      'colNames' => $data['colnames'],
      'colModel' => $data['colmodel'],
      'postData' => $data['param'],
    );

    echo json_encode($response);
  }


  /*
    Pilih Aktivitas SKPD/SKRD (Surat Ketetapan Pajak/Retribusi Daerah)
    Dipakai di : TBP
  */

  var $opt_skrd = array(
    'multi' => array('default' =>0),
    'tanggal' => array('default' => ''),
    'id_skpd' => array('default' => 0),
  );

  function getskrd()
  {
    $param = $this->getParam($this->opt_skrd);
    $result = $this->pilih_model->getSKRD($param);
    $response = (object) NULL;
    $response->sql = $this->db->queries;
    if ($result){
      for($i=0; $i<count($result); $i++){
        $response->rows[$i]['id'] = $result[$i]['ID_AKTIVITAS'];
        $response->rows[$i]['cell'] = array(
            $result[$i]['ID_AKTIVITAS'],
            $result[$i]['NOMOR'],
            $result[$i]['TANGGAL'],
            $result[$i]['DESKRIPSI'],
            $result[$i]['NPWPD'],
            $result[$i]['NOMINAL'],
        );
      }
    }
    $response->sql = $this->db->queries;
    echo json_encode($response);
  }

  function skrd()
  {
    $data['dialogname'] = 'skrd';
    $data['colnames'] = array('', 'Nomor', 'Tanggal', 'Deskripsi', 'NPWPD', 'Nominal');
    $data['colmodel'] = array(
      array('name' => 'id', 'hidden' => true),
      array('name' => 'no', 'width' => '150', 'sortable' => true, 'search' => true, 'datatype' => 'string'),
      array('name' => 'tgl', 'width' => '80', 'sortable' => true, 'formatter' => 'date', 'search' => true, 'datatype' => 'date'),
      array('name' => 'ket', 'width' => '220', 'sortable' => true, 'search' => true, 'datatype' => 'string'),
      array('name' => 'npwpd', 'width' => '100', 'sortable' => true, 'search' => true, 'datatype' => 'string'),
      array('name' => 'nom','width' => '100', 'sortable' => true, 'formatter' => 'currency', 'align' => 'right', 'search' => true, 'datatype' => 'numeric'),
    );
    $data['orderby'] = 'tgl';
    $data['param'] = $this->getParam($this->opt_skrd);

    $response = (object) NULL;
    $response->html = $this->load->view('v_pilih', $data, true);
    $response->grid = array(
      'url' => base_url().'pilih/pilih_aktivitas/get'.$data['dialogname'],
      'pager' => '#pgrDialog'.$data['dialogname'],
      'sortname' => $data['orderby'],
      'multiselect' => $data['param']['multi'],
      'colNames' => $data['colnames'],
      'colModel' => $data['colmodel'],
      'postData' => $data['param'],
    );

    echo json_encode($response);
  }
}

Youez - 2016 - github.com/yon3zu
LinuXploit