Пример #1
0
        private void EntHistoryTabFrame_Load(object sender, EventArgs e)
        {
            // 弹出窗口
            XForm assiViewFrame = this.Context["assiViewFrame"] as XForm;
            // 加载窗口对象,用于对外发送事件
            XapBaseControl xapBaseControl = this.Context["sender"] as XapBaseControl;
            // 点击确定按钮时是否关闭窗口
            bool isConfirmCloseAssiFrame = (bool)this.Context["isConfirmCloseAssiFrame"];
            // 关闭按钮名称
            string closeBtnText = this.Context["closeBtnText"].ToString();

            this.BannerDTO           = this.Context["ent4BannerDTO"] as Ent4BannerDTO;
            this.BaseContext         = this.Context["context"] as BaseContext;
            this.EntHistoryInitEvent = this.Context["entHistoryInitEvent"] as EntHistoryInitEvent;


            XUserControl xUserControl = new XUserControl();

            xUserControl.Init(Application.StartupPath + "\\modules\\iihci\\ui\\optrdocstation\\enthistory\\enthistory_config.xml");

            EntHistory        entHistory        = xUserControl.GetConfig().GetInstance("EntHistory") as EntHistory;
            EntHistoryContent entHistoryContent = xUserControl.GetConfig().GetInstance("EntHistoryContent") as EntHistoryContent;
            EntHistoryBtn     entHistoryBtn     = xUserControl.GetConfig().GetInstance("EntHistoryBtn") as EntHistoryBtn;

            entHistory.Ent4BannerDTO = this.BannerDTO;

            entHistoryContent.Ent4BannerDTO       = this.BannerDTO;
            entHistoryContent.EntHistoryInitEvent = this.EntHistoryInitEvent;
            entHistoryContent.BaseContext         = this.BaseContext;
            // 弹出窗口
            entHistoryContent.AssiViewFrame = assiViewFrame;
            // 确定时是否关闭窗口
            entHistoryContent.IsConfirmCloseAssiFrame = isConfirmCloseAssiFrame;

            entHistoryBtn.Ent4BannerDTO = this.BannerDTO;
            entHistoryBtn.CloseBtnText  = closeBtnText;
            // 弹出窗口
            entHistoryBtn.AssiViewFrame = assiViewFrame;

            xUserControl.Dock = DockStyle.Fill;
            this.xapFormControl.AddRender(xUserControl);
        }
Пример #2
0
        private void EntHistoryBtn_Load(object sender, System.EventArgs e)
        {
            /// 加载事件交互对象
            entHistoryContent = this.Context.Config.GetInstance(ENT_HISTORY_CONTENT_ID) as EntHistoryContent;
            if (entHistoryContent == null)
            {
                LogManager.GetLogger().ErrorEx("根据Clazz id属性[" + ENT_HISTORY_CONTENT_ID + "],获取XapBaseControl对象失败失败!");
            }

            // 诊毕状态设置按钮不可用
            if (this.Ent4BannerDTO.Sd_status == EnDictCodeConst.SD_ENSTATUS_OP_FINISH)
            {
                this.xBtnOK.Enabled = false;
            }

            if (!string.IsNullOrEmpty(CloseBtnText))
            {
                // 传入的关闭按钮名称
                this.xBtnClose.Text = CloseBtnText;
            }
        }
Пример #3
0
        protected void EntpHistoryFrame_Load(object sender, System.EventArgs e)
        {
            XUserControl xUserControl = new XUserControl();

            xUserControl.Init("modules\\iihci\\ui\\optrdocstation\\enthistory\\enthistory_config.xml");


            EntHistory        entHistory        = xUserControl.GetConfig().GetInstance("EntHistory") as EntHistory;
            EntHistoryContent entHistoryContent = xUserControl.GetConfig().GetInstance("EntHistoryContent") as EntHistoryContent;
            EntHistoryBtn     entHistoryBtn     = xUserControl.GetConfig().GetInstance("EntHistoryBtn") as EntHistoryBtn;

            entHistory.Ent4BannerDTO = this.BannerDTO;

            entHistoryContent.Ent4BannerDTO       = this.BannerDTO;
            entHistoryContent.EntHistoryInitEvent = this.EntHistoryInitEvent;
            entHistoryContent.BaseContext         = this.BaseContext;

            entHistoryBtn.EntHistoryFrame = this;
            entHistoryBtn.Ent4BannerDTO   = this.BannerDTO;

            xUserControl.Dock = DockStyle.Fill;
            this.xapFormControl.AddRender(xUserControl);
        }