[ adempiere-Bugs-2707469 ] ZK WebUI: grid Missing in "Material Transactions"

This commit is contained in:
Heng Sin Low 2009-03-24 02:48:52 +00:00
parent ac51d2a734
commit 5714dd4493
2 changed files with 12 additions and 2 deletions

View File

@ -72,6 +72,8 @@ public class WTrxMaterial extends ADForm
implements EventListener, ValueChangeListener implements EventListener, ValueChangeListener
{ {
private static final long serialVersionUID = 1L;
/** GridController */ /** GridController */
private ADTabpanel m_gridController = null; private ADTabpanel m_gridController = null;
/** MWindow */ /** MWindow */
@ -222,7 +224,8 @@ public class WTrxMaterial extends ADForm
// //
m_gridController = new ADTabpanel(); m_gridController = new ADTabpanel();
m_gridController.init(null, m_WindowNo, m_mTab, m_mWindow); m_gridController.init(null, m_WindowNo, m_mTab, m_mWindow);
m_gridController.switchRowPresentation(); if (!m_gridController.isGridView())
m_gridController.switchRowPresentation();
Center center = new Center(); Center center = new Center();
mainLayout.appendChild(center); mainLayout.appendChild(center);
center.setFlex(true); center.setFlex(true);

View File

@ -498,7 +498,7 @@ DataStatusListener, IADTabpanel, VetoableChangeListener
SimpleTreeModel.initADTree(tree, AD_Tree_ID, windowNo); SimpleTreeModel.initADTree(tree, AD_Tree_ID, windowNo);
} }
if (!gridTab.isSingleRow()) if (!gridTab.isSingleRow() && !isGridView())
switchRowPresentation(); switchRowPresentation();
} }
@ -1104,5 +1104,12 @@ DataStatusListener, IADTabpanel, VetoableChangeListener
return; return;
} // saveConfirmation } // saveConfirmation
} }
/**
* @return boolean
*/
public boolean isGridView() {
return listPanel.isVisible();
}
} }