项目建立:分录设置默认值修改--补充提交

This commit is contained in:
ptt 2025-03-06 13:39:11 +08:00
parent 6aa29c681b
commit 6e67bd8b3f
1 changed files with 6 additions and 1 deletions

View File

@ -258,11 +258,16 @@ public class TotalAssignmentPlugin extends AbstractFormPlugin implements RowClic
this.getView().addClientCallBack("auto_save", 0); this.getView().addClientCallBack("auto_save", 0);
} }
} }
}
@Override
public void afterCreateNewData(EventObject e) {
super.afterCreateNewData(e);
DynamicObjectCollection keynodeentry = (DynamicObjectCollection)this.getModel().getValue("keynodeentry"); DynamicObjectCollection keynodeentry = (DynamicObjectCollection)this.getModel().getValue("keynodeentry");
if (keynodeentry!=null) { if (keynodeentry!=null) {
for (int i = 0; i < keynodeentry.size(); i++) { for (int i = 0; i < keynodeentry.size(); i++) {
DynamicObject dynamicObject = keynodeentry.get(i); DynamicObject dynamicObject = keynodeentry.get(i);
switch (i){ switch (i+1){
case 1:dynamicObject.set("knentry_node","现场踏勘");break; case 1:dynamicObject.set("knentry_node","现场踏勘");break;
case 2:dynamicObject.set("knentry_node","项目立项");break; case 2:dynamicObject.set("knentry_node","项目立项");break;
case 3:dynamicObject.set("knentry_node","项目启动");break; case 3:dynamicObject.set("knentry_node","项目启动");break;