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; }, methodInsert:function(url,data,callback){ // var functionUrl = "sale/ypffscDelivery/save" // ServiceOperation.send(ServiceOperation.MethodPost, ServiceOperation.getFullUrl(functionUrl),dictmentitem,true,callback,true,true); var ret = null; var functionUrl = url; ServiceOperation.send(ServiceOperation.MethodPost, ServiceOperation.getFullUrl(functionUrl),data, true, callback, true, true); return ret; } }