87a686feeebc880c200001bbc436786acb268fac.svn-base 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  1. //2015-09-29 可以取到父页面的预案ID
  2. var sub_fd_id1 ="";
  3. //取页面传过来的预案主键ID
  4. sub_fd_id1 = parent.sub_fd_id;
  5. $(function(){
  6. var url = $.pathname()
  7. + "/ws/sendmenu/SendMsgService/PlanInfo";
  8. var params = {
  9. file_id : sub_fd_id1,
  10. grade_type:'5_1',
  11. };
  12. $.ajax({
  13. url : url,
  14. type : 'post',
  15. timeout : 12000,
  16. data : params,
  17. dataType : 'json',
  18. success : function(data) {
  19. var FRIST_GRADE = data.rows[0].FRIST_GRADE;//FRIST_GRADE
  20. var temp = FRIST_GRADE.split("||");
  21. var FIRST_DEPT = temp[0];
  22. var FIRST_TEAM = temp[1];
  23. var FIRST_EXPERT = temp[2];
  24. var SECOND_GRADE = data.rows[0].SECOND_GRADE;
  25. var temp1 = SECOND_GRADE.split("||");
  26. var SECOND_DEPT = temp1[0];
  27. var SECOND_TEAM = temp1[1];
  28. var SECOND_EXPERT = temp1[2];
  29. var THRID_GRADE = data.rows[0].THRID_GRADE;
  30. var temp2 = THRID_GRADE.split("||");
  31. var THIRD_DEPT = temp2[0];
  32. var THIRD_TEAM = temp2[1];
  33. var THIRD_EXPERT = temp2[2];
  34. var FOURTH_GRADE = data.rows[0].FOURTH_GRADE;
  35. var temp3 = FOURTH_GRADE.split("||");
  36. var FOURTH_DEPT = temp3[0];
  37. var FOURTH_TEAM = temp3[1];
  38. var FOURTH_EXPERT = temp3[2];
  39. $("#FIRST_DEPT").val(FIRST_DEPT);
  40. $("#FIRST_TEAM").val(FIRST_TEAM);
  41. $("#FIRST_EXPERT").val(FIRST_EXPERT);
  42. $("#SECOND_DEPT").val(SECOND_DEPT);
  43. $("#SECOND_TEAM").val(SECOND_TEAM);
  44. $("#SECOND_EXPERT").val(SECOND_EXPERT);
  45. $("#THIRD_DEPT").val(THIRD_DEPT);
  46. $("#THIRD_TEAM").val(THIRD_TEAM);
  47. $("#THIRD_EXPERT").val(THIRD_EXPERT);
  48. $("#FOURTH_DEPT").val(FOURTH_DEPT);
  49. $("#FOURTH_TEAM").val(FOURTH_TEAM);
  50. $("#FOURTH_EXPERT").val(FOURTH_EXPERT);
  51. for ( var i in data) {
  52. $('#' + i).html(data[i]);
  53. }
  54. $("#infotab").init();
  55. },
  56. error : function(e) {
  57. $.messager.alert('系统提示信息', '访问服务失败!', 'error');
  58. }
  59. });
  60. //查询信息
  61. /* var url = $.pathname() + '/ws/crud/CRUDService/getDataById/';
  62. var params = {
  63. classid : '215',
  64. objectID : sub_fd_id
  65. };
  66. $.ajax({
  67. url : url,
  68. type : 'post',
  69. timeout : 60000,
  70. async:false, //异步
  71. data : params,
  72. dataType : 'json',
  73. success : function(data){
  74. $('#fillForm').ajaxWrite({data:data});
  75. $('#fillForm input[name="classid"]').val('215');
  76. },
  77. error : function(e){
  78. $.messager.alert('系统提示信息', '访问服务失败!', 'error');
  79. }
  80. });
  81. */}
  82. );
  83. $.messager=top.Dialog;