示例#1
0
        static void ProcessMIN(string origin, string dest, string fileName)
        {
            //Execute the code for the MIN spreadsheet
            var usage = new DataSources.CMDB();

            try
            {
                usage.ConvertUsageSheetToList(fileName, null, null);
                MoveFile(origin, dest, fileName);
            }
            catch (Exception ex)
            {
                Library.WriteLog(ex.ToString());
            }
        }
示例#2
0
        static void ProcessFileSystem(string origin, string dest, string fileName)
        {
            //Execute the code for the File System spreadsheet
            var filesys = new DataSources.CMDB();

            try
            {
                filesys.ConvertFileSystemSheetToList(fileName);
                MoveFile(origin, dest, fileName);
            }
            catch (Exception ex)
            {
                Library.WriteLog(ex.ToString());
            }
        }
示例#3
0
        static void ProcessAvailability(string origin, string dest, string fileName)
        {
            //Execute the code for the Availability spreadsheet
            var avail = new DataSources.CMDB();

            try
            {
                avail.ConvertSciLogicSheetToList(fileName);
                MoveFile(origin, dest, fileName);
            }
            catch (Exception ex)
            {
                Library.WriteLog(ex.ToString());
            }
        }
示例#4
0
        static void ProcessPatching(string origin, string dest, string fileName)
        {
            //Execute the code for the Patching spreadsheet
            var patch = new DataSources.CMDB();

            try
            {
                patch.ConvertPatchSheetToList(fileName);
                MoveFile(origin, dest, fileName);
            }
            catch (Exception ex)
            {
                Library.WriteLog(ex.ToString());
            }
        }
示例#5
0
        static void ProcessEvents(string origin, string dest, string fileName)
        {
            //Execute the code for the Events spreadsheet
            var events = new DataSources.CMDB();

            try
            {
                events.ConvertEventSheetToList(fileName);
                MoveFile(origin, dest, fileName);
            }
            catch (Exception ex)
            {
                Library.WriteLog(ex.ToString());
            }
        }