feat:可选装增加俄语名称

This commit is contained in:
zzs 2024-12-31 17:55:05 +08:00
parent d7a5ebf2a2
commit 39a96c9d7a
3 changed files with 22 additions and 14 deletions

View File

@ -77,8 +77,7 @@ 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);
DynamicObject dataEntity = model.getDataEntity(true);
if (dataEntity.containsProperty("yem_model_config_c")) {
if (mechanical.containsProperty("yem_model_config_c")) {
model.setValue("yem_model_config_c", mechanical.getDynamicObject("yem_model_config_c"), createRow);
}
}
@ -119,6 +118,7 @@ public class OptionalFormPlugIn extends AbstractFormPlugin implements Plugin {
model.setValue("yem_remarke", optional.getString("yem_remarke"), entryRow);
model.setValue("yem_entryid", optional.getPkValue(), entryRow);
model.setValue("yem_model_config_c", optional.getDynamicObject("yem_model_config_c"), entryRow);
model.setValue("yem_ruconfigure_c",optional.getString("yem_ruconfigure_c"),entryRow);
}
}
@ -177,6 +177,7 @@ public class OptionalFormPlugIn extends AbstractFormPlugin implements Plugin {
parentModel.setValue("yem_configurtype", "A", optionalRow);
parentModel.setValue("yem_configurname", model.getValue("yem_profilenamea", selectRow), optionalRow);
parentModel.setValue("yem_configurtypeen", model.getValue("yem_configure", selectRow), optionalRow);
parentModel.setValue("yem_configurtyperu", model.getValue("yem_ruconfigure_c", selectRow), optionalRow);
parentModel.setValue("yem_specification_o", model.getValue("yem_specification", selectRow), optionalRow);
// parentModel.setValue("yem_marketprice", marketPrice, optionalRow);
// parentModel.setValue("yem_marketraiseprice", marketRaisePrice, optionalRow);
@ -185,11 +186,10 @@ 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);
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);
}
parentModel.setValue("yem_cname_config", modelConfigR.getString("yem_standard_cname"), optionalRow);
parentModel.setValue("yem_ename_config", modelConfigR.getString("yem_standard_ename"), optionalRow);
parentModel.setValue("yem_runame_config", modelConfigR.getString("yem_standard_runame"), optionalRow);
}
}
}

View File

@ -108,9 +108,10 @@ 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);
if (model.getDataEntity(true).containsProperty("yem_model_config_r")) {
model.setValue("yem_model_config_r", replaceable.getDynamicObject("yem_model_config_r"), entryRow);
}
model.setValue("yem_ruconfigure_c",replaceable.getString("yem_ruconfigure_r"),entryRow);
model.setValue("yem_model_config_r", replaceable.getDynamicObject("yem_model_config_r"), entryRow);
}
}
@ -168,6 +169,7 @@ public class ReplaceFormPlugIn extends AbstractFormPlugin implements Plugin {
parentModel.setValue("yem_configurtype", "B", optionalRow);
parentModel.setValue("yem_configurname", model.getValue("yem_profilenamea", selectRow), optionalRow);
parentModel.setValue("yem_configurtypeen", model.getValue("yem_configure", selectRow), optionalRow);
parentModel.setValue("yem_configurtyperu",model.getValue("yem_ruconfigure_c",selectRow),optionalRow);
parentModel.setValue("yem_specification_o", model.getValue("yem_specification", selectRow), optionalRow);
// parentModel.setValue("yem_marketprice", marketPrice, optionalRow);
// parentModel.setValue("yem_marketraiseprice", marketRaisePrice, optionalRow);
@ -176,10 +178,9 @@ public class ReplaceFormPlugIn extends AbstractFormPlugin implements Plugin {
parentModel.setValue("yem_configentryid", model.getValue("yem_entryid", selectRow), optionalRow);
DynamicObject modelConfigR = (DynamicObject) model.getValue("yem_model_config_r", optionalRow);
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);
}
parentModel.setValue("yem_cname_config", modelConfigR.getString("yem_standard_cname"), optionalRow);
parentModel.setValue("yem_ename_config", modelConfigR.getString("yem_standard_ename"), optionalRow);
parentModel.setValue("yem_runame_config", modelConfigR.getString("yem_standard_runame"), optionalRow);
}
}

View File

@ -105,6 +105,8 @@ public class RetrofittingFormPlugIn extends AbstractFormPlugin implements Plugin
model.setValue("yem_specification",optional.getString("yem_specification_a"),entryRow);
model.setValue("yem_remarke",optional.getString("yem_remarka"),entryRow);
model.setValue("yem_entryid",optional.getPkValue(),entryRow);
model.setValue("yem_ruconfigure_c", optional.getString("yem_ruconfigure_a"), entryRow);
model.setValue("yem_model_config_r", optional.getDynamicObject("yem_model_config_a"), entryRow);
}
}
@ -161,12 +163,17 @@ public class RetrofittingFormPlugIn extends AbstractFormPlugin implements Plugin
parentModel.setValue("yem_configurtype","C",optionalRow);
parentModel.setValue("yem_configurname",model.getValue("yem_profilenamea",selectRow),optionalRow);
parentModel.setValue("yem_configurtypeen",model.getValue("yem_configure",selectRow),optionalRow);
parentModel.setValue("yem_configurtyperu",model.getValue("yem_ruconfigure_c",selectRow),optionalRow);
parentModel.setValue("yem_specification_o",model.getValue("yem_specification",selectRow),optionalRow);
// parentModel.setValue("yem_marketprice",marketPrice,optionalRow);
// parentModel.setValue("yem_marketraiseprice",marketRaisePrice,optionalRow);
parentModel.setValue("yem_unitsetnumber", model.getValue("yem_unitsetnumber", selectRow), optionalRow);
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);
parentModel.setValue("yem_cname_config", modelConfigR.getString("yem_standard_cname"), optionalRow);
parentModel.setValue("yem_ename_config", modelConfigR.getString("yem_standard_ename"), optionalRow);
parentModel.setValue("yem_runame_config", modelConfigR.getString("yem_standard_runame"), optionalRow);
}
}