1.储备申请标题
This commit is contained in:
ljw 2024-11-13 19:55:55 +08:00
parent f50553cb46
commit 35afa2617d
2 changed files with 30 additions and 19 deletions

View File

@ -43,25 +43,6 @@ public class ExportInVoiceEdit extends AbstractBillPlugIn {
case "yem_insurefeecurrba":
counttailAmt();
break;
case "yem_bususer":
case "yem_buyercountry":
case "yem_stcontractno":
String yem_cloudhousetitle = "整机储运申请";
Object yemBususer = this.getModel().getValue("yem_bususer");
if (yemBususer != null) {
String string = ((DynamicObject) yemBususer).getString("name");
yem_cloudhousetitle = yem_cloudhousetitle + "," + string;
}
Object yemBuyercountry = this.getModel().getValue("yem_buyercountry");
if (yemBuyercountry != null) {
String string = ((DynamicObject) yemBuyercountry).getString("name");
yem_cloudhousetitle = yem_cloudhousetitle + "," + string;
}
String yemStcontractno = (String) this.getModel().getValue("yem_stcontractno");
if (yemStcontractno != null) {
yem_cloudhousetitle = yem_cloudhousetitle + "," + yemStcontractno;
}
this.getModel().setValue("yem_cloudhousetitle",yem_cloudhousetitle);
}
}

View File

@ -2,6 +2,8 @@ package com.yem.wm.es.storageapply.form;
import com.yem.wm.utils.FunctionalCommon;
import kd.bos.bill.AbstractBillPlugIn;
import kd.bos.dataentity.entity.DynamicObject;
import kd.bos.entity.datamodel.events.PropertyChangedArgs;
import java.util.EventObject;
@ -17,4 +19,32 @@ public class StorageApplyEdit extends AbstractBillPlugIn {
super.afterBindData(e);
FunctionalCommon.setBillType(this);//赋值对应视图单据类型
}
@Override
public void propertyChanged(PropertyChangedArgs e) {
super.propertyChanged(e);
String name = e.getProperty().getName();
switch (name) {
case "yem_bususer":
case "yem_buyercountry":
case "yem_stcontractno":
String yem_cloudhousetitle = "整机储运申请";
Object yemBususer = this.getModel().getValue("yem_operator");
if (yemBususer != null) {
String string = ((DynamicObject) yemBususer).getString("name");
yem_cloudhousetitle = yem_cloudhousetitle + "," + string;
}
Object yemBuyercountry = this.getModel().getValue("yem_clientcountry");
if (yemBuyercountry != null) {
String string = ((DynamicObject) yemBuyercountry).getString("name");
yem_cloudhousetitle = yem_cloudhousetitle + "," + string;
}
String yemStcontractno = (String) this.getModel().getValue("yem_applytype");
if (yemStcontractno != null) {
yem_cloudhousetitle = yem_cloudhousetitle + "," + yemStcontractno;
}
this.getModel().setValue("yem_cloudhousetitle",yem_cloudhousetitle);
break;
}
}
}