<?php

// +----------------------------------------------------------------------
// | Copyright (c) 2017-2018 富仁高科.
// +----------------------------------------------------------------------
// | This file is automatically generated. Do not manually modify!.
// +----------------------------------------------------------------------
// | Author:  Date: 2017-09-20 08:29:59 Version:V1.0
// +----------------------------------------------------------------------

namespace Home\Controller;

use Home\Service\StSubmergedPumpService;

/*
 * 潜油泵控制器
 */
class StSubmergedPumpController extends CommonController {

	// 画面初期化
	function index(){
		$stSubmergedPumpService=new StSubmergedPumpService();
		$buttons=$stSubmergedPumpService->getOperate1();
		$this->assign("buttons",$buttons); 
		$this->display();
	}

	// 检索
	function search(){
		$stSubmergedPumpService=new StSubmergedPumpService();
		$data=$stSubmergedPumpService->search();
		// 数据返回
		$this->ajaxReturn($data);
	}

	// 更新
	function save(){
		$stSubmergedPumpService=new StSubmergedPumpService();
		$data=$stSubmergedPumpService->save();
		// 数据返回
		$this->ajaxReturn($data);
	}

	// 获取详细内容
	function detail(){
		$stSubmergedPumpService=new StSubmergedPumpService();
		$data=$stSubmergedPumpService->detail();
		// 数据返回
		$this->ajaxReturn($data);
	}

	// 伦理删除
	function del(){
		$stSubmergedPumpService=new StSubmergedPumpService();
		$data=$stSubmergedPumpService->del();
		// 数据返回
		$this->ajaxReturn($data);
	}

	// 导出
	function report(){
		$stSubmergedPumpService=new StSubmergedPumpService();
		$data=$stSubmergedPumpService->report();
		// 数据返回
		$this->ajaxReturn($data);
	}

}