/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ package com.ifish.controller; import com.ifish.bean.Tbl_Factory_List; import com.ifish.bean.Tbl_Payee_Info; import com.ifish.helper.FactoryHelperI; import java.util.List; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMethod; import org.springframework.web.bind.annotation.ResponseBody; import org.springframework.web.servlet.ModelAndView; /** * * @author Administrator */ @Controller public class Factory { @Autowired private FactoryHelperI factoryHelperI; /** * 电子厂列表页面 * * @return */ @RequestMapping(value = {"/factorylist"}, method = RequestMethod.GET) public ModelAndView getFactoryListView() { return factoryHelperI.getFactoryListView(); } /** * 电子厂列表数据 * * @param draw * @param start * @param length * @return */ @RequestMapping(value = {"/factorylistData"}, method = RequestMethod.POST) @ResponseBody public Object getFactoryListData(String draw, Integer start, Integer length) { return factoryHelperI.getFactoryListData(draw, start, length); } /** * 修改电子厂信息是否收税 * * @param code * @param isTax * @return */ @RequestMapping(value = {"/updateFactoryIsTax"}, method = RequestMethod.POST, produces = " text/html;charset=utf-8") @ResponseBody public Object updateFactoryIsTax(String code, String isTax) { return factoryHelperI.changeFactoryIsTax(code, isTax); } /** * 修改电子厂信息页面 * * @return */ @RequestMapping(value = {"/updateFactoryDetail"}, method = RequestMethod.GET) public ModelAndView updateFactoryDetail(String code) { return factoryHelperI.updateFactoryDetail(code); } /** * 修改(添加)电子厂 * * @return */ @RequestMapping(value = {"/updateFactory"}, method = RequestMethod.POST, produces = " text/html;charset=utf-8") @ResponseBody public Object updateFactory(String[] brandCodes, String[] hardwareTypes, String factoryName, String factoryCode) { return factoryHelperI.updateFactory(brandCodes, hardwareTypes, factoryName, factoryCode); } /** * 删除电子厂 * * @param code * @return */ @RequestMapping(value = {"/deleteFactory"}, method = RequestMethod.POST, produces = "text/html;charset=utf-8") @ResponseBody public Object deleteFactory(String code) { return factoryHelperI.deleteFactory(code); } /** * 添加电子厂页面 * * @return */ @RequestMapping(value = {"/addFactory"}, method = RequestMethod.GET) public ModelAndView addFactory() { return factoryHelperI.addFactory(); } /** * 查询统计 * * @return */ @RequestMapping(value = {"/querylist"}, method = RequestMethod.GET) public ModelAndView querylist(String factoryCode, String brandCode, String isblacklist, String createTimeBefore, String createTimeAfter) { return factoryHelperI.querylist(factoryCode, brandCode, isblacklist, createTimeBefore, createTimeAfter); } /** * 授权统计查询页 * * @param factoryCode * @param createTimeBefore * @param createTimeAfter * @return */ @RequestMapping(value = {"/authorizationQuery"}, method = RequestMethod.GET) public ModelAndView authorizationQuery(String factoryCode, String createTimeBefore, String createTimeAfter) { return factoryHelperI.authorizationQuery(factoryCode, createTimeBefore, createTimeAfter); } /** * 授权统计操作记录 * * @param factoryCode * @param billMonth * @return */ @RequestMapping(value = {"/recorddetail"}, method = RequestMethod.GET) public ModelAndView recorddetail(String factoryCode, String billMonth) { return factoryHelperI.recorddetail(factoryCode, billMonth); } /** * 账单列表 * * @return */ @RequestMapping(value = {"/paylist"}, method = RequestMethod.GET) public ModelAndView paylist() { return factoryHelperI.paylist(); } /** * 账单列表页数据 * * @param factoryCode * @return */ @RequestMapping(value = {"/paylistdata"}, method = RequestMethod.POST) @ResponseBody public Object paylistData(String factoryCode, String draw, Integer start, Integer length) { return factoryHelperI.paylistData(factoryCode, draw, start, length); } /** * 修改账单收费状态 * * @param code * @param month * @return */ @RequestMapping(value = {"/changePayStatus"}, method = RequestMethod.POST, produces = "text/html;charset=utf-8") @ResponseBody public Object changePayStatus(String code, String month) { return factoryHelperI.changePayStatus(code, month); } /** * 修改收款账号信息 * * @param tbl_Payee_Info * @return */ @RequestMapping(value = {"/updatePayeeInfo"}, method = RequestMethod.POST, produces = "text/html;charset=utf-8") @ResponseBody public Object updatePayeeInfo(Tbl_Payee_Info tbl_Payee_Info) { return factoryHelperI.updatePayeeInfo(tbl_Payee_Info); } /** * 账单详情页面 * * @param factoryCode * @param billMonth * @return */ @RequestMapping(value = {"/paydetail"}, method = RequestMethod.GET) public ModelAndView paydetail(String factoryCode, String billMonth) { return factoryHelperI.paydetail(factoryCode, billMonth); } /** * 账单列表详情记录 * * @param factoryCode * @param billMonth * @param draw * @param start * @param length * @return */ @RequestMapping(value = {"/paydetailDate"}, method = RequestMethod.POST) @ResponseBody public Object paydetailDate(String factoryCode, String billMonth, String draw, Integer start, Integer length) { return factoryHelperI.paydetailDate(factoryCode, billMonth, draw, start, length); } }