通知公告添加更多按钮,初始化通知公告页签

This commit is contained in:
ptt 2025-07-11 14:39:49 +08:00
parent cb2341c462
commit 9127fe4aba
1 changed files with 22 additions and 0 deletions

View File

@ -2,6 +2,7 @@ package shkd.repc.resp.portal;
import kd.bos.bill.OperationStatus;
import kd.bos.context.RequestContext;
import kd.bos.dataentity.entity.DynamicObject;
import kd.bos.dataentity.resource.ResManager;
import kd.bos.dataentity.utils.StringUtils;
import kd.bos.form.*;
@ -133,6 +134,27 @@ public class IndexEditNewPlugin extends IndexEditNew implements SearchEnterListe
}
@Override
protected void showPortal(String portalConfigId) {
super.showPortal(portalConfigId);
String properties = "portalname,portallogo,browsertabname,displaywebsite,websitemodname,officialwebsite,displaycontact,contactmodname,contact,contacttel,companyfax,contactemail,companyaddress,displaypubimg,publicitycontent,publicitytitle,pubimgentry,companyname,recordnumber,carousel,displaybottom,partnermodulename,displaybidanno,displaywinanno,displayrecruitanno,displaynewsupplier,displaycooppartner,displayhelpcenter,displaynoticecenter,displaydatastatistics,dataentry,dataentry.dataitem,dataentry.dataresult,dataentry.dataitemenable,displayprocess,processmodname,processentry,processentry.seq,processentry.processname,processentry.processimg,processentry.processenable";
DynamicObject portalConfig = this.getPortalConfigData(properties);
if (portalConfig != null) {
IFormView view = this.getView();
boolean displaynotice = portalConfig.getBoolean("displaynoticecenter");
if (!displaynotice) {
// view.setVisible(false, new String[]{"panel_home_notice"});
} else {
HashMap<String, String> cardInfo = new HashMap();
cardInfo.put("formId", "qeug_resp_notice_new");
cardInfo.put("container", "qeug_gc_notice_new");
cardInfo.put("cardId", "qeug_card_resp_notice_new");
this.loadCards(portalConfigId, cardInfo, (Map)null);
}
}
}
@Override
public void setHeadflexpanelBackgroundImg(boolean flag) {
Container flexPanel = (Container)this.getView().getControl("flexpanelap1");