1.补充合同印章管理员

S
This commit is contained in:
weiyunlong 2025-03-05 10:15:34 +08:00
parent d89e0cfcc0
commit 69fbf64de2
1 changed files with 21 additions and 10 deletions

View File

@ -26,6 +26,7 @@ public class IWorkParticipantPlugin implements IWorkflowPlugin {
* recon_designchgbill(涉及变更) 供应商:designunit(设计单位) * recon_designchgbill(涉及变更) 供应商:designunit(设计单位)
* recon_chgauditorderbill(工程指令) 供应商:construnit(施工单位) * recon_chgauditorderbill(工程指令) 供应商:construnit(施工单位)
* recon_rewarddeductbill(奖励扣款) 供应商存在分录:rewarddeductentry(奖惩单分录) 供应商:entry_supplier(供应商) * recon_rewarddeductbill(奖励扣款) 供应商存在分录:rewarddeductentry(奖惩单分录) 供应商:entry_supplier(供应商)
* recon_supplyconbill(补充合同)_主合同(contractbill)_印章管理员
*/ */
@Override @Override
public List<Long> calcUserIds(AgentExecution execution) { public List<Long> calcUserIds(AgentExecution execution) {
@ -52,6 +53,13 @@ public class IWorkParticipantPlugin implements IWorkflowPlugin {
case "recon_payreqbill": case "recon_payreqbill":
handlePayReqBill(entity, currentApprover); handlePayReqBill(entity, currentApprover);
break; break;
case "recon_supplyconbill":
DynamicObject contractbill = entity.getDynamicObject("contractbill"); // 补充合同_主合同
if (null != contractbill) {
contractbill = BusinessDataServiceHelper.loadSingle(contractbill.getPkValue(), "recon_contractbill");
handleContractBill(contractbill, currentApprover);
}
break;
default: default:
// 处理未定义的实体编码的情况可选 // 处理未定义的实体编码的情况可选
break; break;
@ -63,9 +71,10 @@ public class IWorkParticipantPlugin implements IWorkflowPlugin {
/** /**
* 根据供应商名称获取联系人并添加到传阅人中 * 根据供应商名称获取联系人并添加到传阅人中
* @param entity 当前单据 *
* @param entity 当前单据
* @param currentApprover 当前审批人 * @param currentApprover 当前审批人
* @param supplierTitle 供应商标识 * @param supplierTitle 供应商标识
* @return * @return
*/ */
public static List<Long> getApprover(DynamicObject entity, List<Long> currentApprover, String supplierTitle) { public static List<Long> getApprover(DynamicObject entity, List<Long> currentApprover, String supplierTitle) {
@ -88,10 +97,11 @@ public class IWorkParticipantPlugin implements IWorkflowPlugin {
/** /**
* 根据供应商名称获取联系人并添加到传阅人中 * 根据供应商名称获取联系人并添加到传阅人中
* @param entity 当前单据 *
* @param entity 当前单据
* @param currentApprover 当前审批人 * @param currentApprover 当前审批人
* @param supplierEntry 供应商分录标识 * @param supplierEntry 供应商分录标识
* @param supplierTitle 供应商标识 * @param supplierTitle 供应商标识
* @return * @return
*/ */
public static List<Long> getApprovers(DynamicObject entity, List<Long> currentApprover, String supplierEntry, String supplierTitle) { public static List<Long> getApprovers(DynamicObject entity, List<Long> currentApprover, String supplierEntry, String supplierTitle) {
@ -117,7 +127,8 @@ public class IWorkParticipantPlugin implements IWorkflowPlugin {
/** /**
* 将用户添加到当前审批人列表中 * 将用户添加到当前审批人列表中
* @param contactPerson 联系人姓名 *
* @param contactPerson 联系人姓名
* @param currentApprover 当前审批人列表 * @param currentApprover 当前审批人列表
*/ */
private static void addUserToApprover(String contactPerson, List<Long> currentApprover) { private static void addUserToApprover(String contactPerson, List<Long> currentApprover) {
@ -133,8 +144,8 @@ public class IWorkParticipantPlugin implements IWorkflowPlugin {
private void handleContractBill(DynamicObject entity, List<Long> currentApprover) { private void handleContractBill(DynamicObject entity, List<Long> currentApprover) {
// String partyatype = entity.getString("partyatype"); // 甲方类别 // String partyatype = entity.getString("partyatype"); // 甲方类别
// if ("qeug_recon_developer".equals(partyatype)) { // if ("qeug_recon_developer".equals(partyatype)) {
DynamicObject dynamicObject = entity.getDynamicObject("multitypepartya"); // 甲方 DynamicObject dynamicObject = entity.getDynamicObject("multitypepartya"); // 甲方
addApprover(currentApprover, dynamicObject, "qeug_userfield2", "印章管理员"); addApprover(currentApprover, dynamicObject, "qeug_userfield2", "印章管理员");
// } // }
} }
@ -144,8 +155,8 @@ public class IWorkParticipantPlugin implements IWorkflowPlugin {
contractbill = BusinessDataServiceHelper.loadSingle(contractbill.getPkValue(), "recon_contractbill"); contractbill = BusinessDataServiceHelper.loadSingle(contractbill.getPkValue(), "recon_contractbill");
// String partyatype1 = contractbill.getString("partyatype"); // 甲方类别 // String partyatype1 = contractbill.getString("partyatype"); // 甲方类别
// if ("qeug_recon_developer".equals(partyatype1)) { // if ("qeug_recon_developer".equals(partyatype1)) {
DynamicObject dynamicObject = contractbill.getDynamicObject("multitypepartya"); // 甲方 DynamicObject dynamicObject = contractbill.getDynamicObject("multitypepartya"); // 甲方
addApprover(currentApprover, dynamicObject, "qeug_userfield", "园区会计"); addApprover(currentApprover, dynamicObject, "qeug_userfield", "园区会计");
// } // }
} }
} }