gettruename.asp

来自「功能齐全的oa系统」· ASP 代码 · 共 30 行

ASP
30
字号
<%
'**************************************************************************
'输出以Vbcrlf分割的姓名列表
'人员姓名存放于表t_OA_SYS_Account_Character里的 TrueName字段,索引为AccountID
'**************************************************************************

Function GetTrueName(ObjDB,AccountID)

	If isNull(AccountID) Then
		GetTrueName = ""
		Exit Function
	End If
	If AccountID = "" Then
		GetTrueName = ""
		Exit Function
	End If

	Dim StrSQL,C,ObjRS

	Set C = Server.CreateObject("CMS2003.DBHandle")
	C.Init(ObjDB)
		
	StrSQL = "Select TrueName From t_OA_SYS_Account_Character Where AccountID  ='" & AccountID & "'"
	
	Set ObjRS = C.View(StrSQL)
	GetTrueName = ObjRS("TrueName")
		
End Function

%>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?