officicModel.php 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. <?php
  2. //公文查阅
  3. class flow_officicClassModel extends flowModel
  4. {
  5. public $xiangbordercolor = 'red';//默认边框颜色
  6. public function initModel()
  7. {
  8. $this->logobj = m('log');
  9. }
  10. //打开详情时跳转到地理位置显示
  11. protected function flowchangedata()
  12. {
  13. /*
  14. if(!isajax()){
  15. $num = ($this->rs['type']=='1') ? 'officib' : 'officia';
  16. $url = $this->getxiangurl($num, $this->id, A);
  17. $this->rock->location($url);
  18. exit();
  19. }*/
  20. }
  21. protected function flowbillwhere($uid, $lx)
  22. {
  23. //全部的
  24. if($lx=='all'){
  25. $whyere = '';
  26. $this->rock->setsession('officicatype','all');
  27. }
  28. return '';
  29. }
  30. public function flowrsreplace($rs, $lx=0)
  31. {
  32. if($lx==2){
  33. $zt = $this->logobj->isread($this->mtable, $rs['id'], $this->adminid);
  34. if($zt>0)$rs['ishui']=1;
  35. }
  36. //$rs['modenum'] = ($rs['type']=='1') ? 'officib' : 'officia';
  37. return $rs;
  38. }
  39. protected function flowdatalog($arr)
  40. {
  41. $arr['title'] = $this->moders['name'];
  42. //是否关闭查阅记录
  43. $arr['isgbcy'] = $this->moders['isgbcy'];
  44. if($this->rock->session('officicatype')=='all')$arr['isgbcy'] ='0'; //有权限看全部
  45. if($arr['isgbcy'] =='0'){
  46. $barr = $this->logobj->getreadshu($this->mtable, $this->id,$this->rs['receid'] , $this->rs['optdt'], $this->adminmodel);
  47. $arr['readunarr'] = $barr['wduarr'];//读取未查阅
  48. }
  49. return $arr;
  50. }
  51. }
粤ICP备19079148号