webmain/model/flow/custfinaModel.php
(开头部分) 3KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
<?php
//客户收款单
class flow_custfinaClassModel extends flowModel
{
public $statearrs,$statearrf;
public $delbool = 0;
public function initModel(){
$this->statearrs = c('array')->strtoarray('未收款|red,已收款|green');
$this->statearrf = c('array')->strtoarray('未付款|red,已付款|green');
}
public function flowrsreplace($rs)
{
if($rs['id']==0)return $rs;
$starrr = array('收','付');
$rs['paystatus'] = $rs['ispay'];
$ispay = '<font color=red>未'.$starrr[$rs['type']].'款</font>';
if($rs['ispay']==1)$ispay = '<font color=green>已'.$starrr[$rs['type']].'款</font>';
$rs['ispay'] = $ispay;
$rs['type'] = ''.$starrr[$rs['type']].'款单';
$htid = $rs['htid'];
$url = '';
if($htid>0)$url = $this->getxiangurl('custract', $htid, 'auto');
if($htid<0)$url = $this->getxiangurl('custxiao', 0-$htid, 'auto');
if(arrvalue($rs,'xgid') && arrvalue($rs,'xgnum'))$url = $this->getxiangurl($rs['xgnum'], $rs['xgid'], 'auto');
if($url && !isempt($rs['htnum']))
$rs['htnum'] = '<a href="javascript:;" onclick="js.open(\''.$url.'\')">'.$rs['htnum'].'</a>';
if($rs['custid']>0){
//$url = $this->getxiangurl('customer', $rs['custid'], 'auto');
//$rs['custname'] = '<a href="javascript:;" onclick="js.open(\''.$url.'\')">'.$rs['custname'].'</a>';
}
$jzid = arrvalue($rs,'jzid');
if($jzid>0){
$url = $this->getxiangurl('finjishou', $jzid, 'auto');
$rs['jzid'] = '<a href="javascript:;" onclick="js.open(\''.$url.'\')">已生成</a>';
}else if($jzid=='-1'){
$rs['jzid'] = '<font color=#aaaaaa>不需要</font>';
}else{
$rs['jzid'] = '';
}
return $rs;
}
//操作菜单操作
protected function flowoptmenu($ors, $arr)
{
//标识已付款处理
if($ors['num']=='pay'){
$ispay = 0;
$paydt = arrvalue($arr,'fields_paydt', $this->rock->now);
if(!isempt($paydt))$ispay = 1;
$this->update("`ispay`='$ispay',`paydt`='$paydt'", $this->id);
m('crm')->ractmoney($this->rs['htid']);
}
后面还有 66 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。
