feat:选装、替换增加字段,选装时携带到合同
This commit is contained in:
parent
72dd84a8fb
commit
415ef3506c
@ -77,6 +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);
|
||||
model.setValue("yem_model_config_c", mechanical.getDynamicObject("yem_model_config_c"), createRow);
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -114,6 +115,7 @@ public class OptionalFormPlugIn extends AbstractFormPlugin implements Plugin {
|
||||
model.setValue("yem_specification", optional.getString("yem_specification_o"), entryRow);
|
||||
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);
|
||||
}
|
||||
}
|
||||
|
||||
@ -179,6 +181,11 @@ public class OptionalFormPlugIn extends AbstractFormPlugin implements Plugin {
|
||||
parentModel.setValue("yem_arguments", model.getValue("yem_parameter", 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);
|
||||
if (modelConfigR != null) {
|
||||
parentModel.setValue("yem_cname_config", modelConfigR.getString("yem_standard_cname"), optionalRow);
|
||||
parentModel.setValue("yem_ename_config", modelConfigR.getString("yem_standard_ename"), optionalRow);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -107,6 +107,7 @@ 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);
|
||||
}
|
||||
}
|
||||
|
||||
@ -170,6 +171,11 @@ public class ReplaceFormPlugIn extends AbstractFormPlugin implements Plugin {
|
||||
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_r", optionalRow);
|
||||
if (modelConfigR != null) {
|
||||
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