<%@LANGUAGE="VBSCRIPT" CODEPAGE="65001"%>
|
<%Session.CodePage=65001%>
|
<!--#include virtual="/inc/chkadmin.gds"-->
|
<!--#include virtual="/inc/function.gds"-->
|
<%
|
if isDepartment("0604")=0 then
|
Response.Redirect "/"
|
Response.End()
|
end If
|
|
'各种返回信息
|
SystemMessageType=trim(Request("SystemMessageType"))
|
SMT=trim(Request("SMT"))
|
if SMT="1" then
|
SystemMessageTXT="数据不足!!!"
|
elseif SMT="2" then
|
SystemMessageTXT="医院资料修改完成"
|
elseif SMT="3" then
|
SystemMessageTXT="新建医院资料完成"
|
elseif SMT="4" then
|
SystemMessageTXT="医院资料删除完成"
|
elseif SMT="5" then
|
SystemMessageTXT="医院资料重复"
|
elseif SMT="6" then
|
SystemMessageTXT="请选择需要修改的项目"
|
elseif SMT="7" then
|
SystemMessageTXT="医院资料合并完成"
|
elseif SMT="8" then
|
SystemMessageTXT="请选择需要合并的项目"
|
end if
|
|
searchTXT=trim(Request("searchTXT"))
|
HospSearchID=trim(Request("HospSearchID"))
|
Set rs = Server.CreateObject("ADODB.Recordset")
|
|
'医院等级列表
|
HospLevels = ""
|
sql="select vId,vtext from dictionary where vType=1 and vtitle='HospLevel' order by vOrder"
|
rs.open Sql,objConn,1,1
|
do while not rs.Eof
|
HospLevels = HospLevels & rs("vID") &","& rs("vtext") & "|"
|
rs.movenext
|
Loop
|
rs.close()
|
HospLevels = left(HospLevels,len(HospLevels)-1)
|
HospLevelsPS = SPLIT(HospLevels,"|")
|
|
page_URL="&searchTXT="&searchTXT&"&HospSearchID="&HospSearchID&"&h_menu1_1=1"
|
%>
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
<html xmlns="http://www.w3.org/1999/xhtml">
|
<head>
|
<title><%=LindemanAdmin%></title>
|
<!--#include virtual="/inc/ccs.gds"-->
|
</head>
|
<body onkeydown="xKeyEvent(event)">
|
<!--#INCLUDE FILE="menu_header.gds" -->
|
<!-- content -->
|
<div id="content">
|
<!--INCLUDE FILE="AdminUser_menu_left.gds" -->
|
<!-- content / right -->
|
<div id="right" style="margin: -10px 60px 0 60px;">
|
<!-- table -->
|
<div class="box">
|
<!-- box / title -->
|
<div class="title">
|
<h5>医院名录</h5>
|
<ul class="links">
|
<%If isDepartment("060402")=1 Then%>
|
<li><a onclick="javascript:HospCreate.style.display='block';">新建</a></li>
|
<li><a onClick="form1_Hosp_merge()">合并</a></li>
|
<li><a onClick="form1_Hosp_update()">修改</a></li>
|
<li><a onClick="form1_Hosp_delete()">删除</a></li>
|
<%End If%>
|
<div class="search">
|
<form action="HospData.gds?h_menu1_1=<%=session("h_menu1_1")%>" method="post">
|
<div class="input">
|
<input type="text" id="search" name="searchTXT" value="<%=searchTXT%>" />
|
</div>
|
<div class="button">
|
<input type="submit" name="submit" value="搜索" />
|
</div>
|
</form>
|
</div>
|
</ul>
|
<script LANGUAGE="javascript">
|
//合并医院
|
function form1_Hosp_merge(){
|
document.form1.action = "admin_save.gds";
|
document.form1.admin_save.value = "95";
|
form1.submit();
|
}
|
//修改医院
|
function form1_Hosp_update(){
|
document.form1.action = "admin_save.gds";
|
document.form1.admin_save.value = "48";
|
form1.submit();
|
}
|
//删除医院
|
function form1_Hosp_delete(){
|
document.form1.action = "admin_save.gds";
|
document.form1.admin_save.value = "49";
|
form1.submit();
|
}
|
//选择修改医院
|
function form1_Hosp_Edit(id){
|
if (document.getElementById('Show_HospShort_'+id).style.display=="none")
|
{
|
document.getElementById('Show_HospName_'+id).style.display='';
|
document.getElementById('Edit_HospName_'+id).style.display='none';
|
document.getElementById('HospName_'+id).disabled=true;
|
document.getElementById('Show_HospShort_'+id).style.display='';
|
document.getElementById('Edit_HospShort_'+id).style.display='none';
|
document.getElementById('HospShort_'+id).disabled=true;
|
document.getElementById('Show_HospLevel_'+id).style.display='';
|
document.getElementById('Edit_HospLevel_'+id).style.display='none';
|
document.getElementById('HospLevel_'+id).disabled=true;
|
document.getElementById('Show_HopsProvince_'+id).style.display='';
|
document.getElementById('Edit_HopsProvince_'+id).style.display='none';
|
document.getElementById('HopsProvince_'+id).disabled=true;
|
document.getElementById('Show_HopsArea_'+id).style.display='';
|
document.getElementById('Edit_HopsArea_'+id).style.display='none';
|
document.getElementById('HopsArea_'+id).disabled=true;
|
document.getElementById('Show_HopsCity_'+id).style.display='';
|
document.getElementById('Edit_HopsCity_'+id).style.display='none';
|
document.getElementById('HopsCity_'+id).disabled=true;
|
document.getElementById('Show_HospAddress_'+id).style.display='';
|
document.getElementById('Edit_HospAddress_'+id).style.display='none';
|
document.getElementById('HospAddress_'+id).disabled=true;
|
document.getElementById('Show_HospTEL_'+id).style.display='';
|
document.getElementById('Edit_HospTEL_'+id).style.display='none';
|
document.getElementById('HospTEL_'+id).disabled=true;
|
document.getElementById('Show_HospOAID_'+id).style.display='';
|
document.getElementById('Edit_HospOAID_'+id).style.display='none';
|
document.getElementById('HospOAID_'+id).disabled=true;
|
document.getElementById('Show_HospIntroducerID_'+id).style.display='';
|
document.getElementById('Edit_HospIntroducerID_'+id).style.display='none';
|
document.getElementById('HospIntroducerID_'+id).disabled=true;
|
}
|
else
|
{
|
document.getElementById('Show_HospName_'+id).style.display='none';
|
document.getElementById('Edit_HospName_'+id).style.display='';
|
document.getElementById('HospName_'+id).disabled=false;
|
document.getElementById('Show_HospShort_'+id).style.display='none';
|
document.getElementById('Edit_HospShort_'+id).style.display='';
|
document.getElementById('HospShort_'+id).disabled=false;
|
document.getElementById('Show_HospLevel_'+id).style.display='none';
|
document.getElementById('Edit_HospLevel_'+id).style.display='';
|
document.getElementById('HospLevel_'+id).disabled=false;
|
document.getElementById('Show_HopsProvince_'+id).style.display='none';
|
document.getElementById('Edit_HopsProvince_'+id).style.display='';
|
document.getElementById('HopsProvince_'+id).disabled=false;
|
document.getElementById('Show_HopsCity_'+id).style.display='none';
|
document.getElementById('Edit_HopsCity_'+id).style.display='';
|
document.getElementById('HopsCity_'+id).disabled=false;
|
document.getElementById('Show_HopsArea_'+id).style.display='none';
|
document.getElementById('Edit_HopsArea_'+id).style.display='';
|
document.getElementById('HopsArea_'+id).disabled=false;
|
document.getElementById('Show_HospAddress_'+id).style.display='none';
|
document.getElementById('Edit_HospAddress_'+id).style.display='';
|
document.getElementById('HospAddress_'+id).disabled=false;
|
document.getElementById('Show_HospTEL_'+id).style.display='none';
|
document.getElementById('Edit_HospTEL_'+id).style.display='';
|
document.getElementById('HospTEL_'+id).disabled=false;
|
document.getElementById('Show_HospOAID_'+id).style.display='none';
|
document.getElementById('Edit_HospOAID_'+id).style.display='';
|
document.getElementById('HospOAID_'+id).disabled=false;
|
document.getElementById('Show_HospIntroducerID_'+id).style.display='none';
|
document.getElementById('Edit_HospIntroducerID_'+id).style.display='';
|
document.getElementById('HospIntroducerID_'+id).disabled=false;
|
}
|
|
|
}
|
//新建医院-关闭窗口
|
function JS_HospCreateClose()
|
{
|
HospCreate.style.display="none";
|
}
|
//新建医院-保存
|
function JS_HospCreateSave()
|
{
|
form2.submit();
|
}
|
</script>
|
</div>
|
<div class="dialogJ dialogJfix dialogJshadow" id="HospCreate" style="width: 370px; right: 300px; top: 150px;display:none;">
|
<div class="dialogJtitle">
|
<a href="javascript:JS_HospCreateClose();" class="dialogJclose" title="关闭本窗口"> </a>
|
<span class="dialogJtxt" id="EditPhotoTXT">新建医院资料</span>
|
</div>
|
<form id="form2" name="form2" action="admin_save.gds" method="post">
|
<input name="admin_save" type="hidden" value="47">
|
<input name="searchTXT" type="hidden" value="<%=searchTXT%>">
|
<input name="page" type="hidden" value="<%=request("page")%>">
|
<div class="dialogJcontent">
|
<div class="dialogJbody" id="dialogJbody" style="height: 322px;">
|
<div class="modify-album-name">
|
<p class="album-tips"></p>
|
<span>名称:</span>
|
<input id="HospName" name="HospName" type="text" value="" maxlength="99/">
|
</div>
|
<div class="modify-album-name">
|
<p class="album-tips"></p>
|
<span>简称:</span>
|
<input id="HospShort" name="HospShort" type="text" value="" maxlength="99/">
|
</div>
|
<div class="modify-album-name">
|
<p class="album-tips"></p>
|
<span>级别:</span>
|
<select id="HospLevel" name="HospLevel" style="padding: 5px 0 5px 8px;">
|
<option value="0">请选择</option>
|
<%for z = 0 to UBOUND(HospLevelsPS)
|
HospLevelsPS1=SPLIT(HospLevelsPS(z),",")
|
HospLevelID=HospLevelsPS1(0)
|
HospLevelName=HospLevelsPS1(1)
|
%>
|
<option value="<%=HospLevelID%>"><%=HospLevelName%></option>
|
<%next%>
|
</select>
|
</div>
|
<div class="modify-album-name">
|
<p class="album-tips"></p>
|
<span>省份:</span>
|
<input id="HopsProvince" name="HopsProvince" type="text" value="" maxlength="99/" style="width: 248px;">
|
</div>
|
<div class="modify-album-name">
|
<p class="album-tips"></p>
|
<span>城市:</span>
|
<input id="HopsCity" name="HopsCity" type="text" value="" maxlength="99/" style="width: 248px;">
|
</div>
|
<div class="modify-album-name">
|
<p class="album-tips"></p>
|
<span>地区:</span>
|
<input id="HopsArea" name="HopsArea" type="text" value="" maxlength="99/" style="width: 248px;">
|
</div>
|
<div class="modify-album-name">
|
<p class="album-tips"></p>
|
<span>地址:</span>
|
<input id="HospAddress" name="HospAddress" type="text" value="" maxlength="99/" style="width: 248px;">
|
</div>
|
<div class="modify-album-name">
|
<p class="album-tips"></p>
|
<span>电话:</span>
|
<input id="HospTEL" name="HospTEL" type="text" value="" maxlength="99/" style="width: 248px;">
|
</div>
|
</div>
|
</div>
|
</form>
|
<div class="dialogJanswers">
|
<input type="button" class="dialogJbtn first-child" onclick="JS_HospCreateSave()" value="确定">
|
<input type="button" class="dialogJbtn" onclick="JS_HospCreateClose()" value="取消">
|
</div>
|
</div>
|
<!-- end box / title -->
|
<%
|
acc1=request("page")
|
if acc1=empty then acc1=clng(1)
|
QuantityInt = 20
|
acc2=0
|
acc3=0
|
|
|
If searchTXT<>"" Then
|
sql="select IntroducerID from IntroducerData where IntroducerName='"&searchTXT&"'"
|
rs.open sql,objConn,1,1
|
if not rs.eof Then
|
searchSql=" and HospIntroducerID="&rs(0)
|
Else
|
searchTXT1 = Replace(searchTXT," ","%")
|
searchSql=" and (HospName like '%"&searchTXT1&"%' or HospShort like '%"&searchTXT1&"%' or HopsProvince like '%"&searchTXT1&"%' or HopsCity like '%"&searchTXT1&"%' or HopsArea like '%"&searchTXT1&"%')"
|
End If
|
rs.close()
|
End If
|
|
If HospSearchID<>"" Then
|
sql="select * from HospData where HospState>0 AND HospID="&HospSearchID&" order by HospID desc"
|
else
|
sql="select * from HospData where HospState>0"&searchSql&" order by HospID desc"
|
End If
|
'Response.Write sql
|
rs.open sql,objConn,1,1
|
if not rs.eof then
|
rs.pagesize=QuantityInt
|
rs.absolutepage=acc1
|
acc2=rs.pagecount
|
acc3=rs.recordcount
|
else
|
SystemMessageType=2
|
SystemMessageTXT="数据库中相关无数据!"
|
end if
|
%>
|
<!--#include virtual="/inc/SystemMessages.gds" -->
|
<div class="table">
|
<form id="form1" name="form1" action="" method="post">
|
<input name="admin_save" type="hidden" value="48">
|
<input name="HospSearchID" type="hidden" value="<%=HospSearchID%>">
|
<input name="searchTXT" type="hidden" value="<%=searchTXT%>">
|
<input name="page" type="hidden" value="<%=request("page")%>">
|
<table>
|
<thead>
|
<tr>
|
<th class="selected"><input type="checkbox" class="checkall" /></th>
|
<th>名称</th>
|
<th>简称</th>
|
<th>分管人员</th>
|
<th>分属介绍人</th>
|
<th>级别</th>
|
<th>省份</th>
|
<th>城市</th>
|
<th>地区</th>
|
<th>地址</th>
|
<th>电话</th>
|
<th class="last">状态</th>
|
</tr>
|
</thead>
|
<tbody>
|
|
<%i=1
|
do while not rs.Eof and i<=QuantityInt
|
HospID = rs("HospID")
|
HospName = rs("HospName") '名称
|
HospCityID = rs("HospCityID") '城市ID
|
HospShort = rs("HospShort") '简称
|
HopsProvince = rs("HopsProvince")'省
|
HopsCity = rs("HopsCity") '市
|
HopsArea = rs("HopsArea") '区
|
HospAddress = rs("HospAddress") '地址
|
HospTEL = rs("HospTEL") '电话
|
HospOAID = rs("HospOAID") '分管人员ID
|
HospIntroducerID= rs("HospIntroducerID") '分属介绍人ID
|
HospState = rs("HospState") '状态(0删除,1正常)
|
HospLevel = rs("HospLevel") '医院级别
|
If HospState="1" Then
|
HospState="正常"
|
ElseIf HospState="2" Then
|
HospState="保养维修"
|
End If
|
HospOAName=OAUser(HospOAID,"UserName")
|
If HospIntroducerID="" Or HospIntroducerID="0" Or isnull(HospIntroducerID) Then
|
HospIntroducerName="--"
|
Else
|
HospIntroducerName=IntroducerData(HospIntroducerID)
|
End If
|
i=i+1
|
%>
|
<tr>
|
<td class="selected" style='white-space: nowrap;'><input type="checkbox" id="HospID_<%=HospID%>" name="HospID" value="<%=HospID%>" onclick="javascript:form1_Hosp_Edit('<%=HospID%>')"/></td>
|
<td class="category" id="Show_HospName_<%=HospID%>" style="width: 20%;"><A HREF="#"><%=HospName%></A></td>
|
<td class="category" id="Edit_HospName_<%=HospID%>" style="display:none;"><input id="HospName_<%=HospID%>" name="HospName_<%=HospID%>" class="small" style="width:200px;text-align: center;" value="<%=HospName%>" type="text" disabled="true"></td>
|
<td class="category" id="Show_HospShort_<%=HospID%>"><A HREF="#"><%=HospShort%></A></td>
|
<td class="category" id="Edit_HospShort_<%=HospID%>" style="display:none;"><input id="HospShort_<%=HospID%>" name="HospShort_<%=HospID%>" class="small" style="width:120px;text-align: center;" value="<%=HospShort%>" type="text" disabled="true"></td>
|
<td class="category" id="Show_HospOAID_<%=HospID%>" style="width: 5%;"><%=Replace(HospOAName,",","<br>")%></td>
|
<td class="category" id="Edit_HospOAID_<%=HospID%>" style="display:none;"><input id="HospOAID_<%=HospID%>" name="HospOAID_<%=HospID%>" class="small" style="width:50px;text-align: center;" value="<%=HospOAID%>" type="text" disabled="true" onclick="javascript:JS_EntourageOpen('<%=HospID%>','-128');"></td>
|
<td class="category" id="Show_HospIntroducerID_<%=HospID%>" style="width: 5%;white-space: nowrap;"><%=HospIntroducerName%></td>
|
<td class="category" id="Edit_HospIntroducerID_<%=HospID%>" style="display:none;"><input id="HospIntroducerID_<%=HospID%>" name="HospIntroducerID_<%=HospID%>" class="small" style="width:50px;text-align: center;" value="<%=HospIntroducerID%>" type="text" disabled="true" onclick="javascript:JS_IntroducerOpen('<%=HospID%>','-128');"></td>
|
<td class="category" id="Show_HospLevel_<%=HospID%>" style="width: 5%;"><A HREF="#"><%=HospLevelA(HospLevel)%></A></td>
|
<td class="category" id="Edit_HospLevel_<%=HospID%>" style="display:none;">
|
<select id="HospLevel_<%=HospID%>" name="HospLevel_<%=HospID%>" disabled="true">
|
<%If CInt(HospLevel)=0 Then Response.Write "<option value=""0"">请选择</option>"%>
|
<%for z = 0 to UBOUND(HospLevelsPS)
|
HospLevelsPS1=SPLIT(HospLevelsPS(z),",")
|
HospLevelID=HospLevelsPS1(0)
|
HospLevelName=HospLevelsPS1(1)
|
%>
|
<option value="<%=HospLevelID%>"<%If CInt(HospLevelID)=CInt(HospLevel) Then Response.Write " selected"%>><%=HospLevelName%></option>
|
<%next%>
|
</select>
|
</td>
|
<td class="category" id="Show_HopsProvince_<%=HospID%>" style="width: 5%;white-space: nowrap;"><A HREF="#"><%=HopsProvince%></A></td>
|
<td class="category" id="Edit_HopsProvince_<%=HospID%>" style="display:none;"><input id="HopsProvince_<%=HospID%>" name="HopsProvince_<%=HospID%>" class="small" style="width:80px;text-align: center;" value="<%=HopsProvince%>" type="text" disabled="true"></td>
|
<td class="category" id="Show_HopsCity_<%=HospID%>" style="width: 5%;white-space: nowrap;"><A HREF="#"><%=HopsCity%></A></td>
|
<td class="category" id="Edit_HopsCity_<%=HospID%>" style="display:none;"><input id="HopsCity_<%=HospID%>" name="HopsCity_<%=HospID%>" class="small" style="width:80px;text-align: center;" value="<%=HopsCity%>" type="text" disabled="true"></td>
|
<td class="category" id="Show_HopsArea_<%=HospID%>" style='width: 5%;white-space: nowrap;'><A HREF="#"><%=HopsArea%></A></td>
|
<td class="category" id="Edit_HopsArea_<%=HospID%>" style="display:none;"><input id="HopsArea_<%=HospID%>" name="HopsArea_<%=HospID%>" class="small" style="width:80px;text-align: center;" value="<%=HopsArea%>" type="text" disabled="true"></td>
|
<td class="category" id="Show_HospAddress_<%=HospID%>" ><%=HospAddress%></td>
|
<td class="category" id="Edit_HospAddress_<%=HospID%>" style="display:none;"><input id="HospAddress_<%=HospID%>" name="HospAddress_<%=HospID%>" class="small" style="width:200px;" value="<%=HospAddress%>" type="text" disabled="true"></td>
|
<td class="category" id="Show_HospTEL_<%=HospID%>" style='white-space: nowrap;'><%=HospTEL%></td>
|
<td class="category" id="Edit_HospTEL_<%=HospID%>" style="display:none;"><input id="HospTEL_<%=HospID%>" name="HospTEL_<%=HospID%>" class="small" style="width:100px;text-align: center;" value="<%=HospTEL%>" type="text" disabled="true"></td>
|
|
<td class="category last" style="width: 5%;"><%=HospState%></td>
|
</tr>
|
<%rs.movenext
|
loop
|
rs.close()
|
%>
|
<%for j=i to 21%>
|
<tr>
|
<td class="selected"> </td>
|
<td> </td>
|
<td> </td>
|
<td> </td>
|
<td> </td>
|
<td> </td>
|
<td> </td>
|
<td> </td>
|
<td> </td>
|
<td> </td>
|
<td> </td>
|
<td class="last"> </td>
|
|
</tr>
|
<%next%>
|
<%If HospSearchID<>"" Then%>
|
<script>
|
document.getElementById("HospID_<%=HospSearchID%>").checked=true;
|
form1_Hosp_Edit('<%=HospSearchID%>');
|
|
</script>
|
<%End If%>
|
</tbody>
|
</table>
|
|
</form>
|
</div>
|
|
<div class="dialogJ dialogJfix dialogJshadow" id="window_Entourage" style="z-index: 50007; width: 350px; left: 0px; top: 0px;display:none;">
|
<div class="dialogJtitle">
|
<a href="javascript:JS_EntourageClose();" class="dialogJclose" title="关闭本窗口"> </a>
|
<span class="dialogJtxt">选择人员</span> <input type="text" id="EntourageSearchTXT" name="EntourageSearchTXT" value="<%=EntourageSearchTXT%>" style="width: 100px;" onkeyup="JS_EntourageSearch();"/> <input type="button" name="button3" value="查询" onclick="JS_EntourageSearch();"> <input type="button" name="button3" value="清空" onclick="JS_EntourageDel();">
|
</div>
|
<div class="dialogJcontent">
|
<div class="box">
|
<div class="table" style="padding: 0px;">
|
<input name="window_EntourageID" type="hidden" value="">
|
<input name="window_OA_CompetencyID" type="hidden" value="">
|
<table>
|
<thead>
|
<tr>
|
<th class="selected left"> </th>
|
<th class="category" style="text-align: center;">姓名</th>
|
<th class="category last" style="text-align: center;">手机</th>
|
</tr>
|
</thead>
|
<tbody id="EntourageList">
|
<%for j=0 to 6%>
|
<tr>
|
<td class="selected"> </td>
|
<td class="category"> </td>
|
<td class="category last"> </td>
|
</tr>
|
<%next%>
|
</tbody>
|
</table>
|
</div>
|
</div>
|
</div>
|
</div>
|
<script LANGUAGE="javascript">
|
//打开选择人员窗口
|
function JS_EntourageOpen(id,OA_CompetencyID)
|
{
|
var sTop=document.documentElement.scrollTop;
|
if (sTop==0) {sTop=document.body.scrollTop;}
|
var sLeft= document.documentElement.scrollLeft;
|
if (sLeft==0) {sLeft=document.body.scrollLeft;}
|
|
var dTop = document.getElementById("HospOAID_"+id).getBoundingClientRect().top;
|
if (dTop<200) {dTop=110;}
|
var dLeft = document.getElementById("HospOAID_"+id).getBoundingClientRect().left;
|
if (dLeft<200) {dLeft=200;}
|
window_Entourage.style.display="block";
|
window_Entourage.style.left=(dLeft-100)+"px";
|
window_Entourage.style.top=(sTop+dTop+30)+"px";
|
document.all.window_EntourageID.value=id;
|
document.all.window_OA_CompetencyID.value=OA_CompetencyID;
|
if (OA_CompetencyID!=0){window.HiddenFrame.location.replace('AdminUserSearch.gds?OrdClass=<%=ServiceOrdClass%>&OA_CompetencyID='+OA_CompetencyID);}
|
document.getElementById('EntourageSearchTXT').focus();
|
}
|
//关闭选择人员窗口
|
function JS_EntourageClose()
|
{
|
document.all.EntourageSearchTXT.value='';
|
document.all.window_EntourageID.value="";
|
window_Entourage.style.display="none";
|
}
|
//选择人员查询
|
function JS_EntourageSearch()
|
{
|
EntourageSearchTXT=document.all.EntourageSearchTXT.value;
|
OA_CompetencyID=document.all.window_OA_CompetencyID.value;
|
window.HiddenFrame.location.replace('AdminUserSearch.gds?OrdClass=<%=ServiceOrdClass%>&OA_CompetencyID='+OA_CompetencyID+'&EntourageSearchTXT='+EntourageSearchTXT);
|
}
|
function EnterPress(e){ //传入 event
|
var e = e || window.event;
|
if(e.keyCode == 13){JS_EntourageSearch();}
|
}
|
//选择人员
|
function JS_EntourageSave(OA_UserID,OA_UserName)
|
{
|
id=document.all.window_EntourageID.value;
|
OA_UserID_old=document.getElementById("HospOAID_"+id).value;
|
if (OA_UserID_old=='') {
|
document.getElementById("HospOAID_"+id).value=OA_UserID;
|
}else{
|
if (OA_UserID_old.indexOf(OA_UserID) == -1)
|
{
|
document.getElementById("HospOAID_"+id).value=document.getElementById("HospOAID_"+id).value+","+OA_UserID;
|
}
|
}
|
}
|
//选择人员清空
|
function JS_EntourageDel()
|
{
|
id=document.all.window_EntourageID.value;
|
document.getElementById("HospOAID_"+id).value='';
|
}
|
//显示人员列表窗口
|
function JS_EntourageList(EntourageListArray,acc1,acc2,EntourageSearchTXT,OA_CompetencyID,OA_CompetencyName)
|
{
|
var EntourageListHTML = "";
|
var i = 0;
|
if (EntourageListArray.length>0)
|
{
|
for (var i=0;i<EntourageListArray.length;i++)
|
{
|
EntourageListHTML = EntourageListHTML+"<tr onclick='JS_EntourageSave("+EntourageListArray[i][0]+",\""+EntourageListArray[i][1]+"\")' style='cursor:pointer'><td class='selected'><img src='"+EntourageListArray[i][3]+"' style='max-width:29px;max-height: 29px;'></td><td class='category'>"+EntourageListArray[i][1]+"</td><td class='selected last1'>"+EntourageListArray[i][2]+"</td></tr>";
|
}
|
}
|
if (acc2>1)
|
{
|
i=i+1;
|
EntourageListHTML = EntourageListHTML+"<tr><td class='selected'> </td><td colspan='2' style='text-align:center;'>";
|
if (acc1>1){EntourageListHTML = EntourageListHTML+"<a href='javascript:window.HiddenFrame.location.replace(\"AdminUserSearch.gds?OrdClass=<%=ServiceOrdClass%>&OA_CompetencyID="+OA_CompetencyID+"&EntourageSearchTXT="+EntourageSearchTXT+"&page="+(acc1-1)+"\");'>上一页</a>";}else{EntourageListHTML = EntourageListHTML+" ";}
|
if (acc1<acc2){EntourageListHTML = EntourageListHTML+" <a href='javascript:window.HiddenFrame.location.replace(\"AdminUserSearch.gds?OrdClass=<%=ServiceOrdClass%>&OA_CompetencyID="+OA_CompetencyID+"&EntourageSearchTXT="+EntourageSearchTXT+"&page="+(acc1+1)+"\");'>下一页</a></td></tr>";}
|
}
|
|
for (var j=i;j<=6;j++)
|
{
|
EntourageListHTML = EntourageListHTML+"<tr><td class='selected'> </td><td class='price'> </td><td class='selected last1'> </td></tr>";
|
}
|
document.getElementById("EntourageList").innerHTML=EntourageListHTML;
|
|
}
|
</script>
|
<!-- pagination -->
|
<div class="pagination pagination-left" style="padding-left: 20px;padding-right:20px;">
|
<div class="results">
|
<%
|
ShowingLeast = (acc1-1)*QuantityInt+1
|
ShowingMax = QuantityInt*acc1
|
if ShowingMax>acc3 then ShowingMax=acc3
|
%>
|
<span><%="显示 "& ShowingLeast &"-"& ShowingMax &" of "&acc3%></span>
|
</div>
|
<%if acc2>1 then%>
|
<ul class="pager">
|
<%if acc1=1 then%>
|
<li class="disabled">« 上页</li>
|
<%else%>
|
<li><a href="?page=<%=acc1-1%><%=page_URL%>">« 上页</a></li>
|
<%end if%>
|
<%
|
acc4=""
|
for i=1 to acc2
|
if acc2<=9 then
|
acc4=acc4&","&i
|
else
|
if i=1 then
|
acc4=acc4&","&i
|
elseif acc1<=5 and i<=7 then
|
acc4=acc4&","&i
|
elseif acc1<=acc2-4 and i>=acc2-6 then
|
acc4=acc4&","&i
|
elseif i>=acc1-2 and i<=acc1+2 then
|
acc4=acc4&","&i
|
elseif i=acc2 then
|
acc4=acc4&","&i
|
elseif i=2 or i=acc2-1 then
|
acc4=acc4&",0"
|
end if
|
end if
|
next
|
acc4SP=SPLIT(acc4,",")
|
for i = 1 to UBOUND(acc4SP)%>
|
<%if acc4SP(i)="0" then%>
|
<li class="separator">...</li>
|
<%elseif cint(acc1)=cint(acc4SP(i)) then%>
|
<li class="current"><%=acc4SP(i)%></li>
|
<%else%>
|
<li><a href="?page=<%=acc4SP(i)%><%=page_URL%>"><%=acc4SP(i)%></a></li>
|
<%end if%>
|
<%next%>
|
<%if CInt(acc1)>=CInt(acc2) then%>
|
<li class="disabled">下页 »</li>
|
<%else%>
|
<li><a href="?page=<%=acc1+1%><%=page_URL%>">下页 »</a></li>
|
<%end if%>
|
<li>
|
<form action="?1=1<%=page_URL%>" method="post">
|
<input type="text" name="page" value="<%=acc1%>" style="width: 20px;" />
|
<input type="submit" name="submit" value="转跳" />
|
</form>
|
</li>
|
</ul>
|
<%end if%>
|
|
</div>
|
</div>
|
<!-- end pagination -->
|
|
<div class="dialogJ dialogJfix dialogJshadow" id="window_Introducer" style="z-index: 50007; width: 350px; left: 0px; top: 0px;display:none;">
|
<div class="dialogJtitle">
|
<a href="javascript:JS_IntroducerClose();" class="dialogJclose" title="关闭本窗口"> </a>
|
<span class="dialogJtxt">选择介绍人</span> <input type="text" id="IntroducerSearchTXT" name="IntroducerSearchTXT" value="<%=IntroducerSearchTXT%>" style="width: 100px;" onkeyup="JS_IntroducerSearch();"/> <input type="button" name="button3" value="查询" onclick="JS_IntroducerSearch();"> <input type="button" name="button3" value="清空" onclick="JS_IntroducerDel();">
|
</div>
|
<div class="dialogJcontent">
|
<div class="box">
|
<div class="table" style="padding: 0px;">
|
<input name="window_IntroducerID" type="hidden" value="">
|
<input name="window_OA_CompetencyID" type="hidden" value="">
|
<table>
|
<thead>
|
<tr>
|
<th class="selected left" style="text-align: center;">ID</th>
|
<th class="category last" style="text-align: center;">姓名</th>
|
</tr>
|
</thead>
|
<tbody id="IntroducerList">
|
<%for j=0 to 6%>
|
<tr>
|
<td class="selected"> </td>
|
<td class="category last"> </td>
|
</tr>
|
<%next%>
|
</tbody>
|
</table>
|
</div>
|
</div>
|
</div>
|
</div>
|
<script LANGUAGE="javascript">
|
//打开选择介绍人窗口
|
function JS_IntroducerOpen(id,OA_CompetencyID)
|
{
|
var sTop=document.documentElement.scrollTop;
|
if (sTop==0) {sTop=document.body.scrollTop;}
|
var sLeft= document.documentElement.scrollLeft;
|
if (sLeft==0) {sLeft=document.body.scrollLeft;}
|
|
var dTop = document.getElementById("HospIntroducerID_"+id).getBoundingClientRect().top;
|
if (dTop<200) {dTop=110;}
|
var dLeft = document.getElementById("HospIntroducerID_"+id).getBoundingClientRect().left;
|
if (dLeft<200) {dLeft=200;}
|
window_Introducer.style.display="block";
|
window_Introducer.style.left=(dLeft-100)+"px";
|
window_Introducer.style.top=(sTop+dTop+30)+"px";
|
document.all.window_IntroducerID.value=id;
|
document.all.window_OA_CompetencyID.value=OA_CompetencyID;
|
if (OA_CompetencyID!=0){window.HiddenFrame.location.replace('IntroducerSearch.gds?OrdClass=<%=ServiceOrdClass%>&OA_CompetencyID='+OA_CompetencyID);}
|
document.getElementById('IntroducerSearchTXT').focus();
|
}
|
//关闭选择介绍人窗口
|
function JS_IntroducerClose()
|
{
|
document.all.IntroducerSearchTXT.value='';
|
document.all.window_IntroducerID.value="";
|
window_Introducer.style.display="none";
|
}
|
//选择介绍人查询
|
function JS_IntroducerSearch()
|
{
|
IntroducerSearchTXT=document.all.IntroducerSearchTXT.value;
|
OA_CompetencyID=document.all.window_OA_CompetencyID.value;
|
window.HiddenFrame.location.replace('IntroducerSearch.gds?OrdClass=<%=ServiceOrdClass%>&OA_CompetencyID='+OA_CompetencyID+'&IntroducerSearchTXT='+IntroducerSearchTXT);
|
}
|
function EnterPress(e){ //传入 event
|
var e = e || window.event;
|
if(e.keyCode == 13){JS_IntroducerSearch();}
|
}
|
//选择介绍人
|
function JS_IntroducerSave(OA_UserID,OA_UserName)
|
{
|
id=document.all.window_IntroducerID.value;
|
document.getElementById("HospIntroducerID_"+id).value=OA_UserID;
|
}
|
//选择介绍人清空
|
function JS_IntroducerDel()
|
{
|
id=document.all.window_IntroducerID.value;
|
document.getElementById("HospIntroducerID_"+id).value='';
|
}
|
//显示介绍人列表窗口
|
function JS_IntroducerList(IntroducerListArray,acc1,acc2,IntroducerSearchTXT,OA_CompetencyID,OA_CompetencyName)
|
{
|
var IntroducerListHTML = "";
|
var i = 0;
|
if (IntroducerListArray.length>0)
|
{
|
for (var i=0;i<IntroducerListArray.length;i++)
|
{
|
IntroducerListHTML = IntroducerListHTML+"<tr onclick='JS_IntroducerSave("+IntroducerListArray[i][0]+",\""+IntroducerListArray[i][1]+"\")' style='cursor:pointer'><td class='selected'>"+IntroducerListArray[i][0]+"</td><td class='price last1'>"+IntroducerListArray[i][1]+"</td></tr>";
|
}
|
}
|
if (acc2>1)
|
{
|
i=i+1;
|
IntroducerListHTML = IntroducerListHTML+"<tr><td class='selected'> </td><td colspan='2' style='text-align:center;'>";
|
if (acc1>1){IntroducerListHTML = IntroducerListHTML+"<a href='javascript:window.HiddenFrame.location.replace(\"IntroducerSearch.gds?OrdClass=<%=ServiceOrdClass%>&OA_CompetencyID="+OA_CompetencyID+"&IntroducerSearchTXT="+IntroducerSearchTXT+"&page="+(acc1-1)+"\");'>上一页</a>";}else{IntroducerListHTML = IntroducerListHTML+" ";}
|
if (acc1<acc2){IntroducerListHTML = IntroducerListHTML+" <a href='javascript:window.HiddenFrame.location.replace(\"IntroducerSearch.gds?OrdClass=<%=ServiceOrdClass%>&OA_CompetencyID="+OA_CompetencyID+"&IntroducerSearchTXT="+IntroducerSearchTXT+"&page="+(acc1+1)+"\");'>下一页</a></td></tr>";}
|
}
|
|
for (var j=i;j<=6;j++)
|
{
|
IntroducerListHTML = IntroducerListHTML+"<tr><td class='selected'> </td><td class='price last1'> </td></tr>";
|
}
|
document.getElementById("IntroducerList").innerHTML=IntroducerListHTML;
|
|
}
|
</script>
|
|
</div>
|
<!-- end table -->
|
|
|
</div>
|
<!-- end content / right -->
|
</div>
|
<!-- end content -->
|
<!--#include FILE="vicgame.asp"-->
|
<IFRAME id="HiddenFrame" name="HiddenFrame" WIDTH=0 HEIGHT=0 MARGINWIDTH=0 MARGINHEIGHT=0 HSPACE=0 VSPACE=0 FRAMEBORDER=0 SCROLLING=no BORDERCOLOR=#ffffff></IFRAME>
|
</body>
|
</html>
|