Type.registerNamespace('Web.Service'); Web.Service.LoginService=function() { Web.Service.LoginService.initializeBase(this); this._timeout = 0; this._userContext = null; this._succeeded = null; this._failed = null; } Web.Service.LoginService.prototype={ _get_path:function() { var p = this.get_path(); if (p) return p; else return Web.Service.LoginService._staticInstance.get_path();}, LogOut:function(succeededCallback, failedCallback, userContext) { /// /// /// return this._invoke(this._get_path(), 'LogOut',false,{},succeededCallback,failedCallback,userContext); }, CheckUserLogin:function(userName,userPwd,verifyCode,succeededCallback, failedCallback, userContext) { /// System.String /// System.String /// System.String /// /// /// return this._invoke(this._get_path(), 'CheckUserLogin',false,{userName:userName,userPwd:userPwd,verifyCode:verifyCode},succeededCallback,failedCallback,userContext); }, CheckUserIsLogin:function(succeededCallback, failedCallback, userContext) { /// /// /// return this._invoke(this._get_path(), 'CheckUserIsLogin',false,{},succeededCallback,failedCallback,userContext); }} Web.Service.LoginService.registerClass('Web.Service.LoginService',Sys.Net.WebServiceProxy); Web.Service.LoginService._staticInstance = new Web.Service.LoginService(); Web.Service.LoginService.set_path = function(value) { Web.Service.LoginService._staticInstance.set_path(value); } Web.Service.LoginService.get_path = function() { /// The service url. return Web.Service.LoginService._staticInstance.get_path();} Web.Service.LoginService.set_timeout = function(value) { Web.Service.LoginService._staticInstance.set_timeout(value); } Web.Service.LoginService.get_timeout = function() { /// The service timeout. return Web.Service.LoginService._staticInstance.get_timeout(); } Web.Service.LoginService.set_defaultUserContext = function(value) { Web.Service.LoginService._staticInstance.set_defaultUserContext(value); } Web.Service.LoginService.get_defaultUserContext = function() { /// The service default user context. return Web.Service.LoginService._staticInstance.get_defaultUserContext(); } Web.Service.LoginService.set_defaultSucceededCallback = function(value) { Web.Service.LoginService._staticInstance.set_defaultSucceededCallback(value); } Web.Service.LoginService.get_defaultSucceededCallback = function() { /// The service default succeeded callback. return Web.Service.LoginService._staticInstance.get_defaultSucceededCallback(); } Web.Service.LoginService.set_defaultFailedCallback = function(value) { Web.Service.LoginService._staticInstance.set_defaultFailedCallback(value); } Web.Service.LoginService.get_defaultFailedCallback = function() { /// The service default failed callback. return Web.Service.LoginService._staticInstance.get_defaultFailedCallback(); } Web.Service.LoginService.set_enableJsonp = function(value) { Web.Service.LoginService._staticInstance.set_enableJsonp(value); } Web.Service.LoginService.get_enableJsonp = function() { /// Specifies whether the service supports JSONP for cross domain calling. return Web.Service.LoginService._staticInstance.get_enableJsonp(); } Web.Service.LoginService.set_jsonpCallbackParameter = function(value) { Web.Service.LoginService._staticInstance.set_jsonpCallbackParameter(value); } Web.Service.LoginService.get_jsonpCallbackParameter = function() { /// Specifies the parameter name that contains the callback function name for a JSONP request. return Web.Service.LoginService._staticInstance.get_jsonpCallbackParameter(); } Web.Service.LoginService.set_path("/Service/zmkm.asmx"); Web.Service.LoginService.LogOut= function(onSuccess,onFailed,userContext) { /// /// /// Web.Service.LoginService._staticInstance.LogOut(onSuccess,onFailed,userContext); } Web.Service.LoginService.CheckUserLogin= function(userName,userPwd,verifyCode,onSuccess,onFailed,userContext) { /// System.String /// System.String /// System.String /// /// /// Web.Service.LoginService._staticInstance.CheckUserLogin(userName,userPwd,verifyCode,onSuccess,onFailed,userContext); } Web.Service.LoginService.CheckUserIsLogin= function(onSuccess,onFailed,userContext) { /// /// /// Web.Service.LoginService._staticInstance.CheckUserIsLogin(onSuccess,onFailed,userContext); }