public IsOkToAddToDistributionAudit(YellowstonePathology.Business.ReportDistribution.Model.TestOrderReportDistribution testOrderReportDistribution,
                                     YellowstonePathology.Business.Test.AccessionOrder accessionOrder)
     : base(accessionOrder)
 {
     this.m_TestOrderReportDistribution = testOrderReportDistribution;
     this.m_PanelSetOrder = this.m_AccessionOrder.PanelSetOrderCollection.GetPanelSetOrder(this.m_TestOrderReportDistribution.ReportNo);
 }
        public static YellowstonePathology.Business.ReportDistribution.Model.TestOrderReportDistributionCollection GetReportDistributionCollectionByDateRangeTumorRegistry(DateTime startDate, DateTime endDate, string distributionType)
        {
            YellowstonePathology.Business.ReportDistribution.Model.TestOrderReportDistributionCollection result = new YellowstonePathology.Business.ReportDistribution.Model.TestOrderReportDistributionCollection();
            string sql = "Select * from tblTestOrderReportDistribution where TimeOfLastDistribution between @StartDate and @EndDate and DistributionType = @DistributionType";

            SqlCommand cmd = new SqlCommand();
            cmd.CommandText = sql;
            cmd.Parameters.Add("@StartDate", SqlDbType.DateTime).Value = startDate;
            cmd.Parameters.Add("@EndDate", SqlDbType.DateTime).Value = endDate;
            cmd.Parameters.Add("@DistributionType", SqlDbType.VarChar).Value = distributionType;
            cmd.CommandType = CommandType.Text;

            using (SqlConnection cn = new SqlConnection(YellowstonePathology.Business.Properties.Settings.Default.CurrentConnectionString))
            {
                cn.Open();
                cmd.Connection = cn;
                using (SqlDataReader dr = cmd.ExecuteReader())
                {
                    while (dr.Read())
                    {
                        YellowstonePathology.Business.ReportDistribution.Model.TestOrderReportDistribution testOrderReportDistribution = new YellowstonePathology.Business.ReportDistribution.Model.TestOrderReportDistribution();
                        YellowstonePathology.Business.Persistence.SqlDataReaderPropertyWriter sqlDataReaderPropertyWriter = new Persistence.SqlDataReaderPropertyWriter(testOrderReportDistribution, dr);
                        sqlDataReaderPropertyWriter.WriteProperties();
                        result.Add(testOrderReportDistribution);
                    }
                }
            }
            return result;
        }
        public TestOrderReportDistributionPage(YellowstonePathology.Business.ReportDistribution.Model.TestOrderReportDistribution testOrderReportDistribution,
                                               YellowstonePathology.UI.Navigation.PageNavigator pageNavigator)
        {
            this.m_TestOrderReportDistribution = testOrderReportDistribution;
            this.m_PageNavigator = pageNavigator;

            InitializeComponent();

            DataContext  = this;
            this.Loaded += new RoutedEventHandler(TestOrderReportDistributionPage_Loaded);
        }
        public TestOrderReportDistributionPage(YellowstonePathology.Business.ReportDistribution.Model.TestOrderReportDistribution testOrderReportDistribution,			
            YellowstonePathology.UI.Navigation.PageNavigator pageNavigator)
        {
            this.m_TestOrderReportDistribution = testOrderReportDistribution;
            this.m_PageNavigator = pageNavigator;

            InitializeComponent();

            DataContext = this;
            this.Loaded += new RoutedEventHandler(TestOrderReportDistributionPage_Loaded);
        }
        private void ScheduleDistribution(YellowstonePathology.Business.ReportDistribution.Model.TestOrderReportDistribution testOrderReportDistribution, YellowstonePathology.Business.Test.PanelSetOrder panelSetOrder)
        {
            testOrderReportDistribution.ScheduledDistributionTime = DateTime.Now.AddMinutes(15);

            panelSetOrder.Published = false;
            testOrderReportDistribution.Distributed = false;
            panelSetOrder.ScheduledPublishTime      = DateTime.Now.AddMinutes(15);

            this.m_ReportDistributionLogEntryCollection.AddEntry("INFO", "Schedule Distribution", testOrderReportDistribution.DistributionType, panelSetOrder.ReportNo,
                                                                 panelSetOrder.MasterAccessionNo, testOrderReportDistribution.PhysicianName, testOrderReportDistribution.ClientName, "Distribution Scheduled");
        }
Пример #6
0
        private YellowstonePathology.Business.ReportDistribution.Model.DistributionResult Distribute(YellowstonePathology.Business.ReportDistribution.Model.TestOrderReportDistribution testOrderReportDistribution, Business.Test.AccessionOrder accessionOrder)
        {
            YellowstonePathology.Business.ReportDistribution.Model.DistributionResult result = null;

            switch (testOrderReportDistribution.DistributionType)
            {
            case YellowstonePathology.Business.ReportDistribution.Model.DistributionType.FAX:
                result = this.HandleFaxDistribution(testOrderReportDistribution);
                break;

            case YellowstonePathology.Business.ReportDistribution.Model.DistributionType.EPIC:
                result = this.HandleEPICDistribution(testOrderReportDistribution, accessionOrder);
                break;

            case YellowstonePathology.Business.ReportDistribution.Model.DistributionType.ECW:
                result = this.HandleECWDistribution(testOrderReportDistribution, accessionOrder);
                break;

            case YellowstonePathology.Business.ReportDistribution.Model.DistributionType.ATHENA:
                result = this.HandleATHENADistribution(testOrderReportDistribution.ReportNo, accessionOrder);
                break;

            case YellowstonePathology.Business.ReportDistribution.Model.DistributionType.MEDITECH:
                result = this.HandleMeditechDistribution(testOrderReportDistribution.ReportNo, accessionOrder);
                break;

            case YellowstonePathology.Business.ReportDistribution.Model.DistributionType.WEBSERVICE:
                result = this.HandleWebServiceDistribution(testOrderReportDistribution);
                break;

            case YellowstonePathology.Business.ReportDistribution.Model.DistributionType.PRINT:
                result = this.HandlePrintDistribution(testOrderReportDistribution);
                break;

            case YellowstonePathology.Business.ReportDistribution.Model.DistributionType.MTDOH:
                result = this.HandleMTDOHDistribution(testOrderReportDistribution.ReportNo, accessionOrder);
                break;

            case YellowstonePathology.Business.ReportDistribution.Model.DistributionType.WYDOH:
                result = this.HandleWYDOHDistribution(testOrderReportDistribution.ReportNo, accessionOrder);
                break;

            default:
                result = this.HandleNoImplemented(testOrderReportDistribution);
                break;
            }

            return(result);
        }
Пример #7
0
        private void BuildTestOrderReportDistribution(YellowstonePathology.Business.Test.PanelSetOrder panelSetOrder, XElement panelSetOrderElement)
        {
            List <XElement> testOrderReportDistributionElements = (from item in panelSetOrderElement.Elements("TestOrderReportDistributionCollection")
                                                                   select item).ToList <XElement>();

            foreach (XElement testOrderReportDistributionElement in testOrderReportDistributionElements.Elements("TestOrderReportDistribution"))
            {
                YellowstonePathology.Business.ReportDistribution.Model.TestOrderReportDistribution testOrderReportDistribution = new YellowstonePathology.Business.ReportDistribution.Model.TestOrderReportDistribution();
                YellowstonePathology.Business.Persistence.XmlPropertyWriter xmlPropertyWriter = new YellowstonePathology.Business.Persistence.XmlPropertyWriter(testOrderReportDistributionElement, testOrderReportDistribution);
                xmlPropertyWriter.Write();
                panelSetOrder.TestOrderReportDistributionCollection.Add(testOrderReportDistribution);
            }
        }
 private void BuildTestOrderReportDistribution(YellowstonePathology.Business.Test.PanelSetOrder panelSetOrder, XElement panelSetOrderElement)
 {
     List<XElement> testOrderReportDistributionElements = (from item in panelSetOrderElement.Elements("TestOrderReportDistributionCollection")
                                                    select item).ToList<XElement>();
     foreach (XElement testOrderReportDistributionElement in testOrderReportDistributionElements.Elements("TestOrderReportDistribution"))
     {
         YellowstonePathology.Business.ReportDistribution.Model.TestOrderReportDistribution testOrderReportDistribution = new YellowstonePathology.Business.ReportDistribution.Model.TestOrderReportDistribution();
         YellowstonePathology.Business.Persistence.XmlPropertyWriter xmlPropertyWriter = new YellowstonePathology.Business.Persistence.XmlPropertyWriter(testOrderReportDistributionElement, testOrderReportDistribution);
         xmlPropertyWriter.Write();
         panelSetOrder.TestOrderReportDistributionCollection.Add(testOrderReportDistribution);
     }
 }
        private void TestReflectionDelagate()
        {
            YellowstonePathology.Business.Mongo.LocalServer localServer = new Business.Mongo.LocalServer("LocalLIS");
            YellowstonePathology.Business.ReportDistribution.Model.TestOrderReportDistributionCollection tt = new YellowstonePathology.Business.ReportDistribution.Model.TestOrderReportDistributionCollection();
            YellowstonePathology.Business.Mongo.DocumentCollectionTracker dct = new Business.Mongo.DocumentCollectionTracker(tt, localServer);

            YellowstonePathology.Business.ReportDistribution.Model.TestOrderReportDistribution t1 = new YellowstonePathology.Business.ReportDistribution.Model.TestOrderReportDistribution();
            tt.Add(t1);
        }
        private void HyperLinkAddPrintDistribution_Click(object sender, RoutedEventArgs e)
        {
            if (this.m_PanelSetOrder.Distribute == true)
            {
                string testOrderReportDistributionId = MongoDB.Bson.ObjectId.GenerateNewId().ToString();
                YellowstonePathology.Business.ReportDistribution.Model.TestOrderReportDistribution testOrderReportDistribution =
                    new YellowstonePathology.Business.ReportDistribution.Model.TestOrderReportDistribution(testOrderReportDistributionId, testOrderReportDistributionId, this.m_PanelSetOrder.ReportNo, 0, null, 0, "Special Distribution",
                        YellowstonePathology.Business.ReportDistribution.Model.DistributionType.PRINT, null, false);

                TestOrderReportDistributionPage testOrderReportDistributionPage = new TestOrderReportDistributionPage(testOrderReportDistribution, this.m_PageNavigator);
                testOrderReportDistributionPage.Next += new TestOrderReportDistributionPage.NextEventHandler(AddDistribution_TestOrderReportDistributionPage_Next);
                testOrderReportDistributionPage.Back += new TestOrderReportDistributionPage.BackEventHandler(AddDistribution_TestOrderReportDistributionPage_Back);
                this.m_PageNavigator.Navigate(testOrderReportDistributionPage);

            }
        }
 private void MenuItemConvertToFax_Click(object sender, RoutedEventArgs e)
 {
     if (this.ListViewTestOrderReportDistribution.SelectedItem != null)
     {
         YellowstonePathology.Business.ReportDistribution.Model.TestOrderReportDistribution testOrderReportDistribution = (YellowstonePathology.Business.ReportDistribution.Model.TestOrderReportDistribution) this.ListViewTestOrderReportDistribution.SelectedItem;
         if (string.IsNullOrEmpty(testOrderReportDistribution.FaxNumber) == false)
         {
             testOrderReportDistribution.DistributionType = "Fax";
         }
         else
         {
             MessageBox.Show("This distribution cannot be converted to a fax because there is no fax number.");
         }
     }
 }
 private void HyperLinkAddComplete_Click(object sender, RoutedEventArgs e)
 {
     if (this.ListViewTestOrderReportDistribution.SelectedItem != null)
     {
         YellowstonePathology.Business.ReportDistribution.Model.TestOrderReportDistribution testOrderReportDistribution = (YellowstonePathology.Business.ReportDistribution.Model.TestOrderReportDistribution) this.ListViewTestOrderReportDistribution.SelectedItem;
         this.m_PanelSetOrder.Published                        = true;
         this.m_PanelSetOrder.ScheduledPublishTime             = null;
         testOrderReportDistribution.Distributed               = true;
         testOrderReportDistribution.TimeOfLastDistribution    = DateTime.Now;
         testOrderReportDistribution.ScheduledDistributionTime = null;
     }
 }
 private void HyperLinkEditDistribution_Click(object sender, RoutedEventArgs e)
 {
     if (this.ListViewTestOrderReportDistribution.SelectedItem != null)
     {
         YellowstonePathology.Business.ReportDistribution.Model.TestOrderReportDistribution testOrderReportDistribution = (YellowstonePathology.Business.ReportDistribution.Model.TestOrderReportDistribution) this.ListViewTestOrderReportDistribution.SelectedItem;
         TestOrderReportDistributionPage testOrderReportDistributionPage = new TestOrderReportDistributionPage(testOrderReportDistribution, this.m_PageNavigator);
         testOrderReportDistributionPage.Next += new TestOrderReportDistributionPage.NextEventHandler(TestOrderReportDistributionPage_Next);
         testOrderReportDistributionPage.Back += new TestOrderReportDistributionPage.BackEventHandler(TestOrderReportDistributionPage_Back);
         this.m_PageNavigator.Navigate(testOrderReportDistributionPage);
     }
     else
     {
         MessageBox.Show("You must select a distribution to edit first.");
     }
 }
        private void HyperLinkAddPrintDistribution_Click(object sender, RoutedEventArgs e)
        {
            if (this.m_PanelSetOrder.Distribute == true)
            {
                string testOrderReportDistributionId = MongoDB.Bson.ObjectId.GenerateNewId().ToString();
                YellowstonePathology.Business.ReportDistribution.Model.TestOrderReportDistribution testOrderReportDistribution =
                    new YellowstonePathology.Business.ReportDistribution.Model.TestOrderReportDistribution(testOrderReportDistributionId, testOrderReportDistributionId, this.m_PanelSetOrder.ReportNo, 0, null, 0, "Special Distribution",
                                                                                                           YellowstonePathology.Business.ReportDistribution.Model.DistributionType.PRINT, null);

                TestOrderReportDistributionPage testOrderReportDistributionPage = new TestOrderReportDistributionPage(testOrderReportDistribution, this.m_PageNavigator);
                testOrderReportDistributionPage.Next += new TestOrderReportDistributionPage.NextEventHandler(AddDistribution_TestOrderReportDistributionPage_Next);
                testOrderReportDistributionPage.Back += new TestOrderReportDistributionPage.BackEventHandler(AddDistribution_TestOrderReportDistributionPage_Back);
                this.m_PageNavigator.Navigate(testOrderReportDistributionPage);
            }
        }
 private void HyperLinkDeleteDistribution_Click(object sender, RoutedEventArgs e)
 {
     if (this.ListViewTestOrderReportDistribution.SelectedItem != null)
     {
         YellowstonePathology.Business.ReportDistribution.Model.TestOrderReportDistribution testOrderReportDistribution = (YellowstonePathology.Business.ReportDistribution.Model.TestOrderReportDistribution) this.ListViewTestOrderReportDistribution.SelectedItem;
         if (testOrderReportDistribution.Distributed == true)
         {
             MessageBoxResult messageBoxResult = MessageBox.Show("This item has been distributed. Are you sure you want to delete it.", "Delete?", MessageBoxButton.YesNo, MessageBoxImage.Question, MessageBoxResult.No);
             if (messageBoxResult == MessageBoxResult.Yes)
             {
                 this.m_PanelSetOrder.TestOrderReportDistributionCollection.Remove(testOrderReportDistribution);
             }
         }
         else
         {
             this.m_PanelSetOrder.TestOrderReportDistributionCollection.Remove(testOrderReportDistribution);
         }
     }
     else
     {
         MessageBox.Show("You must select an item to delete first.");
     }
 }
Пример #16
0
        public static YellowstonePathology.Business.ReportDistribution.Model.TestOrderReportDistributionCollection GetReportDistributionCollectionByDateRangeTumorRegistry(DateTime startDate, DateTime endDate, string distributionType)
        {
            YellowstonePathology.Business.ReportDistribution.Model.TestOrderReportDistributionCollection result = new YellowstonePathology.Business.ReportDistribution.Model.TestOrderReportDistributionCollection();
            string sql = "Select * from tblTestOrderReportDistribution where TimeOfLastDistribution between @StartDate and @EndDate and " +
                         "DistributionType = @DistributionType;";

            MySqlCommand cmd = new MySqlCommand();

            cmd.CommandText = sql;
            cmd.Parameters.AddWithValue("@StartDate", startDate);
            cmd.Parameters.AddWithValue("@EndDate", endDate);
            cmd.Parameters.AddWithValue("@DistributionType", distributionType);
            cmd.CommandType = CommandType.Text;

            using (MySqlConnection cn = new MySqlConnection(YellowstonePathology.Properties.Settings.Default.CurrentConnectionString))
            {
                cn.Open();
                cmd.Connection = cn;
                using (MySqlDataReader dr = cmd.ExecuteReader())
                {
                    while (dr.Read())
                    {
                        YellowstonePathology.Business.ReportDistribution.Model.TestOrderReportDistribution testOrderReportDistribution = new YellowstonePathology.Business.ReportDistribution.Model.TestOrderReportDistribution();
                        YellowstonePathology.Business.Persistence.SqlDataReaderPropertyWriter sqlDataReaderPropertyWriter = new Persistence.SqlDataReaderPropertyWriter(testOrderReportDistribution, dr);
                        sqlDataReaderPropertyWriter.WriteProperties();
                        result.Add(testOrderReportDistribution);
                    }
                }
            }
            return(result);
        }
Пример #17
0
        public static List<YellowstonePathology.Business.ReportDistribution.Model.TestOrderReportDistribution> GetNextTORD()
        {
            List<YellowstonePathology.Business.ReportDistribution.Model.TestOrderReportDistribution> result = new List<YellowstonePathology.Business.ReportDistribution.Model.TestOrderReportDistribution>();
            SqlCommand cmd = new SqlCommand();
            cmd.CommandText = "Select top 10 * from tblTestOrderReportDistribution";
            cmd.CommandType = CommandType.Text;

            using (SqlConnection cn = new SqlConnection(YellowstonePathology.Properties.Settings.Default.CurrentConnectionString))
            {
                cn.Open();
                cmd.Connection = cn;
                using (SqlDataReader dr = cmd.ExecuteReader())
                {
                    while (dr.Read())
                    {
                        YellowstonePathology.Business.ReportDistribution.Model.TestOrderReportDistribution testOrderReportDistribution = new YellowstonePathology.Business.ReportDistribution.Model.TestOrderReportDistribution();
                        YellowstonePathology.Business.Persistence.SqlDataReaderPropertyWriter sqlDataReaderPropertyWriter = new Persistence.SqlDataReaderPropertyWriter(testOrderReportDistribution, dr);
                        sqlDataReaderPropertyWriter.WriteProperties();
                        result.Add(testOrderReportDistribution);
                    }
                }
            }
            return result;
        }
Пример #18
0
        private void BuildTestOrderReportDistribution(YellowstonePathology.Business.Test.PanelSetOrder panelSetOrder, XElement panelSetOrderElement)
        {
            List<XElement> testOrderReportDistributionElements = (from item in panelSetOrderElement.Elements("TestOrderReportDistributionCollection")
                                                           select item).ToList<XElement>();
            panelSetOrder.TestOrderReportDistributionCollection.RemoveDeleted(testOrderReportDistributionElements.Elements("TestOrderReportDistribution"));
            foreach (XElement testOrderReportDistributionElement in testOrderReportDistributionElements.Elements("TestOrderReportDistribution"))
            {
                string testOrderReportDistributionId = testOrderReportDistributionElement.Element("TestOrderReportDistributionId").Value;
                YellowstonePathology.Business.ReportDistribution.Model.TestOrderReportDistribution testOrderReportDistribution = null;
                if (panelSetOrder.TestOrderReportDistributionCollection.Exists(testOrderReportDistributionId) == true)
                {
                    testOrderReportDistribution = panelSetOrder.TestOrderReportDistributionCollection.Get(testOrderReportDistributionId);
                }
                else
                {
                    testOrderReportDistribution = new YellowstonePathology.Business.ReportDistribution.Model.TestOrderReportDistribution();
                    panelSetOrder.TestOrderReportDistributionCollection.Add(testOrderReportDistribution);
                }

                YellowstonePathology.Business.Persistence.XmlPropertyWriter xmlPropertyWriter = new YellowstonePathology.Business.Persistence.XmlPropertyWriter(testOrderReportDistributionElement, testOrderReportDistribution);
                xmlPropertyWriter.Write();
            }
        }
Пример #19
0
        public static List<YellowstonePathology.Business.ReportDistribution.Model.TestOrderReportDistribution> GetUnscheduledAmendments()
        {
            List<YellowstonePathology.Business.ReportDistribution.Model.TestOrderReportDistribution> result = new List<YellowstonePathology.Business.ReportDistribution.Model.TestOrderReportDistribution>();
            SqlCommand cmd = new SqlCommand();
            cmd.CommandText = "select trd.* " +
                "from tblAmendment a " +
                "join tblTestOrderReportDistribution trd on a.ReportNo = trd.ReportNo " +
                "where trd.TimeOfLastDistribution < a.finalTime and trd.ScheduledDistributionTime is null";
            cmd.CommandType = CommandType.Text;

            using (SqlConnection cn = new SqlConnection(YellowstonePathology.Properties.Settings.Default.CurrentConnectionString))
            {
                cn.Open();
                cmd.Connection = cn;
                using (SqlDataReader dr = cmd.ExecuteReader())
                {
                    while (dr.Read())
                    {
                        YellowstonePathology.Business.ReportDistribution.Model.TestOrderReportDistribution testOrderReportDistribution = new YellowstonePathology.Business.ReportDistribution.Model.TestOrderReportDistribution();
                        YellowstonePathology.Business.Persistence.SqlDataReaderPropertyWriter sqlDataReaderPropertyWriter = new Persistence.SqlDataReaderPropertyWriter(testOrderReportDistribution, dr);
                        sqlDataReaderPropertyWriter.WriteProperties();
                        result.Add(testOrderReportDistribution);
                    }
                }
            }
            return result;
        }
Пример #20
0
        public static List<YellowstonePathology.Business.ReportDistribution.Model.TestOrderReportDistribution> GetUnscheduledDistribution()
        {
            List<YellowstonePathology.Business.ReportDistribution.Model.TestOrderReportDistribution> result = new List<YellowstonePathology.Business.ReportDistribution.Model.TestOrderReportDistribution>();
            SqlCommand cmd = new SqlCommand();
            cmd.CommandText = "Select * from tblTestOrderReportDistribution tor	join tblPanelSetOrder pso on tor.ReportNo = pso.ReportNo where tor.[Distributed] = 0 and tor.ScheduledDistributionTime is null and pso.Final = 1 and pso.Distribute = 1 and pso.HoldDistribution = 0";
            cmd.CommandType = CommandType.Text;

            using (SqlConnection cn = new SqlConnection(YellowstonePathology.Properties.Settings.Default.CurrentConnectionString))
            {
                cn.Open();
                cmd.Connection = cn;
                using (SqlDataReader dr = cmd.ExecuteReader())
                {
                    while (dr.Read())
                    {
                        YellowstonePathology.Business.ReportDistribution.Model.TestOrderReportDistribution testOrderReportDistribution = new YellowstonePathology.Business.ReportDistribution.Model.TestOrderReportDistribution();
                        YellowstonePathology.Business.Persistence.SqlDataReaderPropertyWriter sqlDataReaderPropertyWriter = new Persistence.SqlDataReaderPropertyWriter(testOrderReportDistribution, dr);
                        sqlDataReaderPropertyWriter.WriteProperties();
                        result.Add(testOrderReportDistribution);
                    }
                }
            }
            return result;
        }
Пример #21
0
        public static List<YellowstonePathology.Business.ReportDistribution.Model.TestOrderReportDistribution> GetUnscheduledDistribution(string reportNo)
        {
            List<YellowstonePathology.Business.ReportDistribution.Model.TestOrderReportDistribution> result = new List<YellowstonePathology.Business.ReportDistribution.Model.TestOrderReportDistribution>();
            SqlCommand cmd = new SqlCommand();
            cmd.CommandText = "Select * from tblTestOrderReportDistribution where [Distributed] = 0 and ScheduledDistributionTime is null and ReportNo = @ReportNo";
            cmd.Parameters.Add("@ReportNo", SqlDbType.VarChar).Value = reportNo;
            cmd.CommandType = CommandType.Text;

            using (SqlConnection cn = new SqlConnection(YellowstonePathology.Properties.Settings.Default.CurrentConnectionString))
            {
                cn.Open();
                cmd.Connection = cn;
                using (SqlDataReader dr = cmd.ExecuteReader())
                {
                    while (dr.Read())
                    {
                        YellowstonePathology.Business.ReportDistribution.Model.TestOrderReportDistribution testOrderReportDistribution = new YellowstonePathology.Business.ReportDistribution.Model.TestOrderReportDistribution();
                        YellowstonePathology.Business.Persistence.SqlDataReaderPropertyWriter sqlDataReaderPropertyWriter = new Persistence.SqlDataReaderPropertyWriter(testOrderReportDistribution, dr);
                        sqlDataReaderPropertyWriter.WriteProperties();
                        result.Add(testOrderReportDistribution);
                    }
                }
            }
            return result;
        }
 private void AddTestOrderReportDistribution(YellowstonePathology.Business.Test.PanelSetOrder panelSetOrder, int physicianId, string physicianName, int clientId, string clientName, string distributionType, string faxNumber, bool longDistance)
 {
     string testOrderReportDistributionId = MongoDB.Bson.ObjectId.GenerateNewId().ToString();
     YellowstonePathology.Business.ReportDistribution.Model.TestOrderReportDistribution testOrderReportDistribution =
         new YellowstonePathology.Business.ReportDistribution.Model.TestOrderReportDistribution(testOrderReportDistributionId, testOrderReportDistributionId, panelSetOrder.ReportNo, physicianId, physicianName,
             clientId, clientName, distributionType, faxNumber, longDistance);
     panelSetOrder.TestOrderReportDistributionCollection.Add(testOrderReportDistribution);
 }
 public TestOrderReportDistributionReturnEventArgs(YellowstonePathology.Business.ReportDistribution.Model.TestOrderReportDistribution testOrderReportDistribution)
 {
     this.m_TestOrderReportDistribution = testOrderReportDistribution;
 }