示例#1
0
        public aECGAuthor(string name) : base("author")
        {
            _InnerName = name;

            if (string.Compare(name, "seriesAuthor") == 0)
            {
                Device       = new aECGDevice();
                Organization = new aECGOrganization();
            }
            else if (string.Compare(name, "assignedEntity") == 0)
            {
                AssignedAuthorType = new aECGAssignedAuthorType();
                Organization       = new aECGOrganization("representedAuthoringOrganization");
            }
        }
        public void Set(aECGAssignedAuthorType aat)
        {
            if ((aat.AssignedDevice != null) &&
                (aat.AssignedPerson == null))
            {
                this.AssignedDevice = new aECGDevice("assignedDevice");

                this.AssignedDevice.Set(aat.AssignedDevice);
            }
            else if ((aat.AssignedDevice == null) &&
                     (aat.AssignedPerson != null))
            {
                this.AssignedPerson = new aECGPerson("assignedPerson");

                this.AssignedPerson.Set(aat.AssignedPerson);
            }
        }