Exemple #1
0
 public static function getInstance()
 {
     if (!isset(self::$instance)) {
         self::$instance = new self();
     }
     return self::$instance;
 }
Exemple #2
0
 public function monta_ExtratoBancoCombo()
 {
     $mExtratoBanco = knl_extensions_dextrato_daoExtratoBanco::getInstance()->selectAll();
     $this->ExtratoBancoCombo = "Banco: <select name=\"id_banco\">";
     $this->ExtratoBancoCombo .= "<option value=\"0\">Todos</option>";
     foreach ($mExtratoBanco as $v) {
         $this->ExtratoBancoCombo .= "<option value=\"{$v->get_id()}\">{$v->get_nome()}</option>";
     }
     $this->ExtratoBancoCombo .= "</select>";
 }
Exemple #3
0
 public function getFullData($param)
 {
     //print_r($param);die();
     $arrModel = array();
     $mConta = knl_extensions_dextrato_daoExtratoConta::getInstance()->selectById($param->get_id_conta());
     $mAgencia = knl_extensions_dextrato_daoExtratoAgencia::getInstance()->selectById($mConta->get_id_agencia());
     $mBanco = knl_extensions_dextrato_daoExtratoBanco::getInstance()->selectById($mAgencia->get_id_banco());
     $arrModel['d_extrato_conta'] = $mConta;
     $arrModel['d_extrato_agencia'] = $mAgencia;
     $arrModel['d_extrato_banco'] = $mBanco;
     /*
         	$arrModel = parent::getFullData(array('id_forn'=>$param['id_forn']));
         	$PedEntrega = knl_dao_d_ped_venda_entrega::getInstance();
         	$mPedEntrega = $PedEntrega->selectByIdDoc($param['id']);
         	$arrModel['dataentrega'] = $mPedEntrega;*/
     return $arrModel;
 }