|
|
|
|
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="DD_LTLFee.aspx.cs" Inherits="TradeManageNew.DingDan.DD_LTLFee" %>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<!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;
|
|
|
|
|
if($("#select_ck").val()=="1")
|
|
|
|
|
param.PostId = 228;
|
|
|
|
|
else if ($("#select_ck").val() == "2")
|
|
|
|
|
param.PostId = 237;
|
|
|
|
|
|
|
|
|
|
param.weight = $("#txtWeight").val();
|
|
|
|
|
param.width = $("#txtWidth").val();
|
|
|
|
|
param.slong = $("#txtLong").val();
|
|
|
|
|
param.height = $("#txtHeight").val();
|
|
|
|
|
param.Uint = $("#select_uint").val();
|
|
|
|
|
param.Uint2 = $("#select_uint2").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";
|
|
|
|
|
else if (PostType == 4)
|
|
|
|
|
param.PostType = "FEDEX_2_DAY";
|
|
|
|
|
WindowLoadModel.Show();
|
|
|
|
|
$.ajax({
|
|
|
|
|
url: "../DD_OrderServiceNew.asmx/GetFedexFeeHWC",
|
|
|
|
|
data: Sys.Serialization.JavaScriptSerializer.serialize(param),
|
|
|
|
|
success: function (data) {
|
|
|
|
|
WindowLoadModel.Hide();
|
|
|
|
|
if (data.d != null) {
|
|
|
|
|
$("#tb_fee").show();
|
|
|
|
|
var fee = data.d;
|
|
|
|
|
var fee1 = data.d;
|
|
|
|
|
var fee2 = '';
|
|
|
|
|
var len = fee.indexOf('@');
|
|
|
|
|
if (len >= 0) {
|
|
|
|
|
fee1 = fee.substring(0, len);
|
|
|
|
|
fee2 = fee.substring(len + 1, data.d.length) + "USD";
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (PostType == 2) {
|
|
|
|
|
$("#div2").html(fee2);
|
|
|
|
|
$("#div_fee2").html(fee1);
|
|
|
|
|
}
|
|
|
|
|
else if (PostType == 3) {
|
|
|
|
|
$("#div3").html(fee2);
|
|
|
|
|
$("#div_fee3").html(fee1);
|
|
|
|
|
}
|
|
|
|
|
else if (PostType == 4) {
|
|
|
|
|
$("#div4").html(fee2);
|
|
|
|
|
$("#div_fee4").html(fee1);
|
|
|
|
|
}
|
|
|
|
|
else {
|
|
|
|
|
$("#div1").html(fee2);
|
|
|
|
|
$("#div_fee").html(fee1);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
function GetOrderFee2() {
|
|
|
|
|
|
|
|
|
|
//$("#btn_QXFP").hide();
|
|
|
|
|
var param = new Object();
|
|
|
|
|
param.omd = omd;
|
|
|
|
|
param.glist = GoodsList;
|
|
|
|
|
param.PostId = 228;
|
|
|
|
|
param.PostType = "FEDEX_GROUND";
|
|
|
|
|
WindowLoadModel.Show();
|
|
|
|
|
$.ajax({
|
|
|
|
|
url: "../DD_OrderServiceNew.asmx/GetFedexFeeHWC",
|
|
|
|
|
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 = 228;
|
|
|
|
|
param.PostType = "GROUND_HOME_DELIVERY";
|
|
|
|
|
WindowLoadModel.Show();
|
|
|
|
|
$.ajax({
|
|
|
|
|
url: "../DD_OrderServiceNew.asmx/GetFedexFeeHWC",
|
|
|
|
|
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">
|
|
|
|
|
LTL运费计算</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: 80%;" align="center"
|
|
|
|
|
class="tableAll">
|
|
|
|
|
<tr>
|
|
|
|
|
<td class="td1" colspan="4">
|
|
|
|
|
寄达信息(业远账号) <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><font color='red'>注:单位可选择切换</font>
|
|
|
|
|
</td>
|
|
|
|
|
<td style="width: 120px" class="f1">
|
|
|
|
|
尺寸长宽高:
|
|
|
|
|
</td>
|
|
|
|
|
<td>
|
|
|
|
|
Lenght:<input id="txtLong" type="text" style="width: 50px;" class="editTextbox" />Width:
|
|
|
|
|
<input id="txtWidth" type="text" style="width: 50px;" class="editTextbox" />Height
|
|
|
|
|
<input id="txtHeight" type="text" style="width: 50px;" class="editTextbox" /> <select id="select_uint2" name="D1" style="width: 50px">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<option value="1">IN</option>
|
|
|
|
|
<option value="2">CM</option>
|
|
|
|
|
</select><font color='red'>注:单位可选择切换</font>
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
|
|
|
|
<td style="width: 120px" class="f1">
|
|
|
|
|
发货仓库选择:</td>
|
|
|
|
|
<td>
|
|
|
|
|
<select id="select_ck" name="D2" style="width: 150px">
|
|
|
|
|
<option value="1">W仓(CA)</option>
|
|
|
|
|
<option value="2">E仓(FL)</option>
|
|
|
|
|
</select></td>
|
|
|
|
|
<td style="width: 120px" class="f1">
|
|
|
|
|
</td>
|
|
|
|
|
<td>
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
|
|
|
|
<td colspan="4"><table border="1" cellpadding="0" cellspacing="0" style="width: 99%;display:none" id="tb_fee" ><tr> <td><font style='font-size:14pt;color:Gray'> SmartPost Fee:</font><br />
|
|
|
|
|
<div id="div1" style="color: Red; font-size: 14pt">
|
|
|
|
|
</div>
|
|
|
|
|
</td>
|
|
|
|
|
<td> <font style='font-size:14pt;color:Gray'>FEDEX_GROUND Fee:</font><br />
|
|
|
|
|
<div id="div2" style="color: Red; font-size: 14pt">
|
|
|
|
|
</div>
|
|
|
|
|
</td>
|
|
|
|
|
<td> <font style='font-size:14pt;color:Gray'>GROUND_HOME_DELIVERY Fee:</font><br />
|
|
|
|
|
<div id="div3" style="color: Red; font-size: 14pt">
|
|
|
|
|
</div>
|
|
|
|
|
</td>
|
|
|
|
|
<td> <font style='font-size:14pt;color:Gray'>FEDEX_2_DAY Fee:</font><br />
|
|
|
|
|
<div id="div4" style="color: Red; font-size: 14pt">
|
|
|
|
|
</div>
|
|
|
|
|
</td></tr>
|
|
|
|
|
<tr>
|
|
|
|
|
<td> <font style='font-size:14pt;color:Gray'>SmartPost ShipmentRateDetails:</font><br />
|
|
|
|
|
<div id="div_fee" style="color: Red; font-size: 14pt">
|
|
|
|
|
</div>
|
|
|
|
|
</td>
|
|
|
|
|
<td><font style='font-size:14pt;color:Gray'>FEDEX_GROUND ShipmentRateDetails:</font><br />
|
|
|
|
|
<div id="div_fee2" style="color: Red; font-size: 14pt">
|
|
|
|
|
</div>
|
|
|
|
|
</td>
|
|
|
|
|
<td><font style='font-size:14pt;color:Gray'>GROUND_HOME_DELIVERY ShipmentRateDetails:</font><br />
|
|
|
|
|
<div id="div_fee3" style="color: Red; font-size: 14pt">
|
|
|
|
|
</div>
|
|
|
|
|
</td>
|
|
|
|
|
<td><font style='font-size:14pt;color:Gray'>FEDEX_2_DAY ShipmentRateDetails:</font><br />
|
|
|
|
|
<div id="div_fee4" style="color: Red; font-size: 14pt">
|
|
|
|
|
</div>
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
</table></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);" />
|
|
|
|
|
<input id="Button1" type="button" value="FEDEX_2_DAY运费计算" class="btnClass btnClassSave"
|
|
|
|
|
onclick="GetOrderFee(4);" />
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
|
|
|
|
|
</table>
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
</table>
|
|
|
|
|
</body>
|
|
|
|
|
</html>
|
|
|
|
|
|
|
|
|
|
|