public void LeukemiaLymphomaSignoutPage_Loaded(object sender, RoutedEventArgs e) { UserInteractionMonitor.Instance.Register(this); YellowstonePathology.YpiConnect.Proxy.FlowSignoutServiceProxy flowSignoutServiceProxy = new Proxy.FlowSignoutServiceProxy(); XElement reportDocument = flowSignoutServiceProxy.GetLeukemiaLymphomaReportDocument(this.m_MasterAccessionNo); YellowstonePathology.Document.Result.Data.LeukemiaLymphomaReportData leukemialymphomaReportData = new Document.Result.Data.LeukemiaLymphomaReportData(this.m_ReportNo, reportDocument); YellowstonePathology.Document.Result.Xps.LeukemiaLymphomaReport leukemiaLymphomaReport = new Document.Result.Xps.LeukemiaLymphomaReport(leukemialymphomaReportData); System.Windows.Controls.DocumentViewer documentViewer = new System.Windows.Controls.DocumentViewer(); documentViewer.Document = leukemiaLymphomaReport.FixedDocument; this.DocumentViewerControl.Content = documentViewer; }
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); } }
public static bool Save(YellowstonePathology.YpiConnect.Contract.Flow.FlowAccessionCollection flowAccessionCollection) { bool result = true; YellowstonePathology.YpiConnect.Contract.Flow.FlowAccessionSubmitter submitter = new Contract.Flow.FlowAccessionSubmitter(); submitter.BeginSubmit(flowAccessionCollection, Business.Domain.Persistence.PropertyReaderFilterEnum.External); if (submitter.HasChanges() == true) { Mouse.OverrideCursor = Cursors.Wait; YellowstonePathology.YpiConnect.Proxy.FlowSignoutServiceProxy proxy = new Proxy.FlowSignoutServiceProxy(); YellowstonePathology.Business.Rules.MethodResult methodResult = proxy.SubmitChanges(submitter); if (methodResult.Success == true) { submitter.EndSubmit(); } else { result = false; MessageBox.Show(methodResult.Message); } Mouse.OverrideCursor = null; } return(result); }
private void GetMarkerCollection() { YellowstonePathology.YpiConnect.Proxy.FlowSignoutServiceProxy proxy = new Proxy.FlowSignoutServiceProxy(); this.m_MarkerCollection = proxy.GetMarkers(this.m_FlowAccession.PanelSetOrderCollection[0].ReportNo); }