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

View File

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