fix:
1.发运明细备注赋值
This commit is contained in:
parent
8002035dd3
commit
c92ad04e0d
@ -607,12 +607,13 @@ 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");
|
||||||
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");
|
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");
|
DynamicObject yemProductmodel = dynamicObject.getDynamicObject("yem_productmodel");
|
||||||
if (yemProductmodel != null) {
|
if (yemProductmodel != null) {
|
||||||
DynamicObject yemProducts = yemProductmodel.getDynamicObject("yem_products");
|
DynamicObject yemProducts = yemProductmodel.getDynamicObject("yem_products");
|
||||||
@ -621,7 +622,7 @@ public class ShippingDetailsFormPlugin extends AbstractBillPlugIn implements Bef
|
|||||||
, new QFilter[]{new QFilter("id", QCP.equals, yemProducts.getLong("id"))});
|
, new QFilter[]{new QFilter("id", QCP.equals, yemProducts.getLong("id"))});
|
||||||
DynamicObject group = loadsingle.getDynamicObject("group");
|
DynamicObject group = loadsingle.getDynamicObject("group");
|
||||||
String yemVechpowertype = loadsingle.getString("yem_vechpowertype");
|
String yemVechpowertype = loadsingle.getString("yem_vechpowertype");
|
||||||
if (group != null && yemVechpowertype.equals("燃油")) {
|
if (group != null) {
|
||||||
String string = group.getString("number");
|
String string = group.getString("number");
|
||||||
Boolean tere = false;
|
Boolean tere = false;
|
||||||
if ("ZZJ-7T".equals(string)) {
|
if ("ZZJ-7T".equals(string)) {
|
||||||
@ -634,7 +635,7 @@ public class ShippingDetailsFormPlugin extends AbstractBillPlugIn implements Bef
|
|||||||
tere = true;
|
tere = true;
|
||||||
}
|
}
|
||||||
if (tere) {
|
if (tere) {
|
||||||
dynamicObject.set("yem_remarks1", "更换锁紧螺母");
|
this.getModel().setValue("yem_remarks", "更换锁紧螺母",i);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user