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


PHP Warehouse::all方法代碼示例

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


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

示例1: getWarehouseAll

 public function getWarehouseAll()
 {
     return View::make('goods.warehouse-all')->with('warehouse', Warehouse::all())->with('count', Warehouse::count());
 }
開發者ID:huanghua581,項目名稱:erp,代碼行數:4,代碼來源:GoodsController.php

示例2: getPrint

 public function getPrint()
 {
     $warehouse = Warehouse::all();
     $users = User::where('grade', '10')->where('disable', '0')->get();
     $warehouse_name = '';
     $user_name = '';
     $prints = array();
     $count_prints = 0;
     $warehouse_id = Input::get('warehouse_id');
     $user_id = Input::get('user_id');
     if ($warehouse_id === '0' || $user_id === '0') {
         return Redirect::to('picking/print')->with('error', '倉庫和業務員都需要選擇!');
     }
     if ($warehouse_id && $user_id) {
         $warehouse_name = Warehouse::find($warehouse_id)->pluck('name');
         $user = User::find($user_id);
         $user_name = $user->username;
         $prints = Delivery::where('warehouse_id', $warehouse_id)->where('status', '2')->where('user_id', $user_id)->with('items', 'user')->get();
         $count_prints = count($prints);
     }
     return View::make('picking.print')->with(compact('warehouse'))->with(compact('users'))->with(compact('prints'))->with(compact('warehouse_name'))->with(compact('user_name'))->with(compact('count_prints'));
 }
開發者ID:huanghua581,項目名稱:erp,代碼行數:22,代碼來源:PickingController.php

示例3: getRecoverEmptyWarehouse

 public function getRecoverEmptyWarehouse($goodEmptyId)
 {
     $good_empty = GoodEmpty::find($goodEmptyId);
     $branch = Branch::find($good_empty->branch_id);
     $warehouse = Warehouse::all();
     return View::make('branch.recover-empty-warehouse')->with(compact('warehouse'))->with(compact('branch'))->with(compact('good_empty'));
 }
開發者ID:huanghua581,項目名稱:erp,代碼行數:7,代碼來源:BranchController.php

示例4: index

 /**
  * Display a listing of the resource.
  *
  * @return Response
  */
 public function index()
 {
     //
     $warehouses = Warehouse::all();
     return View::make('warehouse.warehouse', ['warehouses' => $warehouses]);
 }
開發者ID:NathanaelFebrianto,項目名稱:Citramas,代碼行數:11,代碼來源:WarehouseController.php


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