1.外销合同起运港英文名称赋值
This commit is contained in:
ljw 2024-10-28 11:25:44 +08:00
parent f888460175
commit 89c6723d26

View File

@ -435,11 +435,25 @@ public class SalesOrderEdit extends AbstractBillPlugIn implements Plugin, Before
case "yem_accessorytype":
carryingDetailedAssociatedQuantity(rowIndex, model);
break;
case"yem_shipportsename":
extracted(model);
break;
default:
break;
}
}
private void extracted(IDataModel model) {
Object yemShipportsename = this.getModel().getValue("yem_shipportsename");
DynamicObjectCollection yemEsMaterialinfo = this.getModel().getEntryEntity("yem_es_materialinfo");
if (yemEsMaterialinfo.size()>0){
for (int i = 0; i < yemEsMaterialinfo.size(); i++) {
model.setValue("yem_departure ",yemShipportsename,i);
}
}
}
/**
* 方数携带
*/
@ -644,6 +658,7 @@ public class SalesOrderEdit extends AbstractBillPlugIn implements Plugin, Before
}
}
}
public static DynamicObject[] getDeclarationElementsUseCarry(IDataModel model, int rowIndex, String currentFilterKey) {
// 业务分类 Z | P
String businesssort = (String) model.getValue("yem_businesssort", rowIndex);
@ -722,6 +737,7 @@ public class SalesOrderEdit extends AbstractBillPlugIn implements Plugin, Before
return BusinessDataServiceHelper.load("yem_bd_declarationele", selectfields, qFilter.toArray());
}
private static Set<Long> getCompAndPartProduct(String number) {
String[] type = {number, number + "PJ"};
DynamicObject[] load = BusinessDataServiceHelper.load("yem_bd_productsgroup", "billno, id", new QFilter[]{new QFilter("number", "in", type)});
@ -821,6 +837,8 @@ public class SalesOrderEdit extends AbstractBillPlugIn implements Plugin, Before
model.setValue("yem_frontrateentry", decimal, rowIndex);
}
yemShipports(rowIndex);
extracted(model);
}
}
}