Type.registerNamespace('ASPTradex.Entech');
ASPTradex.Entech.EntechUtilities=function() {
ASPTradex.Entech.EntechUtilities.initializeBase(this);
this._timeout = 0;
this._userContext = null;
this._succeeded = null;
this._failed = null;
}
ASPTradex.Entech.EntechUtilities.prototype={
GetSearchSuggestItems:function(sPrefixText,usePaging,pageIndex,pageSize,succeededCallback, failedCallback, userContext) {
return this._invoke(ASPTradex.Entech.EntechUtilities.get_path(), 'GetSearchSuggestItems',false,{sPrefixText:sPrefixText,usePaging:usePaging,pageIndex:pageIndex,pageSize:pageSize},succeededCallback,failedCallback,userContext); },
GetCompletionList:function(sPrefixText,count,succeededCallback, failedCallback, userContext) {
return this._invoke(ASPTradex.Entech.EntechUtilities.get_path(), 'GetCompletionList',false,{sPrefixText:sPrefixText,count:count},succeededCallback,failedCallback,userContext); },
GetCompletionList2:function(sPrefixText,count,succeededCallback, failedCallback, userContext) {
return this._invoke(ASPTradex.Entech.EntechUtilities.get_path(), 'GetCompletionList2',false,{sPrefixText:sPrefixText,count:count},succeededCallback,failedCallback,userContext); }}
ASPTradex.Entech.EntechUtilities.registerClass('ASPTradex.Entech.EntechUtilities',Sys.Net.WebServiceProxy);
ASPTradex.Entech.EntechUtilities._staticInstance = new ASPTradex.Entech.EntechUtilities();
ASPTradex.Entech.EntechUtilities.set_path = function(value) { ASPTradex.Entech.EntechUtilities._staticInstance._path = value; }
ASPTradex.Entech.EntechUtilities.get_path = function() { return ASPTradex.Entech.EntechUtilities._staticInstance._path; }
ASPTradex.Entech.EntechUtilities.set_timeout = function(value) { ASPTradex.Entech.EntechUtilities._staticInstance._timeout = value; }
ASPTradex.Entech.EntechUtilities.get_timeout = function() { return ASPTradex.Entech.EntechUtilities._staticInstance._timeout; }
ASPTradex.Entech.EntechUtilities.set_defaultUserContext = function(value) { ASPTradex.Entech.EntechUtilities._staticInstance._userContext = value; }
ASPTradex.Entech.EntechUtilities.get_defaultUserContext = function() { return ASPTradex.Entech.EntechUtilities._staticInstance._userContext; }
ASPTradex.Entech.EntechUtilities.set_defaultSucceededCallback = function(value) { ASPTradex.Entech.EntechUtilities._staticInstance._succeeded = value; }
ASPTradex.Entech.EntechUtilities.get_defaultSucceededCallback = function() { return ASPTradex.Entech.EntechUtilities._staticInstance._succeeded; }
ASPTradex.Entech.EntechUtilities.set_defaultFailedCallback = function(value) { ASPTradex.Entech.EntechUtilities._staticInstance._failed = value; }
ASPTradex.Entech.EntechUtilities.get_defaultFailedCallback = function() { return ASPTradex.Entech.EntechUtilities._staticInstance._failed; }
ASPTradex.Entech.EntechUtilities.set_path("/WebServices/EntechUtilities.asmx");
ASPTradex.Entech.EntechUtilities.GetSearchSuggestItems= function(sPrefixText,usePaging,pageIndex,pageSize,onSuccess,onFailed,userContext) {ASPTradex.Entech.EntechUtilities._staticInstance.GetSearchSuggestItems(sPrefixText,usePaging,pageIndex,pageSize,onSuccess,onFailed,userContext); }
ASPTradex.Entech.EntechUtilities.GetCompletionList= function(sPrefixText,count,onSuccess,onFailed,userContext) {ASPTradex.Entech.EntechUtilities._staticInstance.GetCompletionList(sPrefixText,count,onSuccess,onFailed,userContext); }
ASPTradex.Entech.EntechUtilities.GetCompletionList2= function(sPrefixText,count,onSuccess,onFailed,userContext) {ASPTradex.Entech.EntechUtilities._staticInstance.GetCompletionList2(sPrefixText,count,onSuccess,onFailed,userContext); }
