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:
parent
314dde0b0f
commit
1a579c1f61
|
@ -54,6 +54,7 @@ import org.compiere.minigrid.MiniTable;
|
||||||
import org.compiere.model.MColumn;
|
import org.compiere.model.MColumn;
|
||||||
import org.compiere.model.MQuery;
|
import org.compiere.model.MQuery;
|
||||||
import org.compiere.model.MRefList;
|
import org.compiere.model.MRefList;
|
||||||
|
import org.compiere.model.MRole;
|
||||||
import org.compiere.model.MSysConfig;
|
import org.compiere.model.MSysConfig;
|
||||||
import org.compiere.swing.CButton;
|
import org.compiere.swing.CButton;
|
||||||
import org.compiere.swing.CComboBox;
|
import org.compiere.swing.CComboBox;
|
||||||
|
@ -397,6 +398,8 @@ public class WFActivity extends CPanel
|
||||||
//
|
//
|
||||||
//+ ") ORDER BY a.Priority DESC, Created";
|
//+ ") ORDER BY a.Priority DESC, Created";
|
||||||
int AD_User_ID = Env.getAD_User_ID(Env.getCtx());
|
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;
|
PreparedStatement pstmt = null;
|
||||||
ResultSet rs = null;
|
ResultSet rs = null;
|
||||||
try
|
try
|
||||||
|
@ -451,6 +454,8 @@ public class WFActivity extends CPanel
|
||||||
//
|
//
|
||||||
+ ") ORDER BY a.Priority DESC, Created";
|
+ ") ORDER BY a.Priority DESC, Created";
|
||||||
int AD_User_ID = Env.getAD_User_ID(Env.getCtx());
|
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;
|
PreparedStatement pstmt = null;
|
||||||
ResultSet rs = null;
|
ResultSet rs = null;
|
||||||
try
|
try
|
||||||
|
|
Loading…
Reference in New Issue