資源簡介
網上書店java管理系統,功能全面我設計的是一個網上書店的系統,網上書店是電子商務的一種。電子商務是可以提供網上交易和管理等全過程的服務,具有廣告宣傳咨詢洽談、網上訂購、網上支付、電子賬戶、服務傳遞、意見征詢、交易管理等各項功能。
這個網上書店共有兩大部分:管理員和用戶。把管理員和用戶的權限分開執行,保證了系統的安全和有效管理。
管理員可以實現書籍的分類,訂單的管理,會員的管理,和系統的總體管理。
用戶可以在主頁面登錄或注冊。若是會員則直接登錄,登錄后在主頁面內可以在商品類別區進行書籍種類的選擇。對于已經發布的書籍有特價區可供用戶選擇。用戶進入自己的購物車管理可以查看購物車里的物品,對購物車進行各種操作,如清空購物車,繼續購物。可以查看自己的訂單,對訂單進行管理。對于已經購物完成的用戶可以針對自己的實際感覺對系統進行留言。
代碼片段和文件信息
package?com.base;
import?com.service.*;
import?com.ORM.*;
import?java.util.*;
/**?供JSON-RPC組件遠程調用的AjaxBean?*/
public?class?AjaxBean?extends?baseLog?{
/**取得商品分類列表*/
public?String[][]?getCategory(){
String[][]?options?=?null;
MerService?service?=?new?MerServiceImpl();
try{
List?list?=?service.browseCategory();
Category?cate?=?null;
int?i?=?0;
if?(list!=null){
options?=?new?String[list.size()][2];
Iterator?it?=?list.iterator();
while(it.hasNext()){
cate?=?(Category)it.next();
options[i][0]?=cate.getId().toString();
options[i][1]?=cate.getCateName().trim();
i++;
}
}else{
options?=?new?String[1][2];
options[0][0]?=“0“;
options[0][1]?=“無商品分類“;
}
}catch(Exception?ex){
logger.info(“在執行AjaxBean類中的getCategory方法時出錯:\n“);
ex.printStackTrace();
}
return?options;
}
/**取得會員級別*/
public?String[][]?getMemberLevel(){
String[][]?options?=?null;
MemService?service?=?new?MemServiceImpl();
try{
List?list?=?service.browseMemberLevel();
Memberlevel?ml?=?null;
int?i?=?0;
if?(list!=null){
options?=?new?String[list.size()][2];
Iterator?it?=?list.iterator();
while(it.hasNext()){
ml?=?(Memberlevel)it.next();
options[i][0]?=ml.getId().toString();
options[i][1]?=ml.getLevelName().trim();
i++;
}
}else{
options?=?new?String[1][2];
options[0][0]?=“0“;
options[0][1]?=“無會員級別“;
}
}catch(Exception?ex){
logger.info(“在執行AjaxBean類中的getMemberLevel方法時出錯:\n“);
ex.printStackTrace();
}
return?options;
}
/**注冊登錄帳號有效性驗證*/
public?boolean?chkLoginName(String?loginName){
MemService?service?=?new?MemServiceImpl();
boolean?result?=?false;
try{
result?=?service.chkLoginName(loginName);
}catch(Exception?ex){
logger.info(“在執行AjaxBean類中的chkLoginName方法時出錯:\n“);
ex.printStackTrace();
}
return?result;
}
/**修改選購商品數量*/
public?boolean?modiCart(int?idint?number){
CartService?service?=?new?CartServiceImpl();
boolean?result?=?false;
try{
result?=?service.modiCart(Integer.valueOf(id)?number);
}catch(Exception?ex){
logger.info(“在執行AjaxBean類中的modiCart方法時出錯:\n“);
ex.printStackTrace();
}
return?result;
}
/**調整會員級別*/
public?boolean?updateLevel(Integer?idInteger?levelId){
MemService?service?=?new?MemServiceImpl();
boolean?result?=?false;
try{
Member?member?=?service.loadMember(id);
Memberlevel?level?=?service.loadMemberLevel(levelId);
member.setMemberlevel(level);
service.updateMember(member);
result?=?true;
}catch(Exception?ex){
logger.info(“在執行AjaxBean類中的updateLevel方法時出錯:\n“);
ex.printStackTrace();
}
return?result;
}
}
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件???????1759??2009-05-03?21:00??EShop\CodePub.Com說明.txt
?????文件???????1759??2009-05-03?21:00??EShop\.myeclipse\readme.txt
?????文件???????1759??2009-05-03?21:00??EShop\readme.txt
?????文件???????1759??2009-05-03?21:00??EShop\src\readme.txt
?????文件?????????93??2007-09-13?23:12??EShop\WebRoot\index.htm
?????文件????????550??2007-09-11?22:14??EShop\WebRoot\JS\selectDate.htm
?????文件?????????81??2007-09-11?22:44??EShop\WebRoot\Admin\toLogin.htm
?????文件???????1355??2007-09-10?23:28??EShop\WebRoot\templates\coolmenus.html
?????文件???????1336??2007-09-10?23:28??EShop\WebRoot\templates\cssMenu.html
?????文件????????520??2007-09-10?23:28??EShop\WebRoot\templates\index.html
?????文件????????288??2007-09-10?23:28??EShop\WebRoot\templates\indextabs.html
?????文件????????747??2007-09-10?23:28??EShop\WebRoot\templates\nicetabs.html
?????文件????????422??2007-09-10?23:28??EShop\WebRoot\templates\table.html
?????文件????????752??2007-09-10?23:28??EShop\WebRoot\templates\tabs.html
?????文件????????479??2007-09-10?23:28??EShop\WebRoot\templates\xtree.html
????..A..H.?????????9??2007-09-11?22:14??EShop\WebRoot\JS\common\_desktop.ini
?????文件???????3682??2007-07-07?23:00??EShop\db_eshop.sql.bak
?????文件???????1609??2009-04-20?17:45??EShop\WebRoot\WEB-INF\classes\com\ORM\Admin.class
?????文件???????5459??2009-04-20?17:45??EShop\WebRoot\WEB-INF\classes\com\struts\action\AdminAction.class
?????文件???????5372??2009-04-20?17:45??EShop\WebRoot\WEB-INF\classes\com\struts\action\AdminCateAction.class
?????文件???????1649??2009-04-20?17:45??EShop\WebRoot\WEB-INF\classes\com\struts\form\AdminForm.class
?????文件???????2819??2009-04-20?17:45??EShop\WebRoot\WEB-INF\classes\com\struts\action\AdminLoginAction.class
?????文件???????6279??2009-04-20?17:45??EShop\WebRoot\WEB-INF\classes\com\struts\action\AdminMemberAction.class
?????文件??????14408??2009-04-20?17:45??EShop\WebRoot\WEB-INF\classes\com\struts\action\AdminMerAction.class
?????文件???????5885??2009-04-20?17:45??EShop\WebRoot\WEB-INF\classes\com\struts\action\AdminOrderAction.class
?????文件????????500??2009-04-20?17:45??EShop\WebRoot\WEB-INF\classes\com\service\AdminService.class
?????文件???????4233??2009-04-20?17:45??EShop\WebRoot\WEB-INF\classes\com\service\AdminServiceImpl.class
?????文件???????3740??2009-04-20?17:45??EShop\WebRoot\WEB-INF\classes\com\ba
?????文件????????520??2009-04-20?17:45??EShop\WebRoot\WEB-INF\classes\com\ba
?????文件????????487??2009-04-20?17:45??EShop\WebRoot\WEB-INF\classes\com\ba
............此處省略417個文件信息
評論
共有 條評論