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