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