Example #1
0
 public Log(ActionType action)
 {
     this.Date    = DateTime.Now;
     this.UserId  = GLOBALVARS.MyUser.ID;
     this.Level   = GLOBALVARS.MyUser.Control;
     this.Command = action;
     this.Info    = "";
 }
Example #2
0
 public Log(ActionType action, string info, string ClientId)
 {
     this.ClientId = int.Parse(ClientId);
     this.Date     = DateTime.Now;
     this.UserId   = GLOBALVARS.MyUser.ID;
     this.Level    = GLOBALVARS.MyUser.Control;
     this.Command  = action;
     this.Info     = info;
 }
Example #3
0
 public Log()
 {
     if (GLOBALVARS.MyUser != null)
     {
         this.UserId = GLOBALVARS.MyUser.ID;
         this.Level  = GLOBALVARS.MyUser.Control;
     }
     else
     {
         this.UserId = 0;
         this.Level  = User.TypeControl.User;
     }
     this.Date = DateTime.Now;
 }