123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112 |
- $(function(){
- //修改表单信息,获取记录
- if((window.location.href).indexOf('?')>-1){
- var fd_id = (window.location.href).split('?')[1];
-
-
- $('#fileDiv').newAsyncFileUpload("",fd_id,0);
-
-
- var url = $.pathname() + '/ws/crud/CRUDService/getDataById/';
- var params = {
- classid : '260',
- objectID : fd_id
- };
- getFileList(fd_id,0);
- $.ajax({
- url : url,
- type : 'post',
- timeout : 60000,
- // async:false, //异步
- data : params,
- dataType : 'json',
- success : function(data){
-
- // $('#fillForm').ajaxWrite({data:data});
- // $('#fillForm input[name="classid"]').val('260');
- for(var i in data){
- $('#'+i).html(data[i]);
- }
- var COLUMN_1_260=data.COLUMN_1_260;
- var COLUMN_2_260 = data.COLUMN_2_260;
- var COLUMN_3_260 = data.COLUMN_3_260;
-
- if(COLUMN_1_260=="0"){
- getFileList(fd_id,0);
- }else{
- if(COLUMN_2_260=="0"){
- getFileList(COLUMN_3_260,0);
- }else{
- getFileList(fd_id,0);
- }
- }
-
- $("#TYPEIN_TIME").html(data.UPDATEDATE_260);
- typein(data.EXPERT_RESUME_260);
-
- },
- error : function(e){
- $.messager.alert('系统提示信息', '访问服务失败!', 'error');
- }
- });
-
- }
-
- $("#goback a img").hover(function(){
- $(this).attr("src","/nwyj/images/temp/back_hover.png");
- },function(){
- $(this).attr("src","/nwyj/images/temp/back.png");
- });
- setTimeout('setHight()', 200);
- });
- //录入人信息
- function typein(id){
- var url = $.pathname() + '/ws/crud/CRUDService/getDataById/';
- var params1 = {
- classid : '880',
- objectID : id
- };
- $.ajax({
- url : url,
- type : 'post',
- timeout : 60000,
- data : params1,
- async:false, //异步
- dataType : 'json',
- success : function(data){
- $("#TYPEIN_PEOPLE").html(data.REAL_NAME_880); //录入人
- $("#TYPEIN_PEOPLE_PHONE_NUM").html(data.MOBILE_880); //手机
- // $("#UNITE").html(data.COMPANY_ID_880_SHOW);//所属单位
- $("#DEPT").html(data.ORG_ID_880_SHOW);//所属部门
- getDeptName(data.DEPT_ID_880);
- },
- error : function(e){
- $.messager.alert('系统提示信息', '访问服务失败!', 'error');
- }
- });
- }
- function getDeptName(id){
-
- $.ajax({
- url : $.pathname()+ "/ws/DrillCount/DrillCountService/getDeptNameInfo",
- type : 'post',
- timeout : 60000,
- data : {id:id},
- dataType : 'text',
- success : function(data){
-
- $("#UNITE").html(data);
-
- }
- });
- }
- //返回
- function goBack() {
- window.location.href="expert-maintenance.jsp";
- }
- $.messager=top.Dialog;
|