ToCheckMainHanlder.java
872 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
package cn.csbr.app.gui.handler;
import cn.csbr.app.gui.GUIContext;
import cn.csbr.app.gui.page.check.CheckMainPage;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
@Component
public class ToCheckMainHanlder extends WithAuthToPageBaseHandler<CheckMainPage> {
@Autowired
private CheckMainPage mainPage;
@Autowired
private GUIContext guiContext;
@Override
protected String getMenuCode() {
return "h_check";
}
@Override
protected CheckMainPage createPage() {
return mainPage;
}
@Override
protected void toPre(CheckMainPage page) {
this.guiContext.getScanResult().clear();
this.guiContext.setCurrentPage(page);
mainPage.clearInboundItems();
}
@Override
protected void toEnd(CheckMainPage page) {
}
}