application/controllers/scm/invOi.php

(开头部分) 51KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

<?php if (!defined('BASEPATH')) exit('No direct script access allowed');

class InvOi extends CI_Controller {

    public function __construct(){
        parent::__construct();
		$this->common_model->checkpurview();
		$this->jxcsys = $this->session->userdata('jxcsys');
    }
	
	public function index() {
	    $type   = $this->input->get('type',TRUE);
	    $action = $this->input->get('action',TRUE);
		switch ($action) {
			case 'initOi':
				$info = array('in'=>15,'out'=>19,'cbtz'=>152);
				$this->common_model->checkpurview($info[$type]);
			    $this->load->view('scm/invOi/initOi-'.$type);	
				break;  
			case 'editOi':
				$info = array('in'=>16,'out'=>20,'cbtz'=>153);
				$this->common_model->checkpurview($info[$type]);
			    $this->load->view('scm/invOi/initOi-'.$type);	
				break;  	
			case 'initOiList':
			    $info = array('in'=>14,'out'=>18,'cbtz'=>151);
				$this->common_model->checkpurview($info[$type]);
			    $this->load->view('scm/invOi/initOiList-'.$type);
				break; 
		}
	}
	
	//其他入库
	public function listIn() {
	    $this->common_model->checkpurview(14);
	    $v = array();
	    $data['status'] = 200;
		$data['msg']    = 'success'; 
		$page = max(intval($this->input->get_post('page',TRUE)),1);
		$rows = max(intval($this->input->get_post('rows',TRUE)),100);
		$matchCon  = str_enhtml($this->input->get_post('matchCon',TRUE));
		$beginDate = str_enhtml($this->input->get_post('beginDate',TRUE));
		$endDate   = str_enhtml($this->input->get_post('endDate',TRUE));
		$transTypeId  = intval($this->input->get_post('transTypeId',TRUE));
		$locationId   = intval($this->input->get_post('locationId',TRUE));
		$where = ' and a.billType="OI"';
		$where .= $matchCon  ? ' and (b.name like "%'.$matchCon.'%" or description like "%'.$matchCon.'%" or billNo like "%'.$matchCon.'%")' : ''; 
		$where .= $beginDate ? ' and a.billDate>="'.$beginDate.'"' : ''; 
		$where .= $endDate ? ' and a.billDate<="'.$endDate.'"' : ''; 
		$where .= $transTypeId>0 ? ' and a.transType='.$transTypeId.'' : ''; 
		if ($locationId>0) {
		    $iid = $this->mysql_model->get_results(INVOICE_INFO,'(locationId='.$locationId.') and billType="OI" group by iid'); 
			if (is_array($a1) && count($a1)>0) {
			    $iid = array_column($iid, 'iid');
			    $iid = join(',',$iid);
			    $where .= ' and a.id in('.$iid.')'; 
			} else {
			    $where .= ' and 1<>1'; 
			}
		}
后面还有 1151 行代码,购买后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明

AI 解读

登录后可用,每次 10 积分,解读结果公开显示在下面。

还没有人解读过这个文件。