9139c88d2544e67344321ec6a1aeb7fa91f992cd.svn-base 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133
  1. <%@page contentType="text/html" pageEncoding="UTF-8"%>
  2. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  3. <html xmlns="http://www.w3.org/1999/xhtml">
  4. <head>
  5. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  6. <title></title>
  7. <%@include file="/page/include1.jsp" %>
  8. <script type="text/javascript" src="<%=path%>/scripts/freamwork/com/sinosoft/common/searchUtil.js"></script>
  9. <link href="<%=path%>/scripts/freamwork/com/sinosoft/common/searchUtil.css" rel="stylesheet" type="text/css"/>
  10. <script type="text/javascript" src="/nwyj/scripts/business/em/response/tranfer/TranferManager1SS.js"></script>
  11. <script type="text/javascript">
  12. var deptId = top.com.sinosoft.lz.system.user.LoginInfo.getDeptids();
  13. var parentId = top.com.sinosoft.lz.system.user.LoginInfo.getParent_ids();
  14. var conditionData = {"list":[
  15. /* {"name":"临时场所类型:","className":"PLACE_TYPES","list":[
  16. {"key":"全部","value":"0000"},{"key":"临时安置点","value":"18"},{"key":"指挥部","value":"19"},{"key":"医疗救护点","value":"20"},{"key":"其他","value":"21"}
  17. ]} */
  18. ]};
  19. function initComplete(){
  20. //获取当前主题风格,用于设置日期控件的皮肤
  21. try {
  22. dateSkin=themeColor;
  23. }
  24. catch(e){}
  25. //自定义点击触发日期控件
  26. document.getElementById('startTime').onfocus=function(){
  27. var endtimeTf=$dp.$('endTime');
  28. WdatePicker({
  29. skin:dateSkin,onpicked:function(){endtimeTf.focus();},maxDate:'#F{$dp.$D(\'endTime\')}'
  30. });
  31. };
  32. document.getElementById('endTime').onfocus=function(){
  33. //这里设置了最大日期为当前日期,如果不需要则把maxDate:'%y-%M-%d'去掉
  34. WdatePicker({skin:dateSkin/* ,maxDate:'%y-%M-%d' */,minDate:'#F{$dp.$D(\'startTime\')}'});
  35. };
  36. }
  37. $(function(){
  38. //根据json生成更多筛选条件ul-li列表
  39. getChildInfo(conditionData);//-----------------------------------------查询里面的单位
  40. //输入框绑定事件
  41. //$(".Textinput").bind("change",inputChange);
  42. });
  43. function getChildInfo(conditionData){//-----------------------------------------查询里面的单位
  44. var url = $.pathname() + '/ws/PlanHuiZong/ContingencyPlanHuiZong/getChidInfo/';
  45. var params = {
  46. id : deptId,
  47. parentID:parentId
  48. };
  49. $.ajax({
  50. url : url,
  51. type : 'post',
  52. data : params,
  53. dataType : 'json',
  54. success : function(data){
  55. conditionData2 = JSON.stringify(data);
  56. conditionData2 = conditionData2.replace(/\\\"/g,"\"");
  57. conditionData2 = conditionData2.replace(/\"{/g,"{");
  58. conditionData2 = conditionData2.replace(/}\"/g,"}");
  59. var test = eval("("+conditionData2+")");
  60. if(conditionData2!='{"list":[{"name":"查询部门","className":"UNITS","list":[]}]}'){
  61. test.dept.list[0].name="填报部门";
  62. test.dept.list[0].className = "DEPT";
  63. test.dept.list[0].equalType = "equal";
  64. //test.dept.list[0].selectType = "selectOnly";
  65. test.dept.list[0].list.splice(0,1,{"key":"本部门","value":deptId});
  66. var parentName = test.parent.list[0].list[0].key;
  67. /* if(parentName!=""){
  68. test.dept.list[0].list.splice(1,0,{"key":parentName,"value":parentId});
  69. } */
  70. conditionData.list.push(test.dept.list[0]);
  71. }
  72. createConditionsDom(conditionData);
  73. },
  74. error : function(e){
  75. $.messager.alert('系统提示信息', '访问服务失败!', 'error');
  76. }
  77. });
  78. }
  79. </script>
  80. </head>
  81. <body>
  82. <div class="box2" panelTitle="" id="searchPanel" statusType="none" style="margin:10px 0">
  83. <fieldset>
  84. <form id="queryForm" method="post">
  85. <table style="width:100%;">
  86. <tr>
  87. <td width="80%">
  88. <input type="text" name="RELIEVED_MAN_361" id="RELIEVED_MAN_361" watermark="请输入交班人"/>&nbsp;&nbsp;&nbsp;&nbsp;
  89. <!-- <button id='searchButt' type="button"><span class="icon_find">查询</span></button> -->
  90. <a id="searchButt"><img src="/nwyj/scripts/qui/libs/icons/toolbar_icons/search_tem.png" alt="" /></a>
  91. </td>
  92. <td width="20%" align="right"><a href="javascript:;"><span id="more" class="more_hide">综合查询&nbsp;&nbsp;</span></a></td>
  93. </tr>
  94. </table>
  95. <div id="moreTable" style="display: none;">
  96. <!-- 可选条件,改div作为容器,需保留 -->
  97. <div class="conditions" id="conditions">
  98. <ul>
  99. <li class="condiTitle">接班人:</li>
  100. <li><input class="Textinput" id="SUCCEED_MAN" name="SUCCEED_MAN" style="width:194px" type="text"/></li></ul>
  101. <ul>
  102. <li class="condiTitle">响应行动情况:</li>
  103. <li><input class="Textinput" id="EW_ACTION_SITUATION" name="EW_ACTION_SITUATION" style="width:194px" type="text"/></li></ul>
  104. <ul>
  105. <li class="condiTitle">交接班时间:</li>
  106. <li><input readonly="readonly" type="text" class="dateIcon beginTime" name="RELIEVED_TIME" id="startTime"/>&nbsp; ~ &nbsp;
  107. <input readonly="readonly" type="text" class="dateIcon endTime" name="RELIEVED_TIME" id="endTime"/></li></ul>
  108. </div>
  109. </div>
  110. <!-- <table id="moreTable">
  111. <tr><td align="right">接班人:</td>
  112. <td><input type="text" name="SUCCEED_MAN_361" id="SUCCEED_MAN_361"/></td></tr>
  113. <tr><td align="right">响应行动情况:</td>
  114. <td><input type="text" name="EW_ACTION_SITUATION_361" id="EW_ACTION_SITUATION_361"/></td></tr>
  115. <tr><td align="right">交接班时间:</td>
  116. <td><input type="text" readonly="readonly" maxlength="26" class="date" name="RELIEVED_TIME_361" id="START_RELIEVED_TIME_361" />到
  117. <input type="text" readonly="readonly" maxlength="26" class="date" name="RELIEVED_TIME_361" id="END_RELIEVED_TIME_361" /></td></tr>
  118. </table> -->
  119. </form>
  120. </fieldset>
  121. </div>
  122. <div class="adding_right5"><div id="dataGrid"></div>
  123. </div>
  124. </body>
  125. </html>