<%@LANGUAGE="VBSCRIPT" CODEPAGE="65001"%>
|
<%Session.CodePage=65001%>
|
<!--#include virtual="/inc/chkadmin.gds"-->
|
<!--#include virtual="/inc/function.gds"-->
|
<%
|
HospDepartmentSearchTXT=trim(Request("HospDepartmentSearchTXT"))
|
OA_CompetencyID=trim(Request("OA_CompetencyID"))
|
acc1=trim(Request("page"))
|
t=trim(Request("t"))
|
if acc1="" then acc1=1
|
acc2=1
|
i=0
|
acc3=0
|
Set rs = Server.CreateObject("ADODB.Recordset")
|
if len(HospDepartmentSearchTXT)>0 then
|
sql="select vId,vtext from dictionary where vType=1 and vtitle='HospitalDepartment' and (vtext like '%"&HospDepartmentSearchTXT&"%') order by vOrder,vID"
|
else
|
sql="select vId,vtext from dictionary where vType=1 and vtitle='HospitalDepartment' order by vOrder"
|
end if
|
rs.open Sql,objConn,1,1
|
if not rs.eof then
|
rs.pagesize=30
|
rs.absolutepage=acc1
|
acc2=rs.pagecount
|
acc3=rs.recordcount
|
end If
|
%>
|
<script language=javascript>
|
var HospDepartmentListArray=new Array()
|
<%
|
do while not rs.Eof and i<30
|
HospDID = rs("vId")
|
HospDName = rs("vtext")
|
%>
|
HospDepartmentListArray[<%=i%>]=new Array("<%=HospDID%>","<%=HospDName%>")
|
<%i=i+1
|
rs.movenext
|
loop
|
rs.close()
|
%>
|
parent.JS_HospDepartmentList(HospDepartmentListArray,<%=acc1%>,<%=acc2%>,'<%=HospDepartmentSearchTXT%>',<%=acc3%>);
|
</script>
|
|
|
<%Response.End%>
|