/**
* 获取当前登录人员
* @param ctx
* @return
*/
public static PersonInfo getPerson(Context ctx){
PersonInfo personinfo = null;
UserInfo userInfo = ContextUtil.getCurrentUserInfo(ctx);
String name = "";
if(userInfo != null){
name = userInfo.getName();
}
try {
PersonCollection Personcollection = PersonFactory.getLocalInstance(ctx).getPersonCollection("where name = '" + name +"'");
personinfo = Personcollection.get(0);
} catch (BOSException e) {
e.printStackTrace();
}
return personinfo;
}
金蝶EAS 获取当前登录人员
最新推荐文章于 2023-03-09 09:44:26 发布