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.
202 lines
7.5 KiB
Plaintext
202 lines
7.5 KiB
Plaintext
2 months ago
|
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ShopGoodSortCount.aspx.cs" Inherits="TradeManageNew.TongJi.ShopGoodSortCount" %>
|
||
|
|
||
|
<!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.url.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/DatePicker/WdatePicker.js" type="text/javascript"></script>
|
||
|
<script src="../Scripts/WindowLoad.js" type="text/javascript"></script>
|
||
|
<script src="../Scripts/MaskedTextBox.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 type="text/javascript">
|
||
|
|
||
|
var datagrid1 = new nblf.ui.DataGrid("DataGrid1");
|
||
|
var UserId = "<%=Session["UserId"]%>";
|
||
|
var WindowLoadModel = new WindowLoad();
|
||
|
var Id = 0;
|
||
|
$(document).ready(function () {
|
||
|
WindowLoadModel.ApplicationPath = "../";
|
||
|
WindowLoadModel.ControlID = "WindowLoad";
|
||
|
WindowLoadModel.Isbgiframe = true;
|
||
|
WindowLoadModel.Load();
|
||
|
ajaxInit(WindowLoadModel);
|
||
|
|
||
|
CreateDataGrid();
|
||
|
|
||
|
ReadData();
|
||
|
|
||
|
$("#chk_jsyc").bind("change", function () {
|
||
|
ReadData();
|
||
|
})
|
||
|
});
|
||
|
|
||
|
|
||
|
//#endregion
|
||
|
//#region 初始化DataGrid
|
||
|
function CreateDataGrid() {
|
||
|
|
||
|
var col = new nblf.ui.DataGridColumn();
|
||
|
col.HeaderText = "店铺";
|
||
|
col.CellTemplate = "<a>{Bind ShopName}</a>";
|
||
|
Array.add(datagrid1.Columns, col);
|
||
|
|
||
|
col = new nblf.ui.DataGridColumn();
|
||
|
col.HeaderText = "日用品";
|
||
|
col.CellTemplate = "<a>{Bind RYPQty}</a>";
|
||
|
Array.add(datagrid1.Columns, col);
|
||
|
|
||
|
col = new nblf.ui.DataGridColumn();
|
||
|
col.HeaderText = "家电";
|
||
|
col.CellTemplate = "<a>{Bind JDQty}</a>";
|
||
|
Array.add(datagrid1.Columns, col);
|
||
|
|
||
|
col = new nblf.ui.DataGridColumn();
|
||
|
col.HeaderText = "宠物";
|
||
|
col.CellTemplate = "<a>{Bind CWQty}</a>";
|
||
|
Array.add(datagrid1.Columns, col);
|
||
|
|
||
|
col = new nblf.ui.DataGridColumn();
|
||
|
col.HeaderText = "电器";
|
||
|
col.CellTemplate = "<a>{Bind DQQty}</a>";
|
||
|
Array.add(datagrid1.Columns, col);
|
||
|
|
||
|
col = new nblf.ui.DataGridColumn();
|
||
|
col.HeaderText = "桌游类";
|
||
|
col.CellTemplate = "<a>{Bind ZYLQty}</a>";
|
||
|
Array.add(datagrid1.Columns, col);
|
||
|
|
||
|
col = new nblf.ui.DataGridColumn();
|
||
|
col.HeaderText = "儿童玩具";
|
||
|
col.CellTemplate = "<a>{Bind ETWJQty}</a>";
|
||
|
Array.add(datagrid1.Columns, col);
|
||
|
|
||
|
col = new nblf.ui.DataGridColumn();
|
||
|
col.HeaderText = "工具";
|
||
|
col.CellTemplate = "<a>{Bind GJQty}</a>";
|
||
|
Array.add(datagrid1.Columns, col);
|
||
|
|
||
|
col = new nblf.ui.DataGridColumn();
|
||
|
col.HeaderText = "户外庭院";
|
||
|
col.CellTemplate = "<a>{Bind HWTYQty}</a>";
|
||
|
Array.add(datagrid1.Columns, col);
|
||
|
|
||
|
col = new nblf.ui.DataGridColumn();
|
||
|
col.HeaderText = "健康护理";
|
||
|
col.CellTemplate = "<a>{Bind JKHLQty}</a>";
|
||
|
Array.add(datagrid1.Columns, col);
|
||
|
|
||
|
col = new nblf.ui.DataGridColumn();
|
||
|
col.HeaderText = "汽配";
|
||
|
col.CellTemplate = "<a>{Bind QPQty}</a>";
|
||
|
Array.add(datagrid1.Columns, col);
|
||
|
|
||
|
col = new nblf.ui.DataGridColumn();
|
||
|
col.HeaderText = "节日用品";
|
||
|
col.CellTemplate = "<a>{Bind JRYPQty}</a>";
|
||
|
Array.add(datagrid1.Columns, col);
|
||
|
|
||
|
col = new nblf.ui.DataGridColumn();
|
||
|
col.HeaderText = "椅子";
|
||
|
col.CellTemplate = "<a>{Bind YZQty}</a>";
|
||
|
Array.add(datagrid1.Columns, col);
|
||
|
|
||
|
col = new nblf.ui.DataGridColumn();
|
||
|
col.HeaderText = "健身";
|
||
|
col.CellTemplate = "<a>{Bind JSQty}</a>";
|
||
|
Array.add(datagrid1.Columns, col);
|
||
|
|
||
|
col = new nblf.ui.DataGridColumn();
|
||
|
col.HeaderText = "灯具";
|
||
|
col.CellTemplate = "<a>{Bind DJQty}</a>";
|
||
|
Array.add(datagrid1.Columns, col);
|
||
|
|
||
|
col = new nblf.ui.DataGridColumn();
|
||
|
col.HeaderText = "家具";
|
||
|
col.CellTemplate = "<a>{Bind JJQty}</a>";
|
||
|
Array.add(datagrid1.Columns, col);
|
||
|
|
||
|
//col = new nblf.ui.DataGridColumn();
|
||
|
//col.HeaderText = "操作";
|
||
|
//col.Width = "180px";
|
||
|
//col.CellTemplate = "<input CommandName='cmdEdit' class='btnClass dgbtnEdit' type='button' value='编辑'></input> <input onclick='DelCol(this)' class='btnClass dgbtnDel' type='button' value='删除'></input>";
|
||
|
//Array.add(datagrid1.Columns, col);
|
||
|
datagrid1.SetPageSize(30);
|
||
|
datagrid1.SetPageIndex(1);
|
||
|
datagrid1.IsFixHeader = false;
|
||
|
datagrid1.ShowIndexColumn = false;
|
||
|
datagrid1.AllowPaging = true;
|
||
|
datagrid1.Width = "100%";
|
||
|
datagrid1.SelectMode = nblf.ui.SelectMode.None;
|
||
|
datagrid1.Init();
|
||
|
datagrid1.add_PageIndexChanged(function () { ReadData(); });
|
||
|
|
||
|
}
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
//#endregion
|
||
|
//#region 读取数据
|
||
|
function ReadData() {
|
||
|
var param = new Object();
|
||
|
param.isJSYC = 0; //计算隐藏
|
||
|
if ($("#chk_jsyc").is(":checked") == true)
|
||
|
param.isJSYC = 1;
|
||
|
WindowLoadModel.Show();
|
||
|
$.ajax({
|
||
|
url: "../SysManageServiceNew.asmx/GetShopGoodsSortLinkCountList",
|
||
|
data: Sys.Serialization.JavaScriptSerializer.serialize(param),
|
||
|
success: function (data) {
|
||
|
WindowLoadModel.Hide();
|
||
|
datagrid1.Set_RowCount(data.d.RowCount);
|
||
|
datagrid1.DataBind(data.d.DataSource);
|
||
|
|
||
|
}
|
||
|
});
|
||
|
}
|
||
|
|
||
|
</script>
|
||
|
|
||
|
|
||
|
</head>
|
||
|
<body class="headbody">
|
||
|
<div class="title_ico">
|
||
|
店铺类目商品数量数据
|
||
|
</div>
|
||
|
|
||
|
<table id="tb1" class="tableAll" style="width: 100%;">
|
||
|
|
||
|
<tr>
|
||
|
<td>
|
||
|
<input id="chk_jsyc" type="checkbox" /><label for="chk_jsyc">计算隐藏</label>
|
||
|
</td>
|
||
|
</tr>
|
||
|
|
||
|
<tr>
|
||
|
<td valign="top" colspan="5">
|
||
|
<div id="DataGrid1" class="DataGridStyle"></div>
|
||
|
|
||
|
</td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
</body>
|
||
|
</html>
|