資源簡介
javaweb庫存管理系統 免費分享 需要可以看看
代碼片段和文件信息
package?action;
import?java.sql.Connection;
import?javax.servlet.http.HttpServletRequest;
import?org.jfree.chart.ChartFactory;
import?org.jfree.chart.JFreeChart;
import?org.jfree.chart.labels.ItemLabelAnchor;
import?org.jfree.chart.labels.ItemLabelPosition;
import?org.jfree.chart.labels.StandardCategoryItemLabelGenerator;
import?org.jfree.chart.plot.CategoryPlot;
import?org.jfree.chart.plot.PlotOrientation;
import?org.jfree.chart.renderer.category.BarRenderer3D;
import?org.jfree.data.category.DefaultCategoryDataset;
import?org.jfree.ui.TextAnchor;
import?model.Goods;
import?model.Stock;
import?util.DbUtil;
import?com.opensymphony.xwork2.ActionSupport;
import?dao.GoodsDao;
public?class?BarCharAction?extends?ActionSupport{
/**
?*?
?*/
private?static?final?long?serialVersionUID?=?1L;
private?HttpServletRequest?request;
private?String?id;
private?Goods?goods;
private?JFreeChart?chart;
public?JFreeChart?getChart()?{
return?chart;
}
public?void?setChart(JFreeChart?chart)?{
this.chart?=?chart;
}
public?Goods?getGoods()?{
return?goods;
}
public?void?setGoods(Goods?goods)?{
this.goods?=?goods;
}
public?String?getId()?{
return?id;
}
public?void?setId(String?id)?{
this.id?=?id;
}
DbUtil?dbUtil?=?new?DbUtil();
GoodsDao?goodsDao?=?new?GoodsDao();
public?String?show()?throws?Exception{
//這是實現動態數據報表
//request.setAttribute(“mainPage“?“/view/show.jsp“);
/*Connection?con=dbUtil.getCon();
goods?=?goodsDao.getGoodsById(con?id);//獲取點擊商品的信息
*/
//創建報表
DefaultCategoryDataset?dataset?=?new?DefaultCategoryDataset();
dataset.addValue(510?“庫存“?“java01“);
dataset.addValue(320?“銷售量“?“java01“);
chart=ChartFactory.createBarChart3D(“商品庫存銷售表“?“庫存“?““?dataset
PlotOrientation.VERTICAL?true?true?true);
CategoryPlot?plot=chart.getCategoryPlot();
//?顯示每個柱的數值,并修改該數值的字體屬性
BarRenderer3D?renderer=new?BarRenderer3D();
renderer.setbaseItemLabelGenerator(new?StandardCategoryItemLabelGenerator());
renderer.setbaseItemLabelsVisible(true);
renderer.setbasePositiveItemLabelPosition(new?ItemLabelPosition(ItemLabelAnchor.OUTSIDE12?TextAnchor.baseLINE_LEFT));
renderer.setItemLabelAnchorOffset(10D);??
//?設置平行柱的之間距離
renderer.setItemMargin(0.4);
plot.setRenderer(renderer);
return?“success“;
}
public?void?setServletRequest(HttpServletRequest?request)?{
this.request=request;
}
}
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????目錄???????????0??2014-07-03?18:00??[www.java1234.com]javaweb庫存管理系統[java1234_24K]\
?????目錄???????????0??2014-05-13?12:36??[www.java1234.com]javaweb庫存管理系統[java1234_24K]\StockManageSystem\
?????文件?????????548??2014-05-06?16:05??[www.java1234.com]javaweb庫存管理系統[java1234_24K]\StockManageSystem\.classpath
?????文件????????1050??2014-05-06?15:42??[www.java1234.com]javaweb庫存管理系統[java1234_24K]\StockManageSystem\.project
?????目錄???????????0??2014-05-06?15:42??[www.java1234.com]javaweb庫存管理系統[java1234_24K]\StockManageSystem\.settings\
?????文件?????????503??2014-05-06?15:42??[www.java1234.com]javaweb庫存管理系統[java1234_24K]\StockManageSystem\.settings\.jsdtscope
?????文件?????????364??2014-05-06?15:42??[www.java1234.com]javaweb庫存管理系統[java1234_24K]\StockManageSystem\.settings\org.eclipse.jdt.core.prefs
?????文件?????????503??2014-05-06?15:42??[www.java1234.com]javaweb庫存管理系統[java1234_24K]\StockManageSystem\.settings\org.eclipse.wst.common.component
?????文件?????????305??2014-05-06?15:42??[www.java1234.com]javaweb庫存管理系統[java1234_24K]\StockManageSystem\.settings\org.eclipse.wst.common.project.facet.core.xm
?????文件??????????49??2014-05-06?15:42??[www.java1234.com]javaweb庫存管理系統[java1234_24K]\StockManageSystem\.settings\org.eclipse.wst.jsdt.ui.superType.container
?????文件???????????6??2014-05-06?15:42??[www.java1234.com]javaweb庫存管理系統[java1234_24K]\StockManageSystem\.settings\org.eclipse.wst.jsdt.ui.superType.name
?????目錄???????????0??2014-05-12?23:24??[www.java1234.com]javaweb庫存管理系統[java1234_24K]\StockManageSystem\WebContent\
?????目錄???????????0??2014-05-06?15:42??[www.java1234.com]javaweb庫存管理系統[java1234_24K]\StockManageSystem\WebContent\me
?????文件??????????39??2014-05-06?15:42??[www.java1234.com]javaweb庫存管理系統[java1234_24K]\StockManageSystem\WebContent\me
?????目錄???????????0??2014-05-11?20:15??[www.java1234.com]javaweb庫存管理系統[java1234_24K]\StockManageSystem\WebContent\WEB-INF\
?????目錄???????????0??2014-05-12?20:03??[www.java1234.com]javaweb庫存管理系統[java1234_24K]\StockManageSystem\WebContent\WEB-INF\lib\
?????文件??????231320??2014-05-12?09:48??[www.java1234.com]javaweb庫存管理系統[java1234_24K]\StockManageSystem\WebContent\WEB-INF\lib\commons-beanutils-1.8.0.jar
?????文件??????571259??2014-05-12?20:03??[www.java1234.com]javaweb庫存管理系統[java1234_24K]\StockManageSystem\WebContent\WEB-INF\lib\commons-collections-3.2.jar
?????文件???????59590??2014-05-12?09:48??[www.java1234.com]javaweb庫存管理系統[java1234_24K]\StockManageSystem\WebContent\WEB-INF\lib\commons-fileupload-1.2.2.jar
?????文件??????279781??2014-05-12?20:03??[www.java1234.com]javaweb庫存管理系統[java1234_24K]\StockManageSystem\WebContent\WEB-INF\lib\commons-httpclient-3.0.1.jar
?????文件??????159509??2014-05-12?09:48??[www.java1234.com]javaweb庫存管理系統[java1234_24K]\StockManageSystem\WebContent\WEB-INF\lib\commons-io-2.0.1.jar
?????文件??????261809??2014-05-12?09:48??[www.java1234.com]javaweb庫存管理系統[java1234_24K]\StockManageSystem\WebContent\WEB-INF\lib\commons-lang-2.4.jar
?????文件??????315805??2014-05-12?09:48??[www.java1234.com]javaweb庫存管理系統[java1234_24K]\StockManageSystem\WebContent\WEB-INF\lib\commons-lang3-3.1.jar
?????文件???????60686??2014-05-12?09:48??[www.java1234.com]javaweb庫存管理系統[java1234_24K]\StockManageSystem\WebContent\WEB-INF\lib\commons-logging-1.1.1.jar
?????文件???????77826??2014-05-12?09:51??[www.java1234.com]javaweb庫存管理系統[java1234_24K]\StockManageSystem\WebContent\WEB-INF\lib\ezmorph-1.0.3.jar
?????文件??????931168??2014-05-12?09:48??[www.java1234.com]javaweb庫存管理系統[java1234_24K]\StockManageSystem\WebContent\WEB-INF\lib\freemarker-2.3.19.jar
?????文件?????1052045??2014-05-12?11:39??[www.java1234.com]javaweb庫存管理系統[java1234_24K]\StockManageSystem\WebContent\WEB-INF\lib\iText-2.1.1.jar
?????文件??????614203??2014-05-12?09:48??[www.java1234.com]javaweb庫存管理系統[java1234_24K]\StockManageSystem\WebContent\WEB-INF\lib\javassist-3.11.0.GA.jar
?????文件??????307860??2014-05-12?11:39??[www.java1234.com]javaweb庫存管理系統[java1234_24K]\StockManageSystem\WebContent\WEB-INF\lib\jcommon-1.0.13.jar
?????文件???????21948??2014-05-12?11:39??[www.java1234.com]javaweb庫存管理系統[java1234_24K]\StockManageSystem\WebContent\WEB-INF\lib\jfreechart-1.0.10-experimental.jar
?????文件???????72968??2014-05-12?11:39??[www.java1234.com]javaweb庫存管理系統[java1234_24K]\StockManageSystem\WebContent\WEB-INF\lib\jfreechart-1.0.10-swt.jar
............此處省略701個文件信息
- 上一篇:JavaWeb基于SSM框架的課程設計
- 下一篇:IKVM.NETv8.1
評論
共有 條評論