`
hongbo.wu
  • 浏览: 92049 次
  • 性别: Icon_minigender_1
  • 来自: 深圳
社区版块
存档分类
最新评论
文章列表
<div style="position:relative;"> <b style=" position:absolute; width:80px; height:80px; right:0px; top:0px; "> <img src="img/new.png"/> </b> <div>  
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; cha ...
/** * 设置窗口图标 */ protected void setWindowIcon() { ImageIcon imageIcon = new ImageIcon(getClass().getResource( "/cn/wuhongbox/j2se/myAppTest/res/image/icon.jpg")); // 设置标题栏的图标为face.gif this.setIconImage(imageIcon.getImage()); }   /** * 设置图片 * ...
[转]  http://www.blogjava.net/midstr/archive/2009/02/25/256597.html 做管理系统的时候,打印一直是个棘手的问题,做B/S的系统这个问题就更加突出了!下面举出三种常用的web打印处理方式 1、利用word或者excel来实现web打印(如果不修改ie设置,可以在web服务器端生成xls文件,然后通过xlBook = xls.Workbooks.Open(remotePath) 获取对象打印)   实现过程:先将需要打印的数据导入到word或者excel中,再利用word或者excel的打印功能来实现web打印。   下面以exc ...
public static void main(String[] args) { File template = new File("c:/excel/t.xls"); File targer = new File("c:/excel/t_" + new Date().getTime() + ".xls"); try { ExcelWrite excelUtil = new ExcelWrite(targer, template); for (int i = 0; i < 3 ...
测试代码,详情代码在email.rar目录,需要用到以下2个包,j2ee5会说找一个一个类。可以用j2ee4   public static void main(String[] args) throws Exception { MailBean mail = new MailBean("hongbo.wu@qq.com", "****", "smtp.qq.com", null); //发送 mail.addTO("a@qq.com"); mail.addTO(&qu ...
在http://code.google.com/p/zxing/downloads/list下载zxing压缩包Zxing-2.2, 使用core包 代码如下:   package cn.wuhongbox.common.javaQR; import java.awt.image.BufferedImage; import java.io.File; import java.io.IOException; import java.util.Hashtable; import javax.imageio.ImageIO; import com.google.zx ...
Download all_in_one.zip压缩包:Click HERE(内含demo、api文档、核心分发jar包等).友情提示:核心分发jar包 beautyeye_lnf.jar 位于all_in_one.zip包中的位置是:“all_in_one/dist/” Development Guide 加入以下代码,即可将你的Java程序界面更换成Beauty Eye的外观: public static void main(String[] args) { try { org.jb2011.lnf.beautyeye.BeautyEyeLN ...
select t.*, t.rowid from ts_orders t;select * from ts_cust;   -- 查询 type=0 ,1 的订单数select count (o.oid) as 总订单数 ,count (o1.oid) as type1_订单总数 ,count (o2.oid) as type0_订单总数 from ts_orders oleft join ts_orders o1 on o1.oid =o.oid and o1.type = 1left join ts_orders o2 on o2.oid =o.oid and o2.type = 0 ...
select count(1) as all_total,count(c1.id) as qq_total,count(c2.id) as wx_total,count(c3.id) as wx_hy_total   from t_customer c left join t_customer c1 on c1.id=c.id and c1.come_from='1' left join t_customer c2 on c2.id=c.id and c2.come_from='161'left join t_customer c3 on c3.id=c.id and c3.come_fr ...
 独占 ALTER DATABASE dbname SET OFFLINE WITH ROLLBACK IMMEDIATE    用完之后再 解除独占  alter database dbname set  online       dbname 是数据库表名
create trigger tgr_[触器名称] on 表名 for insert , update as --定义变量 declare @f1 int declare @f2 varchar(30) -- 变量赋值 set @f1=(select f1 from inserted ) set @f2=(select f2 from inserted ) BEGIN --执行语句 update test set f2= '[' + @f2 + ']' where f1 =@f1; END GO  
转 http://blog.csdn.net/huoshen8211/article/details/7058928   默认情况下写好的android程序在平板下不能全屏,显示的还是手机屏幕大小, 可以在AndroidManifest.xml文件中</manifest> 标签上面添加 <supports-screens android:largeScreens="true" android:anyDensity="true"/>来实现让平板全屏显示,, 或添加   <supports-screens    ...
方法一   在 server.xml 中 在 host节点结束前 增加   <Context docBase="E:\web\" path="/iweb" reloadable="true" ></Context>    <Context path="" docBase="D:\\code\\imcc_prj\\IMCC\\WebRoot" privileged="true" debug="0" reloadabl ...

js日期比较

    博客分类:
  • js
function dateComp(d1,d2) { var date1= new Date(Date.parse(d1.replace("-","/"))); var date2= new Date(Date.parse(d2.replace("-","/"))); alert(date1.getTime() +" " +date2.getTime()); var r = (date1-date2)/(24*60*6 ...
Global site tag (gtag.js) - Google Analytics