Ejemplo n.º 1
0
        private void CreateBworksCdr_Click(object sender, EventArgs e)
        {
            CiberFileCreator m_ciberCreator = CiberFileCreator.Instance;
            DateTime d = DateTime.Now;
            Console.WriteLine(d.ToUniversalTime());
            Console.WriteLine(d.ToString("yyyyMMddHHmmsss.fff"));

            CdrFormatter f = new CdrFormatter();

            // method to parse the CDRs
            string cdrFile = System.Configuration.ConfigurationManager.AppSettings["OmcCdrFileToRead"];
            string fname = ParseFileName(cdrFile);

            List<OmcCdr> theCdrs = m_ciberHandler.ProcessOmcCdrFile(cdrFile);

            // uses the sidbid mgr to maintain running totals
            m_ciberCreator.ProcessCallRecords(theCdrs);

            // bworks file name format : BW-CDR-20090126124500-2-845c4d1e-017296.csv
            // keep the BW-CDR-OMCCDFILENAMEHERE-2-845c4d1e--017296.csv format for our file format
            string s = @"d:\apps\data\out\BW-CDR-MSC-20090126124500-2-845c4d1e-017296.csv";

            // create the cdr list
            foreach (OmcCdr o in theCdrs)
            {
                Bcdr b = new Bcdr(o);
                f.CreateAndAddCdr(o);
            }

            f.CreateCdrFile(fname);
            f.ClearCdrList();
        }
Ejemplo n.º 2
0
        /// <summary>
        /// ctor
        /// </summary>
        public OmcCiberHandler()
        {
            m_db = new OmcCdrDb();
            m_ciberDb = new CiberDbMgr();
            m_ciberCreator = CiberFileCreator.Instance;
            m_bworksFormatter = new CdrFormatter();

            // the the path where to move processed files
            m_filemovePath = ConfigurationManager.AppSettings["OmcCiberHandlerMoveFolder"];
            m_ciberOutputFileName = ConfigurationManager.AppSettings["CiberOutputFileName"];
        }