b1793ee9ef222c5d4050fb55825720eff51bb86c.svn-base 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112
  1. $(function(){
  2. //修改表单信息,获取记录
  3. if((window.location.href).indexOf('?')>-1){
  4. var fd_id = (window.location.href).split('?')[1];
  5. $('#fileDiv').newAsyncFileUpload("",fd_id,0);
  6. var url = $.pathname() + '/ws/crud/CRUDService/getDataById/';
  7. var params = {
  8. classid : '260',
  9. objectID : fd_id
  10. };
  11. getFileList(fd_id,0);
  12. $.ajax({
  13. url : url,
  14. type : 'post',
  15. timeout : 60000,
  16. // async:false, //异步
  17. data : params,
  18. dataType : 'json',
  19. success : function(data){
  20. // $('#fillForm').ajaxWrite({data:data});
  21. // $('#fillForm input[name="classid"]').val('260');
  22. for(var i in data){
  23. $('#'+i).html(data[i]);
  24. }
  25. var COLUMN_1_260=data.COLUMN_1_260;
  26. var COLUMN_2_260 = data.COLUMN_2_260;
  27. var COLUMN_3_260 = data.COLUMN_3_260;
  28. if(COLUMN_1_260=="0"){
  29. getFileList(fd_id,0);
  30. }else{
  31. if(COLUMN_2_260=="0"){
  32. getFileList(COLUMN_3_260,0);
  33. }else{
  34. getFileList(fd_id,0);
  35. }
  36. }
  37. $("#TYPEIN_TIME").html(data.UPDATEDATE_260);
  38. typein(data.EXPERT_RESUME_260);
  39. },
  40. error : function(e){
  41. $.messager.alert('系统提示信息', '访问服务失败!', 'error');
  42. }
  43. });
  44. }
  45. $("#goback a img").hover(function(){
  46. $(this).attr("src","/nwyj/images/temp/back_hover.png");
  47. },function(){
  48. $(this).attr("src","/nwyj/images/temp/back.png");
  49. });
  50. setTimeout('setHight()', 200);
  51. });
  52. //录入人信息
  53. function typein(id){
  54. var url = $.pathname() + '/ws/crud/CRUDService/getDataById/';
  55. var params1 = {
  56. classid : '880',
  57. objectID : id
  58. };
  59. $.ajax({
  60. url : url,
  61. type : 'post',
  62. timeout : 60000,
  63. data : params1,
  64. async:false, //异步
  65. dataType : 'json',
  66. success : function(data){
  67. $("#TYPEIN_PEOPLE").html(data.REAL_NAME_880); //录入人
  68. $("#TYPEIN_PEOPLE_PHONE_NUM").html(data.MOBILE_880); //手机
  69. // $("#UNITE").html(data.COMPANY_ID_880_SHOW);//所属单位
  70. $("#DEPT").html(data.ORG_ID_880_SHOW);//所属部门
  71. getDeptName(data.DEPT_ID_880);
  72. },
  73. error : function(e){
  74. $.messager.alert('系统提示信息', '访问服务失败!', 'error');
  75. }
  76. });
  77. }
  78. function getDeptName(id){
  79. $.ajax({
  80. url : $.pathname()+ "/ws/DrillCount/DrillCountService/getDeptNameInfo",
  81. type : 'post',
  82. timeout : 60000,
  83. data : {id:id},
  84. dataType : 'text',
  85. success : function(data){
  86. $("#UNITE").html(data);
  87. }
  88. });
  89. }
  90. //返回
  91. function goBack() {
  92. window.location.href="expert-maintenance.jsp";
  93. }
  94. $.messager=top.Dialog;