Пример #1
0
 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.");
     }
 }
Пример #2
0
        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 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");
        }
 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.");
     }
 }