<?php
/*
Generated by OutputBooks Team
*/

defined("\102\x41\123\x45\x50\x41\x54\110") or exit("\x4e\x6f\40\144\x69\x72\145\x63\x74\x20\x73\x63\x72\x69\x70\x74\x20\141\x63\143\x65\163\x73\40\141\154\x6c\x6f\x77\145\x64");
class JoborderModel extends MY_Model
{
    private $cId = null;
    function __construct()
    {
        goto JW_eG;
        voPpG:
        $this->bId = get_user_data("\x64\145\x66\x61\165\154\x74\x62\111\144", true);
        goto YsCnd;
        JW_eG:
        parent::__construct();
        goto WGxky;
        WGxky:
        $this->cId = get_company("\x69\x64");
        goto voPpG;
        YsCnd:
    }
    public function get_bomlist($itemId)
    {
        goto Quoa2;
        dLlyJ:
        if (empty($result["\151\164\145\155\163"])) {
            goto VKgD0;
            Jk8Ub:
            $result["\151\x74\145\x6d\x73"] = $this->db->get()->result_array();
            goto Bmqqt;
            VKgD0:
            $this->db->select("\52");
            goto IFxcx;
            IFxcx:
            $this->db->from("\x62\157\155");
            goto BdgFY;
            BdgFY:
            $this->db->where("\x63\x49\144", $this->cId);
            goto Jk8Ub;
            Bmqqt:
        }
        goto E483Y;
        xE5PN:
        $this->db->or_where("\163\145\x72\111\164\145\x6d\x49\144", $itemId);
        goto HIQp3;
        E483Y:
        return $result;
        goto u40qm;
        Q8n0_:
        $this->db->where("\151\x74\145\x6d\111\144", $itemId);
        goto xE5PN;
        HIQp3:
        $result["\x69\x74\x65\155\x73"] = $this->db->get()->result_array();
        goto dLlyJ;
        Quoa2:
        $this->db->select("\x2a");
        goto vNDsI;
        vNDsI:
        $this->db->from("\x62\x6f\155");
        goto lzCw0;
        lzCw0:
        $this->db->where("\x63\x49\144", $this->cId);
        goto Q8n0_;
        u40qm:
    }
}
