fix:
1.外销合同起运港英文名称赋值
This commit is contained in:
parent
b5edfd40e4
commit
96a8138473
@ -59,9 +59,9 @@ import kd.sdk.plugin.Plugin;
|
||||
import org.apache.commons.lang.StringUtils;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.math.RoundingMode;
|
||||
import java.text.SimpleDateFormat;
|
||||
import java.util.*;
|
||||
import java.util.stream.Collectors;
|
||||
|
||||
import static com.yem.wm.es.salesorder.utils.SalesOrderUtils.*;
|
||||
|
||||
@ -141,11 +141,7 @@ public class SalesOrderEdit extends AbstractBillPlugIn implements Plugin, Before
|
||||
continue;
|
||||
}
|
||||
String number = padexpense.getString("number");
|
||||
if (!"FYXM0023.2".equals(number)) {
|
||||
view.setEnable(false, i, fields);
|
||||
} else {
|
||||
view.setEnable(true, i, fields);
|
||||
}
|
||||
view.setEnable("FYXM0023.2".equals(number), i, fields);
|
||||
}
|
||||
}
|
||||
|
||||
@ -412,6 +408,7 @@ public class SalesOrderEdit extends AbstractBillPlugIn implements Plugin, Before
|
||||
break;
|
||||
|
||||
case "yem_productmodel":
|
||||
productmodel(e);
|
||||
bringCustomsClassification(this.getModel(), rowIndex);
|
||||
carryReportCategoryAndHsCode(this.getModel(), this.getView(), rowIndex, "yem_customclass");
|
||||
case "yem_materiel":
|
||||
@ -443,6 +440,28 @@ public class SalesOrderEdit extends AbstractBillPlugIn implements Plugin, Before
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 方数携带
|
||||
*/
|
||||
private void productmodel(PropertyChangedArgs e) {
|
||||
ChangeData changeData = e.getChangeSet()[0];
|
||||
int rowIndex = changeData.getRowIndex();
|
||||
Object newValue = changeData.getNewValue();
|
||||
if (newValue!=null) {
|
||||
DynamicObject newValues =(DynamicObject) newValue;
|
||||
DynamicObject yemProducts = newValues.getDynamicObject("yem_products");
|
||||
if (yemProducts != null) {
|
||||
String selectfield = DynamicObjectUtil.getSelectfields("yem_bd_productstree", false);
|
||||
DynamicObject loadSingle = BusinessDataServiceHelper.loadSingle("yem_bd_productstree", selectfield
|
||||
, new QFilter[]{new QFilter("id", QCP.equals, yemProducts.getLong("id"))});
|
||||
if (loadSingle != null) {
|
||||
BigDecimal bigDecimal = loadSingle.getBigDecimal("yem_numbersquares");
|
||||
this.getModel().setValue("yem_squareqty", bigDecimal, rowIndex);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 随即资料页签手动新增行的时候 选择机型时 自动携带关联商品明细行的数量
|
||||
*
|
||||
@ -526,7 +545,7 @@ public class SalesOrderEdit extends AbstractBillPlugIn implements Plugin, Before
|
||||
* @param map 下拉项值
|
||||
*/
|
||||
private void fillEntityCombo(Map<String, Object> map) {
|
||||
ComboEdit mainentry = (ComboEdit) this.getView().getControl("yem_accamtusetype"); //协议类型
|
||||
ComboEdit mainentry = this.getView().getControl("yem_accamtusetype"); //协议类型
|
||||
if (map.size() > 0) {
|
||||
List<ComboItem> entryItems = this.buildEntryComboItems(map);
|
||||
mainentry.setComboItems(entryItems);
|
||||
@ -756,7 +775,7 @@ public class SalesOrderEdit extends AbstractBillPlugIn implements Plugin, Before
|
||||
boolean yemIfgift = dt.getBoolean("yem_ifgift");
|
||||
|
||||
if (countSafo.compareTo(BigDecimal.ZERO) != 0 && (!yemIfgift)) {
|
||||
model.setValue("yem_commissionamten", yemCommissionamt.multiply(yemSafobamount1).divide(countSafo, BigDecimal.ROUND_HALF_UP), row);
|
||||
model.setValue("yem_commissionamten", yemCommissionamt.multiply(yemSafobamount1).divide(countSafo, RoundingMode.HALF_UP), row);
|
||||
} else {
|
||||
model.setValue("yem_commissionamtbaen", null, row);
|
||||
model.setValue("yem_commissionamten", null, row);
|
||||
|
Loading…
Reference in New Issue
Block a user