Example #1
0
 public function doList()
 {
     //list
     $listPageHelper = new ListPageHelper();
     $listPageHelper->pageSize = 10;
     $pageNum = intval(Request::get("page"));
     $listPageHelper->pageNum = $pageNum ? $pageNum : 1;
     //Condition
     $userCondition = new UserValue();
     //get data
     $userService = new UserService();
     $userList = $userService->getList($userCondition, $listPageHelper);
     $areaService = new AreaService();
     $areaList = $areaService->getList(new AreaValue());
     //view
     View::set("AreaList", $areaList);
     View::set("UserList", $userList);
     View::set("ListPageHelper", $listPageHelper);
     View::display("List");
 }
Example #2
0
 public function doUpdate()
 {
     $projectService = new ProjectService();
     $projectlist = $projectService->getList(new ProjectValue());
     $areaService = new AreaService();
     $arealist = $areaService->getList(new AreaValue());
     $ordersService = new OrdersService();
     $ordersId = intval(Request::get("update_orders_id"));
     $ordersVo = $ordersService->getByPrimary($ordersId);
     $userService = new UserService();
     $userVo = $userService->getList(new UserValue());
     View::set("UserList", $userVo);
     View::set("OrdersUpdateValue", $ordersVo);
     View::set("Arealist", $arealist);
     View::set("Projectlist", $projectlist);
     View::display("Update");
 }