viewLqda.js 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. function editLqda(id, from, jsbz) {
  2. if (jsbz == 1) {
  3. alert("该栏期已经结束,无法修改!");
  4. return;
  5. }
  6. huimv.loadPage("lqdaRight", "editLqda.htm", {
  7. "id" : id,
  8. "from" : from
  9. });
  10. }
  11. /**
  12. * 作废栏期档案
  13. * @param lqid
  14. */
  15. function disableLqda(lqid) {
  16. var errMsg = document.getElementById('errMsg');
  17. jQuery.ajax({
  18. url: "isExistDw.htm",
  19. dataType: "text",
  20. type: "get",
  21. async: false,
  22. data: {"lqid" : lqid},
  23. success: function(data){
  24. errMsg.innerHTML = data;
  25. if (data == "") {
  26. Dialogs.alert("确定作废当前栏期档案?", {
  27. title : '提示信息',
  28. width : 250,
  29. height : 80,
  30. top : 150,
  31. button : {
  32. ok : ['确定',function() {
  33. this.close();
  34. huimv.showProcessModel('处理数据中');
  35. jQuery.ajax({
  36. url : 'disableLqda.htm',
  37. dataType : 'json',
  38. type : 'post',
  39. cache : false,
  40. data : {"id" : lqid},
  41. success : function(data) {
  42. huimv.hideProcessModel();
  43. if (data.returnCode > 0) {
  44. loadLqdaList();
  45. }
  46. },
  47. error : function(data) {
  48. huimv.showError(data.responseText);
  49. }
  50. });
  51. }],
  52. cancel : ['取消',function() {
  53. this.close();
  54. }]
  55. }
  56. });
  57. }
  58. }
  59. });
  60. }