///
/// 数据库备份 [Sys_DatabaseBackup] Ajax提交类
///
var DatabaseBackupAjax = new Object();
///
/// 数据库备份 [Sys_DatabaseBackup] 获取记录信息
///
DatabaseBackupAjax.GetInfo = function (key, send, fun, target, html) {
return Global.Ajax(
{
ajaxCache: false,
ajaxUrl: "/Ajax.aspx?AVA.ResourcesPlatform.Ajax.Sys.DatabaseBackupAjax.Get",
ajaxData: "key=" + encodeURIComponent(key),
ajaxAsync: true,
ajaxFunSuccess: fun
}, send, target, html);
};
///
/// 数据库备份 [Sys_DatabaseBackup] 添加记录
///
DatabaseBackupAjax.Insert = function (form, send, fun, target, html) {
return Global.Ajax(
{
ajaxCache: false,
ajaxUrl: "/Ajax.aspx?AVA.ResourcesPlatform.Ajax.Sys.DatabaseBackupAjax.Insert",
ajaxData: Global.GetFormValue(form),
ajaxAsync: true,
ajaxFunSuccess: fun
}, send, target, html);
};
///
/// 数据库备份 [Sys_DatabaseBackup] 修改记录
///
DatabaseBackupAjax.Update = function (form, send, fun, target, html) {
return Global.Ajax(
{
ajaxCache: false,
ajaxUrl: "/Ajax.aspx?AVA.ResourcesPlatform.Ajax.Sys.DatabaseBackupAjax.Update",
ajaxData: Global.GetFormValue(form),
ajaxAsync: true,
ajaxFunSuccess: fun
}, send, target, html);
};
///
/// 数据库备份 [Sys_DatabaseBackup] 删除记录
///
DatabaseBackupAjax.Delete = function (key, send, fun, target, html) {
return Global.Ajax(
{
ajaxCache: false,
ajaxUrl: "/Ajax.aspx?AVA.ResourcesPlatform.Ajax.Sys.DatabaseBackupAjax.Delete",
ajaxData: "key=" + encodeURIComponent(key),
ajaxAsync: true,
ajaxFunSuccess: fun
}, send, target, html);
};
///
/// 数据库备份 [Sys_DatabaseBackup] 批量删除记录
///
DatabaseBackupAjax.BatchDelete = function (key, send, fun, target, html) {
return Global.Ajax(
{
ajaxCache: false,
ajaxUrl: "/Ajax.aspx?AVA.ResourcesPlatform.Ajax.Sys.DatabaseBackupAjax.BatchDelete",
ajaxData: key,
ajaxAsync: true,
ajaxFunSuccess: fun
}, send, target, html);
};
/*******************************************
* 以下为自定义方法
*******************************************/
///
/// 数据库备份 [Sys_DatabaseBackup] 备份
///
DatabaseBackupAjax.Backup = function (form, send, fun, errorFun, target, html) {
return Global.Ajax(
{
ajaxCache: false,
ajaxUrl: "/Ajax.aspx?AVA.ResourcesPlatform.Ajax.Sys.DatabaseBackupAjax.Backup",
ajaxData: Global.GetFormValue(form),
ajaxAsync: true,
ajaxFunSuccess: fun,
ajaxFunError: errorFun
}, send, target, html);
};
///
/// 数据库备份 [Sys_DatabaseBackup] 还原
///
DatabaseBackupAjax.DataRestore = function (key, send, fun, errorFun, target, html) {
return Global.Ajax(
{
ajaxCache: false,
ajaxUrl: "/Ajax.aspx?AVA.ResourcesPlatform.Ajax.Sys.DatabaseBackupAjax.DataRestore",
ajaxData: key,
ajaxAsync: true,
ajaxFunSuccess: fun,
ajaxFunError: errorFun
}, send, target, html);
};
///
/// 清除数据 初始化
///
DatabaseBackupAjax.DatabaseClear = function (pkid, send, fun, funError, target, html) {
return Global.Ajax(
{
ajaxCache: false,
ajaxUrl: "/Ajax.aspx?AVA.ResourcesPlatform.Ajax.Sys.DatabaseBackupAjax.DatabaseClear",
ajaxData: "pkid=" + encodeURIComponent(pkid),
ajaxAsync: true,
ajaxFunSuccess: fun,
ajaxFunError: funError
}, send, target, html);
};
///
/// 清除垃圾文件
///
DatabaseBackupAjax.RedundantFileClear = function (pkid, send, fun, funError, target, html) {
return Global.Ajax(
{
ajaxCache: false,
ajaxUrl: "/Ajax.aspx?AVA.ResourcesPlatform.Ajax.Sys.DatabaseBackupAjax.RedundantFileClear",
ajaxData: null,
ajaxAsync: true,
ajaxFunSuccess: fun,
ajaxFunError: funError
}, send, target, html);
};