transferOder.jsp 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114
  1. <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
  2. <%@taglib prefix="p" uri="http://www.test.com/jsp/permission" %>
  3. <!doctype html>
  4. <html>
  5. <head>
  6. <%@ include file="../../common/head.jsp"%>
  7. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
  8. <meta name="viewport" content="width=device-width, initial-scale=1.0" />
  9. <link href="../res/css/plugins/bootstrap-table/bootstrap-table.min.css" rel="stylesheet" />
  10. <script src="../res/js/plugins/bootstrap-table/bootstrap-table.js"></script>
  11. <script src="../res/js/plugins/bootstrap-table/bootstrap-table-mobile.min.js"></script>
  12. <script src="../res/js/plugins/bootstrap-table/locale/bootstrap-table-zh-CN.min.js"></script>
  13. <script>
  14. $(function(){
  15. $('#btnSearch').click(function () {
  16. $('#tab_user').bootstrapTable('refresh');
  17. });
  18. $('#clearHref').click(function () {
  19. $('#myform')[0].reset();
  20. });
  21. $('#btnTransfer').click(function () {
  22. var data = getSelectedRow("tab_user");
  23. if(null == data){
  24. //layer.alert();
  25. layer.alert('请选择转单人员', {icon: 6});
  26. return;
  27. }
  28. parent.document.getElementById("toUsername").value= data.name;
  29. parent.document.getElementById("toUserid").value= data.id;
  30. var index = parent.layer.getFrameIndex(window.name);
  31. parent.layer.close(index);
  32. }
  33. );
  34. });
  35. function queryParams(params){
  36. var page = params.offset / params.limit + 1;
  37. var dataObj = new Object();
  38. //alert($("#search").val());
  39. dataObj.name=$("#name").val();
  40. dataObj.orderNo=$("#orderNo").val();
  41. return { page:page,
  42. pageSize:params.limit,
  43. search:JSON.stringify(dataObj),
  44. sort:params.sort,
  45. order:params.order,
  46. };
  47. }
  48. </script>
  49. </head>
  50. <body class="gray-bg">
  51. <div class="wrapper wrapper-content animated fadeInUp">
  52. <div class="row row-lg">
  53. <div class="col-sm-12">
  54. <div class="ibox-content m-b-sm border-bottom ">
  55. <form class="form-inline" id="myform">
  56. <div class="form-group col-sm-3"></div>
  57. <label>&nbsp;名称:</label><input id="name" name="name" class="form-control" type="text" value="">
  58. &nbsp;&nbsp;
  59. <button type="button" id="btnSearch" class="btn btn-w-m btn-success">搜索</button>
  60. <button type="button" id="clearHref" class="btn btn-w-m btn-primary"> 清除搜索条件</button>
  61. <button type="button" id="btnTransfer" class="btn btn-w-m btn-danger">转单</button>
  62. </form>&nbsp;&nbsp;
  63. </div>
  64. <table id="tab_user"
  65. data-toggle="table"
  66. data-url="mgmUserList.cs"
  67. data-method="get"
  68. data-click-to-select="true"
  69. data-pagination="true"
  70. data-data-type="json"
  71. data-show-refresh="false"
  72. data-show-columns="false"
  73. data-show-toggle="false"
  74. data-search-on-enter-key="true"
  75. data-toolbar="#def_toolbar"
  76. data-side-pagination="server"
  77. data-query-params="queryParams"
  78. data-mobile-responsive="true"
  79. >
  80. <thead>
  81. <tr>
  82. <th data-radio="true" data-click-to-select="true"></th>
  83. <th data-field="id" data-visible="false">id</th>
  84. <th data-field="name">姓名</th>
  85. <th data-field="deptName">部门</th>
  86. <th data-field="phone">电话</th>
  87. <th data-field="post">职务</th>
  88. </tr>
  89. </thead>
  90. </table>
  91. </div>
  92. </div>
  93. </div>
  94. </body>
  95. </html>