设备退场审核反审核操作去除不存在设备进厂逻辑
This commit is contained in:
parent
d220d45211
commit
e510a01769
|
@ -22,6 +22,10 @@ import kd.ec.eceq.common.enums.UseStatusEnum;
|
||||||
import kd.ec.eceq.opplugin.EquipmentHelper;
|
import kd.ec.eceq.opplugin.EquipmentHelper;
|
||||||
import kd.ec.eceq.opplugin.validator.EquipExitValidator;
|
import kd.ec.eceq.opplugin.validator.EquipExitValidator;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 设备退场审核反审核操作按钮
|
||||||
|
* 说明:去除不存在设备进厂逻辑
|
||||||
|
*/
|
||||||
public class EquipmentExitOpExt extends AbstractOperationServicePlugIn {
|
public class EquipmentExitOpExt extends AbstractOperationServicePlugIn {
|
||||||
public EquipmentExitOpExt() {
|
public EquipmentExitOpExt() {
|
||||||
}
|
}
|
||||||
|
@ -68,6 +72,9 @@ public class EquipmentExitOpExt extends AbstractOperationServicePlugIn {
|
||||||
while(var11.hasNext()) {
|
while(var11.hasNext()) {
|
||||||
DynamicObject row = (DynamicObject)var11.next();
|
DynamicObject row = (DynamicObject)var11.next();
|
||||||
long approachRowId = row.getLong("approachrow");
|
long approachRowId = row.getLong("approachrow");
|
||||||
|
if (approachRowId == 0L){
|
||||||
|
return;
|
||||||
|
}
|
||||||
DynamicObject approachEquip = BusinessDataServiceHelper.loadSingle(approachRowId, "eceq_approachequipf7");
|
DynamicObject approachEquip = BusinessDataServiceHelper.loadSingle(approachRowId, "eceq_approachequipf7");
|
||||||
boolean isExit = approachEquip.getBoolean("isexit");
|
boolean isExit = approachEquip.getBoolean("isexit");
|
||||||
if (!isExit) {
|
if (!isExit) {
|
||||||
|
@ -113,6 +120,9 @@ public class EquipmentExitOpExt extends AbstractOperationServicePlugIn {
|
||||||
while(var10.hasNext()) {
|
while(var10.hasNext()) {
|
||||||
DynamicObject row = (DynamicObject)var10.next();
|
DynamicObject row = (DynamicObject)var10.next();
|
||||||
long approachRowId = row.getLong("approachrow");
|
long approachRowId = row.getLong("approachrow");
|
||||||
|
if (approachRowId == 0L){
|
||||||
|
return;
|
||||||
|
}
|
||||||
DynamicObject approachEquip = BusinessDataServiceHelper.loadSingle(approachRowId, "eceq_approachequipf7");
|
DynamicObject approachEquip = BusinessDataServiceHelper.loadSingle(approachRowId, "eceq_approachequipf7");
|
||||||
boolean isExit = approachEquip.getBoolean("isexit");
|
boolean isExit = approachEquip.getBoolean("isexit");
|
||||||
if (isExit) {
|
if (isExit) {
|
||||||
|
|
Loading…
Reference in New Issue