Ejemplo n.º 1
0
        public LockedCaseDialog()
        {
            this.m_LockItemCollection = YellowstonePathology.Business.Gateway.AccessionOrderGateway.GetLockedAccessionOrders();
            InitializeComponent();

            DataContext = this;
        }
Ejemplo n.º 2
0
        public LockedCaseDialog()
        {
            this.m_LockItemCollection = YellowstonePathology.Business.Gateway.AccessionOrderGateway.GetLockedAccessionOrders();
            InitializeComponent();

            DataContext = this;
        }
Ejemplo n.º 3
0
        private void ButtonClearLock_Click(object sender, RoutedEventArgs e)
        {
            if (this.ListViewLockedAccessionOrders.SelectedItem != null)
            {
                MessageBoxResult result = MessageBox.Show("Clearing a lock may cause data loss.  Are you sure you want to unlock this case?", "Possible data loss", MessageBoxButton.YesNo, MessageBoxImage.Exclamation);
                {
                    foreach (YellowstonePathology.Business.Domain.LockItem lockItem in this.ListViewLockedAccessionOrders.SelectedItems)
                    {
                        YellowstonePathology.Business.Test.AccessionOrder accessionOrder = YellowstonePathology.Business.Persistence.DocumentGateway.Instance.PullAccessionOrder(lockItem.KeyString, this);

                        if (accessionOrder.IsLockAquiredByMe == false)
                        {
                            accessionOrder.ReleaseLock();
                            YellowstonePathology.Business.Persistence.DocumentGateway.Instance.Push(this);
                        }
                    }
                    this.m_LockItemCollection = YellowstonePathology.Business.Gateway.AccessionOrderGateway.GetLockedAccessionOrders();
                    this.NotifyPropertyChanged(string.Empty);
                }
            }
        }
Ejemplo n.º 4
0
 private void ButtonRefresh_Click(object sender, RoutedEventArgs e)
 {
     this.m_LockItemCollection = YellowstonePathology.Business.Gateway.AccessionOrderGateway.GetLockedAccessionOrders();
     this.NotifyPropertyChanged(string.Empty);
 }
Ejemplo n.º 5
0
        private void ButtonClearLock_Click(object sender, RoutedEventArgs e)
        {
            if(this.ListViewLockedAccessionOrders.SelectedItem != null)
            {
                MessageBoxResult result = MessageBox.Show("Clearing a lock may cause data loss.  Are you sure you want to unlock this case?", "Possible data loss", MessageBoxButton.YesNo, MessageBoxImage.Exclamation);
                {
                    foreach(YellowstonePathology.Business.Domain.LockItem lockItem in this.ListViewLockedAccessionOrders.SelectedItems)
                    {
                        YellowstonePathology.Business.Test.AccessionOrder accessionOrder = YellowstonePathology.Business.Persistence.DocumentGateway.Instance.PullAccessionOrder(lockItem.KeyString, this);

                        if (accessionOrder.IsLockAquiredByMe == false)
                        {
                            accessionOrder.ReleaseLock();
                            YellowstonePathology.Business.Persistence.DocumentGateway.Instance.Push(this);
                        }
                    }
                    this.m_LockItemCollection = YellowstonePathology.Business.Gateway.AccessionOrderGateway.GetLockedAccessionOrders();
                    this.NotifyPropertyChanged(string.Empty);
                }
            }
        }
Ejemplo n.º 6
0
 private void ButtonRefresh_Click(object sender, RoutedEventArgs e)
 {
     this.m_LockItemCollection = YellowstonePathology.Business.Gateway.AccessionOrderGateway.GetLockedAccessionOrders();
     this.NotifyPropertyChanged(string.Empty);
 }