lc/lc123/cloud/app/plugin/form/sys/MaterialSaveClosePlugin.java

39 lines
1.6 KiB
Java

package tqq9.lc123.cloud.app.plugin.form.sys;
import kd.bos.bill.AbstractBillPlugIn;
import kd.bos.dataentity.resource.ResManager;
import kd.bos.dataentity.utils.StringUtils;
import kd.bos.form.IFormView;
import kd.bos.form.events.BeforeDoOperationEventArgs;
import kd.bos.form.operate.FormOperate;
import kd.sdk.plugin.Plugin;
/**
* 单据界面插件
*/
public class MaterialSaveClosePlugin extends AbstractBillPlugIn implements Plugin {
@Override
public void beforeDoOperation(BeforeDoOperationEventArgs args) {
super.beforeDoOperation(args);
// FormOperate operation = (FormOperate) args.getSource();
// String key = operation.getOperateKey();
// if (StringUtils.equals("save", key)) {
// args.setCancel(Boolean.TRUE);
// // 弹出操作成功提示消息
// boolean showInParentView = true;
// IFormView view = this.getView().getViewNoPlugin(this.getView().getFormShowParameter().getParentPageId());
// if (view == null) {
// view = this.getView();
// showInParentView = false;
// }
// view.showSuccessNotification(String.format(ResManager.loadKDString("保存成功", "DefaultEntityOperate_5", "bos-entity-business", new Object[0]), operation.getOperateName().toString()));
// if (showInParentView) {
// this.getView().sendFormAction(view);
// }
//
// this.getModel().setDataChanged(Boolean.FALSE);
// // 关闭新增窗口
// this.getView().close();
// }
}
}