示例#1
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.HealthcareContext       = this.WorklistItem;
            _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();
        }
 public ReportViewComponent(PriorReportComponent owner)
 {
     _owner = owner;
 }