public ContainerMatchingPage(YellowstonePathology.UI.Navigation.PageNavigator pageNavigator,
			YellowstonePathology.Business.ClientOrder.Model.ClientOrderDetail clientOrderDetail)
        {
            this.m_PageNavigator = pageNavigator;
            this.m_FixationTypeCollection = YellowstonePathology.Business.Specimen.Model.FixationType.GetFixationTypeCollection();

            if (string.IsNullOrEmpty(clientOrderDetail.SpecimenNumberMatchStatus) == true)
            {
                clientOrderDetail.SpecimenNumberMatchStatus = "Not Determined";
            }

            if (string.IsNullOrEmpty(clientOrderDetail.SpecimenDescriptionMatchStatus) == true)
            {
                clientOrderDetail.SpecimenDescriptionMatchStatus = "Not Determined";
            }

            this.m_ClientOrderMedia = new Business.ClientOrder.Model.ClientOrderMedia();
            this.m_ClientOrderMedia.SpecimenNumberMatchStatus = clientOrderDetail.SpecimenNumberMatchStatus;
            this.m_ClientOrderMedia.SpecimenDescriptionMatchStatus = clientOrderDetail.SpecimenDescriptionMatchStatus;
            this.m_ClientOrderDetail = clientOrderDetail;

            InitializeComponent();

            this.DataContext = this;
        }
        public ContainerMatchingPage(YellowstonePathology.UI.Navigation.PageNavigator pageNavigator,
                                     YellowstonePathology.Business.ClientOrder.Model.ClientOrderDetail clientOrderDetail)
        {
            this.m_PageNavigator          = pageNavigator;
            this.m_FixationTypeCollection = YellowstonePathology.Business.Specimen.Model.FixationType.GetFixationTypeCollection();

            if (string.IsNullOrEmpty(clientOrderDetail.SpecimenNumberMatchStatus) == true)
            {
                clientOrderDetail.SpecimenNumberMatchStatus = "Not Determined";
            }

            if (string.IsNullOrEmpty(clientOrderDetail.SpecimenDescriptionMatchStatus) == true)
            {
                clientOrderDetail.SpecimenDescriptionMatchStatus = "Not Determined";
            }

            this.m_ClientOrderMedia = new Business.ClientOrder.Model.ClientOrderMedia();
            this.m_ClientOrderMedia.SpecimenNumberMatchStatus      = clientOrderDetail.SpecimenNumberMatchStatus;
            this.m_ClientOrderMedia.SpecimenDescriptionMatchStatus = clientOrderDetail.SpecimenDescriptionMatchStatus;
            this.m_ClientOrderDetail = clientOrderDetail;

            InitializeComponent();

            this.DataContext = this;
        }
Exemplo n.º 3
0
 private void ListBoxContainers_DoubleClick(object sender, MouseButtonEventArgs e)
 {
     if (this.ListBoxClientOrderMedia.SelectedItems.Count != 0)
     {
         YellowstonePathology.Business.ClientOrder.Model.ClientOrderMedia  clientOrderMedia  = (YellowstonePathology.Business.ClientOrder.Model.ClientOrderMedia) this.ListBoxClientOrderMedia.SelectedItem;
         YellowstonePathology.Business.ClientOrder.Model.ClientOrderDetail clientOrderDetail = this.m_ClientOrderReceivingHandler.ClientOrder.ClientOrderDetailCollection.GetByClientOrderDetailId(clientOrderMedia.ClientOrderDetailId);
         this.ShowClientOrderDetailsPage(this, new CustomEventArgs.ClientOrderDetailReturnEventArgs(clientOrderDetail));
     }
 }
Exemplo n.º 4
0
        public DocumentMatchingWizardPage(YellowstonePathology.Business.Document.CaseDocumentCollection caseDocumentCollection, YellowstonePathology.Business.ClientOrder.Model.ClientOrderMedia clientOrderMedia, string clientOrderId)
        {
            this.m_CaseDocumentCollection = caseDocumentCollection;
            //this.m_Client = client;
            //this.m_ClientOrderMediaCollection = clientOrderMediaCollection;
            this.m_ClientOrderMedia = clientOrderMedia;
            this.m_ClientOrderId    = clientOrderId;

            InitializeComponent();

            Loaded += new RoutedEventHandler(DocumentMatchingWizardPage_Loaded);
        }
Exemplo n.º 5
0
        private void HyperLinkDeleteSpecimen_Click(object sender, RoutedEventArgs e)
        {
            Hyperlink hyperLink = (Hyperlink)e.Source;

            YellowstonePathology.Business.ClientOrder.Model.ClientOrderMedia  clientOrderMedia  = (YellowstonePathology.Business.ClientOrder.Model.ClientOrderMedia)hyperLink.Tag;
            YellowstonePathology.Business.ClientOrder.Model.ClientOrderDetail clientOrderDetail = this.m_ClientOrderReceivingHandler.ClientOrder.ClientOrderDetailCollection.GetByClientOrderDetailId(clientOrderMedia.ClientOrderDetailId);

            MessageBoxResult messageBoxResult = MessageBox.Show("Are you sure you want to delete this specimen?", "Delete?", MessageBoxButton.YesNo, MessageBoxImage.Question, MessageBoxResult.Yes);

            if (messageBoxResult == MessageBoxResult.Yes)
            {
                this.m_ClientOrderReceivingHandler.ClientOrder.ClientOrderDetailCollection.Remove(clientOrderDetail);
                this.m_ClientOrderMediaCollection = new Business.ClientOrder.Model.ClientOrderMediaCollection();
                this.m_ClientOrderReceivingHandler.ClientOrder.ClientOrderDetailCollection.LoadMedia(this.m_ClientOrderMediaCollection);
                this.NotifyPropertyChanged("ClientOrderMediaCollection");
            }
        }