1.装箱单锁定重量是否确认为空效验
This commit is contained in:
ljw 2024-11-04 19:16:14 +08:00
parent fa5bdfae1c
commit 4ae8998b94

View File

@ -181,7 +181,7 @@ public class EncaseMentEdit extends AbstractBillPlugIn implements Plugin, Before
DynamicObject dataEntity = model.getDataEntity(true); DynamicObject dataEntity = model.getDataEntity(true);
if ("statusconvertpjqr".equals(operateKey) || "statusconvertqrzj".equals(operateKey)) { if ("statusconvertpjqr".equals(operateKey) || "statusconvertqrzj".equals(operateKey)) {
String yemWeightconfirmed = (String) this.getModel().getValue("yem_weightconfirmed"); String yemWeightconfirmed = (String) this.getModel().getValue("yem_weightconfirmed");
if (!yemWeightconfirmed.isEmpty()||"statusconvertpjqr".equals(operateKey)) { if (!yemWeightconfirmed.isEmpty() || "statusconvertpjqr".equals(operateKey)) {
DynamicObjectCollection collection = dataEntity.getDynamicObjectCollection("yem_im_packinginfor_pi"); DynamicObjectCollection collection = dataEntity.getDynamicObjectCollection("yem_im_packinginfor_pi");
StringBuilder sb = new StringBuilder(); StringBuilder sb = new StringBuilder();
for (DynamicObject dynamicObject : collection) { for (DynamicObject dynamicObject : collection) {
@ -359,12 +359,14 @@ public class EncaseMentEdit extends AbstractBillPlugIn implements Plugin, Before
dataEntity.set("yem_affirmmanpj", user); dataEntity.set("yem_affirmmanpj", user);
dataEntity.set("yem_affirmdatepj", new Date()); dataEntity.set("yem_affirmdatepj", new Date());
} }
if (!yemWeightconfirmed.isEmpty()&&"statusconvertqrzj".equals(operateKey)) { if ("statusconvertqrzj".equals(operateKey)){
if (!yemWeightconfirmed.isEmpty()) {
dataEntity.set("yem_completionstatuszj", "B"); dataEntity.set("yem_completionstatuszj", "B");
dataEntity.set("yem_affirmmanzj", user); dataEntity.set("yem_affirmmanzj", user);
dataEntity.set("yem_affirmdatezj", new Date()); dataEntity.set("yem_affirmdatezj", new Date());
} else { } else {
this.getView().showMessage("锁定重量是否确认为空!!!"); this.getView().showMessage("锁定重量是否确认为空!!!");
}
} }
SaveServiceHelper.save(new DynamicObject[]{dataEntity}); SaveServiceHelper.save(new DynamicObject[]{dataEntity});
@ -424,7 +426,7 @@ public class EncaseMentEdit extends AbstractBillPlugIn implements Plugin, Before
if ("statusconvertpjqr".equals(callBackId) || "statusconvertqrzj".equals(callBackId)) { if ("statusconvertpjqr".equals(callBackId) || "statusconvertqrzj".equals(callBackId)) {
String yemWeightconfirmed = (String) this.getModel().getValue("yem_weightconfirmed"); String yemWeightconfirmed = (String) this.getModel().getValue("yem_weightconfirmed");
if (!yemWeightconfirmed.isEmpty()||"statusconvertpjqr".equals(callBackId) ) { if (!yemWeightconfirmed.isEmpty() || "statusconvertpjqr".equals(callBackId)) {
doConfirm(callBackId); doConfirm(callBackId);
} else { } else {
this.getView().showMessage("锁定重量是否确认为空!!!"); this.getView().showMessage("锁定重量是否确认为空!!!");