|
|
|
|
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ShopAdFeeDetail.aspx.cs" Inherits="TradeManageNew.TongJi.ShopAdFeeDetail" %>
|
|
|
|
|
|
|
|
|
|
<!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 shopname = '';
|
|
|
|
|
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);
|
|
|
|
|
|
|
|
|
|
ReadUser();
|
|
|
|
|
// 创建URLSearchParams对象,并将URL传递给它
|
|
|
|
|
var searchParams = new URLSearchParams(new URL(window.location.href).search);
|
|
|
|
|
shopname = searchParams.get('shopname');
|
|
|
|
|
$("#txtDate").val(searchParams.get('sdate'));
|
|
|
|
|
$("#etxtDate").val(searchParams.get('sdate'));
|
|
|
|
|
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 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.shopName = shopname;
|
|
|
|
|
param.sDate = $("#txtDate").val();
|
|
|
|
|
param.eDate = $("#etxtDate").val();
|
|
|
|
|
param.UserId = $("#select_name").val();
|
|
|
|
|
param.PageSize = datagrid1.Get_PageSize();
|
|
|
|
|
param.PageIndex = datagrid1.Get_PageIndex();
|
|
|
|
|
|
|
|
|
|
WindowLoadModel.Show();
|
|
|
|
|
$.ajax({
|
|
|
|
|
url: "../SysManageServiceNew.asmx/GetShopAdFeeDetailDatas",
|
|
|
|
|
data: Sys.Serialization.JavaScriptSerializer.serialize(param),
|
|
|
|
|
success: function (data) {
|
|
|
|
|
WindowLoadModel.Hide();
|
|
|
|
|
datagrid1.Set_RowCount(data.d.RowCount);
|
|
|
|
|
datagrid1.DataBind(data.d.DataSource);
|
|
|
|
|
|
|
|
|
|
$("#" + datagrid1.TableID + " [class='tcb']").each(function (i) {
|
|
|
|
|
var tcb = $(this).text();
|
|
|
|
|
if (tcb < 0) {
|
|
|
|
|
$(this).css("color", "red");
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
function ReadUser() {
|
|
|
|
|
$("#select_name").append("<option value='0'>全部</option>");
|
|
|
|
|
$.ajax({
|
|
|
|
|
url: "../SysManageServiceNew.asmx/GetAllListJC_UserInfo",
|
|
|
|
|
success: function (data) {
|
|
|
|
|
$(data.d).each(function () {
|
|
|
|
|
$("#select_user").append("<option value='" + this.UserId + "'>" + this.Name + "</option>");
|
|
|
|
|
$("#select_name").append("<option value='" + this.UserId + "'>" + this.Name + "</option>");
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
</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="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 width="18%">
|
|
|
|
|
<select id="select_name" class="selectClass" style="width: 120px" name="D1"></select>
|
|
|
|
|
</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>
|