private void OnTimedEventGroup5_Elapsed(object sender, ElapsedEventArgs e) { try { TimerGroup5.Enabled = false; clsCSGetRawProcess obj = new clsCSGetRawProcess(); obj.nodeTypeMain = new string[3]; obj.nodeTypeMain[0] = "MSS"; obj.nodeTypeMain[1] = "GCS"; obj.nodeTypeMain[2] = "MGW"; obj.groupName = "group5"; obj.StartRawGeneration(); LogEvent("TimerGroup5 Raw Generation Complete for " + System.Configuration.ConfigurationManager.AppSettings["CircleName"].ToString() + "...", EventLogEntryType.Information); //clsCSParsingProcess objParse1 = new clsCSParsingProcess(); //objParse1.group_name = "group5"; //objParse1.NeMap = new string[1]; //objParse1.NeMap[0] = "MSS MAP"; //objParse1.StartParsing(); obj = null; //objParse1 = null; //} } catch (Exception ex) { //throw ex; LogEvent("Error in TimerGroup5.Error for " + System.Configuration.ConfigurationManager.AppSettings["CircleName"].ToString() + ": " + ex.Message.ToString(), EventLogEntryType.Warning); } finally { // TimerGroup5.Enabled = true; } }
private void OnTimedEventGroup1_Elapsed(object sender, ElapsedEventArgs e) { try { //TimerGroup1.Enabled = false; //string errorFolderPath = @"D:\DP\"; //if (!System.IO.Directory.Exists(errorFolderPath)) //{ // System.IO.Directory.CreateDirectory(errorFolderPath); //} //System.IO.File.AppendAllText(errorFolderPath + "\\" + "_error_log.txt", "Test file" + DateTime.Now + "\n\r"); //if (System.DateTime.Now.ToShortTimeString() == "00:01") //{ ////LogEvent("TimerGroup1 disabled", EventLogEntryType.Information); TimerGroup1.Enabled = false; 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(); LogEvent("TimerGroup1 Raw Generation Complete for " + System.Configuration.ConfigurationManager.AppSettings["CircleName"].ToString() + "...", EventLogEntryType.Information); //clsCSParsingProcess objParse1 = new clsCSParsingProcess(); //objParse1.group_name = "group1"; //objParse1.NeMap = new string[1]; //objParse1.NeMap[0] = "MSS MAP"; //objParse1.StartParsing(); obj = null; //objParse1 = null; } catch (Exception ex) { //throw ex; LogEvent("Error in TimerGroup1.Error in " + System.Configuration.ConfigurationManager.AppSettings["CircleName"].ToString() + ": " + ex.Message.ToString(), EventLogEntryType.Warning); } finally { //TimerGroup1.Enabled = true; } }
private void btn_Raw_Gen_Click(object sender, EventArgs e) { try { MessageBox.Show("Raw Generation process started.."); 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(); clsCSGetRawProcess obj1 = new clsCSGetRawProcess(); obj1.nodeTypeMain = new string[3]; obj1.nodeTypeMain[0] = "MSS"; obj1.nodeTypeMain[1] = "GCS"; obj1.nodeTypeMain[2] = "MGW"; obj1.groupName = "group2"; obj1.StartRawGeneration(); clsCSGetRawProcess obj2 = new clsCSGetRawProcess(); obj2.nodeTypeMain = new string[3]; obj2.nodeTypeMain[0] = "MSS"; obj2.nodeTypeMain[1] = "GCS"; obj2.nodeTypeMain[2] = "MGW"; obj2.groupName = "group3"; obj2.StartRawGeneration(); MessageBox.Show("Raw Generation process Completed."); } catch (Exception ex) { MessageBox.Show(ex.Message.ToString()); } }
private void button2_Click(object sender, EventArgs e) { clsCSGetRawProcess obj = new clsCSGetRawProcess(); obj.nodeTypeMain = new string[3]; obj.nodeTypeMain[0] = "MSS"; obj.nodeTypeMain[1] = "GCS"; obj.nodeTypeMain[2] = "MGW"; obj.groupName = "group3"; obj.StartRawGeneration(); String Circle = String.Empty; String Vendor = String.Empty; Circle = System.Configuration.ConfigurationManager.AppSettings["CircleName"].ToString().ToUpper(); Vendor = System.Configuration.ConfigurationManager.AppSettings["Vendor"].ToString().ToUpper(); clsBackupRestore objManageBackup = new clsBackupRestore(); objManageBackup.Manage_HLR_MSC_ASSO_DEST_Backup(Circle); // For Transfer data of MSC, HLR, Assosication Info and Destination Info table into their respective backup tables. // For Deleting files from drive. //try //{ // string rootFolderPath = Convert.ToString(System.Configuration.ConfigurationManager.AppSettings["folderPathForDelete"]); // string days = Convert.ToString(System.Configuration.ConfigurationManager.AppSettings["DaysForDeleteRawFile"]); // FolderAndFileOperations obj = new FolderAndFileOperations(); // obj.DeleteAllFilesAndFolders(rootFolderPath, days); //} //catch //{ //} // For Starting Raw Generation objCSprocess.StartMain(); //clsTransferToNSSFromCS.DCMDataMigration("UPW"); //string Errordir = @"D:\PACO\" + System.DateTime.Now.ToString("yyyy-MM-dd"); //if (System.DateTime.Now.ToString("HH:mm") == System.Configuration.ConfigurationManager.AppSettings["PSStartTime"].ToString()) //{ // if (!Directory.Exists(Errordir)) // { // Directory.CreateDirectory(Errordir); // } // if ((!System.IO.File.Exists(Errordir + "\\" + "AWE_NSS_PACO.txt"))) // { // File.AppendAllText(Errordir + "\\" + "AWE_NSS_PACO.txt", "DCM PACO process has been started at " + System.DateTime.Now.ToString() + "\r\n"); // //Paco_timer.Enabled = false; // //objPSprocess.StartMain(); // ////Paco movement // //clsTransferToNSSFromPS.dcm_update(); // System.IO.File.Delete(Errordir + "\\" + "AWE_NSS_PACO.txt"); // } //} //if (System.DateTime.Now.ToString("HH:mm") == System.Configuration.ConfigurationManager.AppSettings["PSStartTime"].ToString()) //{ // if (Convert.ToBoolean(System.Configuration.ConfigurationManager.AppSettings["IsPACO"].ToString().ToLower()) == true) // { // System.Threading.Thread.Sleep(60 * 1000 * 2); // } //} clsCSGetRawProcess obj5 = new clsCSGetRawProcess(); obj5.nodeTypeMain = new string[2]; obj5.nodeTypeMain[0] = "MSS"; obj5.nodeTypeMain[1] = "MGW"; obj5.groupName = "group2"; obj5.StartRawGeneration(); clsCSParsingProcess objParse1 = new clsCSParsingProcess(); objParse1.group_name = "group1"; objParse1.NeMap = new string[1]; objParse1.NeMap[0] = "MSS MAP"; objParse1.StartParsing(); if (System.DateTime.Now.ToString("hh:mm") == System.Configuration.ConfigurationManager.AppSettings["ParsingStartTime"].ToString()) { } }
public void OnTimedEventGroup4_Elapsed(object sender, ElapsedEventArgs e) { try { TimerGroup4.Enabled = false; clsCSGetRawProcess obj = new clsCSGetRawProcess(); obj.nodeTypeMain = new string[3]; obj.nodeTypeMain[0] = "MSS"; obj.nodeTypeMain[1] = "GCS"; obj.nodeTypeMain[2] = "MGW"; obj.groupName = "group4"; obj.StartRawGeneration(); // for calling msc_hlr commands clsCSGetRawProcess obj1 = new clsCSGetRawProcess(); obj1.groupName = "HLR_MSC"; obj1.nodeTypeMain = new string[2]; obj1.nodeTypeMain[0] = "MSC"; obj1.nodeTypeMain[1] = "HLR"; obj1.StartRawGeneration(); LogEvent("TimerGroup4 and HLRMSC Raw Generation Complete for " + System.Configuration.ConfigurationManager.AppSettings["CircleName"].ToString() + "...", EventLogEntryType.Information); //clsCSParsingProcess objParse1 = new clsCSParsingProcess(); //objParse1.group_name = "group4"; //objParse1.NeMap = new string[1]; //objParse1.NeMap[0] = "MSS MAP"; //objParse1.StartParsing(); //clsCSParsingProcess objParse2 = new clsCSParsingProcess(); //objParse2.group_name = ""; //objParse2.NeMap = new string[1]; //objParse2.NeMap[0] = "MSC MAP"; //objParse2.StartParsing(); //clsCSParsingProcess objParse3 = new clsCSParsingProcess(); //objParse3.group_name = ""; //objParse3.NeMap = new string[1]; //objParse3.NeMap[0] = "HLR MAP"; //objParse3.StartParsing(); //clsCSParsingProcess objParse4 = new clsCSParsingProcess(); //objParse4.group_name = ""; //objParse4.NeMap = new string[1]; //objParse4.NeMap[0] = "ASSOCIATION INFO"; //objParse4.StartParsing(); //clsCSParsingProcess objParse5 = new clsCSParsingProcess(); //objParse5.group_name = ""; //objParse5.NeMap = new string[1]; //objParse5.NeMap[0] = "DESTINATION INFO"; //objParse5.StartParsing(); obj = null; obj1 = null; //objParse1 = null; //objParse2 = null; //objParse3 = null; //objParse4 = null; //objParse5 = null; //} } catch (Exception ex) { //throw ex; LogEvent("Error in TimerGroup4.Error for " + System.Configuration.ConfigurationManager.AppSettings["CircleName"].ToString() + ": " + ex.Message.ToString(), EventLogEntryType.Warning); } finally { //TimerGroup4.Enabled = true; } }