Product Info can display data from another client
Link to SF Tracker: http://sourceforge.net/support/tracker.php?aid=3030365 * Implement the same solution from phib in zkwebui
This commit is contained in:
parent
6db76a913d
commit
c3246f437a
|
@ -556,21 +556,7 @@ public class InfoProductPanel extends InfoPanel implements EventListener
|
||||||
rs = null; pstmt = null;
|
rs = null; pstmt = null;
|
||||||
}
|
}
|
||||||
|
|
||||||
try {
|
m_M_Product_ID = getSelectedRowKey();
|
||||||
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;
|
|
||||||
}
|
|
||||||
|
|
||||||
sql = m_sqlSubstitute;
|
sql = m_sqlSubstitute;
|
||||||
log.finest(sql);
|
log.finest(sql);
|
||||||
|
|
Loading…
Reference in New Issue