public Task <int> Save(DbBackupEntity dbBackupEntity)
 {
     dbBackupEntity.Id          = Common.GuId();
     dbBackupEntity.EnabledMark = true;
     dbBackupEntity.BackupTime  = DateTime.Now;
     return(service.ExecuteDbBackup(dbBackupEntity));
 }
Beispiel #2
0
 public void SubmitForm(DbBackupEntity dbBackupEntity)
 {
     dbBackupEntity.F_Id          = Common.GuId();
     dbBackupEntity.F_EnabledMark = true;
     dbBackupEntity.F_BackupTime  = DateTime.Now;
     service.ExecuteDbBackup(dbBackupEntity);
 }
Beispiel #3
0
        public void SubmitForm(DbBackupEntity dbBackupEntity)
        {
            dbBackupEntity.Id          = Common.GuId();
            dbBackupEntity.EnabledMark = true;
            dbBackupEntity.BackupTime  = DateTime.Now;

            //var LoginInfo = OperatorProvider.Provider.GetCurrent();
            var LoginInfo = SysLoginObjHelp.sysLoginObjHelp.GetOperator();

            if (LoginInfo != null)
            {
                dbBackupEntity.CreatorUserId = LoginInfo.UserId;
            }
            dbBackupEntity.CreatorTime = DateTime.Now;
            service.ExecuteDbBackup(dbBackupEntity);
            //添加日志
            LogHelp.logHelp.WriteDbLog(true, "添加数据库备份信息", Enums.DbLogType.Create, "数据库备份管理");
        }