Example #1
0
        }// public void WriteToFile(string msg)

        private bool CheckDbBeforeProcessingFile(string fileName)
        {
            OmcCdrFileInfo info = m_db.GetOmcCdrInfo(fileName);

            if (info.StoredInDb == 1)
            {
                return(true);
            }
            return(false);
        }//CheckDbBeforeDownloadingFile
Example #2
0
        }// MoveTheNewCdrFileForCiberProcessing()

        /// <summary>
        /// method to make sure that we have not created CIBER records based on
        /// this file
        /// </summary>
        /// <param name="fileName"></param>
        /// <returns></returns>
        private bool CheckDbBeforeProcessingFile(string fileName)
        {
            OmcCdrFileInfo info = m_db.GetOmcCdrInfo(fileName);

            // if we have already merged this file
            if (info.FileMerged == 1)
            {
                return(true);
            }

            // otherwise we need to merge the file
            return(false);
        }//CheckDbBeforeDownloadingFile