webmain/model/flow/projectModel.php
(开头部分) 1KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
<?php
/**
* 项目的
*/
class flow_projectClassModel extends flowModel
{
public $workobj;
public function initModel()
{
$this->workobj = m('work');
}
/**
* 进度报告时更新对应状态
*/
protected function flowaddlog($a)
{
if($a['name']=='进度报告'){
$arr['status'] = $a['status'];
$this->update($arr, $this->id);
}
}
public function flowrsreplace($rs, $lx=0){
$zts = $rs['status'];
$str = $this->getstatus($rs,'','',1);
if($lx==2)$rs['statusstr']= $str; //列表时替换
$id = $rs['id'];
$wwc = $this->workobj->rows('projectid='.$id.' and `status` not in(1,5)');
$wez = $this->workobj->rows('projectid='.$id.'');
if($wwc>0)$wwc='<font color=red>'.$wwc.'</font>';
$rs['workshu'] = ''.$wwc.'/'.$wez.'';
if($lx==1)$rs['status'] = $str;
return $rs;
}
public function flowisreadqx()
{
return $this->flowgetoptmenu('shwview');
}
//显示操作菜单判断
protected function flowgetoptmenu($num)
{
$fuzeid = $this->rs['fuzeid'];
$runuserid = $this->rs['runuserid'];
$where = m('admin')->gjoin($fuzeid.','.$runuserid, 'ud', $blx='where');
$where = 'id='.$this->adminid.' and ('.$where.')';
$bo = null;
if($num=='shwview')$bo = true;
if(m('admin')->rows($where)==0)$bo=false;
return $bo;
}
protected function flowbillwhere($uid, $lx)
{
后面还有 7 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。
