当前位置: 首页>>代码示例>>C#>>正文


C# Business.OrderIdParser类代码示例

本文整理汇总了C#中Business.OrderIdParser的典型用法代码示例。如果您正苦于以下问题:C# Business.OrderIdParser类的具体用法?C# Business.OrderIdParser怎么用?C# Business.OrderIdParser使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


Business.OrderIdParser类属于命名空间,在下文中一共展示了Business.OrderIdParser类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: View

        public void View(Business.Test.AccessionOrder accessionOrder, Business.Test.PanelSetOrder panelSetOrder)
        {
            YellowstonePathology.Business.PanelSet.Model.PanelSet panelSet = YellowstonePathology.Business.PanelSet.Model.PanelSetCollection.GetAll().GetPanelSet(panelSetOrder.PanelSetId);
            YellowstonePathology.Business.Interface.ICaseDocument doc = YellowstonePathology.Business.Document.DocumentFactory.GetDocument(accessionOrder, panelSetOrder, Business.Document.ReportSaveModeEnum.Draft);
            doc.Render();
            YellowstonePathology.Business.OrderIdParser orderIdParser = new Business.OrderIdParser(panelSetOrder.ReportNo);

            string fileName = string.Empty;
            if (panelSet.ResultDocumentSource == Business.PanelSet.Model.ResultDocumentSourceEnum.PublishedDocument ||
                panelSet.ResultDocumentSource == Business.PanelSet.Model.ResultDocumentSourceEnum.RetiredTestDocument)
            {
                fileName = YellowstonePathology.Business.Document.CaseDocument.GetCaseFileNameXPS(orderIdParser);
            }
            else
            {
                fileName = YellowstonePathology.Business.Document.CaseDocument.GetDraftDocumentFilePath(orderIdParser);
            }

            switch (doc.NativeDocumentFormat)
            {
                case Business.Document.NativeDocumentFormatEnum.Word:
                    YellowstonePathology.Business.Document.CaseDocument.OpenWordDocumentWithWordViewer(fileName);
                    break;
                case Business.Document.NativeDocumentFormatEnum.XPS:
                    YellowstonePathology.UI.XpsDocumentViewer xpsDocumentViewer = new XpsDocumentViewer();
                    xpsDocumentViewer.ViewDocument(fileName);
                    xpsDocumentViewer.ShowDialog();
                    break;
            }
        }
开发者ID:WilliamCopland,项目名称:YPILIS,代码行数:30,代码来源:CaseDocumentViewer.cs

示例2: GetSearchObject

        public object GetSearchObject()
        {
            object result = null;
            YellowstonePathology.Business.OrderIdParser orderIdParser = new Business.OrderIdParser(this.m_SearchText);
            if(orderIdParser.IsValidReportNo == true)
            {
                result = new YellowstonePathology.Business.ReportNo(this.m_SearchText);
            }
            else if(orderIdParser.IsValidMasterAccessionNo == true)
            {
                result = YellowstonePathology.Business.MasterAccessionNo.Parse(this.m_SearchText, true);
            }
            else
            {
                YellowstonePathology.Business.MasterAccessionNo masterAccessionNo = null;
                if (YellowstonePathology.Business.MasterAccessionNo.TryParse(this.m_SearchText, false, out masterAccessionNo) == true)
                {
                    result = masterAccessionNo;
                }
                else
                {
                    YellowstonePathology.Business.PatientName patientName = null;
                    if (YellowstonePathology.Business.PatientName.TryParse(this.m_SearchText, out patientName) == true)
                    {
                        result = patientName;
                    }
                }
            }

            return result;
        }
开发者ID:WilliamCopland,项目名称:YPILIS,代码行数:31,代码来源:TextSearchHandler.cs

示例3: Download

        public YellowstonePathology.YpiConnect.Contract.MethodResult Download(ref YellowstonePathology.YpiConnect.Contract.RemoteFile remoteFile, YellowstonePathology.YpiConnect.Contract.Identity.WebServiceAccount webServiceAccount)
        {
            if (remoteFile.UseReportNoToFindFile == true)
            {
                YellowstonePathology.Business.OrderIdParser orderIdParser = new Business.OrderIdParser(remoteFile.ReportNo);
                switch (remoteFile.CaseDocumentType)
                {
                    case Contract.CaseDocumentTypeEnum.TIF:
                        remoteFile.FullPath = YellowstonePathology.Document.CaseDocumentPath.GetPath(orderIdParser) + remoteFile.ReportNo + ".tif";
                        break;
                    case Contract.CaseDocumentTypeEnum.XPS:
                        remoteFile.FullPath = YellowstonePathology.Document.CaseDocumentPath.GetPath(orderIdParser) + remoteFile.ReportNo + ".xps";
                        break;
                }
            }

            YellowstonePathology.YpiConnect.Contract.MethodResult methodResult = remoteFile.Load();
            if (methodResult.Success == false)
            {
                string sendTo = "[email protected]";
                string messageText = "Error while attempting file download, file does not exist: " + remoteFile.FileName;
                YellowstonePathology.YpiConnect.Contract.Message message = new Contract.Message(sendTo, webServiceAccount);
                message.ClientText = messageText;
                MessageService messageService = new MessageService();
                messageService.Send(message);
            }
            return methodResult;
        }
开发者ID:WilliamCopland,项目名称:YPILIS,代码行数:28,代码来源:FileTransferService.cs

示例4: ButtonOK_Click

 private void ButtonOK_Click(object sender, RoutedEventArgs e)
 {
     YellowstonePathology.Business.OrderIdParser orderIdParser = new Business.OrderIdParser(this.TextBlockReportNo.Text);
     if (orderIdParser.ReportNo == null)
     {
         MessageBox.Show("The report number entered is invalid.");
     }
     else
     {
         this.OK(this, new CustomEventArgs.ReportNoReturnEventArgs(orderIdParser.ReportNo));
     }
 }
开发者ID:WilliamCopland,项目名称:YPILIS,代码行数:12,代码来源:NumberChooser.xaml.cs

示例5: HandleReportNoSearch

 private void HandleReportNoSearch()
 {
     YellowstonePathology.Business.OrderIdParser orderIdParser = new Business.OrderIdParser(this.TextBoxReportNo.Text);
     if(orderIdParser.ReportNo != null)
     {
         UI.Navigation.PageNavigationReturnEventArgs args = new UI.Navigation.PageNavigationReturnEventArgs(UI.Navigation.PageNavigationDirectionEnum.Next, this.TextBoxReportNo.Text);
         this.Return(this, args);
     }
     else
     {
         MessageBox.Show("The Report No is not valid.");
     }
 }
开发者ID:WilliamCopland,项目名称:YPILIS,代码行数:13,代码来源:SearchReportNoPage.xaml.cs

示例6: ReportOrderDetailPage

        public ReportOrderDetailPage(YellowstonePathology.Business.Test.AccessionOrder accessionOrder, string reportNo, YellowstonePathology.Business.User.SystemIdentity systemIdentity)
        {
            this.m_AccessionOrder = accessionOrder;
            this.m_PanelSetOrder = accessionOrder.PanelSetOrderCollection.GetPanelSetOrder(reportNo);
            this.m_SystemIdentity = systemIdentity;
            this.m_UserCollection = YellowstonePathology.Business.User.SystemUserCollectionInstance.Instance.SystemUserCollection;
            this.m_FacilityCollection = Business.Facility.Model.FacilityCollection.GetAllFacilities();

            YellowstonePathology.Business.OrderIdParser orderIdParser = new Business.OrderIdParser(this.m_PanelSetOrder.ReportNo);
            this.m_ReportDocumentPath = YellowstonePathology.Business.Document.CaseDocument.GetCaseFileNamePDF(orderIdParser);

            InitializeComponent();

            DataContext = this;
            this.Closing += new System.ComponentModel.CancelEventHandler(ReportOrderDetailPage_Closing);
        }
开发者ID:ericramses,项目名称:YPILIS,代码行数:16,代码来源:ReportOrderDetailPage.xaml.cs

示例7: ButtonParse_Click

        private void ButtonParse_Click(object sender, RoutedEventArgs e)
        {
            string text = this.TextBoxText.Text;

            string[] rows = text.Split('\n');
            StringBuilder insertStatements = new StringBuilder();

            char[] delimeters = new char[2];
            delimeters[0] = '\t';
            delimeters[1] = ' ';

            List<PsaImport> importList = new List<PsaImport>();
            foreach(string row in rows)
            {
                string [] cols = row.Split(delimeters);
                if (cols.Length == 2)
                {
                    if (string.IsNullOrEmpty(cols[0]) == false)
                    {
                        YellowstonePathology.Business.OrderIdParser orderIdParser = new Business.OrderIdParser(cols[0]);
                        if (orderIdParser.IsLegacyPSAReportNo == true)
                        {
                            string reportNo = orderIdParser.LegacyReportNoFromLegacyPSAReportNo;
                            DateTime postDate = DateTime.Parse(cols[1].Trim());
                            importList.Add(new PsaImport(reportNo, postDate));
                            string insert = "Insert tblPsaImport (ReportNo, PostDate) values ('" + reportNo + "', '" + postDate.ToShortDateString() + "');";
                            insertStatements.AppendLine(insert);
                        }
                        else
                        {
                            Console.WriteLine("ReportNo Not Valid: " + row);
                        }
                    }
                }
                else
                {
                    Console.WriteLine("Row Not valid: " + row);
                }
            }
            this.TextBoxText.Text = insertStatements.ToString();
        }
开发者ID:WilliamCopland,项目名称:YPILIS,代码行数:41,代码来源:ParsePsaAccessionsWindow.xaml.cs

示例8: ShowDocument

        public void ShowDocument(string file)
        {
            YellowstonePathology.Business.OrderIdParser orderIdParser = new Business.OrderIdParser(file);
            string fileName = YellowstonePathology.Document.CaseDocumentPath.GetPath(orderIdParser);
            fileName += file + ".xps";

            FileStream fileStream = File.OpenRead(fileName);
            byte[] bytes = new byte[fileStream.Length];
            fileStream.Read(bytes, 0, bytes.Length);
            fileStream.Close();
            MemoryStream memoryStream = new MemoryStream(bytes);

            string tempPath = "pack://" + file + ".xps";
            System.IO.Packaging.Package package = System.IO.Packaging.Package.Open(memoryStream);
            m_Uri = new Uri(tempPath);
            System.IO.Packaging.PackageStore.AddPackage(m_Uri, package);
            m_Document = new XpsDocument(package, System.IO.Packaging.CompressionOption.Maximum, tempPath);
            FixedDocumentSequence fixedDocumentSequence = m_Document.GetFixedDocumentSequence();

            this.DocumentViewerReports.Document = fixedDocumentSequence as IDocumentPaginatorSource;
        }
开发者ID:WilliamCopland,项目名称:YPILIS,代码行数:21,代码来源:ReportViewer.xaml.cs

示例9: HyperLinkOpenFolder_Click

 private void HyperLinkOpenFolder_Click(object sender, RoutedEventArgs e)
 {
     YellowstonePathology.Business.OrderIdParser orderIdParser = new Business.OrderIdParser(this.m_ReportNo);
     string folderPath = YellowstonePathology.Document.CaseDocumentPath.GetPath(orderIdParser);
     System.Diagnostics.Process process = new System.Diagnostics.Process();
     System.Diagnostics.Process p = new System.Diagnostics.Process();
     System.Diagnostics.ProcessStartInfo info = new System.Diagnostics.ProcessStartInfo("Explorer.exe", folderPath);
     p.StartInfo = info;
     p.Start();
 }
开发者ID:ericramses,项目名称:YPILIS,代码行数:10,代码来源:DocumentListDialog.xaml.cs

示例10: ShowHistoryReport

 public void ShowHistoryReport(string reportNo)
 {
     YellowstonePathology.Business.OrderIdParser orderIdParser = new Business.OrderIdParser(reportNo);
     string fileName = YellowstonePathology.Business.Document.CaseDocument.GetCaseFileNameDoc(orderIdParser);
     YellowstonePathology.Business.Document.CaseDocument.OpenWordDocumentWithWordViewer(fileName);
 }
开发者ID:ericramses,项目名称:YPILIS,代码行数:6,代码来源:CytologyUI.cs

示例11: ShowCaseDocument

 public void ShowCaseDocument()
 {
     YellowstonePathology.Business.Test.ThinPrepPap.ThinPrepPapWordDocument report = new YellowstonePathology.Business.Test.ThinPrepPap.ThinPrepPapWordDocument(this.m_AccessionOrder, this.m_PanelSetOrderCytology, Business.Document.ReportSaveModeEnum.Draft);
     report.Render();
     YellowstonePathology.Business.OrderIdParser orderIdParser = new Business.OrderIdParser(this.m_PanelSetOrderCytology.ReportNo);
     string fileName = YellowstonePathology.Business.Document.CaseDocument.GetDraftDocumentFilePath(orderIdParser);
     YellowstonePathology.Business.Document.CaseDocument.OpenWordDocumentWithWordViewer(fileName);
 }
开发者ID:ericramses,项目名称:YPILIS,代码行数:8,代码来源:CytologyUI.cs

示例12: HandleNewCaseSearch

        private void HandleNewCaseSearch(string masterAccessionNoOrReportNo)
        {
            if (this.m_TypingUI.SurgicalTestOrder != null)
            {
                YellowstonePathology.Business.User.UserPreferenceInstance.Instance.UserPreference.LastReportNo = this.m_TypingUI.SurgicalTestOrder.ReportNo;
                YellowstonePathology.Business.User.UserPreferenceInstance.Instance.Save();
            }

            YellowstonePathology.Business.OrderIdParser orderIdParser = new Business.OrderIdParser(masterAccessionNoOrReportNo);
            if (orderIdParser.IsLegacyReportNo == true)
            {
                this.TextBoxReportNoSearch.Text.ToUpper();
                this.GetSurgicalCase(this.TextBoxReportNoSearch.Text);
            }
            else if (orderIdParser.IsValidMasterAccessionNo == true)
            {
                this.TextBoxReportNoSearch.Text = orderIdParser.CreateSurgicalReportNoFromMasterAccessionNo();
                this.GetSurgicalCase(this.TextBoxReportNoSearch.Text);
            }
        }
开发者ID:WilliamCopland,项目名称:YPILIS,代码行数:20,代码来源:TypingWorkspace.xaml.cs

示例13: ContextMenuOpenDocumentsFolder_Click

 private void ContextMenuOpenDocumentsFolder_Click(object sender, RoutedEventArgs e)
 {
     if (this.ListViewSurgicalCaseList.SelectedItems.Count != 0)
     {
         YellowstonePathology.Business.Surgical.SurgicalOrderListItem surgicalOrderListItem = (YellowstonePathology.Business.Surgical.SurgicalOrderListItem)this.ListViewSurgicalCaseList.SelectedItem;
         YellowstonePathology.Business.OrderIdParser orderIdParser = new Business.OrderIdParser(surgicalOrderListItem.ReportNo);
         string folderPath = YellowstonePathology.Document.CaseDocumentPath.GetPath(orderIdParser);
         System.Diagnostics.Process process = new System.Diagnostics.Process();
         System.Diagnostics.Process p = new System.Diagnostics.Process();
         System.Diagnostics.ProcessStartInfo info = new System.Diagnostics.ProcessStartInfo("Explorer.exe", folderPath);
         p.StartInfo = info;
         p.Start();
     }
 }
开发者ID:WilliamCopland,项目名称:YPILIS,代码行数:14,代码来源:TypingWorkspace.xaml.cs

示例14: HyperLinkPublish_Click

        private void HyperLinkPublish_Click(object sender, RoutedEventArgs e)
        {
            if (this.m_PanelSetOrder.Final == true)
            {
                YellowstonePathology.Business.Interface.ICaseDocument caseDocument = YellowstonePathology.Business.Document.DocumentFactory.GetDocument(this.m_AccessionOrder, this.m_PanelSetOrder, Business.Document.ReportSaveModeEnum.Normal);
                YellowstonePathology.Business.OrderIdParser orderIdParser = new Business.OrderIdParser(this.m_PanelSetOrder.ReportNo);
                YellowstonePathology.Business.Rules.MethodResult methodResult = caseDocument.DeleteCaseFiles(orderIdParser);

                if (methodResult.Success == true)
                {
                    caseDocument.Render();
                    caseDocument.Publish();
                    MessageBox.Show("The document has been published.");
                }
                else
                {
                    MessageBox.Show(methodResult.Message);
                }
            }
            else
            {
                MessageBox.Show("You cannot publish this case until it's final.");
            }
        }
开发者ID:WilliamCopland,项目名称:YPILIS,代码行数:24,代码来源:ProviderDistributionPage.xaml.cs

示例15: HasCaseBeenPublished

 private bool HasCaseBeenPublished()
 {
     bool result = true;
     YellowstonePathology.Business.OrderIdParser orderIdParser = new Business.OrderIdParser(this.m_PanelSetOrder.ReportNo);
     string tifFileName = YellowstonePathology.Business.Document.CaseDocument.GetCaseFileNameTif(orderIdParser);
     if (System.IO.File.Exists(tifFileName) == false)
     {
         result = false;
     }
     return result;
 }
开发者ID:ericramses,项目名称:YPILIS,代码行数:11,代码来源:ReportOrderDetailPage.xaml.cs


注:本文中的Business.OrderIdParser类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。