资源简介
java二手房交易系统对于java开发者和学习者来说是很不错的学习资料
代码片段和文件信息
package wyf.zrk;
import java.util.*;
public class AddAdminBean {
private DButilDAOImpl db;
private String aname;
private String firstPwd;
private String secondPwd;
private String agender = “男“;
private String errMsg;
private InfoBean info;
public void setInfo(InfoBean info) {
this.info = info;
}
public void setDb(DButilDAOImpl db) {
this.db = db;
}
public void setAname(String aname) {
this.aname = aname;
}
public String getAname() {
return this.aname;
}
public void setFirstPwd(String firstpwd) {
this.firstPwd = firstpwd;
}
public String getFirstPwd() {
return this.firstPwd;
}
public void setSecondPwd(String secondpwd) {
this.secondPwd = secondpwd;
}
public String getSecondPwd() {
return this.secondPwd;
}
public void setAgender(String agender) {
this.agender = agender;
}
public String getAgender() {
return this.agender;
}
public void setErrMsg(String errMsg) {
this.errMsg = errMsg;
}
public String getErrMsg() {
String msg = this.errMsg;
this.errMsg = ““;
return msg;
}
public String add() {
String msg = ““;
try {
String name = new String(aname.getBytes()“ISO-8859-1“);
String hqlName = “from AdminInfo as ai where ai.a_name=‘“+name+“‘“;
List ls = db.getInfo(hqlName);
if(ls.size()!=0) {
this.errMsg = “该用户名已经存在!“;
msg = “addadmin“;
}
else {
AdminInfo ai = new AdminInfo();
ai.setA_gender(new String(this.agender.getBytes()“ISO-8859-1“));
ai.setA_level(new String(“普通“.getBytes()“ISO-8859-1“));
ai.setA_name(new String(this.aname.getBytes()“ISO-8859-1“));
ai.setA_pwd(this.firstPwd);
String ms = db.insertObj(“admininfo“ai);
if(ms.equals(“yes“)) {
msg = “info“;
info.setMsg(“恭喜您,添加成功!“);
info.setUrl(“AdminIndex.jsp“);
}
else {
msg = “addadmin“;
errMsg = “管理员添加失败!“;
}
}
}
catch(Exception e) {
e.printStackTrace();
}
return msg;
}
}
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 4161 2009-02-11 15:36 10java二手房交易系统\build\SecondHandHouse\AddAdmin.jsp
文件 1596 2009-02-12 20:55 10java二手房交易系统\build\SecondHandHouse\AdminIndex.jsp
文件 2901 2009-01-24 22:31 10java二手房交易系统\build\SecondHandHouse\AdminLogin.jsp
文件 3801 2009-02-15 14:57 10java二手房交易系统\build\SecondHandHouse\AdminMenu.jsp
文件 6469 2009-01-21 16:40 10java二手房交易系统\build\SecondHandHouse\AllQiuGouInfo.jsp
文件 6436 2009-01-21 16:55 10java二手房交易系统\build\SecondHandHouse\AllQiuZuInfo.jsp
文件 6415 2009-01-21 16:52 10java二手房交易系统\build\SecondHandHouse\AllRentInfo.jsp
文件 6430 2009-02-10 15:17 10java二手房交易系统\build\SecondHandHouse\AllSaleInfo.jsp
文件 477 2009-01-23 22:41 10java二手房交易系统\build\SecondHandHouse\css\admin.css
文件 120 2008-10-08 20:07 10java二手房交易系统\build\SecondHandHouse\css\general.css
文件 3064 2009-02-13 20:04 10java二手房交易系统\build\SecondHandHouse\css\index.css
文件 742 2009-01-12 14:00 10java二手房交易系统\build\SecondHandHouse\css\search.css
文件 164 2009-01-19 21:09 10java二手房交易系统\build\SecondHandHouse\css\showmsg.css
文件 230 2009-01-23 14:59 10java二手房交易系统\build\SecondHandHouse\css\tip.css
文件 485 2009-03-22 13:56 10java二手房交易系统\build\SecondHandHouse\db\config.txt
文件 5336 2009-02-19 15:22 10java二手房交易系统\build\SecondHandHouse\db\data.sql
文件 6233 2009-02-19 15:23 10java二手房交易系统\build\SecondHandHouse\db\insert.sql
文件 3205 2008-05-13 03:38 10java二手房交易系统\build\SecondHandHouse\dojo-release-1.1.1\dijit\bench\benchReceive.php
文件 5674 2008-05-13 03:38 10java二手房交易系统\build\SecondHandHouse\dojo-release-1.1.1\dijit\bench\benchTool.html
文件 2300 2008-05-13 03:38 10java二手房交易系统\build\SecondHandHouse\dojo-release-1.1.1\dijit\bench\create_widgets.html
文件 1780 2008-05-13 03:38 10java二手房交易系统\build\SecondHandHouse\dojo-release-1.1.1\dijit\bench\test_Button-programmatic.html
文件 2194 2008-05-13 03:38 10java二手房交易系统\build\SecondHandHouse\dojo-release-1.1.1\dijit\bench\test_button-results.html
文件 10844 2008-05-13 03:38 10java二手房交易系统\build\SecondHandHouse\dojo-release-1.1.1\dijit\bench\widget_construction_test.php
文件 3596 2008-05-13 03:38 10java二手房交易系统\build\SecondHandHouse\dojo-release-1.1.1\dijit\changes.txt
文件 10479 2008-05-13 03:39 10java二手房交易系统\build\SecondHandHouse\dojo-release-1.1.1\dijit\ColorPalette.js
文件 2628 2008-05-13 03:39 10java二手房交易系统\build\SecondHandHouse\dojo-release-1.1.1\dijit\Declaration.js
文件 658 2008-05-13 03:39 10java二手房交易系统\build\SecondHandHouse\dojo-release-1.1.1\dijit\demos\chat\chat.css
文件 664 2008-05-13 03:39 10java二手房交易系统\build\SecondHandHouse\dojo-release-1.1.1\dijit\demos\chat\chat.css.commented.css
文件 4593 2008-05-13 03:38 10java二手房交易系统\build\SecondHandHouse\dojo-release-1.1.1\dijit\demos\chat\client.html
文件 3941 2008-05-13 03:38 10java二手房交易系统\build\SecondHandHouse\dojo-release-1.1.1\dijit\demos\chat\community.html
............此处省略3292个文件信息
- 上一篇:Java销售管理系统源码+程序
- 下一篇:二手房交易java项目系统10
评论
共有 条评论