using Kingdee.BOS.Core.Bill.PlugIn;
using Kingdee.BOS.Core.Bill.PlugIn.Args;
using Kingdee.BOS.Core.DynamicForm.PlugIn;
using Kingdee.BOS.Core.DynamicForm.PlugIn.Args;
using Kingdee.BOS.Core.List.PlugIn;
using Kingdee.BOS.Core.Metadata;
using Kingdee.BOS.Util;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace LQKJ.NSJYB.ReportPlug
{
    [HotUpdate, Description("嵌入网页，表单构建插件")]
    public class InlayHtmlWebFormBuilderPlugIn: AbstractDynamicWebFormBuilderPlugIn
    {
        public override void CreateControl(CreateControlEventArgs e)
        {
            base.CreateControl(e);
            if (e.ControlAppearance.Key.EqualsIgnoreCase("FRichTextPanel"))
            {
                //需要嵌入网页的容器
                e.Control["xtype"] = "kdwebbrowser";
            }
        }
    }
}
