fix:
1.随机资料及配件工具包,机型台数根据发运更新
This commit is contained in:
parent
1c75dea603
commit
bdc8a0f805
@ -700,30 +700,30 @@ public class ShippingDetailsFormPlugin extends AbstractBillPlugIn implements Bef
|
|||||||
this.getView().showMessage("数量不允许低于关联调拨数量;,请重新填写");
|
this.getView().showMessage("数量不允许低于关联调拨数量;,请重新填写");
|
||||||
this.getModel().setValue("yem_qty", e.getChangeSet()[0].getOldValue());
|
this.getModel().setValue("yem_qty", e.getChangeSet()[0].getOldValue());
|
||||||
}
|
}
|
||||||
Map<Long, BigDecimal> map = new HashMap<>();
|
// Map<Long, BigDecimal> map = new HashMap<>();
|
||||||
DynamicObjectCollection yemEsMaterialinfo = this.getModel().getEntryEntity("yem_es_materialinfo");
|
// DynamicObjectCollection yemEsMaterialinfo = this.getModel().getEntryEntity("yem_es_materialinfo");
|
||||||
if (!yemEsMaterialinfo.isEmpty()) {
|
// if (!yemEsMaterialinfo.isEmpty()) {
|
||||||
for (DynamicObject dynamicObject : yemEsMaterialinfo) {
|
// for (DynamicObject dynamicObject : yemEsMaterialinfo) {
|
||||||
DynamicObject yemProductmodel = dynamicObject.getDynamicObject("yem_productmodel");
|
// DynamicObject yemProductmodel = dynamicObject.getDynamicObject("yem_productmodel");
|
||||||
if (yemProductmodel != null) {
|
// if (yemProductmodel != null) {
|
||||||
long aLong = yemProductmodel.getDynamicObject("yem_products").getLong("id");
|
// long aLong = yemProductmodel.getDynamicObject("yem_products").getLong("id");
|
||||||
// long aLong = yemProductmodel.getLong("id");
|
//// long aLong = yemProductmodel.getLong("id");
|
||||||
BigDecimal yemQty = dynamicObject.getBigDecimal("yem_qty");
|
// BigDecimal yemQty = dynamicObject.getBigDecimal("yem_qty");
|
||||||
map.merge(aLong, yemQty, (a, b) -> b.add(a));
|
// map.merge(aLong, yemQty, (a, b) -> b.add(a));
|
||||||
}
|
// }
|
||||||
}
|
// }
|
||||||
DynamicObjectCollection yemEsSalesorderP = this.getModel().getEntryEntity("yem_es_salesorder_p");
|
// DynamicObjectCollection yemEsSalesorderP = this.getModel().getEntryEntity("yem_es_salesorder_p");
|
||||||
for (int i = 0; i < yemEsSalesorderP.size(); i++) {
|
// for (int i = 0; i < yemEsSalesorderP.size(); i++) {
|
||||||
DynamicObject dynamicObject = yemEsSalesorderP.get(i);
|
// DynamicObject dynamicObject = yemEsSalesorderP.get(i);
|
||||||
DynamicObject yemAccessorytype = dynamicObject.getDynamicObject("yem_accessorytype");
|
// DynamicObject yemAccessorytype = dynamicObject.getDynamicObject("yem_accessorytype");
|
||||||
if (yemAccessorytype != null) {
|
// if (yemAccessorytype != null) {
|
||||||
long aLong = yemAccessorytype.getLong("id");
|
// long aLong = yemAccessorytype.getLong("id");
|
||||||
if (map.get(aLong) != null) {
|
// if (map.get(aLong) != null) {
|
||||||
this.getModel().setValue("yem_pcstype", map.get(aLong), i);
|
// this.getModel().setValue("yem_pcstype", map.get(aLong), i);
|
||||||
}
|
// }
|
||||||
}
|
// }
|
||||||
}
|
// }
|
||||||
}
|
// }
|
||||||
case "yem_isdismantlecar":
|
case "yem_isdismantlecar":
|
||||||
extracted();
|
extracted();
|
||||||
break;
|
break;
|
||||||
|
Loading…
Reference in New Issue
Block a user