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.

58 lines
1.8 KiB

  1. @{
  2. ViewBag.Title = "Index";
  3. Layout = "~/Views/Shared/_Index.cshtml";
  4. }
  5. <link href="~/Content/js/select2/select2.min.css" rel="stylesheet" />
  6. <script src="~/Content/js/select2/select2.min.js"></script>
  7. <script>
  8. var InvCode = decodeURI($.request("InvCode"));
  9. var JYID = decodeURI($.request("JYID"));
  10. var SampleQuantity = $.request("SampleQuantity");
  11. var ResultINp = decodeURI($.request("Result"));
  12. $(function () {
  13. debugger;
  14. gridList();
  15. })
  16. function gridList() {
  17. debugger;
  18. var $gridList = $("#gridList");
  19. $gridList.dataGrid({
  20. url: "/WMS/ICSRCVIQCs/GetInspectionFile?JYID=" + JYID + "&" + Math.random(),
  21. height: $(window).height() - 50,
  22. width: $(window).height() - 200,
  23. cellEdit: true,
  24. colModel: [
  25. { label: "主键", name: "ID", hidden: true, key: true },
  26. {
  27. label: '检验文件', name: 'FileCode', width: 150, align: 'left',
  28. formatter: function (cellvalue, options, rowObject) {
  29. var html = "";
  30. if (cellvalue != "" && cellvalue != null) {
  31. html = " <a href='../../../File/InspectionFile/" + cellvalue + "' download='" + cellvalue + "' style='color:blue;'>" + cellvalue + "</a>";
  32. }
  33. return html;
  34. }
  35. },
  36. ],
  37. viewrecords: true,
  38. rowNum: 200,
  39. });
  40. }
  41. </script>
  42. <form id="form1">
  43. <div class="gridPanel">
  44. <table id="gridList"></table>
  45. @*<div id="gridPager"></div>*@
  46. </div>
  47. </form>