Backed out of changeset 9552:c071e95a73ab
This commit is contained in:
parent
d06505315c
commit
72e84378b8
|
@ -1389,7 +1389,6 @@ public abstract class AbstractADWindowContent extends AbstractUIPart implements
|
||||||
|
|
||||||
boolean changed = e.isChanged() || e.isInserting();
|
boolean changed = e.isChanged() || e.isInserting();
|
||||||
boolean readOnly = adTabbox.getSelectedGridTab().isReadOnly();
|
boolean readOnly = adTabbox.getSelectedGridTab().isReadOnly();
|
||||||
boolean processed = "Y".equals(Env.getContext(Env.getCtx(), getWindowNo(), "Processed", true));
|
|
||||||
boolean insertRecord = !readOnly;
|
boolean insertRecord = !readOnly;
|
||||||
if (!detailTab)
|
if (!detailTab)
|
||||||
{
|
{
|
||||||
|
@ -1402,7 +1401,7 @@ public abstract class AbstractADWindowContent extends AbstractUIPart implements
|
||||||
}
|
}
|
||||||
toolbar.enableNew(!changed && insertRecord && !tabPanel.getGridTab().isSortTab());
|
toolbar.enableNew(!changed && insertRecord && !tabPanel.getGridTab().isSortTab());
|
||||||
toolbar.enableRefresh(!changed);
|
toolbar.enableRefresh(!changed);
|
||||||
toolbar.enableDelete(!changed && !readOnly && !tabPanel.getGridTab().isSortTab() && !processed);
|
toolbar.enableDelete(!changed && !readOnly && !tabPanel.getGridTab().isSortTab());
|
||||||
//
|
//
|
||||||
if (readOnly && adTabbox.getSelectedGridTab().isAlwaysUpdateField())
|
if (readOnly && adTabbox.getSelectedGridTab().isAlwaysUpdateField())
|
||||||
{
|
{
|
||||||
|
@ -1411,7 +1410,7 @@ public abstract class AbstractADWindowContent extends AbstractUIPart implements
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
adTabbox.updateDetailPaneToolbar(changed, readOnly || processed);
|
adTabbox.updateDetailPaneToolbar(changed, readOnly);
|
||||||
}
|
}
|
||||||
toolbar.enableIgnore(adTabbox.needSave(true, false) ||
|
toolbar.enableIgnore(adTabbox.needSave(true, false) ||
|
||||||
adTabbox.getSelectedGridTab().isNew() ||
|
adTabbox.getSelectedGridTab().isNew() ||
|
||||||
|
|
Loading…
Reference in New Issue