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.
178 lines
6.0 KiB
Plaintext
178 lines
6.0 KiB
Plaintext
2 months ago
|
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="CK_GoodsApplyAll.aspx.cs" Inherits="TradeManageNew.CangKu.CK_GoodsMoveCheck" %>
|
||
|
|
||
|
<!DOCTYPE html>
|
||
|
<html xmlns="http://www.w3.org/1999/xhtml">
|
||
|
<head>
|
||
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||
|
<meta name="referrer" content="no-referrer"/>
|
||
|
<title>申请SKU</title>
|
||
|
|
||
|
<link rel="stylesheet" type="text/css" href="../css2/icon.css"/>
|
||
|
<link rel="stylesheet" type="text/css" href="../css2/DataGrid.css" />
|
||
|
<link href="../css2/gray/easyui.css" rel="stylesheet" type="text/css" />
|
||
|
<link rel="stylesheet" href="../font-awesome/css/font-awesome.min.css" />
|
||
|
<link href="../css2/New.css?a=1" rel="stylesheet" type="text/css" />
|
||
|
<link rel="stylesheet" type="text/css" href="../themes/uploadify.css" />
|
||
|
<link rel="stylesheet" type="text/css" href="../Scripts/fancybox/jquery.fancybox-1.3.4.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.bgiframe.min.js" type="text/javascript"></script>
|
||
|
<script src="../Scripts/Global2.js?t=1" type="text/javascript"></script>
|
||
|
<script src="../Scripts/WindowLoad.js" type="text/javascript"></script>
|
||
|
<script src="../Scripts/My97DatePicker/WdatePicker.js?t=1"></script>
|
||
|
<link href="../Scripts/fancybox/jquery.fancybox-1.3.4.css" rel="stylesheet" />
|
||
|
<script src="../Scripts/fancybox/jquery.fancybox-1.3.4.js" type="text/javascript"></script>
|
||
|
<script src="../Scripts/MaskedTextBox.js?t=1" type="text/javascript"></script>
|
||
|
<script type="text/javascript">
|
||
|
var name = "<%=Session["Name"]%>";
|
||
|
var datagrid1 = new nblf.ui.DataGrid("DataGrid1");
|
||
|
var UserId = "<%=Session["UserId"]%>";
|
||
|
var WindowLoadModel = new WindowLoad();
|
||
|
var Model = null;
|
||
|
$(document).ready(function () {
|
||
|
WindowLoadModel.ApplicationPath = "../";
|
||
|
WindowLoadModel.Load();
|
||
|
ajaxInit(WindowLoadModel);
|
||
|
newId = 0;
|
||
|
|
||
|
|
||
|
//CreateDataGrid();
|
||
|
ReadData();
|
||
|
|
||
|
|
||
|
|
||
|
//查询
|
||
|
$("#btn_sch").bind("click", function () {
|
||
|
|
||
|
ReadData();
|
||
|
|
||
|
});
|
||
|
//查询
|
||
|
$("#btn_sch11").bind("click", function () {
|
||
|
|
||
|
Test();
|
||
|
|
||
|
});
|
||
|
|
||
|
});
|
||
|
|
||
|
// 查询
|
||
|
//#region 查询
|
||
|
function ReadData() {
|
||
|
WindowLoadModel.Show();
|
||
|
$.ajax({
|
||
|
url: "../CangKuServerNew.asmx/GetAllList_CK_GoodsApply",
|
||
|
success: function (data) {
|
||
|
WindowLoadModel.Hide();
|
||
|
//查询列
|
||
|
var conList = data.d[0].map(item => item.Key);
|
||
|
debugger
|
||
|
CreateDataGrid(conList);
|
||
|
//转换列表
|
||
|
var newList = [];
|
||
|
for (const item of data.d) {
|
||
|
const modelObject = {};
|
||
|
for (const t of item) {
|
||
|
|
||
|
modelObject[t.Key] = t.Value;
|
||
|
}
|
||
|
newList.push(modelObject);
|
||
|
}
|
||
|
debugger
|
||
|
datagrid1.DataBind(newList);
|
||
|
}
|
||
|
});
|
||
|
}
|
||
|
//#endregion
|
||
|
|
||
|
// DataGrid
|
||
|
//#region 初始化DataGrid
|
||
|
function CreateDataGrid(conList) {
|
||
|
datagrid1.Columns = [];
|
||
|
for (const item of conList) {
|
||
|
var col = new nblf.ui.DataGridColumn();
|
||
|
col.HeaderText = item;
|
||
|
//CommandName='cmdLook'
|
||
|
col.CellTemplate = `<span>{Bind ${item}}</span>`;// "<span>{Bind Id}</span>";//Id UserId GoodsId Quantity InDate GoodsCode UserName
|
||
|
col.SortExpression = "";
|
||
|
Array.add(datagrid1.Columns, col);
|
||
|
}
|
||
|
|
||
|
|
||
|
datagrid1.SortExpression = "";
|
||
|
datagrid1.ViewSortDirection = "";
|
||
|
datagrid1.IsFixHeader = false;
|
||
|
// datagrid1.Height = $(document).height() - 330;
|
||
|
datagrid1.ShowIndexColumn = false;
|
||
|
datagrid1.AllowPaging = true;
|
||
|
datagrid1.Width = "100%";
|
||
|
datagrid1.IsFixHeader = false;
|
||
|
|
||
|
// datagrid1.Height = $(document).height() - 300;
|
||
|
datagrid1.SelectMode = nblf.ui.SelectMode.CheckBox;
|
||
|
datagrid1.Init();
|
||
|
datagrid1.Sorting(function () {
|
||
|
ReadData(false);
|
||
|
});
|
||
|
datagrid1.add_PageIndexChanged(function () { ReadData(false); });
|
||
|
|
||
|
}
|
||
|
//#endregion
|
||
|
</script>
|
||
|
|
||
|
<style>
|
||
|
.td_f1 {
|
||
|
font-size: 11pt;
|
||
|
text-align: center;
|
||
|
}
|
||
|
.auto-style1 {
|
||
|
height: 34px;
|
||
|
}
|
||
|
</style>
|
||
|
|
||
|
|
||
|
</head>
|
||
|
|
||
|
<body class="headbody">
|
||
|
|
||
|
<table class="tableAll" style="width: 100%;">
|
||
|
<tr>
|
||
|
|
||
|
<td width="100%" valign="top">
|
||
|
<table id="tb1" class="tableAll" style="width: 100%;">
|
||
|
<tr>
|
||
|
<td class="td_f1" width="10%">产品</td>
|
||
|
<td width="20%">
|
||
|
<input id="select_sku" class="editTextbox" style="width: 220px;" type="text" />
|
||
|
</td>
|
||
|
|
||
|
|
||
|
<td><input id="btn_sch" class="layui-btnblue" type ="button" value="查询" /></td>
|
||
|
</tr>
|
||
|
|
||
|
<tr>
|
||
|
<td valign="top" colspan="7" class="auto-style1">
|
||
|
<div id="DataGrid1" class="DataGridStyle" ></div>
|
||
|
</td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
</td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
</body>
|
||
|
</html>
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|