示例#1
0
文件: Teta.php 项目: knatorski/SMS
 public function exportDelegation($id_delegation)
 {
     $model = new DelegSettleView();
     $this->delegation = $model->findOne($id_delegation);
     $model = new TetaEmployeerAccounts();
     $this->tetaEmployeerAccounts = $model->fetchRow('PRAC_ID = ' . addslashes($this->delegation->teta_id));
     $this->position = 0;
     $this->insertOG();
     $this->insertTravel();
     $this->insertAdditionalCosts();
     $this->insertOvernight();
     $this->insertDiet();
 }
示例#2
0
 public function getItemsToAccept($idUser = null, $format = self::LIST_AS_PAGINATOR)
 {
     if ($idUser === null) {
         $idUser = Zend_Auth::getInstance()->getIdentity()->id;
     }
     $model = new DelegSettleView();
     $select = $model->select()->where($this->_approval_by_field_name . ' = ?', $idUser)->where($this->_is_approved_field_name . ' IS FALSE')->where('id_state = ?', $this->_approval_state);
     return $this->results_presentation($select, $format);
 }