| | |
| | | var aws_result={}; |
| | | |
| | | jQuery(function(){ |
| | | var eles = document.getElementsByClassName("contact"); |
| | | for(let e of eles){ |
| | | let awsid = e.getAttribute('awsid'); |
| | | |
| | | jQuery("input.contact").each(function(){ |
| | | let awsid = this.getAttribute('awsid'); |
| | | if(awsid) awsids.push(awsid); |
| | | } |
| | | }) |
| | | |
| | | if(awsids.length > 0){ |
| | | AWSService.search(staticResource.searchUrl,JSON.stringify({dataIds:awsids}),function(result){ |
| | | if(result.status == '0' && result.object && result.object.length > 0){ |
| | | for(let obj of result.object){ |
| | | for(let obji in result.object){let obj=result.object[obji]; |
| | | jQuery("[awsid='"+obj.dataId + "']").val(obj.lastName); |
| | | } |
| | | } |