dbdcfa7cf38ad21e7e8fdf02911cf8c8bb555e9a.svn-base 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. <%@ page language="java" contentType="text/html; charset=UTF-8"
  2. pageEncoding="UTF-8"%>
  3. <head>
  4. <script type="text/javascript" src="<%=request.getContextPath() %>/js/jquery-1.11.3.js"></script>
  5. <script type="text/javascript" src="<%=request.getContextPath() %>/js/datepicker/WdatePicker.js"></script>
  6. <script type="text/javascript">
  7. function confirmMethod(){
  8. var checks = document.getElementsByName("orgArray1");
  9. var ids = "";
  10. if(checks&&checks.length>0){
  11. for(var i=0;i<checks.length;i++){
  12. if(checks[i].checked){
  13. if(ids.length>0)ids+="','";
  14. ids+=checks[i].value;
  15. }
  16. }
  17. }
  18. ids = "'"+ids+"'";
  19. return ids;
  20. }
  21. function generate(){
  22. var ids = confirmMethod();
  23. $("#orgArray").val(ids);
  24. document.forms[0].submit();
  25. }
  26. </script>
  27. </head>
  28. <body>
  29. <h2></h2>
  30. <form action="<%=request.getContextPath() %>/sqlbuilder/generate" >
  31. <label>类型:</label>
  32. <select name="type" style="width: 120px;">
  33. <option value="hospital">医院</option>
  34. <option value="datePart">时间</option>
  35. <option value="diagnose">事件</option>
  36. <option value="visitType">就诊类型</option>
  37. </select>
  38. <br/>
  39. <label>医院类型:</label>
  40. <select name="orgType" style="width: 120px;">
  41. <option value="allOrg">所有医院</option>
  42. <option value="manyOrg">多家医院</option>
  43. <option value="oneOrg">一家医院</option>
  44. </select>
  45. <br/>
  46. <label>医院选择:</label>
  47. <input type="hidden" id="orgArray" name="orgArray" value="" />
  48. <input name='orgArray1' type="checkbox" value="488099744" /><label>福州一院</label>
  49. <input name='orgArray1' type="checkbox" value="48809974x" /><label>福州儿院</label>
  50. <input name='orgArray1' type="checkbox" value="488099743"/><label>福州中医院</label>
  51. <input name='orgArray1' type="checkbox" value="488099757"/><label>福州传染病医院</label>
  52. <br/>
  53. 时间 from <input type="text" id="beginDate" name="beginDate" onclick="WdatePicker({dateFmt:'yyyy-MM-dd'})" value="" />
  54. to <input type="text" id="endDate" name="endDate" onclick="WdatePicker({dateFmt:'yyyy-MM-dd'})" value="" />
  55. <br/>
  56. <label>查询内容:</label>
  57. <select name="queryType" style="width: 120px;">
  58. <option value="diagTime">统计就诊次数</option>
  59. <option value="diagCount">统计就诊人数</option>
  60. </select>
  61. <br/>
  62. </form>
  63. <button onclick="generate();">generate</button>
  64. <br/>
  65. <br/>
  66. <textarea rows="15" cols="50">${resultSql }</textarea>
  67. </body>