viewHjbjsjpz.js 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. /**
  2. * 编辑
  3. * @param id
  4. */
  5. function editHjbjsjpz(id, from){
  6. huimv.loadPage('hjbjcsRight', 'editHjbjsjpz.htm', {
  7. "id" : id,
  8. "from" : from
  9. });
  10. }
  11. /**
  12. * 作废代码列表
  13. * @param id
  14. */
  15. function disableHjbjsjpz(id,from) {
  16. Dialogs.alert("确定删除当前环境报警手机配置?", {
  17. title : '提示信息',
  18. width : 250,
  19. height : 80,
  20. top : 150,
  21. button : {
  22. ok : ['确定',function(){
  23. this.close();
  24. huimv.showProcessModel('处理数据中');
  25. jQuery.ajax({
  26. url : 'disableHjbjsjpz.htm',
  27. dataType : 'json',
  28. type : 'post',
  29. cache : false,
  30. data : {
  31. "id" : id,
  32. "from" : from
  33. },
  34. success : function(data) {
  35. huimv.hideProcessModel();
  36. if (data.returnCode > 0) {
  37. loadHjbjsjpzRight();
  38. } else {
  39. Dialogs.alert("传入参数有误!", {
  40. width : 300,
  41. height : 50
  42. });
  43. }
  44. },
  45. error : function(data) {
  46. huimv.showError(data.responseText);
  47. }
  48. });
  49. }],
  50. cancel : ['取消',function(){
  51. this.close();
  52. }]
  53. }
  54. });
  55. }