private void ShowCaseNoteDetailsPage(YellowstonePathology.Business.Domain.OrderCommentLog orderCommentLog) { CaseNoteDetailsPage caseNoteDetailsPage = new CaseNoteDetailsPage(orderCommentLog); caseNoteDetailsPage.Return += new CaseNoteDetailsPage.ReturnEventHandler(CaseNoteDetailsPage_Return); this.m_PageNavigator.Navigate(caseNoteDetailsPage); }
public CaseNoteDetailsPage(YellowstonePathology.Business.Domain.OrderCommentLog orderCommentLog) { this.m_OrderCommentLog = orderCommentLog; InitializeComponent(); DataContext = this; this.Loaded += CaseNoteDetailsPage_Loaded; }
private void ButtonEditComment_Click(object sender, RoutedEventArgs e) { if (SelectedOrderCommentLog != null) { YellowstonePathology.Business.Domain.OrderCommentLog orderCommentLog = YellowstonePathology.Business.Persistence.DocumentGateway.Instance.PullOrderCommentLog(this.SelectedOrderCommentLog.OrderCommentLogId, this); this.m_OrderCommentLogCollection[this.ListViewOrderCommentList.SelectedIndex] = orderCommentLog; this.ShowCaseNoteDetailsPage(orderCommentLog); } }
public YellowstonePathology.Business.Domain.OrderCommentLog CreateOrderCommentLog(YellowstonePathology.Business.Interface.IOrder order, YellowstonePathology.Business.Interface.IOrderComment orderComment) { string objectId = MongoDB.Bson.ObjectId.GenerateNewId().ToString(); this.m_OrderCommentLog = new YellowstonePathology.Business.Domain.OrderCommentLog(objectId); this.m_OrderCommentLog.SetDefaultValues(this.m_SystemIdentity.User); this.m_OrderCommentLog.ClientId = order.ClientId; this.m_OrderCommentLog.MasterAccessionNo = order.MasterAccessionNo; this.m_OrderCommentLog.SpecimenLogId = order.SpecimenLogId; this.m_OrderCommentLog.FromEvent(orderComment); YellowstonePathology.Business.Persistence.DocumentGateway.Instance.InsertDocument(this.m_OrderCommentLog, this); return this.m_OrderCommentLog; }
public YellowstonePathology.Business.Domain.OrderCommentLog CreateOrderCommentLog(YellowstonePathology.Business.Interface.IOrder order, YellowstonePathology.Business.Interface.IOrderComment orderComment) { string objectId = MongoDB.Bson.ObjectId.GenerateNewId().ToString(); this.m_OrderCommentLog = new YellowstonePathology.Business.Domain.OrderCommentLog(objectId); this.m_OrderCommentLog.SetDefaultValues(this.m_SystemIdentity.User); this.m_OrderCommentLog.ClientId = order.ClientId; this.m_OrderCommentLog.MasterAccessionNo = order.MasterAccessionNo; this.m_OrderCommentLog.SpecimenLogId = order.SpecimenLogId; this.m_OrderCommentLog.FromEvent(orderComment); YellowstonePathology.Business.Persistence.DocumentGateway.Instance.InsertDocument(this.m_OrderCommentLog, this); return(this.m_OrderCommentLog); }
private void ButtonViewEvent_Click(object sender, RoutedEventArgs e) { if (this.ListViewLabEventLog.SelectedItem != null) { YellowstonePathology.Business.Domain.OrderCommentLog orderCommentLog = (YellowstonePathology.Business.Domain.OrderCommentLog) this.ListViewLabEventLog.SelectedItem; YellowstonePathology.UI.Login.LabEventLogEntryDialog labEventLogEntryDialog = new YellowstonePathology.UI.Login.LabEventLogEntryDialog(this.m_SystemIdentity); labEventLogEntryDialog.SetEventLog(orderCommentLog); labEventLogEntryDialog.ShowDialog(); } else { MessageBox.Show("Please select an event log item to view."); } }
public EventEntryPage(YellowstonePathology.Business.Domain.OrderCommentLog orderCommentLog) { this.m_OrderCommentLog = orderCommentLog; this.m_Comments = new List <string>(); this.m_Comments.Add("Typographical error during accessioning."); this.m_Comments.Add("Typographical error during verification."); this.m_Comments.Add("The cow jumped over the moon."); this.m_Comments.Add("The pencil fell out of my hand."); this.m_Comments.Add("It's Halloween and I went crazy."); InitializeComponent(); this.DataContext = this; this.NotifyPropertyChanged(""); }
public void LogOrderComment(YellowstonePathology.Business.Interface.IOrderComment orderComment) { if (this.m_CurrentOrder == null) { MessageBox.Show("An case must be selected to create an event", "Select a case"); return; } YellowstonePathology.UI.Login.LabEventLogEntryDialog labEventLogEntryDialog = new YellowstonePathology.UI.Login.LabEventLogEntryDialog(this.m_SystemIdentity); YellowstonePathology.Business.Domain.OrderCommentLog orderCommentLog = labEventLogEntryDialog.CreateOrderCommentLog(this.m_CurrentOrder, orderComment); this.m_OrderCommentLog.Add(orderCommentLog); labEventLogEntryDialog.ShowDialog(); this.OrderCommentLog = YellowstonePathology.Business.Gateway.OrderCommentGateway.GetOrderCommentsForSpecimenLogId(this.m_CurrentOrder.SpecimenLogId); this.NotifyPropertyChanged("LabEventLogHeader"); }
public void WriteKeys(YellowstonePathology.Business.Domain.OrderCommentLog orderCommentLog) { if (this.HasId(CaseNotesKeyNameEnum.MasterAccessionNo)) { orderCommentLog.MasterAccessionNo = this.GetId(CaseNotesKeyNameEnum.MasterAccessionNo); } if (this.HasId(CaseNotesKeyNameEnum.ClientOrderId)) { orderCommentLog.ClientOrderId = this.GetId(CaseNotesKeyNameEnum.ClientOrderId); } if (this.HasId(CaseNotesKeyNameEnum.ContainerId)) { orderCommentLog.ContainerId = this.GetId(CaseNotesKeyNameEnum.ContainerId); } }
public void SetEventLog(YellowstonePathology.Business.Domain.OrderCommentLog orderCommentLog) { this.m_OrderCommentLog = orderCommentLog; }
public CaseNoteDetailsPage(YellowstonePathology.Business.Domain.OrderCommentLog orderCommentLog) { this.m_OrderCommentLog = orderCommentLog; InitializeComponent(); DataContext = this; }