queryByMark.jsp 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. <%@ page language="java" contentType="text/html;charset=GBK" pageEncoding="GBK"%>
  2. <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
  3. <html>
  4. <head>
  5. <meta http-equiv="Content-Type" content="text/html; charset=GBK">
  6. <title>扫描条码</title>
  7. <link href="main.css" rel="stylesheet" type="text/css"></link>
  8. <link href="${pageContext.request.contextPath}/liger/lib/ligerUI/skins/${sessionScope.css}/css/ligerui-all.css" rel="stylesheet" type="text/css" />
  9. <script src="${pageContext.request.contextPath}/liger/lib/jquery/jquery-1.3.2.min.js" type="text/javascript"></script>
  10. <script type="text/javascript" src="/shares/js/constant.js"></script>
  11. <script type="text/javascript" src="/shares/js/common.js"></script>
  12. <script type="text/javascript">
  13. $(document).ready(function() {
  14. $("#product_count").val(1);
  15. $("input[type='text']:second").focus();
  16. });
  17. function replaceNotNumber(item){
  18. var pattern = /[^0-9]/g;
  19. if(pattern.test(item.value))
  20. {
  21. item.value = item.value.replace(pattern,"");
  22. }
  23. }
  24. function enterForSure(){
  25. if(event.keyCode == 13)
  26. {
  27. $('.l-dialog-btn', parent.document).eq(1).click();
  28. }
  29. }
  30. </script>
  31. </head>
  32. <body >
  33. <%@ include file="/include/message.jsp"%>
  34. <form id="theForm" name="theForm">
  35. <div class="container">
  36. <div class="forum-container">
  37. <center>
  38. <table class="l-table-edit line">
  39. <tr>
  40. <th colspan="2">扫描条码</th>
  41. </tr>
  42. <tr>
  43. <td class="l-table-edit-text" width="15%" >数量 :
  44. </td>
  45. <td class="l-table-edit-td" ><input type="text" id="product_count"
  46. name="product_count" value="" onpropertychange="replaceNotNumber(this)" oninput="replaceNotNumber(this)">
  47. </td>
  48. </tr>
  49. <tr>
  50. <td class="l-table-edit-text">存货条码<FONT COLOR="red">*</FONT>:
  51. </td>
  52. <td class="l-table-edit-td">
  53. <input type="text" id="quickmark_msg" name="quickmark_msg" onkeypress="enterForSure()"/>
  54. </td>
  55. </tr>
  56. </table>
  57. <input type="hidden" id="tabid" name="tabid" value="${param.tabid }">
  58. </center>
  59. </div>
  60. </div>
  61. </form>
  62. </body>
  63. </html>