12345678910111213141516171819202122232425262728293031 |
- $(function() {
- //实例化查询表单,当前页面只能实例化一次
- var searchForm = $("#searchForm").searchForm();
- //实例化实体List
- $.VenderList = new $.AbstractList({
- entity : "Vender",
- id : "venderId",
- searchForm : searchForm,
- functionId : functionId,
- showExportButton : true,
- showTopic : true,
- autoLoad : false
- });
-
- $.fn.extend($.VenderList, {// 扩展或重写方法
- sync : function() {
- ajaxRequest(WEBROOT + "/Vender/doSync.action", {}, function(data) {
- showMsg('提示', '同步成功');
- });
- }
- });
- if (!$.isEmpty(buttonData)) {
- //构建权限按钮
- var jsonButtons = JSON.parse(buttonData);
- $.buildToolbar($("#toolbar"), jsonButtons);
- };
- $("#btnSearch").bind("click", $.proxy($.VenderList.quickSearch, $.VenderList));
- $("#btnReset").bind("click", $.proxy($.VenderList.reset, $.VenderList));
- });
|