纽威
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

66 lines
2.4 KiB

3 years ago
  1. @{
  2. ViewBag.Title = "Form";
  3. Layout = "~/Views/Shared/_Form.cshtml";
  4. }
  5. <script>
  6. $(function () {
  7. initControl();
  8. });
  9. function initControl() {
  10. $("#F_DbName").bindSelect()
  11. $("#F_BackupType").bindSelect()
  12. }
  13. function submitForm() {
  14. if (!$('#form1').formValid()) {
  15. return false;
  16. }
  17. $.submitForm({
  18. loading: "正在备份数据...",
  19. url: "/SystemSecurity/DbBackup/SubmitForm",
  20. param: $("#form1").formSerialize(),
  21. success: function () {
  22. $.currentWindow().$("#gridList").trigger("reloadGrid");
  23. }
  24. })
  25. }
  26. </script>
  27. <form id="form1">
  28. <div style="margin-bottom: 0px; border-radius: 0px;" class="alert alert-warning alert-dismissable">
  29. <strong>注意:</strong>&nbsp;备份成功后,请将备份文件下载到本地保存!
  30. </div>
  31. <div style="padding-top: 20px; margin-right: 20px;">
  32. <table class="form">
  33. <tr>
  34. <th class="formTitle">数据库名</th>
  35. <td class="formValue">
  36. <select id="F_DbName" name="F_DbName" class="form-control required">
  37. <option value="NFineBase">NFineBase</option>
  38. </select>
  39. </td>
  40. </tr>
  41. <tr>
  42. <th class="formTitle">备份名称</th>
  43. <td class="formValue">
  44. <input id="F_FileName" name="F_FileName" type="text" class="form-control required" value="@NFine.Code.Common.CreateNo()" placeholder="请输入备份名称" />
  45. </td>
  46. </tr>
  47. <tr>
  48. <th class="formTitle">备份模式</th>
  49. <td class="formValue">
  50. <select id="F_BackupType" name="F_BackupType" class="form-control required">
  51. <option value="1">完整备份</option>
  52. <option value="2">差异备份</option>
  53. </select>
  54. </td>
  55. </tr>
  56. <tr>
  57. <th class="formTitle" valign="top" style="padding-top: 11px;">备份说明
  58. </th>
  59. <td class="formValue">
  60. <textarea id="F_Description" name="F_Description" class="form-control" style="height: 60px;"></textarea>
  61. </td>
  62. </tr>
  63. </table>
  64. </div>
  65. </form>