Ejemplo n.º 1
0
 private static Domain.OrderCommentLog BuildOrderCommentLog(XElement sourceElement)
 {
     Domain.OrderCommentLog orderCommentLog = new Domain.OrderCommentLog();
     if (sourceElement != null)
     {
         Domain.Persistence.SqlXmlPropertyWriter xmlPropertyWriter = new Domain.Persistence.SqlXmlPropertyWriter(sourceElement);
         orderCommentLog.WriteProperties(xmlPropertyWriter);
     }
     return(orderCommentLog);
 }
Ejemplo n.º 2
0
 private static Domain.OrderCommentLog BuildOrderCommentLog(XElement sourceElement)
 {
     Domain.OrderCommentLog orderCommentLog = new Domain.OrderCommentLog();
     if (sourceElement != null)
     {
         Domain.Persistence.SqlXmlPropertyWriter xmlPropertyWriter = new Domain.Persistence.SqlXmlPropertyWriter(sourceElement);
         orderCommentLog.WriteProperties(xmlPropertyWriter);
     }
     return orderCommentLog;
 }
Ejemplo n.º 3
0
 private static Domain.MaterialLocation BuildMaterialLocation(XElement sourceElement)
 {
     Domain.MaterialLocation materialLocation = new Domain.MaterialLocation();
     if (sourceElement != null)
     {
         Domain.Persistence.SqlXmlPropertyWriter xmlPropertyWriter = new Domain.Persistence.SqlXmlPropertyWriter(sourceElement);
         materialLocation.WriteProperties(xmlPropertyWriter);
     }
     return(materialLocation);
 }
Ejemplo n.º 4
0
 private void BuildResultItemCollection(YellowstonePathology.Business.Test.Model.Test test, XElement testElement)
 {
     List<XElement> resultElements = (from item in testElement.Elements("ResultItemCollection")
                                                  select item).ToList<XElement>();
     foreach (XElement resultElement in resultElements.Elements("ResultItem"))
     {
         YellowstonePathology.Test.Model.ResultItem result = new YellowstonePathology.Test.Model.ResultItem();
         Domain.Persistence.SqlXmlPropertyWriter xmlPropertyWriter = new Domain.Persistence.SqlXmlPropertyWriter(resultElement);
         result.WriteProperties(xmlPropertyWriter);
         test.ResultItemCollection.Add(result);
     }
 }
Ejemplo n.º 5
0
        private void BuildResultItemCollection(YellowstonePathology.Business.Test.Model.Test test, XElement testElement)
        {
            List <XElement> resultElements = (from item in testElement.Elements("ResultItemCollection")
                                              select item).ToList <XElement>();

            foreach (XElement resultElement in resultElements.Elements("ResultItem"))
            {
                YellowstonePathology.Test.Model.ResultItem result            = new YellowstonePathology.Test.Model.ResultItem();
                Domain.Persistence.SqlXmlPropertyWriter    xmlPropertyWriter = new Domain.Persistence.SqlXmlPropertyWriter(resultElement);
                result.WriteProperties(xmlPropertyWriter);
                test.ResultItemCollection.Add(result);
            }
        }
Ejemplo n.º 6
0
 public void Build(XElement sourceElement)
 {
     if (sourceElement != null)
     {
         YellowstonePathology.Business.View.AccessionSlideOrderView accessionSlideOrderView = new View.AccessionSlideOrderView();
         Domain.Persistence.SqlXmlPropertyWriter xmlPropertyWriter = new Domain.Persistence.SqlXmlPropertyWriter(sourceElement);
         accessionSlideOrderView.WriteProperties(xmlPropertyWriter);
         BuildSlideOrder(accessionSlideOrderView, sourceElement);
         this.m_AccessionSlideOrderView = accessionSlideOrderView;
     }
     else
     {
         this.m_AccessionSlideOrderView = null;
     }
 }
 public void Build(XElement sourceElement)
 {
     if (sourceElement != null)
     {
         YellowstonePathology.Business.View.AccessionSlideOrderView accessionSlideOrderView = new View.AccessionSlideOrderView();
         Domain.Persistence.SqlXmlPropertyWriter xmlPropertyWriter = new Domain.Persistence.SqlXmlPropertyWriter(sourceElement);
         accessionSlideOrderView.WriteProperties(xmlPropertyWriter);
         BuildSlideOrder(accessionSlideOrderView, sourceElement);
         this.m_AccessionSlideOrderView = accessionSlideOrderView;
     }
     else
     {
         this.m_AccessionSlideOrderView = null;
     }
 }
Ejemplo n.º 8
0
 private static Domain.MaterialLocation BuildMaterialLocation(XElement sourceElement)
 {
     Domain.MaterialLocation materialLocation = new Domain.MaterialLocation();
     if (sourceElement != null)
     {
         Domain.Persistence.SqlXmlPropertyWriter xmlPropertyWriter = new Domain.Persistence.SqlXmlPropertyWriter(sourceElement);
         materialLocation.WriteProperties(xmlPropertyWriter);
     }
     return materialLocation;
 }