示例#1
0
        /// <summary>
        ///  根据选择的患者获取的属性信息
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        public override void OnSelected(object sender, TargetEventArgs e)
        {
            bannerOpdocstation banner = sender as bannerOpdocstation;

            if (banner != null)
            {
                BannerData bannerData = e.Object as BannerData;
                if (bannerData != null && bannerData.Ent4BannerDTO != null)
                {
                    request.ent4BannerDTO        = bannerData.Ent4BannerDTO;
                    request.context              = this.Context;
                    request.opActionChainHandler = this;
                }
                else
                {
                    request.ent4BannerDTO = null;
                    request.context       = null;
                }
            }
        }
示例#2
0
        /// <summary>
        /// 获取banner信息患者
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        public override void OnSelected(object sender, TargetEventArgs e)
        {
            bannerOpdocstation banner = sender as bannerOpdocstation;

            if (banner != null)
            {
                BannerData bannerData = e.Object as BannerData;
                if (bannerData != null && bannerData.Ent4BannerDTO != null)
                {
                    this.Ent4BannerDTO = bannerData.Ent4BannerDTO;

                    if (model == null)
                    {
                        model = new CiDiagViewModel(this.Context);
                    }
                }
                else
                {
                    this.Ent4BannerDTO = null;
                }
            }
        }
示例#3
0
        /// <summary>
        /// 切换患者时触发
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        public override void OnSelected(object sender, TargetEventArgs e)
        {
            bannerOpdocstation banner = sender as bannerOpdocstation;

            if (banner != null)
            {
                BannerData bannerData = e.Object as BannerData;

                if (bannerData != null && bannerData.Ent4BannerDTO != null)
                {
                    this.ent4BannerDTO = bannerData.Ent4BannerDTO;
                    cacheXUserControlDic.Clear();
                }
                else
                {
                    if (bannerData == null)
                    {
                        LogManager.GetLogger().DebugEx("*******************bannerData == null ");
                    }
                    else if (bannerData.Ent4BannerDTO == null)
                    {
                        LogManager.GetLogger().DebugEx("*******************bannerData.Ent4BannerDTO == null ");
                    }

                    this.ent4BannerDTO = null;
                }
                if (this.assiViewFrame != null)
                {
                    this.assiViewFrame.Close();
                }
                if (diAssiForm != null)
                {
                    diAssiForm.Close();
                    diAssiForm = null;
                    isDiOpen   = false;
                }
            }
        }
示例#4
0
        public override void OnSelected(object sender, TargetEventArgs e)
        {
            bannerOpdocstation banner = sender as bannerOpdocstation;

            if (banner != null)
            {
                BannerData bannerData = e.Object as BannerData;
                if (bannerData != null && bannerData.Ent4BannerDTO != null)
                {
                    // 初始化菜单默认状态值
                    this.InitMenusFixedStatus(bannerData.Ent4BannerDTO);

                    this.SetActionsStatus(bannerData.Ent4BannerDTO.Sd_status);

                    if (bannerData.Ent4BannerDTO.Sd_hptp != null && bannerData.Ent4BannerDTO.Sd_hptp.Substring(0, 1).Equals("2"))
                    {
                        // this.SetActionsStatus(EventCodeType.EVENT_PRAPY);
                    }
                    else
                    {
                        this.SetActionsStatus(EventCodeType.EVENT_UN_PRAPY);
                    }
                    if (bannerData.Ent4BannerDTO.Sd_hptp != null && bannerData.Ent4BannerDTO.Sd_hptp.Substring(0, 1).Equals("1"))
                    {
                        this.SetActionsStatus(EventCodeType.EVENT_HP_PAT);
                    }
                    else
                    {
                        this.SetActionsStatus(EventCodeType.EVENT_NOT_HP_PAT);
                    }
                }
                else
                {
                    this.SetActionsStatus(UIEvent.LOAD);
                }
            }
        }