Compare commits

...

2 Commits

1 changed files with 4 additions and 4 deletions

View File

@ -21,7 +21,7 @@ import java.util.EventObject;
import java.util.Map;
/**
* 资源清单动态表单扩展系统插件
* 资源清单动态表单扩展系统插件
*/
public class ResourceFilterExtPlugin extends ResourceItemListPlugin {
@Override
@ -36,8 +36,8 @@ public class ResourceFilterExtPlugin extends ResourceItemListPlugin {
this.getPageCache().put("firstOpen", "false");
Object originFormId = customParams.get("originFormId");//源表单ID
if (originFormId != null && originFormId.equals("ecma_purchaseapply")) {
//采购申请单
if (originFormId != null && (originFormId.equals("ecma_purchaseapply") || originFormId.equals("ecma_materialinbill"))) {
//采购申请单或入库单
this.setResourceTypeStyle("material");
this.afterSelectedTag("material");
}
@ -89,7 +89,7 @@ public class ResourceFilterExtPlugin extends ResourceItemListPlugin {
}
}
Object originFormId = customParams.get("originFormId");//源表单ID
if (originFormId != null && originFormId.equals("ecma_purchaseapply")) {
if (originFormId != null && (originFormId.equals("ecma_purchaseapply") || originFormId.equals("ecma_materialinbill"))) {
//采购申请单
this.getView().setVisible(true, new String[]{"flexpanelmaterial"});
this.getView().setVisible(false, new String[]{"flexpanelequipment", "flexpanellabour", "flexpanelcomposite", "flexpanelturnover", "flexpanelother", "flexpanelsub"});