fix:
1.发运明细备注赋值
This commit is contained in:
parent
2d7cd037e3
commit
b7e7eb190b
@ -689,10 +689,11 @@ public class ShippingDetailsFormPlugin extends AbstractBillPlugIn implements Bef
|
|||||||
private void extracted() {
|
private void extracted() {
|
||||||
|
|
||||||
String value = ((DynamicObject) this.getModel().getValue("yem_billtype")).getString("number");
|
String value = ((DynamicObject) this.getModel().getValue("yem_billtype")).getString("number");
|
||||||
|
DynamicObjectCollection yemEsMaterialinfo = this.getModel().getEntryEntity("yem_es_materialinfo");
|
||||||
|
Boolean tere = false;
|
||||||
if ("yem_shippingdetails_zj".equals(value) || "yem_shippingdetails_nmzj".equals(value)) {
|
if ("yem_shippingdetails_zj".equals(value) || "yem_shippingdetails_nmzj".equals(value)) {
|
||||||
String yemIsdismantlecar = (String) this.getModel().getValue("yem_isdismantlecar");
|
String yemIsdismantlecar = (String) this.getModel().getValue("yem_isdismantlecar");
|
||||||
if ("B".equals(yemIsdismantlecar)) {
|
if ("B".equals(yemIsdismantlecar)) {
|
||||||
DynamicObjectCollection yemEsMaterialinfo = this.getModel().getEntryEntity("yem_es_materialinfo");
|
|
||||||
for (int i = 0; i < yemEsMaterialinfo.size(); i++) {
|
for (int i = 0; i < yemEsMaterialinfo.size(); i++) {
|
||||||
DynamicObject dynamicObject = yemEsMaterialinfo.get(i);
|
DynamicObject dynamicObject = yemEsMaterialinfo.get(i);
|
||||||
DynamicObject yemProductmodel = dynamicObject.getDynamicObject("yem_productmodel");
|
DynamicObject yemProductmodel = dynamicObject.getDynamicObject("yem_productmodel");
|
||||||
@ -705,7 +706,6 @@ public class ShippingDetailsFormPlugin extends AbstractBillPlugIn implements Bef
|
|||||||
String yemVechpowertype = loadsingle.getString("yem_vechpowertype");
|
String yemVechpowertype = loadsingle.getString("yem_vechpowertype");
|
||||||
if (group != null && yemVechpowertype.equals("燃油")) {
|
if (group != null && yemVechpowertype.equals("燃油")) {
|
||||||
String string = group.getString("number");
|
String string = group.getString("number");
|
||||||
Boolean tere = false;
|
|
||||||
if ("ZZJ-7T".equals(string)) {
|
if ("ZZJ-7T".equals(string)) {
|
||||||
tere = true;
|
tere = true;
|
||||||
} else if ("ZZJ-6T".equals(string)) {
|
} else if ("ZZJ-6T".equals(string)) {
|
||||||
@ -715,15 +715,27 @@ public class ShippingDetailsFormPlugin extends AbstractBillPlugIn implements Bef
|
|||||||
} else if ("ZZJ-4T".equals(string)) {
|
} else if ("ZZJ-4T".equals(string)) {
|
||||||
tere = true;
|
tere = true;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
if (tere) {
|
if (tere) {
|
||||||
this.getModel().setValue("yem_remarks", "更换锁紧螺母", i);
|
this.getModel().setValue("yem_remarks", "更换锁紧螺母", i);
|
||||||
} else {
|
} else {
|
||||||
this.getModel().setValue("yem_remarks", "", i);
|
this.getModel().setValue("yem_remarks", "", i);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}else {
|
||||||
|
if (!yemEsMaterialinfo.isEmpty()) {
|
||||||
|
for (int i = 0; i < yemEsMaterialinfo.size(); i++) {
|
||||||
|
this.getModel().setValue("yem_remarks", "", i);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
if (!yemEsMaterialinfo.isEmpty()) {
|
||||||
|
for (int i = 0; i < yemEsMaterialinfo.size(); i++) {
|
||||||
|
this.getModel().setValue("yem_remarks", "", i);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user