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