- 浏览: 56210 次
最新评论
文章列表
public class BaseController {
/**
* 通过指定的bean处理业务,非核心流程,不能支持java 动态代理对象@transactional注解的类
* @param bean
* @throws Throwable
*/
@SuppressWarnings("unchecked")
protected void process(BeanBase bean) throws Throwable {
bean.setDatas(Util.converToBean(bean));
String ...
jqgrid表头过长,如果table的header部分字段太多或字段文字太长需要自动换行时,可尝试如下css。
<style type="text/css">
th.ui-th-column div {
white-space: normal !important;
height: auto !important;
padding: 0px;
}
</style>
package com.sf.novatar.tpl.util;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import javax.annotation.PostConstruct;
import javax.annotation.Resource;
import org.springframework.stereotype.Component;
import com.sf.novatar.tpl.dao.IConfigurationDao;
@Component("conf ...
function fileDownload(id,imageDataName) {
var params ;
params = "&content=" + "id:"+id+"|imageDataName:" + imageDataName;
params = "&needcontrolprocess=taxFavInfo.downloadImageData" + params;
if (id) {
art.dialog({
title : ...
<script type="text/javascript">
$("#dataForm").validate({
//debug: true,
rules: {
attachment:"required"
},
messages: {
attachment: "附件不能为空"
},
errorPlacement: function(error, element) {
var classes = elem ...
eclipse下集成mybatis插件
//jsp页面代码
<%@ page contentType="text/html;charset=UTF-8"%>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>文件上传</title>
<%-- <script type="text/javascript" src="${ctx}/pc-rs/nova ...
package com.sf.novatar.plf.controller;
import java.io.File;
import java.io.IOException;
import java.io.PrintWriter;
import java.util.Iterator;
import java.util.List;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;
...
package com.sf.novatar.tpl.util;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
import java.text.SimpleDateFormat;
import java.util.Collection;
import java.util.Date; ...
package com.sf.novatar.plf.utils;
import java.io.File;
import java.io.UnsupportedEncodingException;
import java.net.MalformedURLException;
import java.net.URL;
import javax.activation.DataHandler;
import javax.activation.FileDataSource;
import javax.mail.MessagingException;
import javax ...