1.修改输入实际收汇值更新光标数据消失
This commit is contained in:
parent
816abb0040
commit
6caa9e2991
@ -131,7 +131,6 @@ public class CreditBackFillEdit extends AbstractFormPlugin {
|
||||
parentModel.setValue("yem_clientcountry", clientcountry);
|
||||
|
||||
|
||||
|
||||
Map<Long, Map<String, Object>> parentMap = cacheEntryData();
|
||||
|
||||
DynamicObjectCollection parentCreditDetail = parentDataEntity.getDynamicObjectCollection("yem_creditdetail");
|
||||
@ -174,10 +173,10 @@ public class CreditBackFillEdit extends AbstractFormPlugin {
|
||||
|
||||
/**
|
||||
* 缓存分录数据
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
private Map<Long, Map<String, Object>> cacheEntryData()
|
||||
{
|
||||
private Map<Long, Map<String, Object>> cacheEntryData() {
|
||||
IFormView view = this.getView();
|
||||
IDataModel model = this.getModel();
|
||||
DynamicObject dataEntity = model.getDataEntity(true);
|
||||
@ -245,10 +244,10 @@ public class CreditBackFillEdit extends AbstractFormPlugin {
|
||||
|
||||
/**
|
||||
* 计算欠款金额
|
||||
*
|
||||
* @param parentmodel
|
||||
*/
|
||||
private void calcAmountOwed(IDataModel parentmodel)
|
||||
{
|
||||
private void calcAmountOwed(IDataModel parentmodel) {
|
||||
DynamicObject dataEntity = parentmodel.getDataEntity(true);
|
||||
DynamicObjectCollection collection = dataEntity.getDynamicObjectCollection("yem_creditdetail");
|
||||
for (DynamicObject dynamicObject : collection) {
|
||||
@ -321,8 +320,7 @@ public class CreditBackFillEdit extends AbstractFormPlugin {
|
||||
*
|
||||
* @param csrCreditLine
|
||||
*/
|
||||
public void setcrecollection(DynamicObject csrCreditLine)
|
||||
{
|
||||
public void setcrecollection(DynamicObject csrCreditLine) {
|
||||
IFormView view = this.getView();
|
||||
IDataModel model = this.getModel();
|
||||
DynamicObject dataEntity = model.getDataEntity(true);
|
||||
@ -473,18 +471,16 @@ public class CreditBackFillEdit extends AbstractFormPlugin {
|
||||
BigDecimal creactualamt = dynamicObject.getBigDecimal("yem_creactualamt");//实际收汇金额(美元)3
|
||||
BigDecimal crecollecamt = dynamicObject.getBigDecimal("yem_crecollecamt");//收款币别金额2
|
||||
if (YEM.isNotEmpty(crerate)) {
|
||||
creactualamt = crecollecamt.divide(crerate,4 ,RoundingMode.HALF_UP);
|
||||
creactualamt = crecollecamt.divide(crerate, 4, RoundingMode.HALF_UP);
|
||||
// disable 2024-04-22 by zzs
|
||||
// dynamicObject.set("yem_creactualamt", creactualamt);//3 = 2 / 1
|
||||
this.getView().updateView();
|
||||
// this.getView().updateView();
|
||||
}
|
||||
|
||||
if (YEM.isNotEmpty(creactualamt) && YEM.isNotEmpty(crecollecamt)) {
|
||||
crerate = crecollecamt.divide(creactualamt,4 ,RoundingMode.HALF_UP);
|
||||
crerate = crecollecamt.divide(creactualamt, 4, RoundingMode.HALF_UP);
|
||||
// dynamicObject.set("yem_crerate", crerate);
|
||||
}
|
||||
|
||||
this.getView().updateView();
|
||||
// this.getView().updateView();
|
||||
}
|
||||
|
||||
if ("yem_creactualamt".equals(key) || "yem_crerate".equals(key) || "yem_crecollecamt".equals(key)) {
|
||||
@ -495,13 +491,12 @@ public class CreditBackFillEdit extends AbstractFormPlugin {
|
||||
DynamicObject dynamicObject = subCollection.get(row);
|
||||
BigDecimal creactualamt = dynamicObject.getBigDecimal("yem_creactualamt");//实际收汇金额(美元)3
|
||||
BigDecimal crerate = dynamicObject.getBigDecimal("yem_crerate");//信保汇率1
|
||||
dynamicObject.set("yem_creactuallocamt", creactualamt.multiply(crerate));
|
||||
this.getView().updateView();
|
||||
this.getModel().setValue("yem_creactuallocamt", creactualamt.multiply(crerate),row);
|
||||
// this.getView().updateView();
|
||||
}
|
||||
}
|
||||
|
||||
private void carryCreditInsuranceRate(int rowIndex)
|
||||
{
|
||||
private void carryCreditInsuranceRate(int rowIndex) {
|
||||
IDataModel model = this.getModel();
|
||||
// 信报结算方式
|
||||
DynamicObject rapstyle = (DynamicObject) model.getValue("yem_creditquotation", rowIndex);
|
||||
|
Loading…
Reference in New Issue
Block a user