示例#1
0
        public void setException(string ErrMsg, string csName)
        {
            SysLog Log = SysLog.GetLogger(csName);

            Message = ErrMsg;
            Log.Exception(ErrMsg);
        }
示例#2
0
        public void setException(Exception ex, string csName)
        {
            SysLog Log = SysLog.GetLogger(csName);

            Message = ex.Message;
            Log.Exception(ex);
        }
示例#3
0
        public long Insert(Question_Info data)
        {
            long newID = 0;

            try
            {
                newID = new Question_Repo().Insert(data);
            }
            catch (Exception ex)
            {
                log.Exception(ex);
            }
            return(newID);
        }
示例#4
0
        public long Insert(TeamIntroduce_Info data)
        {
            long newID = 0;

            try
            {
                newID = new TeamIntroduce_Repo().Insert(data);
            }
            catch (Exception ex)
            {
                log.Exception(ex);
            }
            return(newID);
        }
示例#5
0
        public long Insert(HirCategory_Info data)
        {
            long newID = 0;

            try
            {
                newID = new HirCategory_Repo().Insert(data);
            }
            catch (Exception ex)
            {
                log.Exception(ex);
            }
            return(newID);
        }
示例#6
0
        public long Insert(CostNews_Info data)
        {
            long newID = 0;

            try
            {
                newID = new CostNews_Repo().Insert(data);
            }
            catch (Exception ex)
            {
                log.Exception(ex);
            }
            return(newID);
        }
示例#7
0
        public long Insert(AboutTeam_Info data)
        {
            long newID = 0;

            try
            {
                newID = new AboutTeam_Repo().Insert(data);
            }
            catch (Exception ex)
            {
                log.Exception(ex);
            }
            return(newID);
        }
示例#8
0
        public long Insert(WebDownload_Info data)
        {
            long newID = 0;

            try
            {
                newID = new WebDownload_Repo().Insert(data);
            }
            catch (Exception ex)
            {
                log.Exception(ex);
            }
            return(newID);
        }
示例#9
0
        public long Insert(NormallContent_Info data)
        {
            long newID = 0;

            try
            {
                newID = new NormallContent_Repo().Insert(data);
            }
            catch (Exception ex)
            {
                log.Exception(ex);
            }
            return(newID);
        }
示例#10
0
        public int Insert(Doc_Info data)
        {
            int newID = 0;

            try
            {
                newID = new Doc_Repo().Insert(data);
            }
            catch (Exception ex)
            {
                log.Exception(ex);
            }
            return(newID);
        }
示例#11
0
        public long Insert(DiaryData_Info data)
        {
            long newID = 0;

            try
            {
                newID = new DiaryData_Repo().Insert(data);
            }
            catch (Exception ex)
            {
                log.Exception(ex);
            }
            return(newID);
        }
示例#12
0
        public long Insert(HomePage_Info data)
        {
            long newID = 0;

            try
            {
                newID = new HomePage_Repo().Insert(data);
            }
            catch (Exception ex)
            {
                log.Exception(ex);
            }
            return(newID);
        }
示例#13
0
        public long Insert(User_Info data)
        {
            long newID = 0;

            try
            {
                data.Password   = Encrypt.EncryptPassword(data.Password, data.LoginId);
                data.LastUpdate = DateTime.Now;
                newID           = new User_Repo().Insert(data);
            }
            catch (Exception ex)
            {
                log.Exception(ex);
            }
            return(newID);
        }
示例#14
0
 protected override void OnException(ExceptionContext filterContext)
 {
     filterContext.Result           = Json("Got Server Error, Please check with Administrator. Thansk!", JsonRequestBehavior.AllowGet);
     filterContext.ExceptionHandled = true;
     Log.Exception(filterContext.Exception);
 }
示例#15
0
 public void setException(Exception ex, SysLog Log)
 {
     Message = ex.Message;
     Log.Exception(ex);
 }