8f6a7c0bc2496833c9c18b47fc49cec4f3f7c815.svn-base 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325
  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. <title>组织机构管理</title>
  6. <meta http-equiv="Content-Type" content="text/html; charset=GBK" />
  7. <%request.setCharacterEncoding("GBK"); %>
  8. <!--框架必需start-->
  9. <%@include file="../.././../../include1.jsp"%>
  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. <script type="text/javascript" src = "/nwyj/scripts/business/am/org/maintenance/orgSel.js"></script>
  19. <script type="text/javascript" src="/nwyj/scripts/freamwork/com/sinosoft/system/mapvaluecanst/CanstSelect.js"></script>
  20. <link rel="stylesheet" type="text/css" href="<%=path%>/scripts/webUploader/css/webuploader.css" />
  21. <script type="text/javascript" src="/nwyj/scripts/webUploader/webuploader.js"></script>
  22. <!--基本选项卡start-->
  23. <!--框架必需end-->
  24. <!-- 按钮权限start -->
  25. <script type="text/javascript" src="/nwyj/scripts/freamwork/com/sinosoft/common/common.js"></script>
  26. <!-- 上移下移公共方法 -->
  27. <!-- 置顶 -->
  28. <script type="text/javascript" src="/nwyj/scripts/business/am/public/public.js"></script>
  29. <!-- 按钮权限end -->
  30. <script type="text/javascript" src="../../../../../scripts/freamwork/com/sinosoft/system/invoking/invoking.js"></script>
  31. <script type="text/javascript" src="/nwyj/page/business/em/report/reportCss/tableStyle.js"></script>
  32. <link href="/nwyj/page/business/em/report/reportCss/warnningreport.css" rel="stylesheet" type="text/css" />
  33. <style type ="text/css">
  34. //隐藏layout布局的线条
  35. .l-layout-center{
  36. border:none!important;
  37. _left:320px;
  38. _width:100%;
  39. }
  40. .l-layout-left{
  41. border:none!important;
  42. }
  43. .l-layout-drophandle-left{
  44. width: 1px;
  45. }
  46. body,div,ul,li,p{
  47. margin:0;
  48. padding:0;
  49. font-size: 14px;
  50. }
  51. ._paper_id{
  52. display:none;
  53. }
  54. </style>
  55. <script type="text/javascript">
  56. var isParent = "<%=request.getParameter("isParent")%>";//应急指挥中心为true,应急办为false
  57. //alert(isParent)
  58. //定义grid表格对象
  59. var LinkGrid;
  60. //当前点击的机构节点
  61. var parentClickOrg;
  62. //登陆人的机构id
  63. var loginOrgId = top.com.sinosoft.lz.system.user.LoginInfo.getCorp_ids();
  64. //grid表格的加载参数
  65. var loadParams;
  66. //grid表格的condition
  67. var initCondition;
  68. //判定是否点击的为虚拟机构还是实体机构
  69. var isVirtual = false;
  70. //定义查询sql
  71. var sql_condition="";
  72. //取登录人角色,超级管理员才能看见必要按钮 R002105430200
  73. var role = top.com.sinosoft.lz.system.user.LoginInfo.getRoleids();
  74. //登陆人的id
  75. var User_ID1 = top.com.sinosoft.lz.system.user.LoginInfo.getUser_id();
  76. //移动号码正则表达式
  77. var regex = /^1(3[4-9]|5[012789]|8[23478]|4[7]|7[8])\d{8}$/;
  78. var disname = "应急角色";
  79. $searchButt = null;// 查询按钮
  80. $queryForm = null;
  81. var yearList = {
  82. "list" : [
  83. {"key" : "2016","value" : "2016"},
  84. {"key" : "2017","value" : "2017"},
  85. {"key" : "2018","value" : "2018"},
  86. {"key" : "2019","value" : "2019"},
  87. {"key" : "2020","value" : "2020"},
  88. {"key" : "2021","value" : "2021"},
  89. {"key" : "2022","value" : "2022"},
  90. {"key" : "2023","value" : "2023"},
  91. {"key" : "2024","value" : "2024"},
  92. {"key" : "2025","value" : "2025"},
  93. {"key" : "2026","value" : "2026"},
  94. {"key" : "2027","value" : "2027"},
  95. {"key" : "2028","value" : "2028"},
  96. {"key" : "2029","value" : "2029"},
  97. {"key" : "2030","value" : "2030"},
  98. {"key" : "2031","value" : "2031"},
  99. {"key" : "2032","value" : "2032"},
  100. {"key" : "2033","value" : "2033"},
  101. {"key" : "2034","value" : "2034"},
  102. {"key" : "2035","value" : "2035"},
  103. {"key" : "2036","value" : "2036"},
  104. {"key" : "2037","value" : "2037"},
  105. {"key" : "2038","value" : "2038"},
  106. {"key" : "2049","value" : "2049"},
  107. {"key" : "2050","value" : "2050"}
  108. ]
  109. }
  110. $(function() {
  111. //parent.getSelectTreeNode();
  112. parentClickOrg = parent.selectedTreeNode;//取父页面的值
  113. if (parentClickOrg.orgtype == "ZHZXYJB") {
  114. disname = "应急办角色";
  115. } else if (parentClickOrg.orgtype == "ZHZX") {
  116. disname = "应急指挥中心角色";
  117. }
  118. LinkGridInit(parentClickOrg, parentClickOrg.id);//初始化表格的方法
  119. $("#titleShow").html(parentClickOrg.name);
  120. initSelect();
  121. });
  122. function initSelect(){
  123. $("#year").data("data",yearList);
  124. $("#year").render();
  125. var date = new Date();
  126. var year = date.getFullYear();
  127. $("#year").setValue(year);
  128. LinkGrid.setOptions({
  129. params : {
  130. "virtual_org_id":parentClickOrg.id,
  131. "year":year
  132. }
  133. });
  134. LinkGrid.rend();
  135. $("#year").bind("change",function(){
  136. var selectYear = $("#year").val();
  137. LinkGrid.setOptions({
  138. params : {
  139. "virtual_org_id":parentClickOrg.id,
  140. "year":selectYear
  141. }
  142. });
  143. LinkGrid.rend();
  144. });
  145. }
  146. function showAll(){
  147. LinkGrid.setOptions( {
  148. params : {
  149. "virtual_org_id":parentClickOrg.id,
  150. }
  151. });
  152. LinkGrid.rend();
  153. }
  154. //当前机构的节点取录入人信息 parentClickOrg
  155. //初始化表格的方法
  156. function LinkGridInit(treeNode, id) {
  157. //更新loadparams
  158. loadParams = {
  159. virtual_org_id : id,
  160. };
  161. var grid_option1 = {
  162. columns : [
  163. {
  164. display : '机构id',
  165. name : 'VIRTUAL_ORG_ID',
  166. hide : 'true',
  167. },
  168. {
  169. display : '名称',
  170. name : 'NAME',
  171. align : 'center',
  172. width : "40%",
  173. isPrimaryKey : true,
  174. render : function(rowdata, rowindex, value, column) {
  175. return "<a href='javascript:;' style='width:100%;height:100%;display:block' title='"
  176. + value
  177. + "' onclick='openDetail("
  178. + rowindex + ")'>" + value + "</a>";
  179. }
  180. }, {
  181. display : '确认人',
  182. name : 'MADE_MAN',
  183. align : 'center',
  184. width : "20%",
  185. }, {
  186. display : '确认人手机',
  187. name : 'MADE_MAN_PHONE',
  188. align : 'center',
  189. width : "20%",
  190. }, {
  191. display : '状态',
  192. name : 'IS_ISSUE',
  193. align : 'center',
  194. width : "20%",
  195. render : function(rowdata, rowindex, value, column) {
  196. var state = "";
  197. if (value == '0') {
  198. value = "编辑";
  199. } else if (value == '1') {
  200. value = "发布";
  201. } else {
  202. value = "失效";
  203. }
  204. return value;
  205. }
  206. } ],
  207. rownumbers : true,
  208. pageSize : 10,
  209. percentWidthMode : true
  210. };
  211. var options1 = {
  212. url : $.pathname()+ '/ws/Linker/HistoryLinkerService/selectSimpleData/',
  213. params : loadParams,
  214. gridOptions : grid_option1,
  215. singleRecodeOptions : {
  216. a : "aa"
  217. },
  218. paperOpration : {
  219. showInput : "true"
  220. },
  221. };
  222. LinkGrid = gridAndSingleRecode = $("#InlinkMainGrid")
  223. .quickgridAndSingleRecode(options1);
  224. }
  225. //点击主键跳转详细信息页面
  226. this.openDetail = function(rowindex) {
  227. var row = LinkGrid.getRow(rowindex);
  228. var IS_ISSUE = row.IS_ISSUE;//发布状态(0-未发布;1-发布;2-失效)
  229. if (IS_ISSUE == "0") {//跳转到修改页
  230. var url = encodeURI($.pathname()
  231. + "/page/business/am/org/query/AllInformationEdit.jsp?"
  232. + parentClickOrg.id + "?" + parentClickOrg.name + "?"
  233. + parentClickOrg.orgtype + "?" + parentClickOrg.pid + "?"
  234. + parentClickOrg.corpId + "?" + parentClickOrg.isVirtual);
  235. getEditWindow(url);
  236. } else if (IS_ISSUE == "1") {//跳转到发布页
  237. parent.avtiveTab("tab1_index1");
  238. } else if (IS_ISSUE == "2") {//跳转到失效人员查看页
  239. var url = encodeURI($.pathname()
  240. + "/page/business/am/org/query/AllInformation_peopleMsg.jsp?"
  241. + row.VIRTUAL_ORG_ID + "?" + row.NAME);
  242. parent.addTab(url, "人员信息");
  243. }
  244. };
  245. function getEditWindow(url){
  246. var diag = new parent.Dialog();
  247. //短信管理按新增按钮时跳转地址
  248. diag.Title = "修改机构信息";
  249. diag.URL = url;
  250. diag.Top = "0%";
  251. diag.Left = "50%";
  252. diag.ID="updateOrg";
  253. diag.Height =3000;
  254. diag.Width = 1200;
  255. diag.ShowOkButton=false;// 不显示确认按钮
  256. diag.ShowCancelButton=false;// 不显示取消按钮
  257. diag.ButtonAlign = 'center';
  258. diag.show();
  259. }
  260. //处理高度自适应,每次浏览器尺寸变化时触发
  261. function customHeightSet(contentHeight) {
  262. $(".layout_content").height(contentHeight - 50)
  263. $("#page").height(contentHeight - 50);
  264. }
  265. //刷新information界面方法
  266. function refreshInformation(treeNode,id){
  267. document.location.reload();
  268. }
  269. </script>
  270. </head>
  271. <body style="height:950px">
  272. <input type="hidden" id="hideInput" />
  273. <!-- 外面框架的盒子放组织机构详细信息和人员列表的 -->
  274. <div id="formContent" style="/* overflow:auto; */border: 1px solid #cdcaca;background: white;"></div>
  275. <!-- 头部的title -->
  276. <div style="height: 50px;border-style:solid;border-width:1px;border-right:1px;border-left:1px;border-top:1px;border-color:#cdcaca;" align="center">
  277. <font style="font-weight: bold;font-size: 20px;line-height: 45px;color:#3e62a0;" id="titleShow"></font>
  278. </div>
  279. <div class="table_class" style="margin:5px 5px 5px 5px">
  280. <fieldset>
  281. <legend>版本信息</legend>
  282. <div>
  283. <table>
  284. <tr>
  285. <td width="76%"></td>
  286. <td>年份:</td>
  287. <td><select prompt="请选择" id="year" selWidth ='120' style = "display:inline"></select> </td>
  288. <td><input type = "button" value = "显示全部" onclick= "showAll()"/></td>
  289. </tr>
  290. </table>
  291. </div>
  292. <div id="linkman" style="width:100%;overflow:auto;margin: 5px 5px 10px 3px">
  293. <div class="padding_right5">
  294. <div id="InlinkMainGrid"></div>
  295. </div>
  296. </div>
  297. </fieldset>
  298. </div>
  299. </body>
  300. </html>