Beispiel #1
0
        private void button3_Click(object sender, EventArgs e)
        {
            //clsCSParsingProcess objParse1 = new clsCSParsingProcess();
            //objParse1.group_name = "group1";
            //objParse1.NeMap = new string[1];
            //objParse1.NeMap[0] = "MSS MAP";
            //objParse1.StartParsing();
            //clsCSprocess obj = new clsCSprocess();
            //obj.StartMain();

            String Circle = String.Empty;
            String Vendor = String.Empty;

            Circle = System.Configuration.ConfigurationManager.AppSettings["CircleName"].ToString().ToUpper();
            Vendor = System.Configuration.ConfigurationManager.AppSettings["Vendor"].ToString().ToUpper();
            clsCSParsingProcess objParse1 = new clsCSParsingProcess();

            objParse1.group_name = "group5";
            objParse1.NeMap      = new string[1];
            objParse1.NeMap[0]   = "MSS MAP";
            objParse1.StartParsing();
            clsCSprocess obj = new clsCSprocess();

            obj.StartMain();

            //clsCSParsingProcess objParse2 = new clsCSParsingProcess();
            //objParse2.group_name = "HLR_MSC";
            //objParse2.NeMap = new string[4];
            //objParse2.NeMap[0] = "MSC MAP";
            //objParse2.NeMap[1] = "HLR MAP";
            //objParse2.NeMap[2] = "ASSOCIATION INFO";
            //objParse2.NeMap[3] = "DESTINATION INFO";

            //objParse2.StartParsing();

            //clsCSGetRawProcess obj = new clsCSGetRawProcess();
            //obj.nodeTypeMain = new string[3];
            //obj.nodeTypeMain[0] = "MSS";
            //obj.nodeTypeMain[1] = "GCS";
            //obj.nodeTypeMain[2] = "MGW";
            //obj.groupName = "group1";
            //obj.StartRawGeneration();
            //obj.groupName = "HLR_MSC";
            //obj.nodeTypeMain = new string[2];
            //obj.nodeTypeMain[0] = "MSC";
            //obj.nodeTypeMain[1] = "HLR";
            //obj.StartRawGeneration();

            try
            {
                //CS_timer.Enabled = false;
                //objCSprocess.StartMain();
            }
            catch (Exception ex)
            {
                ExecuteNonQuery("Update tblProcessUpdate Set EndTime='" + DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss") + "',Status='NOT COMPLETED',ErrorMsg='" + ex.Message.ToString() + "' Where DCMProcess='CS' and Circle='" + Circle + "'  and Vendor='" + Vendor + "'");
            }
            finally
            {
                CS_timer.Enabled = true;
            }
        }