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={
_get_path:function() {
 var p = this.get_path();
 if (p) return p;
 else return ASPTradex.Entech.EntechUtilities._staticInstance.get_path();},
GetSearchSuggestItems:function(sPrefixText,usePaging,pageIndex,pageSize,succeededCallback, failedCallback, userContext) {
return this._invoke(this._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(this._get_path(), 'GetCompletionList',false,{sPrefixText:sPrefixText,count:count},succeededCallback,failedCallback,userContext); },
GetCompletionList2:function(sPrefixText,count,succeededCallback, failedCallback, userContext) {
return this._invoke(this._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.set_path(value); }
ASPTradex.Entech.EntechUtilities.get_path = function() { return ASPTradex.Entech.EntechUtilities._staticInstance.get_path(); }
ASPTradex.Entech.EntechUtilities.set_timeout = function(value) { ASPTradex.Entech.EntechUtilities._staticInstance.set_timeout(value); }
ASPTradex.Entech.EntechUtilities.get_timeout = function() { return ASPTradex.Entech.EntechUtilities._staticInstance.get_timeout(); }
ASPTradex.Entech.EntechUtilities.set_defaultUserContext = function(value) { ASPTradex.Entech.EntechUtilities._staticInstance.set_defaultUserContext(value); }
ASPTradex.Entech.EntechUtilities.get_defaultUserContext = function() { return ASPTradex.Entech.EntechUtilities._staticInstance.get_defaultUserContext(); }
ASPTradex.Entech.EntechUtilities.set_defaultSucceededCallback = function(value) { ASPTradex.Entech.EntechUtilities._staticInstance.set_defaultSucceededCallback(value); }
ASPTradex.Entech.EntechUtilities.get_defaultSucceededCallback = function() { return ASPTradex.Entech.EntechUtilities._staticInstance.get_defaultSucceededCallback(); }
ASPTradex.Entech.EntechUtilities.set_defaultFailedCallback = function(value) { ASPTradex.Entech.EntechUtilities._staticInstance.set_defaultFailedCallback(value); }
ASPTradex.Entech.EntechUtilities.get_defaultFailedCallback = function() { return ASPTradex.Entech.EntechUtilities._staticInstance.get_defaultFailedCallback(); }
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); }
