webmain/model/flow/hrcheckModel.php
(开头部分) 10KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
<?php
//模块 hrcheck.考核评分
class flow_hrcheckClassModel extends flowModel
{
public $dtobj;
//审核完成处理
protected function flowcheckfinsh($zt){
//最后得分计算,
if($zt==1){
$fenzp = floatval($this->rs['fenzp']);
$fensj = floatval($this->rs['fensj']);
$fenrs = floatval($this->rs['fenrs']);
//默认分数=自己评分*50% + 上级评分*25% + 人事评分*25%
$fen = $fenzp*0.5 + $fensj*0.25 + $fenrs*0.25;
//3个平均分
//$fen = ($fenzp+$fensj+$fenrs)/3;
$this->update(array('fen' => $fen), $this->id);
}
}
//需要评分就可以查看
protected function flowisreadqx()
{
$boss = $this->getpfrows();
if($boss)return true;
return false;
}
private function getpfrows()
{
return m('hrcheckn')->getall('mid='.$this->id.' and `optid`='.$this->adminid.' and `optdt` is null','*', '`sort`');
}
public function flowrsreplace($rs, $lx=0)
{
if(isset($rs['abclex']))return $rs;
$ztstr = '';
if(isempt($rs['pfrens'])){
$ztstr = '<font color=green>评分已完成</font>';
}else{
if($rs['uid']==$this->adminid){
$ztstr = '待<font color=blue>'.$rs['pfrens'].'</font>评分';
}else{
$ztstr = '<font color=blue>待评分</font>';
}
}
$rs['pfrenids'] = $ztstr;
if($lx==1){
$ckbo = $this->isreadqxs();//是否设置查看权限
$ispf = $this->getpfrows();
if(!$ispf){
if($ckbo){ //设置可查看
$rs['subdatastr'] = $this->getsubdatastr($this->id);
后面还有 355 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。
