2013年1月12日

设置页面那些ID对应的对象隐藏setDisplay

摘要: // 设置按钮是否可用,以逗号分割, "是否显示")// 如setDisabled("showBtn,updateBtn",true);function setDisabled(ids, isDisabled){ if (ids != null && ids != ""){ var arr = ids.split(","); for (var i=0; i<arr.length; i++){ if($(arr[i])!=null){ $(arr[i]).disabled=isDisabled; 阅读全文

posted @ 2013-01-12 11:22 陈惟鲜的博客 阅读(287) 评论(0) 推荐(0) 编辑

NumberUtils BigDecimal 对应的加减乘除、格式化等方法

摘要: View Code import java.math.BigDecimal;import java.text.DecimalFormat;import java.text.NumberFormat;/**BigDecimal 对应的加减乘除、格式化等方法<br /> * * @author EX-CHENWEIXIAN001 *2012-11-8 */public class NumberUtils { /** * 默认返回小数2位 */ public static final int DEFAULT_SCALE = 2; /** * 提供精... 阅读全文

posted @ 2013-01-12 11:01 陈惟鲜的博客 阅读(1389) 评论(0) 推荐(0) 编辑

DateUtil 日期常用工具

摘要: /** * 日期处理工具类 * @author BIANDONGYU850 * @date 2012-7-26 下午07:38:46 * @path com.pingan.saims.scms.common.util * @description */public class DateUtil { /** * 默认日期格式化字符串:yyyy-MM-dd */ public static final String DEFAULT_DATE_FORMAT = "yyyy-MM-dd"; //日期格式化对象 private static SimpleDateFormat sdf 阅读全文

posted @ 2013-01-12 10:59 陈惟鲜的博客 阅读(183) 评论(0) 推荐(0) 编辑

获取异常详细信息,组成字符串

摘要: View Code 1 /** 2 * 获取exception详情信息 3 * 4 * @param e 5 * Excetipn type 6 * @return String type 7 */ 8 public static String getExceptionDetail(Exception e) { 9 10 StringBuffer msg = new StringBuffer(10); 11 12 if (e !=... 阅读全文

posted @ 2013-01-12 10:51 陈惟鲜的博客 阅读(187) 评论(0) 推荐(0) 编辑

导航