You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
61 lines
1.7 KiB
61 lines
1.7 KiB
@{
|
|
ViewBag.Title = "Index";
|
|
Layout = "~/Views/Shared/_Index.cshtml";
|
|
}
|
|
|
|
|
|
<script>
|
|
$(function () {
|
|
gridList();
|
|
});
|
|
function gridList() {
|
|
var $gridList = $("#gridList");
|
|
$gridList.dataGrid({
|
|
url: "/WMS/HomeWork/GetICSWarehouse?" + Math.random(),
|
|
height: $(window).height() -50,
|
|
width: $(window).width() - 400,
|
|
cellEdit: true,
|
|
cellsubmit: "clientArray",
|
|
colModel: [
|
|
{ label: "主键", name: "ID", hidden: true, key: true },
|
|
{ label: '仓库编码', name: 'WarehouseCode', width: 120, align: 'left' },
|
|
{ label: '仓库名称', name: 'WarehouseName', width: 150, align: 'left' },
|
|
{ label: '站点', name: 'WorkPoint', width: 150, align: 'left' },
|
|
],
|
|
width: "100%",
|
|
multiselect: true,
|
|
autowidth: true,
|
|
rownumbers: true,
|
|
viewrecords: true,
|
|
});
|
|
}
|
|
|
|
function submitForm() {
|
|
debugger;
|
|
var arr = [];
|
|
var objarr = '';
|
|
var objList = $("#gridList").jqGrid('getGridParam', 'selarrrow');
|
|
for (var i = 0; i < objList.length; i++) {
|
|
var rowId = objList[i];
|
|
var rowData = $("#gridList").jqGrid('getRowData', rowId);
|
|
objarr += "" + rowData.WarehouseCode + ",";
|
|
|
|
}
|
|
postData = "&keyvalue=" + objarr
|
|
$.download("/WMS/HomeWork/ICSWarehouseExportAll" + "?" + Math.random(), postData, 'post');
|
|
|
|
}
|
|
|
|
</script>
|
|
|
|
<!--色牢度-->
|
|
<div class="gridPanel" style="width: 100% ">
|
|
<div class="gridPanel">
|
|
<table id="gridList"></table>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|