123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332 |
- <%@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>
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
- <title>日常应急装备</title>
-
- <%@include file="../../../../include1.jsp" %>
- <!--数据表格end-->
- <style>
- .stepContainer{
- padding:5px 0 5px 0px;
- }
- .stepTable{
- border:0;
- margin:0 auto!important;
- }
- .stepTable td{
- border:0;
- }
- .setp_icon{
- width:100px;
- text-align:center;
- }
- .setp_arrow{
- width:100px;
- text-align:center;
- }
- .setp_text{
- text-align:center;
- font-size:14px;
- font-weight:bold;
- }
- </style>
- <!--引用资源文件,JS CSS-->
- <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="<%=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/system/invoking/invoking.js"></script>
-
- <script type="text/javascript" src="<%=path%>/scripts/business/am/resource/equipment/equip.js"></script>
-
- <script type="text/javascript">
- var equipId = "";
- var equipName = "";
-
- var CorpArea = top.com.sinosoft.lz.system.user.LoginInfo.getCorp_ids();
- var realName = top.com.sinosoft.lz.system.user.LoginInfo.getReal_name();//取得用户真实名字
- var realName_ID = top.com.sinosoft.lz.system.user.LoginInfo.getUser_id();
- var deptId = top.com.sinosoft.lz.system.user.LoginInfo.getDeptids();//部门id
- var parentId = top.com.sinosoft.lz.system.user.LoginInfo.getParent_ids();//父部门id
- //预警范围下拉框的初始化
- //var deptUrl = $.pathname() + '/ws/dept/DeptService/getDepartTree';
- var userDeptId_inner = top.com.sinosoft.lz.system.user.LoginInfo.getCorp_ids();
- var setting;
- var loadCorp = "";
- var g;
- var setloadtype_in=["deptId", userDeptId_inner,"type","","loadCorp",loadCorp];
- //复选框全选
-
- /* $(function(){
-
- //var deptUrl = $.pathname() + '/ws/dept/DeptService/getDepartTree';
- //预警级别--常量表获取
- $('#CURRENT_EW_LEVEL_365').initCanstSelect('BM_WarningState');
- //预警性质--常量表获取
- $('#EARLY_WARNING_PROPERTY_365').initCanstSelect('BM_PROPERTY');
-
- //预警范围,发布单位下拉框
- var parentId = top.com.sinosoft.lz.system.user.LoginInfo.getParent_ids();
- var deptUrl = $.pathname() + '/ws/dept/DeptService/getDepartTree';
- $.post(deptUrl,{id:parentId,name:''},function(data){
- $("#EARLY_WARNING_AREA_ID_365").data("data",data);
- $("#EARLY_WARNING_AREA_ID_365").render();
- $("#RELEASE_UNIT_365").data("data",data);
- $("#RELEASE_UNIT_365").render();
- }, "json");
-
- }); */
- $(function(){
- //根据json生成综合查询筛选条件ul-li列表
- //createConditionsDom(conditionData);
- //ul-li列表点击事件
- $(".condiTitle").unbind("click",bindSelectOne);
- $(".item").unbind("click").bind("click",bindSelectOne);
- //输入框绑定事件
- $(".Textinput").bind("change",inputChange);
-
- $(".item").unbind("click").bind("click",bindSelectOne);
- var deptUrl = $.pathname() + '/ws/dept/DeptService/getDepartTree';
- $.post(deptUrl,{id:parentId,name:''},function(data){
- $("#UNITE_NAME_279").data("data",data);
- $("#UNITE_NAME_279").render();
- /* $("#UNITE_ID_279").data("data",data);
- $("#UNITE_ID_279").render(); */
-
- }, "json");
-
- getChildInfo(conditionData);
-
- function getChildInfo(conditionData){//-----------------------------------------查询里面的单位
- var url = $.pathname() + '/ws/PlanHuiZong/ContingencyPlanHuiZong/getChidInfo1/';
- var params = {
- id : deptId,
- unitId : CorpArea,
- parentID : parentId
- };
- $.ajax({
- url : url,
- type : 'post',
- data : params,
- dataType : 'json',
- success : function(data){
- conditionData2 = JSON.stringify(data);
- conditionData2 = conditionData2.replace(/\\\"/g,"\"");
- conditionData2 = conditionData2.replace(/\"{/g,"{");
- conditionData2 = conditionData2.replace(/}\"/g,"}");
- var test = eval("("+conditionData2+")");
- if(conditionData2!='{"list":[{"name":"查询部门","className":"UNITS","list":[]}]}'){
- test.dept.list[0].name="所属单位";
- test.dept.list[0].className = "UNITE_ID";
- test.dept.list[0].equalType = "equal";
- //test.dept.list[0].selectType = "selectOnly";
- //test.dept.list[0].list.splice(0,1,{"key":"本部门","value":deptId});
- var parentName = test.parent.list[0].list[0].key;
- conditionData.list.push(test.dept.list[0]);
- }
- createConditionsDom(conditionData);
- },error : function(e){
- top.Dialog.alert("系统错误!")
- }
- });
- }
- });
-
- var conditionData = {"list":[
- {"name":"装备状态","className":"EQUIP_STATE","list":[{"key":"全部","value":"value"},{"key":"未调拨","value":"0"},{"key":"已调拨","value":"1"}]}
-
- ]};
-
- $(function(){
- /* 初始化页面布局 */
- var layout = $("#layout1").layout({
- leftWidth : 250,
- space : 10,
- onEndResize : function() {
- g.resetWidth();
- }
- });
- setting = {
- view : {
- selectedMulti : false
- },async : {
- enable : true,
- dataType : 'JSON',
- dataName : 'treeNodes',
- aysnc : false,
- //url : getAsyncUrl,
- url : getAsyncUrl1,
- autoParam : [ "id", "name", "orgLevel" ],
- otherParam : setloadtype_in
- },callback: {
- onClick:zTreeSelect,
- onAsyncSuccess:checkAndSetHeight,//changeFormat.js
- onExpand:checkAndSetHeight
- }
- };
- $.fn.zTree.init($("#treeDept-gzfw"), setting);
-
- $(".l-layout-left").css("top","10px");
- $(".l-layout-center").css("top","10px");
-
- });
-
- var isAdd = false;
- /* function getAsyncUrl(treeId, treeNode) {//包含本部等部门
- return isAdd ? $.pathname() + "/ws/OrganizationsService/OrganizationsService/addOrgInfoById?targetOrg=" + targetOrg
- //: $.pathname() + "/ws/OrganizationsService/OrganizationsService/loadSysOrgInfo2";//不包含上级单位
- : $.pathname() + "/ws/OrganizationsService/OrganizationsService/loadSysOrgInfo20";//包含上级单位
- }; */
- function getAsyncUrl1(treeId, treeNode) {//只包含下级单位,本级单位,上级单位
- //return $.pathname() + "/ws/OrganizationsService/OrganizationsService/getUnitTree";//包含上级单位
- return $.pathname() + "/ws/OrganizationsService/OrganizationsService/getEquipTree";//大类,小类,装备
- };
- var zTree,node,tab;
- var zTreeCompId = "";
- var zTreeINS_UNITS = "";
- var condition = "";
- //点击树节点page/system/department/UserInfoEdit.jsp
- function zTreeSelect(event,treeId,treeNode) {
- equipId = treeNode.id;
- equipName = treeNode.name;
-
- //init(treeNode.id);
- zTreeCompId = treeNode.id;
- zTreeINS_UNITS=treeNode.orgLevel;
- var getUser_id = top.com.sinosoft.lz.system.user.LoginInfo.getUser_id()+"";
- var CorpArea = top.com.sinosoft.lz.system.user.LoginInfo.getCorp_ids();
- var personId = top.com.sinosoft.lz.system.user.LoginInfo.getUser_id();
-
- var i = equipId.split("-").length;
- /*
- if(i == 1 && equipId !="yingjiEquip"){
- condition = params.condition+ " ECM_AM_EQUIPPROPERTY_EQUIPVALUE.IS_DEL = '0' and "+//未删除
- " ECM_AM_EQUIPPROPERTY_EQUIPVALUE.BIGTYPE_ID='"+equipId+"' ";
- }else if(i == 2){
- condition = " ECM_AM_EQUIPPROPERTY_EQUIPVALUE.IS_DEL = '0' and "+//未删除
- " ECM_AM_EQUIPPROPERTY_EQUIPVALUE.SMALLTYPE_ID='"+equipId+"' ";
- }else if(i == 3){
- condition = " ECM_AM_EQUIPPROPERTY_EQUIPVALUE.IS_DEL = '0' and "+//未删除
- " ECM_AM_EQUIPPROPERTY_EQUIPVALUE.EQUIPTYPE_ID='"+equipId+"' ";
- }else if(equipId =="yingjiEquip"){
- condition = " ECM_AM_EQUIPPROPERTY_EQUIPVALUE.IS_DEL = '0' ";
- } */
- var $comp_id = $("#selectConditions").find(".UNITE_ID");
- if(equipId =="yingjiEquip"){
- //判断是否有用单位做查询条件
- if(!!$comp_id.prop("outerHTML")){
- //params为equip.js中search方法赋值的全局变量
- condition =params.condition+ " and ECM_AM_EQUIPPROPERTY_EQUIPVALUE.IS_DEL = '0' ";
- }else{
- condition = " ECM_AM_EQUIPPROPERTY_EQUIPVALUE.IS_DEL = '0' and ECM_AM_EQUIPPROPERTY_EQUIPVALUE.UNITE_ID IN (SELECT DEPT_ID FROM SYS_DEPARTMENT WHERE DEPT_PATH LIKE '%"+CorpArea+"%' AND DEPT_TYPE = '1') ";
- }
- }else{
- //判断是否有用单位做查询条件
- if(!!$comp_id.prop("outerHTML")){
- condition = params.condition+ " and "+//未删除
- " (ECM_AM_EQUIPPROPERTY_EQUIPVALUE.BIGTYPE_ID='"+equipId+"' or ECM_AM_EQUIPPROPERTY_EQUIPVALUE.SMALLTYPE_ID='"+equipId+"' or ECM_AM_EQUIPPROPERTY_EQUIPVALUE.EQUIPTYPE_ID='"+equipId+"')";
- }else{
- condition = " (ECM_AM_EQUIPPROPERTY_EQUIPVALUE.BIGTYPE_ID='"+equipId+"' or ECM_AM_EQUIPPROPERTY_EQUIPVALUE.SMALLTYPE_ID='"+equipId+"' or ECM_AM_EQUIPPROPERTY_EQUIPVALUE.EQUIPTYPE_ID='"+equipId+"') and ECM_AM_EQUIPPROPERTY_EQUIPVALUE.UNITE_ID IN (SELECT DEPT_ID FROM SYS_DEPARTMENT WHERE DEPT_PATH LIKE '%"+CorpArea+"%' AND DEPT_TYPE = '1') ";
- }
-
- }
- condition00 = condition + " ";
- /* if(true){
- if(CorpArea == treeNode.id){//本单位
- }else{//上级或下级单位
- condition = " ECM_AM_EQUIPPROPERTY_EQUIPVALUE.IS_DEL = 0 and "+//未删除
- " ECM_EM_PUBLISH_ALERT_NOTICE.IS_SEND=5 and "+//已发布
- " ECM_EM_PUBLISH_ALERT_NOTICE.IS_ALERT=0 and "+//预警
- " ECM_EM_PUBLISH_ALERT_NOTICE.RELEASE_UNIT='"+treeNode.id+"'";//发布单位为treeNode.id
- }
- }else{
- //condition = "IS_DEL='0' and (PLAN_STAT='1' or PLAN_STAT1='1' or REMARK1='"+ getUser_id +"') and UNITS='"+treeNode.id+"'";
- } */
-
- g.setOptions({//重置加载列表的参数
- params : {
- "listId" : "279",
- "condition" : condition00,
- direction:"DESC",
- sort: " ECM_AM_EQUIPPROPERTY_EQUIPVALUE.UPDATEDATE "//,
- //sublist:" left join ECM_EM_TREATED_HUMAN ",
- //subCondition:" on ECM_EM_PUBLISH_ALERT_NOTICE.FD_OBJECTID=ECM_EM_TREATED_HUMAN.BUSINESS_ID "
- }
- });
-
- g.rend();
- }
-
-
- </script>
- </head>
- <body>
-
- <div id="layout1">
-
- <!-- 左边的单位树end -->
- <div position="left" id="hztitle" style="margin-right:10px; ">
- <ul id="treeDept-gzfw" class="ztree"></ul>
- </div>
- <!-- 左边的单位树end -->
-
-
- <div class="plan_detail" id="plan_detail" position="center">
-
- <!-- 右上--》高级查询start -->
- <div class="box2" panelTitle="" id="searchPanel" statusType="none" style="margin:10px 0">
- <fieldset>
- <form id="queryForm" method="post">
- <table id="table" style="width:100%;">
- <tr>
- <td width="80%">
- <input class="validate[length[0,16]]" type="text" name="EQUIPTYPE_NAME_279" id="EQUIPTYPE_NAME_279" watermark="装备名称" clearable="true" width="300px"/>
- <a id="searchButt"><img src="/nwyj/scripts/qui/libs/icons/toolbar_icons/search_tem.png" alt="" /></a>
- <!-- <button id='searchButt' type="button"><span class="icon_find">查询</span></button> -->
- </td>
- <td width="20%" align="right"><a href="javascript:;"><span class="more_hide" id="more">综合查询 </span></a></td><!-- <span id="more" class="icon_more"> </span> -->
- </tr>
- </table>
- <div id="moreDiv" style="display: none;">
- <!-- 可选条件,改div作为容器,需保留 -->
- <div class="conditions" id="conditions">
- <!-- <ul>
- <li class="condiTitle">单位名称:</li>
- <li><input class="Textinput" id="EARLY_WARNING_ID_365" name="EARLY_WARNING_ID" style="width:194px" type="text"/></li>
- </ul> -->
-
- </div>
- </div>
- </form>
- </fieldset>
- </div>
- <!-- 右上--》高级查询end -->
-
-
- <!-- 右下--》数据列表start -->
- <div class="padding_right5">
- <div id="dataGrid"></div>
- </div>
- <!-- 右下--》数据列表end -->
- </div>
- </div>
-
-
- <!-- <form id="alertResponseNumForm" method="post" style="display: none;">
- <input name="classid" value="368" type="hidden"/>
- <input type="hidden" id="COMPANY_ID_368" name="COMPANY_ID_368"/>
- <input type="hidden" id="YEAR_368" name="YEAR_368"/>
- <input type="hidden" id="NUM_368" name="NUM_368"/>
- <input type="hidden" id="IS_ADJUST_368" name="IS_ADJUST_368" value="F"/>
- <input type="hidden" id="IS_ALERT_368" name="IS_ALERT_368" value="0"/>
- <input type="hidden" id="PLAN_TYPE_ID_368" name="PLAN_TYPE_ID_368" value="-1"/>
- </form> -->
- </body>
- </html>
|