当前位置: 首页>>代码示例>>PHP>>正文


PHP APP::request方法代码示例

本文整理汇总了PHP中APP::request方法的典型用法代码示例。如果您正苦于以下问题:PHP APP::request方法的具体用法?PHP APP::request怎么用?PHP APP::request使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在APP的用法示例。


在下文中一共展示了APP::request方法的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: dataset

 public function dataset()
 {
     $req = APP::request();
     $params = $req->get();
     $search = ZiUtil::is_set('search', $params);
     $query = "uom_nama ILIKE '%" . $search . "%'";
     $results = ZiUtil::search_result_jq_DB($query, $params, 'UOM');
     return ZiUtil::dataset_json($results['query'], $results['total']);
 }
开发者ID:suryakencana,项目名称:tekkadan,代码行数:9,代码来源:UnitOM.php

示例2: grupitem

 public function grupitem()
 {
     $req = APP::request();
     $get = $req->get();
     $search = ZiUtil::is_set('search', $get);
     $query = "item_grup_nama ILIKE '%" . $search . "%'";
     $results = ZiUtil::search_result_DB($query, $get, 'ItemGrup');
     return ZiUtil::dataset_json($results['query'], $results['total']);
 }
开发者ID:suryakencana,项目名称:tekkadan,代码行数:9,代码来源:Item.php

示例3: dataset

 public function dataset()
 {
     $req = APP::request();
     $get = $req->get();
     $search = ZiUtil::is_set('search', $get);
     $query = "nama ILIKE '%" . $search . "%'";
     $results = ZiUtil::search_result_jq_DB($query, $get, 'Principal');
     return ZiUtil::dataset_json($results['query'], $results['total']);
 }
开发者ID:suryakencana,项目名称:tekkadan,代码行数:9,代码来源:Principal.php

示例4: reg_pasien

 public function reg_pasien()
 {
     $req = APP::request();
     $params = $req->get();
     $search = ZiUtil::is_set('search', $params);
     $params["sort"] = "cust_usr_nama";
     $params["order"] = "ASC";
     $query = "cust_usr_nama ILIKE '%" . $search . "%' OR cust_usr_kode LIKE '%" . $search . "%'";
     $results = ZiUtil::search_result_DB($query, $params, 'RegPasien');
     return ZiUtil::dataset_json($results['query'], $results['total']);
 }
开发者ID:suryakencana,项目名称:tekkadan,代码行数:11,代码来源:Pasien.php

示例5: dataset

 public function dataset()
 {
     $req = APP::request();
     if ($req->isPost()) {
         $params = $req->post();
         $search = ZiUtil::is_set('search', $params);
         $query = "id = '" . $search . "'";
     } else {
         $params = $req->get();
         $search = ZiUtil::is_set('search', $params);
         $query = "price_list_nama ILIKE '%" . $search . "%'";
     }
     $results = ZiUtil::search_result_jq_DB($query, $params, 'PriceList');
     return ZiUtil::dataset_json($results['query'], $results['total']);
 }
开发者ID:suryakencana,项目名称:tekkadan,代码行数:15,代码来源:Pricelist.php

示例6: filter

 public function filter()
 {
     $grid["folder"] = "Stock";
     $grid["title"] = "Daftar Item Price";
     $cols[] = json_decode('{"field": "state", "checkbox": true}');
     $cols[] = json_decode('{ "title": "Kode Item", "field": "item_kode"}');
     $cols[] = json_decode('{ "title": "Tanggal Berakhir", "field": "expiry_date"}');
     $cols[] = json_decode('{ "title": "", "field": "id"}');
     $req = APP::request();
     if ($req->isPost()) {
         $params = $req->post();
         $grid["anchor"] = $params['anchor'];
         $grid["value"] = $params['value'];
     }
     $grid["url_add"] = App::urlFor("batch.a001");
     $grid["url_edit"] = App::urlFor("batch.v005");
     $grid["url_remove"] = App::urlFor("batch.d011");
     $grid["source_url"] = App::urlFor("batch.dataset");
     $grid["method"] = "POST";
     $grid["cols"] = json_encode($cols);
     APP::render('batch/grid_batch', $grid);
 }
开发者ID:suryakencana,项目名称:tekkadan,代码行数:22,代码来源:Batch.php

示例7: filter

 public function filter()
 {
     $grid["folder"] = "Stock";
     $grid["title"] = "Daftar Item Price";
     $cols[] = json_decode('{"field": "state", "checkbox": true}');
     $cols[] = json_decode('{ "title": "Kode Item", "field": "item_kode"}');
     $cols[] = json_decode('{ "title": "Price List", "field": "price_list"}');
     $cols[] = json_decode('{ "title": "Harga", "field": "price_list_rate"}');
     $cols[] = json_decode('{ "title": "", "field": "id", "visible": false}');
     $req = APP::request();
     if ($req->isPost()) {
         $params = $req->post();
         $grid["anchor"] = $params['anchor'];
         $grid["value"] = $params['value'];
     }
     $grid["url_add"] = App::urlFor("itemprice.a001");
     $grid["url_edit"] = App::urlFor("itemprice.v005");
     $grid["url_remove"] = App::urlFor("itemprice.d011");
     $grid["source_url"] = App::urlFor("itemprice.dataset");
     $grid["method"] = "POST";
     $grid["cols"] = json_encode($cols);
     APP::render('itemprice/grid_itemprice', $grid);
 }
开发者ID:suryakencana,项目名称:tekkadan,代码行数:23,代码来源:Itemprice.php

示例8: dataset_stock_ledger

 public function dataset_stock_ledger()
 {
     $req = APP::request();
     $params = $req->get();
     $search = ZiUtil::is_set('search', $params);
     $query = "item_kode ILIKE '%" . $search . "%'";
     $results = ZiUtil::search_result_jq_DB($query, $params, 'VStokLedger');
     return ZiUtil::dataset_json($results['query'], $results['total']);
 }
开发者ID:suryakencana,项目名称:tekkadan,代码行数:9,代码来源:Stok.php

示例9: dataset_penjualan

 public function dataset_penjualan()
 {
     $req = APP::request();
     $params = $req->get();
     $search = ZiUtil::is_set('search', $params);
     $query = "pasien_nama ILIKE '%" . $search . "%' and is_canceled = 0";
     $results = ZiUtil::search_result_jq_DB($query, $params, 'SalesApotik');
     return ZiUtil::dataset_json($results['query'], $results['total']);
 }
开发者ID:suryakencana,项目名称:tekkadan,代码行数:9,代码来源:Selling.php


注:本文中的APP::request方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。