Exemple #1
0
        public void Sync(DataTable dataTable, string reportNo)
        {
            this.RemoveDeleted(dataTable);
            DataTableReader dataTableReader = new DataTableReader(dataTable);

            while (dataTableReader.Read())
            {
                string flowMarkerId   = dataTableReader["FlowMarkerId"].ToString();
                string markerReportNo = dataTableReader["ReportNo"].ToString();

                FlowMarkerItem flowMarkerItem = null;

                if (this.Exists(flowMarkerId) == true)
                {
                    flowMarkerItem = this.Get(flowMarkerId);
                }
                else if (reportNo == markerReportNo)
                {
                    flowMarkerItem = new FlowMarkerItem();
                    this.Add(flowMarkerItem);
                }

                if (flowMarkerItem != null)
                {
                    YellowstonePathology.Business.Persistence.SqlDataTableReaderPropertyWriter sqlDataTableReaderPropertyWriter = new Persistence.SqlDataTableReaderPropertyWriter(flowMarkerItem, dataTableReader);
                    sqlDataTableReaderPropertyWriter.WriteProperties();
                }
            }
        }
Exemple #2
0
        public YellowstonePathology.Business.Flow.FlowMarkerItem GetNextItem(string reportNo, string name, int cellPopulationId, string cellPopulationOfInterest, string panelName)
        {
            string         flowMarkerId = this.GetNextId(reportNo);
            string         objectId     = MongoDB.Bson.ObjectId.GenerateNewId().ToString();
            FlowMarkerItem flowMarker   = new FlowMarkerItem(flowMarkerId, objectId, reportNo, name, cellPopulationId, cellPopulationOfInterest, panelName);

            return(flowMarker);
        }
        public YellowstonePathology.Business.Flow.FlowMarkerItem GetNextItem(string reportNo, string name)
        {
            string         flowMarkerId = this.GetNextId(reportNo);
            string         objectId     = MongoDB.Bson.ObjectId.GenerateNewId().ToString();
            FlowMarkerItem flowMarker   = new FlowMarkerItem(flowMarkerId, objectId, reportNo, name);

            return(flowMarker);
        }
 public void Insert(FlowMarkerCollection panelMarkers, string reportNo)
 {
     foreach (FlowMarkerItem panelMarkerItem in panelMarkers)
     {
         FlowMarkerItem flowMarker = this.GetNextItem(reportNo, panelMarkerItem.Name);
         flowMarker.Intensity      = panelMarkerItem.Intensity;
         flowMarker.Interpretation = panelMarkerItem.Interpretation;
         flowMarker.MarkerUsed     = panelMarkerItem.MarkerUsed;
         this.Add(flowMarker);
     }
 }
Exemple #5
0
 public void Insert(FlowMarkerCollection panelMarkers, string reportNo, int cellPopulationId, string cellPopulationOfInterest, string panelName)
 {
     foreach (FlowMarkerItem panelMarkerItem in panelMarkers)
     {
         FlowMarkerItem flowMarker = this.GetNextItem(reportNo, panelMarkerItem.Name, cellPopulationId, cellPopulationOfInterest, panelName);
         flowMarker.Intensity                = panelMarkerItem.Intensity;
         flowMarker.Interpretation           = panelMarkerItem.Interpretation;
         flowMarker.MarkerUsed               = panelMarkerItem.MarkerUsed;
         flowMarker.CellPopulationId         = cellPopulationId;
         flowMarker.CellPopulationOfInterest = cellPopulationOfInterest;
         flowMarker.PanelName                = panelName;
         this.Add(flowMarker);
     }
     this.SetCellPopulationsOfInterest();
 }
Exemple #6
0
        public void Add(string reportNo, MarkerItem item, int cellPopulationId, string cellPopulationOfInterest, string panelName)
        {
            FlowMarkerItem flowMarker = this.GetNextItem(reportNo, item.MarkerName, cellPopulationId, cellPopulationOfInterest, panelName);

            this.Add(flowMarker);
        }
        public void Add(string reportNo, MarkerItem item)
        {
            FlowMarkerItem flowMarker = this.GetNextItem(reportNo, item.MarkerName);

            this.Add(flowMarker);
        }