Example #1
0
        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");
        }
Example #2
0
        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");
        }
Example #3
0
 partial void UpdateProcessFile(ProcessFile instance);
Example #4
0
 partial void DeleteProcessFile(ProcessFile instance);
Example #5
0
 partial void InsertProcessFile(ProcessFile instance);