/// <summary> /// 获取当前默认医疗单(空医疗单) /// </summary> /// <returns></returns> protected virtual BaseEmsView GetDefaultEmsView() { if (tableControl.GetViewModel() == null) { tableControl.SetViewModel(new EmptyEmsViewModel(this.ent4BannerDTO)); } else { tableControl.GetViewModel().SetEnt4BannerDTO(this.ent4BannerDTO); } return(this.tableControl); }
private void MySearchBox_ValueTextChanged(object sender, EventArgs e) { var dataSource = (emsView.GetViewModel() is EmsLisViewModel) ? ((emsView.GetViewModel() as EmsLisViewModel).GetFormDataSource() as EmsObsItemDO).EmsOrObsList : ((emsView.GetViewModel() as EmsRisViewModel).GetFormDataSource() as EmsObsItemDO).EmsOrObsList; if (FocusedCell == null || dataSource == null || !refEdit.Visible) { return; } FocusedCell.SetValue(ConstructDetialInfo(dataSource)); }