资源简介
里面是一个较为完整的简易的进销存系统(配有数据库),只做期末课程设计参考作用,设计思路本质上都是差不多的,所以参考作用比较大,而且里面套用了其他的网页模板,如有违权,请联系作者。
代码片段和文件信息
package com.store.jxc.busniess.action.customer;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import com.store.jxc.busniess.model.customer.Customers;
import com.store.jxc.busniess.service.customer.ICustomerService;
import com.store.jxc.system.base.action.baseAction;
import com.store.jxc.system.common.page.PageUtil;
import com.store.jxc.system.common.page.Result;
public class CustomerAction extends baseAction {
private static final long serialVersionUID = 1L;
private Log logger=LogFactory.getLog(getClass());
//======================声明注入变量==========//
private ICustomerService customerService;
//============声明变量=====================//
private Integer thisId;
private Customers customers=new Customers();
private Result customerResult;
public String list(){
logger.info(“##find all Customer“);
customerResult=customerService.findByPage(customers getPage()getRowCount());
footer=PageUtil.pageFooter(customerResult getRequest());
return resUri;
}
public String del(){
logger.info(“##delete Customer“);
customerService.remove(thisId);
return resUri;
}
public String openAdd(){
logger.info(“##openAdd“);
return resUri;
}
public String add(){
logger.info(“##add Customer“);
customerService.add(customers);
return resUri;
}
public String openEdit(){
logger.info(“##openEdit“);
customers=customerService.findById(thisId);
return resUri;
}
public String edit(){
logger.info(“##edit Customer“);
customerService.update(customers);
return resUri;
}
public String select(){
logger.info(“##select Customer“+customers.getCustomerName());
customerResult=customerService.findByExample(customersgetPage()getRowCount());
footer=PageUtil.pageFooter(customerResult getRequest());
return resUri;
}
public ICustomerService getCustomerService() {
return customerService;
}
public void setCustomerService(ICustomerService customerService) {
this.customerService = customerService;
}
public Integer getThisId() {
return thisId;
}
public void setThisId(Integer thisId) {
this.thisId = thisId;
}
public Customers getCustomers() {
return customers;
}
public void setCustomers(Customers customers) {
this.customers = customers;
}
public Result getCustomerResult() {
return customerResult;
}
public void setCustomerResult(Result customerResult) {
this.customerResult = customerResult;
}
}
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2017-02-18 22:36 storeManager\
文件 5487 2017-01-31 20:19 storeManager\.classpath
目录 0 2017-02-18 22:43 storeManager\.myeclipse\
文件 535 2017-02-03 22:25 storeManager\.myhibernatedata
文件 305 2017-01-31 20:16 storeManager\.myme
文件 240 2017-01-31 20:17 storeManager\.mystrutsdata
文件 2248 2017-02-01 08:53 storeManager\.project
目录 0 2017-01-31 20:16 storeManager\.settings\
文件 496 2017-01-31 20:16 storeManager\.settings\.jsdtscope
文件 395 2017-01-31 20:16 storeManager\.settings\org.eclipse.jdt.core.prefs
文件 466 2017-01-31 20:16 storeManager\.settings\org.eclipse.wst.common.component
文件 252 2017-01-31 20:16 storeManager\.settings\org.eclipse.wst.common.project.facet.core.xm
文件 49 2017-01-31 20:16 storeManager\.settings\org.eclipse.wst.jsdt.ui.superType.container
文件 6 2017-01-31 20:16 storeManager\.settings\org.eclipse.wst.jsdt.ui.superType.name
文件 462 2017-01-31 20:19 storeManager\.springBeans
目录 0 2017-02-04 08:59 storeManager\Web\
目录 0 2017-01-31 20:16 storeManager\Web\me
文件 36 2017-01-31 20:16 storeManager\Web\me
目录 0 2017-02-02 12:40 storeManager\Web\WEB-INF\
目录 0 2017-02-02 12:43 storeManager\Web\WEB-INF\JSP\
目录 0 2017-02-03 16:39 storeManager\Web\WEB-INF\JSP\business\
目录 0 2017-02-02 22:23 storeManager\Web\WEB-INF\JSP\business\customer\
文件 3058 2017-02-02 22:41 storeManager\Web\WEB-INF\JSP\business\customer\Customer_add.jsp
文件 3402 2017-02-03 09:52 storeManager\Web\WEB-INF\JSP\business\customer\Customer_edit.jsp
文件 3823 2017-02-02 22:35 storeManager\Web\WEB-INF\JSP\business\customer\Customer_list.jsp
目录 0 2017-02-03 19:42 storeManager\Web\WEB-INF\JSP\business\orderDetail\
文件 1888 2017-02-04 08:39 storeManager\Web\WEB-INF\JSP\business\orderDetail\OrderDetail_list.jsp
目录 0 2017-02-03 09:29 storeManager\Web\WEB-INF\JSP\business\provider\
文件 3514 2017-02-03 15:57 storeManager\Web\WEB-INF\JSP\business\provider\Provider_add.jsp
文件 3358 2017-02-03 09:51 storeManager\Web\WEB-INF\JSP\business\provider\Provider_edit.jsp
文件 4019 2017-02-04 16:40 storeManager\Web\WEB-INF\JSP\business\provider\Provider_list.jsp
............此处省略538个文件信息
- 上一篇:重构改善代码设计_2nd_Edition
- 下一篇:OPENGL 水波效果 源代码
评论
共有 条评论