///
/// 录制视频 [Pub_RecordVideo] Ajax提交类
///
var RecordVideoAjax = new Object();
///
/// 录制视频 [Pub_RecordVideo] 获取记录信息
///
RecordVideoAjax.GetInfo = function (key, send, fun, target, html) {
return Global.Ajax(
{
ajaxCache: false,
ajaxUrl: "/Ajax.aspx?AVA.ResourcesPlatform.Ajax.Pub.RecordVideoAjax.Get",
ajaxData: "key=" + encodeURIComponent(key),
ajaxAsync: true,
ajaxFunSuccess: fun
}, send, target, html);
};
///
/// 录制视频 [Pub_RecordVideo] 添加记录
///
RecordVideoAjax.Insert = function (form, send, fun, target, html) {
return Global.Ajax(
{
ajaxCache: false,
ajaxUrl: "/Ajax.aspx?AVA.ResourcesPlatform.Ajax.Pub.RecordVideoAjax.Insert",
ajaxData: Global.GetFormValue(form),
ajaxAsync: true,
ajaxFunSuccess: fun
}, send, target, html);
};
///
/// 录制视频 [Pub_RecordVideo] 修改记录
///
RecordVideoAjax.Update = function (form, send, fun, target, html) {
return Global.Ajax(
{
ajaxCache: false,
ajaxUrl: "/Ajax.aspx?AVA.ResourcesPlatform.Ajax.Pub.RecordVideoAjax.Update",
ajaxData: Global.GetFormValue(form),
ajaxAsync: true,
ajaxFunSuccess: fun
}, send, target, html);
};
///
/// 录制视频 [Pub_RecordVideo] 删除记录
///
RecordVideoAjax.Delete = function(key, send, fun, target, html) {
return Global.Ajax(
{
ajaxCache: false,
ajaxUrl: "/Ajax.aspx?AVA.ResourcesPlatform.Ajax.Pub.RecordVideoAjax.Delete",
ajaxData: "key=" + encodeURIComponent(key),
ajaxAsync: true,
ajaxFunSuccess: fun
}, send, target, html);
};
///
/// 录制视频 [Pub_RecordVideo] 批量删除记录
///
RecordVideoAjax.BatchDelete = function (key, send, fun, target, html) {
return Global.Ajax(
{
ajaxCache: false,
ajaxUrl: "/Ajax.aspx?AVA.ResourcesPlatform.Ajax.Pub.RecordVideoAjax.BatchDelete",
ajaxData: key,
ajaxAsync: true,
ajaxFunSuccess: fun
}, send, target, html);
};
/*******************************************
* 以下为自定义方法
*******************************************/
///
/// 录制视频表 [Pub_RecordVideo] 下载记录
///
RecordVideoAjax.Download = function (key, send, fun, target, html) {
return Global.Ajax(
{
ajaxCache: false,
ajaxUrl: "/Ajax.aspx?AVA.ResourcesPlatform.Ajax.Pub.RecordVideoAjax.Download",
ajaxData: "key=" + encodeURIComponent(key),
ajaxAsync: true,
ajaxFunSuccess: fun
}, send, target, html);
};
RecordVideoAjax.ConvertToVideo = function (key, send, fun, target, html) {
return Global.Ajax(
{
ajaxCache: false,
ajaxUrl: "/Ajax.aspx?AVA.ResourcesPlatform.Ajax.Pub.RecordVideoAjax.ConvertToVideo",
ajaxData: "key=" + encodeURIComponent(key),
ajaxAsync: true,
ajaxFunSuccess: fun
}, send, target, html);
};
///
/// 录制视频表 [Pub_RecordVideo] 取当前知识点信息
///
RecordVideoAjax.GetSecondTimeInfo = function (guid, second, send, fun, target, html) {
return Global.Ajax(
{
ajaxCache: false,
ajaxUrl: "/Ajax.aspx?AVA.ResourcesPlatform.Ajax.Pub.RecordVideoAjax.GetSecondTimeInfo",
ajaxData: "guid=" + encodeURIComponent(guid) + "&second=" + encodeURIComponent(second),
ajaxAsync: true,
ajaxFunSuccess: fun,
ajaxMark: false
}, send, target, html);
};