IDEMPIERE-369 Master Detail layout improvements. 1) Added top border for form slip bar. 2) Fixed "When you open a document window and there are no 'day' records - it's opened in insert record mode, but the toolbar is all disabled, no undo or save buttons. After you change any field the toolbar is updated correctly."
This commit is contained in:
parent
e915e766b6
commit
a32bdcbf51
|
@ -451,13 +451,22 @@ public abstract class AbstractADWindowContent extends AbstractUIPart implements
|
|||
|
||||
private void initQueryOnNew(MQuery result) {
|
||||
GridTab curTab = adTabbox.getSelectedGridTab();
|
||||
boolean onNew = false;
|
||||
if (curTab.isHighVolume() && m_findCreateNew)
|
||||
onNew();
|
||||
onNew = true;
|
||||
else if (result == null && curTab.getRowCount() == 0 && Env.isAutoNew(ctx, curWindowNo))
|
||||
onNew();
|
||||
onNew = true;
|
||||
else if (!curTab.isReadOnly() && curTab.isQueryNewRecord())
|
||||
onNew = true;
|
||||
if (onNew) {
|
||||
Executions.schedule(AEnv.getDesktop(), new EventListener<Event>() {
|
||||
@Override
|
||||
public void onEvent(Event event) throws Exception {
|
||||
onNew();
|
||||
}
|
||||
}, new Event("onInsert"));
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @param query
|
||||
|
@ -1211,7 +1220,9 @@ public abstract class AbstractADWindowContent extends AbstractUIPart implements
|
|||
{
|
||||
adTabbox.updateDetailPaneToolbar(changed, readOnly);
|
||||
}
|
||||
toolbar.enableIgnore(adTabbox.needSave(true, false));
|
||||
toolbar.enableIgnore(adTabbox.needSave(true, false) ||
|
||||
adTabbox.getSelectedGridTab().isNew() ||
|
||||
(adTabbox.getSelectedDetailADTabpanel() != null && adTabbox.getSelectedDetailADTabpanel().getGridTab().isNew()));
|
||||
|
||||
if (changed && !readOnly && !toolbar.isSaveEnable() ) {
|
||||
if (tabPanel.getGridTab().getRecord_ID() > 0) {
|
||||
|
|
|
@ -427,6 +427,10 @@ div.wc-modal, div.wc-modal-none, div.wc-highlighted, div.wc-highlighted-none {
|
|||
height: 250px;
|
||||
}
|
||||
|
||||
.adwindow-gridview-detail + .z-south-splt {
|
||||
border-top: 1px solid #C5C5C5;
|
||||
}
|
||||
|
||||
.adwindow-gridview-detail .z-south-body {
|
||||
padding-top: 1px;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue