package com.cqedu.budget.applist.action;
import com.cqedu.budget.applist.bean.Budgetapp;
import com.opensymphony.xwork2.ActionContext;
import com.opensymphony.xwork2.ActionSupport;
import com.cqedu.budget.applist.service.UserService;
import java.util.List;
import javax.servlet.http.HttpServletRequest;
import org.apache.struts2.ServletActionContext;
public class AppQueryAction extends ActionSupport {
/**
*
*/
private static final long serialVersionUID = -458856227490777718L;
private Budgetapp budgetapp = new Budgetapp();
private UserService userService = null;
private List<Budgetapp> appList = null;
private List<Budgetapp> appunitList = null;
private List<Budgetapp> detlFeeList = null;
private List<Budgetapp> allFeeList=null;
private Budgetapp newBudget=null;
//8-31
private List<Budgetapp> apprFeeList=null;
private List<Budgetapp> apprInfoList=null;
private List<Budgetapp> apprProList=null;
private List<Budgetapp> apprProHis=null;
private List<Budgetapp> apprFlow=null;
private List<Budgetapp> apprUnit=null;
private List<Budgetapp> appName=null;
private List<Budgetapp> appSum=null;
/**
* 查询预算申请的action
*/
public String queryList(){
ActionContext actionContext = ActionContext.getContext();
HttpServletRequest request = (HttpServletRequest) actionContext.get(ServletActionContext.HTTP_REQUEST);
String User_id=request.getParameter("buget_user_id");
Budgetapp budgetapp=new Budgetapp();
long user_id=Long.parseLong(User_id);
budgetapp.setUuid(user_id);
this.appList=this.userService.queryList(budgetapp);
request.getSession().setAttribute("appList", appList);
return SUCCESS;
}
/**
* 读取审批流程的action
*/
public String queryFlow(){
this.apprFlow=this.userService.queryApprFlow(budgetapp);
return SUCCESS;
}
/**
* 选择审批单元的action
*/
public String queryUnit(){
this.apprUnit=this.userService.queryApprUnit(budgetapp);
return SUCCESS;
}
/*
*预算申请
*/
public String bugetApp()
{
this.appunitList=this.userService.selectUnit(budgetapp);
this.appSum=this.userService.queruAppNum(budgetapp);
return SUCCESS;
}
/*
* 提取某个预算单元的明细费用
*/
public String queryFeeDetl()
{
this.detlFeeList=this.userService.selectDetlFee(budgetapp);
return SUCCESS;
}
/*
* 提取某个预算单元的所有值
*/
public String selectFeeDetl()
{
this.allFeeList=this.userService.selectAllDetlFee(budgetapp);
return SUCCESS;
}
/**
* 插入预算明细费用
*/
/* public String updateFeeDetl(){
this.userService.insertDetlFee(budgetapp);
return SUCCESS;
}*/
public String insertFeeDetl()
{
/*ActionContext actionContext = ActionContext.getContext();
HttpServletRequest request = (HttpServletRequest) actionContext.get(ServletActionContext.HTTP_REQUEST);
String appid=request.getParameter("appsumid");
Budgetapp budgetapp=new Budgetapp();
long asumid=Long.parseLong(appid);
System.out.println(asumid);
budgetapp.setBid(asumid);*/
this.userService.updateFeeDetl(budgetapp);
this.userService.insertDetlFee(budgetapp);
this.apprFlow=this.userService.queryApprFlow(budgetapp);
return SUCCESS;
}
//8-31
/**
* 查看预算明细列表及信息列表
*/
public String queryApprList(){
ActionContext actionContext = ActionContext.getContext();
HttpServletRequest request = (HttpServletRequest) actionContext.get(ServletActionContext.HTTP_REQUEST);
String bid=request.getParameter("bid");
long bbid=Long.parseLong(bid);
budgetapp.setBid(bbid);
this.apprFeeList=this.userService.queryApprList(budgetapp);
this.apprInfoList=this.userService.queryAppDetail(budgetapp);
System.out.println(apprInfoList.size());
return SUCCESS;
}
/**
* 查看审批过程
*/
public String queryApprPro(){
ActionContext actionContext = ActionContext.getContext();
HttpServletRequest request = (HttpServletRequest) actionContext.get(ServletActionContext.HTTP_REQUEST);
String bid=request.getParameter("bid");
long bbid=Long.parseLong(bid);
budgetapp.setBid(bbid);
this.apprProHis=this.userService.queryApprPro(budgetapp);
return SUCCESS;
}
public String accessAppr()
{
/*ActionContext actionContext = ActionContext.getContext();
HttpServletRequest request = (HttpServletRequest) actionContext.get(ServletActionContext.HTTP_REQUEST);
String insert_user_id=request.getParameter("insert_user_id");
Budgetapp budgetapp=new Budgetapp();
long insert_uid=Long.parseLong(insert_user_id);
budgetapp.setUuid(insert_uid);*/
this.userService.insertUuid(budgetapp);
return SUCCESS;
}
/*******************************************************************/
public String insertFid()
{
this.userService.insertFid(budgetapp);
this.userService.insertBidAno(budgetapp);
return SUCCESS;
}
public UserService getUserService() {
return userService;
}
public void setUserService(UserService userService) {
this.userService = userService;
}
public List<Budgetapp> getAppList() {
return appList;
}
public void setAppList(List<Budgetapp> appList) {
this.appList = appList;
}
public void setAppunitList(List<Budgetapp> appunitList) {
this.appunitList = appunitList;
}
public List<Budgetapp> getAppunitList() {
return appunitList;
}
public void setDetlFeeList(List<Budgetapp> detlFeeList) {
this.detlFeeList = detlFeeList;
}
public List<Budgetapp> getDetlFeeList() {
return detlFeeList;
}
public List<Budgetapp> getAllFeeList() {
return allFeeList;
}
public void setAllFeeList(List<Budgetapp> allFeeList) {
this.allFeeList = allFeeList;
}
public Budgetapp getBudgetapp() {
return budgetapp;
}
public void setBudgetapp(Budgetapp budgetapp) {
this.budgetapp = budgetapp;
}
//8-31
public List<Budgetapp> getApprFeeList() {
return apprFeeList;
}
public void setApprFeeList(List<Budgetapp> apprFeeList) {
this.apprFeeList = apprFeeList;
}
public List<Budgetapp> getApprInfoList() {
return apprInfoList;
}
public void setApprInfoList(List<Budgetapp> apprInfoList) {
this.apprInfoList = apprInfoList;
}
public List<Budgetapp> getApprProList() {
return apprProList;
}
public void setApprProList(List<Budgetapp> apprProList) {
this.apprProList = apprProList;
}
public List<Budgetapp> getApprProHis() {
return apprProHis;
}
public void setApprProHis(List<Budgetapp> apprProHis) {
this.apprProHis = apprProHis;
}
public List<Budgetapp> getApprFlow() {
return apprFlow;
}
public void setApprFlow(List<Budgetapp> apprFlow) {
this.apprFlow = apprFlow;
}
public List<Budgetapp> getApprUnit() {
return apprUnit;
}
public void setApprUnit(List<Budgetapp> apprUnit) {
this.apprUnit = apprUnit;
}
public List<Budgetapp> getAppName() {
return appName;
}
public void setAppName(List<Budgetapp> appName) {
this.appName = appName;
}
public List<Budgetapp> getAppSum() {
return appSum;
}
public void setAppSum(List<Budgetapp> appSum) {
this.appSum = appSum;
}
public Budgetapp getNewBudget() {
return newBudget;
}
public void setNewBudget(Budgetapp newBudget) {
this.newBudget = newBudget;
}
}
没有合适的资源?快使用搜索试试~ 我知道了~
温馨提示
【项目资源】:包含前端、后端、移动开发、操作系统、人工智能、物联网、信息化管理、数据库、硬件开发、大数据、课程资源、音视频、网站开发等各种技术项目的源码。包括STM32、ESP8266、PHP、QT、Linux、iOS、C++、Java、python、web、C#、EDA、proteus、RTOS等项目的源码。【项目质量】:所有源码都经过严格测试,可以直接运行。功能在确认正常工作后才上传。【适用人群】:适用于希望学习不同技术领域的小白或进阶学习者。可作为毕设项目、课程设计、大作业、工程实训或初期项目立项。【附加价值】:项目具有较高的学习借鉴价值,也可直接拿来修改复刻。对于有一定基础或热衷于研究的人来说,可以在这些基础代码上进行修改和扩展,实现其他功能。【沟通交流】:有任何使用上的问题,欢迎随时与博主沟通,博主会及时解答。鼓励下载和使用,并欢迎大家互相学习,共同进步。
资源推荐
资源详情
资源评论
收起资源包目录
基于java实现的企业费用管理系统(SSH+Oracle)130222(源代码+使用说明+论文).rar (303个子文件)
logo.bmp 125KB
AppQueryAction.class 7KB
AddUser.class 7KB
Reimapp.class 6KB
ReimAction.class 6KB
FlowAction.class 6KB
Budgetapp.class 5KB
FlowServiceImpl.class 5KB
User.class 5KB
Financebean.class 5KB
UserServiceImpl.class 3KB
UserServiceImpl.class 3KB
ReimServiceImpl.class 3KB
FinanceAction.class 2KB
AbstractFlow.class 2KB
AbstractFlowSeq.class 2KB
AbstractSeq.class 1KB
FinanceServiceImpl.class 1KB
FlowService.class 1KB
UserService.class 895B
AbstractDepartment.class 828B
CommonServiceImpl.class 825B
CommonServiceImpl.class 804B
CommonServiceImpl.class 795B
TestAddUser.class 779B
AbstractRole.class 756B
Flow.class 756B
UserService.class 751B
FlowSeq.class 712B
ReimService.class 678B
commonServiceImpl.class 668B
Seq.class 615B
FinanceService.class 365B
Department.class 302B
Role.class 282B
CommonService.class 147B
commonService.class 141B
commonService.class 141B
CommonService.class 140B
CommonService.class 137B
.classpath 2KB
org.eclipse.wst.jsdt.ui.superType.container 49B
login_08.gif 25KB
复件 login_03.gif 20KB
login_03.gif 20KB
login_05.gif 7KB
main_09.gif 6KB
login_07.gif 5KB
main_30.gif 3KB
main_40.gif 3KB
main_03.gif 3KB
main_32.gif 2KB
main_04.gif 2KB
main_29.gif 2KB
main_22.gif 2KB
main_48.gif 2KB
main_47.gif 2KB
login_06.gif 2KB
main_20.gif 1KB
main_18.gif 1KB
main_12.gif 1KB
main_11.gif 1KB
main_14.gif 1KB
main_16.gif 1KB
main_23.gif 1KB
main_28.gif 977B
tab_17.gif 924B
main_24.gif 888B
main_26.gif 887B
main_25.gif 886B
main_27.gif 879B
main_58.gif 804B
tab_20.gif 770B
tab_07.gif 752B
back.gif 749B
next.gif 745B
last.gif 741B
go.gif 736B
first.gif 736B
tab_18.gif 715B
main_07.gif 701B
tab_03.gif 699B
main_37.gif 661B
main_05.gif 640B
tb.gif 585B
main_31.gif 552B
tab_19.gif 420B
dl.gif 377B
tab_05.gif 375B
login_09.gif 364B
login_01.gif 351B
11.gif 341B
33.gif 337B
main_21.gif 317B
main_34.gif 292B
bg.gif 273B
22.gif 215B
main_36.gif 203B
main_55_1.gif 201B
main_55.gif 201B
共 303 条
- 1
- 2
- 3
- 4
资源评论
CrMylive.
- 粉丝: 1w+
- 资源: 4万+
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功