12345678910111213141516171819202122232425262728 |
- var getService={
- methodGet:function(url){
- var ret = null;
- var functionUrl = url;
- ServiceOperation.send(ServiceOperation.MethodGet, ServiceOperation.getFullUrl(functionUrl),"", false, function(data){
- if(!data.success){
- alert(data.message);
- }else{
- ret = data.result;
- }
- }, false, false);
- return ret;
- },
- methodPost:function(url){
- var ret = null;
- var functionUrl = url;
- ServiceOperation.send(ServiceOperation.MethodPost, ServiceOperation.getFullUrl(functionUrl),"", false, function(data){
- // if(!data.success){
- // DialogOperation.alertDialog(data.message);
- // }else{
- // ret = data.result;
- // }
- ret = data
- }, false, false);
- return ret;
- }
- }
|