/// <summary> /// 加载病人的病历记录 /// </summary> /// <param name="noofinpat"></param> private void LoadHistoryEmr() { foreach (TreeListNode node in treeListHistory.Nodes) { HistoryInpatient pat = node.Tag as HistoryInpatient; if (pat == null) { continue; } DataTable datatable = m_RecordDal.GetHistoryInpatientFolder(Convert.ToInt32(pat.NoOfInpat)); foreach (DataRow dr in datatable.Rows) { //加载病历文件夹 TreeListNode subNode = treeListHistory.AppendNode(new object[] { dr["CNAME"].ToString() }, node); EmrModelContainer container = new EmrModelContainer(dr); subNode.Tag = container; if (container.EmrContainerType != ContainerType.None) { //加载具体的病历 DataTable leafs = m_patUtil.GetPatRecInfo(container.ContainerCatalog, pat.NoOfInpat); { foreach (DataRow leaf in leafs.Rows) { EmrModel leafmodel = new EmrModel(leaf); TreeListNode leafNode = treeListHistory.AppendNode(new object[] { leafmodel.ModelName }, subNode); leafNode.Tag = leafmodel; } } } } } }
public void RefreshLookUpEditorEmrDoc(string noofinpat, EmrModel emrModel, EmrModelContainer emrModelContainer) { m_NoOfInpat = noofinpat; SumPoint = m_SqlManger.GetSumPoint(m_NoOfInpat, m_App); m_EmrModel = emrModel; m_EmrModelContainer = emrModelContainer; dtRHQCReport = GetQCTable(); InitLookUpEditorEmrDoc(); InitLookUpEditorDoctor(); InitTotalGrade(); InitGridControl(); InitPatientInfo(); }
/// <summary> /// 双击选择的病人跳转到病历评分窗体(用户控件) /// </summary> private void LoadEmrDocPoint(string noOfInpat) { // DataRowView drv = gridViewSelect.GetRow(gridViewSelect.FocusedRowHandle) as DataRowView; // if (drv == null) return; // string noofinpat = drv["noofinpat"].ToString(); if (m_UCEmrInput != null) { EmrModel emrModel = m_UCEmrInput.GetCurrentModel(); EmrModelContainer emrModelContainer = m_UCEmrInput.GetCurrentModelContainer(); ucPoint1.RefreshLookUpEditorEmrDoc(noOfInpat, emrModel, emrModelContainer); } else { ucPoint1.RefreshLookUpEditorEmrDoc(noOfInpat, null, null); } }
/// <summary> /// 编辑器获取焦点方法 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> public void CurrentForm_GotFocus() { try { ///焦点所在TabPage XtraTabPage selectedPage = xtraTabControlEmr.SelectedTabPage; ///焦点所在TabPage对应的EmrModel EmrModel thisModel = m_TempModelPages.FirstOrDefault(p => p.Value == selectedPage).Key; if (null != thisModel) {///焦点所在TabPage为病历 if (null != treeListEmrNodeList.FocusedNode && null != treeListEmrNodeList.FocusedNode.Tag && treeListEmrNodeList.FocusedNode.Tag is EmrModel) { EmrModel focusedNodeModel = treeListEmrNodeList.FocusedNode.Tag as EmrModel; if (thisModel == focusedNodeModel) { return; } } } ///焦点所在TabPage对应的EmrModelContainer EmrModelContainer thisContainer = m_TempContainerPages.FirstOrDefault(p => p.Value == selectedPage).Key; if (null != thisContainer) {///焦点所在TabPage为非病历 if (null != treeListEmrNodeList.FocusedNode && null != treeListEmrNodeList.FocusedNode.Tag && treeListEmrNodeList.FocusedNode.Tag is EmrModelContainer) { EmrModelContainer focusedNodeContainer = treeListEmrNodeList.FocusedNode.Tag as EmrModelContainer; if (thisContainer == focusedNodeContainer) { return; } } } SelectedPageChanged(selectedPage); } catch (Exception ex) { throw ex; } }