예제 #1
0
파일: carimbo.php 프로젝트: nilzao/EcmFlow
 public static function getInstance()
 {
     if (!isset(self::$instance)) {
         self::$instance = new self();
     }
     return self::$instance;
 }
예제 #2
0
파일: dao.php 프로젝트: nilzao/EcmFlow
 public function getFullData($mDocH)
 {
     $arrModel = array();
     $arrModel = parent::getFullData($mDocH);
     $Carimbo = knl_dao_doc_carimbo::getInstance();
     $mCarimbos = $Carimbo->selectByIdDoc($mDocH->get_id_doc());
     $CarimboTipo = knl_dao_carimbo::getInstance();
     foreach ($mCarimbos as $k => $v) {
         if ($v->get_id_carimbo() != 0) {
             $mCarimboTipo = $CarimboTipo->selectById($v->get_id_carimbo());
             $arrModel['carimbos'][] = array('doc_carimbo' => $mCarimbos[$k], 'carimbo' => $mCarimboTipo);
         }
     }
     return $arrModel;
 }
예제 #3
0
 public function listaCarimbos()
 {
     $request = knl_lib_Registry::getRequestObj();
     $Carimbos = knl_dao_doc_carimbo::getInstance();
     $mCarimbos = $Carimbos->selectByIdDoc($request->getGet('id'));
     $CarimboTipo = knl_dao_carimbo::getInstance();
     $tudo = array();
     foreach ($mCarimbos as $k => $v) {
         if ($v->get_id_carimbo() != 0) {
             $mCarimboTipo = $CarimboTipo->selectById($v->get_id_carimbo());
             $tudo[] = array('doc_carimbo' => $mCarimbos[$k], 'carimbo' => $mCarimboTipo);
         }
     }
     return $tudo;
 }
예제 #4
0
파일: Doc.php 프로젝트: nilzao/EcmFlow
 public function DocEditForm()
 {
     $request = knl_lib_Registry::getRequestObj();
     $session = knl_lib_Registry::getSession();
     $DocShow = knl_lib_doc_DocShow::getInstance();
     $doc = $DocShow->getDocumento($request->getGet('id'));
     $cabecalho = $DocShow->getDocumentoFull($doc);
     $docCarimbo = $DocShow->getDocumentoCarimbo($doc);
     $empresas = knl_dao_empresa::getInstance()->selectAll();
     $carimbos = knl_dao_carimbo::getInstance()->selectByUserGroup($session->get_id_usuario(), $session->get_id_grupo(), $session->get_grupos());
     $vl = knl_view_Loader::getInstance();
     $vl->setVar("doc", $doc);
     $vl->setVar("cabecalho", $cabecalho);
     $vl->setVar("docCarimbo", $docCarimbo);
     $vl->setVar("carimbos", $carimbos);
     $vl->setVar("empresas", $empresas);
     $vl->display("formDocEdit");
 }