Exemplo n.º 1
0
 public function listaObservacoes()
 {
     $request = knl_lib_Registry::getRequestObj();
     $Obs = knl_dao_doc_obs::getInstance();
     $mObs = $Obs->selectByIdDoc($request->getGet('id'));
     return $mObs;
 }
Exemplo n.º 2
0
 public function AddObs()
 {
     $request = knl_lib_Registry::getRequestObj();
     $session = knl_lib_Registry::getSession();
     $usuario = knl_dao_knl_usuario::getInstance()->selectById($session->get_id_usuario());
     $data = date("d/m/Y");
     $hora = date("H:i");
     $Obs = knl_dao_doc_obs::getInstance();
     $mObs = new knl_model_doc_obs(0, $request->getGet('id'), nl2br($request->getPost('obs')) . "<br>&nbsp; Observação por: <strong>{$usuario->get_login()}</strong> em {$data} as {$hora} <hr>", 0, 0, 1);
     $Obs->upsert($mObs);
 }
Exemplo n.º 3
0
 public function ObsSetxy()
 {
     $request = knl_lib_Registry::getRequestObj();
     $dObs = knl_dao_doc_obs::getInstance();
     $mObs = $dObs->selectById($request->getGet("id_marca"));
     $x = str_replace("px", "", $request->getGet("x"));
     $y = str_replace("px", "", $request->getGet("y"));
     $pag = $request->getGet("pag");
     $pag = empty($pag) ? 1 : $pag;
     $mObs->set_x($x - 12);
     $mObs->set_y($y - 18);
     $mObs->set_pag($pag);
     $dObs->upsert($mObs);
 }