IDEMPIERE-672 Zk: Generate shipment and invoice Form auto close and with broken refresh implementation.

This commit is contained in:
Heng Sin Low 2013-03-01 17:44:10 +08:00
parent f68ac8d544
commit ae88ddd369
1 changed files with 15 additions and 5 deletions

View File

@ -93,8 +93,8 @@ public class WGenForm extends ADForm implements EventListener<Event>, WTableMode
private Tabbox tabbedPane = new Tabbox(); private Tabbox tabbedPane = new Tabbox();
private Borderlayout selPanel = new Borderlayout(); private Borderlayout selPanel = new Borderlayout();
private Grid selNorthPanel = GridFactory.newGridLayout(); private Grid selNorthPanel = GridFactory.newGridLayout();
private ConfirmPanel confirmPanelSel = new ConfirmPanel(true); private ConfirmPanel confirmPanelSel = new ConfirmPanel(true, true, false, false, false, false, false);
private ConfirmPanel confirmPanelGen = new ConfirmPanel(false, true, false, false, false, false, false); private ConfirmPanel confirmPanelGen = new ConfirmPanel(false, false, false, false, false, false, false);
private StatusBarPanel statusBar = new StatusBarPanel(); private StatusBarPanel statusBar = new StatusBarPanel();
private Borderlayout genPanel = new Borderlayout(); private Borderlayout genPanel = new Borderlayout();
private Html info = new Html(); private Html info = new Html();
@ -256,18 +256,28 @@ public class WGenForm extends ADForm implements EventListener<Event>, WTableMode
dispose(); dispose();
return; return;
} }
else if (e.getTarget().getId().equals(ConfirmPanel.A_REFRESH))
{
postQueryEvent();
}
else if (e.getTarget() instanceof Tab) else if (e.getTarget() instanceof Tab)
{ {
int index = tabbedPane.getSelectedIndex(); int index = tabbedPane.getSelectedIndex();
genForm.setSelectionActive(index == 0); genForm.setSelectionActive(index == 0);
if (index == 0 && miniTable.getSelectedCount() > 0)
{
postQueryEvent();
}
return; return;
} }
else if (e.getTarget().getId().equals(ConfirmPanel.A_OK))
{
genForm.validate();
}
else else
{ {
super.onEvent(e); super.onEvent(e);
} }
genForm.validate();
} // actionPerformed } // actionPerformed
/** /**