///
/// 转播服务 [Pub_AgentServer] Ajax提交类
///
var AgentServerAjax = new Object();
///
/// 转播服务 [Pub_AgentServer] 获取记录信息
///
AgentServerAjax.GetInfo = function (key, send, fun, target, html) {
return Global.Ajax(
{
ajaxCache: false,
ajaxUrl: "/Ajax.aspx?AVA.ResourcesPlatform.Ajax.Pub.AgentServerAjax.Get",
ajaxData: "key=" + encodeURIComponent(key),
ajaxAsync: true,
ajaxFunSuccess: fun
}, send, target, html);
};
///
/// 转播服务 [Pub_AgentServer] 添加记录
///
AgentServerAjax.Insert = function (form, send, fun, target, html) {
return Global.Ajax(
{
ajaxCache: false,
ajaxUrl: "/Ajax.aspx?AVA.ResourcesPlatform.Ajax.Pub.AgentServerAjax.Insert",
ajaxData: Global.GetFormValue(form),
ajaxAsync: true,
ajaxFunSuccess: fun
}, send, target, html);
};
///
/// 转播服务 [Pub_AgentServer] 修改记录
///
AgentServerAjax.Update = function (form, send, fun, target, html) {
return Global.Ajax(
{
ajaxCache: false,
ajaxUrl: "/Ajax.aspx?AVA.ResourcesPlatform.Ajax.Pub.AgentServerAjax.Update",
ajaxData: Global.GetFormValue(form),
ajaxAsync: true,
ajaxFunSuccess: fun
}, send, target, html);
};
///
/// 转播服务 [Pub_AgentServer] 删除记录
///
AgentServerAjax.Delete = function(key, send, fun, target, html) {
return Global.Ajax(
{
ajaxCache: false,
ajaxUrl: "/Ajax.aspx?AVA.ResourcesPlatform.Ajax.Pub.AgentServerAjax.Delete",
ajaxData: "key=" + encodeURIComponent(key),
ajaxAsync: true,
ajaxFunSuccess: fun
}, send, target, html);
};
///
/// 转播服务 [Pub_AgentServer] 批量删除记录
///
AgentServerAjax.BatchDelete = function (key, send, fun, target, html) {
return Global.Ajax(
{
ajaxCache: false,
ajaxUrl: "/Ajax.aspx?AVA.ResourcesPlatform.Ajax.Pub.AgentServerAjax.BatchDelete",
ajaxData: key,
ajaxAsync: true,
ajaxFunSuccess: fun
}, send, target, html);
};
/*******************************************
* 以下为自定义方法
*******************************************/
///
/// 转播服务 [Pub_AgentServer] 状态
///
AgentServerAjax.ASStatus = function (key, send, fun, funError, target, html) {
return Global.Ajax(
{
ajaxCache: false,
ajaxUrl: "/Ajax.aspx?AVA.ResourcesPlatform.Ajax.Pub.AgentServerAjax.ASStatus",
ajaxData: "key=" + encodeURIComponent(key),
ajaxAsync: true,
ajaxFunSuccess: fun,
ajaxFunError:funError
}, send, target, html);
};