public void Process(DateTime importDate, YellowstonePathology.Business.User.SystemIdentity systemIdentity) { string[] files = System.IO.Directory.GetFiles(FolderPath); foreach (string file in files) { SVHImportFileName svhImportFilename = new SVHImportFileName(file); if (svhImportFilename.IsSVHImportFile == true) { if (svhImportFilename.FileDate == importDate) { SVHImportFile svhImportFile = new SVHImportFile(svhImportFilename, systemIdentity); svhImportFile.ParseAndPersist(); string destinationFileName = Path.Combine(ProcessedFolderPath, Path.GetFileName(file)); if (File.Exists(destinationFileName) == false) File.Move(svhImportFilename.FullPath, destinationFileName); } } } }
public void Process(DateTime importDate, YellowstonePathology.Business.User.SystemIdentity systemIdentity) { string[] files = System.IO.Directory.GetFiles(FolderPath); foreach (string file in files) { SVHImportFileName svhImportFilename = new SVHImportFileName(file); if (svhImportFilename.IsSVHImportFile == true) { if (svhImportFilename.FileDate == importDate) { SVHImportFile svhImportFile = new SVHImportFile(svhImportFilename, systemIdentity); svhImportFile.ParseAndPersist(); string destinationFileName = Path.Combine(ProcessedFolderPath, Path.GetFileName(file)); if (File.Exists(destinationFileName) == false) { File.Move(svhImportFilename.FullPath, destinationFileName); } } } } }
public SVHImportFile(SVHImportFileName svhImportFilename, YellowstonePathology.Business.User.SystemIdentity systemIdentity) { this.m_SVHImportFileName = svhImportFilename; this.m_SVHBillingDataCollection = new SVHBillingDataCollection(); this.m_SystemIdentity = systemIdentity; }
public SVHImportFile(SVHImportFileName svhImportFilename, YellowstonePathology.Business.User.SystemIdentity systemIdentity) { this.m_SVHImportFileName = svhImportFilename; this.m_SVHBillingDataCollection = new SVHBillingDataCollection(); this.m_SystemIdentity = systemIdentity; }