fix:
1.整机储备申请提交拼接
This commit is contained in:
parent
35afa2617d
commit
c8dcd77fcb
@ -20,31 +20,4 @@ public class StorageApplyEdit extends AbstractBillPlugIn {
|
||||
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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -0,0 +1,24 @@
|
||||
package com.yem.wm.es.storageapply.op;
|
||||
|
||||
import com.yem.wm.es.storageapply.validator.StorageApplyValidator;
|
||||
import kd.bos.entity.plugin.AbstractOperationServicePlugIn;
|
||||
import kd.bos.entity.plugin.AddValidatorsEventArgs;
|
||||
import kd.bos.entity.plugin.PreparePropertysEventArgs;
|
||||
|
||||
/**
|
||||
* @author ljw
|
||||
* @date 2024/11/13 20:09
|
||||
* @description StorageApplySumberOp
|
||||
*/
|
||||
public class StorageApplySubmitOp extends AbstractOperationServicePlugIn {
|
||||
@Override
|
||||
public void onPreparePropertys(PreparePropertysEventArgs e) {
|
||||
super.onPreparePropertys(e);
|
||||
e.getFieldKeys().addAll(this.billEntityType.getAllFields().keySet());
|
||||
}
|
||||
@Override
|
||||
public void onAddValidators(AddValidatorsEventArgs e) {
|
||||
super.onAddValidators(e);
|
||||
e.addValidator(new StorageApplyValidator() );
|
||||
}
|
||||
}
|
@ -0,0 +1,36 @@
|
||||
package com.yem.wm.es.storageapply.validator;
|
||||
|
||||
import kd.bos.dataentity.entity.DynamicObject;
|
||||
import kd.bos.entity.ExtendedDataEntity;
|
||||
import kd.bos.entity.validate.AbstractValidator;
|
||||
|
||||
/**
|
||||
* @author ljw
|
||||
* @date 2024/11/13 20:11
|
||||
* @description StorageApplyValidator
|
||||
*/
|
||||
public class StorageApplyValidator extends AbstractValidator {
|
||||
@Override
|
||||
public void validate() {
|
||||
ExtendedDataEntity[] dataEntities = this.getDataEntities();
|
||||
for(ExtendedDataEntity dataEntitie : dataEntities) {
|
||||
DynamicObject dataEntity = dataEntitie.getDataEntity();
|
||||
String yem_cloudhousetitle = "整机储运申请";
|
||||
DynamicObject yemBususer = dataEntity.getDynamicObject("yem_operator");
|
||||
if (yemBususer != null) {
|
||||
String string = ( yemBususer).getString("name");
|
||||
yem_cloudhousetitle = yem_cloudhousetitle + "," + string;
|
||||
}
|
||||
DynamicObject yemBuyercountry = dataEntity.getDynamicObject("yem_clientcountry");
|
||||
if (yemBuyercountry != null) {
|
||||
String string = ( yemBuyercountry).getString("name");
|
||||
yem_cloudhousetitle = yem_cloudhousetitle + "," + string;
|
||||
}
|
||||
String yemStcontractno = dataEntity.getString("yem_applytype");
|
||||
if (yemStcontractno != null) {
|
||||
yem_cloudhousetitle = yem_cloudhousetitle + "," + yemStcontractno;
|
||||
}
|
||||
dataEntitie.setValue("yem_cloudhousetitle",yem_cloudhousetitle);
|
||||
}
|
||||
}
|
||||
}
|
@ -155,10 +155,7 @@ public class TrackplaceFormPlugIn extends AbstractBillPlugIn implements Plugin,
|
||||
// 多功能配置
|
||||
break;
|
||||
case "yem_attachmentcountfield":
|
||||
Integer newValue = (Integer) changeData.getNewValue();
|
||||
if (newValue > 0) {
|
||||
this.getView().addClientCallBack("auto_save", 0);
|
||||
}
|
||||
this.getView().addClientCallBack("auto_save", 0);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user