///
/// 录播设备 [Pub_RecordEquipment] Ajax提交类
///
var RecordEquipmentAjax = new Object();
///
/// 录播设备 [Pub_RecordEquipment] 获取记录信息
///
RecordEquipmentAjax.GetInfo = function (key, send, fun, target, html) {
return Global.Ajax(
{
ajaxCache: false,
ajaxUrl: "/Ajax.aspx?AVA.ResourcesPlatform.Ajax.Pub.RecordEquipmentAjax.Get",
ajaxData: "key=" + encodeURIComponent(key),
ajaxAsync: true,
ajaxFunSuccess: fun
}, send, target, html);
};
///
/// 录播设备 [Pub_RecordEquipment] 添加记录
///
RecordEquipmentAjax.Insert = function (form, send, fun, target, html) {
return Global.Ajax(
{
ajaxCache: false,
ajaxUrl: "/Ajax.aspx?AVA.ResourcesPlatform.Ajax.Pub.RecordEquipmentAjax.Insert",
ajaxData: Global.GetFormValue(form),
ajaxAsync: true,
ajaxFunSuccess: fun
}, send, target, html);
};
///
/// 录播设备 [Pub_RecordEquipment] 修改记录
///
RecordEquipmentAjax.Update = function (form, send, fun, target, html) {
return Global.Ajax(
{
ajaxCache: false,
ajaxUrl: "/Ajax.aspx?AVA.ResourcesPlatform.Ajax.Pub.RecordEquipmentAjax.Update",
ajaxData: Global.GetFormValue(form),
ajaxAsync: true,
ajaxFunSuccess: fun
}, send, target, html);
};
///
/// 录播设备 [Pub_RecordEquipment] 删除记录
///
RecordEquipmentAjax.Delete = function(key, send, fun, target, html) {
return Global.Ajax(
{
ajaxCache: false,
ajaxUrl: "/Ajax.aspx?AVA.ResourcesPlatform.Ajax.Pub.RecordEquipmentAjax.Delete",
ajaxData: "key=" + encodeURIComponent(key),
ajaxAsync: true,
ajaxFunSuccess: fun
}, send, target, html);
};
///
/// 录播设备 [Pub_RecordEquipment] 批量删除记录
///
RecordEquipmentAjax.BatchDelete = function (key, send, fun, target, html) {
return Global.Ajax(
{
ajaxCache: false,
ajaxUrl: "/Ajax.aspx?AVA.ResourcesPlatform.Ajax.Pub.RecordEquipmentAjax.BatchDelete",
ajaxData: key,
ajaxAsync: true,
ajaxFunSuccess: fun
}, send, target, html);
};
/*******************************************
* 以下为自定义方法
*******************************************/
///
/// 课室表 [Pub_RecordEquipment] 获取记录信息
///
RecordEquipmentAjax.GetRecordEquipmentStatus = function (key, send, fun, target, html) {
return Global.Ajax(
{
ajaxCache: false,
ajaxUrl: "/Ajax.aspx?AVA.ResourcesPlatform.Ajax.Pub.RecordEquipmentAjax.GetRecordEquipmentStatus",
ajaxData: "key=" + encodeURIComponent(key),
ajaxAsync: true,
ajaxMark: false,
ajaxFunSuccess: fun
}, send, target, html);
};
///
/// 课室表 [Pub_RecordEquipment] 启动
///
RecordEquipmentAjax.StartRecordForApp = function (pkid, vga, video2, send, fun, target, html) {
return Global.Ajax(
{
ajaxCache: false,
ajaxUrl: "/Ajax.aspx?AVA.ResourcesPlatform.Ajax.Pub.RecordEquipmentAjax.StartRecordForApp",
ajaxData: "pkid=" + encodeURIComponent(pkid) + "&vga=" + encodeURIComponent(vga) + "&video2=" + encodeURIComponent(video2),
ajaxAsync: true,
ajaxFunSuccess: fun
}, send, target, html);
};
///
/// 课室表 [Pub_RecordEquipment] 停止
///
RecordEquipmentAjax.EndRecordForApp = function (pkid, send, fun, target, html) {
return Global.Ajax(
{
ajaxCache: false,
ajaxUrl: "/Ajax.aspx?AVA.ResourcesPlatform.Ajax.Pub.RecordEquipmentAjax.EndRecordForApp",
ajaxData: "pkid=" + encodeURIComponent(pkid),
ajaxAsync: true,
ajaxFunSuccess: fun
}, send, target, html);
};
///
/// 录播设备转播 [Pub_RecordEquipment] 修改记录
///
RecordEquipmentAjax.UpdateAS = function (form, send, fun, target, html) {
return Global.Ajax(
{
ajaxCache: false,
ajaxUrl: "/Ajax.aspx?AVA.ResourcesPlatform.Ajax.Pub.RecordEquipmentAjax.UpdateAS",
ajaxData: Global.GetFormValue(form),
ajaxAsync: true,
ajaxFunSuccess: fun
}, send, target, html);
};
///
/// 课室表 [Pub_RecordEquipment] 关机
///
RecordEquipmentAjax.SHUTDOWN = function (key, send, fun, target, html) {
return Global.Ajax(
{
ajaxCache: false,
ajaxUrl: "/Ajax.aspx?AVA.ResourcesPlatform.Ajax.Pub.RecordEquipmentAjax.SHUTDOWN",
ajaxData: "key=" + encodeURIComponent(key),
ajaxAsync: true,
ajaxMark: false,
ajaxFunSuccess: fun
}, send, target, html);
};
///
/// 课室表 [Pub_RecordEquipment] 休眠
///
RecordEquipmentAjax.SLEEP = function (key, send, fun, target, html) {
return Global.Ajax(
{
ajaxCache: false,
ajaxUrl: "/Ajax.aspx?AVA.ResourcesPlatform.Ajax.Pub.RecordEquipmentAjax.SLEEP",
ajaxData: "key=" + encodeURIComponent(key),
ajaxAsync: true,
ajaxMark: false,
ajaxFunSuccess: fun
}, send, target, html);
};
///
/// 课室表 [Pub_RecordEquipment] 唤醒
///
RecordEquipmentAjax.WAKE_MACHINE = function (key, send, fun, target, html) {
return Global.Ajax(
{
ajaxCache: false,
ajaxUrl: "/Ajax.aspx?AVA.ResourcesPlatform.Ajax.Pub.RecordEquipmentAjax.WAKE_MACHINE",
ajaxData: "key=" + encodeURIComponent(key),
ajaxAsync: true,
ajaxMark: false,
ajaxFunSuccess: fun
}, send, target, html);
};