Ejemplo n.º 1
0
        public SpecimenListPage(YellowstonePathology.Domain.ClientOrder.Model.ClientOrder clientOrder)
        {
            this.m_ClientOrder = clientOrder;
            this.m_ClientOrderDetailViewCollection = new ClientOrderDetailViewCollection(this.m_ClientOrder.ClientOrderDetailCollection, this.m_ShowInactiveSpecimen);

            InitializeComponent();

            this.DataContext = this;
            this.Loaded     += new RoutedEventHandler(SpecimenListPage_Loaded);
        }
        public ThinPrepPapOrderEntryPage(YellowstonePathology.Domain.ClientOrder.Model.CytologyClientOrder clientOrder, YellowstonePathology.Persistence.ObjectTracker objectTracker)
        {
            this.m_ShowInactiveSpecimen = false;
            this.m_IsLoadingSpecimen    = false;
            this.m_ClientOrder          = clientOrder;
            this.m_ObjectTracker        = objectTracker;

            this.m_ClientOrderDetailViewCollection = new ClientOrderDetailViewCollection(this.m_ClientOrder.ClientOrderDetailCollection, this.m_ShowInactiveSpecimen);
            YellowstonePathology.Business.Rules.MethodResult methodResult = new Business.Rules.MethodResult();
            this.m_HandleClientDateentryPropertyAccess = new Rules.HandleClientDataEntryPropertyAccess(executionStatus);
            this.m_HandleClientDateentryPropertyAccess.Execute(this.m_ClientOrder, methodResult);
            this.AreDemographicsEnabled = methodResult.Success;
            this.AreSpecimenEnabled     = methodResult.Success;
            this.AreButtonsEnabled      = methodResult.Success;

            InitializeComponent();

            this.DataContext = this;
            this.Loaded     += new RoutedEventHandler(OrderEntryPage_Loaded);
        }