1 changed files with 40 additions and 0 deletions
@ -0,0 +1,40 @@ |
|||||||
|
package apelet.association.plugin; |
||||||
|
|
||||||
|
import apelet.common.core.object.ObjectValue; |
||||||
|
import apelet.common.online.abstractplugin.ExecutePluginParent; |
||||||
|
import apelet.common.online.model.constant.AttributeEnum; |
||||||
|
|
||||||
|
import java.util.Objects; |
||||||
|
|
||||||
|
|
||||||
|
/** |
||||||
|
* @ClassName: MembershipPayShowHidePlugin |
||||||
|
* @Author: huangdehua |
||||||
|
* @Date: 2026/5/7 15:00 |
||||||
|
* @Description: 会费缴纳界面会员类别为非会员时显示银行收款凭证号字段,其他情况隐藏 |
||||||
|
*/ |
||||||
|
public class MembershipPayShowHidePlugin extends ExecutePluginParent { |
||||||
|
@Override |
||||||
|
public void formCreated(String widgetVariableName, ObjectValue objectValue) { |
||||||
|
super.formCreated(widgetVariableName, objectValue); |
||||||
|
String membershipType = objectValue.getString("membershipType"); |
||||||
|
if (Objects.equals(membershipType, "E")){ |
||||||
|
super.setWidgetAttribute("bankReceiptV", AttributeEnum.SHOW, true); |
||||||
|
}else { |
||||||
|
super.setWidgetAttribute("bankReceiptV", AttributeEnum.SHOW, false); |
||||||
|
} |
||||||
|
} |
||||||
|
|
||||||
|
@Override |
||||||
|
public void change(String widgetVariableName, ObjectValue objectValue) { |
||||||
|
super.change(widgetVariableName, objectValue); |
||||||
|
String membershipType = objectValue.getString("membership_type"); |
||||||
|
if (Objects.equals(widgetVariableName, "membershipType")){ |
||||||
|
if (Objects.equals(membershipType, "E")){ |
||||||
|
super.setWidgetAttribute("bankReceiptV", AttributeEnum.SHOW, true); |
||||||
|
}else { |
||||||
|
super.setWidgetAttribute("bankReceiptV", AttributeEnum.SHOW, false); |
||||||
|
} |
||||||
|
} |
||||||
|
} |
||||||
|
} |
||||||
Loading…
Reference in new issue