changes to support approval process
This commit is contained in:
parent
3153ffb024
commit
0e94b48af2
@ -2,11 +2,24 @@ using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
using System.IO;
|
||||
using System.Text.RegularExpressions;
|
||||
|
||||
namespace Volian.Base.Library
|
||||
{
|
||||
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()
|
||||
{
|
||||
RemoveTmpPDFs();
|
||||
|
Loading…
x
Reference in New Issue
Block a user