var ProCategoryService=function() {
ProCategoryService.initializeBase(this);
this._timeout = 0;
this._userContext = null;
this._succeeded = null;
this._failed = null;
}
ProCategoryService.prototype={
_get_path:function() {
 var p = this.get_path();
 if (p) return p;
 else return ProCategoryService._staticInstance.get_path();},
GetNodes:function(request,succeededCallback, failedCallback, userContext) {
/// <param name="request" type="ComponentArt.Web.UI.TreeViewWebServiceRequest">ComponentArt.Web.UI.TreeViewWebServiceRequest</param>
/// <param name="succeededCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="failedCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="userContext" optional="true" mayBeNull="true"></param>
return this._invoke(this._get_path(), 'GetNodes',false,{request:request},succeededCallback,failedCallback,userContext); },
GetCategorySonById:function(ID,succeededCallback, failedCallback, userContext) {
/// <param name="ID" type="String">System.String</param>
/// <param name="succeededCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="failedCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="userContext" optional="true" mayBeNull="true"></param>
return this._invoke(this._get_path(), 'GetCategorySonById',false,{ID:ID},succeededCallback,failedCallback,userContext); },
GetCategoryByKeyword:function(Keyword,succeededCallback, failedCallback, userContext) {
/// <param name="Keyword" type="String">System.String</param>
/// <param name="succeededCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="failedCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="userContext" optional="true" mayBeNull="true"></param>
return this._invoke(this._get_path(), 'GetCategoryByKeyword',false,{Keyword:Keyword},succeededCallback,failedCallback,userContext); },
GetCurCategoryPath:function(cateId,succeededCallback, failedCallback, userContext) {
/// <param name="cateId" type="String">System.String</param>
/// <param name="succeededCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="failedCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="userContext" optional="true" mayBeNull="true"></param>
return this._invoke(this._get_path(), 'GetCurCategoryPath',false,{cateId:cateId},succeededCallback,failedCallback,userContext); }}
ProCategoryService.registerClass('ProCategoryService',Sys.Net.WebServiceProxy);
ProCategoryService._staticInstance = new ProCategoryService();
ProCategoryService.set_path = function(value) {
ProCategoryService._staticInstance.set_path(value); }
ProCategoryService.get_path = function() { 
/// <value type="String" mayBeNull="true">The service url.</value>
return ProCategoryService._staticInstance.get_path();}
ProCategoryService.set_timeout = function(value) {
ProCategoryService._staticInstance.set_timeout(value); }
ProCategoryService.get_timeout = function() { 
/// <value type="Number">The service timeout.</value>
return ProCategoryService._staticInstance.get_timeout(); }
ProCategoryService.set_defaultUserContext = function(value) { 
ProCategoryService._staticInstance.set_defaultUserContext(value); }
ProCategoryService.get_defaultUserContext = function() { 
/// <value mayBeNull="true">The service default user context.</value>
return ProCategoryService._staticInstance.get_defaultUserContext(); }
ProCategoryService.set_defaultSucceededCallback = function(value) { 
 ProCategoryService._staticInstance.set_defaultSucceededCallback(value); }
ProCategoryService.get_defaultSucceededCallback = function() { 
/// <value type="Function" mayBeNull="true">The service default succeeded callback.</value>
return ProCategoryService._staticInstance.get_defaultSucceededCallback(); }
ProCategoryService.set_defaultFailedCallback = function(value) { 
ProCategoryService._staticInstance.set_defaultFailedCallback(value); }
ProCategoryService.get_defaultFailedCallback = function() { 
/// <value type="Function" mayBeNull="true">The service default failed callback.</value>
return ProCategoryService._staticInstance.get_defaultFailedCallback(); }
ProCategoryService.set_path("/WebService/ProCategoryService.asmx");
ProCategoryService.GetNodes= function(request,onSuccess,onFailed,userContext) {
/// <param name="request" type="ComponentArt.Web.UI.TreeViewWebServiceRequest">ComponentArt.Web.UI.TreeViewWebServiceRequest</param>
/// <param name="succeededCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="failedCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="userContext" optional="true" mayBeNull="true"></param>
ProCategoryService._staticInstance.GetNodes(request,onSuccess,onFailed,userContext); }
ProCategoryService.GetCategorySonById= function(ID,onSuccess,onFailed,userContext) {
/// <param name="ID" type="String">System.String</param>
/// <param name="succeededCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="failedCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="userContext" optional="true" mayBeNull="true"></param>
ProCategoryService._staticInstance.GetCategorySonById(ID,onSuccess,onFailed,userContext); }
ProCategoryService.GetCategoryByKeyword= function(Keyword,onSuccess,onFailed,userContext) {
/// <param name="Keyword" type="String">System.String</param>
/// <param name="succeededCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="failedCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="userContext" optional="true" mayBeNull="true"></param>
ProCategoryService._staticInstance.GetCategoryByKeyword(Keyword,onSuccess,onFailed,userContext); }
ProCategoryService.GetCurCategoryPath= function(cateId,onSuccess,onFailed,userContext) {
/// <param name="cateId" type="String">System.String</param>
/// <param name="succeededCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="failedCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="userContext" optional="true" mayBeNull="true"></param>
ProCategoryService._staticInstance.GetCurCategoryPath(cateId,onSuccess,onFailed,userContext); }
var gtc = Sys.Net.WebServiceProxy._generateTypedConstructor;
Type.registerNamespace('ZSUSE.Model');
if (typeof(ZSUSE.Model.T_Product_Category) === 'undefined') {
ZSUSE.Model.T_Product_Category=gtc("ZSUSE.Model.T_Product_Category");
ZSUSE.Model.T_Product_Category.registerClass('ZSUSE.Model.T_Product_Category');
}
Type.registerNamespace('ComponentArt.Web.UI');
if (typeof(ComponentArt.Web.UI.TreeViewWebServiceRequest) === 'undefined') {
ComponentArt.Web.UI.TreeViewWebServiceRequest=gtc("ComponentArt.Web.UI.TreeViewWebServiceRequest");
ComponentArt.Web.UI.TreeViewWebServiceRequest.registerClass('ComponentArt.Web.UI.TreeViewWebServiceRequest');
}
if (typeof(ComponentArt.Web.UI.TreeViewWebServiceResponse) === 'undefined') {
ComponentArt.Web.UI.TreeViewWebServiceResponse=gtc("ComponentArt.Web.UI.TreeViewWebServiceResponse");
ComponentArt.Web.UI.TreeViewWebServiceResponse.registerClass('ComponentArt.Web.UI.TreeViewWebServiceResponse');
}

