コード例 #1
0
        /// <summary>
        /// 修改信息,写入记录日志
        /// </summary>
        /// <param name="category">类型</param>
        /// <param name="to">操作对象</param>
        /// <param name="tousertype">操作对象用户类型:会员、店铺、公司、管理员</param>
        public void ModifiedIntoLogs(ChangeCategory category, string to, ENUM_USERTYPE tousertype)
        {
            // 自动化参数
            string from         = GetCurrentUserID();
            string fromusertype = GetCurrentUserType().ToString();
            int    qishu        = CommonDataBLL.getMaxqishu();

            AddChangeLog((int)ChangeType.Modify, category, from, fromusertype, to, tousertype.ToString(), qishu, this._remarkinfo.Text, 0);
        }
コード例 #2
0
        /// <summary>
        /// 删除信息,写入记录日志
        /// </summary>
        /// <param name="category">类型</param>
        /// <param name="to">操作对象</param>
        /// <param name="tousertype">操作对象用户类型:会员、店铺、公司、管理员</param>
        /// <param name="remark">操作发生的数据改变记录信息</param>
        public static void DeletedIntoLogs(ChangeCategory category, string to, ENUM_USERTYPE tousertype, string remark)
        {
            // 自动化参数
            string from         = GetCurrentUserID();
            string fromusertype = GetCurrentUserType().ToString();
            int    qishu        = CommonDataBLL.getMaxqishu();

            AddChangeLog((int)ChangeType.Delete, category, from, fromusertype, to, tousertype.ToString(), qishu, remark, 0);
        }
コード例 #3
0
        /// <summary>
        /// 删除信息,写入记录日志
        /// </summary>
        /// <param name="category">类型</param>
        /// <param name="to">操作对象</param>
        /// <param name="tousertype">操作对象用户类型:会员、店铺、公司、管理员</param>
        public void DeletedIntoLogstran(SqlTransaction tran, ChangeCategory category, string to, ENUM_USERTYPE tousertype)
        {
            // 自动化参数
            string from         = GetCurrentUserID();
            string fromusertype = GetCurrentUserType().ToString();
            int    qishu        = CommonDataBLL.getMaxqishu(tran);

            AddChangeLogtran(tran, (int)ChangeType.Delete, category, from, fromusertype, to, tousertype.ToString(), qishu, this._remarkinfo.Text, 0);
        }