package com.ced.sip.workflow.action;
import java.io.IOException;
import java.io.PrintWriter;
import java.util.ArrayList;
import java.util.Date;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import org.snaker.engine.access.QueryFilter;
import org.snaker.engine.entity.HistoryOrder;
import org.snaker.engine.entity.HistoryTask;
import org.snaker.engine.entity.Order;
import org.snaker.engine.entity.Process;
import org.snaker.engine.entity.Task;
import org.snaker.engine.model.TaskModel.PerformType;
import org.springframework.beans.factory.annotation.Autowired;
import com.ced.base.action.BaseAction;
import com.ced.base.exception.BaseException;
import com.ced.sip.capital.biz.ICapitalPlanBiz;
import com.ced.sip.capital.entity.CapitalPlan;
import com.ced.sip.common.AttachmentStatus;
import com.ced.sip.common.BaseDataInfosUtil;
import com.ced.sip.common.TableStatusMap;
import com.ced.sip.common.UserRightInfoUtil;
import com.ced.sip.common.WorkFlowStatus;
import com.ced.sip.common.biz.IAttachmentBiz;
import com.ced.sip.common.biz.IPurchaseRecordLogBiz;
import com.ced.sip.common.entity.Attachment;
import com.ced.sip.common.entity.PurchaseRecordLog;
import com.ced.sip.common.utils.DateUtil;
import com.ced.sip.common.utils.StringUtil;
import com.ced.sip.contract.biz.IContractInfoBiz;
import com.ced.sip.contract.biz.IContractMaterialBiz;
import com.ced.sip.contract.entity.ContractInfo;
import com.ced.sip.contract.entity.ContractMaterial;
import com.ced.sip.contract.util.ContractStatus;
import com.ced.sip.order.biz.IOrderInfoBiz;
import com.ced.sip.order.biz.IOrderMaterialBiz;
import com.ced.sip.order.entity.OrderInfo;
import com.ced.sip.order.entity.OrderMaterial;
import com.ced.sip.order.util.OrderStatus;
import com.ced.sip.purchase.base.biz.IBidAwardBiz;
import com.ced.sip.purchase.base.biz.IBidPriceBiz;
import com.ced.sip.purchase.base.biz.IRequiredCollectBiz;
import com.ced.sip.purchase.base.entity.RequiredCollect;
import com.ced.sip.requirement.biz.IRequiredMaterialBiz;
import com.ced.sip.requirement.entity.RequiredMaterial;
import com.ced.sip.requirement.entity.RequiredMaterialDetail;
import com.ced.sip.system.biz.IDepartmentsBiz;
import com.ced.sip.system.biz.IMaterialBiz;
import com.ced.sip.system.biz.ISysMessageLogBiz;
import com.ced.sip.system.biz.IUsersBiz;
import com.ced.sip.system.entity.Departments;
import com.ced.sip.system.entity.SysMessageLog;
import com.ced.sip.system.entity.Users;
import com.ced.sip.workflow.base.service.SnakerEngineFacets;
import com.ced.sip.workflow.biz.IWfProcessNodeBiz;
import com.ced.sip.workflow.biz.IWfProcessStationRightsBiz;
import com.ced.sip.workflow.biz.IWfTextBiz;
import com.ced.sip.workflow.entity.WfProcessNode;
import com.ced.sip.workflow.entity.WfProcessStationRights;
import com.ced.sip.workflow.entity.WfText;
public class BidWorkFlowAction extends BaseAction {
@Autowired
private SnakerEngineFacets facets;
//需求计划
private IRequiredMaterialBiz iRequiredMaterialBiz;
//需求汇总分包
private IRequiredCollectBiz iRequiredCollectBiz;
//流程节点分配处理人 服务类
private IWfProcessNodeBiz iWfProcessNodeBiz;
//流程审批正文服务类
private IWfTextBiz iWfTextBiz;
//附件上传服务类
private IAttachmentBiz iAttachmentBiz;
//组织机构服务类
private IDepartmentsBiz iDepartmentsBiz;
//用户服务类
private IUsersBiz iUsersBiz;
//消息服务类
private ISysMessageLogBiz iSysMessageLogBiz;
//品类库
private IMaterialBiz iMaterialBiz;
//日志服务类
private IPurchaseRecordLogBiz iPurchaseRecordLogBiz;
// 供应商报价信息
private IBidPriceBiz iBidPriceBiz;
//授标
private IBidAwardBiz iBidAwardBiz;
// 合同信息
private IContractInfoBiz iContractInfoBiz;
//合同明细信息
private IContractMaterialBiz iContractMaterialBiz;
// 订单信息
private IOrderInfoBiz iOrderInfoBiz;
//订单明细信息
private IOrderMaterialBiz iOrderMaterialBiz;
// 资金计划
private ICapitalPlanBiz iCapitalPlanBiz;
private IWfProcessStationRightsBiz iWfProcessStationRightsBiz;
private WfText wfText;
private WfProcessNode wfProcessNode;
private RequiredMaterial requiredMaterial;
private RequiredMaterialDetail requiredMaterialDetail;
private RequiredCollect requiredCollect;
private Departments departments;
private Users users;
private PurchaseRecordLog purchaseRecordLog;
private WfProcessStationRights wfProcessStationRights;
// 合同信息
private ContractInfo contractInfo;
private ContractMaterial contractMaterial;
private List<ContractMaterial> cmList;
// 订单信息
private OrderInfo orderInfo;
private OrderMaterial orderMaterial;
// 资金计划
private CapitalPlan capitalPlan;
private List<OrderMaterial> omList;
private Map purchaseMap=TableStatusMap.purchaseWay;
/***************************处理审批流程 begin******************************************/
/**
* @title 申请人初始化审批流程
* @return
* @throws BaseException
*/
public String initiatorToApply() throws BaseException {
String initPage="";
try{
String from = getRequest().getParameter("from");
String processId = getRequest().getParameter("processId");
String orderId = getRequest().getParameter("orderId");
String orderNo = getRequest().getParameter("orderNo");
String taskId = getRequest().getParameter("taskId");
int orderState=99;
String workFlowType = "";
String detail = getRequest().getParameter("detail");
HistoryOrder hisorder=null;
Task task =null;
if(StringUtil.isNotBlank(orderId)){
hisorder= facets.getEngine().query().getHistOrder(orderId);
if(hisorder.getOrderState()==0||hisorder.getOrderState()==1) detail="detail";
orderState=hisorder.getOrderState();
}
if(StringUtil.isNotBlank(taskId)){
task = facets.getEngine().query().getTask(taskId);
if(task==null) detail="detail";
}
//查看的时候taskId为 wf_hist_task的id,申请提交的时候则为wf_task的id wf_his_task 的id
if(!StringUtil.isBlank(detail)){
HistoryTask histask = facets.getEngine().query().getHistTask(taskId);
if(hisorder==null) hisorder = facets.getEngine().query().getHistOrder(histask.getOrderId());
getRequest().setAttribute("creator", BaseDataInfosUtil.convertLoginNameToChnName(hisorder.getCreator()));
getRequest().setAttribute("deptName", BaseDataInfosUtil.convertDepartNameToChnName(hisorder.getCreator()));
getRequest().setAttribute("createTime", hisorder.getCreateTime());
getRequest().setAttribute("description", this.getWorkFlowText(hisorder.getId()));
//查询审批记录
List hytList = this.getHistoryTaskInfo(hisorder.getId());
this.getRequest().setAttribute("hytList", hytList);
workFlowType=hisorder.getOrderNo().substring(0,2);
orderNo=hisorder.getOrderNo();
orderId=hisorder.getId();
orderState=hisorder.getOrderState();
}else{
getRequest().setAttribute("creator", UserRightInfoUtil.getChineseName(getRequest()));
getRequest().setAttribute("deptName", UserRightInfoUtil.getUserDeptName(getRequest()));
getRequest().setAttribute("createTime", DateUtil.format(new Date(), "yyyy-MM-dd HH:mm:ss"));
if(!StringUtil.isBlank(taskId)){
if(task==null) task = facets.getEngine().query().getTask(taskId);
Order order = facets.getEngine().query().getOrder(task.getOrderId());
//初始化请示正文
getRequest().setAttribute("description", this.getWorkFlowText(task.getOrderId()));
//查询审批记录
List hytList = this.getHistoryTaskInfo(task.getOrderId());
this.getRequest().setAttribute("hytList", hytList);
workFlowType=order.getOrderNo().substring(0,2);
orderNo=order.getOrderNo
没有合适的资源?快使用搜索试试~ 我知道了~
云企采电子采购平台源代码
共2000个文件
java:536个
jsp:532个
png:251个
1星 30 下载量 140 浏览量
2021-03-18
12:34:47
上传
评论 3
收藏 78.32MB RAR 举报
温馨提示
云企采电子采购系统是河南云企采信息科技有限公司以采供管理和在线交易为基本服务内容的企业级互联网平台。 作为国内领先的第三方B2B电子采购平台,云企采通过提供在线寻源、采购管理和供应 商管理等服务,帮助企业有效降低采购成本、提高工作效率、实现精细
资源详情
资源评论
资源推荐
收起资源包目录
云企采电子采购平台源代码 (2000个子文件)
.classpath 11KB
org.eclipse.wst.common.component 447B
org.eclipse.wst.jsdt.ui.superType.container 49B
ace.min.css 256KB
bootstrap.min.css 122KB
bootstrap.min.css 114KB
mui.min.css 100KB
font-awesome.css 37KB
ace-rtl.min.css 36KB
jquery-ui-1.8.4.custom.css 33KB
font-awesome.min.css 30KB
common.css 28KB
ace-skins.min.css 26KB
css.css 24KB
iconfont.css 23KB
default.css 21KB
bootstrap-responsive.min.css 21KB
swiper-3.4.2.min.css 17KB
jquery.dataTables.css 15KB
jquery.dataTables_themeroller.css 14KB
default.css 13KB
jquery.dataTables.min.css 13KB
chosen.css 13KB
chosen.min.css 11KB
style.css 10KB
bootstrap2.css 7KB
ace-ie.min.css 7KB
iconfont.css 6KB
zTreeStyle.css 6KB
dataTables.bootstrap.css 5KB
bidding.css 5KB
index.css 5KB
datepicker-dev.css 5KB
multiple-select.css 4KB
thickbox.css 4KB
datepicker.css 4KB
datepicker.css 4KB
login.css 4KB
reg.css 4KB
step.css 3KB
datepicker.css 3KB
bidding.css 3KB
base.css 3KB
qq.css 3KB
bidMonitor.css 3KB
login.css 2KB
simple.css 2KB
Validform.css 2KB
snaker.css 2KB
zTree.css 2KB
bid.css 2KB
style.css 2KB
supplierLeft.css 2KB
timeline.css 2KB
styleMobile.css 1KB
tab.css 1KB
honeySwitch.css 1KB
process.css 1KB
prettify.css 960B
jquery.autocomplete.css 797B
bootstro.css 766B
main.css 719B
bootstro.min.css 545B
webuploader.css 515B
supplier.css 507B
responsiveslides.css 465B
index.css 282B
WdatePicker.css 192B
Thumbs.db 21KB
Thumbs.db 4KB
fontawesome-webfont.eot 162KB
iconfont.eot 22KB
iconfont.eot 5KB
install_lodop64.exe 2.47MB
install_lodop32.exe 2.32MB
jsp_viewTemplate.ftl 11KB
actionTemplate.ftl 6KB
jsp_updateTemplate.ftl 5KB
bizImplTemplate.ftl 5KB
jsp_saveTemplate.ftl 4KB
ibizTemplate.ftl 2KB
jsp_detailTemplate.ftl 2KB
mapperOracleTemplate.ftl 2KB
entityTemplate.ftl 2KB
static.gif 35KB
35.gif 13KB
42.gif 13KB
40.gif 10KB
loading.gif 9KB
loading.gif 8KB
18.gif 8KB
19.gif 8KB
11.gif 8KB
nopic.gif 7KB
32.gif 7KB
discuz_bg.gif 7KB
loading.gif 7KB
49.gif 6KB
29.gif 6KB
zTreeStandard.gif 5KB
共 2000 条
- 1
- 2
- 3
- 4
- 5
- 6
- 20
weixin_38615397
- 粉丝: 6
- 资源: 895
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- 【包包类】直播带货台本剧本脚本-包包直播脚本.pdf
- 【服装类】如何进行直播卖衣服.docx
- 【服装类】服装带货直播稿.xlsx
- 【服饰类】服饰类直播脚本策划模板.xlsx
- 【冬装类】某猫店冬装直播脚本.xlsx
- 【服装类】服装直播带货脚本(话术案例).pdf
- 【服装类】服装品牌电商直播带货活动执行方案.docx
- 【男装类】2020整理(直播)九牧王天猫直播方案.pdf
- 【男装类】男装销售销售技巧和话术经典语句.pdf
- 【内衣类】内衣销售话术.doc
- 【男装类】男士皮衣直播话术.pdf
- 【女装类】初语 店铺直播脚本.xls
- 【女鞋类】女装鞋类行业直播内容具体讲解.docx
- 【女装类】女装销售话术900句.docx
- 【女装类】女装细节文案-总结.docx
- 【童装类】儿童潮装直播间话术.pdf
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功
评论1