예제 #1
0
 public void SubmitForm(Sys_DbBackup dbBackupEntity)
 {
     dbBackupEntity.F_Id          = Common.GuId();
     dbBackupEntity.F_EnabledMark = true;
     dbBackupEntity.F_BackupTime  = DateTime.Now;
     service.ExecuteDbBackup(dbBackupEntity);
 }
예제 #2
0
 public ActionResult SubmitForm(Sys_DbBackup dbBackupEntity)
 {
     dbBackupEntity.F_FilePath = Server.MapPath("~/Resource/DbBackup/" + dbBackupEntity.F_FileName + ".bak");
     dbBackupEntity.F_FileName = dbBackupEntity.F_FileName + ".bak";
     dbBackupApp.SubmitForm(dbBackupEntity);
     return(Success("操作成功。"));
 }