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.
212 lines
7.3 KiB
Plaintext
212 lines
7.3 KiB
Plaintext
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="DD_GoodsNumCount.aspx.cs" Inherits="TradeManage.TongJi.DD_GoodsNumCount" %>
|
|
|
|
<!DOCTYPE html>
|
|
<html xmlns="http://www.w3.org/1999/xhtml">
|
|
<head id="Head1">
|
|
<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/jquery.min.js" type="text/javascript"></script>
|
|
<script src="../Scripts/MicrosoftAjax.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/FixTable.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/jquery.url.js" type="text/javascript"></script>
|
|
<script src="../Scripts/Global.js" type="text/javascript"></script>
|
|
<script src="../Scripts/WindowLoad.js" type="text/javascript"></script>
|
|
<script src="../Scripts/DatePicker/WdatePicker.js" type="text/javascript"></script>
|
|
<link rel="stylesheet" type="text/css" href="../Scripts/fancybox/jquery.fancybox-1.3.4.css" media="screen" />
|
|
<script src="../Scripts/MaskedTextBox.js" type="text/javascript"></script>
|
|
<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 type="text/javascript" src="../Scripts/highcharts.js"></script>
|
|
|
|
<script type="text/javascript">
|
|
|
|
var WindowLoadModel = new WindowLoad();
|
|
$(document).ready(function () {
|
|
WindowLoadModel.ApplicationPath = "../";
|
|
WindowLoadModel.ControlID = "WindowLoad";
|
|
WindowLoadModel.Isbgiframe = true;
|
|
WindowLoadModel.Load();
|
|
ajaxInit(WindowLoadModel);
|
|
|
|
var GoodsCode = $.url.param("GoodsCode");
|
|
if (GoodsCode == undefined) {
|
|
GoodsCode = "";
|
|
}
|
|
$("#txt_GoodsCode").val(GoodsCode);
|
|
|
|
$("#btn_sch").bind("click", function () {
|
|
|
|
GetChart();
|
|
|
|
});
|
|
|
|
var dd = new Date();
|
|
$("#txt_SDate").val(dd.getFullYear() + "-" + (dd.getMonth() + 1) + "-01");
|
|
$("#txt_EDate").val(dd.getFullYear() + "-" + (dd.getMonth() + 1) + "-" + dd.getDate());
|
|
if ($("#txt_SDate").val() != "" && $("#txt_EDate").val() != "" && $("#txt_GoodsCode").val() != "")
|
|
GetChart();
|
|
|
|
});
|
|
function GetChart() {
|
|
if ($("#txt_SDate").val() == "") {
|
|
alert("请输入开始日期");
|
|
return;
|
|
}
|
|
if ($("#txt_EDate").val() == "") {
|
|
alert("请输入结束日期");
|
|
return;
|
|
}
|
|
if ($("#txt_GoodsCode").val() == "") {
|
|
alert("请输入货物编号");
|
|
return;
|
|
}
|
|
|
|
var param = new Object();
|
|
|
|
param.Type = $("#select_type").val();
|
|
param.GoodsCode = $("#txt_GoodsCode").val();
|
|
|
|
param.SDate = $("#txt_SDate").val();
|
|
param.EDate = $("#txt_EDate").val();
|
|
|
|
WindowLoadModel.Show();
|
|
$.ajax({
|
|
url: "../SysManageServiceNew.asmx/GetOrderCountGoods",
|
|
data: Sys.Serialization.JavaScriptSerializer.serialize(param),
|
|
//async: false,
|
|
success: function (data) {
|
|
WindowLoadModel.Hide();
|
|
if (data.d != null) {
|
|
|
|
cate = data.d.categories;
|
|
datas = data.d.Data;
|
|
SetChart();
|
|
}
|
|
|
|
|
|
|
|
}
|
|
});
|
|
|
|
}
|
|
|
|
|
|
function getData() {
|
|
|
|
//var data = "[{name: '速卖通',data: [7.0, 6.9, 9.5, 14.5, 18.2, 21.5, 25.2, 26.5, 23.3, 18.3, 13.9, 9.6]}, {name: '亚马逊',data: [5, 5.5, 5.7, 11.3, 17.0, 22.0, 24.8, 24.1, 20.1, 14.1, 8.6, 2.5]}, {name: 'EBay',data: [3, 3, 3.5, 8.4, 13.5, 17.0, 18.6, 17.9, 14.3, 9.0, 3.9, 1.0]}, {name: 'Wish',data: [3.9, 4.2, 5.7, 8.5, 11.9, 15.2, 17.0, 16.6, 14.2, 10.3, 6.6, 4.8]}]";
|
|
var dataJsonobj = eval("(" + datas + ")"); //转换成json对象
|
|
|
|
return dataJsonobj;
|
|
|
|
}
|
|
var cate = new Array();
|
|
var datas = "";
|
|
function SetChart() {
|
|
|
|
$('#container').highcharts({
|
|
title: {
|
|
text: '货物销量走势图',
|
|
x: -20 //center
|
|
},
|
|
subtitle: {
|
|
text: '销量走势',
|
|
x: -20
|
|
},
|
|
xAxis: {
|
|
categories: cate
|
|
},
|
|
yAxis: {
|
|
|
|
|
|
minPadding: 0,
|
|
startOnTick: false,
|
|
title: {
|
|
text: '销量'
|
|
},
|
|
plotLines: [{
|
|
value: 0,
|
|
width: 1,
|
|
color: '#808080'
|
|
}]
|
|
},
|
|
tooltip: {
|
|
valueSuffix: '(个)'
|
|
},
|
|
legend: {
|
|
layout: 'vertical',
|
|
align: 'right',
|
|
verticalAlign: 'middle',
|
|
borderWidth: 0
|
|
},
|
|
series: getData()
|
|
});
|
|
|
|
}
|
|
|
|
|
|
</script>
|
|
|
|
</head>
|
|
<body class="headbody">
|
|
|
|
<div class="title_ico">
|
|
货物销量列表
|
|
</div>
|
|
|
|
<table border="1" cellpadding="0" cellspacing="0" style="width: 99%;" align="center" class="tableAll">
|
|
|
|
|
|
<tr>
|
|
<td class="f1" width="10%" >类型</td>
|
|
<td width="22%">
|
|
<select id="select_type" class="selectClass" style="width: 150px" name="D3">
|
|
<option value="1">按天统计</option>
|
|
<option value="2">按每10天统计</option>
|
|
<option value="3">按月统计</option>
|
|
</select></td>
|
|
<td class="f1" width="10%" >日期:</td>
|
|
<td width="25%">
|
|
<input id="txt_SDate" class="editTextbox" onfocus="WdatePicker()" style="width: 100px;" type="text" />-<input id="txt_EDate" class="editTextbox" onfocus="WdatePicker()" style="width: 100px;" type="text" /></td>
|
|
<td class="f1" width="10%" >编号</td>
|
|
<td width="12%"> <input id="txt_GoodsCode" class="editTextbox" style="width: 100px;" type="text" />
|
|
</td>
|
|
|
|
<td>
|
|
<input id="btn_sch" class="btnClass btnClassFind" type="button" value="查询" />
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
|
|
|
|
<tr>
|
|
<td valign="top" colspan="7">
|
|
<div id="container" style="height:310px;width:95%"></div>
|
|
|
|
</td>
|
|
</tr>
|
|
|
|
|
|
</table>
|
|
|
|
</body>
|
|
</html>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|