信呼OA版本v2.3.8
This commit is contained in:
36
webmain/main/view/viewAction.php
Normal file
36
webmain/main/view/viewAction.php
Normal file
@@ -0,0 +1,36 @@
|
||||
<?php
|
||||
class viewClassAction extends Action
|
||||
{
|
||||
public function loaddataAjax()
|
||||
{
|
||||
$id = (int)$this->get('id');
|
||||
$setid = (int)$this->get('mid');
|
||||
$arr['data'] = m('flow_extent')->getone($id);
|
||||
$arr['wherelist'] = m('flow_where')->getall('setid='.$setid.'','id,name','sort');
|
||||
$arr['fieldsarr'] = m('flow_element')->getrows('mid='.$setid.' and `iszb`=0','name,fields','`sort`');
|
||||
echo json_encode($arr);
|
||||
}
|
||||
|
||||
public function afterstroesss($table,$rows)
|
||||
{
|
||||
foreach($rows as $k=>$rs){
|
||||
$rows[$k]['modename'] = $this->db->getmou('[Q]flow_set','name',$rs['modeid']);
|
||||
$rows[$k]['whereid'] = $this->db->getmou('[Q]flow_where','name',$rs['whereid']);
|
||||
}
|
||||
return array(
|
||||
'rows'=>$rows,
|
||||
'modearr' => m('mode')->getmodearr(),
|
||||
);
|
||||
}
|
||||
|
||||
public function flowview_savebefore($table, $das)
|
||||
{
|
||||
$str = m('where')->checkwhere($das['modeid'], $das['wherestr']);
|
||||
if($str)return $str;
|
||||
}
|
||||
|
||||
public function autographAction()
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user