venderList.js 1003 B

12345678910111213141516171819202122232425262728293031
  1. $(function() {
  2. //实例化查询表单,当前页面只能实例化一次
  3. var searchForm = $("#searchForm").searchForm();
  4. //实例化实体List
  5. $.VenderList = new $.AbstractList({
  6. entity : "Vender",
  7. id : "venderId",
  8. searchForm : searchForm,
  9. functionId : functionId,
  10. showExportButton : true,
  11. showTopic : true,
  12. autoLoad : false
  13. });
  14. $.fn.extend($.VenderList, {// 扩展或重写方法
  15. sync : function() {
  16. ajaxRequest(WEBROOT + "/Vender/doSync.action", {}, function(data) {
  17. showMsg('提示', '同步成功');
  18. });
  19. }
  20. });
  21. if (!$.isEmpty(buttonData)) {
  22. //构建权限按钮
  23. var jsonButtons = JSON.parse(buttonData);
  24. $.buildToolbar($("#toolbar"), jsonButtons);
  25. };
  26. $("#btnSearch").bind("click", $.proxy($.VenderList.quickSearch, $.VenderList));
  27. $("#btnReset").bind("click", $.proxy($.VenderList.reset, $.VenderList));
  28. });