0f0ff096609a9b46c9ee1996f9c70c990fa58cff.svn-base 8.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238
  1. <%@page language="java" 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. <!--框架必需start-->
  8. <%@include file="../../../../include1.jsp" %>
  9. <!--引用资源文件,JS CSS-->
  10. <script type="text/javascript" src="<%=path%>/scripts/jquery/plugins/jquery.extension.util.js"></script>
  11. <script type="text/javascript" src="<%=path%>/scripts/freamwork/com/sinosoft/common/common.js"></script>
  12. <script type="text/javascript" src="<%=path%>/scripts/freamwork/com/sinosoft/common/utils/utils.js"></script>
  13. <script type="text/javascript" src="<%=path%>/scripts/freamwork/com/sinosoft/common/frameWork/frameWork.js"></script>
  14. <script type="text/javascript" src="<%=path%>/scripts/freamwork/com/sinosoft/common/utils/Request.js"></script>
  15. <script type="text/javascript" src="<%=path%>/scripts/freamwork/com/sinosoft/common/searchUtil.js"></script>
  16. <link href="<%=path%>/scripts/freamwork/com/sinosoft/common/searchUtil.css" rel="stylesheet" type="text/css"/>
  17. <!--基本选项卡start-->
  18. <!--框架必需end-->
  19. <!-- 按钮权限start -->
  20. <script type="text/javascript" src="/nwyj/scripts/freamwork/com/sinosoft/common/common.js"></script>
  21. <!-- 按钮权限end -->
  22. <!-- echarts图表 -->
  23. <script type="text/javascript" src="/nwyj/page/cockpit/echarts-2.2.7/build/dist/echarts-all.js"></script>
  24. <script type="text/javascript" src="../../../../../scripts/business/am/resource/ledger/generator-car.js"></script>
  25. <script type="text/javascript">
  26. var conditionData={"list":[
  27. {"name":"电压等级","className":"CAR_LEVEL","list":[
  28. {"key":"全部","value":"0000"},{"key":"10KV","value":"138"},{"key":"380V","value":"139"}
  29. ]},
  30. {"name":"储能方式","className":"STORED_ENERGY_TYPE","list":[
  31. {"key":"全部","value":"0000"},{"key":"发电机","value":"1"},{"key":"UPS","value":"2"},{"key":"磁飞轮","value":"3"}
  32. ]},
  33. {"name":"燃料","className":"CAR_GAS","list":[
  34. {"key":"全部","value":"0000"},{"key":"汽油","value":"201"},{"key":"柴油","value":"202"}
  35. ]},
  36. {"name":"是否可调用","className":"IS_USED","list":[
  37. {"key":"全部","value":"0000"},{"key":"可调用","value":"1"},{"key":"不可调用","value":"2"}
  38. ]},
  39. {"name":"调拨状态","className":"USED_STAT","list":[
  40. {"key":"全部","value":"0000"},{"key":"未调拨","value":"1"},{"key":"调拨中","value":"2"},{"key":"已调拨","value":"3"}
  41. ]}
  42. ]};
  43. //登录人的机构id
  44. var userDeptId_inner = top.com.sinosoft.lz.system.user.LoginInfo.getCorp_ids();
  45. var loadCorp = "";
  46. //var setloadtype_in=["deptId", userDeptId_inner,"type","","loadCorp",loadCorp];
  47. var setloadtype_in=["deptId", userDeptId_inner,"type","","loadCorp",loadCorp,"deptLevel",getDeptLevel2(userDeptId_inner)];
  48. var setting;
  49. function getDeptLevel2(dpids){
  50. $.ajax({
  51. url : $.pathname()+ "/ws/planService/PlanService/getDeptLevel",
  52. type : 'post',
  53. timeout : 60000,
  54. data : {id:dpids},
  55. dataType : 'text',
  56. async: false,
  57. success : function(data){
  58. dept_level = data;
  59. }
  60. });
  61. return dept_level;
  62. }
  63. $(function(){
  64. /* 初始化页面布局 */
  65. var layout = $("#layout1").layout({
  66. leftWidth : 250,
  67. space : 10,
  68. onEndResize : function() {
  69. g.resetWidth();
  70. }
  71. });
  72. setting = {
  73. view : {
  74. selectedMulti : false
  75. },
  76. async : {
  77. enable : true,
  78. dataType : 'JSON',
  79. dataName : 'treeNodes',
  80. aysnc : false,
  81. url : getAsyncUrl,
  82. autoParam : [ "id", "name", "orgLevel" ],
  83. otherParam : setloadtype_in
  84. },
  85. callback: {
  86. onClick:zTreeSelect,
  87. onAsyncSuccess:checkAndSetHeight1,
  88. onExpand:checkAndSetHeight1
  89. }
  90. };
  91. $.fn.zTree.init($("#treeDept-gzfw"), setting);
  92. });
  93. var isAdd = false;
  94. function getAsyncUrl(treeId, treeNode) {
  95. return isAdd ? $.pathname() + "/ws/OrganizationsService/OrganizationsService/addOrgInfoById?targetOrg=" + targetOrg
  96. : $.pathname() + "/ws/OrganizationsService/OrganizationsService/loadSysOrgInfo2";
  97. };
  98. var zTree,node,tab;
  99. var zTreeCompId = "";
  100. var zTreeINS_UNITS = "";
  101. var condition="";
  102. //点击树节点
  103. function zTreeSelect(event,treeId,treeNode) {
  104. zTreeCompId = treeNode.id;
  105. zTreeINS_UNITS=treeNode.orgLevel;
  106. var getUser_id = top.com.sinosoft.lz.system.user.LoginInfo.getUser_id()+"";
  107. condition = "IS_DEL='0' AND COMP_ID IN ('"+ zTreeCompId +"')";
  108. g.setOptions({//重置加载列表的参数
  109. params : {
  110. "listId" :'265' ,
  111. "condition" : condition,
  112. direction:'DESC',
  113. sort: 'UPDATEDATE'
  114. }
  115. });
  116. g.rend();
  117. }
  118. //处理高度
  119. function checkAndSetHeight1(){
  120. var dom = $(".l-layout");
  121. var leftH = dom.find(".l-layout-left .l-layout-content").height();
  122. var rightH = getAllDomHeight(dom.find(".l-layout-center .l-layout-content").children());
  123. if(leftH<1350){
  124. left=1350;
  125. }else if(rightH<1350){
  126. rightH=1350;
  127. }
  128. var pageH = leftH>rightH?leftH:rightH;
  129. $(parent.document.body).find("#iframeChild").height(pageH+60);
  130. $(top.document.body).find("#frmright").height($(parent.document.body).height()+60);
  131. }
  132. //去掉y轴滚动条
  133. $(window).load(function(){
  134. $(parent.document.body).find("#tabModernMenu .basicTabModern_con").css("overflow-y","hidden");
  135. });
  136. </script>
  137. </head>
  138. <body>
  139. <div id="layout1">
  140. <!-- 左边的树 -->
  141. <div position="left" id="hztitle" style="margin-right:10px;">
  142. <div class="layout_content">
  143. <ul id="treeDept-gzfw" class="ztree"></ul>
  144. </div>
  145. </div>
  146. <div class="plan_detail" id="plan_detail" position="center">
  147. <div class="box2" id="searchPanel" statusType="none" style="margin: 10px 0">
  148. <fieldset>
  149. <form id="queryForm" method="post">
  150. <table width="100%" >
  151. <tr>
  152. <td width="93%">
  153. <input type="text" name="CAR_NAME_265" id="CAR_NAME_265" width="300px" watermark="请输入发电车名称" onkeydown="if(event.keyCode==13){searchHandler();}"/>&nbsp;&nbsp;
  154. <!-- <button type="button" onclick="searchHandler()"><span class="icon_find">查询</span></button> -->
  155. <a id="searchOne"><img src="/nwyj/scripts/qui/libs/icons/toolbar_icons/search_tem.png" alt="" /></a>
  156. <input style='display:none' />
  157. </td>
  158. <td width="7%" align="right"><a href="javascript:;"><span id="more" class="more_hide">综合查询</span></a></td>
  159. </tr>
  160. </table>
  161. <div id="moreDiv" style="display: none;">
  162. <div class="conditions" id="conditions">
  163. <!-- <ul>
  164. <li class="condiTitle">容量:</li>
  165. <li><input type="text" class="Textinput" name="CAR_CONTENT"/></li>
  166. </ul> -->
  167. <ul>
  168. <li class="condiTitle">存放场所:</li>
  169. <li><input type="text" class="Textinput" name="STORE_PLACE"/></li>
  170. </ul>
  171. <ul>
  172. <li class="condiTitle">负责人:</li>
  173. <li><input type="text" class="Textinput" name="CAR_INPIRE"/></li>
  174. </ul>
  175. <ul>
  176. <li class="condiTitle">负责人手机:</li>
  177. <li><input type="text" class="Textinput" name="MOBILE_PHONE"/></li>
  178. </ul>
  179. </div>
  180. </div>
  181. </form>
  182. </fieldset>
  183. </div>
  184. <div class="padding_right5">
  185. <div id="maingrid"></div>
  186. </div>
  187. </div>
  188. </div>
  189. <form id="fillForm1" name="fillForm1" method="post" action="">
  190. <tr style="display: none;">
  191. <td>
  192. <input type="hidden" id="fd_id216" name="FD_OBJECTID216" required="true"/>
  193. <input type="hidden" name="classid" value="216" required="true"/>
  194. <input type="hidden" id="APPLY_PERSION_216" name="APPLY_PERSION_216" required="true"/>
  195. <input type="hidden" id="COMPNAME_216" name="COMPNAME_216" required="true"/>
  196. <input type="hidden" id="APPROVE_PERSION_216" name="APPROVE_PERSION_216" required="true"/>
  197. <input type="hidden" id="RESOURCE_NAME_216" name="RESOURCE_NAME_216" value="发电车" required="true"/>
  198. <input type="hidden" id="APPLY_COMPID_216" name="APPLY_COMPID_216" required="true"/>
  199. <input type="hidden" id="APPLY_COMPNAME_216" name="APPLY_COMPNAME_216" required="true"/>
  200. <input type="hidden" id="START_TIME_216" name="START_TIME_216" required="true"/>
  201. <input type="hidden" id="END_TIME_216" name="END_TIME_216" required="true"/>
  202. <input type="hidden" id="APPLY_CAUSE_216" name="APPLY_CAUSE_216" required="true"/>
  203. <input type="hidden" id="IS_APPLY_216" name="IS_APPLY_216" value="0" required="true"/>
  204. <input type="hidden" id="APPLY_TYPE_216" name="APPLY_TYPE_216" value="R002105430205" required="true"/>
  205. </td>
  206. </tr>
  207. </form>
  208. </body>
  209. </html>