098ca17615c4f38e09e0743aad8bb70c62994132.svn-base 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400
  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. <!--框架必需end-->
  10. <!--引用资源文件,JS CSS-->
  11. <script type="text/javascript" src="<%=path%>/scripts/jquery/plugins/jquery.extension.util.js"></script>
  12. <script type="text/javascript" src="<%=path%>/scripts/freamwork/com/sinosoft/common/common.js"></script>
  13. <script type="text/javascript" src="<%=path%>/scripts/freamwork/com/sinosoft/common/utils/utils.js"></script>
  14. <script type="text/javascript" src="<%=path%>/scripts/freamwork/com/sinosoft/common/frameWork/frameWork.js"></script>
  15. <script type="text/javascript" src="<%=path%>/scripts/freamwork/com/sinosoft/common/utils/Request.js"></script>
  16. <script type="text/javascript" src="<%=path%>/scripts/freamwork/com/sinosoft/common/searchUtil.js"></script>
  17. <link href="<%=path%>/scripts/freamwork/com/sinosoft/common/searchUtil.css" rel="stylesheet" type="text/css"/>
  18. <!-- 按钮权限start -->
  19. <script type="text/javascript" src="/nwyj/scripts/freamwork/com/sinosoft/common/common.js"></script>
  20. <!-- 按钮权限end -->
  21. <script type="text/javascript" src="<%=path%>/scripts/business/am/fileManager/standard/standard.js"></script>
  22. <style type="text/css">
  23. a {
  24. behavior: url(/qui/libs/js/method/focus.htc)
  25. }
  26. body{
  27. margin-top: 10px;
  28. }
  29. .leftnav{
  30. cursor: pointer;
  31. height:35px;
  32. line-height:35px;
  33. border-bottom: 1px #e3e2e2 solid;
  34. color:#404040;
  35. padding-left: 40px;
  36. overflow: hidden;
  37. text-overflow: ellipsis;
  38. white-space: nowrap;
  39. }
  40. .leftnav:HOVER{
  41. background: #e5ebec;
  42. }
  43. .leftnav.current{
  44. background-color:#e5ebec;
  45. }
  46. .accordition{
  47. border-right: none;
  48. }
  49. .title_msg {
  50. width: 100%;
  51. height:40px;
  52. line-height:40px;
  53. font-family: "微软雅黑";
  54. text-align:center;
  55. font-size:24px;
  56. font-weight: bold;
  57. color:#3e62a0;
  58. border-bottom: 1px solid #cdcaca;
  59. }
  60. .selDiv{
  61. margin: 15px 0 ;
  62. }
  63. ._buttons{
  64. height:40px;
  65. width: 100%;
  66. }
  67. ._buttons input{
  68. float: right;
  69. margin-right: 20px;
  70. }
  71. .groupValue{
  72. font-size: 14px;
  73. border-bottom: 1px solid #cdcaca;
  74. cursor: pointer;
  75. font-weight: bold;
  76. color:#3e62a0;
  77. }
  78. .l-grid-row-cell-inner{
  79. font-size: 12px;
  80. }
  81. </style>
  82. <%-- <script type="text/javascript">
  83. var conditionData={"list":[
  84. {"name":"分类","className":"CLASSES","list":[
  85. {"key":"全部","value":"0000"},{"key":"国际标准","value":"1"},{"key":"国家标准","value":"2"},{"key":"行业标准","value":"3"},{"key":"企业标准","value":"4"}
  86. ]},
  87. {"name":"状态","className":"STATE","list":[
  88. {"key":"全部","value":"0000"},{"key":"有效","value":"1"},{"key":"修正","value":"2"},{"key":"修订","value":"3"},{"key":"废止","value":"4"},{"key":"撤销","value":"5"}
  89. ]},
  90. {"name":"发布情况","className":"COLUMN_3","list":[
  91. {"key":"全部","value":"0000"},{"key":"已发布","value":"1"},{"key":"未发布","value":"0"}
  92. ]}
  93. ]};
  94. var dateSkin="blue";
  95. var imgclass = "<%=request.getParameter("imgclass")%>";
  96. var jsonaa = [{"src":"/nwyj/page/business/am/fileManager/standard/standard.jsp","text":"技术标准"},
  97. {"src":"/nwyj/page/business/am/fileManager/standard/standard_share.jsp","text":"共享"}]
  98. $(function(){
  99. //tabPosition(jsonaa,imgclass);
  100. //获取当前主题风格,用于设置日期控件的皮肤
  101. try {
  102. dateSkin=themeColor;
  103. }
  104. catch(e){}
  105. //自定义点击触发日期控件
  106. document.getElementById('beginTime').onfocus=function(){
  107. var endtimeTf=$dp.$('endTime');
  108. WdatePicker({
  109. skin:dateSkin,onpicked:function(){endtimeTf.focus();},maxDate:'#F{$dp.$D(\'endTime\')}'
  110. });
  111. };
  112. document.getElementById('endTime').onfocus=function(){
  113. //这里设置了最大日期为当前日期,如果不需要则把maxDate:'%y-%M-%d'去掉
  114. WdatePicker({skin:dateSkin,minDate:'#F{$dp.$D(\'beginTime\')}'});
  115. };
  116. document.getElementById('startDate').onfocus=function(){
  117. var endtimeTf=$dp.$('endDate');
  118. WdatePicker({
  119. skin:dateSkin,onpicked:function(){endtimeTf.focus();},maxDate:'#F{$dp.$D(\'endDate\')}'
  120. });
  121. };
  122. document.getElementById('endDate').onfocus=function(){
  123. //这里设置了最大日期为当前日期,如果不需要则把maxDate:'%y-%M-%d'去掉
  124. WdatePicker({skin:dateSkin,minDate:'#F{$dp.$D(\'startDate\')}'});
  125. };
  126. })
  127. </script> --%>
  128. </head>
  129. <body >
  130. <!-- <div class="box2" panelTitle="" id="searchPanel" statusType="none" style="margin:10px 0">
  131. <fieldset>
  132. <form id="queryForm" method="post">
  133. <table id="table" style="width:100%;">
  134. <tr>
  135. <td width="80%">
  136. <input maxlength="20" type="text" name="STANDARD_NAME" id="STANDARD_NAME" watermark="技术标准" width="300px" onkeydown="if(event.keyCode==13){searchHandler();}"/>&nbsp;&nbsp;
  137. <a id="searchButt"><img src="/nwyj/scripts/qui/libs/icons/toolbar_icons/search_tem.png" alt="" /></a>&nbsp;&nbsp;<input style='display:none' />
  138. </td>
  139. <td width="20%" align="right"><a href="javascript:;"><span class="more_hide" id="more">综合查询&nbsp;</span></a></td>
  140. </tr>
  141. </table>
  142. <div id="moreDiv" style="display: none;">
  143. 可选条件,改div作为容器,需保留
  144. <div class="conditions" id="conditions">
  145. <ul>
  146. <li class="condiTitle">发文单位:</li>
  147. <li><input type="text" class="Textinput" name="DISPATCH_UNIT" maxlength="20"/></li>
  148. </ul>
  149. <ul>
  150. <li class="condiTitle">标准代号:</li>
  151. <li><input type="text" class="Textinput" name="STANDARD_CODE" maxlength="20"/></li>
  152. </ul>
  153. <ul>
  154. <li class="condiTitle">印发日期:</li>
  155. <li><input readonly="readonly" type="text" class="dateIcon beginTime" name="PRINT_DATE" id="beginTime" />&nbsp; ~ &nbsp;
  156. <input readonly="readonly" type="text" class="dateIcon endTime" name="PRINT_DATE" id="endTime"/>
  157. </li>
  158. </ul>
  159. <ul>
  160. <li class="condiTitle">实施日期:</li>
  161. <li><input readonly="readonly" type="text" class="dateIcon beginTime" name="IMPLEMENT_DATE" id="startDate" />&nbsp; ~ &nbsp;
  162. <input readonly="readonly" type="text" class="dateIcon endTime" name="IMPLEMENT_DATE" id="endDate"/>
  163. </li>
  164. </ul>
  165. </div>
  166. </div>
  167. </form>
  168. </fieldset>
  169. </div> -->
  170. <div id="layout1">
  171. <!-- 左边的树 -->
  172. <div position="left" id="hztitle" style="margin-right:10px;">
  173. <div class="layout_content">
  174. <ul id="treeDept-gzfw" class="ztree"></ul>
  175. </div>
  176. </div>
  177. <div class="plan_detail" id="plan_detail" position="center">
  178. <!-- <div class="title_msg" id="title"></div> -->
  179. <div class="box2" style="margin: 10px 0">
  180. <fieldset>
  181. <table width="100%" >
  182. <tr>
  183. <td width="93%">
  184. <input type="text" name="STANDARD_NAME" id="STANDARD_NAME" width="300px" watermark="请输入技术标准名称" onkeydown="if(event.keyCode==13){searchHandler2();}" maxlength="38"/>&nbsp;&nbsp;
  185. <!-- <button type="button" onclick="searchHandler()"><span class="icon_find">查询</span></button> -->
  186. <a id="searchOne"><img src="/nwyj/scripts/qui/libs/icons/toolbar_icons/search_tem.png" alt="" /></a>
  187. <input style='display:none' />
  188. </td>
  189. <td width="7%" align="right"><a href="javascript:;"><span id="more" class="more_hide">综合查询</span></a></td>
  190. </tr>
  191. </table>
  192. <div id="moreDiv" style="display: none;">
  193. <div class="selDiv">
  194. <table style="font-size: 14px">
  195. <tr>
  196. <td>发文单位:</td>
  197. <td><input type="text" id="DISPATCH_UNIT" ></td>
  198. </tr>
  199. <tr>
  200. <td>标准代号:</td>
  201. <td><input type="text" id="STANDARD_CODE" ></td>
  202. </tr>
  203. <tr>
  204. <td>印发日期:</td>
  205. <td><input type="text" class="date" id="TAKE_DATE1" style="width: 150px">&nbsp;&nbsp;&nbsp;&nbsp;~~&nbsp;&nbsp;&nbsp;&nbsp;<input type="text" class="date" id="TAKE_DATE2" style="width: 150px"></td>
  206. </tr>
  207. <tr>
  208. <td>实施日期:</td>
  209. <td><input type="text" class="date" id="ISSUE_DATE1" style="width: 150px">&nbsp;&nbsp;&nbsp;&nbsp;~~&nbsp;&nbsp;&nbsp;&nbsp;<input type="text" class="date" id="ISSUE_DATE2" style="width: 150px"></td>
  210. </tr>
  211. <tr>
  212. <td>分类:</td>
  213. <td>
  214. <input type="checkbox" id="CLASSES_0" name="CLASSES" value="0000" /><label for="CLASSES_0" class="hand">全部</label>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
  215. <input type="checkbox" id="CLASSES_1" name="CLASSES" value="1" /><label for="CLASSES_1" class="hand">国际标准</label>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
  216. <input type="checkbox" id="CLASSES_2" name="CLASSES" value="2" /><label for="CLASSES_2" class="hand">国家标准</label>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
  217. <input type="checkbox" id="CLASSES_3" name="CLASSES" value="3" /><label for="CLASSES_3" class="hand">行业标准</label>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
  218. <input type="checkbox" id="CLASSES_4" name="CLASSES" value="4" /><label for="CLASSES_4" class="hand">企业标准</label>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
  219. </td>
  220. </tr>
  221. <tr>
  222. <td>状态:</td>
  223. <td>
  224. <input type="checkbox" id="STATE_0" name="STATE" value="0000" /><label for="STATE_0" class="hand">全部</label>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
  225. <input type="checkbox" id="STATE_1" name="STATE" value="1" /><label for="STATE_1" class="hand">有效</label>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
  226. <input type="checkbox" id="STATE_2" name="STATE" value="2" /><label for="STATE_2" class="hand">修正</label>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
  227. <input type="checkbox" id="STATE_3" name="STATE" value="3" /><label for="STATE_3" class="hand">修订</label>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
  228. <input type="checkbox" id="STATE_4" name="STATE" value="4" /><label for="STATE_4" class="hand">废止</label>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
  229. <input type="checkbox" id="STATE_5" name="STATE" value="5" /><label for="STATE_5" class="hand">撤销</label>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
  230. </td>
  231. </tr>
  232. <tr>
  233. <td align="right">发布情况:</td>
  234. <td>
  235. <input type="checkbox" id="COLUMN_3_0" name="COLUMN_3" value="0000" /><label for="COLUMN_3_0" class="hand">全部</label>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
  236. <input type="checkbox" id="COLUMN_3_1" name="COLUMN_3" value="1" /><label for="COLUMN_3_1" class="hand">已发布</label>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
  237. <input type="checkbox" id="COLUMN_3_2" name="COLUMN_3" value="0" /><label for="COLUMN_3_2" class="hand">未发布</label>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
  238. </td>
  239. </tr>
  240. </table>
  241. </div>
  242. <div class="_buttons">
  243. <input type="button" value="清除" onclick="resetSearch()"/>
  244. <input type="button" value="查询" onclick="searchHandler2()"/>
  245. </div>
  246. </div>
  247. </fieldset>
  248. </div>
  249. <div class="padding_right5">
  250. <div id="maingrid"></div>
  251. </div>
  252. </div>
  253. </div>
  254. <script type="text/javascript">
  255. //登陆人的机构id
  256. var userDeptId_inner = top.com.sinosoft.lz.system.user.LoginInfo.getCorp_ids();
  257. var loadCorp = "";
  258. var setloadtype_in=["deptId", userDeptId_inner,"type","","loadCorp",loadCorp];
  259. var setting;
  260. /***
  261. * 页面初始化
  262. */
  263. $(function(){
  264. /* 初始化页面布局 */
  265. var layout = $("#layout1").layout({
  266. leftWidth : 250,
  267. space : 10,
  268. onEndResize : function() {
  269. listGrid.resetWidth();
  270. }
  271. });
  272. /* var layout = $("#layout1").layout({
  273. leftWidth : 250,
  274. space : 10
  275. });
  276. function customHeightSet(contentHeight) {
  277. $(".layout_content").height(contentHeight - 30);
  278. }
  279. $("#layout1").layout({
  280. onEndResize : function() {
  281. var wi = $(".l-layout-content").width();
  282. wi = wi * 0.85;
  283. $(".accordition").css("width", (wi + 45) + "px");
  284. $(".leftnav").css("width", (wi + 5) + 'px');
  285. $(".parentNavDiv").css("width", wi + "px");
  286. }
  287. });
  288. $("#layout1").find(".l-layout-header-toggle").on("click",function(){
  289. $("#layout1").find(".l-layout-collapse-left-toggle").attr("tempW",$("#maingrid").find(".l-grid2").width());
  290. $("#maingrid").find(".l-grid2").css({width:"100%"});
  291. });
  292. $("#layout1").find(".l-layout-collapse-left-toggle").on("click",function(){
  293. $("#maingrid").find(".l-grid2").css({width:$(this).attr("tempW")});
  294. });
  295. function customHeightSet(contentHeight) {
  296. $(".cusBoxContent").height(contentHeight - 20);
  297. } */
  298. setting = {
  299. view : {
  300. selectedMulti : false
  301. },
  302. async : {
  303. enable : true,
  304. dataType : 'JSON',
  305. dataName : 'treeNodes',
  306. aysnc : false,
  307. url : getAsyncUrl,
  308. autoParam : [ "id", "name", "orgLevel" ],
  309. otherParam : setloadtype_in
  310. },
  311. callback: {
  312. onClick:zTreeSelect,
  313. onAsyncSuccess:checkAndSetHeight,//changeFormat.js
  314. onExpand:checkAndSetHeight
  315. }
  316. };
  317. $.fn.zTree.init($("#treeDept-gzfw"), setting);
  318. });
  319. var isAdd = false;
  320. function getAsyncUrl(treeId, treeNode) {
  321. return isAdd ? $.pathname() + "/ws/OrganizationsService/OrganizationsService/addOrgInfoById?targetOrg=" + targetOrg
  322. : $.pathname() + "/ws/OrganizationsService/OrganizationsService/loadSysOrgInfo4";
  323. };
  324. var zTree,node,tab;
  325. var zTreeCompId = "";
  326. var zTreeINS_UNITS = "";
  327. //点击树节点page/system/department/UserInfoEdit.jsp
  328. function zTreeSelect(event,treeId,treeNode) {
  329. //init(treeNode.id);
  330. zTreeCompId = treeNode.id;
  331. zTreeINS_UNITS=treeNode.orgLevel;
  332. var getUser_id = top.com.sinosoft.lz.system.user.LoginInfo.getUser_id()+"";
  333. var dpids = top.com.sinosoft.lz.system.user.LoginInfo.getCorp_ids();
  334. var condition = "";
  335. if(zTreeCompId==dpids){//点击本单位时
  336. //condition = "is_del='0' and(COLUMN_3='1' or TYPEIN_PEOPLE = '"+getUser_id+"' ) and UNITE in (select dept_id from SYS_DEPARTMENT where is_del ='0' and dept_type='1' start with dept_id='"+dpids+"' connect by prior parent_id = dept_id)";
  337. condition = "is_del='0' and(COLUMN_3='1' or TYPEIN_PEOPLE = '"+getUser_id+"' ) and UNITE ='"+dpids+"' ";
  338. }else{
  339. condition = "is_del='0' and COLUMN_3='1' and UNITE='"+zTreeCompId+"' ";
  340. }
  341. listGrid.setOptions({//重置加载列表的参数
  342. params : {
  343. "listId" :'242' ,
  344. "condition" : condition,
  345. direction:'DESC',
  346. sort: 'UPDATEDATE'
  347. }
  348. });
  349. listGrid.rend();
  350. }
  351. //处理高度自适应,每次浏览器尺寸变化时触发
  352. function customHeightSet(contentHeight){
  353. $(".cusBoxContent").height(contentHeight-50)
  354. $("#page").height(contentHeight-50);
  355. }
  356. </script>
  357. </body>
  358. </html>