changes to support approval process

This commit is contained in:
Rich 2012-01-23 13:51:36 +00:00
parent 3153ffb024
commit 0e94b48af2

View File

@ -2,11 +2,24 @@ using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Text; using System.Text;
using System.IO; using System.IO;
using System.Text.RegularExpressions;
namespace Volian.Base.Library namespace Volian.Base.Library
{ {
public static class TmpFile public static class TmpFile
{ {
public static string CreateFileName(string procNumber, string sectNumber, string sectTitle)
{
return FixFileName(procNumber + "_" + ((sectNumber ?? "") != "" ? sectNumber : sectTitle));
}
public static string CreateFileName(string procNumber)
{
return FixFileName(procNumber);
}
public static string FixFileName(string name)
{
return Regex.Replace(name, "[ .,/]", "_") + ".pdf";
}
public static void RemoveAllTmps() public static void RemoveAllTmps()
{ {
RemoveTmpPDFs(); RemoveTmpPDFs();