Commit 3857f13a authored by wangjinjing's avatar wangjinjing

项目上传

parents

Too many changes to show.

To preserve performance only 1000 of 1000+ files are displayed.

<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="src" path="src"/>
<classpathentry kind="src" path="config"/>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/jdk1.7.0_67">
<attributes>
<attribute name="owner.project.facets" value="java"/>
</attributes>
</classpathentry>
<classpathentry kind="con" path="org.eclipse.jst.server.core.container/org.eclipse.jst.server.tomcat.runtimeTarget/Apache Tomcat v7.0">
<attributes>
<attribute name="owner.project.facets" value="jst.web"/>
</attributes>
</classpathentry>
<classpathentry kind="con" path="org.eclipse.jst.j2ee.internal.web.container"/>
<classpathentry kind="con" path="org.eclipse.jst.j2ee.internal.module.container"/>
<classpathentry kind="con" path="org.eclipse.jdt.USER_LIBRARY/impnhyw_lib"/>
<classpathentry kind="output" path="WebRoot/WEB-INF/classes"/>
</classpath>
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<launchConfiguration type="org.eclipse.ant.AntBuilderLaunchConfigurationType">
<booleanAttribute key="org.eclipse.ui.externaltools.ATTR_BUILDER_ENABLED" value="false"/>
<stringAttribute key="org.eclipse.ui.externaltools.ATTR_DISABLED_BUILDER" value="org.eclipse.wst.common.project.facet.core.builder"/>
<mapAttribute key="org.eclipse.ui.externaltools.ATTR_TOOL_ARGUMENTS"/>
<booleanAttribute key="org.eclipse.ui.externaltools.ATTR_TRIGGERS_CONFIGURED" value="true"/>
</launchConfiguration>
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<launchConfiguration type="org.eclipse.ant.AntBuilderLaunchConfigurationType">
<booleanAttribute key="org.eclipse.ui.externaltools.ATTR_BUILDER_ENABLED" value="false"/>
<stringAttribute key="org.eclipse.ui.externaltools.ATTR_DISABLED_BUILDER" value="org.eclipse.wst.validation.validationbuilder"/>
<mapAttribute key="org.eclipse.ui.externaltools.ATTR_TOOL_ARGUMENTS"/>
<booleanAttribute key="org.eclipse.ui.externaltools.ATTR_TRIGGERS_CONFIGURED" value="true"/>
</launchConfiguration>
<component name="ArtifactManager">
<artifact type="exploded-war" name="impnhyw:war exploded">
<output-path>$PROJECT_DIR$/out/artifacts/impnhyw_war_exploded</output-path>
<root id="root">
<element id="directory" name="WEB-INF">
<element id="directory" name="classes">
<element id="module-output" name="impnhyw" />
</element>
<element id="directory" name="lib">
<element id="library" level="project" name="lib" />
</element>
</element>
<element id="javaee-facet-resources" facet="impnhyw/web/Web" />
</root>
</artifact>
</component>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="CompilerConfiguration">
<bytecodeTargetLevel target="7" />
</component>
</project>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="Encoding">
<file url="file://$PROJECT_DIR$/WebRoot/frame/login/area/console/index.js" charset="GBK" />
<file url="file://$PROJECT_DIR$/WebRoot/frame/ywlogin/login.js" charset="GBK" />
<file url="file://$PROJECT_DIR$/config/szmap/mainConfig.bak.json" charset="GBK" />
<file url="file://$PROJECT_DIR$/config/szmap/mainConfig.json" charset="GBK" />
<file url="file://$PROJECT_DIR$/config/szmap/mainConfig_CY.json" charset="GBK" />
<file url="file://$PROJECT_DIR$/src/cn/aleader/MainPoint.java" charset="GBK" />
<file url="file://$PROJECT_DIR$/src/cn/base/aspect/OperateAspect.java" charset="GBK" />
<file url="file://$PROJECT_DIR$/src/cn/base/dao/BaseSqlMapDAO.java" charset="GBK" />
<file url="file://$PROJECT_DIR$/src/cn/base/pushlet/AqmgjPushlet.java" charset="GBK" />
<file url="file://$PROJECT_DIR$/src/cn/base/pushlet/TrafficEventAlarmPushlet.java" charset="GBK" />
<file url="file://$PROJECT_DIR$/src/cn/base/pushlet/VideoTaskAlarmPushlet.java" charset="GBK" />
<file url="file://$PROJECT_DIR$/src/cn/base/servlet/CutZoomImageServlet.java" charset="GBK" />
<file url="file://$PROJECT_DIR$/src/cn/bsystem/ptlogin/action/LoginAction.java" charset="GBK" />
<file url="file://$PROJECT_DIR$/src/cn/im/che/action/ClgpssjAction.java" charset="GBK" />
<file url="file://$PROJECT_DIR$/src/cn/im/che/dao/ClgpssjDao.java" charset="GBK" />
<file url="file://$PROJECT_DIR$/src/cn/yw/alarm/action/YwalarmeventinfoAction.java" charset="GBK" />
<file url="PROJECT" charset="GBK" />
</component>
</project>
\ No newline at end of file
<component name="libraryTable">
<library name="lib">
<CLASSES>
<root url="file://$PROJECT_DIR$/WebRoot/WEB-INF/lib" />
<root url="file://$PROJECT_DIR$/lib" />
</CLASSES>
<JAVADOC />
<SOURCES>
<root url="file://$PROJECT_DIR$/WebRoot/WEB-INF/lib" />
</SOURCES>
<jarDirectory url="file://$PROJECT_DIR$/lib" recursive="false" />
<jarDirectory url="file://$PROJECT_DIR$/WebRoot/WEB-INF/lib" recursive="false" />
<jarDirectory url="file://$PROJECT_DIR$/WebRoot/WEB-INF/lib" recursive="false" type="SOURCES" />
</library>
</component>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ProjectRootManager" version="2" languageLevel="JDK_1_7" default="false" project-jdk-name="1.7" project-jdk-type="JavaSDK">
<output url="file://$PROJECT_DIR$/out" />
</component>
</project>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ProjectModuleManager">
<modules>
<module fileurl="file://$PROJECT_DIR$/impnhyw.iml" filepath="$PROJECT_DIR$/impnhyw.iml" />
</modules>
</component>
</project>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="VcsDirectoryMappings">
<mapping directory="" vcs="svn" />
<mapping directory="$PROJECT_DIR$/../.." vcs="Git" />
<mapping directory="$PROJECT_DIR$" vcs="svn" />
</component>
</project>
\ No newline at end of file
This diff is collapsed.
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>impnhyw</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>org.eclipse.jdt.core.javabuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.ui.externaltools.ExternalToolBuilder</name>
<triggers>full,incremental,</triggers>
<arguments>
<dictionary>
<key>LaunchConfigHandle</key>
<value>&lt;project&gt;/.externalToolBuilders/org.eclipse.wst.common.project.facet.core.builder.launch</value>
</dictionary>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.ui.externaltools.ExternalToolBuilder</name>
<triggers>full,incremental,</triggers>
<arguments>
<dictionary>
<key>LaunchConfigHandle</key>
<value>&lt;project&gt;/.externalToolBuilders/org.eclipse.wst.validation.validationbuilder.launch</value>
</dictionary>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>org.eclipse.jem.workbench.JavaEMFNature</nature>
<nature>org.eclipse.wst.common.modulecore.ModuleCoreNature</nature>
<nature>org.eclipse.wst.common.project.facet.core.nature</nature>
<nature>org.eclipse.jdt.core.javanature</nature>
<nature>org.eclipse.wst.jsdt.core.jsNature</nature>
</natures>
</projectDescription>
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry excluding="**/bower_components/*|**/node_modules/*|**/*.min.js" kind="src" path="WebRoot"/>
<classpathentry kind="con" path="org.eclipse.wst.jsdt.launching.JRE_CONTAINER"/>
<classpathentry kind="con" path="org.eclipse.wst.jsdt.launching.WebProject">
<attributes>
<attribute name="hide" value="true"/>
</attributes>
</classpathentry>
<classpathentry kind="con" path="org.eclipse.wst.jsdt.launching.baseBrowserLibrary"/>
<classpathentry kind="output" path=""/>
</classpath>
eclipse.preferences.version=1
org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
org.eclipse.jdt.core.compiler.codegen.methodParameters=do not generate
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.7
org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve
org.eclipse.jdt.core.compiler.compliance=1.7
org.eclipse.jdt.core.compiler.debug.lineNumber=generate
org.eclipse.jdt.core.compiler.debug.localVariable=generate
org.eclipse.jdt.core.compiler.debug.sourceFile=generate
org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
org.eclipse.jdt.core.compiler.source=1.7
XDOCLETBUILDERACTIVE=true
XDOCLETHOME=
XDOCLETUSEGLOBAL=true
XDOCLETVERSION=1.2.1
eclipse.preferences.version=1
eclipse.preferences.version=1
org.eclipse.ltk.core.refactoring.enable.project.refactoring.history=false
<?xml version="1.0" encoding="UTF-8"?><project-modules id="moduleCoreId" project-version="1.5.0">
<wb-module deploy-name="impnhyw">
<wb-resource deploy-path="/" source-path="/WebRoot" tag="defaultRootSource"/>
<wb-resource deploy-path="/WEB-INF/classes" source-path="/src"/>
<wb-resource deploy-path="/WEB-INF/classes" source-path="/config"/>
<property name="context-root" value="impnhyw"/>
<property name="java-output-path" value="/impnhyw/build/classes"/>
</wb-module>
</project-modules>
<?xml version="1.0" encoding="UTF-8"?>
<faceted-project>
<runtime name="Apache Tomcat v7.0"/>
<fixed facet="jst.web"/>
<fixed facet="java"/>
<fixed facet="wst.jsdt.web"/>
<installed facet="java" version="1.7"/>
<installed facet="jst.web" version="3.0"/>
<installed facet="wst.jsdt.web" version="1.0"/>
</faceted-project>
org.eclipse.wst.jsdt.launching.baseBrowserLibrary
\ No newline at end of file
Window
\ No newline at end of file
eclipse.preferences.version=1
org.eclipse.wst.ws.service.policy.projectEnabled=false
<%@ page language="java" import="java.util.*" pageEncoding="gbk"%>
<!DOCTYPE html>
<html>
<head lang="en">
<meta http-equiv="Content-Type" content="text/html; charset=gbk" />
<%@include file="../../frame/assets/header-all.jsp"%>
<style>
.form-line .text-content {
padding-right: 10px;
overflow: hidden;
white-space: nowrap;
width: 140px;
}
label{margin-right: 20px;}
[type="checkbox"]{margin-right:5px;vertical-align: middle;}
.combo-panel{
max-height:200px;
}
</style>
</head>
<body class="easyui-layout" id="mainLayout" style="overflow-y: auto;">
<div id="tabs" class="easyui-tabs" data-options="border:false" style="width:100%;height:100%">
<div title="基本信息">
<div class="node-tableBox">
<div class="form-line clearfix">
<div class="fl">
<span class="text-content"><span class='must'>*</span>登录账号:</span>
<input id="yhzh" class="easyui-textbox" >
<!--
<input id="yhzh" class="easyui-textbox" data-options="events:{blur:onSelectBtypeComboBox}">
-->
</div>
<div class="fl">
<span class="text-content"><span class='must'>*</span>用户名称:</span>
<input id="yhmc" class="easyui-textbox">
</div>
</div>
<div class="form-line clearfix" id="yhmm_div_show">
<div class="fl">
<span class="text-content"><span class='must'>*</span>登录密码:</span>
<input type="password" id="yhmm" class="easyui-textbox" autoget='false'>
</div>
<div class="fl">
<span class="text-content"><span class='must'>*</span>确认密码:</span>
<input type="password" id="yhmmqr" class="easyui-textbox" autoget='false'>
</div>
</div>
<div class="form-line clearfix">
<div class="fl">
<span class="text-content">用户状态:</span> <select
class="easyui-combobox" id="yhzt">
<option value="0">正常</option>
<option value="1">停用</option>
</select>
</div>
<div class="fl">
<span class="text-content">优先级:</span> <select
class="easyui-combobox" id="yhyxj">
<option value="0">优先级1</option>
<option value="1">优先级2</option>
<option value="2">优先级3</option>
<option value="3">优先级4</option>
<option value="4">优先级5</option>
<option value="5">优先级6</option>
<option value="6">优先级7</option>
<option value="7">优先级8</option>
<option value="8">优先级9</option>
<option value="9">最高优先(高)</option>
</select>
</div>
</div>
<div class="form-line clearfix">
<div class="fl">
<span class="text-content">时间限制:</span> <select
class="easyui-combobox" id="sfjs">
<option value="0"></option>
<option value="1"></option>
</select>
</div>
<div class="fl">
<span class="text-content">限制时长:</span> <input
class="easyui-textbox" id="khdlmtsjtx" value="0">
</div>
</div>
<div class="form-line clearfix">
<div class="fl">
<span class="text-content">联系电话:</span> <input
class="easyui-textbox" id="sjhm">
</div>
<div class="fl">
<span class="text-content">身份证号:</span> <input
class="easyui-textbox" id="sfzh">
</div>
</div>
<div class="form-line clearfix">
<div class="fl">
<span class="text-content">联系地址:</span> <input
class="easyui-textbox" id="zz" style="width: 456px;">
</div>
</div>
<div class="form-line clearfix">
<div class="fl">
<span class="text-content">用户描述:</span> <input
class="easyui-textbox" id="ms" style="width: 456px;">
</div>
</div>
</div>
</div>
<div title="登录信息">
<div class="node-tableBox">
<div class="form-line clearfix">
<div class="fl">
<span class="text-content">电脑登录短信校验:</span> <select
class="easyui-combobox" id="dnkhdxdlkg">
<option value="0"></option>
<option value="1"></option>
</select>
</div>
<div class="fl">
<span class="text-content">手机登录短息校验:</span> <select
class="easyui-combobox" id="sjkhdxdlkg">
<option value="0"></option>
<option value="1"></option>
</select>
</div>
</div>
<div class="form-line clearfix">
<div class="fl">
<span class="text-content">短信接收手机号码:</span> <input id="dldxh" class="easyui-textbox">
</div>
<div class="fl">
<span class="text-content">24小时内最大短信数:</span> <input
id="dtdxfszdcs" value=0 class="easyui-textbox">
</div>
</div>
<div class="form-line clearfix">
<div class="fl">
<span class="text-content">启用USBKey登录:</span> <select
class="easyui-combobox" id="dnusbkeydlkg">
<option value="0"></option>
<option value="1"></option>
</select>
</div>
</div>
<div class="form-line clearfix">
<div class="fl">
<span class="text-content">绑定Email地址:</span> <input id="yjdz" class="easyui-textbox" style="width: 456px;">
</div>
</div>
<div class="form-line clearfix">
<div class="fl">
<span class="text-content">允许登录IP地址:</span> <input id="yxdlipsz" class="easyui-textbox" style="width: 456px;">
</div>
</div>
</div>
</div>
<div title="设备权限">
<div class="node-tableBox">
<div class="form-line clearfix">
<div class="fl">
<span class="text-content">绑定警务通:</span> <select
class="easyui-combobox" id="jh">
<option value="0"></option>
<option value="1"></option>
</select>
</div>
<input id="policeAffairs_old" type="hidden" />
<div class="fl">
<span class="text-content">查看告警:</span>
<select class="easyui-combobox" id="ckgjqx">
<option value="0"></option>
<option value="1"></option>
</select>
</div>
</div>
<!-- 新增3个权限 -->
<div class="form-line clearfix">
<div class="fl">
<span class="text-content">接收告警短信:</span>
<select class="easyui-combobox" id="jsdxqx">
<option value="0"></option>
<option value="1"></option>
</select>
</div>
<div class="fl">
<span class="text-content">工单审批权限:</span>
<select class="easyui-combobox" id="gdspqx">
<option value="0"></option>
<option value="1"></option>
</select>
</div>
</div>
<div class="form-line clearfix">
<span class="text-content" style="line-height: 1;">设备权限:</span>
<label><input type="checkbox" id="selectAll" name="selectAll" value="0" onclick="setClickValue('selectAll')">全部</label>
<label><input type="checkbox" id="dqx" name="vdEnable" value="1" onclick="setClickValue('dqx')"></label>
<label><input type="checkbox" id="xqx" name="vdEnable" value="1" onclick="setClickValue('xqx')"></label>
<label><input type="checkbox" id="kqx" name="vdEnable" value="1" onclick="setClickValue('kqx')"></label>
<label><input type="checkbox" id="pqx" name="vdEnable" value="1" onclick="setClickValue('pqx')"></label>
<label><input type="checkbox" id="lxhfqx" name="vdEnable"value="1" onclick="setClickValue('lxhfqx')">回放</label>
<label><input type="checkbox" id="lxxzqx" name="vdEnable"value="1" onclick="setClickValue('lxxzqx')">下载</label>
</div>
</div>
</div>
</div>
<script src='ptyh_show.js'></script>
</body>
</html>
package cn.yw.softwaremanage.bean;
import cn.base.bean.BaseBean;
//[运维应用系统信息表]
public class YwsoftwareinfoBean extends BaseBean implements java.io.Serializable {
private String softwareid;//[应用id]
private String listid;//[]
private String machineid;//[机器id]
private String softwarenum;//[应用编号]
private String softwaretype;//[应用类型]
private String softwarename;//[应用名称]
private String softwareip;//[服务ip]
private String softwareport;//[网管端口]
private int softwareruninterval;//[应用状态上报间隔时间]
private int softwarestatus;//[应用状态]
private String softwarestatusuptime;//[状态上报时间]
private int softwarerestartstatus;//[应用重启状态]
private String softwarerestarttime;//[应用重启时间]
private String softwarerestartaccount;//[应用重启人员]
private String softwaredescribe;//[应用描述]
private String softwareposition;//[位置描述]
private String softwareareanum;//[区域编号]
private int detectionswitch;//[检测开关]
private String detectionstarttime;//[检测开始时间]
private String createaccount;//[创建人员]
private String createtime;//[创建日期]
private String modifyaccount;//[修改人员]
private String modifytime;//[修改日期]
private String remarks;//[备注]
private String extend1;//[扩展1]
private String extend2;//[扩展2]
private String extend3;//[扩展3]
private String extend4;//[扩展4]
public void setSoftwareid(String softwareid){
this.softwareid = softwareid;
}
public String getSoftwareid(){
return softwareid;
}
public void setListid(String listid){
this.listid = listid;
}
public String getListid(){
return listid;
}
public void setMachineid(String machineid){
this.machineid = machineid;
}
public String getMachineid(){
return machineid;
}
public void setSoftwarenum(String softwarenum){
this.softwarenum = softwarenum;
}
public String getSoftwarenum(){
return softwarenum;
}
public void setSoftwaretype(String softwaretype){
this.softwaretype = softwaretype;
}
public String getSoftwaretype(){
return softwaretype;
}
public void setSoftwarename(String softwarename){
this.softwarename = softwarename;
}
public String getSoftwarename(){
return softwarename;
}
public void setSoftwareip(String softwareip){
this.softwareip = softwareip;
}
public String getSoftwareip(){
return softwareip;
}
public void setSoftwareport(String softwareport){
this.softwareport = softwareport;
}
public String getSoftwareport(){
return softwareport;
}
public void setSoftwareruninterval(int softwareruninterval){
this.softwareruninterval = softwareruninterval;
}
public int getSoftwareruninterval(){
return softwareruninterval;
}
public void setSoftwarestatus(int softwarestatus){
this.softwarestatus = softwarestatus;
}
public int getSoftwarestatus(){
return softwarestatus;
}
public void setSoftwarestatusuptime(String softwarestatusuptime){
this.softwarestatusuptime = softwarestatusuptime;
}
public String getSoftwarestatusuptime(){
return softwarestatusuptime;
}
public void setSoftwarerestartstatus(int softwarerestartstatus){
this.softwarerestartstatus = softwarerestartstatus;
}
public int getSoftwarerestartstatus(){
return softwarerestartstatus;
}
public void setSoftwarerestarttime(String softwarerestarttime){
this.softwarerestarttime = softwarerestarttime;
}
public String getSoftwarerestarttime(){
return softwarerestarttime;
}
public void setSoftwarerestartaccount(String softwarerestartaccount){
this.softwarerestartaccount = softwarerestartaccount;
}
public String getSoftwarerestartaccount(){
return softwarerestartaccount;
}
public void setSoftwaredescribe(String softwaredescribe){
this.softwaredescribe = softwaredescribe;
}
public String getSoftwaredescribe(){
return softwaredescribe;
}
public void setSoftwareposition(String softwareposition){
this.softwareposition = softwareposition;
}
public String getSoftwareposition(){
return softwareposition;
}
public void setSoftwareareanum(String softwareareanum){
this.softwareareanum = softwareareanum;
}
public String getSoftwareareanum(){
return softwareareanum;
}
public void setDetectionswitch(int detectionswitch){
this.detectionswitch = detectionswitch;
}
public int getDetectionswitch(){
return detectionswitch;
}
public void setDetectionstarttime(String detectionstarttime){
this.detectionstarttime = detectionstarttime;
}
public String getDetectionstarttime(){
return detectionstarttime;
}
public void setCreateaccount(String createaccount){
this.createaccount = createaccount;
}
public String getCreateaccount(){
return createaccount;
}
public void setCreatetime(String createtime){
this.createtime = createtime;
}
public String getCreatetime(){
return createtime;
}
public void setModifyaccount(String modifyaccount){
this.modifyaccount = modifyaccount;
}
public String getModifyaccount(){
return modifyaccount;
}
public void setModifytime(String modifytime){
this.modifytime = modifytime;
}
public String getModifytime(){
return modifytime;
}
public void setRemarks(String remarks){
this.remarks = remarks;
}
public String getRemarks(){
return remarks;
}
public void setExtend1(String extend1){
this.extend1 = extend1;
}
public String getExtend1(){
return extend1;
}
public void setExtend2(String extend2){
this.extend2 = extend2;
}
public String getExtend2(){
return extend2;
}
public void setExtend3(String extend3){
this.extend3 = extend3;
}
public String getExtend3(){
return extend3;
}
public void setExtend4(String extend4){
this.extend4 = extend4;
}
public String getExtend4(){
return extend4;
}
}
\ No newline at end of file
package cn.bsystem.ptuserrole.service;
import java.sql.SQLException;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import cn.base.bean.BaseService;
import cn.base.util.CommUtils;
import cn.base.util.StringUtil;
import cn.bsystem.ptuserrole.dao.PtyhDao;
import cn.bsystem.ptuserrole.dao.PtyhcdjsDao;
import cn.bsystem.ptuserrole.dao.PtyhhmdlDao;
import cn.bsystem.ptuserrole.dao.PtyhscbfDao;
@Service("ptyhService")
public class PtyhService extends BaseService {
private static Log log = LogFactory.getLog(PtyhService.class);
@Autowired
private PtyhDao ptyhDao;//依赖注入
@Autowired
private PtyhscbfDao ptyhscbfDao;
@Autowired
private PtyhhmdlDao ptyhhmdlDao;
@Autowired
private PtyhcdjsDao ptyhcdjsDao;
/**
* 保存记录
*
* @param
* @return
*/
public void insert_Ptyh(Map map) throws SQLException{
CommUtils.addParams(map, false);
ptyhDao.insert_Ptyh(map);
}
/**
* 修改记录
*
* @param
* @return
*/
public Integer update_Ptyh(Map map) throws SQLException{
CommUtils.validateUpdateParams(map);
CommUtils.addParams(map, true);
return ptyhDao.update_Ptyh(map);
}
/**
* 删除记录
*
* @param
* @return
*/
public Integer delete_Ptyh(Map map) throws SQLException{
CommUtils.validateDeleteParams(map);
Map mm = new HashMap();
//用户删除功能优化
if(!StringUtil.checkEmpty(map.get("yhbh"))){
mm.put("yhbh", map.get("yhbh"));
Map ptyhMap = get_Ptyh(mm);
if(StringUtil.checkEmpty(ptyhMap.get("xh"))){
ptyhMap.put("xh", StringUtil.getUUID());
}
//删除时备份数据到备份表
ptyhscbfDao.insert_Ptyhscbf(ptyhMap);
if(!StringUtil.checkEmpty(ptyhMap.get("yhzh"))){
Map delMap = new HashMap();
delMap.put("yhzh", ptyhMap.get("yhzh"));
//3.平台用户虹膜登录 ptyhhmdl
ptyhhmdlDao.delete_Ptyhhmdl(delMap);
}
if(!StringUtil.checkEmpty(ptyhMap.get("yhbh"))){
Map delMap = new HashMap();
delMap.put("yhbh", ptyhMap.get("yhbh"));
//2。平台用户菜单角色 ptyhcdjs
ptyhcdjsDao.delete_Ptyhcdjs(delMap);
}
}
return ptyhDao.delete_Ptyh(map);
}
/**
* 批处理删除记录
*
* @param
*/
public Integer batch_delete_Ptyh(Map map) throws SQLException{
return ptyhDao.batch_delete_Ptyh(map);
}
/**
* 查询总数
*
* @param
* @return
*/
public Integer count_Ptyh(Map map) throws SQLException{
return ptyhDao.count_Ptyh(map);
}
/**
* 查询列表记录SELECT
*
* @param
* @return
*/
public List<Map> query_Ptyh(Map map) throws SQLException{
return ptyhDao.query_Ptyh(map);
}
/**
* 查询列表记录SELECT
*
* @param
* @return
*/
public Map query_ptyh_ext(Map map) throws SQLException{
List<Map> list = ptyhDao.query_ptyh_ext(map);
Integer totalCount = ptyhDao.count_ptyh_ext(map);
map.clear();
map.put("total", totalCount);
map.put("rows", list);
return map;
}
/**
* 查询一条
*
* @param
* @return
*/
public Map get_Ptyh(Map map) throws SQLException{
return ptyhDao.get_Ptyh(map);
}
/**
* 导出EXCEL
*
* @param
* @return
*/
public Map exportPtyh(Map map) throws SQLException{
return this.listPtyhByPage(map);
}
/**
* Ptyh 分页
* @param map
* @return
* @throws SQLException
*/
public Map listPtyhByPage(Map map) throws SQLException {
List<Map> list = ptyhDao.query_Ptyh(map);
Integer totalCount = ptyhDao.count_Ptyh(map);
map.clear();
map.put("total", totalCount);
map.put("rows", list);
return map;
}
/**
* Ptyh 分页
* @param map
* @return
* @throws SQLException
*/
public Map listPtyh_sbqx_ByPage(Map map) throws SQLException {
List<Map> list = ptyhDao.query_Ptyh_sbqx(map);
Integer totalCount = ptyhDao.count_Ptyh(map);
map.clear();
map.put("total", totalCount);
map.put("rows", list);
return map;
}
/**
* Ptyh 分页
* @param map
* @return
* @throws SQLException
*/
public Map listPtyh_sbjqqx_ByPage(Map map) throws SQLException {
List<Map> list = ptyhDao.query_ptyh_sbjqqx(map);
Integer totalCount = ptyhDao.count_ptyh_sbjqqx(map);
map.clear();
map.put("total", totalCount);
map.put("rows", list);
return map;
}
/**
* Ptyh 分页
* @param map
* @return
* @throws SQLException
*/
public Map listPtyh_sbtpqx_ByPage(Map map) throws SQLException {
List<Map> list = ptyhDao.query_ptyh_sbtpqx(map);
Integer totalCount = ptyhDao.count_ptyh_sbtpqx(map);
map.clear();
map.put("total", totalCount);
map.put("rows", list);
return map;
}
}
<%@ page language="java" import="java.util.*" pageEncoding="gbk"%>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gbk" />
<%@include file="../../../frame/assets/header-all.jsp"%>
<link rel="stylesheet" href="../css/count.css">
<script type="text/javascript" src="../../common/js/echarts/echarts.min.js"></script>
<script type="text/javascript" src="../../common/js/echarts/EchartsBase.js"></script>
<script type="text/javascript" src="jwCount.js"></script>
<style type="text/css">
.deviceAnalysisGraphChartBox{
width:50%;
height:90%;
}
#deviceAnalysisGraphChartBoxTime{
position:absolute;
right: 76px;
top: -15px;
}
#deviceAnalysisGraphChartBoxTime li{
float:left;
margin: 0 1px;
background-color:#e5e5e5;
width:60px;
height:24px;
text-align:center;
line-height:24px;
color:#aaaaaa;
cursor:pointer;
}
#deviceAnalysisGraphChartBoxTime li.active{
color:white;
background-color:#61b760;
}
.searchGridStaticsSplitLine{
position:absolute;
width:1px;
height:380px;
top:10px;
right:30px;
background-color:#e5e5e5;
}
.jwTitle{
font-size: 17px;
font-weight: bold;
text-align: center;
padding:5px 5px;
margin:5px 5px;
}
.jwTime{
font-size: 15px;
text-align: right;
padding:5px 5px;
margin:5px 5px;
}
</style>
</head>
<!-- 设置高度,一行 44px,二行80,三行116-->
<body id="body" class="easyui-layout" >
<div data-options="region:'north',split:false,border:false,collapsible:false" style="height:40px;">
<div class="form-line clearfix">
<div class="fl">
<span class="text-content">行政区划:</span>
<input id="xzmc" class="easyui-textbox" data-options="required:false,validType:'length[0,40]'">
</div>
<div class="fl">
<span class="text-content">统计时间:</span>
<input id="countTime" class="easyui-combobox" data-options="valueField:'id', textField:'text',panelHeight:'auto'">
</div>
<div class="fl" style="display:none;" id="controlDate" >
<span>
<input name="controlStartTime" id="datetimeStart" type="text" class="easyui-datetimebox" placeholder="起始时间">-
&nbsp;&nbsp; &nbsp;&nbsp;
<input name="controlEndTime" id="datetimeEnd" type="text" class="easyui-datetimebox" placeholder="截止时间">
</span>
</div>
</div>
</div>
<div data-options="region:'center',split:false,border:false">
<div class="datagrid-toolbar" style="border-top: 1px solid #ccc;"><table cellspacing="0" cellpadding="0"><tbody><tr><td><a onclick="showList()" href="javascript:;" class="l-btn l-btn-small l-btn-plain" group="" id=""><span class="l-btn-left l-btn-icon-left"><span class="l-btn-text">统计列表</span><span class="l-btn-icon icon-search">&nbsp;</span></span></a></td><td><a onclick="showGraph()" href="javascript:;" class="l-btn l-btn-small l-btn-plain" group="" id=""><span class="l-btn-left l-btn-icon-left"><span class="l-btn-text">统计图</span><span class="l-btn-icon icon-search">&nbsp;</span></span></a></td><td><a onclick="doExport()" href="javascript:;" class="l-btn l-btn-small l-btn-plain" group="" id=""><span class="l-btn-left l-btn-icon-left"><span class="l-btn-text">导出</span><span class="l-btn-icon icon-search">&nbsp;</span></span></a></td><td><a onclick="showCompute('')" href="javascript:;" class="l-btn l-btn-small l-btn-plain" group="" id=""><span class="l-btn-left l-btn-icon-left"><span class="l-btn-text">计算公式</span><span class="l-btn-icon icon-search">&nbsp;</span></span></a></td></tr></tbody></table><table cellspacing="0" cellpadding="0" style="display:inline-block;height:26px;float:right;"><tbody><tr></tr></tbody></table></div>
<div style="height:430px;" id="searchGridPicDiv">
<div id='searchGridGraph' style="height:100%;width:100%;"></div>
</div>
<div style="height:100%;display:none;margin:0 auto;" id="searchGridListDiv" >
<!-- <table id='searchGridList'></table> -->
<div style="height:100%;width:100%;">
<div class="jwTitle" style=""><span>经纬度采集率统计</span></div>
<div class="jwTime" style="">制表时间:<span id="timeTJ">2018-12-20 11:11:11</span></div>
<div style="padding:5px 5px;margin:5px 5px;" id='' >
<table cellspacing="0" width="100%" cellpadding="0" border="1" align="center" style="text-align:center;margin:0 auto;">
<thead>
<tr>
<th >序号</th>
<th >行政区划</th>
<th >监控点总数</th>
<th >无经纬度数</th>
<th >经纬度缺失数</th>
<th >经纬度无效数</th>
<th >经纬度完整数</th>
<th >经纬度采集率</th>
</tr>
</thead>
<tbody id='searchGridList'>
</tbody>
</table>
</div>
</div>
</div>
</div>
<form action="" method="post" name="excelForm" id="excelForm" style="display: none;">
</form>
</body>
</html>
.propertygrid .datagrid-view1 .datagrid-body td {
padding-bottom: 1px;
border-width: 0 1px 0 0;
}
.propertygrid .datagrid-group {
height: 21px;
overflow: hidden;
border-width: 0 0 1px 0;
border-style: solid;
}
.propertygrid .datagrid-group span {
font-weight: bold;
}
.propertygrid .datagrid-view1 .datagrid-body td {
border-color: #dddddd;
}
.propertygrid .datagrid-view1 .datagrid-group {
border-color: #E0ECFF;
}
.propertygrid .datagrid-view2 .datagrid-group {
border-color: #dddddd;
}
.propertygrid .datagrid-group,
.propertygrid .datagrid-view1 .datagrid-body,
.propertygrid .datagrid-view1 .datagrid-row-over,
.propertygrid .datagrid-view1 .datagrid-row-selected {
background: #E0ECFF;
}
/**
* EasyUI for jQuery 1.5.4.2
*
* Copyright (c) 2009-2018 www.jeasyui.com. All rights reserved.
*
* Licensed under the freeware license: http://www.jeasyui.com/license_freeware.php
* To use it on other terms please contact us: info@jeasyui.com
*
*/
(function($){
function _1(_2){
var _3=$.data(_2,"datebox");
var _4=_3.options;
$(_2).addClass("datebox-f").combo($.extend({},_4,{onShowPanel:function(){
_5(this);
_6(this);
_7(this);
_18(this,$(this).datebox("getText"),true);
_4.onShowPanel.call(this);
}}));
if(!_3.calendar){
var _8=$(_2).combo("panel").css("overflow","hidden");
_8.panel("options").onBeforeDestroy=function(){
var c=$(this).find(".calendar-shared");
if(c.length){
c.insertBefore(c[0].pholder);
}
};
var cc=$("<div class=\"datebox-calendar-inner\"></div>").prependTo(_8);
if(_4.sharedCalendar){
var c=$(_4.sharedCalendar);
if(!c[0].pholder){
c[0].pholder=$("<div class=\"calendar-pholder\" style=\"display:none\"></div>").insertAfter(c);
}
c.addClass("calendar-shared").appendTo(cc);
if(!c.hasClass("calendar")){
c.calendar();
}
_3.calendar=c;
}else{
_3.calendar=$("<div></div>").appendTo(cc).calendar();
}
$.extend(_3.calendar.calendar("options"),{fit:true,border:false,onSelect:function(_9){
var _a=this.target;
var _b=$(_a).datebox("options");
_b.onSelect.call(_a,_9);
_18(_a,_b.formatter.call(_a,_9));
$(_a).combo("hidePanel");
}});
}
$(_2).combo("textbox").parent().addClass("datebox");
$(_2).datebox("initValue",_4.value);
function _5(_c){
var _d=$(_c).datebox("options");
var _e=$(_c).combo("panel");
_e.unbind(".datebox").bind("click.datebox",function(e){
if($(e.target).hasClass("datebox-button-a")){
var _f=parseInt($(e.target).attr("datebox-button-index"));
_d.buttons[_f].handler.call(e.target,_c);
}
});
};
function _6(_10){
var _11=$(_10).combo("panel");
if(_11.children("div.datebox-button").length){
return;
}
var _12=$("<div class=\"datebox-button\"><table cellspacing=\"0\" cellpadding=\"0\" style=\"width:100%\"><tr></tr></table></div>").appendTo(_11);
var tr=_12.find("tr");
for(var i=0;i<_4.buttons.length;i++){
var td=$("<td></td>").appendTo(tr);
var btn=_4.buttons[i];
var t=$("<a class=\"datebox-button-a\" href=\"javascript:;\"></a>").html($.isFunction(btn.text)?btn.text(_10):btn.text).appendTo(td);
t.attr("datebox-button-index",i);
}
tr.find("td").css("width",(100/_4.buttons.length)+"%");
};
function _7(_13){
var _14=$(_13).combo("panel");
var cc=_14.children("div.datebox-calendar-inner");
_14.children()._outerWidth(_14.width());
_3.calendar.appendTo(cc);
_3.calendar[0].target=_13;
if(_4.panelHeight!="auto"){
var _15=_14.height();
_14.children().not(cc).each(function(){
_15-=$(this).outerHeight();
});
cc._outerHeight(_15);
}
_3.calendar.calendar("resize");
};
};
function _16(_17,q){
_18(_17,q,true);
};
function _19(_1a){
var _1b=$.data(_1a,"datebox");
var _1c=_1b.options;
var _1d=_1b.calendar.calendar("options").current;
if(_1d){
_18(_1a,_1c.formatter.call(_1a,_1d));
$(_1a).combo("hidePanel");
}
};
function _18(_1e,_1f,_20){
var _21=$.data(_1e,"datebox");
var _22=_21.options;
var _23=_21.calendar;
_23.calendar("moveTo",_22.parser.call(_1e,_1f));
if(_20){
$(_1e).combo("setValue",_1f);
}else{
if(_1f){
_1f=_22.formatter.call(_1e,_23.calendar("options").current);
}
$(_1e).combo("setText",_1f).combo("setValue",_1f);
}
};
$.fn.datebox=function(_24,_25){
if(typeof _24=="string"){
var _26=$.fn.datebox.methods[_24];
if(_26){
return _26(this,_25);
}else{
return this.combo(_24,_25);
}
}
_24=_24||{};
return this.each(function(){
var _27=$.data(this,"datebox");
if(_27){
$.extend(_27.options,_24);
}else{
$.data(this,"datebox",{options:$.extend({},$.fn.datebox.defaults,$.fn.datebox.parseOptions(this),_24)});
}
_1(this);
});
};
$.fn.datebox.methods={options:function(jq){
var _28=jq.combo("options");
return $.extend($.data(jq[0],"datebox").options,{width:_28.width,height:_28.height,originalValue:_28.originalValue,disabled:_28.disabled,readonly:_28.readonly});
},cloneFrom:function(jq,_29){
return jq.each(function(){
$(this).combo("cloneFrom",_29);
$.data(this,"datebox",{options:$.extend(true,{},$(_29).datebox("options")),calendar:$(_29).datebox("calendar")});
$(this).addClass("datebox-f");
});
},calendar:function(jq){
return $.data(jq[0],"datebox").calendar;
},initValue:function(jq,_2a){
return jq.each(function(){
var _2b=$(this).datebox("options");
var _2c=_2b.value;
if(_2c){
_2c=_2b.formatter.call(this,_2b.parser.call(this,_2c));
}
$(this).combo("initValue",_2c).combo("setText",_2c);
});
},setValue:function(jq,_2d){
return jq.each(function(){
_18(this,_2d);
});
},reset:function(jq){
return jq.each(function(){
var _2e=$(this).datebox("options");
$(this).datebox("setValue",_2e.originalValue);
});
}};
$.fn.datebox.parseOptions=function(_2f){
return $.extend({},$.fn.combo.parseOptions(_2f),$.parser.parseOptions(_2f,["sharedCalendar"]));
};
$.fn.datebox.defaults=$.extend({},$.fn.combo.defaults,{panelWidth:180,panelHeight:"auto",sharedCalendar:null,keyHandler:{up:function(e){
},down:function(e){
},left:function(e){
},right:function(e){
},enter:function(e){
_19(this);
},query:function(q,e){
_16(this,q);
}},currentText:"Today",closeText:"Close",okText:"Ok",buttons:[{text:function(_30){
return $(_30).datebox("options").currentText;
},handler:function(_31){
var _32=$(_31).datebox("options");
var now=new Date();
var _33=new Date(now.getFullYear(),now.getMonth(),now.getDate());
$(_31).datebox("calendar").calendar({year:_33.getFullYear(),month:_33.getMonth()+1,current:_33});
_32.onSelect.call(_31,_33);
_19(_31);
}},{text:function(_34){
return $(_34).datebox("options").closeText;
},handler:function(_35){
$(this).closest("div.combo-panel").panel("close");
}}],formatter:function(_36){
var y=_36.getFullYear();
var m=_36.getMonth()+1;
var d=_36.getDate();
return (m<10?("0"+m):m)+"/"+(d<10?("0"+d):d)+"/"+y;
},parser:function(s){
if(!s){
return new Date();
}
var ss=s.split("/");
var m=parseInt(ss[0],10);
var d=parseInt(ss[1],10);
var y=parseInt(ss[2],10);
if(!isNaN(y)&&!isNaN(m)&&!isNaN(d)){
return new Date(y,m-1,d);
}else{
return new Date();
}
},onSelect:function(_37){
}});
})(jQuery);
<%@ page language="java" import="java.util.*" pageEncoding="gbk"%>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gbk" />
<%@include file="../../../frame/assets/header-all.jsp"%>
<script type="text/javascript" src="nhywjthlgl.js"></script>
<script type="text/javascript" src=""></script>
<style>
/*
.form-line .text-content {
width: 115px;
}
*/
</style>
</head>
<!-- 设置高度,一行 44px,二行80,三行116-->
<body class="easyui-layout" >
<div data-options="region:'north'" id='north' style="height: 44px;border-bottom: none">
<div class="form-line clearfix">
<div class='fl'>
<span class="text-content">护栏编号:</span>
<input class="easyui-textbox" id="LIKEhlbh" data-options="validType:'length[0,40]'">
</div>
<div class='fl'>
<span class="text-content">护栏类型:</span>
<input class="easyui-combobox" id="LIKEhllx" data-options="valueField:'id', textField:'text',panelHeight:'auto'">
</div>
<div class='fl'>
<span class="text-content">护栏名称:</span>
<input class="easyui-textbox" id="LIKEhlmc" data-options="validType:'length[0,128]'">
</div>
</div>
<div class="form-line hidden">
<div class='fl'>
<span class="text-content">序号:</span>
<input class="easyui-textbox" id="LIKExh" data-options="validType:'length[0,40]'" >
</div>
<div class='fl'>
<span class="text-content">护栏品牌:</span>
<input id="LIKEhlpp" data-options="validType:'length[0,40]'" >
</div>
<div class='fl'>
<span class="text-content">规格型号:</span>
<input id="LIKEggxh" data-options="validType:'length[0,40]'" >
</div>
<div class='fl'>
<span class="text-content">护栏材质:</span>
<input id="LIKEhlcz" data-options="validType:'length[0,40]'" >
</div>
<div class='fl'>
<span class="text-content">护栏长度:</span>
<input id="LIKEhlcd" data-options="validType:'length[0,40]'" >
</div>
<div class='fl'>
<span class="text-content">安装时间:</span>
<input id="LIKEazsj" data-options="validType:'length[0,19]'" >
</div>
<div class='fl'>
<span class="text-content">安装单位:</span>
<input id="LIKEazdw" data-options="validType:'length[0,40]'" >
</div>
<div class='fl'>
<span class="text-content">护栏价值:</span>
<input id="LIKEhljz" data-options="validType:'length[0,10]'" >
</div>
<div class='fl'>
<span class="text-content">使用年限:</span>
<input id="LIKEsynx" data-options="validType:'length[0,10]'" >
</div>
<div class='fl'>
<span class="text-content">经度:</span>
<input id="LIKEjd" data-options="validType:'length[0,40]'" >
</div>
<div class='fl'>
<span class="text-content">维度:</span>
<input id="LIKEwd" data-options="validType:'length[0,40]'" >
</div>
<div class='fl'>
<span class="text-content">实景照片:</span>
<input id="LIKEsjzp" data-options="validType:'length[0,256]'" >
</div>
<div class='fl'>
<span class="text-content">管辖单位编码:</span>
<input id="LIKEgxdwbm" data-options="validType:'length[0,40]'" >
</div>
<div class='fl'>
<span class="text-content">管辖单位名称:</span>
<input id="LIKEgxdwmc" data-options="validType:'length[0,128]'" >
</div>
<div class='fl'>
<span class="text-content">联系人:</span>
<input id="LIKElxr" data-options="validType:'length[0,40]'" >
</div>
<div class='fl'>
<span class="text-content">联系电话:</span>
<input id="LIKElxdh" data-options="validType:'length[0,40]'" >
</div>
<div class='fl'>
<span class="text-content">供应商编号:</span>
<input id="LIKEgysbh" data-options="validType:'length[0,40]'" >
</div>
<div class='fl'>
<span class="text-content">供应商名称:</span>
<input id="LIKEgysmc" data-options="validType:'length[0,128]'" >
</div>
<div class='fl'>
<span class="text-content">创建人员:</span>
<input id="LIKEcjry" data-options="validType:'length[0,40]'" >
</div>
<div class='fl'>
<span class="text-content">创建日期:</span>
<input id="LIKEcjrq" data-options="validType:'length[0,19]'" >
</div>
<div class='fl'>
<span class="text-content">修改人员:</span>
<input id="LIKExgry" data-options="validType:'length[0,40]'" >
</div>
<div class='fl'>
<span class="text-content">修改日期:</span>
<input id="LIKExgrq" data-options="validType:'length[0,19]'" >
</div>
<div class='fl'>
<span class="text-content">备注:</span>
<input id="LIKEbz" data-options="validType:'length[0,80]'" >
</div>
<div class='fl'>
<span class="text-content">扩展1:</span>
<input id="LIKEkz1" data-options="validType:'length[0,64]'" >
</div>
<div class='fl'>
<span class="text-content">扩展2:</span>
<input id="LIKEkz2" data-options="validType:'length[0,64]'" >
</div>
<div class='fl'>
<span class="text-content">扩展3:</span>
<input id="LIKEkz3" data-options="validType:'length[0,64]'" >
</div>
<div class='fl'>
<span class="text-content">扩展4:</span>
<input id="LIKEkz4" data-options="validType:'length[0,64]'" >
</div>
</div>
</div>
<div data-options="region:'center',split:false" class="easyui-layout">
<table id='tableGrid'></table>
</div>
<form action="" method="post" name="excelForm" id="excelForm" style="display: none;">
</form>
</body>
</html>
<%@ page language="java" import="java.util.*" pageEncoding="gbk"%>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gbk" />
<%@include file="../../../frame/assets/header-all.jsp"%>
<script type="text/javascript" src="nhywgysxx.js"></script>
<script type="text/javascript" src=""></script>
<style>
/*
.form-line .text-content {
width: 115px;
}
*/
</style>
</head>
<!-- 设置高度,一行 44px,二行80,三行116-->
<body class="easyui-layout" >
<div data-options="region:'west',split:true" id='north' title='供应商信息' style="height: 90%; width: 370px; background: #fff; overflow-y: auto;overflow-x: hidden">
<form action="" method="post" name="excelForm" id="excelForm">
<div data-options="region:'north'">
<div class="form-line clearfix">
<div class='fl'>
<span class="text-content">供应商名称:</span>
<input class="easyui-textbox" name="LIKEgysmc" id="LIKEgysmc" data-options="validType:'length[0,128]'">
</div>
</div>
</div>
</form>
<div data-options="region:'center',fit:true" class="easyui-layout">
<table id='tableGrid'></table>
</div>
</div>
<div data-options="region:'center',split:true,border:false" class="easyui-layout" title='人员信息'>
<iframe scrolling="no" id='nhywgysglryxx' frameborder="0" src="" style="width:100%;height:99%;"></iframe>
</div>
</body>
</html>
package cn.base.conf;
import java.io.File;
import org.apache.commons.digester.Digester;
import org.apache.log4j.Logger;
public class ModuleConfManager {
static private final Logger logger = Logger.getLogger(ModuleConfManager.class);
private static ModuleConfManager moduleConfManager = new ModuleConfManager();
public static ModuleConfManager getInstance() {
return moduleConfManager;
}
private void addObjectRule(Digester digester, String nodeName,Class classObject) {
digester.addObjectCreate("imp/"+nodeName, classObject);
digester.addSetProperties("imp/"+nodeName);
//设置顶栈和第二顶栈(parent)之间的关系
digester.addSetNext("imp/"+nodeName, "set"+ nodeName.substring(0, 1).toUpperCase()+nodeName.substring(1));
digester.addObjectCreate("imp/"+nodeName+"/node", Node.class);
digester.addSetProperties("imp/"+nodeName+"/node");
digester.addSetNext("imp/"+nodeName+"/node", "addNode");
}
private void addObjectRule2(Digester digester, String nodeName,Class classObject) {
digester.addObjectCreate("moduleProps/"+nodeName, classObject);
digester.addSetProperties("moduleProps/"+nodeName);
//设置顶栈和第二顶栈(parent)之间的关系
digester.addSetNext("moduleProps/"+nodeName, "set"+ nodeName.substring(0, 1).toUpperCase()+nodeName.substring(1));
digester.addObjectCreate("moduleProps/"+nodeName+"/node", Node.class);
digester.addSetProperties("moduleProps/"+nodeName+"/node");
digester.addSetNext("moduleProps/"+nodeName+"/node", "addNode");
}
public ModuleConfFactory parseAppXml(String xmlPath,ModuleConfFactory props) {
String path = ModuleConfManager.class.getResource("/").getFile()+xmlPath;
if(xmlPath.contains(":"))path=xmlPath; //windows 绝对路径
if(xmlPath.charAt(0)=='/')path=xmlPath; //linux 绝对路径
if(xmlPath.startsWith("\\")==true)path=xmlPath; //网络共享绝对路径
logger.debug("parseAppXml:xmlPath="+xmlPath);
File file = new File(path);
//解析
Digester digester = new Digester();
digester.push(props);
// add rules解析规则方法
addObjectRule(digester, "scatter", Scatter.class);
addObjectRule(digester, "ice", Ice.class);
addObjectRule(digester, "db", Db.class);
addObjectRule(digester, "amq", Amq.class);
addObjectRule(digester, "oracleDB", OracleDB.class);
addObjectRule(digester, "es", Es.class);
addObjectRule(digester, "email", Email.class);
addObjectRule(digester, "dac", Dac.class);
addObjectRule(digester, "ditu", Ditu.class);
addObjectRule(digester, "ftps", Ftps.class);
addObjectRule(digester, "webrtc", Webrtc.class);
addObjectRule(digester, "traffAccident", TraffAccident.class);
addObjectRule(digester, "impagent", Impagent.class);
addObjectRule(digester, "roadDirection", RoadDirection.class);
addObjectRule(digester, "ywsoftware", Ywsoftware.class);
addObjectRule(digester, "ywDp", YwDp.class);
addObjectRule(digester, "videoTaskAlarm", VideoTaskAlarm.class);
try {
props = (ModuleConfFactory) digester.parse(file);
props.init();
} catch (Exception e) {
logger.error("文件:"+path+":解析错误,请检查文件是否正确!",e);
}
return props;
}
}
<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1506672159123" class="icon" style="" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="903" xmlns:xlink="http://www.w3.org/1999/xlink" width="16" height="16"><defs><style type="text/css"></style></defs><path d="M911.2 668 400.8 668c-24.8 0-44.8-21.6-44.8-48s20-48 44.8-48l510.4 0c24.8 0 44.8 21.6 44.8 48S936 668 911.2 668zM911.2 444 400.8 444c-24.8 0-44.8-21.6-44.8-48s20-48 44.8-48l510.4 0c24.8 0 44.8 21.6 44.8 48S936 444 911.2 444zM908 228l-781.6 0c-26.4 0-49.6-20-50.4-46.4-0.8-27.2 20.8-49.6 48-49.6l781.6 0c26.4 0 49.6 20 50.4 46.4C956.8 205.6 935.2 228 908 228zM76 667.2 76 348.8c0 0 0 0 0 0l223.2 159.2c0 0 0 0 0 0L76 667.2C76 668 76 668 76 667.2zM124 788l781.6 0c26.4 0 49.6 20 50.4 46.4 0.8 27.2-20.8 49.6-48 49.6l-781.6 0c-26.4 0-49.6-20-50.4-46.4C75.2 810.4 96.8 788 124 788z" p-id="904" fill="#1296db"></path></svg>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment