fix:
1.外销合同起运港英文名称赋值
This commit is contained in:
parent
f888460175
commit
89c6723d26
@ -435,11 +435,25 @@ public class SalesOrderEdit extends AbstractBillPlugIn implements Plugin, Before
|
|||||||
case "yem_accessorytype":
|
case "yem_accessorytype":
|
||||||
carryingDetailedAssociatedQuantity(rowIndex, model);
|
carryingDetailedAssociatedQuantity(rowIndex, model);
|
||||||
break;
|
break;
|
||||||
|
case"yem_shipportsename":
|
||||||
|
extracted(model);
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
break;
|
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);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 方数携带
|
* 方数携带
|
||||||
*/
|
*/
|
||||||
@ -447,8 +461,8 @@ public class SalesOrderEdit extends AbstractBillPlugIn implements Plugin, Before
|
|||||||
ChangeData changeData = e.getChangeSet()[0];
|
ChangeData changeData = e.getChangeSet()[0];
|
||||||
int rowIndex = changeData.getRowIndex();
|
int rowIndex = changeData.getRowIndex();
|
||||||
Object newValue = changeData.getNewValue();
|
Object newValue = changeData.getNewValue();
|
||||||
if (newValue!=null) {
|
if (newValue != null) {
|
||||||
DynamicObject newValues =(DynamicObject) newValue;
|
DynamicObject newValues = (DynamicObject) newValue;
|
||||||
DynamicObject yemProducts = newValues.getDynamicObject("yem_products");
|
DynamicObject yemProducts = newValues.getDynamicObject("yem_products");
|
||||||
if (yemProducts != null) {
|
if (yemProducts != null) {
|
||||||
String selectfield = DynamicObjectUtil.getSelectfields("yem_bd_productstree", false);
|
String selectfield = DynamicObjectUtil.getSelectfields("yem_bd_productstree", false);
|
||||||
@ -644,6 +658,7 @@ public class SalesOrderEdit extends AbstractBillPlugIn implements Plugin, Before
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public static DynamicObject[] getDeclarationElementsUseCarry(IDataModel model, int rowIndex, String currentFilterKey) {
|
public static DynamicObject[] getDeclarationElementsUseCarry(IDataModel model, int rowIndex, String currentFilterKey) {
|
||||||
// 业务分类 Z | P
|
// 业务分类 Z | P
|
||||||
String businesssort = (String) model.getValue("yem_businesssort", rowIndex);
|
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());
|
return BusinessDataServiceHelper.load("yem_bd_declarationele", selectfields, qFilter.toArray());
|
||||||
}
|
}
|
||||||
|
|
||||||
private static Set<Long> getCompAndPartProduct(String number) {
|
private static Set<Long> getCompAndPartProduct(String number) {
|
||||||
String[] type = {number, number + "PJ"};
|
String[] type = {number, number + "PJ"};
|
||||||
DynamicObject[] load = BusinessDataServiceHelper.load("yem_bd_productsgroup", "billno, id", new QFilter[]{new QFilter("number", "in", type)});
|
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);
|
model.setValue("yem_frontrateentry", decimal, rowIndex);
|
||||||
}
|
}
|
||||||
yemShipports(rowIndex);
|
yemShipports(rowIndex);
|
||||||
|
extracted(model);
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user