123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369 |
- <!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>
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
- <title>应急组织外部机构信息</title>
- <!--框架必需start-->
- <script type="text/javascript" src="/nwyj/scripts/qui/libs/js/jquery.js"></script>
- <script type="text/javascript"
- src="/nwyj/scripts/qui/libs/js/language/cn.js"></script>
- <script type="text/javascript"
- src="/nwyj/scripts/qui/libs/js/framework.js"></script>
- <link href="/nwyj/scripts/qui/libs/css/import_basic.css"
- rel="stylesheet" type="text/css" />
- <link rel="stylesheet" type="text/css" id="skin"
- prePath="/nwyj/scripts/qui/" />
- <link rel="stylesheet" type="text/css" id="customSkin" />
- <!--框架必需end-->
- <script type="text/javascript"
- src="/nwyj/scripts/qui/libs/js/form/form.js"></script>
- <script type="text/javascript"
- src="/nwyj/scripts/qui/libs/js/form/validation.js"></script>
- <script type="text/javascript"
- src="/nwyj/scripts/qui/libs/js/form/validationRule.js"></script>
- <script type="text/javascript"
- src="/nwyj/scripts/qui/libs/js/popup/messager.js"></script>
- <!--弹窗组件start-->
- <script type="text/javascript"
- src="/nwyj/scripts/qui/libs/js/popup/drag.js"></script>
- <script type="text/javascript"
- src="/nwyj/scripts/qui/libs/js/popup/dialog.js"></script>
- <!--弹窗组件end-->
- <!--弹出式提示框start-->
- <script type="text/javascript"
- src="/nwyj/scripts/qui/libs/js/popup/messager.js"></script>
- <!--弹出式提示框end-->
- <!--数据表格start-->
- <script src="/nwyj/scripts/qui/libs/js/table/quiGrid.js"
- type="text/javascript"></script>
- <!--数据表格end-->
- <!--树组件start-->
- <link rel="stylesheet" type="text/css"
- href="/nwyj/scripts/qui/libs/js/tree/ztree/ztree.css" />
- <script type="text/javascript"
- src="/nwyj/scripts/qui/libs/js/tree/ztree/ztree.js"></script>
- <script type="text/javascript"
- src="/nwyj/scripts/qui/libs/js/form/selectTree.js"></script>
- <script type="text/javascript"
- src="/nwyj/scripts/qui/libs/js/form/listerTree.js"></script>
- <!--树组件end-->
- <!-- 日期选择框start -->
- <script type="text/javascript"
- src="/nwyj/scripts/qui/libs/js/form/datePicker/WdatePicker.js"></script>
- <!-- 日期选择框end -->
- <!-- 扩展工具js -->
- <script type="text/javascript" src="/nwyj/scripts/common/common.js"></script>
- <script type="text/javascript"
- src="/nwyj/scripts/jquery/plugins/jquery.extension.util.js"></script>
- <script type="text/javascript"
- src="/nwyj/scripts/freamwork/com/sinosoft/common/common.js"></script>
-
- <!-- <script type="text/javascript"
- src="../../../../../scripts/business/am/org/maintenance/out-orginfo.js"></script> -->
- <style type="text/css">
- .hr3 {
- height: 2px;
- border: none;
- border-top: 2px ridge #45D6D8;
- }
- #org_info_span {
- font-size: 25px;
- color: blue;
- }
- #org_info_title {
- width: 760px;
- text-align: center;
- }
- .tool_class {
- display: inline-block;
- float: right;
- margin: 10px 10px 10px 10px;
- }
- .clear_style_org {
- visibility: hidden;
- clear: both;
- }
- </style>
- <script type="text/javascript">
- /* $(function() {
- //获得树节点的objectId用于加载机构信息
- fd_id_org = parent.sup_fd_objectId;
- //获得机构名称 用于查询筛选条件
- org_name_org = parent.sup_org_name;
- //初始化界面
- init_orgInfo()
- })
- //初始化机构的详细信息
- function init_orgInfo() {
- //更新界面显示--界面title(机构名称)
- document.getElementById("org_info_span").innerHTML = org_name_org;
- //隐藏按钮
- document.getElementById("am_org_img").style.display = "none";
- document.getElementById("option_tr").style.display = "none";
- //加载机构信息显示
- var url = $.pathname() + '/ws/crud/CRUDService/getDataById/';
- var params = {
- classid : '212',
- objectID : fd_id_org
- };
- $.ajax({
- url : url,
- type : 'post',
- timeout : 60000,
- data : params,
- dataType : 'json',
- success : function(data) {
- $("#fillForm").ajaxWrite({
- data : data
- });
- $("#fillForm input[name='classid']").val("212");
- },
- error : function(e) {
- $.messager.alert('系统提示信息', '访问服务失败!', 'error');
- }
- });
- }
- //修改按钮操作
- function update_operator() {
- //显示 “返回”图标 “保存” “重置”按钮
- document.getElementById("am_org_img").style.display = "";
- document.getElementById("option_tr").style.display = "";
- //隐藏 “修改” “删除”按钮
- document.getElementById("update_orgInfo").style.display = "none";
- document.getElementById("delete_orgInfo").style.display = "none";
- //将只读样式去掉
- var readOnly_input = document.getElementsByTagName("input");
- for (var i = 0; i < readOnly_input.length; i++) {
- readOnly_input[i].readOnly = false;
- }
- }
- //删除机构事件
- function delete_operator() {
- alert("点击了删除按钮");
- top.Dialog.confirm("确定要删除吗?|删除", function() {
- // 删除记录
- $.post($.pathname() + "/ws/crud/CRUDService/delete/", {
- "objectIDs" : fd_id_org,
- classid : 212
- }, function(result) {
- if (result.Msg.sucsess == true) {
- $.messager.alert("删除成功", null, null, null, 1);
- //清空界面
- document.getElementById("fillForm").setAttribute("style",
- "none");
- } else {
- top.Dialog.alert("删除失败!");
- }
- }, "json");
- });
- document.getElementById("fillForm").setAttribute("style", "none");
- }
- //修改事件--表单提交时触发
- function save_orgInfo() {
- //验证表单
- editValidate();
- }
- //表单验证
- function editValidate() {
- var valid = $("#fillForm").validationEngine({
- returnIsValid : true,
- });
- if (valid == true) {
- editfn();
- } else {
- top.Dialog.alert('表单填写不正确,请按要求填写!');
- }
- }
- //修改机构信息--发送请求后台交互
- function editfn() {
- $form = $("#fillForm");
- var formValue = $form.serialize();
- $("#classid").val("212");
- var url = $.pathname() + "/ws/crud/CRUDService/update/";
- $.ajax({
- url : url,
- type : "post",
- timeout : 60000,
- data : formValue,
- dataType : "json",
- success : function(data) {
- top.Dialog.alert("修改成功,点击返回按钮返回列表");
- },
- error : function() {
- top.Dialog.alert("修改失败,稍后再试...");
- }
- });
- }
- //返回图标单击事件 --重新加载界面
- function goBack() {
- location.reload();
- } */
- //部门id
- var dpids = top.com.sinosoft.lz.system.user.LoginInfo.getDeptids();
- //取得用户真实姓名
- var realname = top.com.sinosoft.lz.system.user.LoginInfo.getReal_name();
- //获取用户的Id
- var userId = top.com.sinosoft.lz.system.user.LoginInfo.getUser_id();
- //部门名称
- var deptName = top.com.sinosoft.lz.system.user.LoginInfo.getDeptnames();
- //父部门id
- var parentId = top.com.sinosoft.lz.system.user.LoginInfo.getParent_ids();
- //外部单位的怕人id
- var outOrgParentId =top.com.sinosoft.lz.system.user.LoginInfo.getDeptids();
- //当前机构树点击节点的id
- var fd_id = parent.sup_fd_objectId;
- $(function() {
- var iframe = parent.document.getElementsByName("frmrightChild")[0];
- var iframeUrl = iframe.src;
- //alert("src==="+iframeUrl);
- //判定查看详情--》更新界面显示的信息
- //var fd_id = (iframeUrl).split('?')[1];
- if(fd_id==outOrgParentId||fd_id==null||""==fd_id){
- $("#titleShow").html("外部机构");
- }else{
- var url = $.pathname() + "/ws/crud/CRUDService/getDataById/";
- var params = {
- classid : '212',
- objectID : fd_id
- };
- /* ajax请求 */
- $.ajax({
- url : url,
- type : 'post',
- timeout : 60000,
- data : params,
- dataType : 'json',
- success : function(data) {
- /* $("#fillForm").ajaxWrite({
- data : data
- });
- $("#fillForm input[name='classid']").val("212"); */
- for(var i in data){
- $("#"+i).html(data[i]);
- }
- //显示标题信息
- $("#titleShow").html(data.ORG_DEPT_NAME_212);
-
-
- },
- error : function(e) {
- $.messager.alert('系统提示信息', '访问服务失败!', 'error');
- }
- });
- }
- });
- function refreshOutOrgInfo(fd_objectid){
- if(fd_objectid==outOrgParentId||fd_objectid==null||""==fd_objectid){
- $("#titleShow").html("外部机构");
- }else{
- var url = $.pathname() + "/ws/crud/CRUDService/getDataById/";
- var params = {
- classid : '212',
- objectID : fd_objectid
- };
- /* ajax请求 */
- $.ajax({
- url : url,
- type : 'post',
- timeout : 60000,
- data : params,
- dataType : 'json',
- success : function(data) {
- /* $("#fillForm").ajaxWrite({
- data : data
- });
- $("#fillForm input[name='classid']").val("212"); */
- for(var i in data){
- $("#"+i).html(data[i]);
- }
- //显示标题信息
- $("#titleShow").html(data.ORG_DEPT_NAME_212);
-
-
- },
- error : function(e) {
- $.messager.alert('系统提示信息', '访问服务失败!', 'error');
- }
- });
- }
- }
- </script>
- </head>
- <body>
- <div class="box1" id="formContent"
- style="overflow:auto;height:545px;border: 1px solid #E4E4E4;background: #F8F8F8;">
- <div style="height: 50px;background: #F8F8F8;" align="center">
- <font style="font-weight: bold;font-size: 20px;line-height: 45px;" id="titleShow"></font></div>
- <div>
- <form id="fillForm" action="javascript:save_orgInfo()" method="post"
- failAlert="表单填写错误,请检查">
- <table class="tableStyle" formMode="view">
- <tr style="display: none;">
- <td><input type="hidden" id="fd_id212" name="FD_OBJECTID212"
- required="true" /> <input type="hidden" name="classid"
- value="212" required="true" /></td>
- </tr>
- <tr>
- <td width="18%" align="right">机构名称:</td>
- <td width="32%" id="ORG_DEPT_NAME_212" name="ORG_DEPT_NAME_212"></td>
- <td width="18%" align="right">机构类别:</td>
- <td width="32%" id="ORG_DEPT_TYPE_212_SHOW" name="ORG_DEPT_TYPE_212_SHOW"></td>
- </tr>
- <tr>
- <td width="18%" align="right">所在区域:</td>
- <td width="32%" id="LOCATION_212" name="LOCATION_212"></td>
- <td width="18%" align="right">办公地点:</td>
- <td width="32%" id="WORK_ADDRESS_212" name="WORK_ADDRESS_212"></td>
- </tr>
- <tr>
- <td width="18%" align="right">联动部门:</td>
- <td width="32%" id="LINK_DEPT_212_SHOW" name="LINK_DEPT_212__SHOW"></td>
- <td width="18%" align="right">联动联系人:</td>
- <td width="32%" id="LINK_MAN_212_SHOW" name="LINK_MAN_212_SHOW"></td>
- </tr>
- <tr>
- <td width="18%" align="right">邮编:</td>
- <td width="32%" id="CODE_212" name="CODE_212"></td>
- <td width="18%" align="right">网址:</td>
- <td width="32%" id="SITE_212" name="SITE_212"></td>
- </tr>
- </table>
- </form>
- </div>
- </div>
- </body>
- </html>
|