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