工序成本预算单据调整操作年月赋值锁定逻辑添加(测试
This commit is contained in:
parent
23d8f38896
commit
a4192ed5f2
|
|
@ -8,6 +8,7 @@ import java.util.Iterator;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
import java.util.Set;
|
import java.util.Set;
|
||||||
|
|
||||||
import kd.bos.bill.OperationStatus;
|
import kd.bos.bill.OperationStatus;
|
||||||
import kd.bos.dataentity.entity.DynamicObject;
|
import kd.bos.dataentity.entity.DynamicObject;
|
||||||
import kd.bos.dataentity.entity.DynamicObjectCollection;
|
import kd.bos.dataentity.entity.DynamicObjectCollection;
|
||||||
|
|
@ -262,21 +263,18 @@ public class AimcostcbsbillEditUIExt extends AbstractEccoBillPlugin implements B
|
||||||
newInfo.set("name", project.get("name"));
|
newInfo.set("name", project.get("name"));
|
||||||
newInfo.set("project", project.get("project"));
|
newInfo.set("project", project.get("project"));
|
||||||
newInfo.set("org", project.get("org"));
|
newInfo.set("org", project.get("org"));
|
||||||
project = project.getDynamicObject("project");
|
DynamicObject project1 = project.getDynamicObject("project");
|
||||||
if (project != null) {
|
if (project1 != null) {
|
||||||
BigDecimal allInContractAmt = this.getAllInContractAmt(project.getLong("id"));
|
BigDecimal allInContractAmt = this.getAllInContractAmt(project1.getLong("id"));
|
||||||
this.getModel().setValue("totalincontamt", allInContractAmt);
|
this.getModel().setValue("totalincontamt", allInContractAmt);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (project != null) {
|
|
||||||
newInfo.set("unitproject", project.get("unitproject"));
|
newInfo.set("unitproject", project.get("unitproject"));
|
||||||
}
|
|
||||||
if (project != null) {
|
|
||||||
newInfo.set("totalamount", project.get("totalamount"));
|
newInfo.set("totalamount", project.get("totalamount"));
|
||||||
}
|
|
||||||
newInfo.set("remark", project.get("remark"));
|
newInfo.set("remark", project.get("remark"));
|
||||||
newInfo.set("editonunit", project.get("editonunit"));
|
newInfo.set("editonunit", project.get("editonunit"));
|
||||||
newInfo.set("fiaccountorg", project.get("fiaccountorg"));
|
newInfo.set("fiaccountorg", project.get("fiaccountorg"));
|
||||||
|
newInfo.set("zcgj_periodyear", project.get("zcgj_periodyear"));
|
||||||
this.versionNum = TypeUtils.string2Double(project.getString("versionno")) + 1.0;
|
this.versionNum = TypeUtils.string2Double(project.getString("versionno")) + 1.0;
|
||||||
newInfo.set("versionno", this.versionNum);
|
newInfo.set("versionno", this.versionNum);
|
||||||
newInfo.set("currency", project.get("currency"));
|
newInfo.set("currency", project.get("currency"));
|
||||||
|
|
@ -290,6 +288,7 @@ public class AimcostcbsbillEditUIExt extends AbstractEccoBillPlugin implements B
|
||||||
this.getView().updateView("org");
|
this.getView().updateView("org");
|
||||||
this.getView().updateView("versionno");
|
this.getView().updateView("versionno");
|
||||||
this.getView().updateView("currency");
|
this.getView().updateView("currency");
|
||||||
|
this.getView().updateView("zcgj_periodyear");
|
||||||
Map<Long, Long> cbsEntryIdMap = new HashMap();
|
Map<Long, Long> cbsEntryIdMap = new HashMap();
|
||||||
Map<String, String> idMap = new HashMap(16);
|
Map<String, String> idMap = new HashMap(16);
|
||||||
DynamicObjectCollection cbsEntryColl = (DynamicObjectCollection) project.get("treeentryentity");
|
DynamicObjectCollection cbsEntryColl = (DynamicObjectCollection) project.get("treeentryentity");
|
||||||
|
|
@ -357,6 +356,7 @@ public class AimcostcbsbillEditUIExt extends AbstractEccoBillPlugin implements B
|
||||||
this.adjustAddNewCbs(project, entryColl, idMap);
|
this.adjustAddNewCbs(project, entryColl, idMap);
|
||||||
this.getView().setEnable(false, new String[]{"project"});
|
this.getView().setEnable(false, new String[]{"project"});
|
||||||
this.getView().setEnable(false, new String[]{"editonunit"});
|
this.getView().setEnable(false, new String[]{"editonunit"});
|
||||||
|
this.getView().setEnable(false, new String[]{"zcgj_periodyear"});
|
||||||
this.getModel().updateEntryCache(entryColl);
|
this.getModel().updateEntryCache(entryColl);
|
||||||
this.getView().updateView("treeentryentity");
|
this.getView().updateView("treeentryentity");
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue