borrowListUrlApplianceInfo.jsp 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149
  1. <%@ page language="java" contentType="text/html;charset=GBK"
  2. pageEncoding="GBK"%>
  3. <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
  4. <html>
  5. <head>
  6. <meta http-equiv="Content-Type" content="text/html;charset=GBK">
  7. <title>领用详单</title>
  8. <link href="/shares/js/yw/master1/liger/skins/ynet/css/ligerui-all.css" rel="stylesheet" type="text/css" />
  9. <link href="/shares/css/yw/master1/reset.css" rel="stylesheet"
  10. type="text/css" />
  11. <script src="${pageContext.request.contextPath }/liger/lib/jquery/jquery-1.3.2.min.js" type="text/javascript"></script>
  12. <script type="text/javascript" src="/shares/js/common.js"></script>
  13. <script type="text/javascript" src="/shares/js/constant.js"></script>
  14. <script type="text/javascript" src="/shares/js/yw/master1/page.js"></script>
  15. <script type="text/javascript" src="/shares/js/yw/master1/common.js"></script>
  16. <script src="${pageContext.request.contextPath }/liger/lib/jquery/jquery-1.3.2.min.js" type="text/javascript"></script>
  17. <script src="${pageContext.request.contextPath }/liger/lib/ligerUI/js/core/base.js" type="text/javascript"></script>
  18. <script src="${pageContext.request.contextPath }/liger/lib/ligerUI/js/plugins/ligerDateEditor.js" type="text/javascript"></script>
  19. <script type="text/javascript">
  20. $(function () {
  21. $("#createdatebegin").ligerDateEditor({
  22. labelWidth : 128,
  23. labelAlign : 'right',
  24. showTime : false
  25. });
  26. $("#createdateend").ligerDateEditor({
  27. labelWidth : 128,
  28. labelAlign : 'right'
  29. });
  30. search();
  31. });
  32. function deleteRow(obj)
  33. {
  34. if(confirm("确定要删除?")){
  35. $.ajax({
  36. type: "POST", //使用post方法访问后台
  37. url: "${pageContext.request.contextPath }/MTApplianceAction.do?task=del&appliance_id="+obj, //要访问的后台地址
  38. success: function (data) {
  39. $.ligerDialog.success('删除成功!');
  40. search();
  41. }
  42. });
  43. }
  44. }
  45. function search(){
  46. var s = "";
  47. var createdatebegin = document.getElementById("createdatebegin");//创建开始时间
  48. var createdateend = document.getElementById("createdateend");//创建结束时间
  49. if(createdatebegin.value != "" && typeof(createdatebegin.value) != "undefined" ){
  50. s += "&createdatebegin=" + encodeURI(encodeURI(createdatebegin.value));
  51. }
  52. if(createdateend.value != "" && typeof(createdateend.value) != "undefined" ){
  53. s += "&createdateend=" + encodeURI(encodeURI(createdateend.value));
  54. }
  55. searchByKword(s);
  56. }
  57. function searchByKword(s){
  58. var p = $("#p").val();
  59. var pSize = getPize();
  60. var param={"p":p,"pSize":pSize};
  61. sendAsyncAjax(param, "MTApplianceInfoAction.do?task=borrowInfo&time=" + new Date().getTime()+s, "json", function(data) {
  62. var num = data.Total;
  63. page(num,pSize,p);
  64. var documentReceiveList = data.Rows;
  65. var item_name = $('#contentDiv');
  66. $(item_name).empty();//初始化table,清空table
  67. var html = '';
  68. if(documentReceiveList.length == 0){
  69. html+= '<div class="tr_cont_new mar4 f5_new">';
  70. html+= ' <div class="wdrw_tiao_new bn1 fl"></div>';
  71. html+= ' <div class="tr_rw_d_new fl b11">';
  72. html+= '<p >没有查询到相关信息……</p>';
  73. html+= '</div></div>';
  74. }else{
  75. var j=0;
  76. for (var i = 0; i < documentReceiveList.length; i++)
  77. {
  78. var arr = documentReceiveList[i];
  79. var bdiv=1;
  80. bdiv=1+j;
  81. if(j<7){j++}else{j=0;};
  82. html+= '<div class="tr_cont_new mar4 f5_new">';
  83. html+= ' <div class="wdrw_tiao_new bn'+bdiv+' fl"></div>';
  84. html+= ' <div class="tr_rw_d_new fl">';
  85. html+= '<p><img src="/shares/images/master1/rw_ico_menu.png" width="17" height="15" />【领用物品名称】&nbsp;&nbsp;'+arr.appliance_name+'(领用数量:'+ arr.appliance_info_count ;
  86. html +='&nbsp;&nbsp;领用日期:'+arr.appliance_info_create_date+'</p><p class="mar5">领用部门:'+arr.groupname+'&nbsp;&nbsp;领用人:'+arr.name+'&nbsp;&nbsp;</p>';
  87. html+= '</div>';
  88. html+= ' <div class="tr_rw_btn_new fr">';
  89. html+= ' </div>';
  90. html+= '</div>';
  91. }
  92. }
  93. $(item_name).html(html);
  94. });
  95. }
  96. </script>
  97. </head>
  98. <body>
  99. <form action="ApplianceInfoAction.do" method="post" target="_blank">
  100. <input type="hidden" id="task" name="task" value="printBorrowInfo">
  101. <div class="tc_b">
  102. <div id="left" style="float:left;width:100%;">
  103. <div class="tc_r">
  104. <div class="tr_con_new b5 f4">
  105. <div class="fl f4"><img src="/shares/images/master1/wdrw_ico.png" width="25" height="31" />&nbsp;领用详单</div>
  106. <div class="tr_con_span fr">
  107. <div class="fl s_test">领用日期:</div>
  108. <div class="s_int fl"><input class="s_int" id="createdatebegin" name="createdatebegin" type="text" /></div>
  109. <div style="width:20px;" class="fl s_test1">至</div>
  110. <div class="s_int fl"><input class="s_int" id="createdateend" name="createdateend" type="text" /> </div>
  111. <input class="s_btn fl" title="查询" onclick="search();" type="button" />
  112. <input class="s_btn_p fl" title="打印" value="" type="submit" />
  113. </div>
  114. </div><div class="tr_right_bg">
  115. <div id="contentDiv"></div>
  116. <jsp:include page="/yw/master1/page.jsp">
  117. <jsp:param name="functionName" value="search"/>
  118. </jsp:include> </div>
  119. </div></div><%@ include file="/yw/master1_oa/appliance/leftAppliance.jsp"%>
  120. </div></form>
  121. </body>
  122. </html>