1.优化项目建立升级版本携带字段

S
This commit is contained in:
weiyunlong 2025-02-27 18:20:26 +08:00
parent 580353a7e6
commit 8d85ab84e9
1 changed files with 21 additions and 0 deletions

View File

@ -12,6 +12,7 @@ import kd.bos.web.actions.utils.FilePathUtil;
import java.io.IOException;
import java.math.BigDecimal;
import java.net.URLDecoder;
import java.util.Date;
import java.util.EventObject;
import java.util.List;
import java.util.Map;
@ -34,6 +35,26 @@ public class ProjectBbFormPlugin extends AbstractFormPlugin {
if (qeugTextfield3.isEmpty()) {
this.getModel().setValue("qeug_textfield3", projectbill.getString("qeug_textfield3"));
}
String combofield = (String)this.getModel().getValue("qeug_combofield");//业务体系
if (combofield.isEmpty()) {
this.getModel().setValue("qeug_combofield", projectbill.getString("qeug_combofield"));
}
Date datefield = (Date)this.getModel().getValue("qeug_datefield");//项目转成熟日期
if (null ==datefield) {
this.getModel().setValue("qeug_datefield", projectbill.getString("qeug_datefield"));
}
BigDecimal decimalfield3 = (BigDecimal)this.getModel().getValue("qeug_decimalfield3");//原始建筑面积
if (decimalfield3 == null || decimalfield3.compareTo(BigDecimal.ZERO) == 0) {
this.getModel().setValue("qeug_decimalfield3", projectbill.getBigDecimal("qeug_decimalfield3"));
}
BigDecimal decimalfield1 = (BigDecimal)this.getModel().getValue("qeug_decimalfield1");//原始可出租面积
if (decimalfield1 == null || decimalfield1.compareTo(BigDecimal.ZERO) == 0) {
this.getModel().setValue("qeug_decimalfield1", projectbill.getBigDecimal("qeug_decimalfield1"));
}
String textfield2 = (String)this.getModel().getValue("qeug_textfield2");//原始得房率%
if (textfield2.isEmpty()) {
this.getModel().setValue("qeug_textfield2", projectbill.getString("qeug_textfield2"));
}
//附件
AttachmentPanel qeug_attachmentpanelap = this.getView().getControl("attachmentpanel");
List<Map<String, Object>> attachments = qeug_attachmentpanelap.getAttachmentData();