package inbasis.ui.opticket; import inbasis.domain.windfarm.Windfarm; import inbasis.system.IBSServer; import inbasis.system.ui.SearchWindow; import inbasis.system.ui.common.SCombobox; import inbasis.system.ui.common.SEDatebox; import inbasis.system.ui.common.SSDatebox; import inbasis.util.DateUtil; import inbasis.util.Util; import java.text.SimpleDateFormat; import java.util.Calendar; import java.util.Date; import java.util.List; import java.util.Map; public class OpticketRptWindow extends SearchWindow { private static final long serialVersionUID = -6720100007092979186L; @SuppressWarnings("static-access") @Override public void onCreate() throws Exception { super.onCreate(); SCombobox windfarm = (SCombobox)this.getFellow("windfarm"); List list = IBSServer.getIBSServer().getBaseDao().findWithQuery(Windfarm.class,"wfname!='集控中心'"); for(Windfarm l:list){ windfarm.appendItem(l.getWfname()); if(this.getLaborInfo().getDeptnum().equals(l.getWfname())){ windfarm.setValue(l.getWfname()); } } /*String str[] = {"风机工作票","电气第一种工作票","电气第二种工作票","动火工作票"}; for(int i=0;i end.getTime()){ throw new Exception("报表条件开始时间不能在结束时间之后,请确认!"); } super.search(); } }