private void parkFile(clsFileList vf, ProcessFile pf) { //DocLibHelper dlh = new DocLibHelper(); // move file into Parked folder string destFilename = rootLocation + @"PipelineData\5.Parked" + @"\" + vf.Filename; //Console.WriteLine("Parked location: " + destFilename); Console.ReadLine(); Utils.CopyLocalFileFromTo(vf.FullFilePath, destFilename, true); //Console.WriteLine("copied file to parked"); Console.ReadLine(); // set db status pf.FileStatus = (int)Utils.FileStatus.Parked; pf.Name = destFilename; //Console.WriteLine("attempting to write parked status to db"); Console.ReadLine(); windARTDataContext.SubmitChanges(); // set Sharepoint status //dlh.UpdateFileStatus(pf.ProcessFileId, Utils.FileStatus.Parked, 0, 0); Utils.WriteToLog(Utils.LogSeverity.Warning, processName, vf.FullFilePath + " parked - unknown formart"); }
private void parkFile(clsFileList vf, ProcessFile pf) { DocLibHelper dlh = new DocLibHelper(); // move file into Parked folder string destFilename = ConfigurationSettings.AppSettings["FolderParked"] + @"\" + vf.Filename; Utils.CopyLocalFileFromTo(vf.FullFilePath, destFilename, true); // set db status pf.FileStatus = (int)Utils.FileStatus.Parked; pf.Name = destFilename; windARTDataContext.SubmitChanges(); // set Sharepoint status dlh.UpdateFileStatus(pf.ProcessFileId, Utils.FileStatus.Parked, 0, 0); Utils.WriteToLog(Utils.LogSeverity.Warning, processName, vf.FullFilePath + " parked - unknown formart"); }
partial void UpdateProcessFile(ProcessFile instance);
partial void DeleteProcessFile(ProcessFile instance);
partial void InsertProcessFile(ProcessFile instance);