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