BF [2997593] - WFActivity panel displaying activities of all clients

https://sourceforge.net/tracker/?func=detail&atid=879332&aid=2997593&group_id=176962
This commit is contained in:
trifonnt 2010-05-07 14:07:04 +00:00
parent 314dde0b0f
commit 1a579c1f61
1 changed files with 5 additions and 0 deletions

View File

@ -54,6 +54,7 @@ import org.compiere.minigrid.MiniTable;
import org.compiere.model.MColumn;
import org.compiere.model.MQuery;
import org.compiere.model.MRefList;
import org.compiere.model.MRole;
import org.compiere.model.MSysConfig;
import org.compiere.swing.CButton;
import org.compiere.swing.CComboBox;
@ -397,6 +398,8 @@ public class WFActivity extends CPanel
//
//+ ") ORDER BY a.Priority DESC, Created";
int AD_User_ID = Env.getAD_User_ID(Env.getCtx());
MRole role = MRole.get(Env.getCtx(), Env.getAD_Role_ID(Env.getCtx()));
sql = role.addAccessSQL(sql, "a", true, false);
PreparedStatement pstmt = null;
ResultSet rs = null;
try
@ -451,6 +454,8 @@ public class WFActivity extends CPanel
//
+ ") ORDER BY a.Priority DESC, Created";
int AD_User_ID = Env.getAD_User_ID(Env.getCtx());
MRole role = MRole.get(Env.getCtx(), Env.getAD_Role_ID(Env.getCtx()));
sql = role.addAccessSQL(sql, "a", true, false);
PreparedStatement pstmt = null;
ResultSet rs = null;
try