You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
350 lines
13 KiB
Plaintext
350 lines
13 KiB
Plaintext
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="FedexFee.aspx.cs" Inherits="TradeManage.DingDan.FedexFee" %>
|
|
|
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN">
|
|
<html xmlns="http://www.w3.org/1999/xhtml">
|
|
<head id="Head1">
|
|
<title>订单修改</title>
|
|
<link rel="stylesheet" type="text/css" href="../css2/icon.css">
|
|
<link rel="stylesheet" type="text/css" href="../css2/DataGrid.css" />
|
|
<link href="../css2/gray/easyui.css" rel="stylesheet" type="text/css" />
|
|
<link rel="stylesheet" href="../font-awesome/css/font-awesome.min.css" />
|
|
<link href="../css2/New.css?a=11" rel="stylesheet" type="text/css" />
|
|
<script src="../Scripts/MicrosoftAjax.js" type="text/javascript"></script>
|
|
<script src="../Scripts/jquery.min.js" type="text/javascript"></script>
|
|
<script src="../Scripts/jquery.easyui.min.js" type="text/javascript"></script>
|
|
<script src="../Scripts/DataGrid.js" type="text/javascript"></script>
|
|
<script src="../Scripts/DataPager.js" type="text/javascript"></script>
|
|
<script src="../Scripts/DateBox.js" type="text/javascript"></script>
|
|
<script src="../Scripts/jquery.bgiframe.min.js" type="text/javascript"></script>
|
|
<script src="../Scripts/Global.js" type="text/javascript"></script>
|
|
<script type="text/javascript" src="../Scripts/uploadify/jquery.uploadify.js"></script>
|
|
<script src="../Scripts/ajaxfileupload.js" type="text/javascript"></script>
|
|
<script src="../Scripts/jquery.url.js" type="text/javascript"></script>
|
|
<script src="../Scripts/WindowLoad.js" type="text/javascript"></script>
|
|
<script src="../Scripts/jquery.cookies.min.js" type="text/javascript"></script>
|
|
<script src="../Scripts/DatePicker/WdatePicker.js" type="text/javascript"></script>
|
|
<script src="../Scripts/MaskedTextBox.js" type="text/javascript"></script>
|
|
<script src="../Scripts/jquery.cookies.min.js" type="text/javascript"></script>
|
|
<link rel="stylesheet" type="text/css" href="../Scripts/fancybox2.1/source/jquery.fancybox.css?v=2.1.5"
|
|
media="screen" />
|
|
<script type="text/javascript" src="../Scripts/fancybox2.1/lib/jquery.mousewheel-3.0.6.pack.js"></script>
|
|
<script type="text/javascript" src="../Scripts/fancybox2.1/source/jquery.fancybox.js?v=2.1.5"></script>
|
|
<script src="../Scripts/Global.js" type="text/javascript"></script>
|
|
<script type="text/javascript">
|
|
|
|
var WindowLoadModel = new WindowLoad();
|
|
$(document).ready(function () {
|
|
WindowLoadModel.ApplicationPath = "../";
|
|
WindowLoadModel.ControlID = "WindowLoad";
|
|
WindowLoadModel.Isbgiframe = true;
|
|
WindowLoadModel.Load();
|
|
ajaxInit(WindowLoadModel);
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
function GetOrderFee(PostType) {
|
|
|
|
if($("#txtRevProvince").val()=="")
|
|
{
|
|
|
|
alert("请输入州");
|
|
return;
|
|
}
|
|
|
|
if($("#txtRevCity").val()=="")
|
|
{
|
|
|
|
alert("请输入城市");
|
|
return;
|
|
}
|
|
|
|
if($("#txtRevPostCode").val()=="")
|
|
{
|
|
|
|
alert("请输入邮编");
|
|
return;
|
|
}
|
|
|
|
if($("#txtWeight").val()=="")
|
|
{
|
|
|
|
alert("请输入重量");
|
|
return;
|
|
}
|
|
|
|
if ($("#txtLong").val() == "")
|
|
{
|
|
|
|
alert("请输入长");
|
|
return;
|
|
}
|
|
if ($("#txtWidth").val() == "") {
|
|
|
|
alert("请输入宽");
|
|
return;
|
|
}
|
|
if ($("#txtHeight").val() == "")
|
|
{
|
|
|
|
alert("请输入高");
|
|
return;
|
|
}
|
|
var param = new Object();
|
|
var omd = new Object();
|
|
omd.RevProvinceCode = $("#txtRevProvince").val();
|
|
omd.RevCity = $("#txtRevCity").val();
|
|
omd.RevPostCode = $("#txtRevPostCode").val();
|
|
omd.CountryCode = "US";
|
|
omd.RevAddr = $("#txtRevAddr").val();
|
|
param.omd=omd;
|
|
|
|
param.PostId = 222;
|
|
param.weight = $("#txtWeight").val();
|
|
param.width = $("#txtWidth").val();
|
|
param.slong = $("#txtLong").val();
|
|
param.height = $("#txtHeight").val();
|
|
param.Uint = $("#select_uint").val();
|
|
if(PostType==1)
|
|
param.PostType = "SMART_POST";
|
|
else if (PostType == 2)
|
|
param.PostType = "FEDEX_GROUND";
|
|
else if (PostType == 3)
|
|
param.PostType = "GROUND_HOME_DELIVERY";
|
|
WindowLoadModel.Show();
|
|
$.ajax({
|
|
url: "../DD_OrderServiceNew.asmx/GetFedexFee22",
|
|
data: Sys.Serialization.JavaScriptSerializer.serialize(param),
|
|
success: function (data) {
|
|
WindowLoadModel.Hide();
|
|
|
|
|
|
if (PostType ==2) {
|
|
$("#div_fee2").html(data.d);
|
|
}
|
|
else if (PostType == 3) {
|
|
$("#div_fee3").html(data.d);
|
|
}
|
|
else
|
|
$("#div_fee").html(data.d);
|
|
}
|
|
});
|
|
}
|
|
function GetOrderFee2() {
|
|
|
|
//$("#btn_QXFP").hide();
|
|
var param = new Object();
|
|
param.omd=omd;
|
|
param.glist=GoodsList;
|
|
param.PostId = 222;
|
|
param.PostType = "FEDEX_GROUND";
|
|
WindowLoadModel.Show();
|
|
$.ajax({
|
|
url: "../DD_OrderServiceNew.asmx/GetFedexFee22",
|
|
data: Sys.Serialization.JavaScriptSerializer.serialize(param),
|
|
success: function (data) {
|
|
WindowLoadModel.Hide();
|
|
|
|
$("#div_fee").html(data.d);
|
|
GetOrderModel();
|
|
GetLR();
|
|
|
|
}
|
|
});
|
|
}
|
|
|
|
function GetOrderFee3() {
|
|
|
|
//$("#btn_QXFP").hide();
|
|
var param = new Object();
|
|
param.omd=omd;
|
|
param.glist=GoodsList;
|
|
param.PostId = 222;
|
|
param.PostType = "GROUND_HOME_DELIVERY";
|
|
WindowLoadModel.Show();
|
|
$.ajax({
|
|
url: "../DD_OrderServiceNew.asmx/GetFedexFee22",
|
|
data: Sys.Serialization.JavaScriptSerializer.serialize(param),
|
|
success: function (data) {
|
|
WindowLoadModel.Hide();
|
|
|
|
$("#div_fee").html(data.d);
|
|
GetOrderModel();
|
|
GetLR();
|
|
}
|
|
});
|
|
}
|
|
|
|
|
|
|
|
|
|
</script>
|
|
<style type="text/css">
|
|
.td1
|
|
{
|
|
background-color: #C0C0C0;
|
|
font-size: large;
|
|
font-family: 宋体;
|
|
font-weight: bolder;
|
|
color: #FFFFFF;
|
|
text-align: center;
|
|
}
|
|
|
|
#container
|
|
{
|
|
position: absolute;
|
|
left: 165px;
|
|
top: 34px;
|
|
}
|
|
|
|
#content
|
|
{
|
|
float: left;
|
|
position: relative;
|
|
right: 20%;
|
|
background: #BBFFEE;
|
|
}
|
|
|
|
.schinput
|
|
{
|
|
border: 0;
|
|
width: 210px;
|
|
height: 34px;
|
|
font-size: 16px;
|
|
padding: 0 5px;
|
|
line-height: 30px;
|
|
}
|
|
|
|
.item
|
|
{
|
|
padding: 3px 5px;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.addbg
|
|
{
|
|
background: #9999FF;
|
|
}
|
|
|
|
.first
|
|
{
|
|
border: solid #CCDDFF 2px;
|
|
width: 220px;
|
|
}
|
|
|
|
#append
|
|
{
|
|
border: solid #CCDDFF 2px;
|
|
border-top: 0;
|
|
display: none;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body class="headbody">
|
|
|
|
<div class="title_ico">
|
|
Fedex运费计算</div>
|
|
<table border="1" cellpadding="0" cellspacing="0" style="width: 99%;" align="center"
|
|
class="tableAll">
|
|
|
|
<tr>
|
|
<td>
|
|
<table border="1" cellpadding="0" cellspacing="0" style="width: 70%;" align="center"
|
|
class="tableAll">
|
|
<tr>
|
|
<td class="td1" colspan="4">
|
|
寄达信息(Leo账号) <a
|
|
style="display: none; cursor: pointer" id="a_savemj"><img src="../images/add.ico"
|
|
width="20px" height="20px" /><font color="blue" style="font-size: 11pt">保存</font></a> <a
|
|
style="display: none; cursor: pointer" id="a_delmj"><img src="../images/unadd.ico"
|
|
width="20px" height="20px" /><font color="blue" style="font-size: 11pt">取消</font></a>
|
|
</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td style="width: 120px" class="f1">
|
|
寄达州、省:
|
|
</td>
|
|
<td width="35%">
|
|
<input id="txtRevProvince" type="text" style="width: 200px;" class="editTextbox" />
|
|
</td>
|
|
<td style="width: 120px" class="f1">
|
|
寄达市:
|
|
</td>
|
|
<td>
|
|
|
|
<input id="txtRevCity" type="text" style="width: 200px;" class="editTextbox" />
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
|
|
<td style="width: 120px" class="f1">
|
|
邮编:
|
|
</td>
|
|
<td>
|
|
<input id="txtRevPostCode" type="text" style="width: 200px;" class="editTextbox" /></td>
|
|
</tr>
|
|
<tr>
|
|
<td style="width: 120px" class="f1">
|
|
寄达详细地址:
|
|
</td>
|
|
<td colspan="3">
|
|
|
|
<input id="txtRevAddr" type="text" style="width: 70%;" class="editTextbox" />可不填
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td style="width: 120px" class="f1">
|
|
重量:
|
|
</td>
|
|
<td>
|
|
|
|
<input id="txtWeight" type="text" style="width: 120px;" class="editTextbox" />
|
|
<select id="select_uint" name="D1" style="width:50px">
|
|
<option value="1"> LB</option>
|
|
<option value="2"> KG</option>
|
|
<option value="3">OZ</option>
|
|
</select></td>
|
|
<td style="width: 120px" class="f1">
|
|
长宽高</td>
|
|
<td>
|
|
|
|
<input id="txtLong" type="text" style="width:50px;" class="editTextbox" />in <input id="txtWidth" type="text" style="width:50px;" class="editTextbox" />in <input id="txtHeight" type="text" style="width:50px;" class="editTextbox" />in
|
|
</td>
|
|
</tr>
|
|
|
|
|
|
|
|
|
|
<tr>
|
|
<td>
|
|
<div id="div_fee" style="color:Red;font-size:14pt"></div></td> <td>
|
|
<div id="div_fee2" style="color:Red;font-size:14pt"></div></td> <td>
|
|
<div id="div_fee3" style="color:Red;font-size:14pt"></div></td> <td>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td align="center" colspan="4">
|
|
|
|
<input id="cmdSaveFedex" type="button" value="SmartPost运费计算" class="btnClass btnClassSave"
|
|
onclick="GetOrderFee(1);" /> <input id="Button2" type="button" value="FEDEX_GROUND运费计算" class="btnClass btnClassSave"
|
|
onclick="GetOrderFee(2);" /> <input id="Button4" type="button"
|
|
value="GROUND_HOME_DELIVERY运费计算" class="btnClass btnClassSave"
|
|
onclick="GetOrderFee(3);" /></td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
</tr>
|
|
|
|
</table>
|
|
</body>
|
|
</html>
|
|
|