资源简介
生产管理系统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.... 7563 2015-01-26 16:50 beckhoff\CallAdsFuncs.java
I.A.... 53248 2015-01-26 16:50 beckhoff\lib\adstojava.dll
----------- --------- ---------- ----- ----
60811 2
评论
共有 条评论