[size=medium]public abstract YearSelect getYearSelect();
public abstract QuarterSelect getQuarterSelect();
[color=darkred]public abstract YeaeSelectView getYeaeSelectView();[/color]
public abstract QuarterSelectView getQuarterSelectView();
public void onCancel(IRequestCycle cycle) {
if(getDirectNO()!=null&&getDirectNO().equals("YearSelect")){
throw new RedirectException(((MyEngine)this.getEngine()).getExternalLinkUrl("YearSelect", null));
} //IRequestCycle
else if(getDirectNO()!=null&&getDirectNO().equals("YeaeSelectView")){
[color=brown] YeaeSelectView resultPage =(YeaeSelectView)cycle.getPage("YeaeSelectView");
resultPage.setTheYear(getTheYear());
cycle.activate(resultPage); [/color]
}
else if(getDirectNO()!=null&&getDirectNO().equals("QuarterSelect")){
throw new RedirectException(((MyEngine) this.getEngine())
.getExternalLinkUrl("QuarterSelect", null));
}
else {
QuarterSelectView resultPage =(QuarterSelectView)cycle.getPage("QuarterSelectView");
resultPage.setTheYear(getTheYear());
if(getQuarter().equals("up")){
resultPage.setTheQuqrter("上半年");
}
else
resultPage.setTheQuqrter("下半年");
cycle.activate(resultPage);
}
}
:idea: [/size]
public abstract QuarterSelect getQuarterSelect();
[color=darkred]public abstract YeaeSelectView getYeaeSelectView();[/color]
public abstract QuarterSelectView getQuarterSelectView();
public void onCancel(IRequestCycle cycle) {
if(getDirectNO()!=null&&getDirectNO().equals("YearSelect")){
throw new RedirectException(((MyEngine)this.getEngine()).getExternalLinkUrl("YearSelect", null));
} //IRequestCycle
else if(getDirectNO()!=null&&getDirectNO().equals("YeaeSelectView")){
[color=brown] YeaeSelectView resultPage =(YeaeSelectView)cycle.getPage("YeaeSelectView");
resultPage.setTheYear(getTheYear());
cycle.activate(resultPage); [/color]
}
else if(getDirectNO()!=null&&getDirectNO().equals("QuarterSelect")){
throw new RedirectException(((MyEngine) this.getEngine())
.getExternalLinkUrl("QuarterSelect", null));
}
else {
QuarterSelectView resultPage =(QuarterSelectView)cycle.getPage("QuarterSelectView");
resultPage.setTheYear(getTheYear());
if(getQuarter().equals("up")){
resultPage.setTheQuqrter("上半年");
}
else
resultPage.setTheQuqrter("下半年");
cycle.activate(resultPage);
}
}
:idea: [/size]