<%@LANGUAGE="VBSCRIPT" CODEPAGE="65001"%>
|
<%Session.CodePage=65001%>
|
<!--#include virtual="/inc/odbc.asp"-->
|
<!--#include virtual="/inc/function.asp"-->
|
<!--#include virtual="/inc/core.asp"-->
|
<%
|
|
'合法性验证
|
PositionURL=Request.ServerVariables("URL")
|
if Request.ServerVariables("QUERY_STRING")<>"" then PositionURL=PositionURL&"?"&Request.ServerVariables("QUERY_STRING")
|
If InStr(PositionURL,"&sign")>=1 Then PositionURL=Mid(PositionURL,1,InStr(PositionURL,"&sign")-1)
|
URLSign=SignArgs(PositionURL)
|
Sign1=request("sign")
|
If URLSign<>Sign1 Then
|
'Response.Redirect "/OrdEvaluateError.asp"
|
End If
|
'-------------
|
|
ServiceOrdID=request("ServiceOrdID")
|
isPrePayment=request("isPrePayment")
|
openid=request("openid")
|
if ServiceOrdID="" then Response.Redirect "/OrdEvaluateError.asp"
|
If isPrePayment="" Then isPrePayment=0
|
Total_fee=0
|
StretcherMoney=0
|
%>
|
<html>
|
<head>
|
<meta charset="utf-8">
|
<meta name="viewport" content="width=device-width, initial-scale=1,maximum-scale=1,user-scalable=no">
|
<meta name="apple-mobile-web-app-capable" content="yes">
|
<meta name="apple-mobile-web-app-status-bar-style" content="black">
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
<title>快线福祉车</title>
|
<link rel="stylesheet" href="/css/bootstrap.min.css">
|
<link rel="stylesheet" href="/css/bootstrap-theme.min.css">
|
<script src="/js/jquery-1.10.2.min.js"></script>
|
<script src="/js/bootstrap.min.js"></script>
|
<script src="/js/app.js?v=1.8"></script>
|
<script>
|
$(function(){
|
|
function is_weixn(){
|
var ua = navigator.userAgent.toLowerCase();
|
if(ua.match(/MicroMessenger/i)=="micromessenger") {
|
//alert("weixin微信浏览器");
|
$("#order_pay_weixin")[0].value = "1";
|
$("#AlipayPay").hide();
|
} else {
|
//alert("非微信浏览器");
|
//$("#zaix4").hide();
|
//$("#zaix5").show();
|
$("#order_pay_weixin")[0].value = "0";
|
return false;
|
}
|
}
|
is_weixn()
|
|
})
|
</script>
|
</head>
|
<body style="">
|
<style>
|
</style>
|
<%
|
Set rs = Server.CreateObject("ADODB.Recordset")
|
'相关受理单
|
If ServiceOrdID="" Then
|
Response.Redirect "/OrdEvaluateError.asp"
|
End If
|
sql="select * from Welcab.dbo.ServiceOrder where ServiceOrdID="&ServiceOrdID
|
rs.open sql,objConn,1,1
|
If not rs.Eof then
|
ServiceOrdID = rs("ServiceOrdID") '服务单号
|
ServiceOrdClass = rs("ServiceOrdClass") '单据类型
|
ServiceOrdType = rs("ServiceOrdType") '服务单类型
|
ServiceOrdState = rs("ServiceOrdState") '服务单状态
|
ServiceOrdStartDate = rs("ServiceOrdStartDate") '开单日期
|
ServiceOrdApptDate = rs("ServiceOrdApptDate") '预约日期
|
If year(ServiceOrdApptDate)<2010 then ServiceOrdApptDate=""
|
ServiceOrdCoName = rs("ServiceOrdCoName") '联系人姓名
|
ServiceOrdCoPhone = rs("ServiceOrdCoPhone") '联系人电话
|
ServiceOrdCoTies = rs("ServiceOrdCoTies") '联系人与患者关系
|
ServiceOrdPtName = rs("ServiceOrdPtName") '患者姓名
|
ServiceOrdPtAge = rs("ServiceOrdPtAge") '患者年龄
|
ServiceOrdPtSex = rs("ServiceOrdPtSex") '患者性别
|
ServiceOrdPtNat = rs("ServiceOrdPtNat") '患者国籍
|
ServiceOrdPtOutHosp = rs("ServiceOrdPtOutHosp") '转出医院
|
ServiceOrdPtOutHospID = rs("ServiceOrdPtOutHospID") '转出医院ID
|
ServiceOrdPtInHosp = rs("ServiceOrdPtInHosp") '转入医院
|
ServiceOrdPtInHospID = rs("ServiceOrdPtInHospID") '转入医院ID
|
ServiceOrdPtServices = rs("ServiceOrdPtServices") '科室
|
ServiceOrdPtDiagnosis = rs("ServiceOrdPtDiagnosis") '诊断
|
ServiceOrdPtCondition = rs("ServiceOrdPtCondition") '备注
|
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") '途经地
|
ServiceOrdTraDistance = rs("ServiceOrdTraDistance") '距离(公里)
|
ServiceOrdTraDuration = rs("ServiceOrdTraDuration") '预计行程时间
|
ServiceOrdTraUnitPrice= rs("ServiceOrdTraUnitPrice") '单价/公里
|
ServiceOrdTraOfferPrice=rs("ServiceOrdTraOfferPrice") '标准报价
|
ServiceOrdTraTxnPrice = rs("ServiceOrdTraTxnPrice") '成交价
|
ServiceOrdTraPaidPrice= rs("ServiceOrdTraPaidPrice") '已支付金额
|
ServiceOrdTraPrePayment=rs("ServiceOrdTraPrePayment") '需预付款
|
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") '服务单审核时间
|
ServiceOrdIntroducer = rs("ServiceOrdIntroducer") '介绍人
|
ServiceOrd_Sale_ID = rs("ServiceOrd_Sale_ID") '销售人员ID
|
Guest_Point = rs("Guest_Point")
|
If ServiceOrdTraTxnPrice="" Then ServiceOrdTraTxnPrice=0
|
If ServiceOrdTraPaidPrice="" Then ServiceOrdTraPaidPrice=0
|
If ServiceOrdTraPrePayment="" Then ServiceOrdTraPrePayment=0
|
If Len(ServiceOrdCoPhone)=11 Then
|
ServiceOrdCoPhone=Left(ServiceOrdCoPhone,5)&"****"&right(ServiceOrdCoPhone,2)
|
Else
|
ServiceOrdCoPhone=""
|
End If
|
ServiceOrdNo = ServiceOrdClass& year(rs("ServiceOrd_CC_Time"))&Right("0"&month(rs("ServiceOrd_CC_Time")),2)&Right("0"&day(rs("ServiceOrd_CC_Time")),2) & "-"&Right("00"&rs("ServiceOrdNo"),3)
|
If IsNumeric(ServiceOrdTraDistance) Then ServiceOrdTraDistance=ServiceOrdTraDistance&"公里"
|
|
'本次需支付金额
|
If isPrePayment="1" Then
|
Total_fee=ServiceOrdTraPrePayment-ServiceOrdTraPaidPrice
|
Else
|
Total_fee=ServiceOrdTraTxnPrice+StretcherMoney-ServiceOrdTraPaidPrice
|
|
End If
|
If Total_fee<0 Then Total_fee=0
|
Else
|
Response.Redirect "/OrdEvaluateError.asp"
|
End If
|
rs.close()
|
|
If Guest_Point<>0 And Total_fee<=0 Then
|
Response.Redirect "/OrdEvaluateOK.asp"
|
Response.End()
|
End If
|
|
If DispatchOrdCarID<>"" And DispatchOrdCarID<>"0" Then
|
DispatchOrdCarLicense=CarDataA(DispatchOrdCarID,"","CarLicense")
|
End if
|
%>
|
<!-- 打赏页 -->
|
<style>
|
.lb0{
|
display:block;
|
}
|
.lb1{
|
margin-left:10px;color:#808080;font-weight:normal;line-height:40px;font-size:17px;
|
}
|
.lb2{
|
margin-left:10px;color:#000000;font-weight:bold;font-size:17px;
|
}
|
.lb3{
|
margin-left:10px;color:#000000;font-weight:bold;font-size:17px;
|
}
|
.lbbr{
|
height:1px; width:100%; background:#c0c0c0; overflow:hidden; margin:10px;
|
}
|
.btn1{
|
margin:auto auto 25px auto;font-size: 22px;color: #ffffff;background-color: #45bb06;border:#ffffff;line-height:40px;width: 70%;border-radius: 5px;
|
}
|
.btn2{
|
margin:auto auto 25px auto;font-size: 22px;color: #ffffff;background-color: #02aaf1;border:#ffffff;line-height:40px;width: 70%;border-radius: 5px;
|
}
|
</style>
|
<header style="">
|
<div style="background-color:#3eaae1;text-align: center;height:50px;line-height:50px;">
|
<span style="font-size:22px;color:#ffffff;font-weight:bold;">快线福祉车</span>
|
</div>
|
<%If ServiceOrdType<>"14" And ServiceOrdType<>"15" And ServiceOrdType<>"16" And ServiceOrdType<>"17" Then%>
|
<%If ServiceOrdPtOutHospID<>"" And ServiceOrdPtOutHospID<>"0" And ServiceOrdPtOutHospID<>"153" Then
|
sql="select HospName,HospLevel,HopsProvince,HopsCity,HopsArea,HospAddress from HospData where HospID="&ServiceOrdPtOutHospID
|
rs.open sql,objConn,1,1
|
If not rs.Eof Then
|
PtOutHospName=rs("HospName")
|
PtOutHopsProvince=rs("HopsProvince")
|
PtOutHopsCity=rs("HopsCity")
|
PtOutHopsArea=rs("HopsArea")
|
PtOutHospAddress=rs("HospAddress")
|
End If
|
rs.close()
|
ElseIf ServiceOrdTraVia<>"" then
|
OrdTraVia = SPLIT(ServiceOrdTraVia,"=>")
|
PtOutHospName=Trim(OrdTraVia(0))
|
End if
|
If PtOutHospName<>"" Then%>
|
<div class="lb1">出发地:</div>
|
<div class="lb3"><%=PtOutHospName%></div>
|
<%End If%>
|
|
<%If ServiceOrdPtInHospID<>"" And ServiceOrdPtInHospID<>"0" And ServiceOrdPtInHospID<>"153" Then
|
sql="select HospName,HospLevel,HopsProvince,HopsCity,HopsArea,HospAddress from HospData where HospID="&ServiceOrdPtInHospID
|
rs.open sql,objConn,1,1
|
If not rs.Eof Then
|
PtInHospName=rs("HospName")
|
PtInHospProvince=rs("HopsProvince")
|
PtInHospCity=rs("HopsCity")
|
PtInHospArea=rs("HopsArea")
|
PtInHospAddress=rs("HospAddress")
|
End If
|
rs.close()
|
Else
|
PtInHospName=ServiceOrdTraEnd
|
End If
|
If PtInHospName<>"" Then%>
|
<div class="lb1">目的地:</div>
|
<div class="lb3"><%=PtInHospName%></div>
|
<%End If%>
|
|
|
<div class="lbbr"></div>
|
|
<%If ServiceOrdCoName<>"" then%>
|
<div><span class="lb1"> 联系人:</span>
|
<span class="lb2"><%=ServiceOrdCoName%></span></div>
|
<%End If%>
|
<%If ServiceOrdCoPhone<>"" then%>
|
<div><span class="lb1">联系电话:</span>
|
<span class="lb2"><%=ServiceOrdCoPhone%></span></div>
|
<%End If%>
|
<%If ServiceOrdPtName<>"" then%>
|
<div><span class="lb1">患者姓名:</span>
|
<span class="lb2"><%=ServiceOrdPtName%></span></div>
|
<%End If%>
|
<%If ServiceOrdApptDate<>"" then%>
|
<div><span class="lb1">预约时间:</span>
|
<span class="lb2"><%=ServiceOrdApptDate%></span></div>
|
<%End If%>
|
|
<%End If%>
|
|
<%If ServiceOrdTraTxnPrice>0 Then
|
'ServiceOrdTraTxnPrice 成交价
|
'ServiceOrdTraPrePayment 需预付款
|
'StretcherMoney 附加费用
|
'ServiceOrdTraPaidPrice 已支付金额
|
%>
|
<div><span class="lb1">订单金额:</span>
|
<span class="lb2">¥<%=ServiceOrdTraTxnPrice%></span></div>
|
<%If StretcherMoney>0 Then%>
|
<div><span class="lb1">附加费用:</span>
|
<span class="lb2">¥<%=StretcherMoney%></span></div>
|
<%End If%>
|
<%If ServiceOrdPoints>0 Then%>
|
<div><span class="lb1">使用积分:</span>
|
<span class="lb2"><%=ServiceOrdPoints%></span></div>
|
<%End If%>
|
<%If ServiceOrdTraPaidPrice-ServiceOrdPoints>0 Then%>
|
<div><span class="lb1"> 已支付:</span>
|
<span class="lb2">¥<%=ServiceOrdTraPaidPrice%></span></div>
|
<%End If%>
|
<%End If%>
|
<div class="lbbr"></div>
|
</div>
|
</header>
|
|
<%
|
If Total_fee>0 Then
|
tips1 = "请先支付出车预付订金 <u>"&Total_fee&"元</u>"
|
%>
|
<div class="ds_form text-center">
|
<form id="OrdPayform" name="OrdPayform" action='' method='post' name='order_form form-inline'>
|
<input type='hidden' name="ServiceOrdID" value="<%=ServiceOrdID%>" />
|
<input type='hidden' name="DispatchOrdID" value="<%=DispatchOrdID%>" />
|
<input type='hidden' name="openid" value="<%=openid%>" />
|
<input type='hidden' name="Total_fee" value="<%=Total_fee%>" />
|
<input type='hidden' id="order_pay_weixin" name="order_pay_weixin" value="<%=order_pay_weixin%>" />
|
|
<div style="font-size: 18px;margin: 20px auto ;">待支付<%If isPrePayment="1" Then%>定金<%else%>金额:<%End If%>
|
<span style="font-size: 22px;color: #ff9900;background: #ffffff;border: none;font-weight:bold;">¥<%=FormatNumber(Round(Total_fee,2),2,True)%></span>
|
</div>
|
<div class="col-xs-12" id="PaySubmit">
|
<div class="anniu" onclick="submitFormWeiXinPay();" id="WeiXinPay">
|
<button type="button" id="btn_reg" class="btn1" >微信支付</button>
|
</div>
|
<div class="anniu" onclick="submitFormAlipayPay();" id="AlipayPay">
|
<button type="button" id="btn_reg" class="btn2">支付宝</button>
|
</div>
|
</div>
|
<div class="col-xs-12" id="PayPosi" style="display:none;">
|
<div class="anniu">
|
<button type="button" id="btn_reg" class="btn1" >跳转中</button>
|
</div>
|
</div>
|
</form>
|
</div>
|
<%
|
Else
|
tips1 = "您已支付了定金 <u>"&ServiceOrdTraPaidPrice&"元</u>"
|
%>
|
<div style="text-align:center;"><button type="button" id="btn_reg" class="btn1">您已成功支付</button></div>
|
<%End If%>
|
<%If isPrePayment = "1" And ServiceOrdType<>"14" And ServiceOrdType<>"15" And ServiceOrdType<>"16" And ServiceOrdType<>"17" Then
|
%>
|
<div style="margin:110px 20 0 20;text-align:left;color:#000000;font-size:16px"> <u><%=ServiceOrdCoName%></u>,您好!<%=tips1%>,我们的团队去到出发地 <u><%=PtOutHospName%></u> 后,收齐 <u><%=ServiceOrdTraTxnPrice-Total_fee%></u> 元后再出发至 <u><%=PtInHospName%></u>。然后给您开具全额 <u><%=ServiceOrdTraTxnPrice%>元</u> 的医疗转运票据。如医护已经出车,该定金无法退回,请知悉。有疑问欢迎随时拨打服务热线 (020) 966120,谢谢!</div>
|
<%ElseIf DispatchOrdState>=6 And ServiceOrdType<>"14" And ServiceOrdType<>"15" And ServiceOrdType<>"16" And ServiceOrdType<>"17" And Guest_Point=0 Then%>
|
<div style="text-align:center;" onclick="javascript:location.href='/MyOrder.php?ServiceOrdID=<%=ServiceOrdID%>&DispatchOrdID=<%=DispatchOrdID%>&sign=<%=Md5Sign(ServiceOrdID&DispatchOrdID,GPSKey,"utf-8")%>';"><button type="button" id="btn_reg" class="btn2" style="background-color: #9d1273;">给于服务评价</button></div>
|
<!--
|
<div style="text-align:center;" onclick="javascript:location.href='/index.html#/pages/order/detail/detail?ServiceOrdID=<%=ServiceOrdID%>';"><button type="button" id="btn_reg" class="btn2" style="background-color: #9d1273;">给于服务评价</button></div>
|
-->
|
<div style="text-align:center;color:#999999;font-size:14px;margin-top:20px">若需了解更多信息,欢迎拨打服务热线:</div>
|
<div style="text-align:center;color:#999999;font-size:14px;">(020) 966120</div>
|
<%End if%>
|
<div style="text-align:center;color:#999999;font-size:14px;margin:20px auto 50px auto">广东民航医疗快线有限公司</div>
|
<div class="clear"></div>
|
<div class="bottom_padding"></div>
|
<style>
|
.complain_dialog{
|
background: rgba(0, 0, 0, 0.51);
|
position: fixed;
|
top: 0;
|
width: 100%;
|
height: 100%;
|
z-index: 999;
|
color: #aaa;
|
font-size: 14px;
|
display: none;
|
}
|
#form{margin: 20px;}
|
#result{display: none;margin: 30px;}
|
.ts_success{
|
width: 50%;
|
max-width: 120px;
|
}
|
.complain_dialog .inner{
|
background: #fff;border-radius: 10px;text-align: center;margin: 0 auto;padding:20px;position: relative;
|
}
|
.complain_dialog .cancel{
|
position: absolute;right: 10px;top: 10px;width: 20px;
|
}
|
.complain_dialog input{margin: 20px 0 20px 10px;border:none;border-bottom: 1px solid #b5b5b5;width: 70%}
|
.complain_dialog textarea{display: block;width: 100%;resize:none;height: 40%;border:1px solid #ccc;box-sizing: border-box;padding:10px 20px;}
|
.error_tip{
|
color: #ff0000;
|
display: none;
|
}
|
.txt{
|
color: #323232;
|
font-size: 16px;
|
margin: 10px 0 20px 0;
|
}
|
.complain_dialog h4{color: #323232;}
|
</style>
|
|
|
|
<script LANGUAGE="javascript">
|
//提交表单--微信支付
|
function submitFormWeiXinPay(){
|
document.OrdPayform.action = "/pay/weixin_pay_Welcab.asp";
|
document.getElementById('PaySubmit').style.display='none';
|
document.getElementById('PayPosi').style.display='';
|
OrdPayform.submit();
|
}
|
//提交表单--支付宝
|
function submitFormAlipayPay(){
|
document.OrdPayform.action = "/pay/alipay_pay.php";
|
document.getElementById('PaySubmit').style.display='none';
|
document.getElementById('PayPosi').style.display='';
|
OrdPayform.submit();
|
}
|
submitFormAlipayPay
|
</script>
|
|
</body>
|
</html>
|