资源简介
北大青鸟ACCP7.0jboa办公自动化第六章,SSH三大框架包含数据库,请假模块,审批模块。供学员参考。
代码片段和文件信息
/**
*
*/
package com.jbit.jboa.action;
import com.jbit.jboa.constants.Constants;
import com.jbit.jboa.entity.CheckResult;
import com.jbit.jboa.entity.ClaimVoucher;
import com.jbit.jboa.entity.Employee;
import com.jbit.jboa.service.CheckResultService;
import com.jbit.jboa.service.ClaimVoucherService;
import com.jbit.jboa.service.EmployeeService;
import com.jbit.jboa.util.Util;
import com.opensymphony.xwork2.ActionContext;
import com.opensymphony.xwork2.ActionSupport;
/**
* @author 北大青鸟
*
*/
public class CheckResultAction extends ActionSupport {
private static final long serialVersionUID = 4101941574314223772L;
private ClaimVoucher claimVoucher;
private CheckResult checkResult;
private Employee employee;
private CheckResultService checkResultService;
private EmployeeService employeeService;
private ClaimVoucherService claimVoucherService;
public ClaimVoucherService getClaimVoucherService() {
return claimVoucherService;
}
public void setClaimVoucherService(ClaimVoucherService claimVoucherService) {
this.claimVoucherService = claimVoucherService;
}
public Employee getEmployee() {
return employee;
}
public void setEmployee(Employee employee) {
this.employee = employee;
}
public EmployeeService getEmployeeService() {
return employeeService;
}
public void setEmployeeService(EmployeeService employeeService) {
this.employeeService = employeeService;
}
// 审核报销单action审核通过
public String passClaimVoucher() {
// ActionContext ac = ActionContext.getContext();
// employee = (EmployeeEntity) ac.getSession().get(“employee“);
Employee staff = getStaff();//new EmployeeEntity();
// staff = this.employeeService.getEmployee(claimVoucher.getCreator().getSn());
// claimVoucher = this.claimVoucherService.query(claimVoucher);
init();
if (employee.getSysPosition().getNameCn().equals(Constants.POSITION_FM)// 部门经理审核操作
&& staff.getSysDepartment().getId().equals(employee.getSysDepartment().getId())
&& employee.getSn().equals(claimVoucher.getNextDealBy().getSn())) {
Employee nextDeal = new Employee();
if (claimVoucher.getTotalAccount() > 5000) {
claimVoucher.setStatus(Constants.CLAIMVOUCHER_SUBMITTED);
//EmployeeEntity nextDeal = new EmployeeEntity();
nextDeal = this.employeeService.getBoss();//getEmployee(“JV100210001“);// JV100210001是总经理编号
//claimVoucher.setNextDealBy(nextDeal);
} else {
claimVoucher.setStatus(Constants.CLAIMVOUCHER_APPROVED);
//EmployeeEntity nextDeal = new EmployeeEntity();
nextDeal = this.employeeService.getTeller();//getEmployee(“JV100210005“);// JV100210001是总经理编号
//claimVoucher.setNextDealBy
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 5248 2010-12-21 09:20 jboa\src\applicationContext.xm
文件 12590 2011-02-13 08:54 jboa\src\com\jbit\jboa\action\CheckResultAction.java
文件 12367 2011-02-13 08:54 jboa\src\com\jbit\jboa\action\ClaimVoucherAction.java
文件 374 2010-12-20 14:43 jboa\src\com\jbit\jboa\action\ClaimVoucherDetailAction.java
文件 3446 2011-02-13 08:54 jboa\src\com\jbit\jboa\action\EmployeeAction.java
文件 989 2010-12-20 14:42 jboa\src\com\jbit\jboa\action\RandomAction.java
文件 1398 2010-12-20 14:42 jboa\src\com\jbit\jboa\constants\Constants.java
文件 306 2011-02-13 08:53 jboa\src\com\jbit\jboa\dao\CheckResultDao.java
文件 1321 2011-02-13 08:54 jboa\src\com\jbit\jboa\dao\ClaimVoucherDao.java
文件 671 2011-02-13 08:53 jboa\src\com\jbit\jboa\dao\ClaimVoucherDetailDao.java
文件 362 2011-02-13 08:54 jboa\src\com\jbit\jboa\dao\EmployeeDao.java
文件 806 2011-02-13 09:02 jboa\src\com\jbit\jboa\dao\impl\CheckResultDaoImpl.java
文件 9761 2011-02-13 09:42 jboa\src\com\jbit\jboa\dao\impl\ClaimVoucherDaoImpl.java
文件 1877 2011-02-13 09:03 jboa\src\com\jbit\jboa\dao\impl\ClaimVoucherDetailDaoImpl.java
文件 1324 2011-02-13 09:03 jboa\src\com\jbit\jboa\dao\impl\EmployeeDaoImpl.java
文件 1214 2011-02-13 08:55 jboa\src\com\jbit\jboa\entity\Account.hbm.xm
文件 1666 2011-02-13 08:52 jboa\src\com\jbit\jboa\entity\Account.java
文件 2046 2011-02-13 09:01 jboa\src\com\jbit\jboa\entity\CheckResult.hbm.xm
文件 2644 2011-02-13 09:38 jboa\src\com\jbit\jboa\entity\CheckResult.java
文件 2222 2011-02-13 08:56 jboa\src\com\jbit\jboa\entity\ClaimVoucher.hbm.xm
文件 2741 2011-02-13 09:38 jboa\src\com\jbit\jboa\entity\ClaimVoucher.java
文件 1450 2011-02-13 08:56 jboa\src\com\jbit\jboa\entity\ClaimVoucherDetail.hbm.xm
文件 1544 2011-02-13 09:39 jboa\src\com\jbit\jboa\entity\ClaimVoucherDetail.java
文件 1286 2011-02-13 08:57 jboa\src\com\jbit\jboa\entity\Department.hbm.xm
文件 1502 2011-02-13 09:39 jboa\src\com\jbit\jboa\entity\Department.java
文件 974 2011-02-13 08:57 jboa\src\com\jbit\jboa\entity\Dictionary.hbm.xm
文件 1088 2011-02-13 08:53 jboa\src\com\jbit\jboa\entity\Dictionary.java
文件 2895 2011-02-13 08:58 jboa\src\com\jbit\jboa\entity\Employee.hbm.xm
文件 3851 2011-02-13 09:41 jboa\src\com\jbit\jboa\entity\Employee.java
文件 1289 2011-02-13 08:58 jboa\src\com\jbit\jboa\entity\Postition.hbm.xm
............此处省略238个文件信息
- 上一篇:AI圣经《深度学习中文版》 高清.pdf版
- 下一篇:完整网上书店购书系统源码
评论
共有 条评论