Example #1
0
        public void InitWrite(IEmrWriteTree _emrWriteTree)
        {
            iEmrWriteTree     = _emrWriteTree;
            iEmrWriteDbHelper = emrDbHelper as IEmrWriteDbHelper;

            GetWriteRecordTreeData();
        }
Example #2
0
        /// <summary>
        /// 病历书写调用此方法
        /// </summary>
        /// <param name="_keyData"></param>
        public void InitLoad(IEmrWriteDbHelper _emrWriteDbHelper, EmrBindKeyData _keyData, bool IsPreview)
        {
            emrDbHelper             = _emrWriteDbHelper;
            emrView.CurrBindKeyData = _keyData;
            currBindKeyData         = _keyData;
            DataSourceManage.InitData(_emrWriteDbHelper);
            EmrToolTipManage.InitEmrToolTip(); //初始化提示控件
            KnowledgeManage.InitKnowledg();    //初始化知识库

            if (IsPreview)
            {
                emrView.emrControlType = EmrControlType.病历预览;
            }
            else
            {
                emrView.emrControlType = EmrControlType.病历编辑;
            }
            emrView.emrDatastorageType = EmrDatastorageType.数据库存储;
            emrView.IsShowFileBtn      = false;
            emrView.btnState();
        }