1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859 |
- <?php
- Doo::loadCore ( 'db/DooModel' );
- class receiptTrainManage extends DooModel {
- /**
- *
- * @var integer $iid 管理组ID
- */
- public $icid;
- /**
- *
- * @var string $staff 管理组人员
- */
- public $staff;
- public $category;
- public $cid;
-
- public $_table = 'CLD_receiptTrainManage';
- public $_primarykey = 'icid';
- public $_fields = array (
- 'icid',
- 'staff',
- 'category',
- 'cid'
- );
-
- /**
- * 获得查看人员
- * @param number $icid
- */
- public function getInvoiceCMByIcid($icid=0){
- $lsit=array();
- if (! empty ( $icid ))
- $lsit = $this->getOne ( array (
- 'where' => 'icid='.$icid,
- 'asArray' => TRUE
- ) );
-
- return $lsit;
- }
-
- /**
- * 是否有该用户在权限列表中
- * @param number $sid
- */
- public function getInvoiceCMByStaff($sid = 0) {
- $lsit=array();
- if (! empty ( $sid ))
- $lsit = $this->find ( array (
- 'select'=>'cid',
- 'where' => 'staff like "%[\"' . $sid . '\",%"',
- 'asArray' => TRUE
- ) );
-
- return $lsit;
- }
- }
- // ?>
|