1 changed files with 56 additions and 0 deletions
@ -0,0 +1,56 @@
@@ -0,0 +1,56 @@
|
||||
package apelet.association.plugin; |
||||
|
||||
import apelet.common.core.object.ObjectValue; |
||||
import apelet.common.online.abstractplugin.ExecutePluginParent; |
||||
import apelet.common.online.model.ShowParameter; |
||||
import apelet.common.online.model.constant.ShowTypeEnum; |
||||
import apelet.common.online.model.constant.ViewStatus; |
||||
|
||||
import java.util.HashMap; |
||||
import java.util.Map; |
||||
|
||||
/** |
||||
* @ClassName: MembershipPayPopupPlugin |
||||
* @Author: huangdehua |
||||
* @Date: 2026/5/2 17:37 |
||||
* @Description: |
||||
*/ |
||||
public class MembershipPayPopupPlugin extends ExecutePluginParent { |
||||
|
||||
/** |
||||
* 目标表单ID - membershipFeePay 表单在平台中的表单ID |
||||
*/ |
||||
private static final Object FORM_ID = "2049040032123064320"; |
||||
|
||||
/** |
||||
* 触发按钮的标识 - 对应表单上按钮的 key/标识 |
||||
* 点击此按钮时触发弹窗 |
||||
*/ |
||||
private static final String BUTTON_KEY = "会费缴纳"; |
||||
|
||||
/** |
||||
* 按钮点击事件 |
||||
* 点击按钮时,以弹窗方式打开 membershipFeePay 表单 |
||||
* |
||||
* @param buttonKey 按钮标识 |
||||
* @param objectValue 当前表单数据对象 |
||||
*/ |
||||
@Override |
||||
public void buttonTriggered(String buttonKey, ObjectValue objectValue) { |
||||
// 仅响应指定按钮的点击事件
|
||||
if (!BUTTON_KEY.equals(buttonKey)) { |
||||
return; |
||||
} |
||||
|
||||
// 调用 showForm 打开 membershipFeePay 表单
|
||||
ShowParameter showParameter = new ShowParameter(); |
||||
showParameter.setFormId(FORM_ID.toString()); |
||||
showParameter.setHowType(ShowTypeEnum.OPEN_ONLINE_MODAL); |
||||
showParameter.setStatus(ViewStatus.EDIT); |
||||
Map<String, Object> customParam = new HashMap<>(); |
||||
customParam.put("id"," "); |
||||
showParameter.setCustomParam(customParam); |
||||
super.showForm(showParameter); |
||||
} |
||||
} |
||||
|
||||
Loading…
Reference in new issue