<?php
/*
Generated by OutputBooks Team
*/

defined("\102\101\123\x45\x50\101\x54\110") or exit("\116\157\x20\x64\x69\x72\145\x63\164\x20\163\143\x72\151\x70\x74\x20\141\x63\x63\145\163\163\x20\x61\x6c\154\157\x77\x65\144");
class Groupreport extends MY_Controller
{
    public function __construct()
    {
        goto mAUUH;
        z_vjt:
        $this->load->model("\x67\162\x6f\165\160\x72\x65\160\157\x72\x74\x4d\x6f\x64\145\154");
        goto iahSi;
        puKIc:
        $this->cId = get_company("\151\144");
        goto z_vjt;
        mAUUH:
        parent::__construct();
        goto puKIc;
        iahSi:
    }
    public function index()
    {
        $this->load->page("\x68\157\155\145");
    }
    public function getcompanieslist()
    {
        goto G7rMK;
        GFrTc:
        return true;
        goto yw0Mb;
        G7rMK:
        $data = $this->request->post();
        goto UTxcE;
        XPBY5:
        $this->response->write();
        goto GFrTc;
        tQ3hl:
        $this->response->set_data("\151\164\x65\155\x73", $result);
        goto XPBY5;
        UTxcE:
        $result = $this->groupreportModel->getcompanies_list($data);
        goto tQ3hl;
        yw0Mb:
    }
    public function getchildcompanies($id = 0)
    {
        goto TfPM1;
        K_QnC:
        $this->response->write();
        goto vxxp5;
        TfPM1:
        $result = $this->groupreportModel->getchild_companies($id);
        goto FBc01;
        FBc01:
        $this->response->set_data("\151\164\x65\x6d\163", $result);
        goto K_QnC;
        vxxp5:
        return true;
        goto n2QvF;
        n2QvF:
    }
    public function getparentlist()
    {
        goto LGVhU;
        hpHIb:
        $this->response->set_data("\x69\164\145\x6d\x73", $result);
        goto hjkZh;
        YyLxQ:
        return true;
        goto ixg1o;
        oBrbt:
        $result = $this->groupreportModel->getparent_list($data);
        goto hpHIb;
        hjkZh:
        $this->response->write();
        goto YyLxQ;
        LGVhU:
        $data = $this->request->post();
        goto oBrbt;
        ixg1o:
    }
    public function save()
    {
        goto B7wmx;
        ksYGN:
        $this->response->success("\x53\x55\x43\103\x45\123\x53\137\x53\101\126\105");
        goto lDpsz;
        JeYxu:
        return true;
        goto xPZS_;
        B7wmx:
        $_POST = $data = $this->request->post();
        goto gLwhF;
        lDpsz:
        $this->response->set_data($res);
        goto BcXq7;
        gLwhF:
        if (!($res = $this->groupreportModel->save($data))) {
            goto Zq4jv;
            IZ21q:
            return false;
            goto BY3Xo;
            mC8iP:
            $this->response->write();
            goto IZ21q;
            Zq4jv:
            $this->response->error($this->groupreportModel->message);
            goto mC8iP;
            BY3Xo:
        }
        goto ksYGN;
        BcXq7:
        $this->response->write();
        goto JeYxu;
        xPZS_:
    }
}
