Exemple #1
0
 public void Delete(Modules.SYS_User model)
 {
     dal.Initialization();
     FineOffice.Entity.SYS_User entity = new Entity.SYS_User
     {
         ID = model.ID,
     };
     dal.Delete(entity);
     dal.Dispose();
 }
Exemple #2
0
 public FineOffice.Modules.SYS_User Update(FineOffice.Modules.SYS_User model)
 {
     dal.Initialization();
     FineOffice.Entity.SYS_User entity = new Entity.SYS_User
     {
         ID             = model.ID,
         Remark         = model.Remark,
         IsModify       = model.IsModify,
         CreateDate     = model.CreateDate,
         Password       = FineOffice.Common.DEncrypt.DESEncrypt.Encrypt(model.Password),
         PersonnelID    = model.PersonnelID,
         UserName       = model.UserName,
         Stop           = model.Stop,
         CheckAuthority = model.CheckAuthority,
         RoleList       = model.RoleList
     };
     dal.Update(entity);
     dal.Dispose();
     return(null);
 }