<?php
/*
Generated by OutputBooks Team
*/

defined("\102\101\123\105\x50\x41\124\x48") or exit("\x4e\157\40\x64\151\x72\145\143\x74\40\x73\143\162\151\x70\164\x20\141\143\143\145\163\163\x20\x61\x6c\154\x6f\x77\145\144");
class Stockvalue extends MY_Controller
{
    public function __construct()
    {
        parent::__construct();
        $this->load->model("\163\x74\x6f\143\153\166\x61\x6c\x75\x65\x4d\x6f\x64\145\x6c");
    }
    public function index()
    {
        $this->load->page("\150\x6f\155\145");
    }
    public function listing()
    {
        goto gkKgR;
        gkKgR:
        $postData = $this->request->post();
        goto IwA9A;
        zmcyb:
        return true;
        goto uH_wT;
        FL3kE:
        if (!empty($stockvalue)) {
            $this->response->set_data("\151\164\145\x6d\163", $stockvalue);
        }
        goto I_m5v;
        d71ed:
        $this->response->success();
        goto FL3kE;
        I_m5v:
        $this->response->write();
        goto zmcyb;
        IwA9A:
        $stockvalue = $this->stockvalueModel->get_list($postData);
        goto d71ed;
        uH_wT:
    }
    public function details($tagId = 0)
    {
        goto GLKf0;
        IQQ0l:
        return true;
        goto l3qf3;
        I_JEO:
        $tagDetails = $this->tagModel->get_details($tagId);
        goto Pa1vz;
        Pa1vz:
        $this->response->success();
        goto s5EZW;
        s5EZW:
        if (!empty($tagDetails)) {
            $this->response->set_data($tagDetails);
        }
        goto Dutek;
        Dutek:
        $this->response->write();
        goto IQQ0l;
        GLKf0:
        if (empty($tagId)) {
            goto dj3f7;
            dj3f7:
            $this->response->error("\124\141\147\40\111\x44\x20\x6d\151\163\163\x69\x6e\x67");
            goto T0lVV;
            kWfan:
            return false;
            goto tDxk6;
            T0lVV:
            $this->response->write();
            goto kWfan;
            tDxk6:
        }
        goto I_JEO;
        l3qf3:
    }
    public function save()
    {
        goto gS6Rq;
        NSgaS:
        if (empty($postData)) {
            goto w38x7;
            w38x7:
            $this->response->error("\x52\145\161\x75\151\x72\x65\144\x20\146\151\145\154\x64\x20\x6d\x69\163\163\151\156\147");
            goto CVys3;
            CVys3:
            $this->response->write();
            goto qZ5Il;
            qZ5Il:
            return false;
            goto VhGsJ;
            VhGsJ:
        }
        goto x4jqe;
        x4jqe:
        if (!($stockId = $this->stockvalueModel->save($postData))) {
            goto opI9I;
            Vxmzb:
            return false;
            goto OQBM3;
            emxPN:
            $this->response->write();
            goto Vxmzb;
            opI9I:
            $this->response->error($this->stockvalueModel->message ? $this->stockvalueModel->message : "\x53\101\x56\x45\x5f\105\x52\122\117\x52");
            goto emxPN;
            OQBM3:
        }
        goto pRUGx;
        pRUGx:
        $this->response->success('');
        goto KU3GY;
        KU3GY:
        $this->response->set_data("\151\x64", $stockId);
        goto a7sac;
        a7sac:
        $this->response->write();
        goto opTEM;
        opTEM:
        return true;
        goto MDHhQ;
        gS6Rq:
        $postData = $this->request->post();
        goto NSgaS;
        MDHhQ:
    }
    public function delete($id = '')
    {
        goto oyK_d;
        ddWIV:
        return true;
        goto KQ9q2;
        gR2PS:
        if ($this->stockvalueModel->delete($id)) {
            $this->response->success("\104\x45\x4c\x45\124\x45\137\x53\125\x43\x43\105\x53\123");
        } else {
            $this->response->error($this->tagModel->message);
        }
        goto YZrEI;
        oyK_d:
        if (empty($id)) {
            goto jScrg;
            nGUkI:
            return false;
            goto oEk6Z;
            QRVD1:
            $this->response->write();
            goto nGUkI;
            jScrg:
            $this->response->error("\111\x44\40\155\x69\163\163\151\156\x67");
            goto QRVD1;
            oEk6Z:
        }
        goto gR2PS;
        YZrEI:
        $this->response->write();
        goto ddWIV;
        KQ9q2:
    }
}
