var CompanyService=function() {
CompanyService.initializeBase(this);
this._timeout = 0;
this._userContext = null;
this._succeeded = null;
this._failed = null;
}
CompanyService.prototype={
_get_path:function() {
 var p = this.get_path();
 if (p) return p;
 else return CompanyService._staticInstance.get_path();},
GetCategoriesListDisplay:function(ids,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'GetCategoriesListDisplay',false,{ids:ids},succeededCallback,failedCallback,userContext); },
AddEnterprise:function(name,description,regionTitle,regionId,locationTitle,locationId,sectorId,sectorTitle,street,house,block,categories,phones,email,url,logo,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'AddEnterprise',false,{name:name,description:description,regionTitle:regionTitle,regionId:regionId,locationTitle:locationTitle,locationId:locationId,sectorId:sectorId,sectorTitle:sectorTitle,street:street,house:house,block:block,categories:categories,phones:phones,email:email,url:url,logo:logo},succeededCallback,failedCallback,userContext); },
AddPhone:function(text,selectedValue,hfValue,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'AddPhone',false,{text:text,selectedValue:selectedValue,hfValue:hfValue},succeededCallback,failedCallback,userContext); },
GetPhonesListDisplay:function(succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'GetPhonesListDisplay',false,{},succeededCallback,failedCallback,userContext); },
GetCompanyControlContent:function(userId,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'GetCompanyControlContent',false,{userId:userId},succeededCallback,failedCallback,userContext); },
GetSubCategories:function(parentCategoryId,selCategory,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'GetSubCategories',false,{parentCategoryId:parentCategoryId,selCategory:selCategory},succeededCallback,failedCallback,userContext); }}
CompanyService.registerClass('CompanyService',Sys.Net.WebServiceProxy);
CompanyService._staticInstance = new CompanyService();
CompanyService.set_path = function(value) { CompanyService._staticInstance.set_path(value); }
CompanyService.get_path = function() { return CompanyService._staticInstance.get_path(); }
CompanyService.set_timeout = function(value) { CompanyService._staticInstance.set_timeout(value); }
CompanyService.get_timeout = function() { return CompanyService._staticInstance.get_timeout(); }
CompanyService.set_defaultUserContext = function(value) { CompanyService._staticInstance.set_defaultUserContext(value); }
CompanyService.get_defaultUserContext = function() { return CompanyService._staticInstance.get_defaultUserContext(); }
CompanyService.set_defaultSucceededCallback = function(value) { CompanyService._staticInstance.set_defaultSucceededCallback(value); }
CompanyService.get_defaultSucceededCallback = function() { return CompanyService._staticInstance.get_defaultSucceededCallback(); }
CompanyService.set_defaultFailedCallback = function(value) { CompanyService._staticInstance.set_defaultFailedCallback(value); }
CompanyService.get_defaultFailedCallback = function() { return CompanyService._staticInstance.get_defaultFailedCallback(); }
CompanyService.set_enableJsonp = function(value) { CompanyService._staticInstance.set_enableJsonp(value); }
CompanyService.get_enableJsonp = function() { return CompanyService._staticInstance.get_enableJsonp(); }
CompanyService.set_jsonpCallbackParameter = function(value) { CompanyService._staticInstance.set_jsonpCallbackParameter(value); }
CompanyService.get_jsonpCallbackParameter = function() { return CompanyService._staticInstance.get_jsonpCallbackParameter(); }
CompanyService.set_path("/ws/CompanyService.asmx");
CompanyService.GetCategoriesListDisplay= function(ids,onSuccess,onFailed,userContext) {CompanyService._staticInstance.GetCategoriesListDisplay(ids,onSuccess,onFailed,userContext); }
CompanyService.AddEnterprise= function(name,description,regionTitle,regionId,locationTitle,locationId,sectorId,sectorTitle,street,house,block,categories,phones,email,url,logo,onSuccess,onFailed,userContext) {CompanyService._staticInstance.AddEnterprise(name,description,regionTitle,regionId,locationTitle,locationId,sectorId,sectorTitle,street,house,block,categories,phones,email,url,logo,onSuccess,onFailed,userContext); }
CompanyService.AddPhone= function(text,selectedValue,hfValue,onSuccess,onFailed,userContext) {CompanyService._staticInstance.AddPhone(text,selectedValue,hfValue,onSuccess,onFailed,userContext); }
CompanyService.GetPhonesListDisplay= function(onSuccess,onFailed,userContext) {CompanyService._staticInstance.GetPhonesListDisplay(onSuccess,onFailed,userContext); }
CompanyService.GetCompanyControlContent= function(userId,onSuccess,onFailed,userContext) {CompanyService._staticInstance.GetCompanyControlContent(userId,onSuccess,onFailed,userContext); }
CompanyService.GetSubCategories= function(parentCategoryId,selCategory,onSuccess,onFailed,userContext) {CompanyService._staticInstance.GetSubCategories(parentCategoryId,selCategory,onSuccess,onFailed,userContext); }
