ToInCabintHandler.java 830 Bytes
package cn.csbr.app.gui.handler;

import cn.csbr.app.gui.GUIContext;
import cn.csbr.app.gui.page.inboud.InboundPage;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Component
public class ToInCabintHandler extends WithAuthToPageBaseHandler<InboundPage> {
    @Autowired
    private InboundPage inboundPage;

    @Autowired
    private GUIContext guiContext;

    @Override
    protected String getMenuCode() {
        return "h_inbound";
    }

    @Override
    protected InboundPage createPage() {
        return inboundPage;
    }

    @Override
    protected void toPre(InboundPage page) {
        this.guiContext.getScanResult().clear();
        this.guiContext.setCurrentPage(page);
    }

    @Override
    protected void toEnd(InboundPage page) {

    }
}