public Desktop.IApplicationComponent GetComponent()
            {
                if (_component == null)
                {
                    _component = new OrderAdditionalInfoComponent(true);
                    UpdateComponentData();

                    _context.DryRunMergedOrderChanged += (sender, args) => UpdateComponentData();
                }
                return(_component);
            }
            public Desktop.IApplicationComponent GetComponent()
            {
                if (_component == null)
                {
                    _component = new OrderAdditionalInfoComponent();
                    _component.ModifiedChanged += ((sender, args) => _context.SetModified());
                    UpdateComponentData();

                    _context.OrderLoaded += (sender, args) => UpdateComponentData();
                }
                return(_component);
            }
 public Desktop.IApplicationComponent GetComponent()
 {
     if (_component == null)
     {
         _component = new OrderAdditionalInfoComponent
         {
             OrderExtendedProperties = _context.OrderExtendedProperties,
             Context = new OrderAdditionalInfoComponent.HealthcareContext(_context.WorklistItem.OrderRef)
         };
     }
     return(_component);
 }
 public Desktop.IApplicationComponent GetComponent()
 {
     if (_component == null)
     {
         _component = new OrderAdditionalInfoComponent(true);
         _context.OrderListItemChanged += (sender, args) =>
         {
             _component.OrderExtendedProperties = _context.Order == null ? new Dictionary <string, string>() : _context.Order.ExtendedProperties;
             _component.Context = _context.Order == null ? null : new OrderAdditionalInfoComponent.HealthcareContext(_context.Order.OrderRef);
         };
     }
     return(_component);
 }
示例#5
0
        public override void Start()
        {
            StartProtocollingWorklistItem();

            this.Host.Title = ProtocolDocument.GetTitle(this.WorklistItem);

            _bannerComponentHost = new ChildComponentHost(this.Host, new BannerComponent(this.WorklistItem));
            _bannerComponentHost.StartComponent();

            _orderNotesComponentHost = new ChildComponentHost(this.Host, new OrderNoteSummaryComponent(OrderNoteCategory.Protocol, this.SaveEnabled));
            _orderNotesComponentHost.StartComponent();
            ((OrderNoteSummaryComponent)_orderNotesComponentHost.Component).Notes = _notes;
            _orderNotesComponentHost.Component.ModifiedChanged += ((sender, args) =>
                                                                   this.Modified = this.Modified || _orderNotesComponentHost.Component.Modified);

            _protocolEditorComponentHost = new ChildComponentHost(this.Host, new ProtocolEditorComponent(this.WorklistItem));
            _protocolEditorComponentHost.StartComponent();
            ((ProtocolEditorComponent)_protocolEditorComponentHost.Component).CanEdit = this.SaveEnabled;
            _protocolEditorComponentHost.Component.ModifiedChanged += ((sender, args) =>
                                                                       this.Modified = this.Modified || _protocolEditorComponentHost.Component.Modified);

            _rightHandComponentContainer = new TabComponentContainer();

            _orderDetailViewComponent = new ProtocollingOrderDetailViewComponent(this.WorklistItem.PatientRef, this.WorklistItem.OrderRef);
            _rightHandComponentContainer.Pages.Add(new TabPage(SR.TitleOrder, _orderDetailViewComponent));

            _orderAttachmentsComponent          = new AttachedDocumentPreviewComponent(true, AttachmentSite.Order);
            _orderAttachmentsComponent.OrderRef = this.WorklistItem.OrderRef;
            _rightHandComponentContainer.Pages.Add(new TabPage(SR.TitleOrderAttachments, _orderAttachmentsComponent));

            _additionalInfoComponent = new OrderAdditionalInfoComponent(true);
            _additionalInfoComponent.OrderExtendedProperties = _orderDetail.ExtendedProperties;
            _additionalInfoComponent.Context = new OrderAdditionalInfoComponent.HealthcareContext(this.WorklistItem.OrderRef);
            _rightHandComponentContainer.Pages.Add(new TabPage(SR.TitleAdditionalInfo, _additionalInfoComponent));

            _rightHandComponentContainer.Pages.Add(new TabPage(SR.TitlePriors, _priorReportsComponent = new PriorReportComponent(this.WorklistItem)));

            _rightHandComponentContainerHost = new ChildComponentHost(this.Host, _rightHandComponentContainer);
            _rightHandComponentContainerHost.StartComponent();

            SetInitialProtocollingTabPage();

            base.Start();
        }