2015 年文章归档
共 21 篇文章
LODOP插件开发
function zkPreview() { LODOP=getLodop(); LODOP.PRINT_INIT("test套打001"); LODOP.SET_PRINT_PAGESIZE(1,'180mm','150mm',''); //设置纸张高度 LODOP.ADD_PRINT_HTM(0,149,157,'100%',"<span style='position:absolute;color:red;font-size:10px;width:200px;'>客户公司名称233333333333333333333333--------------------333333333333…
2015-09-22 19:45 · WebUi
窗体居中显示
1) 居中显示窗体 function(jqueryObj,widthValue,heightValue) { var leftValue = ($(window).width() - widthValue) / 2; var topValue = ($(window).height() - heightValue) / 2; $(jqueryObj).css({"left":leftValue,"top":topValue}); };
2015-09-21 17:06 · WebUi
MySQL
查看对应的ID SHOW PROCESSLIST; KILL process_id 当然可以使用 kill 29483; kill 29484; kill 33038; kill 33047; kill 33052; kill 33053; kill 33122;
2015-09-07 16:01 · MySQL
MAVEN 根据不同的profile 加载不同的jar
1)maven lib 文件 <dependency> <groupId>ebaoquan.org</groupId> <artifactId>themis</artifactId> <version>2014V1</version> <scope>system</scope> <systemPath> ${project.basedir}/lib/themis-sdk-1.1.2.jar </systemPath> </dependency> 2)xml文件 <profiles> <profile> <!-- 本地开发环境 --> <id>dev</id> <properties> <pr…
2015-08-19 15:39 · maven3
JS 拖动效果
原理 A(Xs,Ys)、B(Xd,Yd) Xj = Xd - Xs Yj = Yd - Ys 变量点 (a,b)鼠标点 a - Xj = x b - Yj = y 1)html 文件 注意:position:fixed 是为了滚动固定 <div style="z-index: 300;position:fixed;left: 400px;top: 79px;border: 1px solid #ff3322;background-color: white;" id="uuuu"> JS拖动</div> 2)拖动JS Zkj.drugWindow = function(jqueryFind){…
2015-08-13 11:51 · WebUi
Web分页控件封闭
1)引入对应JS源码 jquery.simplePagination.js /** * simplePagination.js v1.6 * A simple jQuery pagination plugin. * http://flaviusmatis.github.com/simplePagination.js/ * * Copyright 2012, Flavius Matis * Released under the MIT license. * http://flaviusmatis.github.com/license.html */ (function($){ var meth…
2015-08-08 18:06 · WebUi
Spring mvc Token
request.getSession(false).setAttribute("tokenTzdr", UUID.randomUUID()); html 添加 内容 <input type="hidden" name="tokenTzdr" value="${tokenTzdr}" /> 判断内容 Object tokenTzdrObj = request.getSession(false).getAttribute("tokenTzdr"); if (object != null && tokenTzdrObj != null && String.valueOf(tokenTzdrObj)…
2015-08-03 19:40 · Spring
CAS 客户端与一般Web项目集成
这一段时间有同事在问CAS -Client的问题这里就基本问分析一下 1)由于CAS-Server 登录后客户端会记入自动session中(部署WebApp-Server) 所以我们只需要获取对应的Principal 在获取其中的信息 2)根据Principal 注册登录 HttpServletResponse resp = (HttpServletResponse)response; HttpSession session = req.getSession(); if (session != null) { Object obj = session.getAttribute(Abstrac…
2015-07-04 16:20 · CoreJava
CAS-项目集成问题整理
javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path validation failed: java.security.cert.CertPathValidatorException: signature check failed 是因为jre 中没有导入证书。一般是由于你的服务器/开发机,有多个JRE
2015-07-04 15:24 · CoreJava
CAS 与Tomcat 集成
第一节:生成证书 第一步:生成keystore注意【cn=www.xxx.com】这个一般为域名或者地址不同会出现no match dname keytool -genkey -keyalg RSA -alias tomcatmycas -dname "cn=localhost" -storepass 123456 -keystore f:\api\keyserver.keystore 第二步:导出证书 keytool -export -alias tomcatmycas -file D:\Java\jdk1.7.0_71\jre\lib\security\tomcatmycas.crt -…
2015-06-29 15:16 · CoreJava
MySql表的数据量查询
SELECT * FROM information_schema.TABLES WHERE TABLE_SCHEMA = 'mbb'
2015-04-18 09:29 · Software Manager
windwos 进和商品查询
1) 根据端口 “443” netstat -aon |findstr "443" TCP 0.0.0.0:443 0.0.0.0:0 LISTENING 9860 TCP 127.0.0.1:5905 127.0.0.1:49443 ESTABLISHED 2276 TCP 127.0.0.1:49443 127.0.0.1:5905 ESTABLISHED 2276 TCP [::]:443 [::]:0 LISTENING 9860 2)进程号“9860” tasklist|findstr "9860"
2015-04-11 10:59 · Windows
logback 日志配置生成当天志并分大小
<?xml version="1.0" encoding="UTF-8"?> <configuration> <appender name="stdout" class="ch.qos.logback.core.ConsoleAppender"> <encoder> <pattern>%d %p [%c] - <%m>%n</pattern> </encoder> </appender> <substitutionProperty name="log.base" value="e:\\umn" /> <appender name="logfile" class="ch.qos.l…
2015-03-26 17:00 · CoreJava
Mysql锁表问题
1)查询锁表问题 show open tables where in_use > 0 2)解除所有锁 unlock tables 3)锁表 lock tables data_map READ
2015-03-26 09:57 · CoreJava
excel 导出文件中文问题
package com.tzdr.common.utils; import java.io.ByteArrayInputStream; import java.io.ByteArrayOutputStream; import java.io.IOException; import java.io.InputStream; import java.io.OutputStream; import java.io.Serializable; import java.io.UnsupportedEncodingException; import java.lang.reflect.Field; im…
2015-03-24 23:39 · CoreJava
maven 添加外部包
<?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> <modelVersion>4.0.0</modelVersion> <groupId>com.zk.mgun…
2015-03-24 23:34 · maven3
easyui selectRecord 选中行
1) 表格datagrid 只要加入idField = "id" 刷新后依然是选中状态 <table id="dg001" class="easyui-datagrid" toolbar="#dg001Toolbar" width="100%" url="${ctx}/admin/rechargeReview/listData" idField="id" pagination="true" data-options="checkOnSelect:true" rownumbers="true" fitColumns="true" singleSelect="true"> <thead> <tr…
2015-03-20 09:06 · WebUi
easyui queryParam 自动化
/** * @author LiuQing */ function Check() { }; Check.messageBox = function messageBox(title,bodyText,type) { if (!type || type == "") { type = "info" } $.messager.alert(title,bodyText,type); }; /** * 查询语句 * @param gridId String * @param formId String */ Check.datagridQuery = function datagridQuery(…
2015-02-13 11:25 · WebUi
HttpURLConnection Post
/** * Http访问 * @param httpUrl String * @param parameters Map<String,String> * @return String * @throws IOException */ public static synchronized String httpClient(String httpUrl,Map<String,String> parameters) throws IOException { URL url = new URL(httpUrl); HttpURLConnection conn = (HttpURLConnecti…
2015-02-04 17:08 · CoreJava