/// <summary>
    /// 加入 system log
    /// </summary>
    /// <param name="action">異動行為</param>
    public void AddSystemLog(MsgVO.Action action, object obj)
    {
        SessionHelper sHelper = new SessionHelper();

        LoginUserVO userVO = sHelper.LoginUser;
        LogSystemVO logVO = sHelper.LogVO;

        if (!String.IsNullOrEmpty(logVO.Fucntion))
        {

            if (userVO != null)
            {
                logVO.UpdateId = userVO.UserId;
            }

            logVO.UpdateDate = DateTime.Now;
            logVO.Action = action.ToString();
            logVO.UpdateClassName = obj.GetType().ToString();
            logVO.IpAddress = m_HttpHelper.GetUserIp(HttpContext.Current);

            m_LogService.CreateLogSystem(logVO);

        }
        else
        {
            // log.Debug("logVO.Function is null ,updateClassName "+obj.ToString());
        }
    }
    /// <summary>
    /// 加入 system log
    /// </summary>
    /// <param name="action">異動行為</param>
    public void AddSystemLog(MsgVO.Action action, object obj, string function, string note)
    {
        SessionHelper sHelper = new SessionHelper();

        LoginUserVO userVO = sHelper.LoginUser;

        LogSystemVO logVO = new LogSystemVO();

        if (userVO != null)
        {
            logVO.UpdateId = userVO.UserId;
        }

        logVO.UpdateDate = DateTime.Now;
        logVO.Action = action.ToString();
        logVO.UpdateClassName = obj.GetType().ToString();
        logVO.Fucntion = function;
        logVO.SubFucntion = logVO.SubFucntion;
        logVO.Note = note;
        logVO.IpAddress = m_HttpHelper.GetUserIp(HttpContext.Current);
        m_LogService.CreateLogSystem(logVO);
    }