public AssButtonView() { // cidiViewModel构造函数是传当前环境,BaseContext,由于获取诊断不需要当前环境,可以设置为空 this.cidiViewModel = new CiDiagViewModel(null); this.model = new AssButtonViewModel(); this.Load += new EventHandler(buttonView_Load); }
/// <summary> /// 获取控件相关的数据,不涉及界面(不读写界面元素)。 /// </summary> protected override void OnLoadData() { if (this.model == null) { this.model = new CiDiagViewModel(this.BaseContext); } disysArr = this.model.GetIddisysArr(); }
/// <summary> /// 加载诊断数据 /// </summary> protected override void OnLoadData() { if (!string.IsNullOrEmpty(this.Id_ent)) { if (model == null) { model = new CiDiagViewModel(this.BaseContext); } ciDiagItemList = model.GetCiDiagItemList(this.Id_ent); } }
/// <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; } } }
public AssButtonOpView() { // cidiViewModel构造函数是传当前环境,BaseContext,由于获取诊断不需要当前环境,可以设置为空 this.cidiViewModel = new CiDiagViewModel(null); }