assetEmployList.jsp 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124
  1. <%@ page contentType="text/html;charset=GBK"%>
  2. <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
  3. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  4. <HEAD>
  5. <TITLE>资产领用列表</TITLE>
  6. <link href="/shares/js/yw/master1/liger/skins/ynet/css/ligerui-all.css" rel="stylesheet" type="text/css" />
  7. <script src="${pageContext.request.contextPath }/liger/lib/jquery/jquery-1.3.2.min.js" type="text/javascript"></script>
  8. <script src="${pageContext.request.contextPath }/liger/lib/ligerUI/js/core/base.js" type="text/javascript"></script>
  9. <script src="${pageContext.request.contextPath }/liger/lib/ligerUI/js/plugins/ligerGrid.js" type="text/javascript"></script>
  10. <script src="${pageContext.request.contextPath }/liger/lib/ligerUI/js/plugins/ligerDateEditor.js" type="text/javascript"></script>
  11. <script type="text/javascript" src="/shares/js/constant.js"></script>
  12. <script type="text/javascript" src="/shares/js/common.js"></script>
  13. <script src="${pageContext.request.contextPath }/liger/lib/ligerUI/js/plugins/ligerTab.js" type="text/javascript"></script>
  14. <script src="${pageContext.request.contextPath }/liger/lib/ligerUI/js/plugins/ligerDrag.js" type="text/javascript"></script>
  15. <script type="text/javascript" src="/shares/js/yw/asset/viewAssetEmployRecord.js"></script>
  16. <script type="text/javascript" src="/shares/js/yw/master1/page.js"></script>
  17. <script type="text/javascript" src="/shares/js/yw/master1/common.js"></script>
  18. <script type="text/javascript" src="/shares/js/yw/master1/searchBox.js"></script>
  19. <link href="/shares/css/yw/master1/reset.css" rel="stylesheet" type="text/css" />
  20. <script type="text/javascript">
  21. $(function () {
  22. search();
  23. });
  24. function searchByKword(s){
  25. var p = $("#p").val();
  26. var pSize = getPize();
  27. var param={"p":p,"pSize":pSize};
  28. sendAsyncAjax(param, "MTAssetEmployAction.do?task=assetEmployList"+s, "json", function(data) {
  29. var num = data.Total;
  30. page(num,pSize,p);
  31. var list = data.Rows;
  32. var item_name = $('#contentDiv');
  33. $(item_name).empty();//初始化table,清空table
  34. var html = '';
  35. if(list.length == 0){
  36. html = notquery();
  37. }else{
  38. var j=0;
  39. for (var i = 0; i < list.length; i++)
  40. {
  41. var arr = list[i];
  42. var bdiv=1+j;
  43. //bdiv=1+j;
  44. if(j<7){j++;}else{j=0;};
  45. html+= '<div class=\"tr_cont_new mar4 f5_new'+bdiv+'\">';
  46. html+= '<a href=\"MTAssetEmployAction.do?task=viewEmployRecord&employ_id='+arr.universalid+'\">';
  47. html+= '<div class=\"wdrw_tiao_new bn'+bdiv+' fl\"></div>';
  48. html+= '<div class=\"tr_rw_d_new fl\">';
  49. html+= '<p><img src=\"/shares/images/master1/rw_ico_menu.png\" width=\"17\" height=\"15\" />';
  50. html+= '领用人:'+arr.employ_user_name;
  51. html+= '&nbsp;&nbsp;领用部门:' + arr.employ_dept_name + '';
  52. html+= '</p><p class=\"mar5\">领用单号:' + arr.employ_no + '</p>';
  53. html+= '</div>';
  54. html+= '</a>';
  55. html+= '<div class=\"tr_rw_btn_new fr\" style=\"width: 300px;\">';
  56. html+= '</div>';
  57. html+= '</div>';
  58. }
  59. }
  60. $(item_name).html(html);
  61. });
  62. }
  63. function search(){
  64. var s="";
  65. var employ_user_search = encodeURI(encodeURI(searchBox.getValue()));
  66. if(typeof(employ_user_search) != "undefined" ){
  67. s += "&employ_user_search=" + employ_user_search;
  68. }
  69. var employ_dept_search = encodeURI(encodeURI($("#employ_dept_search").val()));
  70. if(typeof(employ_dept_search) != "undefined" ){
  71. s += "&employ_dept_search=" + employ_dept_search;
  72. }
  73. searchByKword(s);
  74. }
  75. </script>
  76. </HEAD>
  77. <BODY>
  78. <div class="tc_b">
  79. <div id="left" style="float:left;width:100%;">
  80. <div class="tc_r">
  81. <div class="tr_con b5 f4" >
  82. <div class="fl f4">
  83. <img src="/shares/images/master1/wdrw_ico.png" width="25" height="31" />&nbsp;资产领用</div>
  84. <div class="fl mar5">
  85. <div class="fl">
  86. 领用部门:
  87. </div>
  88. <div class="fl mar6">
  89. <input type="text" class="fl" id="employ_dept_search" name="employ_dept_search" >
  90. </div>
  91. </div>
  92. <div class="div_ck_k fr">
  93. <input class="div_cx fl" name="employ_user_search" id="employ_user_search" type="text" value="输入领用人"/>
  94. <input class="btn_ck fl" type="button" onclick="search();" id="button" />
  95. </div>
  96. </div>
  97. <div class="tr_right_bg">
  98. <div id="contentDiv"></div>
  99. <jsp:include page="/yw/master1/page.jsp">
  100. <jsp:param name="functionName" value="search"/>
  101. </jsp:include>
  102. </div>
  103. </div>
  104. </div>
  105. <%@ include file="/yw/master1_asset/left/leftManageAsset.jsp"%>
  106. </div>
  107. <%@ include file="/include/message.jsp"%>
  108. </BODY>
  109. </HTML>