qyxxSearchModule.js 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. // 配置模块参数
  2. var mk_type = {
  3. FGF : '|' // 分隔符
  4. };
  5. // 搜索按钮点击执行方法
  6. $("#search").click(function() {
  7. execute('search');
  8. });
  9. function execute(searchId) {
  10. var result = "";
  11. if ($("#qymc").length > 0) {
  12. var qymc = $("#qymc").val();
  13. result += '{name:"qymc", value:"' + qymc + '"}';
  14. }
  15. var callBackFunName = $("#" + searchId).attr("callBackFunName"); // 获取传递过来的回调方法名称
  16. if (callBackFunName != "" && typeof (callBackFunName) != 'undefined') {
  17. var callBack = callBackFunName + '(result, "' + mk_type.FGF + '")';
  18. eval(callBack);
  19. }
  20. }
  21. // 新建
  22. function preAddQyxx() {
  23. huimv.loadPage('qyxxRight', 'editQyxx.htm', {"from" : "qyxxAdd"});
  24. }
  25. // 打印
  26. function prePrintQyxx() {
  27. window.open('getQyxxList.htm?preprint=preprint',
  28. 'newwindow',
  29. 'height=630, width=800, top=50, left=250, toolbar=no, menubar=no, scrollbars=yes, resizable=no,location=no, status=no');
  30. }
  31. // 导出
  32. function exportExcelQyxx() {
  33. if (confirm('是否确认导出为Excel?')) {
  34. window.open('getQyxxList.htm?exportExcel=exportExcel',
  35. 'newwindow',
  36. 'height=630, width=800, top=50, left=250, toolbar=no, menubar=no, scrollbars=yes, resizable=no,location=no, status=no');
  37. }
  38. }