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:
vpj-cd 2008-09-28 00:26:14 +00:00
parent 80fdaf1930
commit 636b1175e4
2 changed files with 6 additions and 2 deletions

View File

@ -848,8 +848,8 @@ public class GridTable extends AbstractTableModel
m_changed = changed;
if (!changed)
m_rowChanged = -1;
if (changed)
fireDataStatusIEvent("", "");
//if (changed)
// fireDataStatusIEvent("", "");
} // setChanged
/**

View File

@ -1019,7 +1019,11 @@ public final class APanel extends CPanel
aLast.setEnabled(!lastRow);
// update Change
boolean changed = e.isChanged() || e.isInserting();
if(e.getAD_Message() != null && e.getAD_Message().equals("Saved"))
changed = false;
boolean readOnly = m_curTab.isReadOnly();
boolean insertRecord = !readOnly;
if (insertRecord)