天天看点

金蝶云星空组合表头显示的列太多(超过35列),如何取消该控制?

using Kingdee.BOS.ServiceHelper;
using Kingdee.BOS.Util;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Kingdee.BOS.Core.Bill.PlugIn;
using System.ComponentModel;

namespace Kingdee.DH.Test
{
    [Kingdee.BOS.Util.HotUpdate]
    [Description("简单报表超过35列插件加载")]
    public class demo: AbstractDynamicWebFormBuilderPlugIn
    {
        public override void CreateControl(Kingdee.BOS.Core.DynamicForm.PlugIn.Args.CreateControlEventArgs e)
        {

            base.CreateControl(e);

            if (e.ControlAppearance.Key.EqualsIgnoreCase("FList"))
            {
                e.Control["enforcemerge"] = true;
            }
        }
    }
}

           

插件生成以后打开BOS平台

在XML里面的SysReportForm里面增加以下代码,放到SysReportForm里面第一项进行增加

<WebFormBuilderPlugins>
    <PlugIn ElementType="0" ElementStyle="0">
        <ClassName> Kingdee.DH.Test.demo,Kingdee.DH.Test</ClassName>
        <OrderId>1</OrderId>
    </PlugIn>
</WebFormBuilderPlugins>