package com.northglass.web.standalone;
|
|
|
import java.util.Map;
|
|
import javax.print.DocFlavor.STRING;
|
import javax.servlet.http.HttpServletRequest;
|
import javax.servlet.http.HttpServletResponse;
|
|
import org.slf4j.Logger;
|
import org.slf4j.LoggerFactory;
|
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.stereotype.Controller;
|
import org.springframework.ui.Model;
|
import org.springframework.web.bind.annotation.PathVariable;
|
import org.springframework.web.bind.annotation.RequestMapping;
|
import org.springframework.web.bind.annotation.RequestMethod;
|
import org.springframework.web.bind.annotation.RequestParam;
|
import org.springframework.web.bind.annotation.ResponseBody;
|
|
import com.northglass.service.shelfmanager.ShelfManagerService;
|
import com.northglass.service.standalone.StandAloneService;
|
|
|
|
|
/**
|
* 单机界面管理
|
* @author GO1
|
*
|
*/
|
@Controller
|
@RequestMapping(value="/standalonemanage")
|
public class StandAloneController<ShelfManagerervice> {
|
@Autowired
|
private StandAloneService standAloneService;
|
private static final Logger LOGGER = LoggerFactory.getLogger(StandAloneController.class);
|
|
|
|
/**
|
* 进入单机界面
|
* @return
|
*/
|
@RequestMapping(method=RequestMethod.GET,value="/intopages")
|
public String inToPages(Model model,HttpServletRequest request){
|
return "standalone/startStandalonePage2";
|
}
|
|
@RequestMapping(method=RequestMethod.GET,value="/intopages2")
|
public String inToPages2(Model model,HttpServletRequest request){
|
return "standalone/startStandalonePage2";
|
}
|
/**
|
* 进入单机界面
|
* @return
|
*/
|
@RequestMapping(method=RequestMethod.GET,value="/intopage")
|
public String inToPage(Model model,HttpServletRequest request){
|
return standAloneService.intoPage(request, "1", model);
|
}
|
|
/**
|
* 进入单机界面(2号)
|
* @return
|
*/
|
@RequestMapping(method=RequestMethod.GET,value="/intopage2")
|
public String inToPage2(Model model,HttpServletRequest request){
|
return standAloneService.intoPage(request, "2", model);
|
}
|
|
/**
|
* 进入单机界面(3号)
|
* @return
|
*/
|
@RequestMapping(method=RequestMethod.GET,value="/intopage3")
|
public String inToPage3(Model model,HttpServletRequest request){
|
return standAloneService.intoPage(request, "3", model);
|
}
|
|
|
|
@RequestMapping(method=RequestMethod.POST, value="/passwords/{groups}")
|
public String passwords(HttpServletRequest request,@RequestParam(value="passwords") String passwords,@PathVariable("groups") Long groups) {
|
return standAloneService.passwords(passwords,groups);
|
|
}
|
|
@RequestMapping(method=RequestMethod.GET,value="/endSingleMachine")
|
public String endSingleMachine(HttpServletRequest request,Model model){
|
return standAloneService.endSingleMachine(request, model);
|
}
|
|
@RequestMapping(method=RequestMethod.GET,value="/endSingleMachine2")
|
public String endSingleMachine2(HttpServletRequest request,Model model){
|
return standAloneService.endSingleMachine2(request, model);
|
}
|
@RequestMapping(method=RequestMethod.GET,value="/endSingleMachine3")
|
public String endSingleMachine3(HttpServletRequest request,Model model){
|
return standAloneService.endSingleMachine3(request, model);
|
}
|
|
/**
|
* 输入剩余原片数量后退出
|
* @return
|
*//*
|
@RequestMapping(method=RequestMethod.GET,value="/endsinglemodel")
|
public String endSingleModel(HttpServletRequest request){
|
return standAloneService.endSingleModel(request);
|
}*/
|
|
|
|
|
|
|
}
|