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.

99 lines
3.0 KiB

1 year ago
  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/OMAYSalesDelivery/GetSalesDeliveryInfo" + "?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: 'SDNCode', width: 200, align: 'left' },
  26. { label: '客户代码', name: 'CusCode', hidden: true, },
  27. { label: '客户名称', name: 'CusName', width: 200, align: 'left' },
  28. { label: '经办人', name: 'CreatePerson', hidden: true, },
  29. ],
  30. pager: "#gridPager",
  31. sortorder: "desc",
  32. sortname: 'SDNCode',
  33. rowNum: 10000,
  34. viewrecords: true,
  35. multiselect: true,
  36. gridComplete: function () {
  37. }
  38. })
  39. };
  40. function submitForm() {
  41. var rows = $("#gridList").jqGrid('getGridParam', 'selarrrow');
  42. if (rows.length != 1) {
  43. $.modalAlertNew("WMS00079");
  44. return;
  45. }
  46. var rowdata = $("#gridList").jqGrid("getRowData", rows[0]);
  47. var obj = {
  48. SDNCode: rowdata.SDNCode,
  49. CusCode: rowdata.CusCode,
  50. CusName: rowdata.CusName,
  51. CreatePerson: rowdata.CreatePerson,
  52. }
  53. return obj;
  54. };
  55. function Close() {
  56. $.modalClose();
  57. }
  58. function reloadData() {
  59. }
  60. </script>
  61. <div class="topPanel" style="height:50px">
  62. <div class="search">
  63. <table>
  64. <tr>
  65. <td>
  66. <label>发货单号:</label>
  67. </td>
  68. <td>
  69. <div class="input-group">
  70. <input id="txt_Code" type="text" class="form-control" placeholder="工单号" style="width: 120px;">
  71. </div>
  72. </td>
  73. <td>
  74. <a id="Search" authorize="yes" style="margin-left:3px;" class="btn btn-primary" onclick="Init()"><i class="fa fa-pencil-square-o"></i>查询</a>
  75. </td>
  76. </tr>
  77. <tr></tr>
  78. </table>
  79. </div>
  80. </div>
  81. <div class="gridPanel" id="gridPanel">
  82. <table id="gridList"></table>
  83. <div id="gridPager"></div>
  84. </div>