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() {
|
||||
|
||||
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)) {
|
||||
String yemIsdismantlecar = (String) this.getModel().getValue("yem_isdismantlecar");
|
||||
if ("B".equals(yemIsdismantlecar)) {
|
||||
DynamicObjectCollection yemEsMaterialinfo = this.getModel().getEntryEntity("yem_es_materialinfo");
|
||||
for (int i = 0; i < yemEsMaterialinfo.size(); i++) {
|
||||
DynamicObject dynamicObject = yemEsMaterialinfo.get(i);
|
||||
DynamicObject yemProductmodel = dynamicObject.getDynamicObject("yem_productmodel");
|
||||
@ -703,9 +704,8 @@ public class ShippingDetailsFormPlugin extends AbstractBillPlugIn implements Bef
|
||||
, new QFilter[]{new QFilter("id", QCP.equals, yemProducts.getLong("id"))});
|
||||
DynamicObject group = loadsingle.getDynamicObject("group");
|
||||
String yemVechpowertype = loadsingle.getString("yem_vechpowertype");
|
||||
if (group != null&& yemVechpowertype.equals("燃油")) {
|
||||
if (group != null && yemVechpowertype.equals("燃油")) {
|
||||
String string = group.getString("number");
|
||||
Boolean tere = false;
|
||||
if ("ZZJ-7T".equals(string)) {
|
||||
tere = true;
|
||||
} else if ("ZZJ-6T".equals(string)) {
|
||||
@ -715,14 +715,26 @@ public class ShippingDetailsFormPlugin extends AbstractBillPlugIn implements Bef
|
||||
} else if ("ZZJ-4T".equals(string)) {
|
||||
tere = true;
|
||||
}
|
||||
if (tere) {
|
||||
this.getModel().setValue("yem_remarks", "更换锁紧螺母",i);
|
||||
}else {
|
||||
this.getModel().setValue("yem_remarks", "",i);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
if (tere) {
|
||||
this.getModel().setValue("yem_remarks", "更换锁紧螺母", i);
|
||||
} else {
|
||||
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