Type.registerNamespace('Productspec.Services');
Productspec.Services.MyProjectsService=function() {
Productspec.Services.MyProjectsService.initializeBase(this);
this._timeout = 0;
this._userContext = null;
this._succeeded = null;
this._failed = null;
}
Productspec.Services.MyProjectsService.prototype={
_get_path:function() {
 var p = this.get_path();
 if (p) return p;
 else return Productspec.Services.MyProjectsService._staticInstance.get_path();},
SendRequest:function(productId,name,email,phone,proffession,msg,succeededCallback, failedCallback, userContext) {
/// <param name="productId" type="Number">System.Int32</param>
/// <param name="name" type="String">System.String</param>
/// <param name="email" type="String">System.String</param>
/// <param name="phone" type="String">System.String</param>
/// <param name="proffession" type="String">System.String</param>
/// <param name="msg" 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(), 'SendRequest',false,{productId:productId,name:name,email:email,phone:phone,proffession:proffession,msg:msg},succeededCallback,failedCallback,userContext); },
GetProduct:function(productId,succeededCallback, failedCallback, userContext) {
/// <param name="productId" type="Number">System.Int32</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(), 'GetProduct',false,{productId:productId},succeededCallback,failedCallback,userContext); },
GetProjects:function(succeededCallback, failedCallback, userContext) {
/// <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(), 'GetProjects',false,{},succeededCallback,failedCallback,userContext); },
GetAvailCategories:function(productId,succeededCallback, failedCallback, userContext) {
/// <param name="productId" type="Number">System.Int32</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(), 'GetAvailCategories',false,{productId:productId},succeededCallback,failedCallback,userContext); },
GetExternalCategories:function(productId,succeededCallback, failedCallback, userContext) {
/// <param name="productId" type="Number">System.Int32</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(), 'GetExternalCategories',false,{productId:productId},succeededCallback,failedCallback,userContext); },
GetExtProductImgId:function(productId,succeededCallback, failedCallback, userContext) {
/// <param name="productId" type="Number">System.Int32</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(), 'GetExtProductImgId',false,{productId:productId},succeededCallback,failedCallback,userContext); },
GetProductImageMainId:function(productId,succeededCallback, failedCallback, userContext) {
/// <param name="productId" type="Number">System.Int32</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(), 'GetProductImageMainId',false,{productId:productId},succeededCallback,failedCallback,userContext); },
GetProductTitle:function(productId,succeededCallback, failedCallback, userContext) {
/// <param name="productId" type="Number">System.Int32</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(), 'GetProductTitle',false,{productId:productId},succeededCallback,failedCallback,userContext); },
AddToProject:function(productId,projectId,categoryId,note,succeededCallback, failedCallback, userContext) {
/// <param name="productId" type="Number">System.Int32</param>
/// <param name="projectId" type="Number">System.Int32</param>
/// <param name="categoryId" type="Number">System.Int32</param>
/// <param name="note" 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(), 'AddToProject',false,{productId:productId,projectId:projectId,categoryId:categoryId,note:note},succeededCallback,failedCallback,userContext); },
AddToProjectNew:function(productId,projectId,categoryId,floorLevels,floorNames,spaceIds,spaceNames,note,succeededCallback, failedCallback, userContext) {
/// <param name="productId" type="Number">System.Int32</param>
/// <param name="projectId" type="Number">System.Int32</param>
/// <param name="categoryId" type="Number">System.Int32</param>
/// <param name="floorLevels" type="Array">System.Int32[]</param>
/// <param name="floorNames" type="Array">System.String[]</param>
/// <param name="spaceIds" type="Array">System.Int32[]</param>
/// <param name="spaceNames" type="Array">System.String[]</param>
/// <param name="note" 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(), 'AddToProjectNew',false,{productId:productId,projectId:projectId,categoryId:categoryId,floorLevels:floorLevels,floorNames:floorNames,spaceIds:spaceIds,spaceNames:spaceNames,note:note},succeededCallback,failedCallback,userContext); },
AddToProjectExternal:function(productId,projectId,categoryId,floorLevels,floorNames,spaceIds,spaceNames,note,succeededCallback, failedCallback, userContext) {
/// <param name="productId" type="Number">System.Int32</param>
/// <param name="projectId" type="Number">System.Int32</param>
/// <param name="categoryId" type="Number">System.Int32</param>
/// <param name="floorLevels" type="Array">System.Int32[]</param>
/// <param name="floorNames" type="Array">System.String[]</param>
/// <param name="spaceIds" type="Array">System.Int32[]</param>
/// <param name="spaceNames" type="Array">System.String[]</param>
/// <param name="note" 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(), 'AddToProjectExternal',false,{productId:productId,projectId:projectId,categoryId:categoryId,floorLevels:floorLevels,floorNames:floorNames,spaceIds:spaceIds,spaceNames:spaceNames,note:note},succeededCallback,failedCallback,userContext); },
GetFloorsByProject:function(projectId,succeededCallback, failedCallback, userContext) {
/// <param name="projectId" type="Number">System.Int32</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(), 'GetFloorsByProject',false,{projectId:projectId},succeededCallback,failedCallback,userContext); },
GetSpaceNamesByProject:function(projectId,succeededCallback, failedCallback, userContext) {
/// <param name="projectId" type="Number">System.Int32</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(), 'GetSpaceNamesByProject',false,{projectId:projectId},succeededCallback,failedCallback,userContext); }}
Productspec.Services.MyProjectsService.registerClass('Productspec.Services.MyProjectsService',Sys.Net.WebServiceProxy);
Productspec.Services.MyProjectsService._staticInstance = new Productspec.Services.MyProjectsService();
Productspec.Services.MyProjectsService.set_path = function(value) {
Productspec.Services.MyProjectsService._staticInstance.set_path(value); }
Productspec.Services.MyProjectsService.get_path = function() { 
/// <value type="String" mayBeNull="true">The service url.</value>
return Productspec.Services.MyProjectsService._staticInstance.get_path();}
Productspec.Services.MyProjectsService.set_timeout = function(value) {
Productspec.Services.MyProjectsService._staticInstance.set_timeout(value); }
Productspec.Services.MyProjectsService.get_timeout = function() { 
/// <value type="Number">The service timeout.</value>
return Productspec.Services.MyProjectsService._staticInstance.get_timeout(); }
Productspec.Services.MyProjectsService.set_defaultUserContext = function(value) { 
Productspec.Services.MyProjectsService._staticInstance.set_defaultUserContext(value); }
Productspec.Services.MyProjectsService.get_defaultUserContext = function() { 
/// <value mayBeNull="true">The service default user context.</value>
return Productspec.Services.MyProjectsService._staticInstance.get_defaultUserContext(); }
Productspec.Services.MyProjectsService.set_defaultSucceededCallback = function(value) { 
 Productspec.Services.MyProjectsService._staticInstance.set_defaultSucceededCallback(value); }
Productspec.Services.MyProjectsService.get_defaultSucceededCallback = function() { 
/// <value type="Function" mayBeNull="true">The service default succeeded callback.</value>
return Productspec.Services.MyProjectsService._staticInstance.get_defaultSucceededCallback(); }
Productspec.Services.MyProjectsService.set_defaultFailedCallback = function(value) { 
Productspec.Services.MyProjectsService._staticInstance.set_defaultFailedCallback(value); }
Productspec.Services.MyProjectsService.get_defaultFailedCallback = function() { 
/// <value type="Function" mayBeNull="true">The service default failed callback.</value>
return Productspec.Services.MyProjectsService._staticInstance.get_defaultFailedCallback(); }
Productspec.Services.MyProjectsService.set_path("/MyProjectsService.asmx");
Productspec.Services.MyProjectsService.SendRequest= function(productId,name,email,phone,proffession,msg,onSuccess,onFailed,userContext) {
/// <param name="productId" type="Number">System.Int32</param>
/// <param name="name" type="String">System.String</param>
/// <param name="email" type="String">System.String</param>
/// <param name="phone" type="String">System.String</param>
/// <param name="proffession" type="String">System.String</param>
/// <param name="msg" 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>
Productspec.Services.MyProjectsService._staticInstance.SendRequest(productId,name,email,phone,proffession,msg,onSuccess,onFailed,userContext); }
Productspec.Services.MyProjectsService.GetProduct= function(productId,onSuccess,onFailed,userContext) {
/// <param name="productId" type="Number">System.Int32</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>
Productspec.Services.MyProjectsService._staticInstance.GetProduct(productId,onSuccess,onFailed,userContext); }
Productspec.Services.MyProjectsService.GetProjects= function(onSuccess,onFailed,userContext) {
/// <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>
Productspec.Services.MyProjectsService._staticInstance.GetProjects(onSuccess,onFailed,userContext); }
Productspec.Services.MyProjectsService.GetAvailCategories= function(productId,onSuccess,onFailed,userContext) {
/// <param name="productId" type="Number">System.Int32</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>
Productspec.Services.MyProjectsService._staticInstance.GetAvailCategories(productId,onSuccess,onFailed,userContext); }
Productspec.Services.MyProjectsService.GetExternalCategories= function(productId,onSuccess,onFailed,userContext) {
/// <param name="productId" type="Number">System.Int32</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>
Productspec.Services.MyProjectsService._staticInstance.GetExternalCategories(productId,onSuccess,onFailed,userContext); }
Productspec.Services.MyProjectsService.GetExtProductImgId= function(productId,onSuccess,onFailed,userContext) {
/// <param name="productId" type="Number">System.Int32</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>
Productspec.Services.MyProjectsService._staticInstance.GetExtProductImgId(productId,onSuccess,onFailed,userContext); }
Productspec.Services.MyProjectsService.GetProductImageMainId= function(productId,onSuccess,onFailed,userContext) {
/// <param name="productId" type="Number">System.Int32</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>
Productspec.Services.MyProjectsService._staticInstance.GetProductImageMainId(productId,onSuccess,onFailed,userContext); }
Productspec.Services.MyProjectsService.GetProductTitle= function(productId,onSuccess,onFailed,userContext) {
/// <param name="productId" type="Number">System.Int32</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>
Productspec.Services.MyProjectsService._staticInstance.GetProductTitle(productId,onSuccess,onFailed,userContext); }
Productspec.Services.MyProjectsService.AddToProject= function(productId,projectId,categoryId,note,onSuccess,onFailed,userContext) {
/// <param name="productId" type="Number">System.Int32</param>
/// <param name="projectId" type="Number">System.Int32</param>
/// <param name="categoryId" type="Number">System.Int32</param>
/// <param name="note" 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>
Productspec.Services.MyProjectsService._staticInstance.AddToProject(productId,projectId,categoryId,note,onSuccess,onFailed,userContext); }
Productspec.Services.MyProjectsService.AddToProjectNew= function(productId,projectId,categoryId,floorLevels,floorNames,spaceIds,spaceNames,note,onSuccess,onFailed,userContext) {
/// <param name="productId" type="Number">System.Int32</param>
/// <param name="projectId" type="Number">System.Int32</param>
/// <param name="categoryId" type="Number">System.Int32</param>
/// <param name="floorLevels" type="Array">System.Int32[]</param>
/// <param name="floorNames" type="Array">System.String[]</param>
/// <param name="spaceIds" type="Array">System.Int32[]</param>
/// <param name="spaceNames" type="Array">System.String[]</param>
/// <param name="note" 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>
Productspec.Services.MyProjectsService._staticInstance.AddToProjectNew(productId,projectId,categoryId,floorLevels,floorNames,spaceIds,spaceNames,note,onSuccess,onFailed,userContext); }
Productspec.Services.MyProjectsService.AddToProjectExternal= function(productId,projectId,categoryId,floorLevels,floorNames,spaceIds,spaceNames,note,onSuccess,onFailed,userContext) {
/// <param name="productId" type="Number">System.Int32</param>
/// <param name="projectId" type="Number">System.Int32</param>
/// <param name="categoryId" type="Number">System.Int32</param>
/// <param name="floorLevels" type="Array">System.Int32[]</param>
/// <param name="floorNames" type="Array">System.String[]</param>
/// <param name="spaceIds" type="Array">System.Int32[]</param>
/// <param name="spaceNames" type="Array">System.String[]</param>
/// <param name="note" 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>
Productspec.Services.MyProjectsService._staticInstance.AddToProjectExternal(productId,projectId,categoryId,floorLevels,floorNames,spaceIds,spaceNames,note,onSuccess,onFailed,userContext); }
Productspec.Services.MyProjectsService.GetFloorsByProject= function(projectId,onSuccess,onFailed,userContext) {
/// <param name="projectId" type="Number">System.Int32</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>
Productspec.Services.MyProjectsService._staticInstance.GetFloorsByProject(projectId,onSuccess,onFailed,userContext); }
Productspec.Services.MyProjectsService.GetSpaceNamesByProject= function(projectId,onSuccess,onFailed,userContext) {
/// <param name="projectId" type="Number">System.Int32</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>
Productspec.Services.MyProjectsService._staticInstance.GetSpaceNamesByProject(projectId,onSuccess,onFailed,userContext); }
var gtc = Sys.Net.WebServiceProxy._generateTypedConstructor;
Type.registerNamespace('ProductspecLib.BLL');
if (typeof(ProductspecLib.BLL.Product) === 'undefined') {
ProductspecLib.BLL.Product=gtc("ProductspecLib.BLL.Product");
ProductspecLib.BLL.Product.registerClass('ProductspecLib.BLL.Product');
}
if (typeof(ProductspecLib.BLL.SecondaryCategory) === 'undefined') {
ProductspecLib.BLL.SecondaryCategory=gtc("ProductspecLib.BLL.SecondaryCategory");
ProductspecLib.BLL.SecondaryCategory.registerClass('ProductspecLib.BLL.SecondaryCategory');
}
Type.registerNamespace('Productspec.MyProjectsLib.BLL');
if (typeof(Productspec.MyProjectsLib.BLL.ProjectFloorLevel) === 'undefined') {
Productspec.MyProjectsLib.BLL.ProjectFloorLevel=gtc("Productspec.MyProjectsLib.BLL.ProjectFloorLevel");
Productspec.MyProjectsLib.BLL.ProjectFloorLevel.registerClass('Productspec.MyProjectsLib.BLL.ProjectFloorLevel');
}
if (typeof(Productspec.MyProjectsLib.BLL.ProjectSpaceName) === 'undefined') {
Productspec.MyProjectsLib.BLL.ProjectSpaceName=gtc("Productspec.MyProjectsLib.BLL.ProjectSpaceName");
Productspec.MyProjectsLib.BLL.ProjectSpaceName.registerClass('Productspec.MyProjectsLib.BLL.ProjectSpaceName');
}
