Exemple #1
0
        private void treeListHistory_MouseDoubleClick(object sender, MouseEventArgs e)
        {
            try
            {
                TreeListHitInfo hitInfo = treeListHistory.CalcHitInfo(e.Location);
                if (hitInfo != null && hitInfo.Node != null)
                {
                    TreeListNode node  = hitInfo.Node;
                    EmrModel     model = node.Tag as EmrModel;
                    if (model != null)
                    {
                        //弹出病历内容
                        HistoryEmrForm printForm = new HistoryEmrForm(m_patUtil, m_RecordDal, model, node);
                        printForm.ShowDialog();
                        if (CurrentForm != null)
                        {
                            CurrentForm.Focus();
                        }

                        if (printForm.IsNeedInsertContent && CurrentForm != null)
                        {
                            if (CanEdit())
                            {
                                CurrentForm.zyEditorControl1.EMRDoc._Paste();
                                Clipboard.Clear();
                            }
                        }
                    }
                }
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }