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