/// <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; } } }
/// <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; } } }
/// <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; } } }
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); } } }