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.
232 lines
9.6 KiB
Plaintext
232 lines
9.6 KiB
Plaintext
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ShopADAnalysisData.aspx.cs" Inherits="TradeManageNew.TongJi.ShopADAnalysisData" %>
|
|
|
|
<!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");
|
|
$(document).ready(function () {
|
|
WindowLoadModel.ApplicationPath = "../";
|
|
WindowLoadModel.ControlID = "WindowLoad";
|
|
WindowLoadModel.Isbgiframe = true;
|
|
WindowLoadModel.Load();
|
|
ajaxInit(WindowLoadModel);
|
|
|
|
GetSelectShopList();
|
|
ReadUser();
|
|
|
|
var day1 = new Date();
|
|
day1.setTime(day1.getTime() - 24 * 60 * 60 * 1000);
|
|
var s1 = day1.getFullYear() + "-" + (day1.getMonth() + 1) + "-" + day1.getDate();
|
|
$("#txtDate").val(s1);
|
|
$("#etxtDate").val(s1);
|
|
|
|
CreateDataGrid();
|
|
ReadData();
|
|
|
|
$("#btn_sch").bind("click", function () {
|
|
ReadData();
|
|
});
|
|
});
|
|
|
|
function CreateDataGrid() {
|
|
var col = new nblf.ui.DataGridColumn();
|
|
|
|
col = new nblf.ui.DataGridColumn();
|
|
col.HeaderText = "店铺";
|
|
col.CellTemplate = "<a>{Bind ShopName}</a>";
|
|
col.Width = "200px";
|
|
Array.add(datagrid1.Columns, col);
|
|
|
|
col = new nblf.ui.DataGridColumn();
|
|
col.HeaderText = "商品编码";
|
|
col.CellTemplate = "<a>{Bind GoodsCode}</a>";
|
|
col.Width = "200px";
|
|
Array.add(datagrid1.Columns, col);
|
|
|
|
col = new nblf.ui.DataGridColumn();
|
|
col.HeaderText = "商品名称";
|
|
col.CellTemplate = "<a>{Bind GoodsName}</a>";
|
|
col.Width = "200px";
|
|
Array.add(datagrid1.Columns, col);
|
|
|
|
col = new nblf.ui.DataGridColumn();
|
|
col.HeaderText = "负责人";
|
|
col.CellTemplate = "<a>{Bind UserName}</a>";
|
|
Array.add(datagrid1.Columns, col);
|
|
|
|
col = new nblf.ui.DataGridColumn();
|
|
col.HeaderText = "广告费($)";
|
|
col.CellTemplate = "<a>{Bind AdFee}</a>";
|
|
Array.add(datagrid1.Columns, col);
|
|
|
|
col = new nblf.ui.DataGridColumn();
|
|
col.HeaderText = "订单数";
|
|
col.CellTemplate = "<a>{Bind OrderNum}</a>";
|
|
Array.add(datagrid1.Columns, col);
|
|
|
|
col = new nblf.ui.DataGridColumn();
|
|
col.HeaderText = "销售额($)";
|
|
col.CellTemplate = "<a>{Bind SaleAmount}</a>";
|
|
Array.add(datagrid1.Columns, col);
|
|
|
|
col = new nblf.ui.DataGridColumn();
|
|
col.HeaderText = "广告订单数";
|
|
col.CellTemplate = "<a>{Bind Ad_OrderNum}</a>";
|
|
Array.add(datagrid1.Columns, col);
|
|
|
|
col = new nblf.ui.DataGridColumn();
|
|
col.HeaderText = "广告销售额($)";
|
|
col.CellTemplate = "<a>{Bind Ad_SaleAmount}</a>";
|
|
Array.add(datagrid1.Columns, col);
|
|
|
|
col = new nblf.ui.DataGridColumn();
|
|
col.HeaderText = "产品利润($)";
|
|
col.CellTemplate = "<a>{Bind CPLR}</a>";
|
|
Array.add(datagrid1.Columns, col);
|
|
|
|
col = new nblf.ui.DataGridColumn();
|
|
col.HeaderText = "投产比(%)";
|
|
col.CellTemplate = "<a class='tcb'>{Bind TCB}</a>";
|
|
Array.add(datagrid1.Columns, col);
|
|
|
|
datagrid1.SetPageSize(50);
|
|
datagrid1.SetPageIndex(1);
|
|
datagrid1.IsFixHeader = false;
|
|
datagrid1.ShowIndexColumn = true;
|
|
datagrid1.AllowPaging = true;
|
|
datagrid1.Width = "100%";
|
|
datagrid1.SelectMode = nblf.ui.SelectMode.None;
|
|
datagrid1.Init();
|
|
datagrid1.add_PageIndexChanged(function () { ReadData(); });
|
|
}
|
|
|
|
function ReadData() {
|
|
if ($("#txtDate").val() == "") {
|
|
alert("请输入开始日期");
|
|
return;
|
|
}
|
|
if ($("#etxtDate").val() == "") {
|
|
alert("请输入结束日期");
|
|
return;
|
|
}
|
|
|
|
var param = new Object();
|
|
param.sDate = $("#txtDate").val();
|
|
param.eDate = $("#etxtDate").val();
|
|
param.shopid = $("#select_shop").val();
|
|
param.userid = $("#select_user").val();
|
|
param.PageSize = datagrid1.Get_PageSize();
|
|
param.PageIndex = datagrid1.Get_PageIndex();
|
|
|
|
WindowLoadModel.Show();
|
|
$.ajax({
|
|
url: "../SysManageServiceNew.asmx/GetShopAdAnalysisDetailDatas",
|
|
data: Sys.Serialization.JavaScriptSerializer.serialize(param),
|
|
success: function (data) {
|
|
WindowLoadModel.Hide();
|
|
datagrid1.Set_RowCount(data.d.RowCount);
|
|
datagrid1.DataBind(data.d.DataSource);
|
|
}
|
|
});
|
|
}
|
|
|
|
function GetSelectShopList() {
|
|
$("#select_shop").empty();
|
|
$("#select_shop").append("<option value='0'>全部</option>");
|
|
var param = new Object();
|
|
|
|
param.DeptId = 0;
|
|
param.PlatType = 2;
|
|
|
|
WindowLoadModel.Show();
|
|
$.ajax({
|
|
url: "../BaseDataNew.asmx/GetShopListForTM",
|
|
data: Sys.Serialization.JavaScriptSerializer.serialize(param),
|
|
async: false,
|
|
success: function (data) {
|
|
WindowLoadModel.Hide();
|
|
|
|
if (data.d != null) {
|
|
$(data.d).each(function (i) {
|
|
$("#select_shop").append("<option value='" + this.ShopId + "'>" + this.ShopName + "</option>");
|
|
});
|
|
|
|
}
|
|
}
|
|
});
|
|
}
|
|
|
|
function ReadUser() {
|
|
$("#select_user").append("<option value='0'>全部</option>");
|
|
$.ajax({
|
|
url: "../HuoWuServiceNew.asmx/GetListUserSelect",
|
|
success: function (data) {
|
|
$(data.d).each(function () {
|
|
$("#select_user").append("<option value='" + this.UserId + "'>" + this.Name + "</option>");
|
|
});
|
|
}
|
|
});
|
|
}
|
|
</script>
|
|
</head>
|
|
<style type="text/css">
|
|
.top-filter {
|
|
|
|
margin-left:100px;
|
|
}
|
|
</style>
|
|
<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="13%">日期:</td>
|
|
<td><input id="txtDate" class="editTextbox" style="width: 120px;" type="text" onfocus="WdatePicker()" autocomplete="off" />--<input id="etxtDate" class="editTextbox" style="width: 120px;" type="text" onfocus="WdatePicker()" autocomplete="off" /></td>
|
|
<td class="f1" width="13%">店铺:</td>
|
|
<td><select id="select_shop"></select></td>
|
|
<td class="f1" width="13%">人员:</td>
|
|
<td><select id="select_user"></select></td>--%>
|
|
|
|
<td><span class="top-filter"> 日期:<input id="txtDate" class="editTextbox" style="width: 120px;" type="text" onfocus="WdatePicker()" autocomplete="off" />--<input id="etxtDate" class="editTextbox" style="width: 120px;" type="text" onfocus="WdatePicker()" autocomplete="off" /></span> <span class="top-filter">店铺:<select id="select_shop"></select></span><span class="top-filter">人员:<select id="select_user"></select></span></td>
|
|
|
|
<td><input id="btn_sch" class="btnClass btnClassFind" type="button" value="查询" /></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>
|