public NeogenomicsResultAccessionPage(YellowstonePathology.Business.NeogenomicsResult neogenomicsResult)
        {
            this.m_NeogenomicsResult = neogenomicsResult;

            List<object> parameterList = new List<object>();
            parameterList.Add(neogenomicsResult.PLastName);
            parameterList.Add(neogenomicsResult.PFirstName);

            this.m_ReportSearchList = YellowstonePathology.Business.Gateway.ReportSearchGateway.GetReportSearchListByPatientName(parameterList);
            this.NotifyPropertyChanged("ReportSearchList");

            InitializeComponent();
            this.DataContext = this;
        }
示例#2
0
        public NeogenomicsResultAccessionPage(YellowstonePathology.Business.NeogenomicsResult neogenomicsResult)
        {
            this.m_NeogenomicsResult = neogenomicsResult;

            List <object> parameterList = new List <object>();

            parameterList.Add(neogenomicsResult.PLastName);
            parameterList.Add(neogenomicsResult.PFirstName);

            this.m_ReportSearchList = YellowstonePathology.Business.Gateway.ReportSearchGateway.GetReportSearchListByPatientName(parameterList);
            this.NotifyPropertyChanged("ReportSearchList");

            InitializeComponent();
            this.DataContext = this;
        }
示例#3
0
        public static YellowstonePathology.Business.NeogenomicsResultCollection GetNeogenomicsResultCollection()
        {
            YellowstonePathology.Business.NeogenomicsResultCollection result = new YellowstonePathology.Business.NeogenomicsResultCollection();

            YellowstonePathology.Business.Mongo.Server transferServer = new Business.Mongo.TestServer(YellowstonePathology.Business.Mongo.MongoTestServer.LISDatabaseName);
            MongoCollection collection = transferServer.Database.GetCollection <BsonDocument>("NeogenomicsResult");
            MongoCursor     cursor     = collection.FindAllAs <BsonDocument>().SetSortOrder(SortBy.Descending("DateResultReceived"));

            foreach (BsonDocument bsonDocument in cursor)
            {
                YellowstonePathology.Business.NeogenomicsResult neogenomicsResult = new YellowstonePathology.Business.NeogenomicsResult();
                YellowstonePathology.Business.Mongo.BSONPropertyWriter.Write(bsonDocument, neogenomicsResult);
                result.Add(neogenomicsResult);
            }
            return(result);
        }
示例#4
0
 public NeogenomicsResultReturnEventArgs(YellowstonePathology.Business.NeogenomicsResult neogenomicsResult)
 {
     this.m_NeogenomicsResult = neogenomicsResult;
 }
        public static YellowstonePathology.Business.NeogenomicsResultCollection GetNeogenomicsResultCollection()
        {
            #if MONGO
            return AccessionOrderGatewayMongo.GetNeogenomicsResultCollection();
            #else
            YellowstonePathology.Business.NeogenomicsResultCollection result = new YellowstonePathology.Business.NeogenomicsResultCollection();
            SqlCommand cmd = new SqlCommand();
            cmd.CommandText = "Select * from tblNeogenomicsResult order by DateResultReceived desc";
            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.NeogenomicsResult neogenomicsResult = new YellowstonePathology.Business.NeogenomicsResult();
                        YellowstonePathology.Business.Persistence.SqlDataReaderPropertyWriter sqlDataReaderPropertyWriter = new Persistence.SqlDataReaderPropertyWriter(neogenomicsResult, dr);
                        sqlDataReaderPropertyWriter.WriteProperties();
                        result.Add(neogenomicsResult);
                    }
                }
            }
            return result;
            #endif
        }
 public NeogenomicsResultReturnEventArgs(YellowstonePathology.Business.NeogenomicsResult neogenomicsResult)
 {
     this.m_NeogenomicsResult = neogenomicsResult;
 }