Type.registerNamespace('Maznet.Web');
Maznet.Web.BackOffice=function() {
Maznet.Web.BackOffice.initializeBase(this);
this._timeout = 0;
this._userContext = null;
this._succeeded = null;
this._failed = null;
}
Maznet.Web.BackOffice.prototype={
_get_path:function() {
 var p = this.get_path();
 if (p) return p;
 else return Maznet.Web.BackOffice._staticInstance.get_path();},
ToggleBoolean:function(HotelCode,ColumnName,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'ToggleBoolean',false,{HotelCode:HotelCode,ColumnName:ColumnName},succeededCallback,failedCallback,userContext); },
TogglePrimary:function(DatastoreID,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'TogglePrimary',false,{DatastoreID:DatastoreID},succeededCallback,failedCallback,userContext); },
CRa:function(id,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'CRa',false,{id:id},succeededCallback,failedCallback,userContext); },
CRo:function(id,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'CRo',false,{id:id},succeededCallback,failedCallback,userContext); },
Test:function(input,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'Test',false,{input:input},succeededCallback,failedCallback,userContext); },
COv2:function(id,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'COv2',false,{id:id},succeededCallback,failedCallback,userContext); },
RPdv1:function(id,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'RPdv1',false,{id:id},succeededCallback,failedCallback,userContext); },
RPup1:function(id,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'RPup1',false,{id:id},succeededCallback,failedCallback,userContext); },
RPnv1:function(id,Nights,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'RPnv1',false,{id:id,Nights:Nights},succeededCallback,failedCallback,userContext); },
DRPv1:function(RatePeriodID,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'DRPv1',false,{RatePeriodID:RatePeriodID},succeededCallback,failedCallback,userContext); },
GetHotelListByPrefix:function(prefixText,count,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'GetHotelListByPrefix',false,{prefixText:prefixText,count:count},succeededCallback,failedCallback,userContext); }}
Maznet.Web.BackOffice.registerClass('Maznet.Web.BackOffice',Sys.Net.WebServiceProxy);
Maznet.Web.BackOffice._staticInstance = new Maznet.Web.BackOffice();
Maznet.Web.BackOffice.set_path = function(value) { Maznet.Web.BackOffice._staticInstance.set_path(value); }
Maznet.Web.BackOffice.get_path = function() { return Maznet.Web.BackOffice._staticInstance.get_path(); }
Maznet.Web.BackOffice.set_timeout = function(value) { Maznet.Web.BackOffice._staticInstance.set_timeout(value); }
Maznet.Web.BackOffice.get_timeout = function() { return Maznet.Web.BackOffice._staticInstance.get_timeout(); }
Maznet.Web.BackOffice.set_defaultUserContext = function(value) { Maznet.Web.BackOffice._staticInstance.set_defaultUserContext(value); }
Maznet.Web.BackOffice.get_defaultUserContext = function() { return Maznet.Web.BackOffice._staticInstance.get_defaultUserContext(); }
Maznet.Web.BackOffice.set_defaultSucceededCallback = function(value) { Maznet.Web.BackOffice._staticInstance.set_defaultSucceededCallback(value); }
Maznet.Web.BackOffice.get_defaultSucceededCallback = function() { return Maznet.Web.BackOffice._staticInstance.get_defaultSucceededCallback(); }
Maznet.Web.BackOffice.set_defaultFailedCallback = function(value) { Maznet.Web.BackOffice._staticInstance.set_defaultFailedCallback(value); }
Maznet.Web.BackOffice.get_defaultFailedCallback = function() { return Maznet.Web.BackOffice._staticInstance.get_defaultFailedCallback(); }
Maznet.Web.BackOffice.set_path("/asmx/BackOffice.asmx");
Maznet.Web.BackOffice.ToggleBoolean= function(HotelCode,ColumnName,onSuccess,onFailed,userContext) {Maznet.Web.BackOffice._staticInstance.ToggleBoolean(HotelCode,ColumnName,onSuccess,onFailed,userContext); }
Maznet.Web.BackOffice.TogglePrimary= function(DatastoreID,onSuccess,onFailed,userContext) {Maznet.Web.BackOffice._staticInstance.TogglePrimary(DatastoreID,onSuccess,onFailed,userContext); }
Maznet.Web.BackOffice.CRa= function(id,onSuccess,onFailed,userContext) {Maznet.Web.BackOffice._staticInstance.CRa(id,onSuccess,onFailed,userContext); }
Maznet.Web.BackOffice.CRo= function(id,onSuccess,onFailed,userContext) {Maznet.Web.BackOffice._staticInstance.CRo(id,onSuccess,onFailed,userContext); }
Maznet.Web.BackOffice.Test= function(input,onSuccess,onFailed,userContext) {Maznet.Web.BackOffice._staticInstance.Test(input,onSuccess,onFailed,userContext); }
Maznet.Web.BackOffice.COv2= function(id,onSuccess,onFailed,userContext) {Maznet.Web.BackOffice._staticInstance.COv2(id,onSuccess,onFailed,userContext); }
Maznet.Web.BackOffice.RPdv1= function(id,onSuccess,onFailed,userContext) {Maznet.Web.BackOffice._staticInstance.RPdv1(id,onSuccess,onFailed,userContext); }
Maznet.Web.BackOffice.RPup1= function(id,onSuccess,onFailed,userContext) {Maznet.Web.BackOffice._staticInstance.RPup1(id,onSuccess,onFailed,userContext); }
Maznet.Web.BackOffice.RPnv1= function(id,Nights,onSuccess,onFailed,userContext) {Maznet.Web.BackOffice._staticInstance.RPnv1(id,Nights,onSuccess,onFailed,userContext); }
Maznet.Web.BackOffice.DRPv1= function(RatePeriodID,onSuccess,onFailed,userContext) {Maznet.Web.BackOffice._staticInstance.DRPv1(RatePeriodID,onSuccess,onFailed,userContext); }
Maznet.Web.BackOffice.GetHotelListByPrefix= function(prefixText,count,onSuccess,onFailed,userContext) {Maznet.Web.BackOffice._staticInstance.GetHotelListByPrefix(prefixText,count,onSuccess,onFailed,userContext); }
