public PhysicianClientSearchPage(YellowstonePathology.Business.Interface.IOrder accessionOrder, bool showNavigationButtons)
        {
            this.m_AccessionOrder        = accessionOrder;
            this.m_ShowNavigationButtons = showNavigationButtons;
            this.m_PhysicianClientDistributionCollection = new Business.Client.Model.PhysicianClientDistributionList();

            InitializeComponent();

            this.DataContext = this;
            this.Loaded     += new RoutedEventHandler(PhysicianClientSearchPage_Loaded);
        }
        public PhysicianClientSearchPage(YellowstonePathology.Business.Interface.IOrder accessionOrder, bool showNavigationButtons)
        {
            this.m_AccessionOrder = accessionOrder;
            this.m_ShowNavigationButtons = showNavigationButtons;
            this.m_PhysicianClientDistributionCollection = new Business.Client.Model.PhysicianClientDistributionList();

            InitializeComponent();

            this.DataContext = this;
            this.Loaded += new RoutedEventHandler(PhysicianClientSearchPage_Loaded);
        }
        public PhysicianClientSearchPage(YellowstonePathology.Business.Interface.IOrder accessionOrder, int clientId, bool showNavigationButtons)
        {
            this.m_AccessionOrder = accessionOrder;
            this.m_ShowNavigationButtons = showNavigationButtons;
            this.m_PhysicianClientDistributionCollection = YellowstonePathology.Business.Gateway.PhysicianClientGateway.GetPhysicianClientDistributionByClientIdV2(clientId);

            InitializeComponent();

            this.DataContext = this;
            this.listViewPhysicianClient.SelectedIndex = -1;
            this.Loaded += new RoutedEventHandler(PhysicianClientSearchPage_Loaded);
        }
        public PhysicianClientSearchPage(YellowstonePathology.Business.Interface.IOrder accessionOrder, int clientId, bool showNavigationButtons)
        {
            this.m_AccessionOrder        = accessionOrder;
            this.m_ShowNavigationButtons = showNavigationButtons;
            this.m_PhysicianClientDistributionCollection = YellowstonePathology.Business.Gateway.PhysicianClientGateway.GetPhysicianClientDistributionByClientIdV2(clientId);

            InitializeComponent();

            this.DataContext = this;
            this.listViewPhysicianClient.SelectedIndex = -1;
            this.Loaded += new RoutedEventHandler(PhysicianClientSearchPage_Loaded);
        }
Ejemplo n.º 5
0
 public void SetCurrentOrder(YellowstonePathology.Business.Interface.IOrder order)
 {
     if (order != null)
     {
         this.m_CurrentOrder  = order;
         this.OrderCommentLog = YellowstonePathology.Business.Gateway.OrderCommentGateway.GetOrderCommentsForSpecimenLogId(this.m_CurrentOrder.SpecimenLogId);
         if (this.m_OrderCommentLog == null)
         {
             this.m_OrderCommentLog = new Business.Domain.OrderCommentLogCollection();
         }
         this.NotifyPropertyChanged("LabEventLogHeader");
     }
 }
Ejemplo n.º 6
0
 public PhysicianClientSearchDialog(YellowstonePathology.Business.Interface.IOrder accessionOrder)
 {
     this.m_PhysicianClientSearchPage = new Login.FinalizeAccession.PhysicianClientSearchPage(accessionOrder, false);
     InitializeComponent();
     this.Loaded += new RoutedEventHandler(PhysicianClientSearchDialog_Loaded);
 }
 public void SetCurrentOrder(YellowstonePathology.Business.Interface.IOrder order)
 {
     if (order != null)
     {
         this.m_CurrentOrder = order;
         this.OrderCommentLog = YellowstonePathology.Business.Gateway.OrderCommentGateway.GetOrderCommentsForSpecimenLogId(this.m_CurrentOrder.SpecimenLogId);
         if (this.m_OrderCommentLog == null)
         {
             this.m_OrderCommentLog = new Business.Domain.OrderCommentLogCollection();
         }
         this.NotifyPropertyChanged("LabEventLogHeader");
     }
 }
        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);
        }