public string GetPathNFSe(DateTime data) { var dir = string.IsNullOrEmpty(PathNFSe.Trim()) ? Parent.Geral.PathSalvar : PathNFSe; if (PastaMensal) { dir = Path.Combine(dir, data.ToString("yyyyMM")); } if (AdicionarLiteral && !dir.EndsWith("NFSe")) { dir = Path.Combine(dir, "NFSe"); } if (!Directory.Exists(dir)) { Directory.CreateDirectory(dir); } return(dir); }
public string GetPathNFSe(DateTime data, string cnpj = "") { var dir = string.IsNullOrEmpty(PathNFSe.Trim()) ? PathSalvar : PathNFSe; return(GetPath(dir, "NFSe", cnpj, data, "NFSe")); }