webmain/main/fwork/fworkAction.php

(开头部分) 10KB

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

<?php
class fworkClassAction extends Action
{
	public $atypess,$modeids;
	
	/**
	*	流程申请获取数组
	*/
	public function getmodearrAjax()
	{
		$rows = m('mode')->getmoderows($this->adminid,'and islu=1');
		$row  = array();
		$viewobj = m('view');
		foreach($rows as $k=>$rs){
			$lx = $rs['type'];
			if(!$viewobj->isadd($rs, $this->adminid))continue;
			if(!isset($row[$lx]))$row[$lx]=array();
			$row[$lx][] = $rs;
		}
		$this->returnjson(array('rows'=>$row));
	}
	
	/**
	*	单据查看获取数组
	*/
	public function getmodesearcharrAjax()
	{
		$rows = m('mode')->getmoderows($this->adminid);
		$row  = array();
		$mid  = '0';
		foreach($rows as $k=>$rs){
			$path = ''.P.'/flow/page/rock_page_'.$rs['num'].'.php';
			if((!file_exists($path) && $rs['isscl']==1) || $rs['isscl']==0)continue;
			$lx = $rs['type'];
			$mid.=','.$rs['id'].'';
			$row[$lx][] = $rs;
		}
		if($mid!='0'){
			$where 	= m('admin')->getjoinstr('syrid', $this->adminid, 1);
			$wrows 	= m('flow_where')->getrows('`setid` in('.$mid.') and `status`=1 and `islb` and `num` is not null and ('.$where.') and `pnum` is null group by `setid`','`setid`,min(sort),`num`');
			$atypea = array();
			foreach($wrows as $k1=>$rs1){
				$nus = $rs1['setid'];
				if(!isset($atypea[$nus]))$atypea[$nus] = $rs1['num'];
			}
			foreach($row as $lx=>$rowaa){
				$nrowa = array();
				foreach($rowaa as $k2=>$rs2){
					$atype 	= $this->rock->arrvalue($atypea, $rs2['id']);
					$row[$lx][$k2]['atype'] = $atype;
					if($atype)$nrowa[] = $row[$lx][$k2];
				}
				$row[$lx] = $nrowa;
			}
		}
		$this->returnjson(array('rows'=>$row));
	}
	
	
	
后面还有 296 行代码,购买后查看完整代码

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

AI 解读 AI

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

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