using gregn6Lib; namespace HL_FristAidPlatform_Print { public class ExportInfo { private GRExportType m_ExportType; private string m_DisplayText; private string m_ExtFileName; public ExportInfo(string DisplayText, string ExtFileName, GRExportType ExportType) { this.m_DisplayText = DisplayText; this.m_ExtFileName = ExtFileName; this.m_ExportType = ExportType; } public string DisplyText { get { return m_DisplayText; } } public string ExtFileName { get { return m_ExtFileName; } } public GRExportType ExportType { get { return m_ExportType; } } public override string ToString() { return m_DisplayText; } //得到本程序默认的导出文件 public static string GetExportFileName(string fileName) { string ExtFileName = (new ExportInfo("PDF", "pdf", GRExportType.gretPDF)).ExtFileName; string FileName = fileName; return FileName + "." + ExtFileName; } } }