webmain/model/flow/hrsalaryModel.php

(开头部分) 10KB

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

<?php
class flow_hrsalaryClassModel extends flowModel
{
	protected $flowviewufieds	= 'xuid';
	
	public $floweditother	= true; //可编辑uid别人的单据
	
	//薪资是个严格的模块,只能设置权限后才可以查看,不管是不是管理员
	protected function flowbillwhere($uid, $lx)
	{
		$key  	= $this->rock->post('key');
		$dt  	= $this->rock->post('dt');
		$ispay  = $this->rock->post('ispay');
		$isturn  = $this->rock->post('isturn');
		$where 	= '';
		$where 	= $this->viewmodel->viewwhere($this->moders, $this->adminid, $this->flowviewufieds, 1);
		if($lx=='faf'){
			$where.=' and a.`status`=1';
		}
		if($ispay!='')$where.=' and a.`ispay`='.$ispay.'';
		if($isturn!='')$where.=' and a.`isturn`='.$isturn.'';
		
		//自己部门下的
		if($lx=='dept'){
			$uidall = $this->adminmodel->getdown($uid);
			if(isempt($uidall))$uidall='0';
			$where.=' and a.`xuid` in('.$uidall.')';
		}
	//echo $where;
		
		//if($key!='')$where.=" and (c.deptallname like '%$key%' or a.uname like '%$key%' or a.ranking like '%$key%' )";
		if($dt!='')$where.=" and a.`month`='$dt'";
		return array(
			'where' => $where,
			'orlikefields' => 'c.`deptallname`,a.`uname`,a.`ranking`',
			'tableleft' => '`[Q]userinfo` c on a.`xuid`=c.`id`',
			'fieldsleft'=> 'c.`num`,c.deptallname,c.`bankname`,c.`banknum`',
			'order' 	=> 'a.`month` desc,a.`id` asc',
		);
	}
	
	public function flowrsreplace($rs, $lx=0){
		if(isset($rs['ispay'])){
			$s = '<font color=red>待发放</font>';
			$rs['ispays']	= $rs['ispay'];
			if($rs['ispay']==1)$s = '<font color=green>已发放</font>';
			$rs['ispay'] = $s;
			
			$s = '<font color=red>待核算</font>';
			if($rs['isturn']==1)$s = '<font color=green>已核算</font>';
			$rs['isturnss'] = $s;
		}
		
		//详情展示时
		if($lx==1){
		}
		
		return $rs;
	}
	
后面还有 346 行代码,购买后查看完整代码

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

AI 解读 AI

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

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