示例#1
0
        /// <summary>
        /// 编辑指定行的记录
        /// </summary>
        /// <param name="json"></param>
        private void ActionEdit(ref string json)
        {
            #region
            if (WLOGPersonLogBusiness.SessionCheckValid(this.SessionUserId, ref json))
            {
                wlogpersonlog.writeUser = this.SessionUserId;

                this.wlogpersonlogclass.EditRow(ref wlogpersonlogdata, wlogpersonlog);

                json = this.wlogpersonlogclass.SaveWLOGPersonLog(wlogpersonlogdata);
            }
            #endregion
        }
示例#2
0
        /// <summary>
        /// 添加新记录
        /// </summary>
        /// <param name="json"></param>
        private void ActionAddNew(ref string json)
        {
            #region
            if (WLOGPersonLogBusiness.SessionCheckValid(this.SessionUserId, ref json))
            {
                wlogpersonlog.writeUser = this.SessionUserId;
                wlogpersonlog.writeIp   = this.SessionUserIp;

                if (!this.wlogpersonlogclass.FindUserCurrentDayLog(wlogpersonlog, ref json))
                {
                    this.wlogpersonlogclass.AddRow(ref wlogpersonlogdata, wlogpersonlog);

                    json = this.wlogpersonlogclass.SaveWLOGPersonLog(wlogpersonlogdata);
                }
            }
            #endregion
        }