fix:
1.发运明细备注赋值
This commit is contained in:
parent
fc6dc5bbcd
commit
c568e17470
@ -688,12 +688,13 @@ public class ShippingDetailsFormPlugin extends AbstractBillPlugIn implements Bef
|
||||
|
||||
private void extracted() {
|
||||
|
||||
String value = ((DynamicObject)this.getModel().getValue("yem_billtype")).getString("number");
|
||||
if ("yem_shippingdetails_zj".equals(value)||"yem_shippingdetails_nmzj".equals(value)) {
|
||||
String value = ((DynamicObject) this.getModel().getValue("yem_billtype")).getString("number");
|
||||
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 (DynamicObject dynamicObject : yemEsMaterialinfo) {
|
||||
for (int i = 0; i < yemEsMaterialinfo.size(); i++) {
|
||||
DynamicObject dynamicObject = yemEsMaterialinfo.get(i);
|
||||
DynamicObject yemProductmodel = dynamicObject.getDynamicObject("yem_productmodel");
|
||||
if (yemProductmodel != null) {
|
||||
DynamicObject yemProducts = yemProductmodel.getDynamicObject("yem_products");
|
||||
@ -702,7 +703,7 @@ 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) {
|
||||
String string = group.getString("number");
|
||||
Boolean tere = false;
|
||||
if ("ZZJ-7T".equals(string)) {
|
||||
@ -715,7 +716,7 @@ public class ShippingDetailsFormPlugin extends AbstractBillPlugIn implements Bef
|
||||
tere = true;
|
||||
}
|
||||
if (tere) {
|
||||
dynamicObject.set("yem_remarks1", "更换锁紧螺母");
|
||||
this.getModel().setValue("yem_remarks", "更换锁紧螺母",i);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user