viewCsjlcs.js 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. /**
  2. * 返回
  3. */
  4. function cancelCsjlcs() {
  5. loadCsjlcsRight();
  6. }
  7. /**
  8. * 修改
  9. */
  10. function editCsjlcs(id) {
  11. huimv.loadPage('yjsbRight', 'editCsjlcs.htm', {
  12. "id" : id
  13. });
  14. }
  15. /**
  16. * 作废
  17. * @param id
  18. */
  19. function disableSbcs(id) {
  20. Dialogs.alert("确定删除当前采食计量运行参数设置?", {
  21. title : '提示信息',
  22. width : 250,
  23. height : 80,
  24. top : 150,
  25. button : {
  26. ok : ['确定',function(){
  27. this.close();
  28. huimv.showProcessModel('处理数据中');
  29. jQuery.ajax({
  30. url : 'disableCsjlcs.htm',
  31. dataType : 'json',
  32. type : 'post',
  33. cache : false,
  34. data : {"id" : id},
  35. success : function(data) {
  36. huimv.hideProcessModel();
  37. if (data.returnCode > 0) {
  38. loadCsjlcsRight();
  39. } else {
  40. Dialogs.alert("传入参数有误!", {
  41. width : 300,
  42. height : 50
  43. });
  44. }
  45. },
  46. error : function(data) {
  47. huimv.showError(data.responseText);
  48. }
  49. });
  50. }],
  51. cancel : ['取消',function(){
  52. this.close();
  53. }]
  54. }
  55. });
  56. }