當前位置: 首頁>>代碼示例>>PHP>>正文


PHP ControllerBase::importarJsSearch方法代碼示例

本文整理匯總了PHP中ControllerBase::importarJsSearch方法的典型用法代碼示例。如果您正苦於以下問題:PHP ControllerBase::importarJsSearch方法的具體用法?PHP ControllerBase::importarJsSearch怎麽用?PHP ControllerBase::importarJsSearch使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在ControllerBase的用法示例。


在下文中一共展示了ControllerBase::importarJsSearch方法的4個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: buscarCCPorLineaAction

 /**
  * Searches for centrocosto
  */
 public function buscarCCPorLineaAction($centroCosto_id)
 {
     parent::importarJsSearch();
     $numberPage = 1;
     $numberPage = $this->request->getQuery("page", "int");
     $centrocosto = Centrocosto::find(array("centroCosto_lineaId=:linea_id: AND centroCosto_habilitado=1", 'bind' => array('linea_id' => $centroCosto_id)));
     if (count($centrocosto) == 0) {
         $this->flash->notice("No se encontraron resultados en la busqueda");
         return $this->dispatcher->forward(array("controller" => "centrocosto", "action" => "index"));
     }
     $paginator = new Paginator(array("data" => $centrocosto, "limit" => 10000, "page" => $numberPage));
     $this->view->page = $paginator->getPaginate();
     $this->view->pick('centrocosto/search');
 }
開發者ID:munozdaniel,項目名稱:sya,代碼行數:17,代碼來源:CentrocostoController.php

示例2: buscarLineaPorIdAction

 /**
  * Buscar la linea correspondiente a un ID enviado por GET
  * @return bool
  */
 public function buscarLineaPorIdAction()
 {
     if (!$this->request->isGet()) {
         return $this->redireccionar('linea/index');
     }
     parent::importarJsSearch();
     $numberPage = 1;
     $numberPage = $this->request->getQuery("page", "int");
     $linea = Linea::find(array('linea_id=:linea_id:', 'bind' => array('linea_id' => $this->request->get('linea_id')), 'order by' => 'linea_nombre ASC'));
     if (count($linea) == 0) {
         $this->flash->notice("No se encontraron resultados en la búsqueda");
         return $this->dispatcher->forward(array("controller" => "linea", "action" => "index"));
     }
     $paginator = new Paginator(array("data" => $linea, "limit" => 10000, "page" => $numberPage));
     $this->view->page = $paginator->getPaginate();
     $this->view->pick('linea/search');
 }
開發者ID:munozdaniel,項目名稱:sya,代碼行數:21,代碼來源:LineaController.php

示例3: searchAction

 /**
  * Searches for archivo
  */
 public function searchAction()
 {
     parent::importarJsSearch();
     $numberPage = 1;
     if ($this->request->isPost()) {
         $query = Criteria::fromInput($this->di, "Archivo", $_POST);
         $this->persistent->parameters = $query->getParams();
     } else {
         $numberPage = $this->request->getQuery("page", "int");
     }
     $parameters = $this->persistent->parameters;
     if (!is_array($parameters)) {
         $parameters = array();
     }
     $parameters["order"] = "archivo_id";
     $archivo = Archivo::find($parameters);
     if (count($archivo) == 0) {
         $this->flash->notice("No se encontraron resultados");
         return $this->dispatcher->forward(array("controller" => "archivo", "action" => "index"));
     }
     $paginator = new Paginator(array("data" => $archivo, "limit" => 10000, "page" => $numberPage));
     $this->view->page = $paginator->getPaginate();
 }
開發者ID:munozdaniel,項目名稱:sya,代碼行數:26,代碼來源:ArchivoController.php

示例4: verOrdenesAction

 public function verOrdenesAction($planillaId)
 {
     parent::importarJsSearch();
     $numberPage = 1;
     $orden = Orden::findByOrden_planillaId($planillaId);
     if (count($orden) == 0) {
         $this->flash->notice("La planilla seleccionada no contiene ordenes cargadas.");
         return $this->dispatcher->forward(array("controller" => "planilla", "action" => "search"));
     }
     $tabla = $this->generarTablaDeOrdenes($orden);
     $paginator = new Paginator(array("data" => $tabla, "limit" => 100000, "page" => $numberPage));
     $this->view->page = $paginator->getPaginate();
     $planilla = Planilla::findFirstByPlanilla_id($planillaId);
     if ($planilla) {
         $this->view->planilla = $planilla;
     }
     $this->view->pick('orden/search');
 }
開發者ID:munozdaniel,項目名稱:sya,代碼行數:18,代碼來源:OrdenController.php


注:本文中的ControllerBase::importarJsSearch方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。