Пример #1
0
        public static ClsQuestion GetByQueID(int QueID)
        {
            try
            {
                ClsQuestion obj = new ClsQuestion();
                DataSet     ds  = new CRMDesigner.DataAccess.ClsQuestionAnsDataService().Question_GetByID(QueID);

                if (!obj.MapData(ds.Tables[0]))
                {
                    obj = null;
                }
                return(obj);
            }
            catch (Exception ex)
            {
                ex.Data.Add("My Key", "VMukti--:--VmuktiModules--:--Call Center--:--CRMDesigner--:--CRMDesigner.Business--:--ClsQuestion.cs--:--GetByQueID()--");
                //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);
            }
        }
Пример #2
0
        public static ClsQuestion GetByQueID(int QueID)
        {
            try
            {
                ClsQuestion obj = new ClsQuestion();
                DataSet     ds  = new CRMDesigner.DataAccess.ClsQuestionAnsDataService().Question_GetByID(QueID);

                if (!obj.MapData(ds.Tables[0]))
                {
                    obj = null;
                }
                return(obj);
            }
            catch (Exception ex)
            {
                VMuktiHelper.ExceptionHandler(ex, "GetByQueID()", "ClsQuestion.cs");
                return(null);
            }
        }
Пример #3
0
        public static ClsQuestion GetByQueID(int QueID)
        {
            try
            {
                ClsQuestion obj = new ClsQuestion();
                DataSet ds = new CRMDesigner.DataAccess.ClsQuestionAnsDataService().Question_GetByID(QueID);

                if (!obj.MapData(ds.Tables[0])) obj = null;
                return obj;
            }
            catch (Exception ex)
            {
                VMuktiHelper.ExceptionHandler(ex, "GetByQueID()", "ClsQuestion.cs");
                return null;
            }
        }
Пример #4
0
        public static ClsQuestion GetByQueID(int QueID)
        {
            try
            {
                ClsQuestion obj = new ClsQuestion();
                DataSet ds = new CRMDesigner.DataAccess.ClsQuestionAnsDataService().Question_GetByID(QueID);

                if (!obj.MapData(ds.Tables[0])) obj = null;
                return obj;
            }
            catch (Exception ex)
            {
                ex.Data.Add("My Key", "VMukti--:--VmuktiModules--:--Call Center--:--CRMDesigner--:--CRMDesigner.Business--:--ClsQuestion.cs--:--GetByQueID()--");
                //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;
            }
        }