/// <summary> /// 响应树列表选中 /// </summary> private void onSelectRow() { if (xLabTitl != null) { //获取当前诊断证明分类 currUdi = DiCertificateTreeViewModel.GetDiprovetTp(dataSource.Sd_diprovetp); xLabTitl.ValueText = currUdi.Name; this.LoadData(); } }
/// <summary> /// CreateView执行完毕后,用LoadData的数据填充界面 /// </summary> protected override void OnFillData() { viewModel.LoadData(ent4BannerDTO.Id_ent); this.oTree1.ClearTree(); if (this.viewModel == null) return; this.viewModel.GetTreeKeyModel(); this.oTree1.LoadData(this.viewModel.lazyLoadTreeModel); //(this.oTree1.FirstNode as BizNode).Visible = false; this.oTree1.ExpandAll(); if (bSelect) { if (this.currDi != null && this.currDi.Id_diprove != null && "0" != DiCertificateTreeViewModel.GetDiprovetTp(this.currDi.Sd_diprovetp).Ctrl1) { foreach (var di in this.viewModel.lstEntDiProveDOs) { if (di.Id_diprove.Equals(this.currDi.Id_diprove)) { this.oTree1.FocusedUserObject = di; } } } else if (this.currUdi == null) { if (idtp_del != null) { foreach (var udi in DiCertificateTreeViewModel.udidocDOs_DiceType) { if (idtp_del.Equals(udi.Id_udidoc)) this.oTree1.FocusedUserObject = udi; } } } else this.oTree1.FocusedUserObject = this.currUdi; } }