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.
449 lines
17 KiB
Plaintext
449 lines
17 KiB
Plaintext
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="DD_ScanOrderSure.aspx.cs" Inherits="TradeManage.DingDan.DD_ScanOrderSure" %>
|
|
|
|
|
|
<!DOCTYPE html>
|
|
<html xmlns="http://www.w3.org/1999/xhtml">
|
|
<head>
|
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
|
<title>订单扫描确认</title>
|
|
<link rel="stylesheet" type="text/css" href="../themes/default/easyui.css" />
|
|
<link rel="stylesheet" type="text/css" href="../themes/icon.css" />
|
|
<link rel="stylesheet" type="text/css" href="../themes/New.css" />
|
|
<link rel="stylesheet" type="text/css" href="../themes/DataGrid.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/jquery.bgiframe.min.js" type="text/javascript"></script>
|
|
<script src="../Scripts/Global.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>
|
|
<link rel="stylesheet" type="text/css" href="../Scripts/fancybox/jquery.fancybox-1.3.4.css"
|
|
media="screen" />
|
|
<script type="text/javascript" src="../Scripts/fancybox/jquery.mousewheel-3.0.4.pack.js"></script>
|
|
<script type="text/javascript" src="../Scripts/fancybox/jquery.fancybox-1.3.4.pack.js"></script>
|
|
<script src="../Scripts/MaskedTextBox.js" type="text/javascript"></script>
|
|
<script src="../Scripts/DatePicker/WdatePicker.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);
|
|
|
|
$(document).keyup(function (event) {
|
|
if (event.keyCode == 13) {
|
|
if ($("#txt_OrderCode").is(":focus") == true) {
|
|
ScanSure();
|
|
}
|
|
}
|
|
});
|
|
|
|
GetExpressType();
|
|
GetExpress();
|
|
var dd = new Date();
|
|
$("#txt_SDate").val(dd.getFullYear() + "-" + (dd.getMonth() + 1) + "-" + (dd.getDate()-1) + " 13:00");
|
|
$("#txt_EDate").val(dd.getFullYear() + "-" + (dd.getMonth() + 1) + "-" + dd.getDate() + " 13:00");
|
|
|
|
// ReadData();
|
|
$("#select_wl").bind("change", function () {
|
|
|
|
GetExpress();
|
|
|
|
});
|
|
|
|
//$("#select_post").bind("change", function () {
|
|
// ReadData();
|
|
//});
|
|
|
|
//$("#select_Track").bind("click", function () {
|
|
// //var data = $("#select_Track").options[3654846].value;
|
|
// var rightSelectObject = document.getElementById("select_Track");
|
|
// var data = rightSelectObject.options[1].value;
|
|
// window.clipboardData.setData('text', data.toString());
|
|
//});
|
|
$("#cmdSch").bind("click", function () {
|
|
ReadData();
|
|
});
|
|
|
|
});
|
|
function GetExpressType() {
|
|
|
|
$("#select_wl").append("<option value='0'>全部</option>");
|
|
|
|
|
|
WindowLoadModel.Show();
|
|
$.ajax({
|
|
url: "../SysManage/SysManageService.asmx/GetExpressTypeList",
|
|
// data: Sys.Serialization.JavaScriptSerializer.serialize(param),
|
|
async: false,
|
|
success: function (data) {
|
|
WindowLoadModel.Hide();
|
|
|
|
if (data.d != null) {
|
|
$(data.d).each(function () {
|
|
$("#select_wl").append("<option value='" + this.LogisticsId + "'>" + this.LogisticsName + "</option>");
|
|
|
|
});
|
|
|
|
}
|
|
|
|
|
|
}
|
|
});
|
|
}
|
|
|
|
|
|
function GetExpress() {
|
|
$("#select_post").empty();
|
|
|
|
$("#select_post").append("<option value='0'>-全部-</option>");
|
|
|
|
//$("#div_postinfo").empty();
|
|
var param = new Object();
|
|
param.LogisticsId = $("#select_wl").val();
|
|
|
|
WindowLoadModel.Show();
|
|
$.ajax({
|
|
url: "../BaseData.asmx/GetExpressPostList",
|
|
data: Sys.Serialization.JavaScriptSerializer.serialize(param),
|
|
async: false,
|
|
success: function (data) {
|
|
WindowLoadModel.Hide();
|
|
if (data.d != null) {
|
|
$(data.d).each(function (i) {
|
|
$("#select_post").append("<option value='" + this.ExpressID + "'>" + this.Name + "</option>");
|
|
// $("#div_postinfo").append("<input id='rad_'" + i.toString() + " type='radio' name='wl' no='" + this.ExpressID + "' /><label for='rad_'" + i.toString() + ">" + this.Name + "</label><br/>");
|
|
})
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
});
|
|
}
|
|
|
|
|
|
|
|
//#endregion
|
|
//#region 读取数据
|
|
function ReadData() {
|
|
var param = new Object();
|
|
|
|
param.SDate = null;
|
|
if ($("#txt_SDate").val() != "")
|
|
param.SDate = $("#txt_SDate").val();
|
|
param.EDate = null;
|
|
if ($("#txt_EDate").val() != "")
|
|
param.EDate = $("#txt_EDate").val();
|
|
|
|
if ($("#select_post option").length == 0)
|
|
param.PostId = 0;
|
|
else
|
|
param.PostId = $("#select_post").val();
|
|
|
|
|
|
WindowLoadModel.Show();
|
|
$.ajax({
|
|
url: "DD_OrderService.asmx/Get_TrackScanList",
|
|
data: Sys.Serialization.JavaScriptSerializer.serialize(param),
|
|
success: function (data) {
|
|
WindowLoadModel.Hide();
|
|
if (data.d != null)
|
|
{
|
|
var tempdata = "";
|
|
$("#a_num").html(data.d.length);
|
|
$(data.d).each(function () {
|
|
$('#select_Track').append("<option value='"+this.Id+"'>"+this.OrderCode+"["+this.TrackCode+"]</option>");
|
|
tempdata=tempdata + this.TrackCode+ "\r\n";
|
|
});
|
|
$('#txt_temp').val(tempdata);
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
});
|
|
}
|
|
function ExportData() {
|
|
if ($("#txt_SDate").val() == "") {
|
|
alert("请输入发货开始时间");
|
|
$("#txt_SDate").focus();
|
|
return;
|
|
}
|
|
if ($("#select_post").val() == "0") {
|
|
alert("请选择物流方式");
|
|
|
|
return;
|
|
}
|
|
alert("正在查询导出,请稍微等待一会");
|
|
var param = new Object();
|
|
|
|
param.SDate = null;
|
|
if ($("#txt_SDate").val() != "")
|
|
param.SDate = $("#txt_SDate").val();
|
|
param.EDate = null;
|
|
if ($("#txt_EDate").val() != "")
|
|
param.EDate = $("#txt_EDate").val();
|
|
|
|
|
|
param.PostId = $("#select_post").val();
|
|
param.Ids ="";
|
|
var dd = new Date();
|
|
var fname = "邮局上报数据(" + dd.getFullYear() + "." + (dd.getMonth() + 1) + "." + dd.getDate() + ").xls";
|
|
if (param.PostId == 100)
|
|
fname = "德邮(" + dd.getFullYear() + "." + (dd.getMonth() + 1) + "." + dd.getDate() + ").txt";
|
|
$.ajax({
|
|
url: "DD_OrderService.asmx/ExcelPostDataForTM",
|
|
data: Sys.Serialization.JavaScriptSerializer.serialize(param),
|
|
async: false,
|
|
success: function (data) {
|
|
if (data.d == "" || data.d == "找不到该渠道的导出模板") {
|
|
alert("找不到该渠道的导出模板");
|
|
return;
|
|
}
|
|
params = { FilePath: data.d, FileName: fname };
|
|
|
|
window.location = "../GlobalAshx/DownFile.ashx?" + jQuery.param(params);
|
|
}
|
|
});
|
|
|
|
}
|
|
function ExportData1() {
|
|
|
|
var param = new Object();
|
|
|
|
param.SDate = null;
|
|
if ($("#txt_SDate").val() != "")
|
|
param.SDate = $("#txt_SDate").val();
|
|
param.EDate = null;
|
|
if ($("#txt_EDate").val() != "")
|
|
param.EDate = $("#txt_EDate").val();
|
|
|
|
|
|
param.PostId = $("#select_post").val();
|
|
|
|
var dd = new Date();
|
|
var fname = $("#txt_SDate").val()+"剩余跟踪码.xls";
|
|
$.ajax({
|
|
url: "DD_OrderService.asmx/ExcelLeftTrackCode",
|
|
data: Sys.Serialization.JavaScriptSerializer.serialize(param),
|
|
async: false,
|
|
success: function (data) {
|
|
if (data.d == "" || data.d == "找不到该渠道的导出模板") {
|
|
alert("找不到该渠道的导出模板");
|
|
return;
|
|
}
|
|
params = { FilePath: data.d, FileName: fname };
|
|
|
|
window.location = "../GlobalAshx/DownFile.ashx?" + jQuery.param(params);
|
|
}
|
|
});
|
|
|
|
}
|
|
function ExportData2() {
|
|
|
|
var param = new Object();
|
|
|
|
param.SDate = null;
|
|
if ($("#txt_SDate").val() != "")
|
|
param.SDate = $("#txt_SDate").val();
|
|
param.EDate = null;
|
|
if ($("#txt_EDate").val() != "")
|
|
param.EDate = $("#txt_EDate").val();
|
|
|
|
|
|
param.PostId = $("#select_post").val();
|
|
|
|
var dd = new Date();
|
|
var fname = $("#txt_SDate").val() + "剩余订单号.xls";
|
|
$.ajax({
|
|
url: "DD_OrderService.asmx/ExcelLeftOrderCode",
|
|
data: Sys.Serialization.JavaScriptSerializer.serialize(param),
|
|
async: false,
|
|
success: function (data) {
|
|
if (data.d == "" || data.d == "找不到该渠道的导出模板") {
|
|
alert("找不到该渠道的导出模板");
|
|
return;
|
|
}
|
|
params = { FilePath: data.d, FileName: fname };
|
|
|
|
window.location = "../GlobalAshx/DownFile.ashx?" + jQuery.param(params);
|
|
}
|
|
});
|
|
|
|
}
|
|
function ExportData3() {
|
|
|
|
var param = new Object();
|
|
|
|
param.SDate = null;
|
|
if ($("#txt_SDate").val() != "")
|
|
param.SDate = $("#txt_SDate").val();
|
|
param.EDate = null;
|
|
if ($("#txt_EDate").val() != "")
|
|
param.EDate = $("#txt_EDate").val();
|
|
|
|
|
|
param.PostId = $("#select_post").val();
|
|
|
|
var dd = new Date();
|
|
var fname = $("#txt_SDate").val() + "已扫跟踪码.xls";
|
|
$.ajax({
|
|
url: "DD_OrderService.asmx/ExcelYesTrackCode",
|
|
data: Sys.Serialization.JavaScriptSerializer.serialize(param),
|
|
async: false,
|
|
success: function (data) {
|
|
if (data.d == "" || data.d == "找不到该渠道的导出模板") {
|
|
alert("找不到该渠道的导出模板");
|
|
return;
|
|
}
|
|
params = { FilePath: data.d, FileName: fname };
|
|
|
|
window.location = "../GlobalAshx/DownFile.ashx?" + jQuery.param(params);
|
|
}
|
|
});
|
|
|
|
}
|
|
//#endregion
|
|
//#region
|
|
function ScanSure() {
|
|
if ($("#txt_OrderCode").val() == "") {
|
|
alert("请扫描跟踪码");
|
|
return;
|
|
}
|
|
|
|
var param = new Object();
|
|
|
|
param.TrackCode = $("#txt_OrderCode").val();
|
|
|
|
$.ajax({
|
|
url: "DD_OrderService.asmx/UpdateTrackScanSure",
|
|
data: Sys.Serialization.JavaScriptSerializer.serialize(param),
|
|
dataType: "json",
|
|
success: function (data) {
|
|
if (data.d == -1) {
|
|
$("#a_tx").html("已经扫描过");
|
|
return;
|
|
}
|
|
else
|
|
if (data.d == 0) {
|
|
$("#a_tx").html("找不到该包裹");
|
|
return;
|
|
}
|
|
else {
|
|
$("#a_tx").html("成功");
|
|
var options = $("#select_Track").find("option");
|
|
if (options.length == 0) {return; }
|
|
|
|
var flag = 0;
|
|
$(options).each(function () {
|
|
if ($(this).val() == data.d)
|
|
{
|
|
flag = 1;
|
|
$(this).remove();
|
|
|
|
}
|
|
});
|
|
if (flag == 1) {
|
|
var num = parseInt($("#a_num").html());
|
|
var num1 = parseInt($("#a_ys").html());
|
|
$("#a_num").html(num - 1);
|
|
$("#a_ys").html(num1+1);
|
|
|
|
}
|
|
$("#txt_OrderCode").val("");
|
|
}
|
|
|
|
}
|
|
});
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<style type="text/css">
|
|
.auto-style1 {
|
|
height: 26px;
|
|
}
|
|
</style>
|
|
|
|
|
|
|
|
</head>
|
|
<body class="headbody">
|
|
<div class="title_ico">
|
|
包裹扫描确认</div>
|
|
|
|
<table id="tb1" class="tableAll" style="width:100%;" >
|
|
|
|
<tr>
|
|
|
|
<td class="f1" width="13%">运输方式/渠道:</td>
|
|
<td width="28%"> <select id="select_wl" class="selectClass" style="width:130px" name="D8">
|
|
|
|
</select>
|
|
<select id="select_post" class="selectClass" style="width:130px" name="D2">
|
|
|
|
</select>
|
|
</td>
|
|
<td class="f1" width="10%">发货时间:</td> <td> <input id="txt_SDate" class="editTextbox" onfocus="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm'})" style="width: 150px;" type="text" />-<input id="txt_EDate" class="editTextbox" onfocus="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm'})" style="width: 150px;" type="text" /> <input id="cmdSch" class="btnClass btnClassFind" type="button" value="查询" />
|
|
</td>
|
|
</tr>
|
|
|
|
|
|
|
|
|
|
<tr>
|
|
<td valign="top" colspan="2">
|
|
<font style="font-size:18pt"> 共</font><a id="a_num" style="color:red;font-size:18pt">0</a> <font style="font-size:18pt">条</font><br />
|
|
<div style="text-align: left">
|
|
<div style=" float:left;width: 300px;">
|
|
<select id="select_Track" multiple="multiple" name="D3" style="width: 300px; height: 500px;">
|
|
</select></div>
|
|
<div style=" float:left;width: 150px;">
|
|
<textarea id="txt_temp" class="editTextbox" style="width: 150px; height: 500px; overflow-y:auto" type="text" ></textarea> </div>
|
|
</div>
|
|
</td><td colspan="2" valign="top"> <input id="txt_OrderCode" class="editTextbox" style="width: 250px;height:50px" type="text" /> <input id="cmdSave" class="btnClass btnClassAdd" onclick="ScanSure()" type="button" value="提交" /><br />
|
|
已扫: <a id="a_ys" style="color:red;font-size:17pt">0</a> <a id="a_tx" style="color:red;font-size:17pt"></a>
|
|
</td>
|
|
</tr>
|
|
|
|
|
|
|
|
|
|
<tr>
|
|
<td valign="top" colspan="4" align="center" class="auto-style1">
|
|
<input id="cmdSave3" class="btnClass btnClassExcelTemplate" onclick="ExportData1()" type="button" value="导出剩余跟踪码" /> <input id="cmdSave1" class="btnClass btnClassExcelTemplate" onclick=" ExportData2()" type="button" value="导出剩余订单号" /> <input id="cmdSave4" class="btnClass btnClassExcelTemplate" onclick="ExportData3()" type="button" value="导出已确定扫描跟踪码" /> <input id="cmdSave2" class="btnClass btnClassExcelTemplate" onclick="ExportData()" type="button" value="导出邮局数据" /></td>
|
|
</tr>
|
|
</table>
|
|
|
|
|
|
|
|
</body>
|
|
</html>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|