@Override
 public void onEvent(Event event) throws Exception {
   try {
     Date begin_date = view.getBeginDatabox().getValue();
     Date end_date = view.getEndDatabox().getValue();
     if (view.getSelectedNode() == null) {
       Messagebox.show(
           ErrorMessage.UNSELECT_MONITOR, "提示", Messagebox.OK, Messagebox.INFORMATION);
       return;
     }
     if (begin_date.after(end_date)) {
       Messagebox.show(ErrorMessage.TIME_ERROR, "提示", Messagebox.OK, Messagebox.INFORMATION);
       return;
     }
     Events.sendEvent(new Event(Events.ON_CLICK, view.getQueryBtn()));
     Window win = (Window) Executions.createComponents("/main/report/export.zul", null, null);
     win.setAttribute("colorlist", view.getColorlist());
     win.setAttribute("stateBeanData", view.getStateBean());
     win.setAttribute("persistTimeData", view.getStateItems());
     win.setSizable(false);
     win.setClosable(true);
     win.doModal();
   } catch (Exception e) {
     e.printStackTrace();
   }
 }
 private Component createDialog(Component content, String title) {
   Window dialog = new Window();
   dialog.appendChild(content);
   dialog.setTitle(title);
   dialog.setClosable(true);
   dialog.setSizable(true);
   dialog.setWidth("50%");
   dialog.setHeight("50%");
   dialog.setBorder(true);
   dialog.setParent(view);
   dialog.setMode(Window.MODAL);
   return dialog;
 }