예제 #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();
                }
            }
        }
예제 #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);
        }
예제 #3
0
        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);
        }
예제 #4
0
 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);
     }
 }
예제 #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();
 }
예제 #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);
        }
예제 #7
0
        public void Add(string reportNo, MarkerItem item)
        {
            FlowMarkerItem flowMarker = this.GetNextItem(reportNo, item.MarkerName);

            this.Add(flowMarker);
        }