fwOA獲取當前使用者資訊及常用資料庫表

2021-10-24 16:44:25 字數 938 閱讀 1109

user user = hrmuservarify.

getuser

(request, response)

;//獲取使用者資訊

int userid=user.

getuid()

;//使用者id

"userid="+userid);

int department=user.

getuserdepartment()

;//使用者所在部門

注:

update  hrmresource set password=

'c4ca4238a0b923820dcc509a6f75849b'

update hrmresourcemanager set password =

'c4ca4238a0b923820dcc509a6f75849b'

where loginid =

'sysadmin'

人力資源相關 表名

說明hrmresource

人力資源基本資訊表

hrmdepartment

人力資源部門表

hrmroles

角色資訊表

hrmrolemembers

角色人員

hrmjobtitles

人力資源崗位表

流程相關 表名

說明workflow_requestbase

請求基本資訊

workflow_currentoperator

請求節點操作人

workflow_requestlog

請求簽字意見

workflow_nownode

請求當前節點

workflow_nodebase

節點資訊

注:

獲取系統當前的程序及模組資訊

1 bool enumprocesses dword lpidprocess,dword cb,dword cbneeded 獲取當前系統的程序id列表。lpidprocess為儲存程序id的陣列,cb為陣列大小,cbneeded為實際的系統程序數 2 handle openprocess dwor...

Spring security 獲取當前使用者

在頁面中引入標籤 1 taglibprefix sec uri 然後 1 username 2 如果要在程式中獲得 看了網上很多寫法都是在程式中寫這樣的 1 userdetails userdetails userdetails securitycontextholder.getcontext ge...

怎樣獲取使用者及使用者組資訊

利用struct passwd這個結構體就可以獲取使用者的資訊 此結構體如下所示 struct passwd 但是我們如何獲得passwd相應的資料呢?此時我們可以通過 struct sta buf這個結構體獲取使用者的id,只要我們知道了使用者的id,就可以通過getpwuid 獲取使用者的pas...