Beispiel #1
0
        public static void Add(string mid, ChangeType opeartionType, string opeartion, params object[] args)
        {
            Model.OperationRecord entity = new Model.OperationRecord();
            var member = BLL.Member.GetModelByMID(mid);

            entity.MID       = mid;
            entity.LevelCode = member.AgencyCode;
            entity.RoleCode  = member.RoleCode;
            entity.Time      = DateTime.Now;
            entity.Type      = opeartionType;
            entity.Operation = string.Format(opeartion, args);
            DAL.OperationRecordDAL.Add(entity);
        }
Beispiel #2
0
 public static void Add(Model.OperationRecord entity)
 {
     EntityHelper.Insert(entity);
 }