parent
e17ea78cf4
commit
10f238949f
@ -695,23 +695,14 @@ public class StorageTransEdit extends AbstractBillPlugIn implements BeforeF7Sele
|
|||||||
if (usacreditamt.compareTo(balance) > 0) {
|
if (usacreditamt.compareTo(balance) > 0) {
|
||||||
// ConfirmCallBackListener confirmCallBackListener = new ConfirmCallBackListener("creditInsuranceConfirms", this);
|
// ConfirmCallBackListener confirmCallBackListener = new ConfirmCallBackListener("creditInsuranceConfirms", this);
|
||||||
// this.getView().showConfirm(message, MessageBoxOptions.YesNo, confirmCallBackListener);
|
// this.getView().showConfirm(message, MessageBoxOptions.YesNo, confirmCallBackListener);
|
||||||
sb.append(String.format("当前客户:[ %s ] 本次订舱投保总额为 [ %s ] ,剩余限额为 [ %s ] ,已超额,不允许进行信保确认!\n\r",
|
sb.append(String.format("当前客户:[ %s ] 本次订舱投保总额为 [ %s ] ,剩余限额为 [ %s ] ,已超额,不允许进行信保确认!\n\r" ,
|
||||||
customer.getString("name"),
|
customer.getString("name"),
|
||||||
usacreditamt.setScale(2, RoundingMode.HALF_UP),
|
usacreditamt.setScale(2, RoundingMode.HALF_UP),
|
||||||
balance.setScale(2, RoundingMode.HALF_UP)));
|
balance.setScale(2, RoundingMode.HALF_UP)));
|
||||||
}
|
}
|
||||||
BigDecimal attcount = dataEntity.getBigDecimal("yem_attcount");
|
BigDecimal attcount = dataEntity.getBigDecimal("yem_attcount");
|
||||||
BigDecimal yemPreradioCd = BigDecimal.ZERO;
|
if (attcount.compareTo(BigDecimal.ZERO) == 0) {
|
||||||
DynamicObjectCollection yemCreditdetail = dataEntity.getDynamicObjectCollection("yem_creditdetail");
|
sb.append(String.format("未上传客户汇款水单附件,不能进行信保确认!\n\r"));
|
||||||
if (!yemCreditdetail.isEmpty()) {
|
|
||||||
for (DynamicObject dynamicObject : yemCreditdetail) {
|
|
||||||
yemPreradioCd = yemPreradioCd.add(dynamicObject.getBigDecimal("yem_preradio_cd"));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
if (yemPreradioCd.compareTo(BigDecimal.ZERO) > 0) {
|
|
||||||
if (attcount.compareTo(BigDecimal.ZERO) == 0) {
|
|
||||||
sb.append(String.format("未上传客户汇款水单附件,不能进行信保确认!\n\r"));
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
if (csrCreditLine != null && customer != null) {
|
if (csrCreditLine != null && customer != null) {
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user