Esempio n. 1
0
        internal void CheckElementBugs(string fileType, ref List <ElementBugInfo> lstElementBugList)
        {
            List <MedDocSys.PadWrapper.ElementBugInfo> bugs = new List <MedDocSys.PadWrapper.ElementBugInfo>();

            if (fileType == "CHENPAD")
            {
                ChenPadEditor.Readonly = false;
                ChenPadEditor.CheckElementBugs(ref bugs);
            }
            else if (fileType == "BAODIAN")
            {
                BaodianEditor.CheckElementBugs(ref bugs);
            }
            else if (fileType == "HEREN")
            {
                lstElementBugList = HerenEditor.GetElementBugs();
            }
            foreach (var item in bugs)
            {
                ElementBugInfo bug = new ElementBugInfo();
                bug.BugDesc     = item.BugDesc;
                bug.ElementID   = item.ElementID;
                bug.ElementName = item.ElementName;
                bug.ElementType = ElementType.SimpleOption;
                bug.IsFatalBug  = item.IsFatalBug;
            }
        }
Esempio n. 2
0
        public string GetDocText(MedDocInfo meddocInfo)
        {
            string szDcoText = string.Empty;

            byte[] docBytes = null;
            if (meddocInfo.EMR_TYPE == "CHENPAD")
            {
                if (!LoadMeddoc(meddocInfo, ref docBytes))
                {
                    return(string.Empty);
                }
                ChenPadEditor.OpenDocument(docBytes, false);
                ChenPadEditor.Readonly = false;
                ChenPadEditor.GetPureTextData(ref szDcoText);
            }
            else if (meddocInfo.EMR_TYPE == "BAODIAN")
            {
                if (!LoadMeddoc(meddocInfo, ref docBytes))
                {
                    return(string.Empty);
                }
                BaodianEditor.OpenDocument(docBytes, null, false);
                BaodianEditor.GetPureTextData(ref szDcoText);
            }
            else if (meddocInfo.EMR_TYPE == "HEREN")
            {
                if (meddocInfo.DOC_ID != meddocInfo.DOC_SETID)
                {
                    return(string.Empty);
                }
                if (!LoadMeddoc(meddocInfo, ref docBytes))
                {
                    return(string.Empty);
                }
                HerenEditor.TextEditor.LoadDocument2(docBytes);
                szDcoText = HerenEditor.TextEditor.Text;
            }
            return(szDcoText);
        }