slxhtjtList.js 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. var slxhtjt = new Object();
  2. slxhtjt.loadSearchModule = function(p) {
  3. var $div = $("#" + p.id);
  4. if ($div.length > 0) {
  5. $div.load('slxhtjtSearchModule.htm', {
  6. from : p.from,
  7. mcid : $("#mcid").val(),
  8. zsid : $("#zsid").val(),
  9. lqid : $("#lqid").val(),
  10. lqmc : $("#lqtxt").val(),
  11. callBackFunName : p.callBackFunName,
  12. 'slxhtjtSearchGrid' : $("#slxhtjtSearchGrid").val()
  13. }, function() {
  14. });
  15. }
  16. };
  17. /**
  18. * 加载养殖概况查询模块
  19. */
  20. slxhtjt.loadSearchModule({
  21. id : 'slxhtjtSearchModule',
  22. from : 'slxhtjt',
  23. callBackFunName : 'searchslxhtjtCallBack'
  24. });
  25. /**
  26. * 搜索条件回调函数
  27. *
  28. * @param {搜索条件对象}
  29. * data
  30. * @param {分隔符}
  31. * fgf
  32. */
  33. function searchslxhtjtCallBack(data, fgf, xhms) {
  34. var url = "";
  35. if (xhms == 1) {
  36. url = "qcxhTjt.htm";
  37. }
  38. if (xhms == 2) {
  39. url = "mtxhTjt.htm";
  40. }
  41. jQuery("#slxhtjtDiv").load(url, {
  42. param : data,
  43. fgf : fgf
  44. });
  45. }
  46. /**
  47. * 加载系统参数列表数据
  48. */
  49. function loadslxhtjtGrid(slxhtjtSearchGrid) {
  50. jQuery("#slxhtjtDiv").load("qcxhTjt.htm");
  51. }
  52. loadslxhtjtGrid($('#slxhtjtSearchGrid'));