// function to get Campaign from rptRemainingLeads.Business public static DataSet GetAllCampaign() { try { return(new rptRemainingLeads.DataAccess.ClsRptRemainingLeadsDataService().rptRemainingLeads_GetAllCampaign()); } catch (Exception ex) { ex.Data.Add("My Key", "CtlRole()--VMukti--:--VmuktiModules--:--Call Center--:--rptRemainingLeads--:--rptRemainingLeads.Business--:--ClsRptCountByState.cs--:--GetAllCampaign()--"); ClsException.LogError(ex); ClsException.WriteToErrorLogFile(ex); System.Text.StringBuilder sb = new StringBuilder(); sb.AppendLine(ex.Message); sb.AppendLine(); sb.AppendLine("StackTrace : " + ex.StackTrace); sb.AppendLine(); sb.AppendLine("Location : " + ex.Data["My Key"].ToString()); sb.AppendLine(); sb1 = CreateTressInfo(); sb.Append(sb1.ToString()); VMuktiAPI.ClsLogging.WriteToTresslog(sb); return(null); } }
public static DataSet GetAllListOfCampaign(int CampaignID) { try { return(new rptUserAudit.DataAccess.ClsRptUserAudit().rptUserAudit_GetAllListByCapmID(CampaignID)); } catch (Exception ex) { ex.Data.Add("My Key", "VMukti--:--VmuktiModules--:--Call Center--:--rptUserAudit--:--rptUserAudit.Business--:--ClsRptUserAudit.cs--:--GetAllListOfCampaign(int CampaignID)--"); ClsException.LogError(ex); ClsException.WriteToErrorLogFile(ex); System.Text.StringBuilder sb = new StringBuilder(); sb.AppendLine(ex.Message); sb.AppendLine(); sb.AppendLine("StackTrace : " + ex.StackTrace); sb.AppendLine(); sb.AppendLine("Location : " + ex.Data["My Key"].ToString()); sb.AppendLine(); sb1 = CreateTressInfo(); sb.Append(sb1.ToString()); VMuktiAPI.ClsLogging.WriteToTresslog(sb); return(null); } }
public override bool MapData(DataRow row) { try { return(base.MapData(row)); } catch (Exception ex) { ex.Data.Add("My Key", "CtlRole()--VMukti--:--VmuktiModules--:--Call Center--:--rptRemainingLeads--:--rptRemainingLeads.Business--:--ClsRptCountByDisposition.cs--:--MapData(DataRow row)--"); ClsException.LogError(ex); ClsException.WriteToErrorLogFile(ex); System.Text.StringBuilder sb = new StringBuilder(); sb.AppendLine(ex.Message); sb.AppendLine(); sb.AppendLine("StackTrace : " + ex.StackTrace); sb.AppendLine(); sb.AppendLine("Location : " + ex.Data["My Key"].ToString()); sb.AppendLine(); sb1 = CreateTressInfo(); sb.Append(sb1.ToString()); VMuktiAPI.ClsLogging.WriteToTresslog(sb); return(false); } }
public void Save(IDbTransaction txn) { try { } catch (Exception ex) { ex.Data.Add("My Key", "CtlRole()--VMukti--:--VmuktiModules--:--Call Center--:--rptRemainingLeads--:--rptRemainingLeads.Business--:--ClsRptCountByState.cs--:--Save(IDbTransaction txn)--"); ClsException.LogError(ex); ClsException.WriteToErrorLogFile(ex); System.Text.StringBuilder sb = new StringBuilder(); sb.AppendLine(ex.Message); sb.AppendLine(); sb.AppendLine("StackTrace : " + ex.StackTrace); sb.AppendLine(); sb.AppendLine("Location : " + ex.Data["My Key"].ToString()); sb.AppendLine(); sb1 = CreateTressInfo(); sb.Append(sb1.ToString()); VMuktiAPI.ClsLogging.WriteToTresslog(sb); } //new ScriptDesigner.DataAccess.ClsQuestionAnsDataService(txn).Options_Save(_ID, _OptionName, _Description, _QuestionID, _ActionQuestionID); }
public static void Delete(int QuesID) { try { } catch (Exception ex) { ex.Data.Add("My Key", "CtlRole()--VMukti--:--VmuktiModules--:--Call Center--:--rptRemainingLeads--:--rptRemainingLeads.Business--:--ClsRptCountByState.cs--:--Delete(int QuesID)--"); ClsException.LogError(ex); ClsException.WriteToErrorLogFile(ex); System.Text.StringBuilder sb = new StringBuilder(); sb.AppendLine(ex.Message); sb.AppendLine(); sb.AppendLine("StackTrace : " + ex.StackTrace); sb.AppendLine(); sb.AppendLine("Location : " + ex.Data["My Key"].ToString()); sb.AppendLine(); sb1 = CreateTressInfo(); sb.Append(sb1.ToString()); VMuktiAPI.ClsLogging.WriteToTresslog(sb); } //Delete(QuesID, null); }
public static void Delete(int QuesID, IDbTransaction txn) { try { //new ScriptDesigner.DataAccess.ClsQuestionAnsDataService(txn).Options_Delete(QuesID); } catch (Exception ex) { ex.Data.Add("My Key", "CtlRole()--VMukti--:--VmuktiModules--:--Call Center--:--rptCRCByAgent--:--rptCRCbyAgent.Business--:--ClsRptHistory.cs--:--Delete(int QuesID, IDbTransaction txn)--"); ClsException.LogError(ex); ClsException.WriteToErrorLogFile(ex); System.Text.StringBuilder sb = new StringBuilder(); sb.AppendLine(ex.Message); sb.AppendLine(); sb.AppendLine("StackTrace : " + ex.StackTrace); sb.AppendLine(); sb.AppendLine("Location : " + ex.Data["My Key"].ToString()); sb.AppendLine(); sb1 = CreateTressInfo(); sb.Append(sb1.ToString()); VMuktiAPI.ClsLogging.WriteToTresslog(sb); } }
private void OnIRTCSessionStateChangeEvent(IRTCSessionStateChangeEvent sessionevent) { try { RTC_SESSION_STATE sessionstate; sessionstate = sessionevent.State; switch (sessionstate) { case RTC_SESSION_STATE.RTCSS_INPROGRESS: { if (_IPGCounter == -1) { entstatus(this, "InPorgress"); _IPGCounter = 1; } else if (_IPGCounter == 2) { _IPGCounter = -1; } else { _IPGCounter += 1; } break; } case RTC_SESSION_STATE.RTCSS_INCOMING: { oclient.PlayRing(RTC_RING_TYPE.RTCRT_PHONE, true); osession = sessionevent.Session; entstatus(this, "Incoming"); break; } case RTC_SESSION_STATE.RTCSS_ANSWERING: { //oclient.SendDTMF entstatus(this, "Answering"); break; } case RTC_SESSION_STATE.RTCSS_CONNECTED: { entstatus(this, "Connected"); break; } case RTC_SESSION_STATE.RTCSS_DISCONNECTED: { //int i = this.oclient.SessionCapabilities; //string ss = this.oclient.SessionCapabilities.ToString(); //int str1 = this.profile.SessionCapabilities.GetHashCode(); osession = null; entstatus(this, "Disconnected"); break; } case RTC_SESSION_STATE.RTCSS_HOLD: { entstatus(this, "Hold"); break; } case RTC_SESSION_STATE.RTCSS_REFER: { break; } } sessionevent = null; } catch (Exception ex) { ex.Data.Add("My Key", "VMukti--:--VmuktiModules--:--VmuktiModules--:--Call Center--:--AutoProgressiveSoftPhone--:--AutoProgressivePhone.Business--:--RTCAudio.cs--:--OnIRTCSessionStateChangeEvent()--"); ClsException.LogError(ex); ClsException.WriteToErrorLogFile(ex); } }
public void fncSendDTMF(string number) { try { switch (number) { case "0": oclient.SendDTMF(RTC_DTMF.RTC_DTMF_0); break; case "1": oclient.SendDTMF(RTC_DTMF.RTC_DTMF_1); break; case "2": oclient.SendDTMF(RTC_DTMF.RTC_DTMF_2); break; case "3": oclient.SendDTMF(RTC_DTMF.RTC_DTMF_3); break; case "4": oclient.SendDTMF(RTC_DTMF.RTC_DTMF_4); break; case "5": oclient.SendDTMF(RTC_DTMF.RTC_DTMF_5); break; case "6": oclient.SendDTMF(RTC_DTMF.RTC_DTMF_6); break; case "7": oclient.SendDTMF(RTC_DTMF.RTC_DTMF_7); break; case "8": oclient.SendDTMF(RTC_DTMF.RTC_DTMF_8); break; case "9": oclient.SendDTMF(RTC_DTMF.RTC_DTMF_9); break; case "#": oclient.SendDTMF(RTC_DTMF.RTC_DTMF_POUND); break; case "*": oclient.SendDTMF(RTC_DTMF.RTC_DTMF_STAR); break; } } catch (Exception ex) { ex.Data.Add("My Key", "VMukti--:--VmuktiModules--:--VmuktiModules--:--Call Center--:--AutoProgressiveSoftPhone--:--AutoProgressivePhone.Business--:--RTCAudio.cs--:--OnIRTCSessionStateChangeEvent()--"); ClsException.LogError(ex); ClsException.WriteToErrorLogFile(ex); } }
public List <News.Bussines.EvzItem> FuncGetNews(String Url, int nettype) { try { rssReader = new XmlTextReader(Url); rssDoc = new XmlDocument(); try { rssDoc.Load(rssReader); } catch (Exception exp) { exp.Data.Add("My Key", "FuncGetNews()--:--GetNews.cs--:--" + exp.Message + " :--:--"); ClsException.LogError(exp); ClsException.WriteToErrorLogFile(exp); } List <News.Bussines.EvzItem> lstNews = new List <News.Bussines.EvzItem>(); { try { if (rssDoc.SelectSingleNode("//channel") != null) { nodeChannel = rssDoc.SelectSingleNode("//channel"); } } catch (Exception exp) { exp.Data.Add("My Key", "FuncGetNews()--:--GetNews.cs--:--" + exp.Message + " :--:--"); ClsException.LogError(exp); ClsException.WriteToErrorLogFile(exp); } } try { if (nodeChannel.ChildNodes.Count == 0) { // MessageBox.Show("Not available"); } else { foreach (XmlNode NdItem in nodeChannel) { News.Bussines.EvzItem lblNews = new News.Bussines.EvzItem(); if (NdItem.Name == "item") { lblNews.Title = GetNews.FncFilterString(GetNews.FuncRetriveInfoFromNode(NdItem, "title"), nettype); lblNews.Tag = NdItem; lstNews.Add(lblNews); } } } } catch (Exception exp) { exp.Data.Add("My Key", "FuncGetNews()--:--GetNews.cs--:--" + exp.Message + " :--:--"); ClsException.LogError(exp); ClsException.WriteToErrorLogFile(exp); } return(lstNews); } catch (Exception exp) { exp.Data.Add("My Key", "FuncGetNews()--:--GetNews.cs--:--" + exp.Message + " :--:--"); ClsException.LogError(exp); ClsException.WriteToErrorLogFile(exp); return(null); } }
public UCWeather(ModulePermissions[] MyPermissions) { try { InitializeComponent(); btnclick.IsEnabled = false; #region Delegate Object objInvokeCmbChange = new DelInvokeCmbChange(funThreadCmb); objdelLoadDock = new delLoadDock(LoadDocK); ObjDelNetstatus = new DelNetStatus(FncNetStatus); objDelFunctionNetStatus = new delfncNetStatus(FncNetStatus); #endregion #region cheking netstatus object a1 = new object(); try { ObjDelNetstatus.BeginInvoke(a1, new AsyncCallback(finished), null); } catch (Exception exp) { exp.Data.Add("My Key", "UCWeather()--:--UCWeather.xaml.cs--:--" + exp.Message + " :--:--"); ClsException.LogError(exp); ClsException.WriteToErrorLogFile(exp); } #endregion #region event btnclick.Click += new RoutedEventHandler(btnclick_Click); btnCancle.Click += new RoutedEventHandler(btnCancle_Click); btnGet.Click += new RoutedEventHandler(btnGet_Click); cmbCountry.SelectionChanged += new SelectionChangedEventHandler(cmbCountry_SelectionChanged); objWeatherService.GetCitiesByCountryCompleted += new Weather.Presentation.WeatherService.GetCitiesByCountryCompletedEventHandler(objWeatherService_GetCitiesByCountryCompleted); objWeatherService.GetWeatherCompleted += new Weather.Presentation.WeatherService.GetWeatherCompletedEventHandler(objWeatherService_GetWeatherCompleted); #endregion fncCnvMain(); #region loading try { string strGetCookies = Application.GetCookie(BrowserInteropHelper.Source); if (strGetCookies != null) { if (strGetCookies.Split(';').Length > 1) { if (strGetCookies.Split(';')[1].Trim().Split('=')[0].ToLower() == "country") { country = strGetCookies.Split(';')[1].Trim().Split('=')[1]; city = strGetCookies.Split(';')[2].Trim().Split('=')[1]; } } } else { country = "india"; city = "Bombay / Santacruz"; } } catch (Exception ex) // if cookies are not set then user ill get exception so defaultly we load weather for bombay { country = "india"; city = "Bombay / Santacruz"; } #endregion #region loging StringBuilder sb = new StringBuilder(); sb.AppendLine("Weather Module:"); sb.AppendLine("loading Weather module"); sb.AppendLine(sb1.ToString()); VMuktiAPI.ClsLogging.WriteToTresslog(sb); #endregion } catch (Exception exp) { exp.Data.Add("My Key", "UCWeather()--:--UCWeather.xaml.cs--:--" + exp.Message + " :--:--"); ClsException.LogError(exp); ClsException.WriteToErrorLogFile(exp); } }
void objWeatherService_GetCitiesByCountryCompleted(object sender, Weather.Presentation.WeatherService.GetCitiesByCountryCompletedEventArgs e) { try { if (e != null) { string ss1 = e.Result; if (ss1 != "Data Not Found") { cmbCity.Items.Clear(); #region xmlDoc XmlDocument doc = new XmlDocument(); doc.LoadXml(ss1.ToString()); XmlNode nd = null; nd = doc.SelectSingleNode("NewDataSet"); if (nd.ChildNodes.Count == 0) { ComboBoxItem cbi = new ComboBoxItem(); cbi.Content = string.Format("Data Not Available For {0}", ((ComboBoxItem)cmbCountry.SelectedItem).Content.ToString()); cmbCity.Items.Add(cbi); } else { foreach (XmlElement el in nd) { if (el.Name == "Table") { if (el.HasChildNodes == true) { foreach (XmlNode atr in el) { if (atr.Name == "City") { cmbCity.Items.Add(new ComboBoxItem()); ((ComboBoxItem)cmbCity.Items[cmbCity.Items.Count - 1]).Content = atr.InnerText; } } } } else { cmbCity.Items.Add("Data Not Available"); } } } #endregion } else { cnvlbl.Visibility = Visibility.Collapsed; cnvMain.Visibility = Visibility.Visible; lblName.Content = "Not Available"; } } else { cnvlbl.Visibility = Visibility.Collapsed; cnvMain.Visibility = Visibility.Visible; lblName.Content = "Not Available"; } } catch (Exception exp) { try { cnvlbl.Visibility = Visibility.Collapsed; cnvMain.Visibility = Visibility.Visible; lblName.Content = "Not Available"; exp.Data.Add("My Key", "objWeatherService_GetCitiesByCountryCompleted()--:--UCWeather.xaml.cs--:--" + exp.Message + " :--:--"); ClsException.LogError(exp); ClsException.WriteToErrorLogFile(exp); } catch (Exception ex) { } } }
void objWeatherService_GetWeatherCompleted(object sender, Weather.Presentation.WeatherService.GetWeatherCompletedEventArgs e) { try { if (e != null) { string ss = e.Result; #region parsing if (ss != "Data Not Found") { XmlDocument doc = new XmlDocument(); doc.LoadXml(ss.ToString()); XmlNode nd = null; nd = doc.SelectSingleNode("CurrentWeather"); if (nd.ChildNodes.Count == 0) { lblValue.Content = ""; lblName.Visibility = Visibility.Visible; lblName.Content = "Not Available"; } else { bool status = false; foreach (XmlElement el in nd) { XmlNode xn = nd.SelectSingleNode("Temperature"); if (el.Name == "Temperature") { string s = el.InnerText; lblValue.Content = s; lblName.Visibility = Visibility.Visible; lblName.Content = city.Split('/')[0]; expMenu.Items.Add(el.Name + "=" + el.InnerText.ToString()); status = true; } else if (el.Name != "Status" && el.Name != "Time" && el.Name != "Temperature" && el.Name != "Location") { expMenu.Items.Add(el.Name + "=" + el.InnerText.ToString()); } } if (status == false) { lblValue.Content = ""; lblName.Visibility = Visibility.Visible; lblName.Content = "Not Available"; } } } else { lblName.Visibility = Visibility.Visible; lblName.Content = "Not Found"; lblValue.Content = ""; } #endregion } else { lblName.Visibility = Visibility.Visible; lblName.Content = "Not Available"; lblValue.Content = ""; } } catch (Exception exp) { try { if (!disposed) { cnvlbl.Visibility = Visibility.Collapsed; cnvMain.Visibility = Visibility.Visible; lblName.Content = "Not Available"; exp.Data.Add("My Key", "objWeatherService_GetWeatherCompleted()--:--UCWeather.xaml.cs--:--" + exp.Message + " :--:--"); ClsException.LogError(exp); ClsException.WriteToErrorLogFile(exp); } } catch (Exception ex) { } } }
public void Remove_Page(int intPageId) { if (bool.Parse(VMuktiAPI.VMuktiInfo.Port80) && VMuktiAPI.VMuktiInfo.CurrentPeer.CurrPeerType != PeerType.BootStrap) { List <clsSqlParametersInfo> lstSP = new List <clsSqlParametersInfo>(); clsSqlParametersInfo objInfo = new clsSqlParametersInfo(); objInfo.Direction = "Input"; objInfo.PName = "@pID"; objInfo.PValue = intPageId; objInfo.PDBType = "BigInt"; objInfo.PSize = 200; lstSP.Add(objInfo); clsSqlParameterContract CSqlInfo = new clsSqlParameterContract(); CSqlInfo.objParam = lstSP; try { VMukti.Business.clsDataBaseChannel.chHttpDataBaseService.svcExecuteDataSet("spDPage", CSqlInfo); } catch (System.ServiceModel.EndpointNotFoundException e) { VMuktiHelper.ExceptionHandler(e, "Remove_Page(int intPageId)", "ClsPageLogic.cs"); ClsException.LogError(e); ClsException.WriteToErrorLogFile(e); VMuktiAPI.VMuktiHelper.CallEvent("GetSuperNodeIP", null, null); VMukti.Business.clsDataBaseChannel.chHttpDataBaseService.svcExecuteDataSet("spDPage", CSqlInfo); } catch (System.ServiceModel.CommunicationException e) { VMuktiHelper.ExceptionHandler(e, "Remove_Page(int intPageId)", "ClsPageLogic.cs"); VMuktiAPI.VMuktiHelper.CallEvent("GetSuperNodeIP", null, null); VMukti.Business.clsDataBaseChannel.chHttpDataBaseService.svcExecuteDataSet("spDPage", CSqlInfo); } } else { if (VMuktiAPI.VMuktiInfo.CurrentPeer.CurrPeerType == VMuktiAPI.PeerType.NodeWithHttp) { List <clsSqlParametersInfo> lstSP = new List <clsSqlParametersInfo>(); clsSqlParametersInfo objInfo = new clsSqlParametersInfo(); objInfo.Direction = "Input"; objInfo.PName = "@pID"; objInfo.PValue = intPageId; objInfo.PDBType = "BigInt"; objInfo.PSize = 200; lstSP.Add(objInfo); clsSqlParameterContract CSqlInfo = new clsSqlParameterContract(); CSqlInfo.objParam = lstSP; try { VMukti.Business.clsDataBaseChannel.chHttpDataBaseService.svcExecuteDataSet("spDPage", CSqlInfo); } catch (System.ServiceModel.EndpointNotFoundException e) { VMuktiHelper.ExceptionHandler(e, "Remove_Page(int intPageId)", "ClsPageLogic.cs"); ClsException.LogError(e); ClsException.WriteToErrorLogFile(e); VMuktiAPI.VMuktiHelper.CallEvent("GetSuperNodeIP", null, null); VMukti.Business.clsDataBaseChannel.chHttpDataBaseService.svcExecuteDataSet("spDPage", CSqlInfo); } catch (System.ServiceModel.CommunicationException e) { VMuktiHelper.ExceptionHandler(e, "Remove_Page(int intPageId)", "ClsPageLogic.cs"); VMuktiAPI.VMuktiHelper.CallEvent("GetSuperNodeIP", null, null); VMukti.Business.clsDataBaseChannel.chHttpDataBaseService.svcExecuteDataSet("spDPage", CSqlInfo); } } else { new ClsPageDataService().RemovePage(intPageId); } } }