資源簡介
內含:
1. 數據庫(*.sql文件)
2. 系統使用說明書
3. 源程序
4. 開題報告
5. 任務書
6. 設計說明書(論文)
7. 選題表
代碼片段和文件信息
package?com.cost.biz;
import?java.awt.*;
import?java.awt.image.*;
import?java.util.Random;
import?javax.persistence.Entity;
import?org.apache.taglibs.standard.extra.spath.ASCII_CharStream;
import?com.sun.org.apache.xerces.internal.impl.io.ASCIIReader;
@Entity
public?class?Image?{
public?String?sRand?=?““;
public?String?sgbRand?=?““;
public?static?String?hanzi=““;
public?Color?getRandColor(int?fc?int?bc)?{?//?給定范圍獲得隨機顏色?
Random?random?=?new?Random();
if?(fc?>?255)
fc?=?255;
if?(bc?>?255)
bc?=?255;
int?r?=?fc?+?random.nextInt(bc?-?fc);
int?g?=?fc?+?random.nextInt(bc?-?fc);
int?b?=?fc?+?random.nextInt(bc?-?fc);
return?new?Color(r?g?b);
}
public?BufferedImage?creatImage()?{
//?在內存中創建圖象
int?width?=?60?height?=?20;
BufferedImage?image?=?new?BufferedImage(width?height
BufferedImage.TYPE_INT_RGB);
//?獲取圖形上下文
Graphics?g?=?image.getGraphics();
//?生成隨機類
Random?random?=?new?Random();
//?設定背景色
g.setColor(getRandColor(100?250));
g.fillRect(0?0?width?height);
//?設定字體
g.setFont(new?Font(“Comic?Sans?MS“?Font.PLAIN?18));
//?畫邊框
//?g.setColor(new?Color());
//?g.drawRect(00width-1height-1);
//?隨機產生155條干擾線,使圖象中的認證碼不易被其它程序探測到
g.setColor(getRandColor(160?200));
for?(int?i?=?0;?i?155;?i++)?{
int?x?=?random.nextInt(width);
int?y?=?random.nextInt(height);
int?xl?=?random.nextInt(12);
int?yl?=?random.nextInt(12);
g.drawLine(x?y?x?+?xl?y?+?yl);
}
//?取隨機產生的認證碼(4位數字)
//?String?rand?=?request.getParameter(“rand“);
//?rand?=?rand.substring(0rand.indexOf(“.“));
for?(int?i?=?0;?i?4;?i++)?{
String?rand?=?String.valueOf(random.nextInt(10));
sRand?+=?rand;
//?將認證碼顯示到圖象中
g.setColor(new?Color(20?+?random.nextInt(110)?20?+?random
.nextInt(110)?20?+?random.nextInt(110)));?//?調用函數出來的顏色相同,可能是因為種子太接近,所以只能直接生成
g.drawString(rand?13?*?i?+?6?16);
}
//?圖象生效
g.dispose();
return?image;
}
public?BufferedImage?creatImageGB()?{
//?在內存中創建圖象
int?width?=?110?height?=?28;
//設置備選漢字,剔除一些不雅的漢字
String?base?=?“\u7684\u4e00\u4e86\u662f\u6211\u4e0d\u5728\u4eba\u4eec\u6709\u6765\u4ed6“?+
“\u8fd9\u4e0a\u7740\u4e2a\u5730\u5230\u5927\u91cc\u8bf4\u5c31\u53bb\u5b50\u5f97“?+
“\u4e5f\u548c\u90a3\u8981\u4e0b\u770b\u5929\u65f6\u8fc7\u51fa\u5c0f\u4e48\u8d77“?+
“\u4f60\u90fd\u628a\u597d\u8fd8\u591a\u6ca1\u4e3a\u53c8\u53ef\u5bb6\u5b66\u53ea“?+
“\u4ee5\u4e3b\u4f1a\u6837\u5e74\u60f3\u751f\u540c\u8001\u4e2d\u5341\u4ece\u81ea“?+
“\u9762\u524d\u5934\u9053\u5b83\u540e\u7136\u8d70\u5f88\u50cf\u89c1\u4e24\u7528“?+
“\u5979\u56fd\u52a8\u8fdb\u6210\u56de\u4ec0\u8fb9\u4f5c\u5bf9\u5f00\u800c\u5df1“?+
“\u4e9b\u73b0\u5c71\u6c11\u5019\u7ecf\u53d1\u5de5\u5411\u4e8b\u547d\u7ed9\u957f“?+
“\u6c34\u51e0\u4e49\u4e09\u58f0\u4e8e\u9ad8\u624b\u77e5\u7406\u773c\u5fd7\u70b9“?+
“\u5fc3\u6218\u4e8c\u95ee\u4f46\u8eab\u65b9\u5b9e\u5403\u505a\u53eb\u5
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件??????43008??2010-06-17?22:15??東方學院?08計算機2B?陳敏\畢業設計文檔\任務書\任務書.doc
?????文件?????117760??2010-06-17?22:16??東方學院?08計算機2B?陳敏\畢業設計文檔\開題報告\陳敏-開題報告.doc
?????文件?????244224??2010-06-17?22:33??東方學院?08計算機2B?陳敏\畢業設計文檔\設計說明書(論文)\封面.doc
?????文件?????671232??2010-06-17?22:29??東方學院?08計算機2B?陳敏\畢業設計文檔\設計說明書(論文)\畢業設計說明書.doc
?????文件??????32256??2010-01-23?08:50??東方學院?08計算機2B?陳敏\畢業設計文檔\選題表\學生自擬課題審批表.doc
?????文件??????77990??2010-06-18?02:31??東方學院?08計算機2B?陳敏\畢業設計程序\數據庫\costfull.sql
?????文件???????3561??2010-05-05?22:09??東方學院?08計算機2B?陳敏\畢業設計程序\源程序\cost\.classpath
?????文件???????2191??2010-06-02?11:02??東方學院?08計算機2B?陳敏\畢業設計程序\源程序\cost\.myeclipse\profiler\cost?on?MyEclipse?Tomcat.xm
?????文件????????501??2010-04-16?14:38??東方學院?08計算機2B?陳敏\畢業設計程序\源程序\cost\.myhibernatedata
?????文件????????285??2010-06-01?03:22??東方學院?08計算機2B?陳敏\畢業設計程序\源程序\cost\.myme
?????文件???????1612??2010-04-16?14:38??東方學院?08計算機2B?陳敏\畢業設計程序\源程序\cost\.project
?????文件????????500??2010-04-16?14:26??東方學院?08計算機2B?陳敏\畢業設計程序\源程序\cost\.settings\.jsdtscope
?????文件?????????88??2010-04-16?14:31??東方學院?08計算機2B?陳敏\畢業設計程序\源程序\cost\.settings\org.eclipse.core.resources.prefs
?????文件????????330??2010-04-16?14:26??東方學院?08計算機2B?陳敏\畢業設計程序\源程序\cost\.settings\org.eclipse.jdt.core.prefs
?????文件?????????49??2010-04-16?14:26??東方學院?08計算機2B?陳敏\畢業設計程序\源程序\cost\.settings\org.eclipse.wst.jsdt.ui.superType.container
?????文件??????????6??2010-04-16?14:26??東方學院?08計算機2B?陳敏\畢業設計程序\源程序\cost\.settings\org.eclipse.wst.jsdt.ui.superType.name
?????文件???????3323??2008-04-28?10:25??東方學院?08計算機2B?陳敏\畢業設計程序\源程序\cost\src\.#hibernate.cfg.xm
?????文件???????1697??2008-04-28?10:25??東方學院?08計算機2B?陳敏\畢業設計程序\源程序\cost\src\.#MessageResources.properties.1.2
?????文件????????169??2008-04-29?13:59??東方學院?08計算機2B?陳敏\畢業設計程序\源程序\cost\src\assets\CVS\Entries
?????文件?????????93??2008-04-29?13:59??東方學院?08計算機2B?陳敏\畢業設計程序\源程序\cost\src\assets\CVS\Entries.Extra
?????文件?????????32??2008-04-29?13:59??東方學院?08計算機2B?陳敏\畢業設計程序\源程序\cost\src\assets\CVS\Repository
?????文件?????????65??2008-04-29?13:59??東方學院?08計算機2B?陳敏\畢業設計程序\源程序\cost\src\assets\CVS\Root
?????文件???????2145??2008-06-06?12:51??東方學院?08計算機2B?陳敏\畢業設計程序\源程序\cost\src\assets\doc-st
?????文件???????2515??2008-06-06?12:51??東方學院?08計算機2B?陳敏\畢業設計程序\源程序\cost\src\assets\hibernate_logo.gif
?????文件?????????71??2008-06-06?12:51??東方學院?08計算機2B?陳敏\畢業設計程序\源程序\cost\src\assets\inherit.gif
????..A.SH.??????5120??2010-04-16?11:23??東方學院?08計算機2B?陳敏\畢業設計程序\源程序\cost\src\assets\Thumbs.db
?????文件????????945??2008-05-07?16:44??東方學院?08計算機2B?陳敏\畢業設計程序\源程序\cost\src\com\cost\biz\.#right.xm
?????文件???????1757??2008-04-28?10:25??東方學院?08計算機2B?陳敏\畢業設計程序\源程序\cost\src\com\cost\biz\bsm\.#OrderState.java.1.4
?????文件???????1857??2010-05-04?21:06??東方學院?08計算機2B?陳敏\畢業設計程序\源程序\cost\src\com\cost\biz\bsm\AjaxFeeOperateServlet.java
?????文件????????288??2008-05-07?18:47??東方學院?08計算機2B?陳敏\畢業設計程序\源程序\cost\src\com\cost\biz\bsm\CVS\Entries
............此處省略1780個文件信息
評論
共有 條評論