You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
information-system/webht/third_party/vendorPlanSync/controllers/index.php

32 lines
962 B
PHTML

<?php
defined('BASEPATH') OR exit('No direct script access allowed');
class Index extends CI_Controller {
7 years ago
public function __construct(){
parent::__construct();
mb_regex_encoding("UTF-8");
bcscale(4);
$this->load->helper('array');
7 years ago
$this->load->model('BIZ_Orders_model');
$this->load->model('Group_model');
7 years ago
}
public function index()
{
7 years ago
$vendor_plan = $this->Group_model->get_vendor_plan_info(214600, 1343);
return $this->output->set_content_type('application/json')->set_output(json_encode($vendor_plan));
7 years ago
}
public function push($COLI_ID)
{
7 years ago
$orderinfo = $this->BIZ_Orders_model->get_orderinfo_detail($COLI_ID);
7 years ago
if(empty($orderinfo)) {return;}
return $this->output->set_content_type('application/json')->set_output(json_encode($orderinfo));
}
}
/* End of file index.php */
/* Location: ./third_party/vendorPlanSync/controllers/index.php */