`
文章列表
<script> $(function(){ $('#dataFileControl').datagrid({ url: 'audit/sysAuditAction!list.do', title: '', width: 'auto', height: '400', //fitColumns: true, //showFooter:true, nowrap:false, autoRowHeight: false, striped: true, collapsible:true, so ...

reset与clear的区别

reset()方法给人一种假象,其实并没有真正的清空表单而是将表单回复到了预设状态,真正的清空是clear。 document.form1.reset();将表单恢复到预设状态 $('#form1').form('clear');清空表单  
var ids = []; var rows = $('#dataFileControl').datagrid('getChecked'); for(var i=0;i<rows.length;i++){ ids.push(rows[i].batchNo); } alert(ids.join(':'));  
//时间控件 $(function(){ $("#panel_reportingPeriod").datebox({ formatter:formatDate }); }) //格式化时间 function formatDate(date){ var y = date.getFullYear(); var m = date.getMonth()+1; var d = date.getDate(); return y+""+(m<10?"0"+m:m)+" ...
var queryParams = $('#dataFileControl').datagrid('options').queryParams; queryParams.panel_Source=$("#panel_Source").combobox('getValue'); queryParams.panel_AreaBank=$("#panel_AreaBank").val(); queryParams.file_station=$("#file_st ...
struts2除了自身提供的类型转换以为,还允许自定义类型转换器,首先表单中的name属性必须和action中的属性同名,然后编写自定义的TypeConverter,可以实现TypeConverter接口,也可以继承DefaultTypeConverter来实现,最简单的是继承StrutsTypeConverter。不过前者比较复杂,后者比较方便。完成类型转换器以后,再将类型转换器注册,这样就能使用了,注册的时候,可以注册为局部类型转换器和全局类型转换器。   public class DateConverter extends StrutsTypeConverter { ...
为了能够实现对定时任务的动态控制,我将定时任务做了一个实体类,并将相关信息映射到了数据库中   package com.acca.entity; /** * * 任务实体 * * * @author zhouhua, 2013-1-16 */ public class SchedulingJob { public static final int JS_ENABLED = 0; // 任务启用状态 public static final int JS_DISABLED = 1; // 任务禁用状态 public st ...
<%@ page language="java" contentType="text/html; charset=utf-8"%> <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <base href="${pageContext.request.sche ...
package com.acca.action; import java.io.File; import java.io.*; import java.io.IOException; import java.io.PrintWriter; import java.util.List; import javax.servlet.ServletException; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; import javax.servlet. ...
/* * Copyright (c) 2012-2032 Accounting Center of China Aviation(ACCA). * All Rights Reserved. */ package com.acca.action; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map; import javax.annotation.Resource; import org.springframework ...
No goals have been specified for this build. You must specify a valid lifecycle phase or a goal in the format <plugin-prefix>:<goal> or <plugin-group-id>:<plugin-artifact-id>[:<plugin-version>]:<goal>. Available lifecycle phases are: validate, initialize, generate- ...
eclipse创建maven工程出现Could not resolve archetype org.apache.maven.archetypes错误的解决办法: 解决思路:在本地库中装载maven-archetype-quickstart 1.从http://mirrors.ibiblio.org/pub/mirrors/maven2/org/apache/maven/archetypes/maven-archetype-quickstart/ 下载最新版maven-archetype-quickstart-1.1.jar 2.cmd窗口执行mvn install:inst ...
/* * Copyright (c) 2012-2032 Accounting Center of China Aviation(ACCA). * All Rights Reserved. */ package com.acca.action; import java.io.IOException; import javax.servlet.http.HttpServletResponse; import org.apache.struts2.ServletActionContext; import org.directwebremoting.Browser; ...
Query query = getEntityManager().createQuery("from DataFile d where d.fileName=:fileName"); query.setParameter("fileName", fileName); return (DataFile) query.getSingleResult();   Query query = getEntityManager().createQuery("from DataFil ...
你可以根据自己的需求自定义,需要记录那些,该例子,只对增删改做记录 。 public class OperationLog { private String id; private Date operateTime; private String operator; private String ipAddress; private String module; private String node; private String type; public String getId() { return i ...
Global site tag (gtag.js) - Google Analytics