资源简介
生产管理系统JAVA现成代码,采用SSH框架,绝对物超所值,可用于毕业设计参考。下载mysql、navicat将数据库文件导入mysql中即可运行。
代码片段和文件信息
package com.ictsd.mes.baseManage.action;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;
import com.ictsd.mes.baseManage.service.BillStatusManageService;
import com.ictsd.mes.baseManage.service.ItemTypeManageService;
import com.ictsd.mes.common.service.baseService;
import com.ictsd.mes.exception.baseException;
import com.ictsd.mes.pojo.Billstatusinfo;
import com.ictsd.mes.pojo.Itemtypeinfo;
import com.ictsd.mes.utils.ActionUtil;
import com.opensymphony.xwork2.ActionSupport;
public class BillStatusManageAction extends ActionSupport{
private BillStatusManageService billStatusManageService;
private baseService baseService;
private List billstatusinfos;
private Billstatusinfo billstatusinfo;
private int currentPage=1;
private int pageSize=10;
private int amount;
public String showBillstatusinfos(){
if(billstatusinfo!=null){
billstatusinfos=billStatusManageService.getBillstatusinfoByBs(billstatusinfo currentPage pageSize);
amount=billStatusManageService.getCountBillstatusinfoByBs(billstatusinfo);
}
else{
billstatusinfos=baseService.findPageListByCriteria(Billstatusinfo.class currentPage pageSize);
amount=baseService.getCountByCriteria(Itemtypeinfo.class);
}
return ActionUtil.LIST;
}
public String getBillstatusinfoById(){
if(billstatusinfo==null){
return null;
}
billstatusinfo=(Billstatusinfo) baseService.get(Billstatusinfo.class billstatusinfo.getId());
return ActionUtil.MODIFY;
}
public String addBillstatusinfo(){
return ActionUtil.ADD;
}
public String saveBillstatusinfo() throws baseException{
Serializable serializable=baseService.save(billstatusinfo);
return addBillStatus(serializable);
}
public String modifyBillstatusinfo() throws baseException{
baseService.update(billstatusinfo);
return addBillStatus(billstatusinfo.getId());
}
public String delBillstatusinfo() throws baseException{
if(billstatusinfos!=null){
for(int i=0;i baseService.delete(baseService.get(Billstatusinfo.class billstatusinfos.get(i).getId()));
}
}
return showBillstatusinfos();
}
private String addBillStatus(Serializable serializable) {
billstatusinfos=new ArrayList();
Billstatusinfo e=(Billstatusinfo) baseService.get(Billstatusinfo.class serializable);
billstatusinfos.add(e);
return ActionUtil.LIST;
}
public BillStatusManageService getBillStatusManageService() {
return billStatusManageService;
}
public void setBillStatusManageService(
BillStatusManageService billStatusManageService) {
this.billStatusManageService = billStatusManageService;
}
public baseService getbaseService() {
return baseService;
}
public void setbaseService(baseService baseService) {
this.baseService = baseService;
}
public List getBillstatusinfos() {
return billstatusinfos;
}
public voi
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
I.A.... 6147 2015-01-26 16:50 mesvb\.classpath
I.A.... 596 2015-01-26 16:49 mesvb\.hibernateSynchronizer3\config.properties
I.A.... 553 2015-01-26 16:49 mesvb\.myhibernatedata
I.A.... 300 2015-01-26 16:50 mesvb\.myme
I.A.... 2158 2015-01-26 16:50 mesvb\.project
I.A.... 500 2015-01-26 16:50 mesvb\.settings\.jsdtscope
I.A.... 166 2015-01-26 16:50 mesvb\.settings\org.eclipse.core.resources.prefs
I.A.... 598 2015-01-26 16:50 mesvb\.settings\org.eclipse.jdt.core.prefs
I.A.... 104 2015-01-26 16:50 mesvb\.settings\org.eclipse.ltk.core.refactoring.prefs
I.A.... 521 2015-01-26 16:50 mesvb\.settings\org.eclipse.wst.common.component
I.A.... 252 2015-01-26 16:50 mesvb\.settings\org.eclipse.wst.common.project.facet.core.xm
I.A.... 49 2015-01-26 16:50 mesvb\.settings\org.eclipse.wst.jsdt.ui.superType.container
I.A.... 6 2015-01-26 16:50 mesvb\.settings\org.eclipse.wst.jsdt.ui.superType.name
I.A.... 85 2015-01-26 16:50 mesvb\.settings\org.eclipse.wst.ws.service.policy.prefs
I.A.... 415 2015-01-26 16:50 mesvb\.springBeans
I.A.... 3 2015-01-26 16:49 mesvb\.svn\entries
I.A.... 3 2015-01-26 16:49 mesvb\.svn\format
I.A.... 170 2015-01-26 16:50 mesvb\.svn\pristine\00\0037091291c411365e33a03f3e4ba814d54c7ab9.svn-ba
I.A.... 260 2015-01-26 16:50 mesvb\.svn\pristine\00\00467c1baa4818f155c9105f9af136046a465d9f.svn-ba
I.A.... 1089 2015-01-26 16:50 mesvb\.svn\pristine\00\0065a650eb2d462f755c873b939baa6fa2c7dc0e.svn-ba
I.A.... 5403 2015-01-26 16:50 mesvb\.svn\pristine\00\00945c5aa6bed971942ef0d771e53f8c18afc910.svn-ba
I.A.... 1153 2015-01-26 16:50 mesvb\.svn\pristine\01\0101a7113a0e0cdad12be9d48aae6259dba14432.svn-ba
I.A.... 1584 2015-01-26 16:50 mesvb\.svn\pristine\01\011109064c44890aec5ca0e7a67a9689ebe8b9d0.svn-ba
I.A.... 9034 2015-01-26 16:50 mesvb\.svn\pristine\01\0111de20ac2e4eca90b7988627ada51c20629a29.svn-ba
I.A.... 904 2015-01-26 16:50 mesvb\.svn\pristine\01\011d7024922b168e4d934f77a58b5e38bc21fad4.svn-ba
I.A.... 2454 2015-01-26 16:50 mesvb\.svn\pristine\01\0121bdc96ca760ac1b35707746df1aea1f0b507e.svn-ba
I.A.... 244 2015-01-26 16:50 mesvb\.svn\pristine\01\0146248c0358eaae6a002fc7ad492483b60ff503.svn-ba
I.A.... 933 2015-01-26 16:50 mesvb\.svn\pristine\01\0189687bf9c7eadf57bf68c93096950676926451.svn-ba
I.A.... 3620 2015-01-26 16:50 mesvb\.svn\pristine\02\02171b84ed314d2acc1b2844e7ea25f0a4556384.svn-ba
I.A.... 4369 2015-01-26 16:50 mesvb\.svn\pristine\02\025ac45fa88c03878bd672b1007e6dbcf0c03ebf.svn-ba
............此处省略4095个文件信息
评论
共有 条评论