feat:选装、替换无字段跳过
This commit is contained in:
parent
330509aed2
commit
3abdb3bb3f
@ -77,7 +77,10 @@ public class OptionalFormPlugIn extends AbstractFormPlugin implements Plugin {
|
||||
model.setValue("yem_parameter", mechanical.getString("yem_parameter"), createRow);
|
||||
model.setValue("yem_remarke", mechanical.getString("yem_remarke"), createRow);
|
||||
model.setValue("yem_entryid", id, createRow);
|
||||
model.setValue("yem_model_config_c", mechanical.getDynamicObject("yem_model_config_c"), createRow);
|
||||
DynamicObject dataEntity = model.getDataEntity(true);
|
||||
if (dataEntity.containsProperty("yem_model_config_c")) {
|
||||
model.setValue("yem_model_config_c", mechanical.getDynamicObject("yem_model_config_c"), createRow);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -182,7 +185,8 @@ public class OptionalFormPlugIn extends AbstractFormPlugin implements Plugin {
|
||||
parentModel.setValue("yem_remarkss", model.getValue("yem_remarke", selectRow), optionalRow);
|
||||
parentModel.setValue("yem_configentryid", model.getValue("yem_entryid", selectRow), optionalRow);
|
||||
DynamicObject modelConfigR = (DynamicObject) model.getValue("yem_model_config_c", optionalRow);
|
||||
if (modelConfigR != null) {
|
||||
DynamicObject parentDataEntity = parentModel.getDataEntity(true);
|
||||
if (modelConfigR != null && parentDataEntity.containsProperty("yem_cname_config") && parentDataEntity.containsProperty("yem_ename_config")) {
|
||||
parentModel.setValue("yem_cname_config", modelConfigR.getString("yem_standard_cname"), optionalRow);
|
||||
parentModel.setValue("yem_ename_config", modelConfigR.getString("yem_standard_ename"), optionalRow);
|
||||
}
|
||||
|
@ -6,6 +6,7 @@ import com.yem.wm.utils.FunctionalCommon;
|
||||
import com.yem.wm.utils.YEM;
|
||||
import kd.bos.dataentity.entity.DynamicObject;
|
||||
import kd.bos.dataentity.entity.DynamicObjectCollection;
|
||||
import kd.bos.entity.MainEntityType;
|
||||
import kd.bos.entity.datamodel.IDataModel;
|
||||
import kd.bos.form.FormShowParameter;
|
||||
import kd.bos.form.IFormView;
|
||||
@ -107,7 +108,9 @@ public class ReplaceFormPlugIn extends AbstractFormPlugin implements Plugin {
|
||||
// model.setValue("yem_marketraiseprice", replaceable.getBigDecimal("yem_salesmarkup_re"), entryRow);
|
||||
model.setValue("yem_remarke", replaceable.getString("yem_remarkr"), entryRow);
|
||||
model.setValue("yem_entryid", replaceable.getPkValue(), entryRow);
|
||||
model.setValue("yem_model_config_r", replaceable.getDynamicObject("yem_model_config_r"), entryRow);
|
||||
if (model.getDataEntity(true).containsProperty("yem_model_config_r")) {
|
||||
model.setValue("yem_model_config_r", replaceable.getDynamicObject("yem_model_config_r"), entryRow);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -172,7 +175,8 @@ public class ReplaceFormPlugIn extends AbstractFormPlugin implements Plugin {
|
||||
parentModel.setValue("yem_remarkss", model.getValue("yem_remarke", selectRow), optionalRow);
|
||||
parentModel.setValue("yem_configentryid", model.getValue("yem_entryid", selectRow), optionalRow);
|
||||
DynamicObject modelConfigR = (DynamicObject) model.getValue("yem_model_config_r", optionalRow);
|
||||
if (modelConfigR != null) {
|
||||
DynamicObject parentDataEntity = parentModel.getDataEntity(true);
|
||||
if (modelConfigR != null && parentDataEntity.containsProperty("yem_cname_config") && parentDataEntity.containsProperty("yem_ename_config")) {
|
||||
parentModel.setValue("yem_cname_config", modelConfigR.getString("yem_standard_cname"), optionalRow);
|
||||
parentModel.setValue("yem_ename_config", modelConfigR.getString("yem_standard_ename"), optionalRow);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user