Esempio n. 1
0
        public void HandleNewAmendment(YellowstonePathology.Business.Amendment.Model.Amendment amendment)
        {
            SurgicalAudit surgicalAudit = this.m_SurgicalAuditCollection.GetNextItem(amendment.AmendmentId, this, this.m_AssignedToId, this.AssignedToId);

            foreach (SurgicalSpecimen surgicalSpecimen in this.m_SurgicalSpecimenCollection)
            {
                YellowstonePathology.Business.Test.Surgical.SurgicalSpecimenAudit surgicalSpecimenAudit = surgicalAudit.SurgicalSpecimenAuditCollection.GetNextItem(surgicalAudit.SurgicalAuditId, surgicalSpecimen, amendment.AmendmentId);
                surgicalAudit.SurgicalSpecimenAuditCollection.Add(surgicalSpecimenAudit);
            }

            this.m_SurgicalAuditCollection.Add(surgicalAudit);
        }
Esempio n. 2
0
        public override YellowstonePathology.Business.Amendment.Model.Amendment AddAmendment()
        {
            YellowstonePathology.Business.Amendment.Model.Amendment amendment = base.AddAmendment();
            SurgicalAudit surgicalAudit = this.m_SurgicalAuditCollection.GetNextItem(amendment.AmendmentId, this, this.m_AssignedToId, this.AssignedToId);

            foreach (SurgicalSpecimen surgicalSpecimen in this.m_SurgicalSpecimenCollection)
            {
                YellowstonePathology.Business.Test.Surgical.SurgicalSpecimenAudit surgicalSpecimenAudit = surgicalAudit.SurgicalSpecimenAuditCollection.GetNextItem(surgicalAudit.SurgicalAuditId, surgicalSpecimen, amendment.AmendmentId);
                surgicalAudit.SurgicalSpecimenAuditCollection.Add(surgicalSpecimenAudit);
            }

            this.m_SurgicalAuditCollection.Add(surgicalAudit);
            return(amendment);
        }