|
@@ -10,6 +10,7 @@ import kd.bos.form.events.AfterDoOperationEventArgs;
|
|
|
import kd.bos.orm.query.QCP;
|
|
|
import kd.bos.orm.query.QFilter;
|
|
|
import kd.bos.servicehelper.BusinessDataServiceHelper;
|
|
|
+import nckd.jimin.jyyy.fi.plugin.operate.SRMHelperUtils;
|
|
|
|
|
|
import java.util.EventObject;
|
|
|
import java.util.HashMap;
|
|
@@ -59,6 +60,29 @@ public class PayApplyBillSRMEditPlugin extends AbstractBillPlugIn {
|
|
|
mpUrl.put("url", ssoUrl);
|
|
|
proxy.addAction("openUrl", mpUrl);
|
|
|
}
|
|
|
+ } else if(StringUtils.equals("nckd_ssosrm", opKey)){
|
|
|
+ if(this.getModel().getValue("nckd_srmurl") == null
|
|
|
+ || "".equals(this.getModel().getValue("nckd_srmurl").toString())){
|
|
|
+ this.getView().showTipNotification("不是SRM生成的单据");
|
|
|
+ return;
|
|
|
+ } else {
|
|
|
+ String ssourl = (String) this.getModel().getValue("nckd_srmurl");
|
|
|
+ Map<String, String> returnMap = SRMHelperUtils.buildSSOUrl(ssourl);
|
|
|
+
|
|
|
+ if(returnMap != null){
|
|
|
+ if("0".equals(returnMap.get("code"))) {
|
|
|
+ ssourl = returnMap.get("msg");
|
|
|
+ IClientViewProxy proxy = this.getView().getService(IClientViewProxy.class);
|
|
|
+ Map<String, String> mpUrl = new HashMap();
|
|
|
+ mpUrl.put("url", ssourl);
|
|
|
+ proxy.addAction("openUrl", mpUrl);
|
|
|
+ } else {
|
|
|
+ this.getView().showTipNotification(returnMap.get("msg"));
|
|
|
+ }
|
|
|
+ } else {
|
|
|
+ this.getView().showTipNotification("获取单点url失败");
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
|