Fixed [ 2133097 ] The dataStatusChanged event do not work rightly
http://sourceforge.net/tracker/index.php?func=detail&aid=2133097&group_id=176962&atid=879332
This commit is contained in:
parent
80fdaf1930
commit
636b1175e4
|
|
@ -848,8 +848,8 @@ public class GridTable extends AbstractTableModel
|
||||||
m_changed = changed;
|
m_changed = changed;
|
||||||
if (!changed)
|
if (!changed)
|
||||||
m_rowChanged = -1;
|
m_rowChanged = -1;
|
||||||
if (changed)
|
//if (changed)
|
||||||
fireDataStatusIEvent("", "");
|
// fireDataStatusIEvent("", "");
|
||||||
} // setChanged
|
} // setChanged
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
|
|
@ -1019,7 +1019,11 @@ public final class APanel extends CPanel
|
||||||
aLast.setEnabled(!lastRow);
|
aLast.setEnabled(!lastRow);
|
||||||
|
|
||||||
// update Change
|
// update Change
|
||||||
|
|
||||||
boolean changed = e.isChanged() || e.isInserting();
|
boolean changed = e.isChanged() || e.isInserting();
|
||||||
|
|
||||||
|
if(e.getAD_Message() != null && e.getAD_Message().equals("Saved"))
|
||||||
|
changed = false;
|
||||||
boolean readOnly = m_curTab.isReadOnly();
|
boolean readOnly = m_curTab.isReadOnly();
|
||||||
boolean insertRecord = !readOnly;
|
boolean insertRecord = !readOnly;
|
||||||
if (insertRecord)
|
if (insertRecord)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue