Пример #1
0
        public void AddMarkerPanel(int panelId, string cellPopulationOfInterest, string panelName)
        {
            int nextCellPopulationId = this.PanelSetOrderLeukemiaLymphoma.FlowMarkerCollection.GetNextCellPopulationId();

            Flow.FlowMarkerCollection panelCollection = Gateway.FlowGateway.GetFlowMarkerCollectionByPanelId(this.PanelSetOrderLeukemiaLymphoma.ReportNo, panelId);
            this.PanelSetOrderLeukemiaLymphoma.FlowMarkerCollection.Insert(panelCollection, this.PanelSetOrderLeukemiaLymphoma.ReportNo, nextCellPopulationId, cellPopulationOfInterest, panelName);
        }
Пример #2
0
        public static Flow.FlowMarkerCollection GetFlowMarkerCollectionByPanelId(string reportNo, int panelId)
        {
            Flow.FlowMarkerCollection result = new Flow.FlowMarkerCollection();
            MySqlCommand cmd = new MySqlCommand();

            cmd.CommandType = CommandType.Text;
            cmd.CommandText = "Select @ReportNo as ReportNo, mp.MarkerName as Name, mp.Intensity, mp.Interpretation, 'true' as MarkerUsed " +
                              "from tblFlowMarkerPanel mp left outer join tblMarkers m on mp.MarkerName = m.MarkerName where PanelId = @PanelId " +
                              "order by m.OrderFlag, m.MarkerName;";
            cmd.Parameters.AddWithValue("@ReportNo", reportNo);
            cmd.Parameters.AddWithValue("@PanelId", panelId);

            using (MySqlConnection cn = new MySqlConnection(YellowstonePathology.Properties.Settings.Default.CurrentConnectionString))
            {
                cn.Open();
                cmd.Connection = cn;
                using (MySqlDataReader dr = cmd.ExecuteReader())
                {
                    while (dr.Read())
                    {
                        Flow.FlowMarkerItem flowMarkerItem = new Flow.FlowMarkerItem();
                        Persistence.SqlDataReaderPropertyWriter sqlDataReaderPropertyWriter = new Persistence.SqlDataReaderPropertyWriter(flowMarkerItem, dr);
                        sqlDataReaderPropertyWriter.WriteProperties();
                        result.Add(flowMarkerItem);
                    }
                }
            }
            return(result);
        }
 public PanelSetOrderLeukemiaLymphoma(string masterAccessionNo, string reportNo, string objectId,
                                      YellowstonePathology.Business.PanelSet.Model.PanelSet panelSet,
                                      YellowstonePathology.Business.Interface.IOrderTarget orderTarget,
                                      bool distribute)
     : base(masterAccessionNo, reportNo, objectId, panelSet, orderTarget, distribute)
 {
     this.m_FlowMarkerCollection = new Flow.FlowMarkerCollection();
 }
Пример #4
0
        public void SetMarkerPanel(int panelId)
        {
            this.PanelSetOrderLeukemiaLymphoma.FlowMarkerCollection.Clear();

            Flow.FlowMarkerCollection panelCollection = Gateway.FlowGateway.GetFlowMarkerCollectionByPanelId(this.PanelSetOrderLeukemiaLymphoma.ReportNo, panelId);
            this.PanelSetOrderLeukemiaLymphoma.FlowMarkerCollection.Insert(panelCollection, this.PanelSetOrderLeukemiaLymphoma.ReportNo);
            this.Save(false);
        }
        public PanelSetOrderLeukemiaLymphoma(string masterAccessionNo, string reportNo, string objectId, 
            YellowstonePathology.Business.PanelSet.Model.PanelSet panelSet,
            YellowstonePathology.Business.Interface.IOrderTarget orderTarget,
			bool distribute)
            : base(masterAccessionNo, reportNo, objectId, panelSet, orderTarget, distribute)
        {
            YellowstonePathology.Business.PanelSet.Model.FlowCytometry.PanelSetFlowCytometry panelSetFlowCytometry = (YellowstonePathology.Business.PanelSet.Model.FlowCytometry.PanelSetFlowCytometry)panelSet;
            this.m_FlowMarkerCollection = new Flow.FlowMarkerCollection();
        }
Пример #6
0
 public void SetCurrentMarkerPanel(int cellPopulationId)
 {
     this.m_CurrentMarkerPanel = new FlowMarkerCollection();
     foreach (FlowMarkerItem item in this)
     {
         if (item.CellPopulationId == cellPopulationId)
         {
             this.m_CurrentMarkerPanel.Add(item);
         }
     }
     this.NotifyPropertyChanged("CurrentMarkerPanel");
 }
Пример #7
0
 private static Flow.FlowMarkerCollection BuildFlowMarkerCollection(XElement sourceElement)
 {
     Flow.FlowMarkerCollection flowMarkerCollection = new Flow.FlowMarkerCollection();
     if (sourceElement != null)
     {
         foreach (XElement flowMarkerItemElement in sourceElement.Elements("FlowMarkerItem"))
         {
             Flow.FlowMarkerItem flowMarkerItem = BuildFlowMarkerItem(flowMarkerItemElement);
             flowMarkerCollection.Add(flowMarkerItem);
         }
     }
     return(flowMarkerCollection);
 }
Пример #8
0
        public void SetFirstMarkerPanelIfExists()
        {
            this.m_CurrentMarkerPanel = new FlowMarkerCollection();
            Nullable <int> firstId = this.m_CellPopulationsOfInterest.GetFirstId();

            if (firstId.HasValue == true)
            {
                foreach (FlowMarkerItem item in this)
                {
                    if (item.CellPopulationId == firstId)
                    {
                        this.m_CurrentMarkerPanel.Add(item);
                    }
                }
            }
            this.NotifyPropertyChanged("CurrentMarkerPanel");
        }
Пример #9
0
 public PanelSetOrderLeukemiaLymphoma()
 {
     this.m_FlowMarkerCollection = new Flow.FlowMarkerCollection();
 }
 public PanelSetOrderLeukemiaLymphoma()
 {
     this.m_FlowMarkerCollection = new Flow.FlowMarkerCollection();
 }
Пример #11
0
 private static Flow.FlowMarkerCollection BuildFlowMarkerCollection(XElement sourceElement)
 {
     Flow.FlowMarkerCollection flowMarkerCollection = new Flow.FlowMarkerCollection();
     if (sourceElement != null)
     {
         foreach (XElement flowMarkerItemElement in sourceElement.Elements("FlowMarkerItem"))
         {
             Flow.FlowMarkerItem flowMarkerItem = BuildFlowMarkerItem(flowMarkerItemElement);
             flowMarkerCollection.Add(flowMarkerItem);
         }
     }
     return flowMarkerCollection;
 }