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(); }
/****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; }
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; }
public void SetEditMode(NoteEditMode mode) { editMode = mode; }