webmain/model/flow/workModel.php
(开头部分) 6KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
<?php
class flow_workClassModel extends flowModel
{
private $absfile = false;
private $statearr;
private $updatexm= false;
public function initModel()
{
$this->statearr = c('array')->strtoarray('待执行|blue,已完成|green,执行中|#ff6600,终止|#888888,验证未通过|#9D4FF7');
}
//自定义审核人读取
protected function flowcheckname($num){
$sid = '';
$sna = '';
if($num=='run'){
$sid = $this->rs['distid'];
$sna = $this->rs['dist'];
}
return array($sid, $sna);
}
//转办时要更新对应的执行人员
protected function flowcheckbefore(){
$up = array();
if($this->checkiszhuanyi==1){
$up['dist'] = $this->rs['syszb_name'];
$up['distid'] = $this->rs['syszb_nameid'];
$up['status'] = 3; //待执行状态
}
if($up)$up['update'] = $up;
return $up;
}
public function flowrsreplace($rs, $slx=0){
$zts = $rs['status'];
$str = $this->getstatus($rs,'','',1);
if($slx>=1){
$projectid = (int)$rs['projectid'];
$rs['projectid'] = '';
if($projectid>0){
$prs = $this->db->getone('[Q]project', $projectid);
if($prs){
$rs['projectid']=''.$prs['title'].'('.$prs['progress'].'%)';
}
}
}
if(!isempt($rs['enddt']) && !in_array($zts,array(1,2,5))){
if(strtotime($rs['enddt'])<time())$rs['explain'].='<font color=red>(已超期)</font>';
}
//$rs['status']= $str;
if($rs['score']==0)$rs['score']='';
if($rs['mark']==0)$rs['mark']='';
if($slx==1){
$zhuid = (int)arrvalue($rs,'zhuid','0');
$nrs = arrvalue($rs,'file_content');
if($zhuid>0 && isempt($nrs)){
$rs['file_content'] = m('file')->getstr($this->mtable, $zhuid, 3);
后面还有 156 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。
