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.

176 lines
6.8 KiB
Plaintext

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="DD_OtherFeeImport.aspx.cs" Inherits="TradeManageNew.DingDan.DD_OtherFeeImport" %>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1">
<title>其他费用亚马逊FBA订单运费仓储费等导入导入</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=1" rel="stylesheet" type="text/css" />
<link rel="stylesheet" type="text/css" href="../themes/uploadify.css" />
<script src="../Scripts/MicrosoftAjax.js" type="text/javascript"></script>
<script src="../Scripts/jquery.min.js" type="text/javascript"></script>
<script src="../Scripts/jquery.bgiframe.min.js" type="text/javascript"></script>
<script src="../Scripts/jquery.easyui.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/DatePicker/WdatePicker.js" type="text/javascript"></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);
$("#btn_Excel1").click(function () {
ajaxFileUpload();
});
});
//#region 上传
function ajaxFileUpload() {
if ($("#txt_SDate").val() == "" || $("#txt_EDate").val() == "") {
alert("请选择导入数据的日期范围");
return;
}
if ($("#Radio2").is(":checked") == false&&$("#Radio1").is(":checked") == false) {
alert("请选择导入数据的类型");
return;
}
var filename = $("#fileToUpload").val();
if (IsExcel(filename) == false) { alert("请选择excel文件"); return; }
$.ajaxFileUpload({
url: '../GlobalAshx/AjaxFileUpdate.ashx?DirectoryName=ServerCookies',
secureuri: false,
fileElementId: 'fileToUpload',
dataType: 'json',
success: function (data, status) {
ImportGoods("ServerCookies/" + data.FileName);
},
error: function (data, status, e) {
alert(e);
}
});
}
function ImportGoods(FileName) {
var param = new Object();
param.FileName = FileName;
param.sdt = $("#txt_SDate").val();
param.edt = $("#txt_EDate").val();
param.isfg = 0;
if ($("#Radio2").is(":checked") == true)
param.isfg = 1;
WindowLoadModel.Show();
$.ajax({
url: "../DD_OrderServiceNew.asmx/ImportOtherFee",
data: Sys.Serialization.JavaScriptSerializer.serialize(param),
success: function (data) {
WindowLoadModel.Hide();
if (data.d != "") { $("#div1").html(data.d); return; }
},
error: function (xhr, status) {
if (status != "success") alert(xhr.responseText);
}
});
}
</script>
</head>
<body>
<form id="form1" runat="server">
<div class="title_ico">
其他费用亚马逊FBA订单运费仓储费等导入</div>
<table width="100%">
<tr>
<td align="center">
<table border="1" cellpadding="0" cellspacing="0" style="width: 95%"
class="tableAll">
<tr>
<td class="f1" width="12%">
其他费用亚马逊FBA订单运费仓储费等导入</td>
<td width="40%">
<input id="fileToUpload" accept="excel/xls" name="fileToUpload" type="file" style="width:300px" />
<br />
<font color='Red'>导入前先把excel另存为97-2003格式</font> </td><td> <input
id="btn_Excel1" type="button" class="btnClass btnClassEdit" value="确定导入" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a style="color:Blue;" href="../Scripts/其他费用导入模板.xls">导入模板下载</a></td>
</tr>
<tr>
<td class="f1" width="12%">
数据日期:</td>
<td width="40%">
<input id="txt_SDate" class="editTextbox" onfocus="WdatePicker()"
style="width: 120px;" type="text" />-<input id="txt_EDate"
class="editTextbox" onfocus="WdatePicker()" style="width: 120px;" type="text" /></td><td>
&nbsp;</td>
</tr>
<tr>
<td class="f1" width="12%">
导入方式:</td>
<td width="40%">
<input id="Radio1" type="radio" name='dr'/>新增导入 <input id="Radio2" type="radio" name='dr'/>覆盖导入 <font color='Red'>新增导入是累加到之前导入的金额上去,覆盖导入是替换之前导入的金额</font> </td><td> &nbsp;</td>
</tr>
<tr>
<td>
导入结果提示:</td>
<td colspan="2">
<div id="div1" style="height:320px;width:600px;color:red;overflow:auto"></div></td>
</tr>
</table>
</td>
</tr>
</table>
</form>
</body>
</html>