public override void HandleState(object sender, xap.rui.engine.DictionaryEventArgs e) { string uiEvent = e.Data[UIConst.UI_EVENT] as string; string newState = e.Data[UIConst.NEW_STATE] as string; switch (uiEvent) { case UIEvent.LOAD: this.ent4BannerDTO = (this.Context["PatientData"] as BannerData).Ent4BannerDTO; //树列表 DiCertificateTreeView leftView = userControl.GetConfig().GetInstance("leftView") as DiCertificateTreeView; if (leftView != null) { leftView.ent4BannerDTO = this.ent4BannerDTO; leftView.parentUserControl = this.Parent.Parent as XUserControl; } //编辑界面 DiCertificateEditView rightView = userControl.GetConfig().GetInstance("rightView") as DiCertificateEditView; if (rightView != null) { rightView.ent4BannerDTO = this.ent4BannerDTO; } userControl.Enabled = cof.viewEditState8EntSd(ent4BannerDTO.Entpattp); break; default: break; } }