123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325 |
- <%@page language="java" pageEncoding="UTF-8"%>
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
- <html xmlns="http://www.w3.org/1999/xhtml">
- <head>
- <title>组织机构管理</title>
- <meta http-equiv="Content-Type" content="text/html; charset=GBK" />
- <%request.setCharacterEncoding("GBK"); %>
- <!--框架必需start-->
- <%@include file="../.././../../include1.jsp"%>
- <!--引用资源文件,JS CSS-->
- <script type="text/javascript" src="<%=path%>/scripts/jquery/plugins/jquery.extension.util.js"></script>
- <script type="text/javascript" src="<%=path%>/scripts/freamwork/com/sinosoft/common/common.js"></script>
- <script type="text/javascript" src="<%=path%>/scripts/freamwork/com/sinosoft/common/utils/utils.js"></script>
- <script type="text/javascript" src="<%=path%>/scripts/freamwork/com/sinosoft/common/frameWork/frameWork.js"></script>
- <script type="text/javascript" src="<%=path%>/scripts/freamwork/com/sinosoft/common/utils/Request.js"></script>
- <script type="text/javascript" src="<%=path%>/scripts/freamwork/com/sinosoft/common/searchUtil.js"></script>
- <link href="<%=path%>/scripts/freamwork/com/sinosoft/common/searchUtil.css" rel="stylesheet" type="text/css"/>
-
-
- <script type="text/javascript" src = "/nwyj/scripts/business/am/org/maintenance/orgSel.js"></script>
- <script type="text/javascript" src="/nwyj/scripts/freamwork/com/sinosoft/system/mapvaluecanst/CanstSelect.js"></script>
- <link rel="stylesheet" type="text/css" href="<%=path%>/scripts/webUploader/css/webuploader.css" />
- <script type="text/javascript" src="/nwyj/scripts/webUploader/webuploader.js"></script>
-
-
- <!--基本选项卡start-->
- <!--框架必需end-->
- <!-- 按钮权限start -->
- <script type="text/javascript" src="/nwyj/scripts/freamwork/com/sinosoft/common/common.js"></script>
- <!-- 上移下移公共方法 -->
- <!-- 置顶 -->
- <script type="text/javascript" src="/nwyj/scripts/business/am/public/public.js"></script>
- <!-- 按钮权限end -->
- <script type="text/javascript" src="../../../../../scripts/freamwork/com/sinosoft/system/invoking/invoking.js"></script>
- <script type="text/javascript" src="/nwyj/page/business/em/report/reportCss/tableStyle.js"></script>
- <link href="/nwyj/page/business/em/report/reportCss/warnningreport.css" rel="stylesheet" type="text/css" />
- <style type ="text/css">
- //隐藏layout布局的线条
- .l-layout-center{
- border:none!important;
- _left:320px;
- _width:100%;
- }
- .l-layout-left{
- border:none!important;
- }
- .l-layout-drophandle-left{
- width: 1px;
- }
- body,div,ul,li,p{
- margin:0;
- padding:0;
- font-size: 14px;
- }
- ._paper_id{
- display:none;
- }
- </style>
- <script type="text/javascript">
- var isParent = "<%=request.getParameter("isParent")%>";//应急指挥中心为true,应急办为false
- //alert(isParent)
- //定义grid表格对象
- var LinkGrid;
- //当前点击的机构节点
- var parentClickOrg;
- //登陆人的机构id
- var loginOrgId = top.com.sinosoft.lz.system.user.LoginInfo.getCorp_ids();
- //grid表格的加载参数
- var loadParams;
- //grid表格的condition
- var initCondition;
- //判定是否点击的为虚拟机构还是实体机构
- var isVirtual = false;
- //定义查询sql
- var sql_condition="";
- //取登录人角色,超级管理员才能看见必要按钮 R002105430200
- var role = top.com.sinosoft.lz.system.user.LoginInfo.getRoleids();
- //登陆人的id
- var User_ID1 = top.com.sinosoft.lz.system.user.LoginInfo.getUser_id();
- //移动号码正则表达式
- var regex = /^1(3[4-9]|5[012789]|8[23478]|4[7]|7[8])\d{8}$/;
- var disname = "应急角色";
- $searchButt = null;// 查询按钮
- $queryForm = null;
- var yearList = {
- "list" : [
- {"key" : "2016","value" : "2016"},
- {"key" : "2017","value" : "2017"},
- {"key" : "2018","value" : "2018"},
- {"key" : "2019","value" : "2019"},
- {"key" : "2020","value" : "2020"},
- {"key" : "2021","value" : "2021"},
- {"key" : "2022","value" : "2022"},
- {"key" : "2023","value" : "2023"},
- {"key" : "2024","value" : "2024"},
- {"key" : "2025","value" : "2025"},
- {"key" : "2026","value" : "2026"},
- {"key" : "2027","value" : "2027"},
- {"key" : "2028","value" : "2028"},
- {"key" : "2029","value" : "2029"},
- {"key" : "2030","value" : "2030"},
- {"key" : "2031","value" : "2031"},
- {"key" : "2032","value" : "2032"},
- {"key" : "2033","value" : "2033"},
- {"key" : "2034","value" : "2034"},
- {"key" : "2035","value" : "2035"},
- {"key" : "2036","value" : "2036"},
- {"key" : "2037","value" : "2037"},
- {"key" : "2038","value" : "2038"},
- {"key" : "2049","value" : "2049"},
- {"key" : "2050","value" : "2050"}
- ]
- }
- $(function() {
- //parent.getSelectTreeNode();
- parentClickOrg = parent.selectedTreeNode;//取父页面的值
- if (parentClickOrg.orgtype == "ZHZXYJB") {
- disname = "应急办角色";
- } else if (parentClickOrg.orgtype == "ZHZX") {
- disname = "应急指挥中心角色";
- }
- LinkGridInit(parentClickOrg, parentClickOrg.id);//初始化表格的方法
- $("#titleShow").html(parentClickOrg.name);
- initSelect();
-
- });
- function initSelect(){
- $("#year").data("data",yearList);
- $("#year").render();
-
- var date = new Date();
- var year = date.getFullYear();
-
- $("#year").setValue(year);
- LinkGrid.setOptions({
- params : {
- "virtual_org_id":parentClickOrg.id,
- "year":year
- }
- });
- LinkGrid.rend();
-
- $("#year").bind("change",function(){
- var selectYear = $("#year").val();
- LinkGrid.setOptions({
- params : {
- "virtual_org_id":parentClickOrg.id,
- "year":selectYear
- }
- });
- LinkGrid.rend();
- });
- }
-
- function showAll(){
- LinkGrid.setOptions( {
- params : {
- "virtual_org_id":parentClickOrg.id,
- }
- });
- LinkGrid.rend();
- }
- //当前机构的节点取录入人信息 parentClickOrg
- //初始化表格的方法
- function LinkGridInit(treeNode, id) {
- //更新loadparams
- loadParams = {
- virtual_org_id : id,
- };
- var grid_option1 = {
- columns : [
- {
- display : '机构id',
- name : 'VIRTUAL_ORG_ID',
- hide : 'true',
- },
- {
- display : '名称',
- name : 'NAME',
- align : 'center',
- width : "40%",
- isPrimaryKey : true,
- render : function(rowdata, rowindex, value, column) {
- return "<a href='javascript:;' style='width:100%;height:100%;display:block' title='"
- + value
- + "' onclick='openDetail("
- + rowindex + ")'>" + value + "</a>";
- }
- }, {
- display : '确认人',
- name : 'MADE_MAN',
- align : 'center',
- width : "20%",
- }, {
- display : '确认人手机',
- name : 'MADE_MAN_PHONE',
- align : 'center',
- width : "20%",
- }, {
- display : '状态',
- name : 'IS_ISSUE',
- align : 'center',
- width : "20%",
- render : function(rowdata, rowindex, value, column) {
- var state = "";
- if (value == '0') {
- value = "编辑";
- } else if (value == '1') {
- value = "发布";
- } else {
- value = "失效";
- }
- return value;
- }
- } ],
- rownumbers : true,
- pageSize : 10,
- percentWidthMode : true
- };
- var options1 = {
- url : $.pathname()+ '/ws/Linker/HistoryLinkerService/selectSimpleData/',
- params : loadParams,
- gridOptions : grid_option1,
- singleRecodeOptions : {
- a : "aa"
- },
- paperOpration : {
- showInput : "true"
- },
- };
- LinkGrid = gridAndSingleRecode = $("#InlinkMainGrid")
- .quickgridAndSingleRecode(options1);
- }
- //点击主键跳转详细信息页面
- this.openDetail = function(rowindex) {
- var row = LinkGrid.getRow(rowindex);
- var IS_ISSUE = row.IS_ISSUE;//发布状态(0-未发布;1-发布;2-失效)
- if (IS_ISSUE == "0") {//跳转到修改页
- var url = encodeURI($.pathname()
- + "/page/business/am/org/query/AllInformationEdit.jsp?"
- + parentClickOrg.id + "?" + parentClickOrg.name + "?"
- + parentClickOrg.orgtype + "?" + parentClickOrg.pid + "?"
- + parentClickOrg.corpId + "?" + parentClickOrg.isVirtual);
- getEditWindow(url);
- } else if (IS_ISSUE == "1") {//跳转到发布页
- parent.avtiveTab("tab1_index1");
- } else if (IS_ISSUE == "2") {//跳转到失效人员查看页
- var url = encodeURI($.pathname()
- + "/page/business/am/org/query/AllInformation_peopleMsg.jsp?"
- + row.VIRTUAL_ORG_ID + "?" + row.NAME);
- parent.addTab(url, "人员信息");
- }
- };
- function getEditWindow(url){
- var diag = new parent.Dialog();
- //短信管理按新增按钮时跳转地址
- diag.Title = "修改机构信息";
- diag.URL = url;
- diag.Top = "0%";
- diag.Left = "50%";
- diag.ID="updateOrg";
- diag.Height =3000;
- diag.Width = 1200;
- diag.ShowOkButton=false;// 不显示确认按钮
- diag.ShowCancelButton=false;// 不显示取消按钮
- diag.ButtonAlign = 'center';
- diag.show();
- }
-
- //处理高度自适应,每次浏览器尺寸变化时触发
- function customHeightSet(contentHeight) {
- $(".layout_content").height(contentHeight - 50)
- $("#page").height(contentHeight - 50);
- }
- //刷新information界面方法
- function refreshInformation(treeNode,id){
- document.location.reload();
- }
- </script>
- </head>
- <body style="height:950px">
- <input type="hidden" id="hideInput" />
- <!-- 外面框架的盒子放组织机构详细信息和人员列表的 -->
- <div id="formContent" style="/* overflow:auto; */border: 1px solid #cdcaca;background: white;"></div>
- <!-- 头部的title -->
- <div style="height: 50px;border-style:solid;border-width:1px;border-right:1px;border-left:1px;border-top:1px;border-color:#cdcaca;" align="center">
- <font style="font-weight: bold;font-size: 20px;line-height: 45px;color:#3e62a0;" id="titleShow"></font>
- </div>
-
- <div class="table_class" style="margin:5px 5px 5px 5px">
- <fieldset>
- <legend>版本信息</legend>
- <div>
- <table>
- <tr>
- <td width="76%"></td>
- <td>年份:</td>
- <td><select prompt="请选择" id="year" selWidth ='120' style = "display:inline"></select> </td>
- <td><input type = "button" value = "显示全部" onclick= "showAll()"/></td>
- </tr>
- </table>
- </div>
- <div id="linkman" style="width:100%;overflow:auto;margin: 5px 5px 10px 3px">
- <div class="padding_right5">
- <div id="InlinkMainGrid"></div>
- </div>
- </div>
- </fieldset>
- </div>
- </body>
- </html>
|