报销单矿山组织隔离代码调整
This commit is contained in:
parent
77c6f1a246
commit
2b447654ef
|
@ -49,9 +49,9 @@ public class DailInvoiceOverdueRemindersOp extends AbstractOperationServicePlugI
|
|||
//当前切换选择的组织
|
||||
Long currentOrgId = RequestContext.get().getOrgId();
|
||||
//当前所在的组织是属于矿山下的
|
||||
if(OrgCheckUtils.isKS(currentOrgId)){
|
||||
// if(OrgCheckUtils.isKS(currentOrgId)){
|
||||
e.getValidators().add(new DailInvoiceOverdueRemindersOp.ValidatorExt());
|
||||
}
|
||||
// }
|
||||
}
|
||||
|
||||
class ValidatorExt extends AbstractValidator {
|
||||
|
|
|
@ -40,6 +40,7 @@ public class DailyreimbursVisitCheckOp extends AbstractOperationServicePlugIn {
|
|||
e.getFieldKeys().add("zcgj_holiday_days");
|
||||
e.getFieldKeys().add("bizdate");
|
||||
e.getFieldKeys().add("billstatus");
|
||||
e.getFieldKeys().add("costcompany");
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -51,9 +52,9 @@ public class DailyreimbursVisitCheckOp extends AbstractOperationServicePlugIn {
|
|||
//当前切换选择的组织
|
||||
Long currentOrgId = RequestContext.get().getOrgId();
|
||||
//当前所在的组织是属于矿山下的
|
||||
if(OrgCheckUtils.isKS(currentOrgId)){
|
||||
//if(OrgCheckUtils.isKS(currentOrgId)){
|
||||
e.getValidators().add(new ValidatorExt());
|
||||
}
|
||||
// }
|
||||
}
|
||||
|
||||
class ValidatorExt extends AbstractValidator {
|
||||
|
@ -69,6 +70,10 @@ public class DailyreimbursVisitCheckOp extends AbstractOperationServicePlugIn {
|
|||
for (ExtendedDataEntity extendedDataEntity : extendedDataEntities) {
|
||||
DynamicObject dataEntity = extendedDataEntity.getDataEntity();
|
||||
long aLong = dataEntity.getLong("id");
|
||||
DynamicObject companyObj = (DynamicObject) dataEntity.get("costcompany");//核算组织(费用承担公司)
|
||||
if (companyObj != null) {
|
||||
Long companyId = companyObj.getLong("id");
|
||||
if (OrgCheckUtils.isKS(companyId)) {
|
||||
//获取报销人
|
||||
DynamicObject applier = dataEntity.getDynamicObject("applier");
|
||||
long applierId = applier.getLong("id");
|
||||
|
@ -291,6 +296,8 @@ public class DailyreimbursVisitCheckOp extends AbstractOperationServicePlugIn {
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
|
|
|
@ -44,9 +44,9 @@ public class TravelInvoiceOverdueRemindersOp extends AbstractOperationServicePlu
|
|||
//当前切换选择的组织
|
||||
Long currentOrgId = RequestContext.get().getOrgId();
|
||||
//当前所在的组织是属于矿山下的
|
||||
if(OrgCheckUtils.isKS(currentOrgId)){
|
||||
// if(OrgCheckUtils.isKS(currentOrgId)){
|
||||
e.getValidators().add(new TravelInvoiceOverdueRemindersOp.ValidatorExt());
|
||||
}
|
||||
// }
|
||||
}
|
||||
|
||||
class ValidatorExt extends AbstractValidator {
|
||||
|
|
|
@ -43,9 +43,9 @@ public class TripreimbursebillUpOp extends AbstractOperationServicePlugIn {
|
|||
//当前切换选择的组织
|
||||
Long currentOrgId = RequestContext.get().getOrgId();
|
||||
//当前所在的组织是属于矿山下的
|
||||
if(OrgCheckUtils.isKS(currentOrgId)){
|
||||
//if(OrgCheckUtils.isKS(currentOrgId)){
|
||||
e.getValidators().add(new ValidatorExt());
|
||||
}
|
||||
//}
|
||||
}
|
||||
|
||||
class ValidatorExt extends AbstractValidator {
|
||||
|
|
Loading…
Reference in New Issue