Type.registerNamespace('CMaster');
CMaster.AjaxService=function() {
CMaster.AjaxService.initializeBase(this);
this._timeout = 0;
this._userContext = null;
this._succeeded = null;
this._failed = null;
}
CMaster.AjaxService.prototype={
GetStockPricePerDate:function(date,succeededCallback, failedCallback, userContext) {
return this._invoke(CMaster.AjaxService.get_path(), 'GetStockPricePerDate',false,{date:date},succeededCallback,failedCallback,userContext); },
fn_GetStockProfit:function(date,num,succeededCallback, failedCallback, userContext) {
return this._invoke(CMaster.AjaxService.get_path(), 'fn_GetStockProfit',false,{date:date,num:num},succeededCallback,failedCallback,userContext); }}
CMaster.AjaxService.registerClass('CMaster.AjaxService',Sys.Net.WebServiceProxy);
CMaster.AjaxService._staticInstance = new CMaster.AjaxService();
CMaster.AjaxService.set_path = function(value) { 
var e = Function._validateParams(arguments, [{name: 'path', type: String}]); if (e) throw e; CMaster.AjaxService._staticInstance._path = value; }
CMaster.AjaxService.get_path = function() { return CMaster.AjaxService._staticInstance._path; }
CMaster.AjaxService.set_timeout = function(value) { var e = Function._validateParams(arguments, [{name: 'timeout', type: Number}]); if (e) throw e; if (value < 0) { throw Error.argumentOutOfRange('value', value, Sys.Res.invalidTimeout); }
CMaster.AjaxService._staticInstance._timeout = value; }
CMaster.AjaxService.get_timeout = function() { 
return CMaster.AjaxService._staticInstance._timeout; }
CMaster.AjaxService.set_defaultUserContext = function(value) { 
CMaster.AjaxService._staticInstance._userContext = value; }
CMaster.AjaxService.get_defaultUserContext = function() { 
return CMaster.AjaxService._staticInstance._userContext; }
CMaster.AjaxService.set_defaultSucceededCallback = function(value) { 
var e = Function._validateParams(arguments, [{name: 'defaultSucceededCallback', type: Function}]); if (e) throw e; CMaster.AjaxService._staticInstance._succeeded = value; }
CMaster.AjaxService.get_defaultSucceededCallback = function() { 
return CMaster.AjaxService._staticInstance._succeeded; }
CMaster.AjaxService.set_defaultFailedCallback = function(value) { 
var e = Function._validateParams(arguments, [{name: 'defaultFailedCallback', type: Function}]); if (e) throw e; CMaster.AjaxService._staticInstance._failed = value; }
CMaster.AjaxService.get_defaultFailedCallback = function() { 
return CMaster.AjaxService._staticInstance._failed; }
CMaster.AjaxService.set_path("/WebServices/AjaxService.asmx");
CMaster.AjaxService.GetStockPricePerDate= function(date,onSuccess,onFailed,userContext) {CMaster.AjaxService._staticInstance.GetStockPricePerDate(date,onSuccess,onFailed,userContext); }
CMaster.AjaxService.fn_GetStockProfit= function(date,num,onSuccess,onFailed,userContext) {CMaster.AjaxService._staticInstance.fn_GetStockProfit(date,num,onSuccess,onFailed,userContext); }

