public void GetCase(string masterAccessionNo, string reportNo) { this.m_LoginUI.GetAccessionOrder(masterAccessionNo, reportNo); this.m_DocumentViewer.ClearContent(); if (string.IsNullOrEmpty(this.m_LoginUI.AccessionOrder.SvhAccount) == false) { YellowstonePathology.Business.Document.AccessionOrderCaseDocument accessionOrderCaseDocument = new Business.Document.AccessionOrderCaseDocument(reportNo, masterAccessionNo); this.m_DocumentViewer.ShowDocument(accessionOrderCaseDocument); } else { Business.Document.CaseDocument caseDocument = this.m_LoginUI.CaseDocumentCollection.GetFirstRequisition(); this.m_DocumentViewer.ShowDocument(caseDocument); } }
private void ReceiveCaseDocument(string documentId) { bool found = false; foreach (YellowstonePathology.Business.Document.CaseDocument caseDocument in this.m_CaseDocumentCollection) { if (caseDocument.DocumentId == documentId) { caseDocument.Received = true; found = true; break; } } if (!found) { YellowstonePathology.Business.Document.CaseDocument caseDocument = new Business.Document.CaseDocument(); caseDocument.DocumentId = documentId; caseDocument.ClientOrderId = this.m_ClientOrderId; caseDocument.Received = true; this.m_CaseDocumentCollection.Add(caseDocument); } }
private void MenuItemShowPatientFaceSheet_Click(object sender, RoutedEventArgs e) { Business.Document.CaseDocument caseDocument = this.m_TypingUI.CaseDocumentCollection.GetPatientFaceSheet(); this.m_DocumentViewer.ShowDocument(caseDocument); }
private void MenuItemShowRequisition_Click(object sender, RoutedEventArgs e) { Business.Document.CaseDocument caseDocument = this.m_TypingUI.CaseDocumentCollection.GetRequisition(); this.m_DocumentViewer.ShowDocument(caseDocument); }