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.

93 lines
2.7 KiB

  1. 
  2. @{
  3. ViewBag.Title = "SeachInventory";
  4. Layout = "~/Views/Shared/_Index.cshtml";
  5. }
  6. <link href="~/Content/js/select2/select2.min.css" rel="stylesheet" />
  7. <link href="~/Content/js/dialog/dialog.css?v=20120420" rel="stylesheet" />
  8. <script src="~/Content/js/datepicker/WdatePicker.js"></script>
  9. <script src="~/Content/js/select2/select2.min.js"></script>
  10. <script>
  11. debugger;
  12. var _Clos = new Array();
  13. $(function () {
  14. Init();
  15. })
  16. function Init() {
  17. document.getElementById("gridPanel").innerHTML = ' <span><strong>详细信息</strong></span> <table id="gridList"></table> ';//重置grid
  18. var Code = $("#txt_Code").val();
  19. $("#gridList").dataGrid({
  20. url: "/OMAY/OMAYMoOutbound/GetMoInfo" + "?Code=" + Code + "&" + Math.random(),
  21. height: $(window).height() - 20,
  22. width: $(window).width() - 300,
  23. colModel: [
  24. { label: '主键', name: 'ID', hidden: true, key: true },
  25. { label: '工单号', name: 'MOCode', width: 200, align: 'left' },
  26. { label: '部门', name: 'DepName', width: 200, align: 'left' },
  27. ],
  28. pager: "#gridPager",
  29. sortorder: "desc",
  30. sortname: 'MOCode',
  31. rowNum: 10000,
  32. viewrecords: true,
  33. multiselect: true,
  34. gridComplete: function () {
  35. }
  36. })
  37. };
  38. function submitForm() {
  39. var rows = $("#gridList").jqGrid('getGridParam', 'selarrrow');
  40. if (rows.length != 1) {
  41. $.modalAlertNew("WMS00079");
  42. return;
  43. }
  44. var rowdata = $("#gridList").jqGrid("getRowData", rows[0]);
  45. var obj = {
  46. MOCode: rowdata.MOCode,
  47. }
  48. return obj;
  49. };
  50. function Close() {
  51. $.modalClose();
  52. }
  53. function reloadData() {
  54. }
  55. </script>
  56. <div class="topPanel" style="height:50px">
  57. <div class="search">
  58. <table>
  59. <tr>
  60. <td>
  61. <label>工单号:</label>
  62. </td>
  63. <td>
  64. <div class="input-group">
  65. <input id="txt_Code" type="text" class="form-control" placeholder="工单号" style="width: 120px;">
  66. </div>
  67. </td>
  68. <td>
  69. <a id="Search" authorize="yes" style="margin-left:3px;" class="btn btn-primary" onclick="Init()"><i class="fa fa-pencil-square-o"></i>查询</a>
  70. </td>
  71. </tr>
  72. <tr></tr>
  73. </table>
  74. </div>
  75. </div>
  76. <div class="gridPanel" id="gridPanel">
  77. <table id="gridList"></table>
  78. <div id="gridPager"></div>
  79. </div>