public ActionForward deleteApplyDetail (ActionMapping mapping, ActionForm form,
HttpServletRequest request, HttpServletResponse response)
throws Exception {
ApplyForm applyForm = (ApplyForm) form;
int elementID = applyForm.getApplyVO().getElementId();
EmployeeVO employeeVO=getEmployeeVO(request); //得到申报用户的 person_id;
int apply_employee_id=employeeVO.getEmployeeId();
int payrollID =0; // 根据申报用户的 person_id 获取payrollID
payrollID=getPayrollID(apply_employee_id);
if ((Integer) elementID != null && payrollID!=0) {
ApplicationDelegate delegate = new ApplicationDelegate();
FndFlexContextVO tempColumnVO = delegate.getApplyTemplate(elementID,payrollID);
int selectContentid=applyForm.getSelectContentId();
List templatelist = tempColumnVO.getFndFlexColumnList();
request.setAttribute("Templatelist", templatelist);
List contentList = applyForm.getApplyVO().getInstanceContentList();
//删除指定的一行,要求ID
InstanceContentVO instancecontentvo=(InstanceContentVO)contentList.get(selectContentid);
int instance_content_id=instancecontentvo.getInstance_content_id();
int instance_control_id=instancecontentvo.getInstance_control_id();
//如数据库中有数据,也要删除
if(instance_content_id!=0 && instance_control_id!=0){
ApplicationDelegate deleteDelegate = new ApplicationDelegate();
deleteDelegate.deleteApply(instancecontentvo);
}
contentList.remove(selectContentid); //从页面列表中删除
if(contentList.size()==0){
return this.changeElementAction(mapping, form, request, response);
}
}
return forwardTemplatePage(request, mapping, payrollID, elementID);
}
分享到:
相关推荐
MSR-Action3D数据集包含20个动作:高臂波、水平臂波、锤、手抓、向前冲、高抛、画x、画勾、画圆、手拍、双手波、侧拳、弯、前踢、侧踢、慢跑、网球挥杆、网球发球、高尔夫挥杆、拾取、拾取、扔。有10个实验对象,每个...
flash action3 权威文档 附带 文档的实例脚本
spring in action 3 中文版 带目录
MSR Action3D 来自于https://sites.google.com/view/wanqingli/home-news 赚点积分
D3.js In Action D3实战 英文版 D3.js In Action D3实战 英文版 D3.js In Action D3实战 英文版 D3JS参考 学习D3JS
Hibernate In Action 3 第三部分 中文 入门教程
Spring In Action 3 原版
spring in action 3 英文版,看了网上好多人都说翻译的烂,原版的书现在商城也要300多,电子版的可以先看看。
courseTableForStd!downloadFile.action 3.exe
0积分鼠标旋转图片 flashcs action3
Manning.iText.in.Action.Dec.2006.part3
SpringInAction The Spring Framework was created with a very specific goal in mind—to make devel- oping Java EE applications easier. Along the same lines, Spring in Action, Third Edition was written ...
jQuery in Action(3rd) 英文mobi 第3版 本资源转载自网络,如有侵权,请联系上传者或csdn删除 本资源转载自网络,如有侵权,请联系上传者或csdn删除
各位当知... 《spring in action》 3ed! 优化压缩过
Hadoop In Action 中文第二版 卷三 rar
Spring in Action中文清晰版3
jQuery in Action Sourcecode
spring in action 第三版 英文 带源代码
简单易懂的maven3中文版教材,具体操作有详细图解,很简单....
该文档为Spring in action 3.0 第三版 挺不错的