入库单添加资源清单过滤逻辑
This commit is contained in:
parent
b27ed7d9cd
commit
f69b08c215
|
@ -21,7 +21,7 @@ import java.util.EventObject;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 资源清单动态表单扩展系统插件
|
* ”资源清单“动态表单扩展系统插件
|
||||||
*/
|
*/
|
||||||
public class ResourceFilterExtPlugin extends ResourceItemListPlugin {
|
public class ResourceFilterExtPlugin extends ResourceItemListPlugin {
|
||||||
@Override
|
@Override
|
||||||
|
@ -36,8 +36,8 @@ public class ResourceFilterExtPlugin extends ResourceItemListPlugin {
|
||||||
this.getPageCache().put("firstOpen", "false");
|
this.getPageCache().put("firstOpen", "false");
|
||||||
|
|
||||||
Object originFormId = customParams.get("originFormId");//源表单ID
|
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.setResourceTypeStyle("material");
|
||||||
this.afterSelectedTag("material");
|
this.afterSelectedTag("material");
|
||||||
}
|
}
|
||||||
|
@ -89,7 +89,7 @@ public class ResourceFilterExtPlugin extends ResourceItemListPlugin {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Object originFormId = customParams.get("originFormId");//源表单ID
|
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(true, new String[]{"flexpanelmaterial"});
|
||||||
this.getView().setVisible(false, new String[]{"flexpanelequipment", "flexpanellabour", "flexpanelcomposite", "flexpanelturnover", "flexpanelother", "flexpanelsub"});
|
this.getView().setVisible(false, new String[]{"flexpanelequipment", "flexpanellabour", "flexpanelcomposite", "flexpanelturnover", "flexpanelother", "flexpanelsub"});
|
||||||
|
|
Loading…
Reference in New Issue