예제 #1
0
파일: EmrNote1.cs 프로젝트: zhanglg40/hmr
        public EmrNote(AuthorInfo authorInfo, XmlElement emrNote, NoteEditMode editMode,
                       string registryID, MainForm etp)
        {
            emrTaskPane    = etp;
            this.editModes = editMode;
            merge          = emrNote.Attributes[AttributeNames.Merge].Value;
            if (emrNote.Attributes[AttributeNames.StartTime] != null)
            {
                startTime = emrNote.Attributes[AttributeNames.StartTime].Value;
            }

            noteInfo = new NoteInfo(authorInfo, registryID, false,
                                    emrNote.Attributes[AttributeNames.Header].Value,
                                    emrNote.Attributes[AttributeNames.Unique].Value);
            noteInfo.sexOption = (emrNote.Attributes[AttributeNames.Sex].Value == StringGeneral.Yes);
            sexOption          = emrNote.Attributes[AttributeNames.Sex].Value;
            author             = new UCAuthor(authorInfo, false, emrTaskPane);

            if (emrNote.Attributes[AttributeNames.Header].Value == StringGeneral.None)
            {
                XmlNode theader = emrNote.SelectSingleNode(ElementNames.Header);
                if (theader != null)
                {
                    header = theader.Clone();
                }
            }

            noteInfo.SetEditMode(editMode);
            // SetEditModes();
        }
예제 #2
0
파일: NoteInfo.cs 프로젝트: zhanglg40/hmr
 /****zlg****/
 public NoteInfo(string NoteID, string ChildID, string NoteName, bool newEmrNote)
 {
     childID  = ChildID;
     noteID   = NoteID;
     noteName = NoteName;
     newNote  = newEmrNote;
     editMode = NoteEditMode.Writing;
     //registryID = patientInfo.RegistryID;
 }
예제 #3
0
파일: NoteInfo.cs 프로젝트: zhanglg40/hmr
 public NoteInfo(AuthorInfo authorInfo, string registryID, Boolean newEmrNote,
                 string header, string unique)
 {
     childID         = authorInfo.ChildID;
     noteID          = authorInfo.NoteID;
     noteName        = authorInfo.NoteName;
     newNote         = newEmrNote;
     editMode        = NoteEditMode.Writing;
     templateType    = authorInfo.TemplateType;
     templateName    = authorInfo.TemplateName;
     this.registryID = registryID;
     headerText      = header;
     uniqueText      = unique;
 }
예제 #4
0
파일: NoteInfo.cs 프로젝트: zhanglg40/hmr
 public void SetEditMode(NoteEditMode mode)
 {
     editMode = mode;
 }