[ adempiere-Bugs-2707469 ] ZK WebUI: grid Missing in "Material Transactions"
This commit is contained in:
parent
ac51d2a734
commit
5714dd4493
|
@ -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);
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue