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.
|
|
@{ ViewBag.Title = "Index"; Layout = "~/Views/Shared/_Index.cshtml"; } <link href="~/Content/js/select2/select2.min.css" rel="stylesheet" /> <script src="~/Content/js/select2/select2.min.js"></script> <script> var InvCode = decodeURI($.request("InvCode")); var JYID = decodeURI($.request("JYID")); var SampleQuantity = $.request("SampleQuantity"); var ResultINp = decodeURI($.request("Result")); $(function () { debugger; gridList(); })
function gridList() { debugger; var $gridList = $("#gridList"); $gridList.dataGrid({ url: "/WMS/ICSRCVIQCs/GetInspectionFile?JYID=" + JYID + "&" + Math.random(), height: $(window).height() - 50, width: $(window).height() - 200, cellEdit: true, colModel: [ { label: "主键", name: "ID", hidden: true, key: true }, { label: '检验文件', name: 'FileCode', width: 150, align: 'left', formatter: function (cellvalue, options, rowObject) { var html = ""; if (cellvalue != "" && cellvalue != null) { html = " <a href='../../../File/InspectionFile/" + cellvalue + "' download='" + cellvalue + "' style='color:blue;'>" + cellvalue + "</a>"; } return html; } }, ], viewrecords: true, rowNum: 200, }); }
</script>
<form id="form1">
<div class="gridPanel"> <table id="gridList"></table> @*<div id="gridPager"></div>*@ </div>
</form>
|