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.
817 lines
30 KiB
Plaintext
817 lines
30 KiB
Plaintext
2 months ago
|
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="HW_PMCount.aspx.cs" Inherits="TradeManageNew.TongJi.HW_PMCount" %>
|
||
|
|
||
|
<!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/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/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" src="../Scripts/exporting.js"></script>
|
||
|
<script type="text/javascript">
|
||
|
var UserId = "<%=Session["UserId"]%>";
|
||
|
var WindowLoadModel = new WindowLoad();
|
||
|
var datagrid1 = new nblf.ui.DataGrid("DataGrid1");
|
||
|
var datagrid2 = new nblf.ui.DataGrid("DataGrid2");
|
||
|
var ShopId = 0;
|
||
|
var pm1 = 0;
|
||
|
var pm2 = 0;
|
||
|
$(document).ready(function () {
|
||
|
WindowLoadModel.ApplicationPath = "../";
|
||
|
WindowLoadModel.ControlID = "WindowLoad";
|
||
|
WindowLoadModel.Isbgiframe = true;
|
||
|
WindowLoadModel.Load();
|
||
|
ajaxInit(WindowLoadModel);
|
||
|
// GetBasePlat();
|
||
|
// GetShopList();
|
||
|
CreateDataGrid();
|
||
|
CreateDataGrid2();
|
||
|
//ReadData();
|
||
|
// GetDepartMent();
|
||
|
GetShopList();
|
||
|
var dd0 = new Date();
|
||
|
|
||
|
$("#txt_SDate").val(dd0.getFullYear() + "-" + (dd0.getMonth() + 1) + "-" + dd0.getDate());
|
||
|
$("#btn_sch").bind("click", function () {
|
||
|
|
||
|
ReadData();
|
||
|
|
||
|
});
|
||
|
$("#btn_sch2").bind("click", function () {
|
||
|
|
||
|
GetPMList();
|
||
|
|
||
|
});
|
||
|
$("a[did]").live("click", function () {
|
||
|
ShopId = $(this).attr("did");
|
||
|
|
||
|
var edd = $("#txt_SDate").val();
|
||
|
var dd = new Date(edd);
|
||
|
dd.setDate(dd.getDate() - 15);
|
||
|
var dd2 = new Date();
|
||
|
$("#txt_tjsdate").val(dd.getFullYear() + "-" + (dd.getMonth() + 1) +"-"+ dd.getDate());
|
||
|
|
||
|
$("#txt_tjedate").val(edd);
|
||
|
fopen2();
|
||
|
GetChart2();
|
||
|
});
|
||
|
$("a[did1]").live("click", function () {
|
||
|
ShopId = $(this).attr("did1");
|
||
|
pm1 = 1;
|
||
|
pm2 = 3;
|
||
|
var dateTime = new Date($("#txt_SDate").val());
|
||
|
dateTime = dateTime.setDate(dateTime.getDate() - 1);
|
||
|
dateTime = new Date(dateTime);
|
||
|
$("#txt_SDate2").val(dateTime.localeFormat("yyyy-MM-dd"));
|
||
|
$("#sp_1").html("1-3名");
|
||
|
fopen();
|
||
|
GetPMList();
|
||
|
});
|
||
|
$("a[did2]").live("click", function () {
|
||
|
ShopId = $(this).attr("did2");
|
||
|
pm1 = 4;
|
||
|
pm2 = 50;
|
||
|
var dateTime = new Date($("#txt_SDate").val());
|
||
|
dateTime = dateTime.setDate(dateTime.getDate() - 1);
|
||
|
dateTime = new Date(dateTime);
|
||
|
$("#txt_SDate2").val(dateTime.localeFormat("yyyy-MM-dd"));
|
||
|
$("#sp_1").html("4-50名");
|
||
|
fopen();
|
||
|
GetPMList();
|
||
|
});
|
||
|
$("a[did3]").live("click", function () {
|
||
|
ShopId = $(this).attr("did3");
|
||
|
pm1 = 51;
|
||
|
pm2 = 100;
|
||
|
var dateTime = new Date($("#txt_SDate").val());
|
||
|
dateTime = dateTime.setDate(dateTime.getDate() - 1);
|
||
|
dateTime = new Date(dateTime);
|
||
|
$("#txt_SDate2").val(dateTime.localeFormat("yyyy-MM-dd"));
|
||
|
$("#sp_1").html("51-100名");
|
||
|
fopen();
|
||
|
GetPMList();
|
||
|
});
|
||
|
$("a[did4]").live("click", function () {
|
||
|
ShopId = $(this).attr("did4");
|
||
|
pm1 = 101;
|
||
|
pm2 =150;
|
||
|
var dateTime = new Date($("#txt_SDate").val());
|
||
|
dateTime = dateTime.setDate(dateTime.getDate() - 1);
|
||
|
dateTime = new Date(dateTime);
|
||
|
$("#txt_SDate2").val(dateTime.localeFormat("yyyy-MM-dd"));
|
||
|
$("#sp_1").html("101-150名");
|
||
|
fopen();
|
||
|
GetPMList();
|
||
|
});
|
||
|
$("a[did5]").live("click", function () {
|
||
|
ShopId = $(this).attr("did5");
|
||
|
pm1 = 151;
|
||
|
pm2 = 200;
|
||
|
$("#sp_1").html("151-200名");
|
||
|
var dateTime = new Date($("#txt_SDate").val());
|
||
|
dateTime = dateTime.setDate(dateTime.getDate() - 1);
|
||
|
dateTime = new Date(dateTime);
|
||
|
$("#txt_SDate2").val(dateTime.localeFormat("yyyy-MM-dd"));
|
||
|
fopen();
|
||
|
GetPMList();
|
||
|
});
|
||
|
$("a[did6]").live("click", function () {
|
||
|
ShopId = $(this).attr("did6");
|
||
|
pm1 = 201;
|
||
|
pm2 = 0;
|
||
|
$("#sp_1").html("200+名");
|
||
|
var dateTime = new Date($("#txt_SDate").val());
|
||
|
dateTime = dateTime.setDate(dateTime.getDate() - 1);
|
||
|
dateTime = new Date(dateTime);
|
||
|
$("#txt_SDate2").val(dateTime.localeFormat("yyyy-MM-dd"));
|
||
|
fopen();
|
||
|
GetPMList();
|
||
|
});
|
||
|
$("a[did11]").live("click", function () {
|
||
|
ShopId = $(this).attr("did11");
|
||
|
pm1 = 1;
|
||
|
pm2 = 3;
|
||
|
$("#txt_SDate2").val($("#txt_SDate").val());
|
||
|
$("#sp_1").html("1-3名");
|
||
|
fopen();
|
||
|
GetPMList();
|
||
|
});
|
||
|
$("a[did22]").live("click", function () {
|
||
|
ShopId = $(this).attr("did22");
|
||
|
pm1 = 4;
|
||
|
pm2 = 50;
|
||
|
$("#txt_SDate2").val($("#txt_SDate").val());
|
||
|
$("#sp_1").html("4-50名");
|
||
|
fopen();
|
||
|
GetPMList();
|
||
|
});
|
||
|
$("a[did33]").live("click", function () {
|
||
|
ShopId = $(this).attr("did33");
|
||
|
pm1 = 51;
|
||
|
pm2 = 100;
|
||
|
$("#txt_SDate2").val($("#txt_SDate").val());
|
||
|
$("#sp_1").html("51-100名");
|
||
|
fopen();
|
||
|
GetPMList();
|
||
|
});
|
||
|
$("a[did44]").live("click", function () {
|
||
|
ShopId = $(this).attr("did44");
|
||
|
pm1 = 101;
|
||
|
pm2 =150;
|
||
|
$("#txt_SDate2").val($("#txt_SDate").val());
|
||
|
$("#sp_1").html("101-150名");
|
||
|
fopen();
|
||
|
GetPMList();
|
||
|
});
|
||
|
$("a[did55]").live("click", function () {
|
||
|
ShopId = $(this).attr("did55");
|
||
|
pm1 = 151;
|
||
|
pm2 = 200;
|
||
|
$("#sp_1").html("151-200名");
|
||
|
$("#txt_SDate2").val($("#txt_SDate").val());
|
||
|
fopen();
|
||
|
GetPMList();
|
||
|
});
|
||
|
$("a[did66]").live("click", function () {
|
||
|
ShopId = $(this).attr("did66");
|
||
|
pm1 = 201;
|
||
|
pm2 = 0;
|
||
|
$("#sp_1").html("200+名");
|
||
|
$("#txt_SDate2").val($("#txt_SDate").val());
|
||
|
fopen();
|
||
|
GetPMList();
|
||
|
});
|
||
|
});
|
||
|
//#region 显示弹出窗体
|
||
|
function ShowFancybox(id) {
|
||
|
$.fancybox({
|
||
|
'scrolling': 'no',
|
||
|
'autoScale': false,
|
||
|
'transitionIn': 'elastic',
|
||
|
'transitionOut': 'elastic',
|
||
|
'href': '#' + id,
|
||
|
'onClosed': function () {
|
||
|
|
||
|
}
|
||
|
}, 0);
|
||
|
}
|
||
|
//#endregion
|
||
|
|
||
|
function CreateDataGrid() {
|
||
|
|
||
|
var col = new nblf.ui.DataGridColumn();
|
||
|
col.HeaderText = "店铺";
|
||
|
col.CellTemplate = "<a did='{Bind ShopId}' style='color:blue'>{Bind ShopName}</a>";
|
||
|
Array.add(datagrid1.Columns, col);
|
||
|
col = new nblf.ui.DataGridColumn();
|
||
|
col.HeaderText = "1-3排名数 昨|今";
|
||
|
col.CellTemplate = "<a did1='{Bind ShopId}' style='color:blue'>{Bind Num1}</a>|<a did11='{Bind ShopId}' style='color:green'>{Bind Num11}</a>";
|
||
|
Array.add(datagrid1.Columns, col);
|
||
|
|
||
|
col = new nblf.ui.DataGridColumn();
|
||
|
col.HeaderText = "4-50排名数 昨|今";
|
||
|
col.CellTemplate = "<a did2='{Bind ShopId}' style='color:blue'>{Bind Num2}</a>|<a did22='{Bind ShopId}' style='color:green'>{Bind Num22}</a>";
|
||
|
Array.add(datagrid1.Columns, col);
|
||
|
col = new nblf.ui.DataGridColumn();
|
||
|
col.HeaderText = "51-100排名数 昨|今";
|
||
|
col.CellTemplate = "<a did3='{Bind ShopId}' style='color:blue'>{Bind Num3}</a>|<a did33='{Bind ShopId}' style='color:green'>{Bind Num33}</a>";
|
||
|
Array.add(datagrid1.Columns, col);
|
||
|
col = new nblf.ui.DataGridColumn();
|
||
|
col.HeaderText = "101-150排名数 昨|今";
|
||
|
col.CellTemplate = "<a did4='{Bind ShopId}' style='color:blue'>{Bind Num4}</a>|<a did44='{Bind ShopId}' style='color:green'>{Bind Num44}</a>";
|
||
|
Array.add(datagrid1.Columns, col);
|
||
|
col = new nblf.ui.DataGridColumn();
|
||
|
col.HeaderText = "151-200排名数 昨|今";
|
||
|
col.CellTemplate = "<a did5='{Bind ShopId}' style='color:blue'>{Bind Num5}</a>|<a did55='{Bind ShopId}' style='color:green'>{Bind Num55}</a>";
|
||
|
Array.add(datagrid1.Columns, col);
|
||
|
col = new nblf.ui.DataGridColumn();
|
||
|
col.HeaderText = "200+排名数 昨|今";
|
||
|
col.CellTemplate = "<a did6='{Bind ShopId}' style='color:blue'>{Bind Num6}</a>|<a did66='{Bind ShopId}' style='color:green'>{Bind Num66}</a>";
|
||
|
Array.add(datagrid1.Columns, col);
|
||
|
col = new nblf.ui.DataGridColumn();
|
||
|
col.HeaderText = "总编号数";
|
||
|
col.CellTemplate = "<a>{Bind Num7}</a>";
|
||
|
Array.add(datagrid1.Columns, col);
|
||
|
|
||
|
datagrid1.SetPageSize(20);
|
||
|
datagrid1.SetPageIndex(1);
|
||
|
datagrid1.IsFixHeader = false;
|
||
|
datagrid1.ShowIndexColumn = false;
|
||
|
datagrid1.AllowPaging = false;
|
||
|
datagrid1.Width = "100%";
|
||
|
datagrid1.SelectMode = nblf.ui.SelectMode.None;
|
||
|
datagrid1.Init();
|
||
|
|
||
|
|
||
|
}
|
||
|
function CreateDataGrid2() {
|
||
|
// Array.clear(datagrid2.Columns);
|
||
|
var col = new nblf.ui.DataGridColumn();
|
||
|
col.HeaderText = "店铺";
|
||
|
col.CellTemplate = "<a>{Bind ShopName}</a>";
|
||
|
Array.add(datagrid2.Columns, col);
|
||
|
col = new nblf.ui.DataGridColumn();
|
||
|
col.HeaderText = "SKU ";
|
||
|
col.CellTemplate = "<a style='color:blue' target='_blank' href='https://www.amazon.com/gp/product/{Bind asin}' >{Bind GoodsCode}</a>";
|
||
|
Array.add(datagrid2.Columns, col);
|
||
|
col = new nblf.ui.DataGridColumn();
|
||
|
col.HeaderText = "ASIN ";
|
||
|
col.CellTemplate = "<a>{Bind asin}</a>";
|
||
|
Array.add(datagrid2.Columns, col);
|
||
|
col = new nblf.ui.DataGridColumn();
|
||
|
col.HeaderText = "小类排名";
|
||
|
col.CellTemplate = "<a style='color:blue'>{Bind Num2}</a>";
|
||
|
Array.add(datagrid2.Columns, col);
|
||
|
col = new nblf.ui.DataGridColumn();
|
||
|
col.HeaderText = "大类排名";
|
||
|
col.CellTemplate = "<a style='color:blue'>{Bind Num1}</a>";
|
||
|
Array.add(datagrid2.Columns, col);
|
||
|
|
||
|
|
||
|
datagrid2.SetPageSize(20);
|
||
|
datagrid2.SetPageIndex(1);
|
||
|
datagrid2.IsFixHeader = false;
|
||
|
datagrid2.ShowIndexColumn = false;
|
||
|
datagrid2.AllowPaging = false;
|
||
|
datagrid2.Width = "100%";
|
||
|
datagrid2.SelectMode = nblf.ui.SelectMode.None;
|
||
|
datagrid2.Init();
|
||
|
|
||
|
|
||
|
}
|
||
|
|
||
|
function GetPMList() {
|
||
|
|
||
|
|
||
|
if ($("#txt_SDate2").val() == "") {
|
||
|
alert("请输入日期");
|
||
|
return;
|
||
|
}
|
||
|
|
||
|
|
||
|
var param = new Object();
|
||
|
param.ShopId =ShopId;
|
||
|
param.SDate = $("#txt_SDate2").val();
|
||
|
param.GoodsCode = $("#txt_code").val();
|
||
|
param.pm1 = pm1;
|
||
|
param.pm2 =pm2;
|
||
|
$.ajax({
|
||
|
url: "../DD_OrderServiceNew.asmx/GetShopDataPM2",
|
||
|
data: Sys.Serialization.JavaScriptSerializer.serialize(param),
|
||
|
dataType: "json",
|
||
|
async: false,
|
||
|
success: function (data) {
|
||
|
|
||
|
datagrid2.DataBind(data.d);
|
||
|
|
||
|
}
|
||
|
});
|
||
|
//$("#select_ck").append("<option value='0'>不限</option>");
|
||
|
}
|
||
|
function fopen() {
|
||
|
|
||
|
$.fancybox({
|
||
|
'width': '40%',
|
||
|
'height': '40%',
|
||
|
'autoScale': false,
|
||
|
'transitionIn': 'elastic',
|
||
|
'transitionOut': 'elastic',
|
||
|
'href': '#test2',
|
||
|
'onComplete': function () {
|
||
|
|
||
|
}
|
||
|
});
|
||
|
|
||
|
}
|
||
|
function fopen2() {
|
||
|
|
||
|
$.fancybox({
|
||
|
'width': '40%',
|
||
|
'height': '40%',
|
||
|
'autoScale': false,
|
||
|
'transitionIn': 'elastic',
|
||
|
'transitionOut': 'elastic',
|
||
|
'href': '#test4',
|
||
|
'onComplete': function () {
|
||
|
|
||
|
}
|
||
|
});
|
||
|
|
||
|
}
|
||
|
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;
|
||
|
|
||
|
}
|
||
|
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()
|
||
|
});
|
||
|
|
||
|
}
|
||
|
function GetChart2() {
|
||
|
if ($("#txt_tjsdate").val() == "") {
|
||
|
alert("请输入开始日期");
|
||
|
return;
|
||
|
}
|
||
|
if ($("#txt_tjedate").val() == "") {
|
||
|
alert("请输入结束日期");
|
||
|
return;
|
||
|
}
|
||
|
|
||
|
|
||
|
var param = new Object();
|
||
|
|
||
|
param.ShopId =ShopId;
|
||
|
|
||
|
param.SDate = $("#txt_tjsdate").val();
|
||
|
param.EDate = $("#txt_tjedate").val();
|
||
|
|
||
|
WindowLoadModel.Show();
|
||
|
$.ajax({
|
||
|
url: "../DD_OrderServiceNew.asmx/GetOrderCountGoodsPMNum",
|
||
|
data: Sys.Serialization.JavaScriptSerializer.serialize(param),
|
||
|
//async: false,
|
||
|
success: function (data) {
|
||
|
WindowLoadModel.Hide();
|
||
|
if (data.d != null) {
|
||
|
|
||
|
cate2 = data.d.categories;
|
||
|
datas2 = data.d.Data;
|
||
|
SetChart2();
|
||
|
}
|
||
|
|
||
|
|
||
|
|
||
|
}
|
||
|
});
|
||
|
|
||
|
}
|
||
|
function getData2() {
|
||
|
|
||
|
//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("(" + datas2 + ")"); //转换成json对象
|
||
|
|
||
|
return dataJsonobj;
|
||
|
|
||
|
}
|
||
|
var cate2 = new Array();
|
||
|
var datas2 = "";
|
||
|
function SetChart2() {
|
||
|
|
||
|
$('#container2').highcharts({
|
||
|
title: {
|
||
|
text: '排名走势图',
|
||
|
x: -20 //center
|
||
|
},
|
||
|
subtitle: {
|
||
|
text: '排名走势图',
|
||
|
x: -20
|
||
|
},
|
||
|
xAxis: {
|
||
|
categories: cate2
|
||
|
},
|
||
|
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: getData2()
|
||
|
});
|
||
|
|
||
|
}
|
||
|
var cate = new Array();
|
||
|
var datas = "";
|
||
|
|
||
|
|
||
|
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 adasin = "";
|
||
|
function GetChart() {
|
||
|
if (adasin == "")
|
||
|
return;
|
||
|
var param = new Object();
|
||
|
|
||
|
param.sdate = $("#txt_SDate").val();
|
||
|
param.edate = $("#txt_EDate").val();
|
||
|
|
||
|
param.adasin = adasin;
|
||
|
|
||
|
|
||
|
$.ajax({
|
||
|
url: "../DD_OrderServiceNew.asmx/GetADCountReport",
|
||
|
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 GetShopList() {
|
||
|
$("#listShopId").empty();
|
||
|
if (UserId==1||UserId==51)
|
||
|
$("#listShopId").append("<option value='0'>-全部-</option>");
|
||
|
var param = new Object();
|
||
|
|
||
|
param.PlatType = 2;
|
||
|
var url = "../BaseDataNew.asmx/GetShopListForTM";
|
||
|
|
||
|
$.ajax({
|
||
|
url:url,
|
||
|
data: Sys.Serialization.JavaScriptSerializer.serialize(param),
|
||
|
async: false,
|
||
|
success: function (data) {
|
||
|
|
||
|
|
||
|
if (data.d != null) {
|
||
|
$(data.d).each(function (i) {
|
||
|
$("#listShopId").append("<option value='" + this.ShopId + "'>" + this.ShopName + "</option>");
|
||
|
});
|
||
|
|
||
|
}
|
||
|
|
||
|
|
||
|
}
|
||
|
});
|
||
|
}
|
||
|
function ReadData() {
|
||
|
if ($("#txt_SDate").val() == "") {
|
||
|
alert("请输入日期");
|
||
|
return;
|
||
|
}
|
||
|
if ($("#listShopId").val() == "")
|
||
|
return;
|
||
|
|
||
|
var param = new Object();
|
||
|
param.ShopId = $("#listShopId").val();
|
||
|
param.SDate = $("#txt_SDate").val();
|
||
|
|
||
|
|
||
|
|
||
|
WindowLoadModel.Show();
|
||
|
$.ajax({
|
||
|
url: "../DD_OrderServiceNew.asmx/GetShopDataPM",
|
||
|
data: Sys.Serialization.JavaScriptSerializer.serialize(param),
|
||
|
//async: false,
|
||
|
success: function (data) {
|
||
|
WindowLoadModel.Hide();
|
||
|
datagrid1.DataBind(data.d);
|
||
|
$("a[did11]").each(function () {
|
||
|
var sid = $(this).attr("did11");
|
||
|
var pm1 = $("a[did1='" + sid + "']").html();
|
||
|
var pm2 = $(this).html();
|
||
|
if (pm1>pm2) {
|
||
|
$(this).css("color", "red");
|
||
|
}
|
||
|
});
|
||
|
$("a[did22]").each(function () {
|
||
|
var sid = $(this).attr("did22");
|
||
|
var pm1 = $("a[did2='" + sid + "']").html();
|
||
|
var pm2 = $(this).html();
|
||
|
if (pm1 > pm2) {
|
||
|
$(this).css("color", "red");
|
||
|
}
|
||
|
});
|
||
|
$("a[did33]").each(function () {
|
||
|
var sid = $(this).attr("did33");
|
||
|
var pm1 = $("a[did3='" + sid + "']").html();
|
||
|
var pm2 = $(this).html();
|
||
|
if (pm1>pm2) {
|
||
|
$(this).css("color", "red");
|
||
|
}
|
||
|
});
|
||
|
}
|
||
|
});
|
||
|
// GetChart();
|
||
|
}
|
||
|
function HB() {
|
||
|
Rowsp(1);
|
||
|
return;
|
||
|
//var param = new Object();
|
||
|
//param.ReportId = 2;
|
||
|
|
||
|
//WindowLoadModel.Show();
|
||
|
//$.ajax({
|
||
|
// url: "TJ_CountServer.asmx/GetReportCols",
|
||
|
// data: Sys.Serialization.JavaScriptSerializer.serialize(param),
|
||
|
// //async: false,
|
||
|
// success: function (data) {
|
||
|
// WindowLoadModel.Hide();
|
||
|
|
||
|
|
||
|
// }
|
||
|
//});
|
||
|
|
||
|
$("#tb1 td[rowindex=1]").each(function (i) {
|
||
|
if (i == 1)
|
||
|
$(this).find("td[rowindex=1]").attr("rowspan", "2");
|
||
|
else if (i == 2)
|
||
|
$(this).find("td[rowindex=1]").hide();
|
||
|
});
|
||
|
|
||
|
}
|
||
|
function Rowsp(rowindex) {
|
||
|
var content = "";
|
||
|
var rowspan = 1;
|
||
|
var trindx = -1;
|
||
|
$("#tb1 td[rowindex=" + rowindex + "]").each(function (i) {
|
||
|
if (content == $(this).html()) {
|
||
|
rowspan++;
|
||
|
$(this).hide();
|
||
|
}
|
||
|
else {
|
||
|
if (rowspan > 1 && trindx > -1)
|
||
|
$("#tb1 td[rowindex=" + rowindex + "][rowtr=" + trindx + "]").attr("rowspan", rowspan);
|
||
|
trindx = $(this).attr("rowtr");
|
||
|
rowspan = 1;
|
||
|
|
||
|
}
|
||
|
|
||
|
content = $(this).html();
|
||
|
|
||
|
});
|
||
|
if (rowspan > 1 && trindx > -1)
|
||
|
$("#tb1 td[rowindex=" + rowindex + "][rowtr=" + trindx + "]").attr("rowspan", rowspan);
|
||
|
|
||
|
}
|
||
|
|
||
|
|
||
|
function ExportData() {
|
||
|
if ($("#txt_SDate").val() == "") {
|
||
|
alert("请输入日期范围");
|
||
|
return;
|
||
|
}
|
||
|
if ($("#txt_EDate").val() == "") {
|
||
|
alert("请输入日期范围");
|
||
|
return;
|
||
|
}
|
||
|
//if ($("#txt_GoodsCode").val() == "") {
|
||
|
// alert("请输入编号");
|
||
|
// return;
|
||
|
//}
|
||
|
|
||
|
var param = new Object();
|
||
|
|
||
|
param.SDate = $("#txt_SDate").val();
|
||
|
param.EDate = $("#txt_EDate").val();
|
||
|
|
||
|
|
||
|
param.StoreId = 0; // $("#select_ck").val();
|
||
|
param.Type = $("#select_type").val();
|
||
|
|
||
|
|
||
|
var fname = "订单立方.xls";
|
||
|
$.ajax({
|
||
|
url: "../SysManageServiceNew.asmx/GetExcelTable27",
|
||
|
data: Sys.Serialization.JavaScriptSerializer.serialize(param),
|
||
|
async: false,
|
||
|
success: function (data) {
|
||
|
|
||
|
params = { FilePath: data.d, FileName: fname };
|
||
|
|
||
|
window.location = "../GlobalAshx/DownFile.ashx?" + jQuery.param(params);
|
||
|
}
|
||
|
});
|
||
|
|
||
|
}
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
</script>
|
||
|
</head>
|
||
|
<body class="headbody">
|
||
|
<div class="title_ico">
|
||
|
货物排名
|
||
|
</div>
|
||
|
<div style="display: none">
|
||
|
|
||
|
<div id="test2" title="货物图片" style="width: 1000px; height: 700px;">
|
||
|
<table border="1" cellpadding="0" cellspacing="0" style="width: 99%;" align="center"
|
||
|
class="tableAll">
|
||
|
<tr>
|
||
|
<td class="f1" width="10%">
|
||
|
日期:
|
||
|
</td>
|
||
|
<td width="22%">
|
||
|
<input id="txt_SDate2" class="editTextbox" onfocus="WdatePicker()" style="width: 100px;"
|
||
|
type="text" /></td>
|
||
|
<td class="f1" width="10%">
|
||
|
编号:</td>
|
||
|
<td width="25%">
|
||
|
<input id="txt_code" type="text" /><span style="color:red" id="sp_1"></span></td>
|
||
|
|
||
|
<td>
|
||
|
<input id="btn_sch2" class="btnClass btnClassFind" type="button" value="查询" />
|
||
|
|
||
|
</td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td colspan="5">
|
||
|
<div id="DataGrid2" class="DataGridStyle">
|
||
|
</div>
|
||
|
</td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
</div>
|
||
|
<div id="test4" title="回复留言" style="width: 1000px; height: 550px;">
|
||
|
<table width="95%" class="tableAll" border="1" ellspacing="0" cellpadding="2">
|
||
|
<tr>
|
||
|
<td class="f1" width="80px">日期:</td> <td>
|
||
|
<input id="txt_tjsdate" class="editTextbox" onfocus="WdatePicker()" style="width: 100px;" type="text" />-<input id="txt_tjedate" class="editTextbox" onfocus="WdatePicker()" style="width: 100px;" type="text" />
|
||
|
<input id="Button3" type="button" class="btnClass btnClassDel" value="查询" onclick="GetChart2();"/>
|
||
|
|
||
|
</td>
|
||
|
</tr>
|
||
|
|
||
|
|
||
|
<tr>
|
||
|
<td align="left" colspan="2">
|
||
|
<div id="container2" style="height:220px;width:95%"></div>
|
||
|
|
||
|
</td>
|
||
|
|
||
|
</table>
|
||
|
</div>
|
||
|
</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="listShopId" class="selectClass" style="width: 150px" name="D10">
|
||
|
|
||
|
</select></td>
|
||
|
<td class="f1" width="10%">
|
||
|
日期:
|
||
|
</td>
|
||
|
<td width="22%">
|
||
|
<input id="txt_SDate" class="editTextbox" onfocus="WdatePicker()" style="width: 100px;"
|
||
|
type="text" /></td>
|
||
|
<td class="f1" width="10%">
|
||
|
</td>
|
||
|
<td width="25%">
|
||
|
</td>
|
||
|
|
||
|
<td>
|
||
|
<input id="btn_sch" class="btnClass btnClassFind" type="button" value="查询" />
|
||
|
<input id="cmdOut" class="btnClass btnClassExcelTemplate" onclick="ExportData();"
|
||
|
type="button" value="导出报表" style="display: none" />
|
||
|
</td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td valign="top" colspan="7">
|
||
|
<div style="width: 100%">
|
||
|
<table class="DataGridTableStyle" style="width: 100%" id="tb1">
|
||
|
</table>
|
||
|
</div>
|
||
|
</td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td valign="top" colspan="7">
|
||
|
<div id="DataGrid1" class="DataGridStyle">
|
||
|
</div>
|
||
|
</td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td valign="top" colspan="7">
|
||
|
</td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
</body>
|
||
|
</html>
|
||
|
|