資源簡介
struts+hibernate+spring的一個簡單的簡化進銷存例子,里面涉及到增刪改查,注冊 登錄 以及文本框的輸入提示 dwr的部分簡單功能

代碼片段和文件信息
package?com.soft.jhjxc.action;
import?java.util.ArrayList;
import?java.util.List;
import?com.opensymphony.xwork2.ActionSupport;
import?com.soft.jhjxc.bean.Dindan;
import?com.soft.jhjxc.bean.Kehubiao;
import?com.soft.jhjxc.bean.Shangpinbiao;
import?com.soft.jhjxc.bean.Yuangonbiao;
import?com.soft.jhjxc.service.IDindanService;
import?com.soft.jhjxc.service.IKehuService;
import?com.soft.jhjxc.service.IShangpinService;
import?com.soft.jhjxc.service.IYuangonService;
public?class?DindanAction?extends?ActionSupport{
/**
?*?
?*/
private?static?final?long?serialVersionUID?=?1L;
private?IDindanService?iDindanService;
IKehuService?iKehuService;
IShangpinService?iShangpinService;
IYuangonService?iYuangonService;
private?Dindan?dindan;
private?String[]?dindanid;
private?List?dList=new?ArrayList();
private?List?kList=new?ArrayList();
private?List?sList=new?ArrayList();
private?List?yList=new?ArrayList();
public?IDindanService?getIDindanService()?{
return?iDindanService;
}
public?void?setIDindanService(IDindanService?dindanService)?{
iDindanService?=?dindanService;
}
public?Dindan?getDindan()?{
return?dindan;
}
public?void?setDindan(Dindan?dindan)?{
this.dindan?=?dindan;
}
public?String[]?getDindanid()?{
return?dindanid;
}
public?void?setDindanid(String[]?dindanid)?{
this.dindanid?=?dindanid;
}
public?List?getDList()?{
return?dList;
}
public?void?setDList(List?list)?{
dList?=?list;
}
public?List?getKList()?{
return?kList;
}
public?void?setKList(List?list)?{
kList?=?list;
}
public?List?getSList()?{
return?sList;
}
public?void?setSList(List?list)?{
sList?=?list;
}
public?List?getYList()?{
return?yList;
}
public?void?setYList(List?list)?{
yList?=?list;
}
public?IKehuService?getIKehuService()?{
return?iKehuService;
}
public?void?setIKehuService(IKehuService?kehuService)?{
iKehuService?=?kehuService;
}
public?IShangpinService?getIShangpinService()?{
return?iShangpinService;
}
public?void?setIShangpinService(IShangpinService?shangpinService)?{
iShangpinService?=?shangpinService;
}
public?IYuangonService?getIYuangonService()?{
return?iYuangonService;
}
public?void?setIYuangonService(IYuangonService?yuangonService)?{
iYuangonService?=?yuangonService;
}
//增加
public?String?findDindan(){
//查詢員工
yList=iYuangonService.search(null);
//查詢客戶
kList=iKehuService.search(null);
//查詢商品
sList=iShangpinService.search(null);
return?“add“;
}
public?String?dindan(){
System.out.println(“fsdgsdg“);
System.out.println(dindan.getShuliang()+“fsdgsdg423“);
System.out.println(dindan.getKehuxinxi().getId()+“kehu“);
System.out.println(dindan.getKehuxinxi().getMingcheng()+“kehu?
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件???????2476??2013-04-23?20:27??jhjxc\.classpath
?????文件????????288??2013-04-23?20:27??jhjxc\.myme
?????文件???????1411??2013-04-23?20:27??jhjxc\.project
?????文件????????406??2013-04-23?20:27??jhjxc\.settings\.jsdtscope
?????文件????????330??2013-04-23?20:27??jhjxc\.settings\org.eclipse.jdt.core.prefs
?????文件?????????49??2013-04-23?20:27??jhjxc\.settings\org.eclipse.wst.jsdt.ui.superType.container
?????文件??????????6??2013-04-23?20:27??jhjxc\.settings\org.eclipse.wst.jsdt.ui.superType.name
?????文件???????6892??2013-04-23?20:27??jhjxc\jhjxc.sql
?????文件???????7752??2013-04-23?20:27??jhjxc\src\applicationContext.xm
?????文件???????4433??2013-04-23?20:27??jhjxc\src\com\soft\jhjxc\action\DindanAction.java
?????文件???????4675??2013-04-23?20:27??jhjxc\src\com\soft\jhjxc\action\JinhuoAction.java
?????文件???????1758??2013-04-23?20:27??jhjxc\src\com\soft\jhjxc\action\KehuAction.java
?????文件???????1964??2013-04-23?20:27??jhjxc\src\com\soft\jhjxc\action\ShangpinAction.java
?????文件???????1682??2013-04-23?20:27??jhjxc\src\com\soft\jhjxc\action\YonghuAction.java
?????文件???????1680??2013-04-23?20:27??jhjxc\src\com\soft\jhjxc\action\YuangonAction.java
?????文件???????1516??2013-04-23?20:27??jhjxc\src\com\soft\jhjxc\bean\Dindan.hbm.xm
?????文件???????1462??2013-04-23?20:27??jhjxc\src\com\soft\jhjxc\bean\Dindan.java
?????文件????????347??2013-04-23?20:27??jhjxc\src\com\soft\jhjxc\bean\ExportDB.java
?????文件???????1482??2013-04-23?20:27??jhjxc\src\com\soft\jhjxc\bean\Jinhuodan.hbm.xm
?????文件???????1432??2013-04-23?20:27??jhjxc\src\com\soft\jhjxc\bean\Jinhuodan.java
?????文件???????1776??2013-04-23?20:27??jhjxc\src\com\soft\jhjxc\bean\Kehubiao.hbm.xm
?????文件???????1531??2013-04-23?20:27??jhjxc\src\com\soft\jhjxc\bean\Kehubiao.java
?????文件???????1967??2013-04-23?20:27??jhjxc\src\com\soft\jhjxc\bean\Shangpinbiao.hbm.xm
?????文件???????1777??2013-04-23?20:27??jhjxc\src\com\soft\jhjxc\bean\Shangpinbiao.java
?????文件????????938??2013-04-23?20:27??jhjxc\src\com\soft\jhjxc\bean\Yonhubiao.hbm.xm
?????文件????????605??2013-04-23?20:27??jhjxc\src\com\soft\jhjxc\bean\Yonhubiao.java
?????文件???????1917??2013-04-23?20:27??jhjxc\src\com\soft\jhjxc\bean\Yuangonbiao.hbm.xm
?????文件???????1808??2013-04-23?20:27??jhjxc\src\com\soft\jhjxc\bean\Yuangonbiao.java
?????文件???????9254??2013-04-23?20:27??jhjxc\src\com\soft\jhjxc\common\StringUtil.java
?????文件???????5804??2013-04-23?20:27??jhjxc\src\com\soft\jhjxc\dao\ba
............此處省略182個文件信息
- 上一篇:實用工程數值模擬技術及其在ANSYS上的實踐
- 下一篇:PXA270_BSP
評論
共有 條評論