Type.registerNamespace('RIV.Web.UserControls.General');
RIV.Web.UserControls.General.RIVInspection=function() {
RIV.Web.UserControls.General.RIVInspection.initializeBase(this);
this._timeout = 0;
this._userContext = null;
this._succeeded = null;
this._failed = null;
}
RIV.Web.UserControls.General.RIVInspection.prototype={
_get_path:function() {
 var p = this.get_path();
 if (p) return p;
 else return RIV.Web.UserControls.General.RIVInspection._staticInstance.get_path();},
GetProvinces:function(succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'GetProvinces',false,{},succeededCallback,failedCallback,userContext); },
GetAllProvinces:function(Language,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'GetAllProvinces',false,{Language:Language},succeededCallback,failedCallback,userContext); },
ResetProvince:function(succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'ResetProvince',false,{},succeededCallback,failedCallback,userContext); },
GetCities:function(province,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'GetCities',false,{province:province},succeededCallback,failedCallback,userContext); },
ResetCity:function(succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'ResetCity',false,{},succeededCallback,failedCallback,userContext); },
GetLocations:function(province,city,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'GetLocations',false,{province:province,city:city},succeededCallback,failedCallback,userContext); },
ResetLocation:function(succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'ResetLocation',false,{},succeededCallback,failedCallback,userContext); },
GetContactInfo:function(inspectID,language,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'GetContactInfo',false,{inspectID:inspectID,language:language},succeededCallback,failedCallback,userContext); }}
RIV.Web.UserControls.General.RIVInspection.registerClass('RIV.Web.UserControls.General.RIVInspection',Sys.Net.WebServiceProxy);
RIV.Web.UserControls.General.RIVInspection._staticInstance = new RIV.Web.UserControls.General.RIVInspection();
RIV.Web.UserControls.General.RIVInspection.set_path = function(value) { RIV.Web.UserControls.General.RIVInspection._staticInstance.set_path(value); }
RIV.Web.UserControls.General.RIVInspection.get_path = function() { return RIV.Web.UserControls.General.RIVInspection._staticInstance.get_path(); }
RIV.Web.UserControls.General.RIVInspection.set_timeout = function(value) { RIV.Web.UserControls.General.RIVInspection._staticInstance.set_timeout(value); }
RIV.Web.UserControls.General.RIVInspection.get_timeout = function() { return RIV.Web.UserControls.General.RIVInspection._staticInstance.get_timeout(); }
RIV.Web.UserControls.General.RIVInspection.set_defaultUserContext = function(value) { RIV.Web.UserControls.General.RIVInspection._staticInstance.set_defaultUserContext(value); }
RIV.Web.UserControls.General.RIVInspection.get_defaultUserContext = function() { return RIV.Web.UserControls.General.RIVInspection._staticInstance.get_defaultUserContext(); }
RIV.Web.UserControls.General.RIVInspection.set_defaultSucceededCallback = function(value) { RIV.Web.UserControls.General.RIVInspection._staticInstance.set_defaultSucceededCallback(value); }
RIV.Web.UserControls.General.RIVInspection.get_defaultSucceededCallback = function() { return RIV.Web.UserControls.General.RIVInspection._staticInstance.get_defaultSucceededCallback(); }
RIV.Web.UserControls.General.RIVInspection.set_defaultFailedCallback = function(value) { RIV.Web.UserControls.General.RIVInspection._staticInstance.set_defaultFailedCallback(value); }
RIV.Web.UserControls.General.RIVInspection.get_defaultFailedCallback = function() { return RIV.Web.UserControls.General.RIVInspection._staticInstance.get_defaultFailedCallback(); }
RIV.Web.UserControls.General.RIVInspection.set_path("/RIVInspection.asmx");
RIV.Web.UserControls.General.RIVInspection.GetProvinces= function(onSuccess,onFailed,userContext) {RIV.Web.UserControls.General.RIVInspection._staticInstance.GetProvinces(onSuccess,onFailed,userContext); }
RIV.Web.UserControls.General.RIVInspection.GetAllProvinces= function(Language,onSuccess,onFailed,userContext) {RIV.Web.UserControls.General.RIVInspection._staticInstance.GetAllProvinces(Language,onSuccess,onFailed,userContext); }
RIV.Web.UserControls.General.RIVInspection.ResetProvince= function(onSuccess,onFailed,userContext) {RIV.Web.UserControls.General.RIVInspection._staticInstance.ResetProvince(onSuccess,onFailed,userContext); }
RIV.Web.UserControls.General.RIVInspection.GetCities= function(province,onSuccess,onFailed,userContext) {RIV.Web.UserControls.General.RIVInspection._staticInstance.GetCities(province,onSuccess,onFailed,userContext); }
RIV.Web.UserControls.General.RIVInspection.ResetCity= function(onSuccess,onFailed,userContext) {RIV.Web.UserControls.General.RIVInspection._staticInstance.ResetCity(onSuccess,onFailed,userContext); }
RIV.Web.UserControls.General.RIVInspection.GetLocations= function(province,city,onSuccess,onFailed,userContext) {RIV.Web.UserControls.General.RIVInspection._staticInstance.GetLocations(province,city,onSuccess,onFailed,userContext); }
RIV.Web.UserControls.General.RIVInspection.ResetLocation= function(onSuccess,onFailed,userContext) {RIV.Web.UserControls.General.RIVInspection._staticInstance.ResetLocation(onSuccess,onFailed,userContext); }
RIV.Web.UserControls.General.RIVInspection.GetContactInfo= function(inspectID,language,onSuccess,onFailed,userContext) {RIV.Web.UserControls.General.RIVInspection._staticInstance.GetContactInfo(inspectID,language,onSuccess,onFailed,userContext); }
var gtc = Sys.Net.WebServiceProxy._generateTypedConstructor;
Type.registerNamespace('RIV.Web.UserControls.API');
if (typeof(RIV.Web.UserControls.API.WidgetListItem) === 'undefined') {
RIV.Web.UserControls.API.WidgetListItem=gtc("RIV.Web.UserControls.API.WidgetListItem");
RIV.Web.UserControls.API.WidgetListItem.registerClass('RIV.Web.UserControls.API.WidgetListItem');
}
