仓库优化

This commit is contained in:
xuhaihui 2025-09-16 17:28:32 +08:00
parent dd5477333e
commit 132879f830
1 changed files with 3 additions and 1 deletions

View File

@ -92,12 +92,14 @@ public class DepotEditPluginExt extends AbstractBillPlugIn implements BeforeF7Se
public void afterBindData(EventObject e) { public void afterBindData(EventObject e) {
super.afterBindData(e); super.afterBindData(e);
Object pkValue = this.getModel().getDataEntity().getPkValue(); Object pkValue = this.getModel().getDataEntity().getPkValue();
/*
if (pkValue != null) { if (pkValue != null) {
boolean isRefrenced = BaseDataRefrenceHelper.isRefrenced((BasedataEntityType)EntityMetadataCache.getDataEntityType("ecma_depot"), pkValue); boolean isRefrenced = BaseDataRefrenceHelper.isRefrenced((BasedataEntityType)EntityMetadataCache.getDataEntityType("ecma_depot"), pkValue);
if (isRefrenced) { if (isRefrenced) {
// this.getView().setEnable(false, new String[]{"project"});//二开注释掉的去除项目字段锁定 this.getView().setEnable(false, new String[]{"project"});
} }
} }
*///二开注释掉的去除项目字段锁定
this.getModel().setValue("instruction", this.getInstruction()); this.getModel().setValue("instruction", this.getInstruction());
this.setUnitProject(); this.setUnitProject();