예제 #1
0
        public LeukemiaLymphomaCommentDialog(YellowstonePathology.YpiConnect.Contract.Flow.FlowCommentCollection flowCommentCollection)
        {
            this.m_FlowCommentCollection = flowCommentCollection;

            InitializeComponent();

            this.DataContext = m_FlowCommentCollection;
        }
        public LeukemiaLymphomaCommentDialog(YellowstonePathology.YpiConnect.Contract.Flow.FlowCommentCollection flowCommentCollection)
        {
            this.m_FlowCommentCollection = flowCommentCollection;

            InitializeComponent();

            this.DataContext = m_FlowCommentCollection;
        }
        public LeukemiaLymphomaResultPage(YellowstonePathology.YpiConnect.Contract.Flow.FlowAccessionCollection flowAccessionCollection, YellowstonePathology.YpiConnect.Contract.Flow.FlowCommentCollection flowCommentCollection)
        {
            this.m_FlowAccessionCollection = flowAccessionCollection;
            this.m_FlowCommentCollection   = flowCommentCollection;

            InitializeComponent();
            this.DataContext = this;

            Loaded += new RoutedEventHandler(LeukemiaLymphomaResultPage_Loaded);
        }
예제 #4
0
        public LeukemiaLymphomaSignoutPage(string masterAccessionNo)
        {
            this.m_FlowSignoutServiceProxy = new Proxy.FlowSignoutServiceProxy();
            this.m_FlowAccessionCollection = this.m_FlowSignoutServiceProxy.GetFlowAccessionCollection(masterAccessionNo);
            this.m_FlowAccessionCollection[0].SetOriginalValues();
            YellowstonePathology.Business.Domain.Persistence.SerializationHelper.SetTrackingState(this.m_FlowAccessionCollection);
            this.m_FlowCommentCollection = new Contract.Flow.FlowCommentCollection();
            YellowstonePathology.Business.Domain.Persistence.SerializationHelper.SetTrackingState(this.m_FlowCommentCollection);

            YellowstonePathology.YpiConnect.Proxy.WebServiceAccountServiceProxy webServiceAccountServiceProxy = new Proxy.WebServiceAccountServiceProxy();
            this.m_WebServiceAccountCollection = webServiceAccountServiceProxy.GetWebServiceAccountCollectionByFacilityId(YellowstonePathology.YpiConnect.Contract.Identity.ApplicationIdentity.Instance.WebServiceAccount.FacilityId);

            InitializeComponent();

            this.DataContext = this;
            this.Loaded     += new RoutedEventHandler(LeukemiaLymphomaSignoutPage_Loaded);
        }
예제 #5
0
        private YellowstonePathology.YpiConnect.Contract.Flow.FlowCommentCollection BuildFlowCommentCollection(SqlCommand cmd)
        {
            YellowstonePathology.YpiConnect.Contract.Flow.FlowCommentCollection flowCommentCollection = new YellowstonePathology.YpiConnect.Contract.Flow.FlowCommentCollection();

            using (SqlConnection cn = new SqlConnection(YpiConnect.Service.Properties.Settings.Default.ServerSqlConnectionString))
            {
                cn.Open();
                cmd.Connection = cn;
                using (SqlDataReader dr = cmd.ExecuteReader())
                {
                    while (dr.Read())
                    {
                        YellowstonePathology.YpiConnect.Contract.Flow.FlowComment flowComment = new Contract.Flow.FlowComment();
                        YellowstonePathology.Business.Domain.Persistence.DataReaderPropertyWriter propertyWriter = new Business.Domain.Persistence.DataReaderPropertyWriter(dr);
                        flowComment.WriteProperties(propertyWriter);
                        flowCommentCollection.Add(flowComment);
                    }
                }
            }

            return(flowCommentCollection);
        }
        public void ButtonAppendComment_Click(object sender, RoutedEventArgs args)
        {
            if (this.m_FlowCommentCollection.Count == 0)
            {
                YellowstonePathology.YpiConnect.Proxy.FlowSignoutServiceProxy       flowSignoutServiceProxy = new Proxy.FlowSignoutServiceProxy();
                YellowstonePathology.YpiConnect.Contract.Flow.FlowCommentCollection flowCommentCollection   = flowSignoutServiceProxy.GetFlowComments();
                foreach (YellowstonePathology.YpiConnect.Contract.Flow.FlowComment flowComment in flowCommentCollection)
                {
                    this.m_FlowCommentCollection.Add(flowComment);
                }
            }

            LeukemiaLymphomaCommentDialog leukemiaLymphomaCommentDialog = new LeukemiaLymphomaCommentDialog(this.m_FlowCommentCollection);
            bool?result = leukemiaLymphomaCommentDialog.ShowDialog();

            if (result.HasValue && result.Value == true)
            {
                List <YellowstonePathology.Shared.Interface.IFlowMarker>  flowMarkers = this.PanelSetOrderLeukemiaLymphoma.FlowMarkerCollection.ToList();
                YellowstonePathology.Shared.Helper.FlowCommentHelper      comment     = new YellowstonePathology.Shared.Helper.FlowCommentHelper(this.m_FlowAccessionCollection[0].SpecimenOrderCollection[0].Description, this.PanelSetOrderLeukemiaLymphoma, flowMarkers);
                YellowstonePathology.YpiConnect.Contract.Flow.FlowComment item        = leukemiaLymphomaCommentDialog.SelectedComment;
                comment.AddComment(item.Category, item.Impression, item.Comment);
            }
        }
예제 #7
0
 public YellowstonePathology.YpiConnect.Contract.Flow.FlowCommentCollection GetFlowComments()
 {
     YellowstonePathology.YpiConnect.Contract.Flow.FlowCommentCollection flowCommentCollection = this.m_FlowSignoutChannel.GetFlowComments();
     return(flowCommentCollection);
 }
예제 #8
0
        private YellowstonePathology.YpiConnect.Contract.Flow.FlowCommentCollection BuildFlowCommentCollection(SqlCommand cmd)
        {
            YellowstonePathology.YpiConnect.Contract.Flow.FlowCommentCollection flowCommentCollection = new YellowstonePathology.YpiConnect.Contract.Flow.FlowCommentCollection();

            using (SqlConnection cn = new SqlConnection(YpiConnect.Service.Properties.Settings.Default.ServerSqlConnectionString))
            {
                cn.Open();
                cmd.Connection = cn;
                using (SqlDataReader dr = cmd.ExecuteReader())
                {
                    while (dr.Read())
                    {
                        YellowstonePathology.YpiConnect.Contract.Flow.FlowComment flowComment = new Contract.Flow.FlowComment();
                        YellowstonePathology.Business.Domain.Persistence.DataReaderPropertyWriter propertyWriter = new Business.Domain.Persistence.DataReaderPropertyWriter(dr);
                        flowComment.WriteProperties(propertyWriter);
                        flowCommentCollection.Add(flowComment);
                    }
                }
            }

            return flowCommentCollection;
        }