Product Info can display data from another client
Link to SF Tracker: http://sourceforge.net/support/tracker.php?aid=3030365
This commit is contained in:
parent
4c9d85ca8a
commit
6db76a913d
|
@ -426,21 +426,7 @@ public class InfoProduct extends Info implements ActionListener, ChangeListener
|
|||
rs = null; pstmt = null;
|
||||
}
|
||||
|
||||
try {
|
||||
sql = "SELECT M_Product_ID FROM M_Product WHERE Value = ?";
|
||||
pstmt = DB.prepareStatement(sql, null);
|
||||
pstmt.setString(1, (String)obj);
|
||||
rs = pstmt.executeQuery();
|
||||
if(rs.next())
|
||||
m_M_Product_ID = rs.getInt(1);
|
||||
} catch (Exception e) {
|
||||
log.log(Level.WARNING, sql, e);
|
||||
}
|
||||
finally
|
||||
{
|
||||
DB.close(rs, pstmt);
|
||||
rs = null; pstmt = null;
|
||||
}
|
||||
m_M_Product_ID = getSelectedRowKey();
|
||||
|
||||
sql = m_sqlSubstitute;
|
||||
log.finest(sql);
|
||||
|
|
Loading…
Reference in New Issue