示例#1
0
        private bool ShowTaskOrderPage(YellowstonePathology.Business.Test.TestOrderInfo testOrderInfo)
        {
            bool result = false;

            if (testOrderInfo.PanelSet.TaskCollection.Count != 0)
            {
                YellowstonePathology.Business.Task.Model.TaskOrder taskOrder = this.m_AccessionOrder.CreateTask(testOrderInfo);
                this.m_AccessionOrder.TaskOrderCollection.Add(taskOrder);

                TaskOrderPath taskOrderPath = new TaskOrderPath(this.m_AccessionOrder, taskOrder, this.m_PageNavigator, PageNavigationModeEnum.Inline);
                taskOrderPath.Next += new TaskOrderPath.NextEventHandler(TaskOrderPath_Next);
                taskOrderPath.Start();
                result = true;
            }

            return(result);
        }
示例#2
0
        private void ListViewTaskOrders_MouseDoubleClick(object sender, MouseButtonEventArgs e)
        {
            if (this.ListViewTaskOrders.SelectedItem != null)
            {
                YellowstonePathology.Business.Task.Model.TaskOrderView selectedTaskOrderView = (YellowstonePathology.Business.Task.Model.TaskOrderView) this.ListViewTaskOrders.SelectedItem;
                YellowstonePathology.Business.Test.AccessionOrder      accessionOrder        = YellowstonePathology.Business.Persistence.DocumentGateway.Instance.PullAccessionOrder(selectedTaskOrderView.TaskOrder.MasterAccessionNo, this.m_Writer);
                YellowstonePathology.Business.Task.Model.TaskOrder     taskOrder             = accessionOrder.TaskOrderCollection.GetTaskOrder(selectedTaskOrderView.TaskOrder.TaskOrderId);

                this.m_LoginPageWindow = new Login.Receiving.LoginPageWindow();

                YellowstonePathology.UI.Login.Receiving.TaskOrderPath taskOrderPath = new Login.Receiving.TaskOrderPath(accessionOrder, taskOrder, this.m_LoginPageWindow.PageNavigator, PageNavigationModeEnum.Standalone);
                taskOrderPath.Close += new Login.Receiving.TaskOrderPath.CloseEventHandler(TaskOrderPath_Close);
                taskOrderPath.Start();

                this.m_LoginPageWindow.ShowDialog();
                YellowstonePathology.Business.Persistence.DocumentGateway.Instance.Push(accessionOrder, this.m_Writer);
            }
        }
示例#3
0
        private void TileTasks_MouseUp(object sender, MouseButtonEventArgs e)
        {
            if (this.ListViewAccessionOrders.SelectedItem != null)
            {
                YellowstonePathology.Business.Search.ReportSearchItem reportSearchItem = (YellowstonePathology.Business.Search.ReportSearchItem) this.ListViewAccessionOrders.SelectedItem;

                YellowstonePathology.Business.Task.Model.TaskOrder taskOrder = this.m_LoginUI.AccessionOrder.TaskOrderCollection.GetTaskOrderByReportNo(reportSearchItem.ReportNo);

                if (taskOrder != null)
                {
                    this.m_LoginPageWindow = new LoginPageWindow();

                    YellowstonePathology.UI.Login.Receiving.TaskOrderPath taskOrderPath = new Receiving.TaskOrderPath(this.m_LoginUI.AccessionOrder, taskOrder, this.m_LoginPageWindow.PageNavigator, PageNavigationModeEnum.Standalone);
                    taskOrderPath.Close += new Receiving.TaskOrderPath.CloseEventHandler(TaskOrderPath_Close);
                    taskOrderPath.Start();
                    this.m_LoginPageWindow.ShowDialog();
                }
                else
                {
                    MessageBox.Show("There are no tasks for this case.");
                }
            }
        }
        private void TileTasks_MouseUp(object sender, MouseButtonEventArgs e)
        {
            if (this.ListViewAccessionOrders.SelectedItem != null)
            {
                YellowstonePathology.Business.Search.ReportSearchItem reportSearchItem = (YellowstonePathology.Business.Search.ReportSearchItem)this.ListViewAccessionOrders.SelectedItem;

                YellowstonePathology.Business.Task.Model.TaskOrder taskOrder = this.m_LoginUI.AccessionOrder.TaskOrderCollection.GetTaskOrderByReportNo(reportSearchItem.ReportNo);

                if (taskOrder != null)
                {
                    this.m_LoginPageWindow = new LoginPageWindow();

                    YellowstonePathology.UI.Login.Receiving.TaskOrderPath taskOrderPath = new Receiving.TaskOrderPath(this.m_LoginUI.AccessionOrder, taskOrder, this.m_LoginPageWindow.PageNavigator, PageNavigationModeEnum.Standalone);
                    taskOrderPath.Close += new Receiving.TaskOrderPath.CloseEventHandler(TaskOrderPath_Close);
                    taskOrderPath.Start();
                    this.m_LoginPageWindow.ShowDialog();
                }
                else
                {
                    MessageBox.Show("There are no tasks for this case.");
                }
            }
        }
示例#5
0
        private bool ShowTaskOrderPage(YellowstonePathology.Business.Test.TestOrderInfo testOrderInfo)
        {
            bool result = false;

            if (testOrderInfo.PanelSet.TaskCollection.Count != 0)
            {
                YellowstonePathology.Business.Task.Model.TaskOrder taskOrder = this.m_AccessionOrder.CreateTask(testOrderInfo);
                this.m_AccessionOrder.TaskOrderCollection.Add(taskOrder);

                TaskOrderPath taskOrderPath = new TaskOrderPath(this.m_AccessionOrder, taskOrder, this.m_PageNavigator, PageNavigationModeEnum.Inline);
                taskOrderPath.Next += new TaskOrderPath.NextEventHandler(TaskOrderPath_Next);
                taskOrderPath.Start();
                result = true;
            }

            return result;
        }
        private void ListViewTaskOrders_MouseDoubleClick(object sender, MouseButtonEventArgs e)
        {
            if (this.ListViewTaskOrders.SelectedItem != null)
            {
                YellowstonePathology.Business.Task.Model.TaskOrder selectedTaskOrder = (YellowstonePathology.Business.Task.Model.TaskOrder)this.ListViewTaskOrders.SelectedItem;
                YellowstonePathology.Business.Test.AccessionOrder accessionOrder = YellowstonePathology.Business.Persistence.DocumentGateway.Instance.PullAccessionOrder(selectedTaskOrder.MasterAccessionNo, this.m_Writer);
                YellowstonePathology.Business.Task.Model.TaskOrder taskOrder = accessionOrder.TaskOrderCollection.GetTaskOrder(selectedTaskOrder.TaskOrderId);

                this.m_LoginPageWindow = new Login.LoginPageWindow();

                YellowstonePathology.UI.Login.Receiving.TaskOrderPath taskOrderPath = new Login.Receiving.TaskOrderPath(accessionOrder, taskOrder, this.m_LoginPageWindow.PageNavigator, PageNavigationModeEnum.Standalone);
                taskOrderPath.Close += new Login.Receiving.TaskOrderPath.CloseEventHandler(TaskOrderPath_Close);
                taskOrderPath.Start();

                this.m_LoginPageWindow.ShowDialog();
                YellowstonePathology.Business.Persistence.DocumentGateway.Instance.Push(accessionOrder, this.m_Writer);
            }
        }