<%'------------------------------------------服务单------------------------------------------
|
If admin_save<>"" Then
|
'提交返回字段
|
Call RequestForm(Origin)
|
OriginSP = SPLIT(Origin,"|")
|
For i=1 to UBOUND(OriginSP)
|
OriginSPv=SPLIT(OriginSP(i),"=")
|
If UBOUND(OriginSPv)=1 then
|
v=OriginSPv(0)
|
t=OriginSPv(1)
|
If (v<>"ServiceOrdClass" And ServiceOrdClass<>"") And (v<>"DispatchOrdClass" And DispatchOrdClass<>"") Then
|
Execute( v & "= """&t&""" ")
|
End If
|
End If
|
Next
|
|
ElseIf (ServiceOrdID<>"" Or Phone<>"") And NEWOrder="" Then
|
'数据库字段
|
If ServiceOrdID<>"" then
|
sql="select * from ServiceOrder where ServiceOrdID="&ServiceOrdID
|
Else
|
'来电的7天内咨询单或处理中的服务单或完成后3天内的服务单
|
sql="select top 1 * from ServiceOrder where ServiceOrdCoPhone='"&Phone&"' and ((ServiceOrdState=1 and datediff(dd,ServiceOrd_CC_Time,getdate())<7) or ServiceOrdState=2 or (ServiceOrdState=3 and datediff(dd,ServiceOrdApptDate,getdate())<=3)) order by ServiceOrdID desc"
|
End If
|
rs.open sql,objConn,1,1
|
if not rs.eof Then
|
ServiceOrdID = rs("ServiceOrdID") '服务单号
|
ServiceOrdUserID = rs("ServiceOrdUserID") '用户ID
|
ServiceOrdClass = rs("ServiceOrdClass") '单据类型
|
ServiceOrdType = rs("ServiceOrdType") '服务单类型
|
ServiceOrdState = rs("ServiceOrdState") '服务单状态
|
ServiceOrdStartDate = rs("ServiceOrd_CC_Time") '开单日期
|
ServiceOrdApptDate = rs("ServiceOrdApptDate") '预约日期
|
ServiceOrdCoName = rs("ServiceOrdCoName") '联系人姓名
|
ServiceOrdCoPhone = rs("ServiceOrdCoPhone") '联系人电话
|
ServiceOrdCoTies = rs("ServiceOrdCoTies") '联系人与患者关系
|
ServiceOrdPtName = rs("ServiceOrdPtName") '患者姓名
|
ServiceOrdPtAge = rs("ServiceOrdPtAge") '患者年龄
|
ServiceOrdPtSex = rs("ServiceOrdPtSex") '患者性别
|
ServiceOrdPtKG = rs("ServiceOrdPtKG") '患者体重
|
ServiceOrdPtNat = rs("ServiceOrdPtNat") '患者国籍
|
ServiceOrdPtIDCard = rs("ServiceOrdPtIDCard") '患者身份证
|
ServiceOrdPtOutHospID = rs("ServiceOrdPtOutHospID") '转出医院ID
|
ServiceOrdPtOutHosp = rs("ServiceOrdPtOutHosp") '转出医院
|
ServiceOrdPtInHospID = rs("ServiceOrdPtInHospID") '转入医院ID
|
ServiceOrdPtInHosp = rs("ServiceOrdPtInHosp") '转入医院
|
ServiceOrdPtServices = rs("ServiceOrdPtServices") '转出科室
|
ServiceOrdPtServicesID=rs("ServiceOrdPtServicesID") '转出科室ID
|
ServiceOrdPtInServices = rs("ServiceOrdPtInServices") '转入科室
|
ServiceOrdPtInServicesID=rs("ServiceOrdPtInServicesID") '转入科室ID
|
ServiceOrdPtDiagnosis = rs("ServiceOrdPtDiagnosis") '诊断
|
ServiceOrdPtCondition = rs("ServiceOrdPtCondition") '备注
|
ServiceOrdTaskRemarks = rs("ServiceOrdTaskRemarks") '医护司备注
|
ServiceOrdPtDoctor = rs("ServiceOrdPtDoctor") '患者医生
|
ServiceOrdPtDoctorPhone=rs("ServiceOrdPtDoctorPhone") '患者医生电话
|
ServiceOrdTraProvince = rs("ServiceOrdTraProvince") '出发地省份
|
ServiceOrdTraCity = rs("ServiceOrdTraCity") '出发地城市
|
ServiceOrdTraStreet = rs("ServiceOrdTraStreet") '出发地
|
ServiceOrdTraStreetCoo= rs("ServiceOrdTraStreetCoo") '出发地坐标
|
ServiceOrdTraEnd = rs("ServiceOrdTraEnd") '目的地
|
ServiceOrdTraEndCoo = rs("ServiceOrdTraEndCoo") '目的地坐标
|
ServiceOrdTraVia = rs("ServiceOrdTraVia") '途经地
|
ServiceOrdViaDistance = rs("ServiceOrdViaDistance") '中途距离(公里)
|
ServiceOrdTraDistance = rs("ServiceOrdTraDistance") '距离(公里)
|
ServiceOrdTraDuration = rs("ServiceOrdTraDuration") '预计行程时间
|
ServiceOrdTraUnitPrice= rs("ServiceOrdTraUnitPrice") '单价/公里
|
ServiceOrdTraOfferPrice=rs("ServiceOrdTraOfferPrice") '标准报价
|
ServiceOrdTraTxnPrice = rs("ServiceOrdTraTxnPrice") '成交价
|
SettlementPrice = rs("SettlementPrice") '结算价
|
ServiceOrdTraPrePayment=rs("ServiceOrdTraPrePayment") '需预付款金额
|
ServiceOrdTraPaidPrice= rs("ServiceOrdTraPaidPrice") '已支付金额
|
ServiceOrdPoints = rs("ServiceOrdPoints") '使用积分
|
ServiceOrdTraPriceReason=rs("ServiceOrdTraPriceReason")'差价原因
|
ServiceOrd_CC_ID = rs("ServiceOrd_CC_ID") '第一次接单人员ID
|
ServiceOrd_CC_Time = rs("ServiceOrd_CC_Time") '第一次接单时间
|
ServiceOrd_NS_ID = rs("ServiceOrd_NS_ID") '确认服务单人员ID
|
ServiceOrd_NS_Time = rs("ServiceOrd_NS_Time") '确认服务单时间
|
ServiceOrd_AP_Check = rs("ServiceOrd_AP_Check") '服务单审核状态(0未审核,1已审核)
|
ServiceOrd_AP_ID = rs("ServiceOrd_AP_ID") '服务单审核人员ID
|
ServiceOrd_AP_Time = rs("ServiceOrd_AP_Time") '服务单审核时间
|
ServiceOrdUnitID = rs("ServiceOrdUnitID") '第三方ID
|
ServiceOrdUnitRemarks = rs("ServiceOrdUnitRemarks") '第三方订单备注
|
PayQRcodeURL = rs("PayQRcodeURL") '第三方支付链接
|
ReturnChannel = rs("ServiceOrdReturnChannel") '回访获知966120的渠道
|
ServiceOrdVisit = rs("ServiceOrdVisit") '回访记录
|
ServiceOrdVisit_time = rs("ServiceOrdVisit_time") '回访时间
|
ServiceOrdVisit_ID = rs("ServiceOrdVisit_ID") '回访人员ID
|
ServiceOrdSource = rs("ServiceOrdSource") '订单来源(OrdSource)
|
ServiceOrdOperationRemarks= rs("ServiceOrdOperationRemarks") '操作备注项
|
ServiceOrdEstimatedOrderDate=rs("ServiceOrdEstimatedOrderDate")'预计派单时间
|
OrderLevel = rs("OrderLevel") '查看等级
|
ServiceOrdDepartureType=rs("ServiceOrdDepartureType") '预约类型
|
ConditionLevel = rs("ConditionLevel") '病重级别
|
DirectionType = rs("DirectionType") '转运去向
|
Guest_openid = rs("Guest_openid")
|
Guest_Reward = rs("Guest_Reward")
|
Guest_Point = rs("Guest_Point")
|
RV_Point = rs("RV_Point")
|
Guest_Evaluate = rs("Guest_Evaluate")
|
Guest_Impression = rs("Guest_Impression")
|
Guest_Time = rs("Guest_Time")
|
ServiceOrdUserUpdateTime= rs("ServiceOrdUserUpdateTime")'客人更新资料时间
|
ServiceOrdUpdateTime = rs("ServiceOrdUpdateTime")'操作员更新资料时间
|
ServiceOrdOnlineOAName= rs("ServiceOrdOnlineOAName")
|
FromHQ2_is = rs("FromHQ2_is") '广州总部推送任务标记
|
ServiceOrdVIP = rs("ServiceOrdVIP")
|
|
If IsNumeric(ServiceOrdViaDistance) Then ServiceOrdViaDistance=ServiceOrdViaDistance&"公里"
|
If IsNumeric(ServiceOrdTraDistance) Then ServiceOrdTraDistance=ServiceOrdTraDistance&"公里"
|
'通知已阅标记
|
sql="update ServiceOrd_Message set MessageToState=1,MessageToStateTime=GETDATE() where ServiceOrdIDDt="&ServiceOrdID&" and MessageToOAid="&session("adminID")&" and MessageToState=0 and MessageState=1"
|
objConn.Execute sql
|
Else
|
ServiceOrdCoPhone=Phone
|
ServiceOrdID=""
|
end if
|
rs.close()
|
CoPhone = ServiceOrdCoPhone
|
|
If ServiceOrdPtOutHospID<>"" And ServiceOrdPtInHospID<>"" And ServiceOrdPtOutHospID<>"0" And ServiceOrdPtInHospID<>"0" And isDepartment("070107")=1 Then '只显示个人分管医院
|
sql="select ServiceOrdID from ServiceOrder where ServiceOrdID="&ServiceOrdID&" and (((ServiceOrdPtOutHospID in (select HospID from HospData where HospOAID='"&session("adminID")&"' or HospOAID like '%,"&session("adminID")&",%') or ServiceOrdPtInHospID in (select HospID from HospData where HospOAID='"&session("adminID")&"' or HospOAID like '%,"&session("adminID")&",%')) and FromHQ2_is=1) or ServiceOrdID in (select ServiceOrdIDDt from ServiceOrd_Message where MessageState=1 and MessageOAid="&session("adminID")&") or ServiceOrd_Sale_ID="&session("adminID")&") "
|
rs.open sql,objConn,1,1
|
if rs.eof Then
|
Response.Redirect "/"
|
Response.End()
|
End If
|
rs.close()
|
End If
|
End If
|
|
'默认字段
|
If ServiceOrdPtNat="" Then ServiceOrdPtNat="中国"
|
If ServiceOrdTraUnitPrice="" Then ServiceOrdTraUnitPrice=0
|
If ServiceOrdTraOfferPrice="" Then ServiceOrdTraOfferPrice=0
|
If ServiceOrdTraTxnPrice="" Then ServiceOrdTraTxnPrice=0
|
If ServiceOrdTraPrePayment="" Then ServiceOrdTraPrePayment=0
|
If ServiceOrdTraProvince<>"" Then ProvinceCityID=ServiceOrdTraProvince
|
If ServiceOrdTraCity<>"" Then ProvinceCityID=ServiceOrdTraCity
|
If TEL_Time="" Then TEL_Time=now()
|
If ServiceOrdApptDate<>"" then
|
If year(ServiceOrdApptDate)<2010 then ServiceOrdApptDate=""
|
End If
|
If ServiceOrdEstimatedOrderDate<>"" then
|
If year(ServiceOrdEstimatedOrderDate)<2010 then ServiceOrdEstimatedOrderDate=""
|
End If
|
ConditionPic=""
|
CPicInt=0
|
If ServiceOrdUnitRemarks<>"" And not isnull(ServiceOrdUnitRemarks) Then
|
s=0
|
do While InStr(ServiceOrdUnitRemarks,"http")>0 And s<=500
|
cpic=Mid(ServiceOrdUnitRemarks,InStr(ServiceOrdUnitRemarks,"http"))
|
If InStr(cpic,".jpg")>0 Then
|
cc=InStr(cpic,".jpg")+3
|
ElseIf InStr(cpic,".jpga")>0 Then
|
cc=InStr(cpic,".jpga")+4
|
ElseIf InStr(cpic,".png")>0 Then
|
cc=InStr(cpic,".png")+3
|
ElseIf InStr(cpic,".bmp")>0 Then
|
cc=InStr(cpic,".bmp")+3
|
End If
|
cpic=Left(cpic,cc)
|
ConditionPic=ConditionPic&","&cpic
|
ServiceOrdUnitRemarks=Replace(ServiceOrdUnitRemarks,","&cpic,"")
|
ServiceOrdUnitRemarks=Replace(ServiceOrdUnitRemarks,cpic,"")
|
s=s+1
|
Loop
|
If ConditionPic<>"" Then
|
'ConditionPic=Mid(ConditionPic,2)
|
ConditionPic=SPLIT(ConditionPic,",")
|
CPicInt=UBOUND(ConditionPic)
|
End If
|
End If
|
If ServiceOrdUserID<>"" And ServiceOrdUserID<>"0" Then
|
UserID=ServiceOrdUserID
|
ElseIf UserID="" Then
|
UserID=0
|
End If
|
%>
|
<%If ServiceOrdID<>"" And ServiceOrdUserUpdateTime<>"" Then%>
|
<script type="text/javascript">
|
//检查用户是否有自己更新资料
|
setInterval(function() {JS_isUserUpdate();},10000);//十秒后执行
|
/*请求函数的ajax*/
|
function JS_isUserUpdate() {
|
$.ajax({
|
type: "POST",
|
dataType:'json',
|
url: "ServiceOrder_DataUP.gds",//需要跳转到的界面 the page you want to post data
|
data: {
|
ServiceOrdID: "<%=ServiceOrdID%>",
|
UpdateTime: "<%=ServiceOrdUpdateTime%>",
|
UserUpTime: "<%=ServiceOrdUserUpdateTime%>"//要传给后台的数据 the data you should send to background
|
},
|
beforeSend: function() {},//在发送之前你可以进行相关操作 what you want to do before send
|
success: function(data) {
|
if (data!='')
|
{
|
document.getElementById("OnlineServiceOAName").innerHTML=data.OnlineOAName;
|
if (data.UserUpTimeSS>0){
|
if(confirm("客人已经更新资料,是否刷新?"))
|
{
|
window.location.href = "/ServiceOrder.gds?ServiceOrdID=<%=ServiceOrdID%>";
|
return false;
|
}
|
}else if (data.UpdateOAName!=''){
|
if(confirm(data.UpdateOAName+"正在操作服务单,是否刷新?"))
|
{
|
window.location.href = "/ServiceOrder.gds?ServiceOrdID=<%=ServiceOrdID%>";
|
return false;
|
}
|
}
|
}
|
}
|
})
|
};
|
</script>
|
<%End If%>
|
<input name="ServiceOrdUserID" type="hidden" value="<%=UserID%>">
|
<%'地面服务单
|
If OrderClassB(ServiceOrdClass,"vType")="1" then%>
|
<div class="field">
|
<div class="label" style="float: left;margin-left: 0px;">
|
<label for="input-small">转运方式:</label>
|
</div>
|
<div class="checkboxes" style="float:left;margin-left: 70px;margin-top: 8px;">
|
<%
|
If ServiceOrdID<>"" then
|
sql="select TransferModeID from ServiceOrd_TransferMode where ServiceOrdTMID="&ServiceOrdID
|
rs.open sql,objConn,1,1
|
do while not rs.Eof
|
TransferModeID=TransferModeID&","&rs(0)
|
rs.movenext
|
loop
|
rs.close()
|
End if
|
TransferModeIDSP = SPLIT(TransferModeID,",")
|
sql="select vID,vtext from dictionary where vType=1 and vtitle='TransferMode' order by vOrder"
|
rs.open sql,objConn,1,1
|
do while not rs.Eof
|
TransferID = rs("vID")
|
TransferName= rs("vtext")
|
Transfer_is="0"
|
for i = 1 to UBOUND(TransferModeIDSP)
|
If CInt(TransferID)=CInt(TransferModeIDSP(i)) Then Transfer_is="1"
|
Next
|
If CInt(TransferID)=1 And (ServiceOrdID="") Then Transfer_is="1"
|
%>
|
<input type="checkbox" id="TransferModeID_<%=TransferID%>" value="<%=TransferID%>" name="TransferModeID" style="margin: auto;"<%If Transfer_is="1" Then Response.Write " checked=""checked"""%> onchange="upperCase(this.name)"/>
|
<label for="TransferModeID_<%=TransferID%>"><%=TransferName%></label>
|
<%
|
rs.movenext
|
loop
|
rs.close()
|
%>
|
|
<input type="checkbox" id="ServiceOrdVIP" value="1" name="ServiceOrdVIP" style="margin: auto;"<%If ServiceOrdVIP="1" Then Response.Write " checked=""checked"""%> onchange="upperCase(this.name)"/>
|
<label for="ServiceOrdVIP" style="color: #E91E63;font-weight: bold;">VIP客户</label>
|
|
</div>
|
</div>
|
<%End If%>
|
<div class="field">
|
<div class="label" style="float: left;margin-left:0px;">
|
<label for="input-small">查看级别:</label>
|
</div>
|
<div class="input" style="float:left;margin-left: 75px;">
|
<select name="OrderLevel" id="OrderLevel" style="width:138px;" class="select1" onchange="js_OrderLevel(this.value);upperCase(this.name);">
|
<%sql="select vId,vtext from dictionary where vType=1 and vtitle='OrderLevel' order by vOrder"
|
rs.open sql,objConn,1,1
|
do while not rs.Eof
|
OrderLevelID=rs(0)
|
OrderLevelName=rs(1)
|
%>
|
<option value="<%=OrderLevelID%>"<%if (OrderLevel)=(OrderLevelID) then Response.Write " selected"%>><%=OrderLevelName%></option>
|
<%
|
rs.movenext
|
loop
|
rs.close()%>
|
</select>
|
</div>
|
<script LANGUAGE="javascript">
|
//修改查看级别
|
function js_OrderLevel(OrderLevel){
|
if (OrderLevel=='2'){
|
document.getElementById("OrdViadriving").style.display="block";
|
<%if DispatchOrdID<>"" then%>
|
var EntourageZ=document.getElementsByName("EntourageZ");
|
for (var i = 0; i < EntourageZ.length; i++){
|
EntourageZ[i].style.display="block";
|
}
|
<%end if%>
|
|
}else{
|
document.getElementById("OrdViadriving").style.display="none";
|
<%if DispatchOrdID<>"" then%>
|
var EntourageZ=document.getElementsByName("EntourageZ");
|
for (var i = 0; i < EntourageZ.length; i++){
|
EntourageZ[i].style.display="none";
|
}
|
<%end if%>
|
}
|
}
|
</script>
|
<div class="checkboxes" style="float:left;margin-left: 25px;padding: 5px 0 0 5px;">
|
<%sql="select vId,vtext from dictionary where vType=1 and vtitle='DepartureType' order by vOrder"
|
rs.open sql,objConn,1,1
|
do while not rs.Eof
|
DepartureTypeID=rs(0)
|
DepartureTypeName=rs(1)
|
%>
|
<input type="radio" id="DepartureType_<%=DepartureTypeID%>" value="<%=DepartureTypeID%>" name="ServiceOrdDepartureType" <%If ServiceOrdDepartureType=DepartureTypeID Or DepartureTypeID="1" Then Response.Write " checked=""checked"""%> onchange="upperCase(this.name)"><label for="DepartureType_<%=DepartureTypeID%>"><%=DepartureTypeName%></label>
|
<%
|
rs.movenext
|
loop
|
rs.close()%>
|
</div>
|
<%If InStr(admin_OrderClass,"BF")>0 Then%>
|
<div class="label" style="float: left;margin-left: 455px;">
|
<label for="input-small">分部支援总部执行任务标记:</label>
|
</div>
|
<div class="input" style="float:left;margin-left: 210px;">
|
<select name="FromHQ2_is" id="FromHQ2_is" class="select1">
|
<option value="0">请选择</option>
|
<%sql="select vId,vtext from dictionary where vType=1 and vtitle='FromHQ2_is' order by vOrder"
|
rs.open sql,objConn,1,1
|
do while not rs.Eof
|
FromHQ2_isID=rs(0)
|
FromHQ2_isName=rs(1)
|
%>
|
<option value="<%=FromHQ2_isID%>"<%if Clng(FromHQ2_is)=Clng(FromHQ2_isID) then Response.Write " selected"%>><%=FromHQ2_isName%></option>
|
<%
|
rs.movenext
|
loop
|
rs.close()%>
|
</select>
|
</div>
|
<%Else
|
If FromHQ2_is<>"0" And FromHQ2_is<>"" Then%>
|
<div class="checkboxes" style="float:left;margin-left: 58px;margin-top: 8px;">
|
<input name="FromHQ2_is" type="hidden" value="<%=FromHQ2_is%>">
|
分部支援总部执行任务标记
|
</div>
|
<%End If
|
End If%>
|
</div>
|
|
|
<%If Phone<>"" Then
|
If ServiceOrdCoPhone="" Then ServiceOrdCoPhone=Phone
|
%>
|
<div class="field">
|
|
<div class="label" style="float: left;margin-left: 0px;">
|
<label for="input-small">来电时间:</label>
|
</div>
|
<div class="input" style="float:left;margin-left: 70px;">
|
<input type="text" id="TEL_Time" name="TEL_Time" class="small valid" style="width:138px;" value="<%=TEL_Time%>" readonly="true">
|
</div>
|
<div class="label" style="float: left;margin-left: 231px;">
|
<label for="input-small">话务员:</label>
|
</div>
|
<div class="input" style="float:left;margin-left: 75px;">
|
<input type="text" id="TEL_OAUserID" name="TEL_OAUserID" class="small valid" style="width:138px;" value="<%=OAUser(session("adminID"),"UserName")%>" readonly="true">
|
</div>
|
</div>
|
<div class="field">
|
<div class="label" style="float: left;margin-left: 0px;">
|
<label for="input-small">来电备注:</label>
|
</div>
|
<div class="input" style="float:left;margin-left: 70px;">
|
<textarea id="TEL_Remarks" name="TEL_Remarks" cols="50" rows="3" style="width:811px;"><%=TEL_Remarks%></textarea>
|
</div>
|
</div>
|
<%End if%>
|
|
<%If OrderClassB(ServiceOrdClass,"vType")="1" then%>
|
<div class="field">
|
<div class="label" style="float: left;margin-left: 0px;">
|
<label for="input-small">客户预约时间:<br> [<a onclick="document.all.ServiceOrdApptDate.value = new Date().getFullYear()+'-'+(new Date().getMonth()+1)+'-'+new Date().getDate()+' '+new Date().getHours()+':'+new Date().getMinutes();">现在</a>]</label>
|
</div>
|
<div class="input" style="float:left;margin-left: 82px;">
|
<%If ServiceOrd_AP_Check="1" And 1=2 Then%>
|
<input type="text" id="ServiceOrdApptDate" name="ServiceOrdApptDate" class="small valid" style="width:128px;" value="<%=ServiceOrdApptDate%>" readonly="true" autocomplete="off">
|
<%else%>
|
<input type="text" id="ServiceOrdApptDate" name="ServiceOrdApptDate" class="date<%If InStr(error,",ServiceOrdApptDate,")>0 Then Response.Write " error"%>" style="width:128px;" value="<%=ServiceOrdApptDate%>" autocomplete="off" onchange="upperCase(this.name)">
|
<%End if%>
|
</div>
|
<div class="label" style="float: left;margin-left: 228px;">
|
<label for="input-small">预计派单时间:<br> [<a onclick="document.all.ServiceOrdEstimatedOrderDate.value = new Date().getFullYear()+'-'+(new Date().getMonth()+1)+'-'+new Date().getDate()+' '+new Date().getHours()+':'+new Date().getMinutes();">现在</a>]</label>
|
</div>
|
<div class="input" style="float:left;margin-left: 84px;">
|
<input type="text" id="ServiceOrdEstimatedOrderDate" name="ServiceOrdEstimatedOrderDate" class="date<%If InStr(error,",ServiceOrdEstimatedOrderDate,")>0 Then Response.Write " error"%>" style="width:126px;" value="<%=ServiceOrdEstimatedOrderDate%>" autocomplete="off" onchange="upperCase(this.name)">
|
<input name="ServiceOrdEstimatedOrderDateOld" type="hidden" value="<%=ServiceOrdEstimatedOrderDate%>">
|
</div>
|
<%If UserID<>"" Then%>
|
<div class="label" style="float: left;margin-left: 453px;">
|
<label for="input-small">UserID:<%=UserID%></label>
|
</div>
|
<%End If%>
|
<%'敏感信息授权处理(暂时关闭2019.9.17)
|
If isDepartment("020109")=0 And session("Power_"&ServiceOrdID)<>"1" And DispatchOrdID="" And ServiceOrdID<>"" And (ServiceOrdUnitID="0" or ServiceOrdUnitID="") And 1=2 Then%>
|
<div class="label" style="float: left;margin-left: 453px;">
|
<label for="input-small">申请查看客户信息</label>
|
</div>
|
<div class="input" style="float:left;margin-left: 105px;">
|
<span></span> <input type="text" id="AuthorizeNO" name="AuthorizeNO" value="" style="width: 100px;"/> <input type="button" id="button_AuthorizeNO" name="button_AuthorizeNO" value="发送验证码" style="background: #9a6d92 url(../../../resources/images/colors/purple/button_highlight.png) repeat-x;color: #ffffff;" onclick="JS_Authorize();">
|
</div>
|
<script LANGUAGE="javascript">
|
function JS_Authorize() {
|
AuthorizeNO=document.all.AuthorizeNO.value;
|
if (AuthorizeNO!="")
|
{
|
$.ajax({
|
type:'post',
|
url:'OrderAuthorize.gds?ServiceOrdID=<%=ServiceOrdID%>&OAid=<%=session("adminID")%>&AuthorizeNO='+AuthorizeNO,
|
success:function(data){
|
if(data == '1'){
|
//var url = "http://m.v.com.cn/inc/Pay_Weixin/test1553.php?CC_OAID="+CC_OAID+"&SCID="+data+"&CashMoney="+CashMoney+"&pay_weixinID="+pay_weixinID;
|
//window.location.href=url;
|
//document.all.button_AuthorizeNO.value="提交验证码";
|
//alert("验证成功");
|
location.reload();
|
return false;
|
}else{
|
alert("验证失败,请重试!");
|
return false;
|
}
|
}
|
});
|
}
|
else {
|
$.ajax({
|
type:'post',
|
url:'/weixin/message_send_OrderAuthorize.gds?ServiceOrdID=<%=ServiceOrdID%>&OAid=<%=session("adminID")%>',
|
success:function(data){
|
if(data == '1'){
|
//var url = "http://m.v.com.cn/inc/Pay_Weixin/test1553.php?CC_OAID="+CC_OAID+"&SCID="+data+"&CashMoney="+CashMoney+"&pay_weixinID="+pay_weixinID;
|
//window.location.href=url;
|
document.all.button_AuthorizeNO.value="提交验证码";
|
alert("发送成功");
|
return false;
|
}else{
|
alert("提交失败,请重试!");
|
return false;
|
}
|
}
|
});
|
}
|
}
|
</script>
|
<%End If%>
|
</div>
|
<%End if%>
|
|
<%
|
'敏感信息处理
|
If isDepartment("020109")=0 And session("Power_"&ServiceOrdID)<>"1" And (DispatchOrdID<>"" or ServiceOrdID<>"") And (ServiceOrdClass="BF" And is_Privacy<>"YES") Then
|
sql="select MID from ServiceOrd_Message where ServiceOrdIDDt="&ServiceOrdID&" and MessageState>0 and MessageToOAid="&session("adminID")
|
rs.open sql,objConn,1,1
|
if not rs.eof Then
|
is_Privacy="YES"
|
Else
|
is_Privacy="NO"
|
If ServiceOrdCoName<>"" Then ServiceOrdCoName="【隐】"
|
If ServiceOrdCoPhone<>"" Then ServiceOrdCoPhone="【隐】"
|
If ServiceOrdPtAge<>"" Then ServiceOrdPtAge="【隐】"
|
If ServiceOrdPtName<>"" Then ServiceOrdPtName="【隐】"
|
If ServiceOrdPtServicesID<>"" And ServiceOrdPtServicesID<>"0" Then ServiceOrdPtServicesID="-2"
|
If ServiceOrdPtServices<>"" Then ServiceOrdPtServices="【隐】"
|
If ServiceOrdPtInServicesID<>"" And ServiceOrdPtInServicesID<>"0" Then ServiceOrdPtInServicesID="-2"
|
If ServiceOrdPtInServices<>"" Then ServiceOrdPtInServices="【隐】"
|
End If
|
rs.close()
|
|
End If
|
%>
|
<div class="field">
|
<div class="label" style="float: left;margin-left: 0px;">
|
<label for="input-small">联系人姓名:</label>
|
</div>
|
<div class="input" style="float:left;margin-left: 75px;">
|
<input type="text" id="ServiceOrdCoName" name="ServiceOrdCoName" class="small<%If InStr(error,",ServiceOrdCoName,")>0 Or ServiceOrdCoName="" Then Response.Write " error"%>" style="width:134px;" value="<%=ServiceOrdCoName%>" onchange="upperCase(this.name)">
|
</div>
|
<div class="input" style="float: left;margin-left: 10px;">
|
<label for="input"><select id="CoPhoneType" style="width:80px;" class="select1" onchange="validatemobile(document.getElementById('ServiceOrdCoPhone').value);">
|
<option value="1"<%if ServiceOrdCoPhone="" Or left(ServiceOrdCoPhone,1)="1" then Response.Write " selected"%>>手机号码:</option>
|
<option value="2"<%if (left(ServiceOrdCoPhone,1)="0" Or (ServiceOrdCoPhone<>"" And left(ServiceOrdCoPhone,1)<>"1")) And left(ServiceOrdCoPhone,2)<>"00" then Response.Write " selected"%>>固定号码:</option>
|
<option value="3"<%if left(ServiceOrdCoPhone,2)="00" then Response.Write " selected"%>>港澳台国外:</option>
|
</select></label>
|
</div>
|
<div class="input" style="float:left;margin-left: 2px;">
|
<input type="text" id="ServiceOrdCoPhone" name="ServiceOrdCoPhone" class="small<%If InStr(error,",ServiceOrdCoPhone,")>0 Or ServiceOrdCoPhone="" Then Response.Write " error"%>" style="width:108px;" value="<%=ServiceOrdCoPhone%>" onchange="upperCase(this.name);validatemobile(this.value);">
|
</div>
|
<script type="text/javascript">
|
function validatemobile(mobile) {
|
var CoPhoneType=document.getElementById("CoPhoneType").value;
|
if (CoPhoneType=='1')
|
{
|
if(mobile.length==0) {
|
document.getElementById("addSave").style.display="block";
|
return false;
|
}
|
if(mobile.length!=11) {
|
alert("请输入有效的手机号码,需是11位!");
|
document.getElementById("addSave").style.display="none";
|
return false;
|
}
|
var myreg = /^(((13[0-9]{1})|(14[0-9]{1})|(15[0-9]{1})|(16[0-9]{1})|(17[0-9]{1})|(18[0-9]{1})|(19[0-9]{1}))+\d{8})$/;
|
if(!myreg.test(mobile)) {
|
document.getElementById("addSave").style.display="none";
|
alert("请输入有效的手机号码!");
|
return false;
|
}
|
}else if (CoPhoneType=='2' || CoPhoneType=='3')
|
{
|
if(mobile.length==0) {
|
document.getElementById("addSave").style.display="block";
|
return false;
|
}
|
if(mobile.length<8) {
|
alert("请输入有效的电话号码!");
|
document.getElementById("addSave").style.display="none";
|
return false;
|
}
|
}
|
|
document.getElementById("addSave").style.display="block";
|
}
|
</script>
|
<div class="label" style="float: left;margin-left: 455px;">
|
<label for="input-small">与患者关系:</label>
|
</div>
|
<div class="input" style="float:left;margin-left: 75px;">
|
<input type="text" id="ServiceOrdCoTies" name="ServiceOrdCoTies" class="small" style="width:127px;" value="<%=ServiceOrdCoTies%>" onchange="upperCase(this.name)">
|
</div>
|
<%If DATEDIFF("d",ServiceOrdStartDate,now)<15 And ServiceOrdID<>"" And is_Privacy<>"NO" Then
|
QR_ID=""
|
sql="select id,QR_ID from weixinQR where QR_Key='"&ServiceOrdID&"'"
|
rs.open sql,objConn,1,1
|
if not rs.eof Then
|
QR_ID = rs("QR_ID") '微信验证码ID
|
end if
|
rs.close()
|
If QR_ID="" Then
|
sql="select top 1 id,QR_ID from weixinQR where QR_type=3 and DATEADD(s,-1296000,GETDATE())>=QR_Time order by NEWID()"
|
rs.open sql,objConn,1,1
|
if not rs.eof Then
|
QR_ID = rs("QR_ID") '微信验证码ID
|
sql="update weixinQR set QR_Name='"&ServiceOrdNo&"',QR_Key='"&ServiceOrdID&"',QR_Time=getdate() where QR_ID="&QR_ID
|
objConn.Execute sql
|
end if
|
rs.close()
|
End If
|
%>
|
<div class="label" style="float: left;margin-left: 678px;">
|
<label for="input-small">微信验证码:<a href="https://wx.966120.com.cn/wx_QR.asp?QR_ID=<%=QR_ID%>" target="_blank"><%=QR_ID%></a> [<a onclick="JS_smsTosend('','请在微信关注【966120民航医疗快线】,关注公众号后,回复验证码:<%=QR_ID%>,可查询订单并支付相关费用。')">发短信</a>]</label>
|
</div>
|
<%End If%>
|
</div>
|
|
|
<div class="field">
|
<div class="label" style="float: left;margin-left: 0px;">
|
<label for="input-small">患者姓名:</label>
|
</div>
|
<div class="input" style="float:left;margin-left: 70px;">
|
<input type="text" id="ServiceOrdPtName" name="ServiceOrdPtName" class="small<%If InStr(error,",ServiceOrdPtName,")>0 Or ServiceOrdPtName="" Then Response.Write " error"%>" style="width:68px;" value="<%=ServiceOrdPtName%>" onchange="upperCase(this.name)">
|
</div>
|
<div class="label" style="float: left;margin-left: 156px;">
|
<label for="input-small">年龄:</label>
|
</div>
|
<div class="input" style="float:left;margin-left: 38px;">
|
<input type="text" id="ServiceOrdPtAge" name="ServiceOrdPtAge" class="small" style="width:38px;" value="<%=ServiceOrdPtAge%>" onchange="upperCase(this.name)">
|
</div>
|
<div class="label" style="float: left;margin-left: 248px;">
|
<label for="input-small">性别:</label>
|
</div>
|
<div class="input" style="float:left;margin-left: 40px;">
|
<select name="ServiceOrdPtSex" id="ServiceOrdPtSex" style="width:50px;" class="select1" onchange="upperCase(this.name)">
|
<option value="">请选择</option>
|
<option value="男"<%if ServiceOrdPtSex="男" then Response.Write " selected"%>>男</option>
|
<option value="女"<%if ServiceOrdPtSex="女" then Response.Write " selected"%>>女</option>
|
</select>
|
</div>
|
<div class="label" style="float: left;margin-left: 346px;">
|
<label for="input-small">体重(公斤):</label>
|
</div>
|
<div class="input" style="float:left;margin-left: 68px;">
|
<input type="text" id="ServiceOrdPtKG" name="ServiceOrdPtKG" class="small" style="width:28px;" value="<%=ServiceOrdPtKG%>" onchange="upperCase(this.name)">
|
</div>
|
<div class="input" style="float: left;margin-left:12px;">
|
<select name="IsPtIDCard" id="IsPtIDCard" style="width:100px;" class="select1" onchange="js_IsPtIDCard(this.name)">
|
<option value="1">已领取身份证</option>
|
<option value="2"<%if Len(ServiceOrdPtIDCard)<>"18" And Len(ServiceOrdPtIDCard)<>"15" And ServiceOrdPtIDCard<>"" then Response.Write " selected"%>>未领取身份证</option>
|
</select>
|
</div>
|
<div class="label" style="float: left;margin-left:582px">
|
<label for="input-small" id="IDCardName"><%if Len(ServiceOrdPtIDCard)<>"18" And Len(ServiceOrdPtIDCard)<>"15" And ServiceOrdPtIDCard<>"" then%>出生日期<%else%>身份证<%End If%>:</label>
|
</div>
|
<div class="input" style="float:left;margin-left: 60px;">
|
<input type="text" id="ServiceOrdPtIDCard" name="ServiceOrdPtIDCard" class="small" style="width:138px;" value="<%=ServiceOrdPtIDCard%>" onchange="upperCase(this.name);js_checkCard(this.name);">
|
</div>
|
<div class="label" style="float: left;margin-left:796px">
|
<label for="input-small">国籍:</label>
|
</div>
|
<div class="input" style="float:left;margin-left: 38px;">
|
<input type="text" id="ServiceOrdPtNat" name="ServiceOrdPtNat" class="small" style="width:40px;" value="<%=ServiceOrdPtNat%>" onchange="upperCase(this.name)">
|
</div>
|
<script LANGUAGE="javascript">
|
function js_IsPtIDCard() {
|
IsPtIDCard=document.form1.IsPtIDCard.value;
|
if (IsPtIDCard=="1"){
|
document.getElementById("IDCardName").innerHTML="身份证:";
|
IDCard=document.getElementById("ServiceOrdPtIDCard").value;
|
checkCard(IDCard);
|
}else{
|
document.getElementById("IDCardName").innerHTML="出生日期:";
|
document.getElementById("IDCardError").innerHTML="";
|
}
|
}
|
function js_checkCard(CardName) {
|
IDCard=document.getElementById(CardName).value;
|
IsPtIDCard=document.form1.IsPtIDCard.value;
|
//console.log(IDCard);
|
if (IsPtIDCard=="1"){
|
checkCard(IDCard);
|
}
|
//console.log(IsPtIDCard);
|
}
|
</script>
|
|
</div>
|
<div class="field">
|
<div class="label" style="float: left;margin-left: 0px;">
|
<label for="input-small">派车地址:</label>
|
</div>
|
<%
|
If ServiceOrdTraStreet="" Then
|
If DispatchOrdClass<>"" Then
|
DefaultAddress=OrderClassC(DispatchOrdClass,"Address")
|
ElseIf ServiceOrdClass<>"" Then
|
DefaultAddress=OrderClassC(ServiceOrdClass,"Address")
|
Else
|
DefaultAddress="广东省广州市白云区兆丰路151号"
|
End If
|
ServiceOrdTraStreet=DefaultAddress
|
End If
|
%>
|
<div class="input" style="float:left;margin-left: 70px;">
|
<input type="text" id="ServiceOrdTraStreet" name="ServiceOrdTraStreet" class="small<%If InStr(error,",ServiceOrdTraStreet,")>0 Or ServiceOrdTraStreet="" Then Response.Write " error"%>" style="width:370px;" value="<%=ServiceOrdTraStreet%>" onchange="upperCase(this.name)">
|
</div>
|
<div class="input" style="float:left;margin-left: 70px;" id="IDCardError"></div>
|
</div>
|
<div class="field">
|
<div class="label" style="float: left;margin-left: 0px;">
|
<label for="input-small" style="color: #E91E63;">转出医院:</label>
|
</div>
|
<%'医院字典
|
'If ServiceOrdPtOutHospID="0" Or ServiceOrdPtOutHospID="" Then ServiceOrdPtOutHosp=""
|
If IsNumeric(ServiceOrdPtOutHosp) And ServiceOrdPtOutHosp<>"" And Len(ServiceOrdPtOutHosp)<10 then
|
sql="select vtext from dictionary where vType=1 and vtitle='HospName' and vID="&ServiceOrdPtOutHosp
|
rs.open sql,objConn,1,1
|
If not rs.Eof Then
|
ServiceOrdPtOutHospTXT=rs("vtext")
|
Else
|
ServiceOrdPtOutHospTXT=ServiceOrdPtOutHosp
|
End If
|
rs.close()
|
Else
|
ServiceOrdPtOutHospTXT=ServiceOrdPtOutHosp
|
End If
|
'Response.Write sql
|
If ServiceOrdPtOutHospTXT="0" Then ServiceOrdPtOutHospTXT=""
|
If ServiceOrdPtOutHospID<>"0" And ServiceOrdPtOutHospID<>"" And ServiceOrdPtOutHospTXT<>"" Then
|
sql="select HospName,HospLevel from HospData where HospID="&ServiceOrdPtOutHospID
|
rs.open sql,objConn,1,1
|
If not rs.Eof Then
|
ServiceOrdPtOutHospTXT=ServiceOrdPtOutHospTXT&"|"&HospLevelA(rs("HospLevel"))
|
End If
|
rs.close()
|
End If
|
%>
|
<div class="input" style="float:left;margin-left: 70px;">
|
<input name="ServiceOrdPtOutHospID" id="ServiceOrdPtOutHospID" type="hidden" value="<%=ServiceOrdPtOutHospID%>" onchange="upperCase(this.name)">
|
<input type="text" id="ServiceOrdPtOutHosp" name="ServiceOrdPtOutHosp" class="small<%If InStr(error,",ServiceOrdPtOutHosp,")>0 Or ((ServiceOrdPtOutHospID="0" Or ServiceOrdPtOutHospID="") And ServiceOrdPtOutHospTXT="") Then Response.Write " error"%><%'If ServiceOrd_AP_Check="1" Then Response.Write " valid"%>" style="width:369px;color: #E91E63;" value="<%=ServiceOrdPtOutHospTXT%>" readonly="true" onclick="javascript:JS_HospOpen('ServiceOrdPtOutHosp');" onchange="upperCase(this.name)">
|
</div>
|
<div class="label" style="float: left;margin-left: 456px;">
|
<label for="input-small">转出科室床位:</label>
|
</div>
|
<div class="input" style="float:left;margin-left: 88px;">
|
<%If ServiceOrdPtServicesID="-2" Then
|
HospDepartmentName="【隐】"
|
ElseIf ServiceOrdPtServicesID<>"0" And ServiceOrdPtServicesID<>"" Then
|
sql="select vId,vtext from dictionary where vType=1 and vtitle='HospitalDepartment' and vID="&ServiceOrdPtServicesID&" order by vOrder"
|
rs.open sql,objConn,1,1
|
If not rs.Eof Then
|
HospDepartmentName=rs(1)
|
End If
|
rs.close()
|
End If%>
|
<input name="ServiceOrdPtServicesID" id="ServiceOrdPtServicesID" type="hidden" value="<%=ServiceOrdPtServicesID%>" onchange="upperCase(this.name)">
|
<input type="text" id="HospDepartmentName" name="HospDepartmentName" class="small<%If InStr(error,",ServiceOrdPtServicesID,")>0 Or ServiceOrdPtServicesID="" Then Response.Write " error"%>" style="width:78px;" value="<%=HospDepartmentName%>" readonly="true" onclick="javascript:JS_HospDepartmentOpen('ServiceOrdPtServicesID','HospDepartmentName');" onchange="upperCase(this.name)">
|
|
</div>
|
<div class="input" style="float:left;margin-left: 5px;">
|
<input type="text" id="ServiceOrdPtServices" name="ServiceOrdPtServices" class="small" style="width:228px;" value="<%=ServiceOrdPtServices%>" onchange="upperCase(this.name)">
|
</div>
|
</div>
|
<div class="field">
|
<div class="label" style="float: left;margin-left: 0px;">
|
<label for="input-small" style="color: #E91E63;">转出地址:</label>
|
</div>
|
<div class="input" style="float:left;margin-left: 70px;">
|
<input type="text" id="ServiceOrdTraVia" name="ServiceOrdTraVia" class="small<%If InStr(error,",ServiceOrdTraVia,")>0 Or ServiceOrdTraVia="" Then Response.Write " error"%>" style="width:800px;color: #E91E63;" value="<%=ServiceOrdTraVia%>" onchange="upperCase(this.name)">
|
</div>
|
<input type="hidden" id="ServiceOrdTraStreetCoo" name="ServiceOrdTraStreetCoo" value="<%=ServiceOrdTraStreetCoo%>"/>
|
<input type="hidden" id="ServiceOrdTraEndCoo" name="ServiceOrdTraEndCoo" value="<%=ServiceOrdTraEndCoo%>"/>
|
</div>
|
|
<div class="field" id="OrdViadriving"<%If OrderLevel<>"2" Then Response.Write(" style=""display:none;""")%>>
|
<div class="label" style="float: left;margin-left: 0px;">
|
<label for="input-small">中途距离:</label>
|
</div>
|
<div class="input" style="float:left;margin-left: 70px;">
|
<input type="text" id="ServiceOrdViaDistance" name="ServiceOrdViaDistance" class="small" style="width:85px;" value="<%=ServiceOrdViaDistance%>">
|
<%If DispatchOrd_AP_Check<>"1" Then%>
|
|
<input type="button" id="button_lbs_drivingVia" name="button_lbs_drivingVia" value="自动计算" style="background: #9a6d92 url(../../../resources/images/colors/purple/button_highlight.png) repeat-x;color: #ffffff;" onclick="lbs_addressdistanceVia();" class="ui-button ui-widget ui-state-default ui-corner-all" role="button" aria-disabled="false">
|
<label for="input-small" style="color: #E91E63;font-weight: bold;padding-left: 6px;float: left;line-height: 16px;">选填,若有<span style='color: #3300ff;font-weight: bold;'>协助上车后返回</span>情况的请填写<br>自动计算公式:派车地址-->转出地址 <span style="color: #393939;">(数据来源:百度地图。仅供参考,可手动填写)</span></label>
|
<input name="FromLatLngVia" id="FromLatLngVia" type="hidden" value="">
|
<input name="ToLatLngVia" type="hidden" value="">
|
<script LANGUAGE="javascript">
|
//计算地址坐标
|
function lbs_addressdistanceVia() {
|
FromAddress=document.form1.ServiceOrdTraStreet.value;
|
ToAddress=document.form1.ServiceOrdTraVia.value;
|
document.form1.FromLatLngVia.value="";
|
document.form1.ToLatLngVia.value="";
|
if (FromAddress!='' && ToAddress!='')
|
{
|
document.getElementById("button_lbs_drivingVia").style.display="none";
|
lbs_distance("FromVia",FromAddress);
|
lbs_distance("ToVia",ToAddress);
|
setTimeout("lbs_drivingVia()", 2000);
|
} else if (FromAddress=='') {
|
alert("请输入派车地址");
|
} else if (ToAddress=='') {
|
alert("请输入转出地址");
|
}
|
}
|
|
//路线规划服务
|
function lbs_drivingVia() {
|
//alert("路线规划服务");
|
//出发地
|
FromLatLng=document.form1.FromLatLngVia.value;
|
ToLatLng=document.form1.ToLatLngVia.value;
|
|
if (FromLatLng!='' && ToLatLng!='')
|
{
|
//路线规划里程公式 (出发地=>途经点)
|
$.ajax({
|
type: "POST",
|
url: "/weixin/lbs_driving.asp",//需要跳转到的界面 the page you want to post data
|
data: {
|
FromLatLng: FromLatLng,
|
ToLatLng: ToLatLng//要传给后台的数据 the data you should send to background
|
},
|
beforeSend: function() {},//在发送之前你可以进行相关操作 what you want to do before send
|
success: function(data) {
|
lbs=data.split("|");
|
if (lbs[0]!='0')
|
{
|
var distance=lbs[0]; //总距离
|
var duration=lbs[1]; //估算时间(含路况)
|
document.form1.ServiceOrdViaDistance.value = parseInt(distance/1000/2)+"公里";
|
//计算标准报价
|
//var TraUnitPrice=document.getElementById('ServiceOrdTraUnitPrice').value;
|
//var km="";
|
//km=parseInt(distance/1000/2);
|
//var OfferPrice=TraUnitPrice*km
|
//document.getElementById("ServiceOrdTraOfferPrice").value=OfferPrice;
|
//document.getElementById("ServiceOrdTraTxnPrice").value=OfferPrice;
|
document.getElementById("button_lbs_drivingVia").style.display="block";
|
}else{
|
//alert("查询失败");
|
document.form1.ServiceOrdViaDistance.value = "";
|
document.getElementById("button_lbs_drivingVia").style.display="block";
|
}
|
}
|
})
|
}else{
|
document.form1.ServiceOrdViaDistance.value = "";
|
document.getElementById("button_lbs_drivingVia").style.display="block";
|
}
|
|
};
|
</script>
|
<%End If%>
|
</div>
|
</div>
|
|
<div class="field">
|
<div class="label" style="float: left;margin-left: 0px;">
|
<label for="input-small" style="color: #4CAF50;">转入医院:</label>
|
</div>
|
<%'医院字典
|
If IsNumeric(ServiceOrdPtInHosp) And ServiceOrdPtInHosp<>"" And Len(ServiceOrdPtInHosp)<10 then
|
sql="select vtext from dictionary where vType=1 and vtitle='HospName' and vID="&ServiceOrdPtInHosp
|
rs.open sql,objConn,1,1
|
If not rs.Eof Then
|
ServiceOrdPtInHospTXT=rs("vtext")
|
Else
|
ServiceOrdPtInHospTXT=ServiceOrdPtInHosp
|
End If
|
rs.close()
|
Else
|
ServiceOrdPtInHospTXT=ServiceOrdPtInHosp
|
End If
|
If ServiceOrdPtInHospTXT="0" Then ServiceOrdPtInHospTXT=""
|
If ServiceOrdPtInHospID<>"0" And ServiceOrdPtInHospID<>"" And ServiceOrdPtInHospTXT<>"" Then
|
sql="select HospName,HospLevel from HospData where HospID="&ServiceOrdPtInHospID
|
rs.open sql,objConn,1,1
|
If not rs.Eof Then
|
ServiceOrdPtInHospTXT=ServiceOrdPtInHospTXT&"|"&HospLevelA(rs("HospLevel"))
|
End If
|
rs.close()
|
End If
|
%>
|
<div class="input" style="float:left;margin-left: 70px;">
|
<input name="ServiceOrdPtInHospID" id="ServiceOrdPtInHospID" type="hidden" value="<%=ServiceOrdPtInHospID%>" onchange="upperCase(this.name)">
|
<input type="text" id="ServiceOrdPtInHosp" name="ServiceOrdPtInHosp" class="small<%If InStr(error,",ServiceOrdPtInHosp,")>0 Or ((ServiceOrdPtInHospID="0" Or ServiceOrdPtInHospID="") And ServiceOrdPtInHospTXT="") Then Response.Write " error"%><%'If ServiceOrd_AP_Check="1" Then Response.Write " valid"%>" style="width:369px;color: #4CAF50;" value="<%=ServiceOrdPtInHospTXT%>" readonly="true" onclick="javascript:JS_HospOpen('ServiceOrdPtInHosp');" onchange="upperCase(this.name)">
|
</div>
|
<div class="label" style="float: left;margin-left: 456px;">
|
<label for="input-small">转入科室床位:</label>
|
</div>
|
<div class="input" style="float:left;margin-left: 88px;">
|
<%If ServiceOrdPtInServicesID="-2" Then
|
HospInDepartmentName="【隐】"
|
ElseIf ServiceOrdPtInServicesID<>"0" And ServiceOrdPtInServicesID<>"" Then
|
sql="select vId,vtext from dictionary where vType=1 and vtitle='HospitalDepartment' and vID="&ServiceOrdPtInServicesID&" order by vOrder"
|
rs.open sql,objConn,1,1
|
If not rs.Eof Then
|
HospInDepartmentName=rs(1)
|
End If
|
rs.close()
|
End If%>
|
<input name="ServiceOrdPtInServicesID" id="ServiceOrdPtInServicesID" type="hidden" value="<%=ServiceOrdPtInServicesID%>" onchange="upperCase(this.name)">
|
<input type="text" id="HospInDepartmentName" name="HospInDepartmentName" class="small<%If InStr(error,",ServiceOrdPtInServicesID,")>0 Or ServiceOrdPtInServicesID="" Then Response.Write " error"%>" style="width:78px;" value="<%=HospInDepartmentName%>" readonly="true" onclick="javascript:JS_HospDepartmentOpen('ServiceOrdPtInServicesID','HospInDepartmentName');">
|
|
</div>
|
<div class="input" style="float:left;margin-left: 5px;">
|
<input type="text" id="ServiceOrdPtInServices" name="ServiceOrdPtInServices" class="small" style="width:228px;" value="<%=ServiceOrdPtInServices%>" onchange="upperCase(this.name)">
|
</div>
|
</div>
|
<div class="field" id="OrdTraVia">
|
<div class="label" style="float: left;margin-left: 0px;">
|
<label for="input-small" style="color: #4CAF50;">转入地址:</label>
|
</div>
|
<div class="input" style="float:left;margin-left: 70px;">
|
<input type="text" id="ServiceOrdTraEnd" name="ServiceOrdTraEnd" class="small<%If InStr(error,",ServiceOrdTraEnd,")>0 Or ServiceOrdTraEnd="" Then Response.Write " error"%>" style="width:800px;color: #4CAF50;" value="<%=ServiceOrdTraEnd%>" onchange="upperCase(this.name)">
|
</div>
|
</div>
|
|
<div class="field" id="OrdTraVia">
|
<div class="label" style="float: left;margin-left: 0px;">
|
<label for="input-small">预估距离:</label>
|
</div>
|
<div class="input" style="float:left;margin-left: 70px;">
|
|
<input type="text" id="ServiceOrdTraDistance" name="ServiceOrdTraDistance" class="small<%If InStr(error,",ServiceOrdTraDistance,")>0 Or ServiceOrdTraDistance="" Then Response.Write " error"%>" style="width:85px;" value="<%=ServiceOrdTraDistance%>" onchange="upperCase(this.name)">
|
<%If ServiceOrd_AP_Check<>"1" Then%>
|
|
<input type="button" id="button_lbs_driving" name="button_lbs_driving" value="自动计算" style="background: #9a6d92 url(../../../resources/images/colors/purple/button_highlight.png) repeat-x;color: #ffffff;" onclick="lbs_addressdistance();" class="ui-button ui-widget ui-state-default ui-corner-all" role="button" aria-disabled="false">
|
<input type="button" id="button_lbs_RoutePlan" name="button_lbs_RoutePlan" value="显示路线" style="background: #9a6d92 url(../../../resources/images/colors/purple/button_highlight.png) repeat-x;color: #ffffff;display:none;" onclick="lbs_RoutePlan();" class="ui-button ui-widget ui-state-default ui-corner-all" role="button" aria-disabled="false">
|
<label for="input-small" style="color: #E91E63;font-weight: bold;padding-left: 6px;float: left;line-height: 16px;">必填,若<span style='color: #3300ff;font-weight: bold;'>无数据</span>或<span style='color: #3300ff;font-weight: bold;'>无行驾里程</span>请写"-1"<br>自动计算公式:(派车地址-->转出地址-->转入地址-->派车地址) ÷ 2 <span style="color: #393939;">(数据来源:百度地图。仅供参考,可手动填写)</span></label>
|
<input name="FromLatLng" id="FromLatLng" type="hidden" value="">
|
<input name="WaypointsLatLng" type="hidden" value="">
|
<input name="ToLatLng" type="hidden" value="">
|
<script LANGUAGE="javascript">
|
//显示路线规划
|
function lbs_RoutePlan() {
|
FromLatLng=document.form1.FromLatLng.value;
|
WaypointsLatLng=document.form1.WaypointsLatLng.value;
|
ToLatLng=document.form1.ToLatLng.value;
|
if (FromLatLng!='' && ToLatLng!='')
|
{
|
window.open ('/weixin/lbs_RoutePlan.asp?FromLatLng='+FromLatLng+'&ToLatLng='+ToLatLng+'&WaypointsLatLng='+WaypointsLatLng)
|
//showModalDialog('https://www.jb51.net,'脚本之家','dialogWidth:400px;dialogHeight:300px;dialogLeft:200px;dialogTop:150px;center:yes;help:yes;resizable:yes;status:yes')
|
}
|
}
|
|
//计算地址坐标
|
function lbs_addressdistance() {
|
FromAddress=document.form1.ServiceOrdTraStreet.value;
|
WaypointsAddress=document.form1.ServiceOrdTraVia.value;
|
ToAddress=document.form1.ServiceOrdTraEnd.value;
|
document.form1.FromLatLng.value="";
|
document.form1.WaypointsLatLng.value="";
|
document.form1.ToLatLng.value="";
|
if (FromAddress!='' && WaypointsAddress!='' && ToAddress!='')
|
{
|
document.getElementById("button_lbs_driving").style.display="none";
|
document.getElementById("button_lbs_RoutePlan").style.display="none";
|
lbs_distance("From",FromAddress);
|
lbs_distance("Waypoints",WaypointsAddress);
|
lbs_distance("To",ToAddress);
|
setTimeout("lbs_driving()", 2000);
|
} else if (FromAddress=='') {
|
alert("请输入派车地址");
|
} else if (WaypointsAddress=='') {
|
alert("请输入转出地址");
|
} else if (ToAddress=='') {
|
alert("请输入转入地址");
|
}
|
}
|
//路线规划服务
|
function lbs_driving() {
|
//alert("路线规划服务");
|
//出发地
|
FromLatLng=document.form1.FromLatLng.value;
|
WaypointsLatLng=document.form1.WaypointsLatLng.value;
|
ToLatLng=document.form1.ToLatLng.value;
|
//alert("1:"+FromLatLng+",2:"+WaypointsLatLng+",3:"+ToLatLng);
|
|
if (FromLatLng!='' && WaypointsLatLng!='' && ToLatLng!='')
|
{
|
//路线规划里程公式 (出发地=>途经点=>目的地=>出发地)/2
|
WaypointsLatLng=WaypointsLatLng+';'+ToLatLng;
|
ToLatLng=FromLatLng;
|
$.ajax({
|
type: "POST",
|
url: "/weixin/lbs_driving.asp",//需要跳转到的界面 the page you want to post data
|
data: {
|
FromLatLng: FromLatLng,
|
WaypointsLatLng: WaypointsLatLng,
|
ToLatLng: ToLatLng//要传给后台的数据 the data you should send to background
|
},
|
beforeSend: function() {},//在发送之前你可以进行相关操作 what you want to do before send
|
success: function(data) {
|
lbs=data.split("|");
|
if (lbs[0]!='0')
|
{
|
var distance=lbs[0]; //总距离
|
var duration=lbs[1]; //估算时间(含路况)
|
document.form1.ServiceOrdTraDuration.value = formatMinutes(duration);
|
document.form1.ServiceOrdTraDistance.value = parseInt(distance/1000/2)+"公里";
|
//计算标准报价
|
//var TraUnitPrice=document.getElementById('ServiceOrdTraUnitPrice').value;
|
//var km="";
|
//km=parseInt(distance/1000/2);
|
//var OfferPrice=TraUnitPrice*km
|
//document.getElementById("ServiceOrdTraOfferPrice").value=OfferPrice;
|
//document.getElementById("ServiceOrdTraTxnPrice").value=OfferPrice;
|
document.getElementById("button_lbs_driving").style.display="block";
|
document.getElementById("button_lbs_RoutePlan").style.display="block";
|
}else{
|
//alert("查询失败");
|
document.form1.ServiceOrdTraDuration.value = "";
|
document.form1.ServiceOrdTraDistance.value = "";
|
document.getElementById("button_lbs_driving").style.display="block";
|
}
|
}
|
})
|
}else{
|
document.form1.ServiceOrdTraDuration.value = "";
|
document.form1.ServiceOrdTraDistance.value = "";
|
document.getElementById("button_lbs_driving").style.display="block";
|
}
|
|
};
|
</script>
|
<%End If%>
|
|
<script LANGUAGE="javascript">
|
//地址坐标查询
|
function lbs_distance(addressname,address) {
|
//alert(address);
|
$.ajax({
|
type: "POST",
|
url: "/weixin/lbs_distance.asp",//需要跳转到的界面 the page you want to post data
|
data: {
|
address: address//要传给后台的数据 the data you should send to background
|
},
|
beforeSend: function() {},//在发送之前你可以进行相关操作 what you want to do before send
|
success: function(data) {
|
lbs=data.split("|");
|
if (lbs[0]!='0')
|
{
|
var lat=lbs[0];
|
var lng=lbs[1];
|
|
console.log("test:"+addressname+"-lat:"+lat+",lng:"+lng);
|
if (addressname=='From')
|
{
|
document.form1.FromLatLng.value = lat+","+lng;
|
}
|
else if ((addressname=='Waypoints'))
|
{
|
document.form1.WaypointsLatLng.value = lat+","+lng;
|
}
|
else if ((addressname=='To'))
|
{
|
document.form1.ToLatLng.value = lat+","+lng;
|
}else if (addressname=='FromVia')
|
{
|
document.form1.FromLatLngVia.value = lat+","+lng;
|
}
|
else if ((addressname=='ToVia'))
|
{
|
document.form1.ToLatLngVia.value = lat+","+lng;
|
}
|
//lbs_driving();
|
//alert(lng);
|
}else{
|
alert("地址查询失败,请输入地址的省市等详细地址信息");
|
document.form1.ServiceOrdTraDistance.value = "";
|
}
|
}
|
})
|
};
|
function formatMinutes(minutes) {
|
var day = parseInt(Math.floor(minutes / 1440));
|
var hour = day > 0
|
? Math.floor((minutes - day * 1440) / 60)
|
: Math.floor(minutes / 60);
|
var minute = hour > 0
|
? Math.floor(minutes - day * 1440 - hour * 60)
|
: minutes;
|
var time = "";
|
if (day > 0) time += day + "天";
|
if (hour > 0) time += hour + "小时";
|
if (minute > 0) time += minute + "分钟";
|
return time;
|
}
|
</script>
|
</div>
|
</div>
|
|
|
|
<div class="field" style="display: none;">
|
<div class="label" style="float: left;margin-left: 0px;">
|
<label for="input-small">转运去向:</label>
|
</div>
|
<div class="input" style="float:left;margin-left: 70px;">
|
<select name="DirectionType" id="DirectionType" <%If InStr(error,",DirectionType,")>0 Or DirectionType="" Or DirectionType="0" Then Response.Write " style=""width:138px;height:30px;background-color:#FBE3E4;border:1px solid #FBC2C4;""" Else Response.Write " style=""width:138px;"" class=""select1""" %>>
|
<option value="0">请选择</option>
|
<%sql="select vId,vtext from dictionary where vType=1 and vtitle='DirectionType' order by vOrder"
|
rs.open sql,objConn,1,1
|
do while not rs.Eof
|
DirectionTypeID=rs(0)
|
DirectionTypeName=rs(1)
|
%>
|
<option value="<%=DirectionTypeID%>"<%if Clng(DirectionType)=Clng(DirectionTypeID) then Response.Write " selected"%>><%=DirectionTypeName%></option>
|
<%
|
rs.movenext
|
loop
|
rs.close()%>
|
</select>
|
</div>
|
<div class="label" style="float: left;margin-left:216px;">
|
<label for="input-small">病重级别:</label>
|
</div>
|
<div class="input" style="float:left;margin-left: 65px;">
|
<select name="ConditionLevel" id="ConditionLevel" <%If InStr(error,",ConditionLevel,")>0 Or ConditionLevel="" Or ConditionLevel="0" Then Response.Write " style=""width:138px;height:30px;background-color:#FBE3E4;border:1px solid #FBC2C4;""" Else Response.Write " style=""width:138px;"" class=""select1""" %>>
|
<option value="0">请选择</option>
|
<%sql="select vId,vtext from dictionary where vType=1 and vtitle='ConditionLevel' order by vOrder"
|
rs.open sql,objConn,1,1
|
do while not rs.Eof
|
ConditionLevelID=rs(0)
|
ConditionLevelName=rs(1)
|
%>
|
<option value="<%=ConditionLevelID%>"<%if Clng(ConditionLevel)=Clng(ConditionLevelID) then Response.Write " selected"%>><%=ConditionLevelName%></option>
|
<%
|
rs.movenext
|
loop
|
rs.close()%>
|
</select>
|
</div>
|
</div>
|
|
<div class="field">
|
<div class="label" style="float: left;margin-left: 0px;">
|
<label for="input-small">诊断:</label>
|
</div>
|
<div class="input" style="float:left;margin-left: 70px;">
|
<%
|
If ServiceOrdID<>"" Then
|
sql="select icd_id,icd_name from ServiceOrder_ICD,ICD10 where icd_id=id and ServiceOrdIDDt="&ServiceOrdID&" order by idDt"
|
rs.open sql,objConn,1,1
|
EntourageIDs=""
|
do while not rs.Eof
|
icd_id = rs("icd_id")
|
icd_name= rs("icd_name")
|
OrdICD_ID=OrdICD_ID&","&icd_id
|
OrdICD_name=OrdICD_name&icd_name&" , "
|
rs.movenext
|
loop
|
rs.close()
|
End If
|
If OrdICD_ID<>"" Then OrdICD_ID=OrdICD_ID&","
|
%>
|
<input name="OrdICD_ID_old" type="hidden" value="<%=OrdICD_ID%>">
|
<input name="OrdICD_ID" id="OrdICD_ID" type="hidden" value="<%=OrdICD_ID%>">
|
<label id="OrdICD"><%=OrdICD_name%></label><a onclick="javascript:JS_ICDOpen('OrdICD');">[添加病情诊断]</a><br><br>
|
<textarea id="ServiceOrdPtDiagnosis" name="ServiceOrdPtDiagnosis" cols="50" rows="3" style="width:811px;" onchange="upperCase(this.name)"><%=ServiceOrdPtDiagnosis%></textarea>
|
</div>
|
</div>
|
|
<div class="field">
|
<div class="label" style="float: left;margin-left: 0px;">
|
<label for="input-small">目前病情:</label>
|
</div>
|
<div class="checkboxes" style="float:left;margin-left: 70px;max-width: 800px;line-height: 25px;">
|
<ul>
|
<%
|
ConditionDefault="1"
|
If ServiceOrdID<>"" then
|
sql="select ConditionID from ServiceOrd_Condition where ServiceOrdCoID="&ServiceOrdID
|
rs.open sql,objConn,1,1
|
do while not rs.Eof
|
ConditionID=ConditionID&","&rs(0)
|
rs.movenext
|
loop
|
rs.close()
|
End if
|
ConditionIDSP = SPLIT(ConditionID,",")
|
sql="select vID,vtext,vType,vOrder,vOrder2 from dictionary where vType>=1 and vtitle='Condition' order by vOrder,ID"
|
rs.open sql,objConn,1,1
|
If not rs.Eof Then
|
ConditionName= rs("vOrder2")
|
ConditionOrder=rs("vOrder")
|
Response.Write "<li class=""condition""><span>"&ConditionName&":</span>"
|
j=0
|
z=2
|
do while not rs.Eof
|
ConditionID = rs("vID")
|
Condition = rs("vtext")
|
ConditionType= rs("vType")
|
ConditionName= rs("vOrder2")
|
|
If ConditionOrder<>rs("vOrder") Then
|
'Response.Write " </li><li class=""condition""><span>"&ConditionName&":</span>"
|
If z=3 Then
|
Response.Write "<li class=""condition"" style=""min-width: 250px;""><span>"&ConditionName&":</span>"
|
Else
|
Response.Write "<li class=""condition""><span>"&ConditionName&":</span>"
|
End If
|
ConditionOrder=rs("vOrder")
|
z=z+1
|
End If
|
|
Condition_is="0"
|
for i = 1 to UBOUND(ConditionIDSP)
|
If Cstr(ConditionID)=Cstr(ConditionIDSP(i)) Then
|
Condition_is="1"
|
j=j+1
|
End If
|
If j+1>i Then j=i-1
|
Next
|
If UBOUND(ConditionIDSP)>0 then
|
If ConditionType="2" And Cstr(ConditionIDSP(j+1))<>Cstr(ConditionID+1) And Cstr(ConditionIDSP(j))=Cstr(ConditionID) Then Condition_is="1"
|
Else
|
If ConditionType="2" Then Condition_is="1"
|
End If
|
%>
|
<input type="radio" id="ConditionID_<%=ConditionID%>" value="<%=ConditionID%>" name="ConditionID_<%=ConditionOrder%>" <%If Condition_is="1" Then Response.Write " checked=""checked"""%> onchange="upperCase(this.name)"><label for="ConditionID_<%=ConditionID%>"><%=Condition%></label>
|
<%
|
rs.movenext
|
loop
|
Response.Write " </li>"
|
End If
|
rs.close()
|
%>
|
|
</ul>
|
|
</div>
|
</div>
|
<%If ServiceOrdID<>"" And InStr(ServiceOrdOperationRemarks,"客户未正式提交需求")<=0 Then
|
sql="select * from ServiceOrder_Options LEFT join dictionary on vtitle='ServiceOptions' and vID=ServiceOptionsID where ServiceOrdSoID="&ServiceOrdID&" order by ServiceOptionsID"
|
rs.open sql,objConn,1,1
|
If not rs.Eof Or ServiceOrdUnitRemarks<>"" Then%>
|
<div class="field">
|
<div class="label" style="float: left;margin-left: 0px;">
|
<label for="input-small">客户要求:</label>
|
</div>
|
<div class="checkboxes" style="float:left;margin-left: 70px;max-width: 800px;line-height: 25px;">
|
<ul>
|
<%
|
If ServiceOrdUnitRemarks<>"" And ServiceOrdUnitRemarks<>"0" Then
|
Response.Write "<li class=""condition"" ><span style=""color: #E91E63;font-weight: bold;"">"&ServiceOrdUnitRemarks&"</span></li><br>"
|
End If
|
do while not rs.Eof
|
SO_ID = rs("vID")
|
SO_Type = rs("vType")
|
SO_Name = rs("vtext")
|
SO_Value = Replace(rs("ServiceOptionsValue"),"\n",",")
|
SO_Mono = rs("vMono")
|
Response.Write "<li class=""condition"" ><span style=""color: #E91E63;font-weight: bold;"">"&SO_Name
|
If SO_Type="1" Or SO_Type="11" Then '1 单选(是否需要呼机机)
|
Response.Write ""
|
ElseIf SO_Type="2" Or SO_Type="12" Then '2 多项目的单选(服务级别)
|
SO_MonoSP=split(SO_Mono,",")
|
Response.Write ":"&SO_MonoSP(SO_Value+1)
|
ElseIf SO_Type="3" Or SO_Type="13" Then '3 项目的多选(多选类)
|
Response.Write ":"&SO_Value
|
ElseIf SO_Type="4" Or SO_Type="14" Then '4 带数字选项的单选(步梯担抬服务)
|
SO_ValueSP=split(SO_Value,",")
|
SO_MonoSP=split(SO_Mono,",")
|
Response.Write ":"&CInt(SO_ValueSP(1))+CInt(SO_MonoSP(2))&"楼"
|
ElseIf SO_Type="5" Then '5 带数字选项的单选(居家ICU服务)
|
SO_ValueSP=split(SO_Value,",")
|
SO_MonoSP=split(SO_Mono,",")
|
If SO_ID="9" Then
|
SO_Time=(CInt(SO_ValueSP(1))+CInt(SO_MonoSP(2)))/2
|
If SO_Time<1 Then SO_Time="0"&SO_Time
|
Response.Write ":"&SO_Time&"小时"
|
Else
|
Response.Write ":"&CInt(SO_ValueSP(1))+CInt(SO_MonoSP(2))&"小时"
|
End If
|
ElseIf SO_Type="6" Or SO_Type="15" Then '5 文本输入(客户备注类)
|
Response.Write ":"&SO_Value
|
ElseIf InStr(admin_OrderClass,"BF")>0 Then
|
Response.Write SO_Value
|
End If
|
Response.Write "</span></li><br>"
|
rs.movenext
|
Loop
|
|
%>
|
</ul>
|
</div>
|
</div>
|
<%End If
|
rs.close()
|
else%>
|
<%If ServiceOrdUnitRemarks<>"" Then%>
|
<div class="field">
|
<div class="label" style="float: left;margin-left: 0px;">
|
<label for="input-small">客户要求:</label>
|
</div>
|
<div class="checkboxes" style="float:left;margin-left: 70px;max-width: 800px;line-height: 25px;">
|
<ul>
|
<%=ServiceOrdUnitRemarks %>
|
</ul>
|
</div>
|
</div>
|
<% End If%>
|
|
<%End If%>
|
<div class="field">
|
<div class="label" style="float: left;margin-left: 0px;">
|
<label for="input-small">对医护司备注:</label>
|
</div>
|
<div class="input" style="float:left;margin-left: 84px;">
|
<textarea id="ServiceOrdTaskRemarks" name="ServiceOrdTaskRemarks" cols="50" rows="3" style="width:811px;" placeholder="(仅对医护司手机端可见,对客户、合作单位隐藏)" onchange="upperCase(this.name)"><%=ServiceOrdTaskRemarks%></textarea>
|
<textarea id="ServiceOrdPtCondition" name="ServiceOrdPtCondition" cols="50" rows="3" style="width:811px;" placeholder="(对合作单位、医护司手机端可见,勿乱写)" onchange="upperCase(this.name)"><%=ServiceOrdPtCondition%></textarea>
|
</div>
|
</div>
|
<div class="field">
|
<div class="label" style="float: left;margin-left: 0px;">
|
<label for="input-small">调度操作备注:</label>
|
</div>
|
<div class="input" style="float:left;margin-left: 84px;">
|
<%RemarksRows=6
|
If ServiceOrdOperationRemarks<>"" Then
|
strs=split(ServiceOrdOperationRemarks,chr(13))
|
RemarksRows=cint(Len(ServiceOrdOperationRemarks)/60)+ubound(strs)+1
|
If RemarksRows<6 Then RemarksRows=6
|
End If%>
|
<textarea id="ServiceOrdOperationRemarks" name="ServiceOrdOperationRemarks" cols="50" rows="<%=RemarksRows%>" style="width:811px;" placeholder="(对调度中心内部可见,对医护司、客户、合作单位隐藏)" onchange="upperCase(this.name)"><%=ServiceOrdOperationRemarks%></textarea>
|
</div>
|
</div>
|
<!--
|
<div class="field">
|
<div class="label" style="float: left;margin-left: 0px;">
|
<label for="input-small">对合作方备注:</label>
|
</div>
|
<div class="input" style="float:left;margin-left: 84px;">
|
<textarea id="ServiceOrdPtCondition" name="ServiceOrdPtCondition" cols="50" rows="3" style="width:811px;" placeholder="(对合作单位、医护司手机端可见,勿乱写)" onchange="upperCase(this.name)"><%=ServiceOrdPtCondition%></textarea>
|
</div>
|
</div>
|
-->
|
<%If ServiceOrdUnitID>0 And 1=2 then%>
|
|
|
<div class="field">
|
<div class="label" style="float: left;margin-left: 0px;">
|
<label for="input-small"><%=UnitUser(ServiceOrdUnitID,"UnitShort")%>备注:</label>
|
</div>
|
<div class="input" style="float:left;margin-left: 70px;">
|
<textarea id="ServiceOrdUnitRemarks" name="ServiceOrdUnitRemarks" cols="50" rows="3" style="width:811px;" onchange="upperCase(this.name)"><%=ServiceOrdUnitRemarks%></textarea>
|
</div>
|
</div>
|
<div class="field">
|
<div class="label" style="float: left;margin-left: 0px;">
|
<label for="input-small"><%=UnitUser(ServiceOrdUnitID,"UnitShort")%>支付链接:</label>
|
</div>
|
<div class="input" style="float:left;margin-left: 100px;">
|
<input type="text" id="PayQRcodeURL" name="PayQRcodeURL" class="small valid" style="width:380px;" value="<%=PayQRcodeURL%>" readonly="true">
|
</div>
|
</div>
|
<%End If%>
|
<!--
|
<div class="field">
|
<div class="label" style="float: left;margin-left: 0px;">
|
<label for="input-small">主诊医生:</label>
|
</div>
|
<div class="input" style="float:left;margin-left: 70px;">
|
<input type="text" id="ServiceOrdPtDoctor" name="ServiceOrdPtDoctor" class="small" style="width:138px;" value="<%=ServiceOrdPtDoctor%>">
|
</div>
|
<div class="label" style="float: left;margin-left: 231px;">
|
<label for="input-small">医生联系电话:</label>
|
</div>
|
<div class="input" style="float:left;margin-left: 93px;">
|
<input type="text" id="ServiceOrdPtDoctorPhone" name="ServiceOrdPtDoctorPhone" class="small" style="width:121px;" value="<%=ServiceOrdPtDoctorPhone%>">
|
</div>
|
</div>
|
-->
|
|
<%'病情图片显示
|
If CPicInt>0 Then
|
%>
|
<div class="field">
|
<%for c = 1 to CPicInt%>
|
<a href="<%=ConditionPic(c)%>" target="_blank"><img src="<%=ConditionPic(c)%>" width="350" border="0"></a>
|
<%Next%>
|
</div>
|
<%End If%>
|
<div class="field">
|
<!--标准报价-->
|
<% if ServiceOrdTraOfferPrice<>"" and ServiceOrdTraOfferPrice<>0 then %>
|
<div class="label" style="float: left;">
|
<label for="input-small">推送报价:</label>
|
</div>
|
<div class="input" style="float:left;margin-left: 70px;">
|
<input type="text" id="ServiceOrdTraTxnPrice" name="ServiceOrdTraTxnPrice" value="<%=ServiceOrdTraOfferPrice%>" readonly>
|
<input id="ServiceOrdTraOfferPrice_A" type="hidden" value="<%=ServiceOrdTraOfferPrice%>">
|
</div>
|
<% else%>
|
<input id="ServiceOrdTraOfferPrice_A" type="hidden" value="<%=ServiceOrdTraOfferPrice%>">
|
<input type="hidden" id="ServiceOrdTraOfferPrice" name="ServiceOrdTraOfferPrice" class="small" style="width:138px;" onkeyup="value=value.replace(/[^\d.]/g,'')" onblur="value=value.replace(/[^\d.]/g,'')" value="<%=Round(ServiceOrdTraOfferPrice,2)%>">
|
<%end if%>
|
</div>
|
<%'地面服务单
|
If OrderClassB(ServiceOrdClass,"vType")="1" then%>
|
<%'车辆调度单
|
If OrderClassB(DispatchOrdClass,"vType")="2" or DispatchOrdClass="" Then%>
|
<div class="field">
|
<!--单价/公里-->
|
<%'单价字典
|
If ServiceOrdTraUnitPrice="0" then
|
sql="select vOrder from dictionary where vtitle='TraUnitPrice' and vID=1"
|
rs.open sql,objConn,1,1
|
If not rs.Eof Then
|
ServiceOrdTraUnitPrice=rs("vOrder")
|
End If
|
rs.close()
|
End If
|
|
%>
|
<input type="hidden" id="ServiceOrdTraUnitPrice" name="ServiceOrdTraUnitPrice" class="small" style="width:138px;" onkeyup="value=value.replace(/[^\d.]/g,'')" onblur="value=value.replace(/[^\d.]/g,'')" value="<%=Round(ServiceOrdTraUnitPrice,2)%>">
|
|
|
<!--行程时间-->
|
<input type="hidden" id="ServiceOrdTraDuration" name="ServiceOrdTraDuration" class="small" style="width:138px;" value="<%=ServiceOrdTraDuration%>">
|
|
<!--出发地-->
|
|
|
<div class="label" style="float: left;">
|
<label for="input-small">成交价:</label>
|
</div>
|
<div class="input" style="float:left;margin-left: 70px;">
|
<input type="text" id="ServiceOrdTraTxnPrice" name="ServiceOrdTraTxnPrice" class="small<%If InStr(error,",ServiceOrdTraTxnPrice,")>0 Or ServiceOrdTraTxnPrice="0" Then Response.Write " error"%><%If ServiceOrd_AP_Check="1" And DispatchOrd_AP_Check="1" Then Response.Write " valid"%>" style="width:138px;" onkeyup="value=value.replace(/[^\d.]/g,'')" onblur="value=value.replace(/[^\d.]/g,'')" value="<%=MoneyCheck(ServiceOrdTraTxnPrice,0)%>"<%If ServiceOrd_AP_Check="1" And DispatchOrd_AP_Check="1" Then Response.Write " readonly=""true""" %> onchange="upperCase(this.name)">
|
<input type="hidden" id="OrderPrice_Auto" name="OrderPrice_Auto" value="<%=OrderPrice_Auto%>">
|
</div>
|
|
<div class="label" style="float: left;margin-left:224px;">
|
<label for="input-small">需预付款:</label>
|
</div>
|
<div class="input" style="float:left;margin-left: 60px;">
|
<input type="text" id="ServiceOrdTraPrePayment" name="ServiceOrdTraPrePayment" class="small<%If ServiceOrd_AP_Check="1" And DispatchOrd_AP_Check="1" Then Response.Write " valid"%>" style="width:138px;" onkeyup="value=value.replace(/[^\d.]/g,'')" onblur="value=value.replace(/[^\d.]/g,'')" value="<%=MoneyCheck(ServiceOrdTraPrePayment,0)%>"<%If ServiceOrd_AP_Check="1" And DispatchOrd_AP_Check="1" Then Response.Write " readonly=""true""" %> onchange="upperCase(this.name)">
|
</div>
|
<%If SettlementPrice>0 Then%>
|
<div class="label" style="float: left;margin-left:448px;">
|
<label for="input-small">结算价:</label>
|
</div>
|
<div class="input" style="float:left;margin-left: 60px;">
|
<input type="text" id="SettlementPrice" name="SettlementPrice" class="small<%If ServiceOrd_AP_Check="1" And DispatchOrd_AP_Check="1" Then Response.Write " valid"%>" style="width:138px;" onkeyup="value=value.replace(/[^\d.]/g,'')" onblur="value=value.replace(/[^\d.]/g,'')" value="<%=MoneyCheck(SettlementPrice,0)%>"<%If ServiceOrd_AP_Check="1" And DispatchOrd_AP_Check="1" Then Response.Write " readonly=""true""" %> onchange="upperCase(this.name)">
|
</div>
|
<%End If%>
|
|
<!--自动报价-->
|
<%If isDepartment("020118")=1 Then%>
|
<div class="label" style="float: left;margin-left:448px;">
|
<input type="button" id="OrderPrice_v2" name="OrderPrice_v2" value="自动报价(测试)" style="background: #9a6d92 url(../../../resources/images/colors/purple/button_highlight.png) repeat-x;color: #ffffff;" onclick="JS_OrderPrice();" class="ui-button ui-widget ui-state-default ui-corner-all" role="button" aria-disabled="false">
|
</div>
|
|
<script LANGUAGE="javascript">
|
//打开自动报价窗口
|
function JS_OrderPrice()
|
{
|
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("OrderPrice_v2").getBoundingClientRect().top;
|
var dLeft = document.getElementById("OrderPrice_v2").getBoundingClientRect().left;
|
if (dTop<200) {dTop=200;}
|
if (dLeft<120) {dLeft=120;}
|
OrderPriceCreate.style.display="block";
|
OrderPriceCreate.style.left=(dLeft)+"px";
|
OrderPriceCreate.style.top=(sTop+dTop-550)+"px";
|
OrderPriceCreate.style.display='block';
|
$("#IR_StartAddressHtml").html("转出地址:"+$('#ServiceOrdPtOutHosp').val());
|
$("#IR_EndAddressHtml").html("转入地址:"+$('#ServiceOrdPtInHosp').val());
|
$("#IR_StartAddress").val($('#ServiceOrdTraVia').val());
|
$("#IR_EndAddress").val($('#ServiceOrdTraEnd').val());
|
if ($("#IR_TraDistance").val()=="" || $("#IR_TraDistance").val()=="0") {
|
$("#IR_TraDistance").val($('#ServiceOrdTraDistance').val().replace("公里",""));
|
}
|
}
|
|
//自动报价-关闭窗口
|
function JS_OrderPriceClose()
|
{
|
OrderPriceCreate.style.display="none";
|
}
|
//自动报价调起
|
function JS_OrderPriceAPI()
|
{
|
if ($('#OrderPrice_button').val()=="报价")
|
{
|
var IR_ServiceOrdID = $('#IR_ServiceOrdID').val();
|
var IR_StartAddress = $('#IR_StartAddress').val();
|
var IR_EndAddress = $('#IR_EndAddress').val();
|
var IR_NursingLevel = getRadioValue("IR_NursingLevel");
|
var IR_IsVentilato = getRadioValue("IR_IsVentilato");
|
var IR_IsWarmBox = getRadioValue("IR_IsWarmBox");
|
var IR_LiftingInt = $('#IR_LiftingInt').val();
|
var IR_WaitingInt = $('#IR_WaitingInt').val();
|
var TraDistance = $('#IR_TraDistance').val();
|
var StartProvince = $('#IR_StartProvince').val();
|
var StartCity = $('#IR_StartCity').val();
|
var StartArea = $('#IR_StartArea').val();
|
var U_UnitShort = $('#IR_U_UnitShort').val();
|
var U_TraDistance = $('#IR_U_TraDistance').val();
|
var AgeGroup = getRadioValue("AgeGroup");
|
var IR_IsFerry = getRadioValue("IR_IsFerry");
|
console.log(IR_ServiceOrdID);
|
$('#OrderPrice_button').val("计算中..");
|
$.ajax({
|
type: "POST",
|
dataType:'json',
|
url: "https://api.966120.com.cn/v1/OrderPrice_v2.gds",
|
data: {
|
APPID:"GDS-0008-fDwr",
|
ServiceOrdID: IR_ServiceOrdID,
|
StartAddress: IR_StartAddress,
|
EndAddress: IR_EndAddress,
|
NursingLevel: IR_NursingLevel,
|
IsVentilato: IR_IsVentilato,
|
IsWarmBox: IR_IsWarmBox,
|
IsFerry: IR_IsFerry,
|
LiftingInt:IR_LiftingInt,
|
WaitingInt:IR_WaitingInt,
|
TraDistance:TraDistance,
|
StartProvince:StartProvince,
|
StartCity:StartCity,
|
StartArea:StartArea,
|
U_UnitShort:U_UnitShort,
|
U_TraDistance:U_TraDistance,
|
AgeGroup:AgeGroup
|
},
|
beforeSend: function() {},
|
success: function(data) {
|
if (data!='')
|
{
|
console.log(data.OrderPrice);
|
//$("#ServiceOrdTraTxnPrice").val(data.OrderPrice);
|
$("#IR_TraDistance").val(data.TraDistance);
|
$("#IR_StartProvince").val(data.StartProvince);
|
$("#IR_StartCity").val(data.StartCity);
|
$("#IR_StartArea").val(data.StartArea);
|
$("#IR_U_UnitShort").val(data.U_UnitShort);
|
$("#IR_U_TraDistance").val(data.U_TraDistance);
|
$("#OrderPriceTXT").html("自动报价:"+data.OrderPrice+"<br>"+"报价说明:"+data.OrderPriceTXT1+"<br>"+"报价公式:"+data.OrderPriceFRM);
|
//OrderPriceCreate.style.display="none";
|
$('#OrderPrice_button').val("报价");
|
$("#OrderPrice_Auto").val(data.OrderPrice);
|
}
|
}
|
})
|
}
|
|
}
|
</script>
|
<!--自动报价-->
|
<div class="dialogJ dialogJfix dialogJshadow" id="OrderPriceCreate" style="width: 450px; right: 300px; top: 150px;display:none;z-index:10;">
|
<div class="dialogJtitle">
|
<a href="javascript:JS_OrderPriceClose();" class="dialogJclose" title="关闭本窗口"> </a>
|
<span class="dialogJtxt" id="EditPhotoTXT">自动报价</span>
|
</div>
|
<div class="dialogJcontent">
|
<div class="dialogJbody" id="dialogJbody">
|
<input id="IR_ServiceOrdID" type="hidden" value="<%=ServiceOrdID%>">
|
<input id="IR_StartAddress" type="hidden" value="">
|
<input id="IR_EndAddress" type="hidden" value="">
|
<input id="IR_StartProvince" type="hidden" value="">
|
<input id="IR_StartCity" type="hidden" value="">
|
<input id="IR_StartArea" type="hidden" value="">
|
<input id="IR_U_UnitShort" type="hidden" value="">
|
<input id="IR_U_TraDistance" type="hidden" value="">
|
<div class="modify-album-name"><span id="IR_StartAddressHtml">转出地址:</span></div>
|
<div class="modify-album-name"><span id="IR_EndAddressHtml">转入地址:</span></div>
|
<div class="modify-album-name">
|
<span>预估距离:</span>
|
<input id="IR_TraDistance" name="IR_TraDistance" class="text" type="text" value="0" style="width: 50px;" maxlength="99/"> 公里
|
</div>
|
<div class="modify-album-name">
|
<span>病人年龄段</span>
|
<input type="radio" name="AgeGroup" id="AgeGroup_1" value="1" style="width: 18px;height: 16px;" checked="checked"><label for="AgeGroup_1">成人</label>
|
<input type="radio" name="AgeGroup" id="AgeGroup_2" value="2" style="width: 18px;height: 16px;"><label for="AgeGroup_2">儿童0-3岁(含3岁)</label>
|
<input type="radio" name="AgeGroup" id="AgeGroup_3" value="3" style="width: 18px;height: 16px;"><label for="AgeGroup_3">儿童3-6岁(含6岁)</label>
|
<input type="radio" name="AgeGroup" id="AgeGroup_4" value="4" style="width: 18px;height: 16px;"><label for="AgeGroup_4">儿童6-12岁</label>
|
</div>
|
<div class="modify-album-name">
|
<span>医护护理级别</span>
|
<input type="radio" name="IR_NursingLevel" id="IR_NursingLevel_1" value="1" style="width: 18px;height: 16px;"><label for="IR_NursingLevel_1">单司机</label>
|
<input type="radio" name="IR_NursingLevel" id="IR_NursingLevel_2" value="2" style="width: 18px;height: 16px;"><label for="IR_NursingLevel_2">司+护</label>
|
<input type="radio" name="IR_NursingLevel" id="IR_NursingLevel_3" value="3" style="width: 18px;height: 16px;" checked="checked"><label for="IR_NursingLevel_3">医护司</label>
|
</div>
|
<div class="modify-album-name">
|
<span>使用呼吸机:</span>
|
<input type="radio" name="IR_IsVentilato" id="IR_IsVentilato_1" value="1" style="width: 18px;height: 16px;"><label for="IR_IsVentilato_1">是</label>
|
<input type="radio" name="IR_IsVentilato" id="IR_IsVentilato_0" value="0" style="width: 18px;height: 16px;" checked="checked"><label for="IR_IsVentilato_0">否</label>
|
</div>
|
<div class="modify-album-name">
|
<span>使用温箱: </span>
|
<input type="radio" name="IR_IsWarmBox" id="IR_IsWarmBox_1" value="1" style="width: 12px;height: 16px;"><label for="IR_IsWarmBox_1">是</label>
|
<input type="radio" name="IR_IsWarmBox" id="IR_IsWarmBox_0" value="0" style="width: 12px;height: 16px;" checked="checked"><label for="IR_IsWarmBox_0">否</label>
|
</div>
|
<div class="modify-album-name">
|
<span>抬楼层数:</span>
|
<input id="IR_LiftingInt" name="IR_LiftingInt" class="text" type="text" value="0" style="width: 50px;" maxlength="99/"><span> 层</span>
|
<span style="padding-left: 24px;">等待时长:</span>
|
<input id="IR_WaitingInt" name="IR_WaitingInt" class="text" type="text" value="0" style="width: 50px;" maxlength="99/"><span> 小时</span>
|
</div>
|
<div class="modify-album-name">
|
<span>是否轮渡: </span>
|
<input type="radio" name="IR_IsFerry" id="IR_IsFerry_1" value="1" style="width: 18px;height: 16px;"><label for="IR_IsFerry_1">是</label>
|
<input type="radio" name="IR_IsFerry" id="IR_IsFerry_0" value="0" style="width: 18px;height: 16px;" checked="checked"><label for="IR_IsFerry_0">否</label>
|
</div>
|
<div class="modify-album-name">
|
<span id="OrderPriceTXT"></span>
|
</div>
|
</div>
|
</div>
|
<div class="dialogJanswers" style="padding: 10px 20px 13px 18px;">
|
<input type="button" id="OrderPrice_button" class="dialogJbtn first-child" onclick="JS_OrderPriceAPI()" value="报价">
|
<input type="button" class="dialogJbtn" onclick="JS_OrderPriceClose()" value="关闭">
|
</div>
|
|
</div>
|
<%End If%>
|
<!--自动报价 end-->
|
|
</div>
|
|
<%
|
If ServiceOrdID<>"" And ServiceOrdID<>"0" Then
|
UserPointsCost=0 '积分成本
|
UserPoints=0 '用户积分
|
sql="select * from UserPoints where Points_State<>4 and ServiceOrdIDDt="&ServiceOrdID
|
rs.open sql,objConn,1,1
|
do while not rs.Eof
|
P_Type = rs("Points_Type")
|
Points_Score= rs("Points_Score")
|
If P_Type="1" Then
|
UserPointsCost=UserPointsCost+Points_Score
|
ElseIf P_Type="6" Then
|
|
End If
|
rs.movenext
|
loop
|
rs.close()
|
'客户积分
|
If UserID<>"" And UserID<>"0" Then
|
sql="select isnull(sum(Points_Score),0) from UserPoints where Points_State<>4 and ToUserID="&UserID
|
rs.open sql,objConn,1,1
|
if not rs.Eof then
|
UserPoints=rs(0)
|
End If
|
rs.close()
|
End If
|
%>
|
<div class="field">
|
<div class="label" style="float: left;margin-left: 0px;padding: 0 0 0 5px;">
|
<label for="input-small">用户积分:</label>
|
</div>
|
<div class="input" style="float:left;margin-left: 70px;">
|
<%If UserPointsCost>0 Then Response.Write("积分成本: -"&UserPointsCost&",")%>
|
本单使用的积分: <%=ServiceOrdPoints%>,客户剩余积分: <%=UserPoints%>。
|
</div>
|
</div>
|
<%End If%>
|
<div class="field">
|
<div class="label" style="float: left;margin-left: 0px;">
|
<label for="input-small">报价备注:</label>
|
</div>
|
<div class="input" style="float:left;margin-left: 70px;">
|
<input type="text" id="ServiceOrdTraPriceReason" name="ServiceOrdTraPriceReason" class="small<%If ServiceOrd_AP_Check="1" And DispatchOrd_AP_Check="1" Then Response.Write " valid"%>" style="width:338px;" value="<%=ServiceOrdTraPriceReason%>"<%If ServiceOrd_AP_Check="1" And DispatchOrd_AP_Check="1" Then Response.Write " readonly=""true""" %> onchange="upperCase(this.name)">
|
</div>
|
<div class="label" style="float: left;margin-left: 426px;">
|
<label for="input-small">[<a onclick="javascript:JS_CouponOpen('ServiceOrdTraPriceReason');">核销优惠券</a>]</label>
|
</div>
|
<%If ServiceOrdTraPaidPrice<ServiceOrdTraTxnPrice And ServiceOrdState<>4 Then%>
|
<div class="label" style="float: left;margin-left: 514px;margin-top: -7px;">
|
<label for="input-small">发短信支付:
|
<%If ServiceOrdTraTxnPrice+StretcherMoney>0 And ServiceOrdTraPaidPrice<ServiceOrdTraTxnPrice+StretcherMoney Then%>
|
<a onclick="JS_smsTosend('','移动支付指引:<%=ServiceOrdCoName%>您好!请点击以下链接进入信息确认和支付界面。核对您的出车信息无误后,可选择支付宝或者微信支付: [Pay|0|<%=ServiceOrdID%>] ')">支付全额<%=MoneyCheck(ServiceOrdTraTxnPrice+StretcherMoney-ServiceOrdTraPaidPrice,0)%>元</a>
|
<%End If%>
|
<!--<a onclick="JS_smsTosend('','支付全额')">支付全额</a>-->
|
<%If ServiceOrdTraPrePayment>0 And ServiceOrdTraPaidPrice<ServiceOrdTraPrePayment Then%>
|
<a onclick="JS_smsTosend('','移动支付指引:<%=ServiceOrdCoName%>您好!请点击以下链接进入信息确认和支付界面。核对您的出车信息无误后,可选择支付宝或者微信支付: [Pay|1|<%=ServiceOrdID%>] ')">支付预付款<%=MoneyCheck(ServiceOrdTraPrePayment-ServiceOrdTraPaidPrice,0)%>元</a>
|
<%End If%>
|
</label>
|
</div>
|
<%End If%>
|
|
<%If ServiceOrdTraPaidPrice<ServiceOrdTraTxnPrice+StretcherMoney And ServiceOrdState<>4 And UserID<>0 Then
|
sql="select top 1 weixinUserFormID.*,APPID,APPSECRET from weixinUserFormID,IntroducerUnitData,dictionary where vtitle='OrdSource' and vOrder2=APPID and formID_UnitID=UnitID and DATEDIFF(day,formID_savetime,GETDATE())<6 and formID_status>0 and vID="&ServiceOrdSource&" and formID_UserID="&UserID&" order by formID_savetime"
|
rs.open sql,objConn,1,1
|
if not rs.eof Then
|
formID_APPID = rs("APPID")
|
formID_APPSECRET= rs("APPSECRET")
|
formID_id = rs("formID_id")
|
formID_detail = rs("formID_detail")
|
formID_openId = rs("formID_openId")
|
formID_savetime = rs("formID_savetime")
|
formID_UnitID = rs("formID_UnitID")
|
formID_UserID = rs("formID_UserID")
|
formID_status = rs("formID_status")
|
|
formID_TraStreet= ServiceOrdTraStreet
|
formID_TraEnd = ServiceOrdTraEnd
|
If ServiceOrdTraVia<>"" Then formID_TraStreet=ServiceOrdTraVia
|
If InStr(formID_TraStreet,",")>1 Then formID_TraStreet=Mid(formID_TraStreet,InStr(formID_TraStreet,",")+1)
|
If InStr(formID_TraEnd,",")>1 Then formID_TraEnd=Mid(formID_TraEnd,InStr(formID_TraEnd,",")+1)
|
%>
|
<div class="label" style="float: left;margin-left: 514px;margin-top: 14px;">
|
<label for="input-small">发微信支付通知:
|
<%If ServiceOrdTraTxnPrice+StretcherMoney>0 And ServiceOrdTraPaidPrice<ServiceOrdTraTxnPrice+StretcherMoney Then%>
|
<a onclick="JS_WXSMSTosend('<%=formID_APPID%>','<%=formID_openId%>','<%=formID_UnitID%>','Sg-uxoZEPecYVJ_ig7MbQUsnwv8fMGuxPvjWzApW-E4','<%=formID_detail%>','pages/order/detail/detail?ServiceOrdID=<%=ServiceOrdID%>','966120医疗快线转运费用','<%=formID_TraStreet%>','<%=formID_TraEnd%>','<%=FormatNumber(Round(ServiceOrdTraTxnPrice+StretcherMoney,2),2,True)%>元','<%=FormatNumber(Round(ServiceOrdTraTxnPrice+StretcherMoney-ServiceOrdTraPaidPrice,2),2,True)%>元','操作提醒')">支付全额<%=FormatNumber(Round(ServiceOrdTraTxnPrice+StretcherMoney-ServiceOrdTraPaidPrice,2),2,True)%>元</a>
|
<%End If%>
|
<!--<a onclick="JS_smsTosend('','支付全额')">支付全额</a>-->
|
<%If ServiceOrdTraPrePayment>0 And ServiceOrdTraPaidPrice<ServiceOrdTraPrePayment Then%>
|
<a onclick="JS_WXSMSTosend('<%=formID_APPID%>','<%=formID_openId%>','<%=formID_UnitID%>','Sg-uxoZEPecYVJ_ig7MbQUsnwv8fMGuxPvjWzApW-E4','<%=formID_detail%>','pages/order/detail/detail?ServiceOrdID=<%=ServiceOrdID%>','966120医疗快线转运费用','<%=formID_TraStreet%>','<%=formID_TraEnd%>','<%=FormatNumber(Round(ServiceOrdTraTxnPrice,2),2,True)%>元','<%=FormatNumber(Round(ServiceOrdTraPrePayment-ServiceOrdTraPaidPrice,2),2,True)%>元','操作提醒')">支付预付款<%=FormatNumber(Round(ServiceOrdTraPrePayment-ServiceOrdTraPaidPrice,2),2,True)%>元</a>
|
<%End If%>
|
</label>
|
</div>
|
<% End If
|
rs.close()
|
End If%>
|
</div>
|
<%'其它调度单
|
Else%>
|
<input name="ServiceOrdApptDate" type="hidden" value="<%=ServiceOrdApptDate%>">
|
<input name="TransferModeID" type="hidden" value="<%=TransferModeID%>">
|
<input name="province" type="hidden" value="<%=ServiceOrdTraProvince%>">
|
<input name="city" type="hidden" value="<%=ServiceOrdTraCity%>">
|
<input name="ServiceOrdTraStreet" type="hidden" value="<%=ServiceOrdTraStreet%>">
|
<input name="ServiceOrdTraEnd" type="hidden" value="<%=ServiceOrdTraEnd%>">
|
<input name="ServiceOrdTraStreetCoo" type="hidden" value="<%=ServiceOrdTraStreetCoo%>">
|
<input name="ServiceOrdTraEndCoo" type="hidden" value="<%=ServiceOrdTraEndCoo%>">
|
<input name="ServiceOrdTraDistance" type="hidden" value="<%=ServiceOrdTraDistance%>">
|
<input name="ServiceOrdTraDuration" type="hidden" value="<%=ServiceOrdTraDuration%>">
|
<input name="ServiceOrdTraUnitPrice" type="hidden" value="<%=ServiceOrdTraUnitPrice%>">
|
<input name="ServiceOrdTraOfferPrice" type="hidden" value="<%=ServiceOrdTraOfferPrice%>">
|
<input name="ServiceOrdTraPriceReason" type="hidden" value="<%=ServiceOrdTraPriceReason%>">
|
<div class="field">
|
<div class="label" style="float: left;margin-left: 0px;">
|
<label for="input-small">成交价:</label>
|
</div>
|
<div class="input" style="float:left;margin-left: 70px;">
|
<input type="text" id="ServiceOrdTraTxnPrice" name="ServiceOrdTraTxnPrice" class="small<%If InStr(error,",ServiceOrdTraTxnPrice,")>0 Then Response.Write " error"%><%If ServiceOrd_AP_Check="1" And DispatchOrd_AP_Check="1" Then Response.Write " valid"%>" style="width:138px;" onkeyup="value=value.replace(/[^\d.]/g,'')" onblur="value=value.replace(/[^\d.]/g,'')" value="<%=Round(ServiceOrdTraTxnPrice,2)%>"<%If ServiceOrd_AP_Check="1" And DispatchOrd_AP_Check="1" Then Response.Write " readonly=""true""" %> onchange="upperCase(this.name)">
|
</div>
|
</div>
|
<%End If%>
|
<%Else%>
|
<input name="ServiceOrdApptDate" type="hidden" value="<%=ServiceOrdApptDate%>">
|
<input name="TransferModeID" type="hidden" value="<%=TransferModeID%>">
|
<input name="province" type="hidden" value="<%=ServiceOrdTraProvince%>">
|
<input name="city" type="hidden" value="<%=ServiceOrdTraCity%>">
|
<input name="ServiceOrdTraStreet" type="hidden" value="<%=ServiceOrdTraStreet%>">
|
<input name="ServiceOrdTraEnd" type="hidden" value="<%=ServiceOrdTraEnd%>">
|
<input name="ServiceOrdTraStreetCoo" type="hidden" value="<%=ServiceOrdTraStreetCoo%>">
|
<input name="ServiceOrdTraEndCoo" type="hidden" value="<%=ServiceOrdTraEndCoo%>">
|
<input name="ServiceOrdTraDistance" type="hidden" value="<%=ServiceOrdTraDistance%>">
|
<input name="ServiceOrdTraDuration" type="hidden" value="<%=ServiceOrdTraDuration%>">
|
<input name="ServiceOrdTraUnitPrice" type="hidden" value="<%=ServiceOrdTraUnitPrice%>">
|
<input name="ServiceOrdTraOfferPrice" type="hidden" value="<%=ServiceOrdTraOfferPrice%>">
|
<input name="ServiceOrdTraTxnPrice" type="hidden" value="<%=ServiceOrdTraTxnPrice%>">
|
<input name="ServiceOrdTraPriceReason" type="hidden" value="<%=ServiceOrdTraPriceReason%>">
|
<%End if%>
|
<%'回访记录
|
If ServiceOrdState=3 Then
|
sql="select count(Send_ID) from Sms_Log where (Send_Remarks='DispatchOrdID:"&DispatchOrdID&"' or Send_Remarks='DispatchOrdID:"&ServiceOrdID&"') and Send_Text like '%评价%'"
|
rs.open sql,objConn,1,1
|
SendInt=rs(0)
|
rs.close()
|
%>
|
<div class="field">
|
<div class="label" style="float: left;margin-left: 0px;">
|
<label for="input-small">回访记录:</label>
|
</div>
|
<div class="input" style="float:left;margin-left: 70px;">
|
<%If isnull(ServiceOrdVisit_ID) then%>
|
未回访
|
<select name="VisitDict" id="VisitDict" class="select" onchange="js_VisitDict()">
|
<option value=""<%If ReturnChannel="" Then Response.Write " selected"%>>选择快捷记录</option>
|
<%sql="select vId,vtext from dictionary where vType=1 and vtitle='VisitDict' order by vOrder"
|
rs.open sql,objConn,1,1
|
do while not rs.Eof
|
%>
|
<option value="<%=rs(1)%>"><%=rs(1)%></option>
|
<%
|
rs.movenext
|
loop
|
rs.close()%>
|
</select>
|
<%If DispatchOrdID<>"" And Guest_Point="0" Then%> <a onclick="JS_smsTosend('','尊敬的患者家属,本次转运任务已结束,请您点击此链接,对本次转运服务给予评价。谢谢您的支持,祝您生活愉快! [Eva|<%=DispatchOrdID%>] ')">发回访评分短信</a><%If SendInt>0 Then Response.Write " 已发送评分短信 "&SendInt&"次"%><%End If%>
|
<%else%>
|
回访人员:<%=OAUser(ServiceOrdVisit_ID,"UserName")%> 回访时间:<%=ServiceOrdVisit_time%>
|
<%End If%>
|
<br><br><textarea id="ServiceOrdVisit" name="ServiceOrdVisit" cols="50" rows="3" style="width:811px;" onchange="js_RV_PointE();upperCase(this.name);"><%=ServiceOrdVisit%></textarea>
|
<br><br>获知966120的渠道:
|
<select name="ReturnChannel" id="ReturnChannel" class="select" onchange="js_ReturnChannel()">
|
<option value=""<%If ReturnChannel="" Then Response.Write " selected"%>>请选择</option>
|
<%sql="select vId,vtext from dictionary where vType=1 and vtitle='ReturnChannel' order by vOrder"
|
rs.open sql,objConn,1,1
|
do while not rs.Eof
|
ReturnChannelID=rs(0)
|
ReturnChannelName=rs(1)
|
%>
|
<option value="<%=ReturnChannelName%>"<%if ReturnChannel=ReturnChannelName Or (ReturnChannel<>"" And ReturnChannelID=7) then Response.Write " selected"%>><%=ReturnChannelName%></option>
|
<%
|
If ReturnChannel=ReturnChannelName Then ReturnChannel=""
|
rs.movenext
|
loop
|
rs.close()%>
|
</select>
|
<input name="ReturnChannelOther" id="ReturnChannelOther" type="text" value="<%=ReturnChannel%>" style="float: none;padding: 0;<%If ReturnChannel="" Or Isnull(ReturnChannel) Then Response.Write "display:none;"%>">
|
<script LANGUAGE="javascript">
|
function js_ReturnChannel(){
|
ReturnChannel = document.form1.ReturnChannel.value;
|
if(ReturnChannel=='其他(手动填写)') {
|
document.getElementById('ReturnChannelOther').style.display="";
|
}else{
|
document.getElementById('ReturnChannelOther').style.display="none";
|
}
|
}
|
function js_VisitDict(){
|
VisitDict = document.form1.VisitDict.value;
|
document.getElementById('ServiceOrdVisit').value=document.getElementById('ServiceOrdVisit').value+VisitDict;
|
}
|
</script>
|
<input name="ServiceOrdVisit_old" type="hidden" value="<%=ServiceOrdVisit%>">
|
</div>
|
</div>
|
<%If Guest_Point=0 then%>
|
<div class="field">
|
<div class="label" style="float: left;margin-left: 0px;">
|
<label for="input-small">回访评价:</label>
|
</div>
|
<div class="input" style="float:left;margin-left: 70px;line-height:20px;">
|
<%sql="select DispatchOrd_Entourage.id,EntourageOAid,OA_Name,RV_PointE,RV_Point_1,RV_Point_2,RV_Point_3,EntourageID from DispatchOrd_Entourage,OA_User,DispatchOrd where OA_User_ID=EntourageOAid and EntourageState<>4 and DispatchOrdIDDt=DispatchOrdID and DispatchOrdState not in (10,9) and ServiceOrdIDDt="&ServiceOrdID
|
rs.open sql,objConn,1,1
|
i=0
|
do while not rs.Eof
|
Guest_EId = rs("id")
|
Guest_OAid = rs("EntourageOAid")
|
Guest_OA_Name = rs("OA_Name")
|
RV_PointE = rs("RV_PointE")
|
RV_Point_1 = rs("RV_Point_1")
|
RV_Point_2 = rs("RV_Point_2")
|
RV_Point_3 = rs("RV_Point_3")
|
EntourageID = rs("EntourageID")
|
%>
|
<%=Guest_OA_Name%>
|
<select name="RV_PointE_<%=Guest_EId%>" id="RV_PointE_<%=Guest_EId%>" style="width:120px;" class="select" onchange="js_RV_PointE()">
|
<option value=""<%If RV_PointE="" Then Response.Write " selected"%>>请选择</option>
|
<option value=",8"<%If RV_PointE=",8" Then Response.Write " selected"%>>满意</option>
|
<option value=",1"<%If RV_PointE=",1" Then Response.Write " selected"%>>不满意技能水平</option>
|
<option value=",2"<%If RV_PointE=",2" Then Response.Write " selected"%>>不满意服务水平</option>
|
</select>
|
|
|
|
<%i=i+1
|
rs.movenext
|
loop
|
rs.close()%>
|
<span id="RV_PointE_TXT" style="color: #E91E63;font-weight: bold;"></span>
|
</div>
|
'<%If DispatchOrd_AP_Check>=1 And isDepartment("020102")=1 Then%>
|
'<input type="button" name="submit146_1" value="保存回访记录" class="ui-state-default" style="background: #9a6d92 url(../../../resources/images/colors/purple/button_highlight.png) repeat-x;color: #ffffff;" onclick="form1_submit146_1();">
|
'<%End If%>
|
|
'财务锁定的单子,调整成依旧可以回访,避免跨月的月初的时候,不能回访
|
<input type="button" name="submit146_1" value="保存回访记录" class="ui-state-default" style="background: #9a6d92 url(../../../resources/images/colors/purple/button_highlight.png) repeat-x;color: #ffffff;" onclick="form1_submit146_1();">
|
|
<script LANGUAGE="javascript">
|
function js_RV_PointE(){
|
ServiceOrdVisit = document.form1.ServiceOrdVisit.value;
|
ServiceOrdVisit_old = document.form1.ServiceOrdVisit_old.value;
|
if(ServiceOrdVisit==ServiceOrdVisit_old && ServiceOrdVisit_old!='' && ServiceOrdVisit!='') {
|
document.getElementById('RV_PointE_TXT').innerHTML = "请填写最新回访记录,单独评价无效";
|
}else{
|
document.getElementById('RV_PointE_TXT').innerHTML = "";
|
}
|
}
|
//保存回访记录
|
function form1_submit146_1(){
|
document.form1.action = "admin_save.gds";
|
document.form1.admin_save.value = "146";
|
document.getElementById("zhezhao").style.display="block";
|
document.getElementById("login").style.display="block";
|
form1.submit();
|
}
|
</script>
|
</div>
|
<%End If%>
|
<%End If%>
|
<%'客人评价
|
If Guest_Point<>0 then%>
|
<div class="field">
|
<div class="label" style="float: left;margin-left: 0px;">
|
<label for="input-small">客人评价:</label>
|
</div>
|
<div class="input" style="float:left;margin-left: 70px;line-height:20px;">
|
<%If Guest_Point=0 then%>
|
未评价
|
<%else%>
|
<%If Guest_openid<>"" Then%>openid: <%=Guest_openid%><%else%>短信评价<%End If%>
|
评价时间: <%=Guest_Time%>
|
<%End If%>
|
<br>客人评分:
|
<%sql="select DispatchOrd_Entourage.id,EntourageOAid,OA_Name,Guest_PointE,Guest_Point_1,Guest_Point_2,Guest_Point_3,EntourageID from DispatchOrd_Entourage,OA_User,DispatchOrd where OA_User_ID=EntourageOAid and EntourageState<>4 and DispatchOrdIDDt=DispatchOrdID and ServiceOrdIDDt="&ServiceOrdID
|
rs.open sql,objConn,1,1
|
i=0
|
do while not rs.Eof
|
Guest_EId = rs("id")
|
Guest_OAid = rs("EntourageOAid")
|
Guest_OA_Name = rs("OA_Name")
|
Guest_PointE = rs("Guest_PointE")
|
Guest_Point_1 = rs("Guest_Point_1")
|
Guest_Point_2 = rs("Guest_Point_2")
|
Guest_Point_3 = rs("Guest_Point_3")
|
EntourageID = rs("EntourageID")
|
If Guest_PointE<>"" And Guest_PointE<>"0" Then
|
Response.Write " "&Guest_OA_Name&" ["&Guest_PointEA(Guest_PointE)&"]"
|
ElseIf Guest_Point_1>0 And Guest_Point_2>0 And Guest_Point_3=0 Then
|
Response.Write " "&Guest_OA_Name&" [技能水平 "&Guest_Point_1&"分 服务态度 "&Guest_Point_2&"分]"
|
ElseIf Guest_Point_1>0 And Guest_Point_2>0 And Guest_Point_3>0 And (EntourageID=1 Or EntourageID=2) Then
|
Response.Write " "&Guest_OA_Name&" [快捷安全 "&Guest_Point_1&"分 服务态度 "&Guest_Point_2&"分 舒适平稳 "&Guest_Point_3&"分]"
|
ElseIf Guest_Point_1>0 And Guest_Point_2>0 And Guest_Point_3>0 Then
|
Response.Write " "&Guest_OA_Name&" [专业技能 "&Guest_Point_1&"分 服务态度 "&Guest_Point_2&"分 健康指导 "&Guest_Point_3&"分]"
|
ElseIf Guest_Point_1>0 Then
|
Response.Write " "&Guest_OA_Name&" [综合评分 "&Guest_Point_1&"分]"
|
End If
|
%>
|
|
<%i=i+1
|
rs.movenext
|
loop
|
rs.close()%>
|
<%If Guest_Reward>0 Then%><br>打赏: <%=Guest_Reward%>元<%End If%>
|
<%If Guest_Evaluate<>"" Then%><br>建议: <%=Guest_Evaluate%><%End If%>
|
</div>
|
</div>
|
<%End If%>
|
|
|
|
|
<!--医院窗口-->
|
<div class="dialogJ dialogJfix dialogJshadow" id="window_Hosp" style="z-index: 50007; width:900px; left: 0px; top: 0px;display:none;">
|
<div class="dialogJtitle">
|
<a href="javascript:JS_HospClose();" class="dialogJclose" title="关闭本窗口"> </a>
|
<input id="HospJSID" type="hidden" value="">
|
<span class="dialogJtxt">选择医院</span> <input type="text" id="HospSearchTXT" name="HospSearchTXT" value="<%=HospSearchTXT%>" style="width: 100px;" onkeyup="JS_HospSearch();"/> <input type="button" name="button3" value="查询" onclick="JS_HospSearch();"> <input type="button" name="button3" value="清空" onclick="JS_HospDel();"> <input type="button" name="button3" value="新增" onclick="javascript:window.open('/HospData.gds?h_menu1=1');">
|
</div>
|
<div class="dialogJcontent">
|
<div class="box">
|
<div class="table" style="padding: 0px;">
|
<input name="window_HospID" type="hidden" value="">
|
<table>
|
<thead>
|
<tr>
|
<th class="category last" style="text-align: center;">操作</th>
|
<th class="category left" style="text-align: center;">全称</th>
|
<th class="category left" style="text-align: center;">简称</th>
|
<th class="category left" style="text-align: center;">级别</th>
|
<th class="category left" style="text-align: center;">地址</th>
|
</tr>
|
</thead>
|
<tbody id="HospList">
|
<%for j=0 to 6%>
|
<tr>
|
<td class="category"> </td>
|
<td class="category"> </td>
|
<td class="category"> </td>
|
<td class="category"> </td>
|
<td class="category"> </td>
|
</tr>
|
<%next%>
|
</tbody>
|
</table>
|
</div>
|
</div>
|
</div>
|
</div>
|
<script LANGUAGE="javascript">
|
//打开选择医院窗口
|
function JS_HospOpen(id)
|
{
|
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(id).getBoundingClientRect().top;
|
if (dTop<200) {dTop=110;}
|
var dLeft = document.getElementById(id).getBoundingClientRect().left;
|
if (dLeft<200) {dLeft=200;}
|
window_Hosp.style.display="block";
|
window_Hosp.style.left=(dLeft-100)+"px";
|
window_Hosp.style.top=(sTop+dTop+30)+"px";
|
document.getElementById("HospJSID").value=id;
|
HopsCity=$("#ServiceOrdClass").find("option:selected").text();
|
//HopsCity=$("#ServiceOrdClass").text();
|
//alert(HopsCity);
|
window.HiddenFrame.location.replace('HospSearch.gds?HopsCity='+HopsCity+'&JSID='+id);
|
//window.HiddenFrame.location.replace('HospSearch.gds?JSID='+id);
|
document.getElementById('HospSearchTXT').focus();
|
}
|
//关闭选择医院窗口
|
function JS_HospClose()
|
{
|
document.all.HospSearchTXT.value='';
|
window_Hosp.style.display="none";
|
}
|
//选择医院查询
|
function JS_HospSearch()
|
{
|
HospSearchTXT=document.all.HospSearchTXT.value;
|
window.HiddenFrame.location.replace('HospSearch.gds?HospSearchTXT='+HospSearchTXT);
|
}
|
function EnterPress_Hosp(e){ //传入 event
|
var e = e || window.event;
|
if(e.keyCode == 13){JS_HospSearch();}
|
}
|
//选择医院
|
function JS_HospSave(HospID,HospLicense,HospAddress)
|
{
|
var id=document.getElementById("HospJSID").value;
|
var AddressID="";
|
if (id=="ServiceOrdPtOutHosp")
|
{AddressID="ServiceOrdTraVia";}
|
else if (id=="ServiceOrdPtInHosp")
|
{AddressID="ServiceOrdTraEnd";}
|
document.getElementById(id+"ID").value=HospID;
|
document.getElementById(id).value=HospLicense;
|
document.getElementById(id).classList.remove("error");
|
if (AddressID!='')
|
{
|
document.getElementById(AddressID).value=HospAddress;
|
if (HospAddress!='')
|
{
|
document.getElementById(AddressID).classList.remove("error");
|
}else{
|
document.getElementById(AddressID).classList.add("error");
|
}
|
}
|
<%if DispatchOrdID<>"" And DispatchOrdState<10 And DispatchOrd_AP_Check="0" And isDepartment("030111")=1 then%>//document.getElementById("ServiceOrdPtOutHospR").value=HospLicense;<%end if%>
|
JS_HospClose();
|
}
|
//选择医院清空
|
function JS_HospDel()
|
{
|
var id=document.getElementById("HospJSID").value;
|
var AddressID="";
|
if (id=="ServiceOrdPtOutHosp")
|
{AddressID="ServiceOrdTraVia";}
|
else if (id=="ServiceOrdPtInHosp")
|
{AddressID="ServiceOrdTraEnd";}
|
document.getElementById(id+"ID").value='';
|
document.getElementById(id).value='';
|
document.getElementById(id).classList.add("error");
|
if (AddressID!='')
|
{
|
document.getElementById(AddressID).value='';
|
document.getElementById(AddressID).classList.add("error");
|
}
|
<%if DispatchOrdID<>"" And DispatchOrdState<10 And DispatchOrd_AP_Check="0" And isDepartment("030111")=1 then%>//document.getElementById("ServiceOrdPtOutHospR").value='';<%end if%>
|
JS_HospClose();
|
}
|
//显示医院列表窗口
|
function JS_HospList(HospListArray,acc1,acc2,HospSearchTXT,acc3)
|
{
|
var HospListHTML = "";
|
var i = 0;
|
HopsCity=$("#ServiceOrdClass").find("option:selected").text();
|
//HospType=document.getElementById("HospJSID").value;
|
if (HospListArray.length>0)
|
{
|
for (var i=0;i<HospListArray.length;i++)
|
{
|
HospListHTML = HospListHTML+"<tr style='cursor:pointer'><td class='category last1' style='white-space: nowrap;'><a href='/HospData.gds?HospSearchID="+HospListArray[i][0]+"' target='_blank'>修改</a></td><td class='category' onclick='JS_HospSave("+HospListArray[i][0]+",\""+HospListArray[i][1]+"|"+HospListArray[i][4]+"\",\""+HospListArray[i][3]+"\")' style='white-space: nowrap;'>"+HospListArray[i][1]+"</td><td class='category' onclick='JS_HospSave("+HospListArray[i][0]+",\""+HospListArray[i][1]+"|"+HospListArray[i][4]+"\",\""+HospListArray[i][3]+"\")' style='white-space: nowrap;'>"+HospListArray[i][2]+"</td><td class='category' onclick='JS_HospSave("+HospListArray[i][0]+",\""+HospListArray[i][1]+"|"+HospListArray[i][4]+"\",\""+HospListArray[i][3]+"\")' style='white-space: nowrap;'>"+HospListArray[i][4]+"</td><td class='category' onclick='JS_HospSave("+HospListArray[i][0]+",\""+HospListArray[i][1]+"|"+HospListArray[i][4]+"\",\""+HospListArray[i][3]+"\")' style='white-space: nowrap;'>"+HospListArray[i][3]+"</td></tr>";
|
}
|
}
|
if (acc2>1)
|
{
|
i=i+1;
|
HospListHTML = HospListHTML+"<tr><td colspan='5' style='text-align:center;'>";
|
if (acc1>1){HospListHTML = HospListHTML+"<a href='javascript:window.HiddenFrame.location.replace(\"HospSearch.gds?HospSearchTXT="+HospSearchTXT+"&HopsCity="+HopsCity+"&page="+(acc1-1)+"\");'>上一页</a>";}else{HospListHTML = HospListHTML+" ";}
|
if (acc1<acc2){HospListHTML = HospListHTML+" <a href='javascript:window.HiddenFrame.location.replace(\"HospSearch.gds?HospSearchTXT="+HospSearchTXT+"&HopsCity="+HopsCity+"&page="+(acc1+1)+"\");'>下一页</a>";}
|
HospListHTML = HospListHTML+" 共 "+acc3+" 条记录</td></tr>";
|
}
|
|
for (var j=i;j<=6;j++)
|
{
|
HospListHTML = HospListHTML+"<tr><td class='category'> </td><td class='category last1'> </td><td class='category last1'> </td><td class='category last1'> </td><td class='category last1'> </td></tr>";
|
}
|
document.getElementById("HospList").innerHTML=HospListHTML;
|
|
}
|
</script>
|
<!--医院窗口 end-->
|
|
<!--ICD窗口 国际疾病分类(International Classification of Diseases,ICD)-->
|
<div class="dialogJ dialogJfix dialogJshadow" id="window_ICD" style="z-index: 50007; width:800px; left: 0px; top: 0px;display:none;">
|
<div class="dialogJtitle">
|
<a href="javascript:JS_ICDClose();" class="dialogJclose" title="关闭本窗口"> </a>
|
<input id="ICDJSID" type="hidden" value="">
|
<span class="dialogJtxt">选择病情诊断</span> <input type="text" id="ICDSearchTXT" name="ICDSearchTXT" value="<%=ICDSearchTXT%>" style="width: 100px;" onkeyup="JS_ICDSearch();"/> <input type="button" name="button3" value="查询" onclick="JS_ICDSearch();"> <input type="button" name="button3" value="清空" onclick="JS_ICDDel();"><%if isDepartment("0604")=1 then%> <span class="dialogJtxt">[<a href="/ICD10.php" target="_blank" style="color: #FFFFFF;">标签管理</a>]</span><%End if%>
|
</div>
|
<div class="dialogJcontent">
|
<div class="box">
|
<div class="table" style="padding: 0px;">
|
<input name="window_ICDID" type="hidden" value="">
|
<table>
|
<thead>
|
<tr>
|
<th class="category left" style="text-align: center;">国际ICD编码</th>
|
<th class="category left" style="text-align: center;">疾病名称</th>
|
<th class="category left" style="text-align: center;">助记码</th>
|
</tr>
|
</thead>
|
<tbody id="ICDList">
|
<%for j=0 to 6%>
|
<tr>
|
<td class="category"> </td>
|
<td class="category"> </td>
|
<td class="category"> </td>
|
</tr>
|
<%next%>
|
</tbody>
|
</table>
|
</div>
|
</div>
|
</div>
|
</div>
|
<script LANGUAGE="javascript">
|
//打开选择ICD窗口
|
function JS_ICDOpen(id)
|
{
|
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(id).getBoundingClientRect().top;
|
if (dTop<200) {dTop=110;}
|
var dLeft = document.getElementById(id).getBoundingClientRect().left;
|
if (dLeft<200) {dLeft=200;}
|
window_ICD.style.display="block";
|
window_ICD.style.left=(dLeft-100)+"px";
|
window_ICD.style.top=(sTop+dTop+80)+"px";
|
document.getElementById("ICDJSID").value=id;
|
window.HiddenFrame.location.replace('ICDSearch.gds?JSID='+id);
|
document.getElementById('ICDSearchTXT').focus();
|
}
|
//关闭选择ICD窗口
|
function JS_ICDClose()
|
{
|
document.all.ICDSearchTXT.value='';
|
window_ICD.style.display="none";
|
}
|
//选择ICD查询
|
function JS_ICDSearch()
|
{
|
ICDSearchTXT=document.all.ICDSearchTXT.value;
|
window.HiddenFrame.location.replace('ICDSearch.gds?ICDSearchTXT='+ICDSearchTXT);
|
}
|
function EnterPress_ICD(e){ //传入 event
|
var e = e || window.event;
|
if(e.keyCode == 13){JS_ICDSearch();}
|
}
|
//选择ICD
|
function JS_ICDSave(ICD_ID,ICD_Name)
|
{
|
var OrdICD_ID=document.getElementById("OrdICD_ID").value;
|
if (OrdICD_ID.indexOf(","+ICD_ID+",")==-1)
|
{
|
var OrdICD=document.getElementById("OrdICD").innerHTML;
|
if (OrdICD_ID=="")
|
{
|
document.getElementById("OrdICD_ID").value=","+ICD_ID+",";
|
}
|
else {
|
document.getElementById("OrdICD_ID").value=document.getElementById("OrdICD_ID").value+ICD_ID+",";
|
}
|
document.getElementById("OrdICD").innerHTML=OrdICD+ICD_Name+" , ";
|
}
|
|
//JS_ICDClose();
|
}
|
//选择ICD清空
|
function JS_ICDDel()
|
{
|
document.getElementById("OrdICD").innerHTML='';
|
document.getElementById("OrdICD_ID").value='';
|
//JS_ICDClose();
|
}
|
//显示ICD列表窗口
|
function JS_ICDList(ICDListArray,acc1,acc2,ICDSearchTXT,acc3)
|
{
|
var ICDListHTML = "";
|
var i = 0;
|
if (ICDListArray.length>0)
|
{
|
for (var i=0;i<ICDListArray.length;i++)
|
{
|
ICDListHTML = ICDListHTML+"<tr style='cursor:pointer'><td class='category' onclick='JS_ICDSave("+ICDListArray[i][0]+",\""+ICDListArray[i][2]+"\")' style='white-space: nowrap;'>"+ICDListArray[i][1]+"</td><td class='category' onclick='JS_ICDSave("+ICDListArray[i][0]+",\""+ICDListArray[i][2]+"\")' style='white-space: nowrap;'>"+ICDListArray[i][2]+"</td><td class='category' onclick='JS_ICDSave("+ICDListArray[i][0]+",\""+ICDListArray[i][2]+"\")' style='white-space: nowrap;'>"+ICDListArray[i][3]+"</td></tr>";
|
}
|
}
|
if (acc2>1)
|
{
|
i=i+1;
|
ICDListHTML = ICDListHTML+"<tr><td colspan='4' style='text-align:center;'>";
|
if (acc1>1){ICDListHTML = ICDListHTML+"<a href='javascript:window.HiddenFrame.location.replace(\"ICDSearch.gds?ICDSearchTXT="+ICDSearchTXT+"&page="+(acc1-1)+"\");'>上一页</a>";}else{ICDListHTML = ICDListHTML+" ";}
|
if (acc1<acc2){ICDListHTML = ICDListHTML+" <a href='javascript:window.HiddenFrame.location.replace(\"ICDSearch.gds?ICDSearchTXT="+ICDSearchTXT+"&page="+(acc1+1)+"\");'>下一页</a>";}
|
ICDListHTML = ICDListHTML+" 共 "+acc3+" 条记录</td></tr>";
|
}
|
|
for (var j=i;j<=6;j++)
|
{
|
ICDListHTML = ICDListHTML+"<tr><td class='category'> </td><td class='category last1'> </td><td class='category last1'> </td></tr>";
|
}
|
document.getElementById("ICDList").innerHTML=ICDListHTML;
|
|
}
|
</script>
|
<!--ICD窗口 end-->
|
|
<!--优惠券窗口-->
|
<div class="dialogJ dialogJfix dialogJshadow" id="window_Coupon" style="z-index: 50007; width:800px; left: 0px; top: 0px;display:none;">
|
<div class="dialogJtitle">
|
<a href="javascript:JS_CouponClose();" class="dialogJclose" title="关闭本窗口"> </a>
|
<input id="CouponJSID" type="hidden" value="">
|
<span class="dialogJtxt">选择优惠券</span> <input type="text" id="CouponSearchTXT" name="CouponSearchTXT" value="<%=CouponSearchTXT%>" style="width: 150px;" onkeyup="JS_CouponSearch();"/> <input type="button" name="button3" value="查询" onclick="JS_CouponSearch();"> <input type="button" name="button3" value="清空" onclick="JS_CouponDel();">
|
<%If UserID<>"0" Then%> <a href="javascript:JS_CouponApp('1');"><span class="dialogJtxt">[生成5000元优惠券(7.20-10.31)]</span></a><%End If%>
|
</div>
|
<div class="dialogJcontent">
|
<div class="box">
|
<div class="table" style="padding: 0px;">
|
<input name="window_CouponID" type="hidden" value="">
|
<table>
|
<thead>
|
<tr>
|
<th class="category left" style="text-align: center;">优惠券名称</th>
|
<th class="category left" style="text-align: center;">优惠券号码</th>
|
<th class="category left" style="text-align: center;">优惠券金额</th>
|
<th class="category left" style="text-align: center;">有效日期</th>
|
</tr>
|
</thead>
|
<tbody id="CouponList">
|
<%for j=0 to 6%>
|
<tr>
|
<td class="category"> </td>
|
<td class="category"> </td>
|
<td class="category"> </td>
|
<td class="category"> </td>
|
</tr>
|
<%next%>
|
</tbody>
|
</table>
|
</div>
|
</div>
|
</div>
|
</div>
|
<script LANGUAGE="javascript">
|
//打开选择优惠券窗口
|
function JS_CouponOpen(id)
|
{
|
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(id).getBoundingClientRect().top;
|
if (dTop>200) {dTop=200;}
|
var dLeft = document.getElementById(id).getBoundingClientRect().left;
|
if (dLeft<200) {dLeft=200;}
|
window_Coupon.style.display="block";
|
window_Coupon.style.left=(dLeft-100)+"px";
|
window_Coupon.style.top=(sTop+dTop+80)+"px";
|
document.getElementById("CouponJSID").value=id;
|
var CoPhone=document.getElementById("ServiceOrdCoPhone").value;
|
if (CoPhone=='【隐】') {CoPhone='<%=CoPhone%>';}
|
window.HiddenFrame.location.replace('CouponSearch.gds?CouponSearchTXT='+CoPhone);
|
document.getElementById('CouponSearchTXT').focus();
|
}
|
//关闭选择优惠券窗口
|
function JS_CouponClose()
|
{
|
document.all.CouponSearchTXT.value='';
|
window_Coupon.style.display="none";
|
}
|
//选择优惠券查询
|
function JS_CouponSearch()
|
{
|
CouponSearchTXT=document.all.CouponSearchTXT.value;
|
window.HiddenFrame.location.replace('CouponSearch.gds?CouponSearchTXT='+CouponSearchTXT);
|
}
|
function EnterPress_Coupon(e){ //传入 event
|
var e = e || window.event;
|
if(e.keyCode == 13){JS_CouponSearch();}
|
}
|
//选择优惠券
|
function JS_CouponSave(CouponID,CouponNO,CouponMoney)
|
{
|
id=document.getElementById("CouponJSID").value
|
document.getElementById(id).value="优惠券:"+CouponNO+" "+CouponMoney+"元";
|
|
JS_CouponClose();
|
}
|
//选择优惠券清空
|
function JS_CouponDel()
|
{
|
document.getElementById("OrdCoupon").innerHTML='';
|
document.getElementById("OrdCouponID").value='';
|
//JS_CouponClose();
|
}
|
//显示优惠券列表窗口
|
function JS_CouponList(CouponListArray,acc1,acc2,CouponSearchTXT,acc3)
|
{
|
var CouponListHTML = "";
|
var i = 0;
|
if (CouponListArray.length>0)
|
{
|
for (var i=0;i<CouponListArray.length;i++)
|
{
|
if (CouponListArray[i][5]=='1')
|
{
|
CouponListHTML = CouponListHTML+"<tr style='cursor:pointer'><td class='category' style='white-space: nowrap;text-decoration:line-through;'>"+CouponListArray[i][4]+"</td><td class='category' style='white-space: nowrap;text-decoration:line-through;'>"+CouponListArray[i][1]+"</td><td class='category' style='white-space: nowrap;text-decoration:line-through;'>"+CouponListArray[i][2]+"</td><td class='category' style='white-space: nowrap;'>已于 "+CouponListArray[i][3]+" 被使用</td></tr>";
|
}else if (CouponListArray[i][5]=='2') {
|
CouponListHTML = CouponListHTML+"<tr style='cursor:pointer'><td class='category' style='white-space: nowrap;text-decoration:line-through;'>"+CouponListArray[i][4]+"</td><td class='category' style='white-space: nowrap;text-decoration:line-through;'>"+CouponListArray[i][1]+"</td><td class='category' style='white-space: nowrap;text-decoration:line-through;'>"+CouponListArray[i][2]+"</td><td class='category' style='white-space: nowrap;'>"+CouponListArray[i][3]+" 已过期</td></tr>";
|
}else {
|
CouponListHTML = CouponListHTML+"<tr style='cursor:pointer'><td class='category' onclick='JS_CouponSave("+CouponListArray[i][0]+",\""+CouponListArray[i][1]+"\",\""+CouponListArray[i][2]+"\")' style='white-space: nowrap;'>"+CouponListArray[i][4]+"</td><td class='category' onclick='JS_CouponSave("+CouponListArray[i][0]+",\""+CouponListArray[i][1]+"\",\""+CouponListArray[i][2]+"\")' style='white-space: nowrap;'>"+CouponListArray[i][1]+"</td><td class='category' onclick='JS_CouponSave("+CouponListArray[i][0]+",\""+CouponListArray[i][1]+"\",\""+CouponListArray[i][2]+"\")' style='white-space: nowrap;'>"+CouponListArray[i][2]+"</td><td class='category' onclick='JS_CouponSave("+CouponListArray[i][0]+",\""+CouponListArray[i][1]+"\",\""+CouponListArray[i][2]+"\")' style='white-space: nowrap;'>"+CouponListArray[i][3]+"</td></tr>";
|
|
}
|
|
}
|
}
|
if (acc2>1)
|
{
|
i=i+1;
|
CouponListHTML = CouponListHTML+"<tr><td colspan='4' style='text-align:center;'>";
|
if (acc1>1){CouponListHTML = CouponListHTML+"<a href='javascript:window.HiddenFrame.location.replace(\"CouponSearch.gds?CouponSearchTXT="+CouponSearchTXT+"&page="+(acc1-1)+"\");'>上一页</a>";}else{CouponListHTML = CouponListHTML+" ";}
|
if (acc1<acc2){CouponListHTML = CouponListHTML+" <a href='javascript:window.HiddenFrame.location.replace(\"CouponSearch.gds?CouponSearchTXT="+CouponSearchTXT+"&page="+(acc1+1)+"\");'>下一页</a>";}
|
CouponListHTML = CouponListHTML+" 共 "+acc3+" 条记录</td></tr>";
|
}
|
|
for (var j=i;j<=6;j++)
|
{
|
CouponListHTML = CouponListHTML+"<tr><td class='category'> </td><td class='category'> </td><td class='category last1'> </td><td class='category last1'> </td></tr>";
|
}
|
document.getElementById("CouponList").innerHTML=CouponListHTML;
|
|
}
|
//生成优惠券
|
function JS_CouponApp(id)
|
{
|
window.HiddenFrame.location.replace('CouponSearch.gds?CouponSearchTXT=<%=UserID%>&CouponAppID='+id);
|
}
|
</script>
|
<!--优惠券窗口 end-->
|
|
<!--科室窗口-->
|
<div class="dialogJ dialogJfix dialogJshadow" id="window_HospDepartment" style="z-index: 50007; width:320px; left: 0px; top: 0px;display:none;">
|
<div class="dialogJtitle">
|
<a href="javascript:JS_HospDepartmentClose();" class="dialogJclose" title="关闭本窗口"> </a>
|
<input id="HospDepartmentJSID" type="hidden" value="">
|
<input id="HospDepartmentJSName" type="hidden" value="">
|
<span class="dialogJtxt">选择科室</span> <input type="text" id="HospDepartmentSearchTXT" name="HospDepartmentSearchTXT" value="<%=HospDepartmentSearchTXT%>" style="width: 100px;" onkeyup="JS_HospDepartmentSearch();"/> <input type="button" name="button3" value="查询" onclick="JS_HospDepartmentSearch();"> <input type="button" name="button3" value="清空" onclick="JS_HospDepartmentDel();">
|
</div>
|
<div class="dialogJcontent">
|
<div class="box">
|
<div class="table" style="padding: 0px;">
|
<input name="window_HospDepartmentID" type="hidden" value="">
|
<table>
|
<thead>
|
<tr>
|
<th class="category last" style="text-align: center;">科室</th>
|
<th class="category last" style="text-align: center;">科室</th>
|
</tr>
|
</thead>
|
<tbody id="HospDepartmentList">
|
<%for j=0 to 6%>
|
<tr>
|
<td class="category"> </td>
|
<td class="category"> </td>
|
</tr>
|
<%next%>
|
</tbody>
|
</table>
|
</div>
|
</div>
|
</div>
|
</div>
|
<script LANGUAGE="javascript">
|
//打开选择科室窗口
|
function JS_HospDepartmentOpen(id,Name)
|
{
|
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(id).getBoundingClientRect().top;
|
if (dTop<200) {dTop=110;}
|
var dLeft = document.getElementById(id).getBoundingClientRect().left;
|
if (dLeft<200) {dLeft=200;}
|
window_HospDepartment.style.display="block";
|
window_HospDepartment.style.left=440+"px";
|
window_HospDepartment.style.top=(sTop+50)+"px";
|
document.getElementById("HospDepartmentJSID").value=id;
|
document.getElementById("HospDepartmentJSName").value=Name;
|
window.HiddenFrame.location.replace('HospDepartmentSearch.gds?JSID='+id);
|
document.getElementById('HospDepartmentSearchTXT').focus();
|
}
|
//关闭选择科室窗口
|
function JS_HospDepartmentClose()
|
{
|
document.all.HospDepartmentSearchTXT.value='';
|
window_HospDepartment.style.display="none";
|
}
|
//选择科室查询
|
function JS_HospDepartmentSearch()
|
{
|
HospDepartmentSearchTXT=document.all.HospDepartmentSearchTXT.value;
|
window.HiddenFrame.location.replace('HospDepartmentSearch.gds?HospDepartmentSearchTXT='+HospDepartmentSearchTXT);
|
}
|
function EnterPress_HospDepartment(e){ //传入 event
|
var e = e || window.event;
|
if(e.keyCode == 13){JS_HospDepartmentSearch();}
|
}
|
//选择科室
|
function JS_HospDepartmentSave(HospDepartmentID,HospDepartmentLicense)
|
{
|
var id=document.getElementById("HospDepartmentJSID").value;
|
var Name=document.getElementById("HospDepartmentJSName").value;
|
document.getElementById(id).value=HospDepartmentID;
|
document.getElementById(Name).value=HospDepartmentLicense;
|
document.getElementById(Name).classList.remove("error");
|
JS_HospDepartmentClose();
|
}
|
//选择科室清空
|
function JS_HospDepartmentDel()
|
{
|
var id=document.getElementById("HospDepartmentJSID").value;
|
var Name=document.getElementById("HospDepartmentJSName").value;
|
document.getElementById(id).value='';
|
document.getElementById(Name).value='';
|
JS_HospDepartmentClose();
|
}
|
//显示科室列表窗口
|
function JS_HospDepartmentList(HospDepartmentListArray,acc1,acc2,HospDepartmentSearchTXT,acc3)
|
{
|
var HospDepartmentListHTML = "";
|
var i = 0;
|
if (HospDepartmentListArray.length>0)
|
{
|
for (var i=0;i<HospDepartmentListArray.length;i++)
|
{
|
HospDepartmentListHTML = HospDepartmentListHTML+"<tr style='cursor:pointer'>";
|
HospDepartmentListHTML = HospDepartmentListHTML+"<td class='category' onclick='JS_HospDepartmentSave("+HospDepartmentListArray[i][0]+",\""+HospDepartmentListArray[i][1]+"\")' style='white-space: nowrap;'>"+HospDepartmentListArray[i][1]+"</td>";
|
if (i+1<HospDepartmentListArray.length){
|
i++;
|
HospDepartmentListHTML = HospDepartmentListHTML+"<td class='category' style='border-left: 1px solid #cdcdcd;' onclick='JS_HospDepartmentSave("+HospDepartmentListArray[i][0]+",\""+HospDepartmentListArray[i][1]+"\")' style='white-space: nowrap;'>"+HospDepartmentListArray[i][1]+"</td>";
|
}else{
|
HospDepartmentListHTML = HospDepartmentListHTML+"<td class='category' style='border-left: 1px solid #cdcdcd;'> </td>";
|
}
|
HospDepartmentListHTML = HospDepartmentListHTML+"</tr>";
|
}
|
}
|
if (acc2>1)
|
{
|
i=i+1;
|
HospDepartmentListHTML = HospDepartmentListHTML+"<tr><td colspan='5' style='text-align:center;'>";
|
if (acc1>1){HospDepartmentListHTML = HospDepartmentListHTML+"<a href='javascript:window.HiddenFrame.location.replace(\"HospDepartmentSearch.gds?HospDepartmentSearchTXT="+HospDepartmentSearchTXT+"&page="+(acc1-1)+"\");'>上一页</a>";}else{HospDepartmentListHTML = HospDepartmentListHTML+" ";}
|
if (acc1<acc2){HospDepartmentListHTML = HospDepartmentListHTML+" <a href='javascript:window.HiddenFrame.location.replace(\"HospDepartmentSearch.gds?HospDepartmentSearchTXT="+HospDepartmentSearchTXT+"&page="+(acc1+1)+"\");'>下一页</a>";}
|
HospDepartmentListHTML = HospDepartmentListHTML+" 共 "+acc3+" 条记录</td></tr>";
|
}
|
|
for (var j=i;j<30;j++)
|
{
|
j++;
|
HospDepartmentListHTML = HospDepartmentListHTML+"<tr><td class='category'> </td><td class='category' style='border-left: 1px solid #cdcdcd;'> </td></tr>";
|
}
|
document.getElementById("HospDepartmentList").innerHTML=HospDepartmentListHTML;
|
|
}
|
//修改项目名称记录
|
function upperCase(name)
|
{
|
var EditDataForm=document.getElementById("EditDataForm").value;
|
if (EditDataForm.indexOf(name)==-1){
|
if (EditDataForm.length>1){
|
EditDataForm=EditDataForm+","+name;
|
}else{
|
EditDataForm=name;
|
}
|
document.getElementById("EditDataForm").value=EditDataForm;
|
}
|
//console.log(document.getElementById("EditDataForm").value);
|
}
|
</script>
|
<!--科室窗口 end-->
|
|
<!--企微绩效方案窗口-->
|
<div class="dialogJ dialogJfix dialogJshadow" id="window_CommissionScenario" style="z-index: 50007; width:800px; left: 0px; top: 0px;display:none;">
|
<div class="dialogJtitle">
|
<a href="javascript:JS_CommissionScenarioClose();" class="dialogJclose" title="关闭本窗口"> </a>
|
<input id="CommissionScenarioJSID" type="hidden" value="">
|
<span class="dialogJtxt">选择企微绩效方案</span> <input type="text" id="CommissionScenarioSearchTXT" name="CommissionScenarioSearchTXT" value="<%=CommissionScenarioSearchTXT%>" style="width: 150px;" onkeyup="JS_CommissionScenarioSearch();"/> <input type="button" name="button3" value="查询" onclick="JS_CommissionScenarioSearch();"> <input type="button" name="button3" value="清空" onclick="JS_CommissionScenarioDel();">
|
</div>
|
<div class="dialogJcontent">
|
<div class="box">
|
<div class="table" style="padding: 0px;">
|
<input name="window_CommissionScenarioID" type="hidden" value="">
|
<table>
|
<thead>
|
<tr>
|
<th class="category left" style="text-align: center;">方案编号</th>
|
<th class="category left" style="text-align: center;">提成</th>
|
<th class="category left" style="text-align: center;">情景描述</th>
|
</tr>
|
</thead>
|
<tbody id="CommissionScenarioList">
|
<%for j=0 to 6%>
|
<tr>
|
<td class="category"> </td>
|
<td class="category"> </td>
|
<td class="category"> </td>
|
</tr>
|
<%next%>
|
</tbody>
|
</table>
|
</div>
|
</div>
|
</div>
|
</div>
|
<script LANGUAGE="javascript">
|
//打开选择企微绩效方案窗口
|
function JS_CommissionScenarioOpen(id)
|
{
|
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(id).getBoundingClientRect().top;
|
if (dTop>200) {dTop=200;}
|
var dLeft = document.getElementById(id).getBoundingClientRect().left;
|
if (dLeft<200) {dLeft=200;}
|
window_CommissionScenario.style.display="block";
|
window_CommissionScenario.style.left=(dLeft-100)+"px";
|
window_CommissionScenario.style.top=(sTop+dTop+40)+"px";
|
document.getElementById("CommissionScenarioJSID").value=id;
|
var CoPhone=document.getElementById("ServiceOrdCoPhone").value;
|
window.HiddenFrame.location.replace('CommissionScenarioSearch.gds');
|
document.getElementById('CommissionScenarioSearchTXT').focus();
|
}
|
//关闭选择企微绩效方案窗口
|
function JS_CommissionScenarioClose()
|
{
|
document.all.CommissionScenarioSearchTXT.value='';
|
window_CommissionScenario.style.display="none";
|
}
|
//选择企微绩效方案查询
|
function JS_CommissionScenarioSearch()
|
{
|
CommissionScenarioSearchTXT=document.all.CommissionScenarioSearchTXT.value;
|
window.HiddenFrame.location.replace('CommissionScenarioSearch.gds?CommissionScenarioSearchTXT='+CommissionScenarioSearchTXT);
|
}
|
function EnterPress_CommissionScenario(e){ //传入 event
|
var e = e || window.event;
|
if(e.keyCode == 13){JS_CommissionScenarioSearch();}
|
}
|
//选择企微绩效方案
|
function JS_CommissionScenarioSave(CommissionScenarioID,CommissionScenarioName,CommissionScenarioMono,CommissionScenarioOrder2)
|
{
|
id=document.getElementById("CommissionScenarioJSID").value
|
document.getElementById("CommissionScenarioID").value=CommissionScenarioID;
|
document.getElementById(id).value=CommissionScenarioName+" "+CommissionScenarioOrder2;
|
|
JS_CommissionScenarioClose();
|
}
|
//选择企微绩效方案清空
|
function JS_CommissionScenarioDel()
|
{
|
document.getElementById("CommissionScenario").value='';
|
document.getElementById("CommissionScenarioID").value='0';
|
JS_CommissionScenarioClose();
|
}
|
//显示企微绩效方案列表窗口
|
function JS_CommissionScenarioList(CommissionScenarioListArray,acc1,acc2,CommissionScenarioSearchTXT,acc3)
|
{
|
var CommissionScenarioListHTML = "";
|
var i = 0;
|
if (CommissionScenarioListArray.length>0)
|
{
|
for (var i=0;i<CommissionScenarioListArray.length;i++)
|
{
|
|
CommissionScenarioListHTML = CommissionScenarioListHTML+"<tr style='cursor:pointer'><td onclick='JS_CommissionScenarioSave("+CommissionScenarioListArray[i][0]+",\""+CommissionScenarioListArray[i][1]+"\",\""+CommissionScenarioListArray[i][2]+"\",\""+CommissionScenarioListArray[i][3]+"\")' style='white-space: nowrap;'>"+CommissionScenarioListArray[i][1]+"</td><td onclick='JS_CommissionScenarioSave("+CommissionScenarioListArray[i][0]+",\""+CommissionScenarioListArray[i][1]+"\",\""+CommissionScenarioListArray[i][2]+"\",\""+CommissionScenarioListArray[i][3]+"\")' style='white-space: nowrap;'>"+CommissionScenarioListArray[i][3]+"</td><td onclick='JS_CommissionScenarioSave("+CommissionScenarioListArray[i][0]+",\""+CommissionScenarioListArray[i][1]+"\",\""+CommissionScenarioListArray[i][2]+"\",\""+CommissionScenarioListArray[i][3]+"\")'>"+CommissionScenarioListArray[i][2]+"</td></tr>";
|
|
}
|
}
|
if (acc2>1)
|
{
|
i=i+1;
|
CommissionScenarioListHTML = CommissionScenarioListHTML+"<tr><td colspan='4' style='text-align:center;'>";
|
if (acc1>1){CommissionScenarioListHTML = CommissionScenarioListHTML+"<a href='javascript:window.HiddenFrame.location.replace(\"CommissionScenarioSearch.gds?CommissionScenarioSearchTXT="+CommissionScenarioSearchTXT+"&page="+(acc1-1)+"\");'>上一页</a>";}else{CommissionScenarioListHTML = CommissionScenarioListHTML+" ";}
|
if (acc1<acc2){CommissionScenarioListHTML = CommissionScenarioListHTML+" <a href='javascript:window.HiddenFrame.location.replace(\"CommissionScenarioSearch.gds?CommissionScenarioSearchTXT="+CommissionScenarioSearchTXT+"&page="+(acc1+1)+"\");'>下一页</a>";}
|
CommissionScenarioListHTML = CommissionScenarioListHTML+" 共 "+acc3+" 条记录</td></tr>";
|
}
|
|
for (var j=i;j<=6;j++)
|
{
|
CommissionScenarioListHTML = CommissionScenarioListHTML+"<tr><td class='category'> </td><td class='category'> </td><td class='category last1'> </td><td class='category last1'> </td></tr>";
|
}
|
document.getElementById("CommissionScenarioList").innerHTML=CommissionScenarioListHTML;
|
|
}
|
</script>
|
<!--企微绩效方案窗口 end-->
|
<input name="EditDataForm" id="EditDataForm" type="hidden" value="">
|
<% if ServiceOrdTraOfferPrice<>"" and ServiceOrdTraOfferPrice<>0 then %>
|
<div class="label" style="float: left;">
|
<label for="input-small">参考价:</label>
|
</div>
|
<div class="input" style="float:left;margin-left: 70px;">
|
<input type="text" id="ServiceOrdTraOfferPrice_Display" name="ServiceOrdTraOfferPrice_Display" class="small" style="width:138px;" readonly value="<%=Round(ServiceOrdTraOfferPrice,2)%>">
|
</div>
|
<div class="label" style="float: left;margin-left:224px;">
|
<label for="input-small">参考成交价:</label>
|
</div>
|
<div class="input" style="float:left;margin-left: 60px;">
|
<input type="text" id="ServiceOrdTraTxnPrice_Ref" name="ServiceOrdTraTxnPrice_Ref" class="small" style="width:138px;" readonly value="<%=MoneyCheck(ServiceOrdTraTxnPrice,0)%>">
|
</div>
|
<% end if%>
|