viewXtgg.js 1011 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. function editXtgg(id, from) {
  2. huimv.loadPage('xtggRight', 'editXtgg.htm', {
  3. "id" : id,
  4. "from" : from
  5. });
  6. }
  7. /**
  8. * 作废系统公告
  9. * @param id
  10. */
  11. function disableXtgg(id) {
  12. Dialogs.alert("确定作废当前系统公告?", {
  13. title : '提示信息',
  14. width : 250,
  15. height : 80,
  16. top : 150,
  17. button : {
  18. ok : ['确定',function(){
  19. this.close();
  20. huimv.showProcessModel('处理数据中');
  21. jQuery.ajax({
  22. url : 'disableXtgg.htm',
  23. dataType : 'json',
  24. type : 'post',
  25. cache : false,
  26. data : {"id" : id},
  27. success : function(data) {
  28. huimv.hideProcessModel();
  29. if (data.returnCode > 0) {
  30. loadXtggList();
  31. } else {
  32. Dialogs.alert("传入参数有误!", {
  33. width : 300,
  34. height : 50
  35. });
  36. }
  37. },
  38. error : function(data) {
  39. huimv.showError(data.responseText);
  40. }
  41. });
  42. }],
  43. cancel : ['取消',function(){
  44. this.close();
  45. }]
  46. }
  47. });
  48. }