Type.registerNamespace('ws');
ws.CommonServices=function() {
ws.CommonServices.initializeBase(this);
this._timeout = 0;
this._userContext = null;
this._succeeded = null;
this._failed = null;
}
ws.CommonServices.prototype={
_get_path:function() {
 var p = this.get_path();
 if (p) return p;
 else return ws.CommonServices._staticInstance.get_path();},
GetAmaLitterature:function(succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'GetAmaLitterature',false,{},succeededCallback,failedCallback,userContext); },
getSenasteNytt:function(succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'getSenasteNytt',false,{},succeededCallback,failedCallback,userContext); },
getFaq:function(succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'getFaq',false,{},succeededCallback,failedCallback,userContext); },
getVadArAma:function(succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'getVadArAma',false,{},succeededCallback,failedCallback,userContext); },
getHelp:function(succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'getHelp',false,{},succeededCallback,failedCallback,userContext); },
getHelpBetalsidor:function(succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'getHelpBetalsidor',false,{},succeededCallback,failedCallback,userContext); },
getArticle:function(ArticleId,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'getArticle',false,{ArticleId:ArticleId},succeededCallback,failedCallback,userContext); },
getSearchWord:function(word,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'getSearchWord',false,{word:word},succeededCallback,failedCallback,userContext); },
LoginUser:function(UserName,Password,autoLogin,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'LoginUser',false,{UserName:UserName,Password:Password,autoLogin:autoLogin},succeededCallback,failedCallback,userContext); },
LogoutUser:function(succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'LogoutUser',false,{},succeededCallback,failedCallback,userContext); },
GetExternalnews:function(Startposition,Count,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'GetExternalnews',false,{Startposition:Startposition,Count:Count},succeededCallback,failedCallback,userContext); },
GetMoreNews:function(succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'GetMoreNews',false,{},succeededCallback,failedCallback,userContext); },
GetSisStandard:function(Standard,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'GetSisStandard',false,{Standard:Standard},succeededCallback,failedCallback,userContext); },
GetMenuItems:function(Fackomrade,Sortorder,DistId,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'GetMenuItems',false,{Fackomrade:Fackomrade,Sortorder:Sortorder,DistId:DistId},succeededCallback,failedCallback,userContext); },
GetTreeNodes:function(ParentId,DistId,NodeLevel,AutoExpand,pUrvalId,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'GetTreeNodes',false,{ParentId:ParentId,DistId:DistId,NodeLevel:NodeLevel,AutoExpand:AutoExpand,pUrvalId:pUrvalId},succeededCallback,failedCallback,userContext); },
GetTreeNodesCustom:function(ParentId,pUrvalId,NodeLevel,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'GetTreeNodesCustom',false,{ParentId:ParentId,pUrvalId:pUrvalId,NodeLevel:NodeLevel},succeededCallback,failedCallback,userContext); },
GetTreeWrapper:function(ParentId,pUrvalId,DistId,NodeLevel,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'GetTreeWrapper',false,{ParentId:ParentId,pUrvalId:pUrvalId,DistId:DistId,NodeLevel:NodeLevel},succeededCallback,failedCallback,userContext); },
getTreeModalText:function(KlassKod,pubs,activePubs,DistId,pUrvalid,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'getTreeModalText',false,{KlassKod:KlassKod,pubs:pubs,activePubs:activePubs,DistId:DistId,pUrvalid:pUrvalid},succeededCallback,failedCallback,userContext); },
getUrvalDialog:function(pUrvalId,CodesToAdd,Type,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'getUrvalDialog',false,{pUrvalId:pUrvalId,CodesToAdd:CodesToAdd,Type:Type},succeededCallback,failedCallback,userContext); },
getAddToUrvalDialog:function(pUrvalId,CodesToAdd,Type,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'getAddToUrvalDialog',false,{pUrvalId:pUrvalId,CodesToAdd:CodesToAdd,Type:Type},succeededCallback,failedCallback,userContext); },
getCopyUrvalDialog:function(pUrvalId,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'getCopyUrvalDialog',false,{pUrvalId:pUrvalId},succeededCallback,failedCallback,userContext); },
PersUrvalSave:function(pUrvalId,KategoriId,pUrvalNamn,pUrvalBeskrivning,pUrvalDelat,Type,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'PersUrvalSave',false,{pUrvalId:pUrvalId,KategoriId:KategoriId,pUrvalNamn:pUrvalNamn,pUrvalBeskrivning:pUrvalBeskrivning,pUrvalDelat:pUrvalDelat,Type:Type},succeededCallback,failedCallback,userContext); },
AddCategorySave:function(KategoriNamn,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'AddCategorySave',false,{KategoriNamn:KategoriNamn},succeededCallback,failedCallback,userContext); },
ReloadCategoryList:function(SelectedCategoryId,AnvId,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'ReloadCategoryList',false,{SelectedCategoryId:SelectedCategoryId,AnvId:AnvId},succeededCallback,failedCallback,userContext); },
flyttaUrvalTillKatalog:function(KatalogId,UrvalId,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'flyttaUrvalTillKatalog',false,{KatalogId:KatalogId,UrvalId:UrvalId},succeededCallback,failedCallback,userContext); },
ReloadMenyUrval:function(succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'ReloadMenyUrval',false,{},succeededCallback,failedCallback,userContext); },
AddCodesToUrval:function(UrvalId,CodeString,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'AddCodesToUrval',false,{UrvalId:UrvalId,CodeString:CodeString},succeededCallback,failedCallback,userContext); },
DeleteUrval:function(pUrvalId,Type,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'DeleteUrval',false,{pUrvalId:pUrvalId,Type:Type},succeededCallback,failedCallback,userContext); },
GetCmsText:function(ArticleId,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'GetCmsText',false,{ArticleId:ArticleId},succeededCallback,failedCallback,userContext); },
GetKoderOchRubriker:function(Fackomrade,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'GetKoderOchRubriker',false,{Fackomrade:Fackomrade},succeededCallback,failedCallback,userContext); },
GetKomplementBanverket:function(succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'GetKomplementBanverket',false,{},succeededCallback,failedCallback,userContext); },
GetKomplementVagverket:function(succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'GetKomplementVagverket',false,{},succeededCallback,failedCallback,userContext); },
DeleteCodesFromUrval:function(CodesToDelete,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'DeleteCodesFromUrval',false,{CodesToDelete:CodesToDelete},succeededCallback,failedCallback,userContext); },
SendFeedback:function(Name,Phone,Email,Message,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'SendFeedback',false,{Name:Name,Phone:Phone,Email:Email,Message:Message},succeededCallback,failedCallback,userContext); },
showDialogPod:function(pUrvalId,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'showDialogPod',false,{pUrvalId:pUrvalId},succeededCallback,failedCallback,userContext); },
PodCalculatePrice:function(pUrvalId,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'PodCalculatePrice',false,{pUrvalId:pUrvalId},succeededCallback,failedCallback,userContext); },
PodSaveDialogInfo:function(pUrvalId,ForPrint,ForPdf,Title,Subtitle,Creator,Foreword,A4,A5,TextAma,TextRa,TextMer,TextAmaNytt,Cover,FreeSample,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'PodSaveDialogInfo',false,{pUrvalId:pUrvalId,ForPrint:ForPrint,ForPdf:ForPdf,Title:Title,Subtitle:Subtitle,Creator:Creator,Foreword:Foreword,A4:A4,A5:A5,TextAma:TextAma,TextRa:TextRa,TextMer:TextMer,TextAmaNytt:TextAmaNytt,Cover:Cover,FreeSample:FreeSample},succeededCallback,failedCallback,userContext); },
PodGeneratePreview:function(pUrvalId,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'PodGeneratePreview',false,{pUrvalId:pUrvalId},succeededCallback,failedCallback,userContext); },
ReloadLoginstatus:function(succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'ReloadLoginstatus',false,{},succeededCallback,failedCallback,userContext); },
GetSearchResult:function(Query,SearchIndex,Navigators,Offset,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'GetSearchResult',false,{Query:Query,SearchIndex:SearchIndex,Navigators:Navigators,Offset:Offset},succeededCallback,failedCallback,userContext); }}
ws.CommonServices.registerClass('ws.CommonServices',Sys.Net.WebServiceProxy);
ws.CommonServices._staticInstance = new ws.CommonServices();
ws.CommonServices.set_path = function(value) { ws.CommonServices._staticInstance.set_path(value); }
ws.CommonServices.get_path = function() { return ws.CommonServices._staticInstance.get_path(); }
ws.CommonServices.set_timeout = function(value) { ws.CommonServices._staticInstance.set_timeout(value); }
ws.CommonServices.get_timeout = function() { return ws.CommonServices._staticInstance.get_timeout(); }
ws.CommonServices.set_defaultUserContext = function(value) { ws.CommonServices._staticInstance.set_defaultUserContext(value); }
ws.CommonServices.get_defaultUserContext = function() { return ws.CommonServices._staticInstance.get_defaultUserContext(); }
ws.CommonServices.set_defaultSucceededCallback = function(value) { ws.CommonServices._staticInstance.set_defaultSucceededCallback(value); }
ws.CommonServices.get_defaultSucceededCallback = function() { return ws.CommonServices._staticInstance.get_defaultSucceededCallback(); }
ws.CommonServices.set_defaultFailedCallback = function(value) { ws.CommonServices._staticInstance.set_defaultFailedCallback(value); }
ws.CommonServices.get_defaultFailedCallback = function() { return ws.CommonServices._staticInstance.get_defaultFailedCallback(); }
ws.CommonServices.set_enableJsonp = function(value) { ws.CommonServices._staticInstance.set_enableJsonp(value); }
ws.CommonServices.get_enableJsonp = function() { return ws.CommonServices._staticInstance.get_enableJsonp(); }
ws.CommonServices.set_jsonpCallbackParameter = function(value) { ws.CommonServices._staticInstance.set_jsonpCallbackParameter(value); }
ws.CommonServices.get_jsonpCallbackParameter = function() { return ws.CommonServices._staticInstance.get_jsonpCallbackParameter(); }
ws.CommonServices.set_path("/Webservices/CommonServices.asmx");
ws.CommonServices.GetAmaLitterature= function(onSuccess,onFailed,userContext) {ws.CommonServices._staticInstance.GetAmaLitterature(onSuccess,onFailed,userContext); }
ws.CommonServices.getSenasteNytt= function(onSuccess,onFailed,userContext) {ws.CommonServices._staticInstance.getSenasteNytt(onSuccess,onFailed,userContext); }
ws.CommonServices.getFaq= function(onSuccess,onFailed,userContext) {ws.CommonServices._staticInstance.getFaq(onSuccess,onFailed,userContext); }
ws.CommonServices.getVadArAma= function(onSuccess,onFailed,userContext) {ws.CommonServices._staticInstance.getVadArAma(onSuccess,onFailed,userContext); }
ws.CommonServices.getHelp= function(onSuccess,onFailed,userContext) {ws.CommonServices._staticInstance.getHelp(onSuccess,onFailed,userContext); }
ws.CommonServices.getHelpBetalsidor= function(onSuccess,onFailed,userContext) {ws.CommonServices._staticInstance.getHelpBetalsidor(onSuccess,onFailed,userContext); }
ws.CommonServices.getArticle= function(ArticleId,onSuccess,onFailed,userContext) {ws.CommonServices._staticInstance.getArticle(ArticleId,onSuccess,onFailed,userContext); }
ws.CommonServices.getSearchWord= function(word,onSuccess,onFailed,userContext) {ws.CommonServices._staticInstance.getSearchWord(word,onSuccess,onFailed,userContext); }
ws.CommonServices.LoginUser= function(UserName,Password,autoLogin,onSuccess,onFailed,userContext) {ws.CommonServices._staticInstance.LoginUser(UserName,Password,autoLogin,onSuccess,onFailed,userContext); }
ws.CommonServices.LogoutUser= function(onSuccess,onFailed,userContext) {ws.CommonServices._staticInstance.LogoutUser(onSuccess,onFailed,userContext); }
ws.CommonServices.GetExternalnews= function(Startposition,Count,onSuccess,onFailed,userContext) {ws.CommonServices._staticInstance.GetExternalnews(Startposition,Count,onSuccess,onFailed,userContext); }
ws.CommonServices.GetMoreNews= function(onSuccess,onFailed,userContext) {ws.CommonServices._staticInstance.GetMoreNews(onSuccess,onFailed,userContext); }
ws.CommonServices.GetSisStandard= function(Standard,onSuccess,onFailed,userContext) {ws.CommonServices._staticInstance.GetSisStandard(Standard,onSuccess,onFailed,userContext); }
ws.CommonServices.GetMenuItems= function(Fackomrade,Sortorder,DistId,onSuccess,onFailed,userContext) {ws.CommonServices._staticInstance.GetMenuItems(Fackomrade,Sortorder,DistId,onSuccess,onFailed,userContext); }
ws.CommonServices.GetTreeNodes= function(ParentId,DistId,NodeLevel,AutoExpand,pUrvalId,onSuccess,onFailed,userContext) {ws.CommonServices._staticInstance.GetTreeNodes(ParentId,DistId,NodeLevel,AutoExpand,pUrvalId,onSuccess,onFailed,userContext); }
ws.CommonServices.GetTreeNodesCustom= function(ParentId,pUrvalId,NodeLevel,onSuccess,onFailed,userContext) {ws.CommonServices._staticInstance.GetTreeNodesCustom(ParentId,pUrvalId,NodeLevel,onSuccess,onFailed,userContext); }
ws.CommonServices.GetTreeWrapper= function(ParentId,pUrvalId,DistId,NodeLevel,onSuccess,onFailed,userContext) {ws.CommonServices._staticInstance.GetTreeWrapper(ParentId,pUrvalId,DistId,NodeLevel,onSuccess,onFailed,userContext); }
ws.CommonServices.getTreeModalText= function(KlassKod,pubs,activePubs,DistId,pUrvalid,onSuccess,onFailed,userContext) {ws.CommonServices._staticInstance.getTreeModalText(KlassKod,pubs,activePubs,DistId,pUrvalid,onSuccess,onFailed,userContext); }
ws.CommonServices.getUrvalDialog= function(pUrvalId,CodesToAdd,Type,onSuccess,onFailed,userContext) {ws.CommonServices._staticInstance.getUrvalDialog(pUrvalId,CodesToAdd,Type,onSuccess,onFailed,userContext); }
ws.CommonServices.getAddToUrvalDialog= function(pUrvalId,CodesToAdd,Type,onSuccess,onFailed,userContext) {ws.CommonServices._staticInstance.getAddToUrvalDialog(pUrvalId,CodesToAdd,Type,onSuccess,onFailed,userContext); }
ws.CommonServices.getCopyUrvalDialog= function(pUrvalId,onSuccess,onFailed,userContext) {ws.CommonServices._staticInstance.getCopyUrvalDialog(pUrvalId,onSuccess,onFailed,userContext); }
ws.CommonServices.PersUrvalSave= function(pUrvalId,KategoriId,pUrvalNamn,pUrvalBeskrivning,pUrvalDelat,Type,onSuccess,onFailed,userContext) {ws.CommonServices._staticInstance.PersUrvalSave(pUrvalId,KategoriId,pUrvalNamn,pUrvalBeskrivning,pUrvalDelat,Type,onSuccess,onFailed,userContext); }
ws.CommonServices.AddCategorySave= function(KategoriNamn,onSuccess,onFailed,userContext) {ws.CommonServices._staticInstance.AddCategorySave(KategoriNamn,onSuccess,onFailed,userContext); }
ws.CommonServices.ReloadCategoryList= function(SelectedCategoryId,AnvId,onSuccess,onFailed,userContext) {ws.CommonServices._staticInstance.ReloadCategoryList(SelectedCategoryId,AnvId,onSuccess,onFailed,userContext); }
ws.CommonServices.flyttaUrvalTillKatalog= function(KatalogId,UrvalId,onSuccess,onFailed,userContext) {ws.CommonServices._staticInstance.flyttaUrvalTillKatalog(KatalogId,UrvalId,onSuccess,onFailed,userContext); }
ws.CommonServices.ReloadMenyUrval= function(onSuccess,onFailed,userContext) {ws.CommonServices._staticInstance.ReloadMenyUrval(onSuccess,onFailed,userContext); }
ws.CommonServices.AddCodesToUrval= function(UrvalId,CodeString,onSuccess,onFailed,userContext) {ws.CommonServices._staticInstance.AddCodesToUrval(UrvalId,CodeString,onSuccess,onFailed,userContext); }
ws.CommonServices.DeleteUrval= function(pUrvalId,Type,onSuccess,onFailed,userContext) {ws.CommonServices._staticInstance.DeleteUrval(pUrvalId,Type,onSuccess,onFailed,userContext); }
ws.CommonServices.GetCmsText= function(ArticleId,onSuccess,onFailed,userContext) {ws.CommonServices._staticInstance.GetCmsText(ArticleId,onSuccess,onFailed,userContext); }
ws.CommonServices.GetKoderOchRubriker= function(Fackomrade,onSuccess,onFailed,userContext) {ws.CommonServices._staticInstance.GetKoderOchRubriker(Fackomrade,onSuccess,onFailed,userContext); }
ws.CommonServices.GetKomplementBanverket= function(onSuccess,onFailed,userContext) {ws.CommonServices._staticInstance.GetKomplementBanverket(onSuccess,onFailed,userContext); }
ws.CommonServices.GetKomplementVagverket= function(onSuccess,onFailed,userContext) {ws.CommonServices._staticInstance.GetKomplementVagverket(onSuccess,onFailed,userContext); }
ws.CommonServices.DeleteCodesFromUrval= function(CodesToDelete,onSuccess,onFailed,userContext) {ws.CommonServices._staticInstance.DeleteCodesFromUrval(CodesToDelete,onSuccess,onFailed,userContext); }
ws.CommonServices.SendFeedback= function(Name,Phone,Email,Message,onSuccess,onFailed,userContext) {ws.CommonServices._staticInstance.SendFeedback(Name,Phone,Email,Message,onSuccess,onFailed,userContext); }
ws.CommonServices.showDialogPod= function(pUrvalId,onSuccess,onFailed,userContext) {ws.CommonServices._staticInstance.showDialogPod(pUrvalId,onSuccess,onFailed,userContext); }
ws.CommonServices.PodCalculatePrice= function(pUrvalId,onSuccess,onFailed,userContext) {ws.CommonServices._staticInstance.PodCalculatePrice(pUrvalId,onSuccess,onFailed,userContext); }
ws.CommonServices.PodSaveDialogInfo= function(pUrvalId,ForPrint,ForPdf,Title,Subtitle,Creator,Foreword,A4,A5,TextAma,TextRa,TextMer,TextAmaNytt,Cover,FreeSample,onSuccess,onFailed,userContext) {ws.CommonServices._staticInstance.PodSaveDialogInfo(pUrvalId,ForPrint,ForPdf,Title,Subtitle,Creator,Foreword,A4,A5,TextAma,TextRa,TextMer,TextAmaNytt,Cover,FreeSample,onSuccess,onFailed,userContext); }
ws.CommonServices.PodGeneratePreview= function(pUrvalId,onSuccess,onFailed,userContext) {ws.CommonServices._staticInstance.PodGeneratePreview(pUrvalId,onSuccess,onFailed,userContext); }
ws.CommonServices.ReloadLoginstatus= function(onSuccess,onFailed,userContext) {ws.CommonServices._staticInstance.ReloadLoginstatus(onSuccess,onFailed,userContext); }
ws.CommonServices.GetSearchResult= function(Query,SearchIndex,Navigators,Offset,onSuccess,onFailed,userContext) {ws.CommonServices._staticInstance.GetSearchResult(Query,SearchIndex,Navigators,Offset,onSuccess,onFailed,userContext); }

