本文整理汇总了C#中Business.OrderIdParser类的典型用法代码示例。如果您正苦于以下问题:C#Business.OrderIdParser类的具体用法?C#Business.OrderIdParser怎么用?C#Business.OrderIdParser使用的例子?这里精选的类代码示例或许可以为您提供帮助。
示例1:View
publicvoidView(Business.Test.AccessionOrderaccessionOrder,Business.Test.PanelSetOrderpanelSetOrder)
{
YellowstonePathology.Business.PanelSet.Model.PanelSetpanelSet=YellowstonePathology.Business.PanelSet.Model.PanelSetCollection.GetAll().GetPanelSet(panelSetOrder.PanelSetId);
YellowstonePathology.Business.Interface.ICaseDocumentdoc=YellowstonePathology.Business.Document.DocumentFactory.GetDocument(accessionOrder,panelSetOrder,Business.Document.ReportSaveModeEnum.Draft);
doc.Render();
YellowstonePathology.Business.OrderIdParserorderIdParser=newBusiness.OrderIdParser(panelSetOrder.ReportNo);
stringfileName=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)
{
caseBusiness.Document.NativeDocumentFormatEnum.Word:
YellowstonePathology.Business.Document.CaseDocument.OpenWordDocumentWithWordViewer(fileName);
break;
caseBusiness.Document.NativeDocumentFormatEnum.XPS:
YellowstonePathology.UI.XpsDocumentViewerxpsDocumentViewer=newXpsDocumentViewer();
xpsDocumentViewer.ViewDocument(fileName);
xpsDocumentViewer.ShowDialog();
break;
}
}
原文链接:
http://www.jxszl.com/biancheng/C/556614.html