Type.registerNamespace('AX.DF.OM');
AX.DF.OM.DocumentService=function() {
AX.DF.OM.DocumentService.initializeBase(this);
this._timeout = 0;
this._userContext = null;
this._succeeded = null;
this._failed = null;
}
AX.DF.OM.DocumentService.prototype={
UploadFileToPublicFolder:function(folderPath,fileName,extension,content,refObjectID,succeededCallback, failedCallback, userContext) {
return this._invoke(AX.DF.OM.DocumentService.get_path(), 'UploadFileToPublicFolder',false,{folderPath:folderPath,fileName:fileName,extension:extension,content:content,refObjectID:refObjectID},succeededCallback,failedCallback,userContext); },
RedrawTreeView:function(SelectedNode,succeededCallback, failedCallback, userContext) {
return this._invoke(AX.DF.OM.DocumentService.get_path(), 'RedrawTreeView',false,{SelectedNode:SelectedNode},succeededCallback,failedCallback,userContext); },
DeleteFolder:function(id,succeededCallback, failedCallback, userContext) {
return this._invoke(AX.DF.OM.DocumentService.get_path(), 'DeleteFolder',false,{id:id},succeededCallback,failedCallback,userContext); },
NodeMove:function(Node,neighborNode,Next,_type,succeededCallback, failedCallback, userContext) {
return this._invoke(AX.DF.OM.DocumentService.get_path(), 'NodeMove',false,{Node:Node,neighborNode:neighborNode,Next:Next,_type:_type},succeededCallback,failedCallback,userContext); },
Delete:function(IDS,succeededCallback, failedCallback, userContext) {
return this._invoke(AX.DF.OM.DocumentService.get_path(), 'Delete',false,{IDS:IDS},succeededCallback,failedCallback,userContext); },
UpdateVersionComment:function(id,Comment,succeededCallback, failedCallback, userContext) {
return this._invoke(AX.DF.OM.DocumentService.get_path(), 'UpdateVersionComment',false,{id:id,Comment:Comment},succeededCallback,failedCallback,userContext); },
DrawVersionsGrid:function(id,provider,succeededCallback, failedCallback, userContext) {
return this._invoke(AX.DF.OM.DocumentService.get_path(), 'DrawVersionsGrid',false,{id:id,provider:provider},succeededCallback,failedCallback,userContext); },
DeleteVersion:function(id,provider,versionNumber,succeededCallback, failedCallback, userContext) {
return this._invoke(AX.DF.OM.DocumentService.get_path(), 'DeleteVersion',false,{id:id,provider:provider,versionNumber:versionNumber},succeededCallback,failedCallback,userContext); },
SetCurrentVersion:function(id,provider,versionNumber,succeededCallback, failedCallback, userContext) {
return this._invoke(AX.DF.OM.DocumentService.get_path(), 'SetCurrentVersion',false,{id:id,provider:provider,versionNumber:versionNumber},succeededCallback,failedCallback,userContext); },
SaveActivityComment:function(id,Comment,UserID,succeededCallback, failedCallback, userContext) {
return this._invoke(AX.DF.OM.DocumentService.get_path(), 'SaveActivityComment',false,{id:id,Comment:Comment,UserID:UserID},succeededCallback,failedCallback,userContext); },
RefreshActivityComment:function(id,succeededCallback, failedCallback, userContext) {
return this._invoke(AX.DF.OM.DocumentService.get_path(), 'RefreshActivityComment',false,{id:id},succeededCallback,failedCallback,userContext); },
HaveDeletePermission:function(id,succeededCallback, failedCallback, userContext) {
return this._invoke(AX.DF.OM.DocumentService.get_path(), 'HaveDeletePermission',false,{id:id},succeededCallback,failedCallback,userContext); },
HaveCreatePermission:function(id,succeededCallback, failedCallback, userContext) {
return this._invoke(AX.DF.OM.DocumentService.get_path(), 'HaveCreatePermission',false,{id:id},succeededCallback,failedCallback,userContext); },
HaveUpdatePermission:function(id,succeededCallback, failedCallback, userContext) {
return this._invoke(AX.DF.OM.DocumentService.get_path(), 'HaveUpdatePermission',false,{id:id},succeededCallback,failedCallback,userContext); },
EmptyRecycleBin:function(id,succeededCallback, failedCallback, userContext) {
return this._invoke(AX.DF.OM.DocumentService.get_path(), 'EmptyRecycleBin',false,{id:id},succeededCallback,failedCallback,userContext); },
GetProperties:function(ID,provider,X,Y,width,Offset,succeededCallback, failedCallback, userContext) {
return this._invoke(AX.DF.OM.DocumentService.get_path(), 'GetProperties',false,{ID:ID,provider:provider,X:X,Y:Y,width:width,Offset:Offset},succeededCallback,failedCallback,userContext); },
GetComments:function(ID,X,Y,width,Offset,succeededCallback, failedCallback, userContext) {
return this._invoke(AX.DF.OM.DocumentService.get_path(), 'GetComments',false,{ID:ID,X:X,Y:Y,width:width,Offset:Offset},succeededCallback,failedCallback,userContext); },
DrawNewCommentwindow:function(X,Y,width,Offset,succeededCallback, failedCallback, userContext) {
return this._invoke(AX.DF.OM.DocumentService.get_path(), 'DrawNewCommentwindow',false,{X:X,Y:Y,width:width,Offset:Offset},succeededCallback,failedCallback,userContext); },
GetAdvantageSettings:function(X,Y,width,Offset,succeededCallback, failedCallback, userContext) {
return this._invoke(AX.DF.OM.DocumentService.get_path(), 'GetAdvantageSettings',false,{X:X,Y:Y,width:width,Offset:Offset},succeededCallback,failedCallback,userContext); },
SaveDocumentComment:function(id,Comment,succeededCallback, failedCallback, userContext) {
return this._invoke(AX.DF.OM.DocumentService.get_path(), 'SaveDocumentComment',false,{id:id,Comment:Comment},succeededCallback,failedCallback,userContext); },
GetDocumentFolders:function(Name,text,DataType,Data,DataInterval,succeededCallback, failedCallback, userContext) {
return this._invoke(AX.DF.OM.DocumentService.get_path(), 'GetDocumentFolders',false,{Name:Name,text:text,DataType:DataType,Data:Data,DataInterval:DataInterval},succeededCallback,failedCallback,userContext); },
GetSimilarFolderNames:function(Name,prefixText,succeededCallback, failedCallback, userContext) {
return this._invoke(AX.DF.OM.DocumentService.get_path(), 'GetSimilarFolderNames',false,{Name:Name,prefixText:prefixText},succeededCallback,failedCallback,userContext); },
DrawPermissionGrid:function(folderID,succeededCallback, failedCallback, userContext) {
return this._invoke(AX.DF.OM.DocumentService.get_path(), 'DrawPermissionGrid',false,{folderID:folderID},succeededCallback,failedCallback,userContext); },
DrawUserPermissionGrid:function(folderID,succeededCallback, failedCallback, userContext) {
return this._invoke(AX.DF.OM.DocumentService.get_path(), 'DrawUserPermissionGrid',false,{folderID:folderID},succeededCallback,failedCallback,userContext); },
Propagate:function(folderID,succeededCallback, failedCallback, userContext) {
return this._invoke(AX.DF.OM.DocumentService.get_path(), 'Propagate',false,{folderID:folderID},succeededCallback,failedCallback,userContext); },
SavePermissions:function(permID,cbAllowRead,cbAllowCreate,cbAllowUpdate,cbAllowDelete,cbAllowExecute,succeededCallback, failedCallback, userContext) {
return this._invoke(AX.DF.OM.DocumentService.get_path(), 'SavePermissions',false,{permID:permID,cbAllowRead:cbAllowRead,cbAllowCreate:cbAllowCreate,cbAllowUpdate:cbAllowUpdate,cbAllowDelete:cbAllowDelete,cbAllowExecute:cbAllowExecute},succeededCallback,failedCallback,userContext); },
CategoryMove:function(Node,neighborNode,Next,_type,succeededCallback, failedCallback, userContext) {
return this._invoke(AX.DF.OM.DocumentService.get_path(), 'CategoryMove',false,{Node:Node,neighborNode:neighborNode,Next:Next,_type:_type},succeededCallback,failedCallback,userContext); },
RedrawCategoryTreeView:function(SelectedNode,succeededCallback, failedCallback, userContext) {
return this._invoke(AX.DF.OM.DocumentService.get_path(), 'RedrawCategoryTreeView',false,{SelectedNode:SelectedNode},succeededCallback,failedCallback,userContext); },
RedrawDDCategoryTreeView:function(SelectedNode,succeededCallback, failedCallback, userContext) {
return this._invoke(AX.DF.OM.DocumentService.get_path(), 'RedrawDDCategoryTreeView',false,{SelectedNode:SelectedNode},succeededCallback,failedCallback,userContext); },
AddNewCategory:function(Name,parentID,succeededCallback, failedCallback, userContext) {
return this._invoke(AX.DF.OM.DocumentService.get_path(), 'AddNewCategory',false,{Name:Name,parentID:parentID},succeededCallback,failedCallback,userContext); },
UpdateCategory:function(Name,catID,parentID,succeededCallback, failedCallback, userContext) {
return this._invoke(AX.DF.OM.DocumentService.get_path(), 'UpdateCategory',false,{Name:Name,catID:catID,parentID:parentID},succeededCallback,failedCallback,userContext); },
DeleteCategory:function(catID,succeededCallback, failedCallback, userContext) {
return this._invoke(AX.DF.OM.DocumentService.get_path(), 'DeleteCategory',false,{catID:catID},succeededCallback,failedCallback,userContext); },
DrawCheckedCategories:function(checkedIDs,succeededCallback, failedCallback, userContext) {
return this._invoke(AX.DF.OM.DocumentService.get_path(), 'DrawCheckedCategories',false,{checkedIDs:checkedIDs},succeededCallback,failedCallback,userContext); },
DrawMainCategoryTree:function(checkedIDs,succeededCallback, failedCallback, userContext) {
return this._invoke(AX.DF.OM.DocumentService.get_path(), 'DrawMainCategoryTree',false,{checkedIDs:checkedIDs},succeededCallback,failedCallback,userContext); },
RenderFolderstable:function(ID,ColumnNumber,checkPermissions,succeededCallback, failedCallback, userContext) {
return this._invoke(AX.DF.OM.DocumentService.get_path(), 'RenderFolderstable',false,{ID:ID,ColumnNumber:ColumnNumber,checkPermissions:checkPermissions},succeededCallback,failedCallback,userContext); },
RenderCategoriesTable:function(ID,ColumnNumber,succeededCallback, failedCallback, userContext) {
return this._invoke(AX.DF.OM.DocumentService.get_path(), 'RenderCategoriesTable',false,{ID:ID,ColumnNumber:ColumnNumber},succeededCallback,failedCallback,userContext); },
SaveAlertMe:function(docId,title,SendAlertTo,ChangeType,SendCondition,DeadLine,ItemType,succeededCallback, failedCallback, userContext) {
return this._invoke(AX.DF.OM.DocumentService.get_path(), 'SaveAlertMe',false,{docId:docId,title:title,SendAlertTo:SendAlertTo,ChangeType:ChangeType,SendCondition:SendCondition,DeadLine:DeadLine,ItemType:ItemType},succeededCallback,failedCallback,userContext); },
DeleteAlert:function(ID,succeededCallback, failedCallback, userContext) {
return this._invoke(AX.DF.OM.DocumentService.get_path(), 'DeleteAlert',false,{ID:ID},succeededCallback,failedCallback,userContext); },
ShowProperties:function(ID,x,y,width,height,offset,succeededCallback, failedCallback, userContext) {
return this._invoke(AX.DF.OM.DocumentService.get_path(), 'ShowProperties',false,{ID:ID,x:x,y:y,width:width,height:height,offset:offset},succeededCallback,failedCallback,userContext); }}
AX.DF.OM.DocumentService.registerClass('AX.DF.OM.DocumentService',Sys.Net.WebServiceProxy);
AX.DF.OM.DocumentService._staticInstance = new AX.DF.OM.DocumentService();
AX.DF.OM.DocumentService.set_path = function(value) { AX.DF.OM.DocumentService._staticInstance._path = value; }
AX.DF.OM.DocumentService.get_path = function() { return AX.DF.OM.DocumentService._staticInstance._path; }
AX.DF.OM.DocumentService.set_timeout = function(value) { AX.DF.OM.DocumentService._staticInstance._timeout = value; }
AX.DF.OM.DocumentService.get_timeout = function() { return AX.DF.OM.DocumentService._staticInstance._timeout; }
AX.DF.OM.DocumentService.set_defaultUserContext = function(value) { AX.DF.OM.DocumentService._staticInstance._userContext = value; }
AX.DF.OM.DocumentService.get_defaultUserContext = function() { return AX.DF.OM.DocumentService._staticInstance._userContext; }
AX.DF.OM.DocumentService.set_defaultSucceededCallback = function(value) { AX.DF.OM.DocumentService._staticInstance._succeeded = value; }
AX.DF.OM.DocumentService.get_defaultSucceededCallback = function() { return AX.DF.OM.DocumentService._staticInstance._succeeded; }
AX.DF.OM.DocumentService.set_defaultFailedCallback = function(value) { AX.DF.OM.DocumentService._staticInstance._failed = value; }
AX.DF.OM.DocumentService.get_defaultFailedCallback = function() { return AX.DF.OM.DocumentService._staticInstance._failed; }
AX.DF.OM.DocumentService.set_path("/gdt/ASP.Net/Components/DocumentFlow/DocumentService.asmx");
AX.DF.OM.DocumentService.UploadFileToPublicFolder= function(folderPath,fileName,extension,content,refObjectID,onSuccess,onFailed,userContext) {AX.DF.OM.DocumentService._staticInstance.UploadFileToPublicFolder(folderPath,fileName,extension,content,refObjectID,onSuccess,onFailed,userContext); }
AX.DF.OM.DocumentService.RedrawTreeView= function(SelectedNode,onSuccess,onFailed,userContext) {AX.DF.OM.DocumentService._staticInstance.RedrawTreeView(SelectedNode,onSuccess,onFailed,userContext); }
AX.DF.OM.DocumentService.DeleteFolder= function(id,onSuccess,onFailed,userContext) {AX.DF.OM.DocumentService._staticInstance.DeleteFolder(id,onSuccess,onFailed,userContext); }
AX.DF.OM.DocumentService.NodeMove= function(Node,neighborNode,Next,_type,onSuccess,onFailed,userContext) {AX.DF.OM.DocumentService._staticInstance.NodeMove(Node,neighborNode,Next,_type,onSuccess,onFailed,userContext); }
AX.DF.OM.DocumentService.Delete= function(IDS,onSuccess,onFailed,userContext) {AX.DF.OM.DocumentService._staticInstance.Delete(IDS,onSuccess,onFailed,userContext); }
AX.DF.OM.DocumentService.UpdateVersionComment= function(id,Comment,onSuccess,onFailed,userContext) {AX.DF.OM.DocumentService._staticInstance.UpdateVersionComment(id,Comment,onSuccess,onFailed,userContext); }
AX.DF.OM.DocumentService.DrawVersionsGrid= function(id,provider,onSuccess,onFailed,userContext) {AX.DF.OM.DocumentService._staticInstance.DrawVersionsGrid(id,provider,onSuccess,onFailed,userContext); }
AX.DF.OM.DocumentService.DeleteVersion= function(id,provider,versionNumber,onSuccess,onFailed,userContext) {AX.DF.OM.DocumentService._staticInstance.DeleteVersion(id,provider,versionNumber,onSuccess,onFailed,userContext); }
AX.DF.OM.DocumentService.SetCurrentVersion= function(id,provider,versionNumber,onSuccess,onFailed,userContext) {AX.DF.OM.DocumentService._staticInstance.SetCurrentVersion(id,provider,versionNumber,onSuccess,onFailed,userContext); }
AX.DF.OM.DocumentService.SaveActivityComment= function(id,Comment,UserID,onSuccess,onFailed,userContext) {AX.DF.OM.DocumentService._staticInstance.SaveActivityComment(id,Comment,UserID,onSuccess,onFailed,userContext); }
AX.DF.OM.DocumentService.RefreshActivityComment= function(id,onSuccess,onFailed,userContext) {AX.DF.OM.DocumentService._staticInstance.RefreshActivityComment(id,onSuccess,onFailed,userContext); }
AX.DF.OM.DocumentService.HaveDeletePermission= function(id,onSuccess,onFailed,userContext) {AX.DF.OM.DocumentService._staticInstance.HaveDeletePermission(id,onSuccess,onFailed,userContext); }
AX.DF.OM.DocumentService.HaveCreatePermission= function(id,onSuccess,onFailed,userContext) {AX.DF.OM.DocumentService._staticInstance.HaveCreatePermission(id,onSuccess,onFailed,userContext); }
AX.DF.OM.DocumentService.HaveUpdatePermission= function(id,onSuccess,onFailed,userContext) {AX.DF.OM.DocumentService._staticInstance.HaveUpdatePermission(id,onSuccess,onFailed,userContext); }
AX.DF.OM.DocumentService.EmptyRecycleBin= function(id,onSuccess,onFailed,userContext) {AX.DF.OM.DocumentService._staticInstance.EmptyRecycleBin(id,onSuccess,onFailed,userContext); }
AX.DF.OM.DocumentService.GetProperties= function(ID,provider,X,Y,width,Offset,onSuccess,onFailed,userContext) {AX.DF.OM.DocumentService._staticInstance.GetProperties(ID,provider,X,Y,width,Offset,onSuccess,onFailed,userContext); }
AX.DF.OM.DocumentService.GetComments= function(ID,X,Y,width,Offset,onSuccess,onFailed,userContext) {AX.DF.OM.DocumentService._staticInstance.GetComments(ID,X,Y,width,Offset,onSuccess,onFailed,userContext); }
AX.DF.OM.DocumentService.DrawNewCommentwindow= function(X,Y,width,Offset,onSuccess,onFailed,userContext) {AX.DF.OM.DocumentService._staticInstance.DrawNewCommentwindow(X,Y,width,Offset,onSuccess,onFailed,userContext); }
AX.DF.OM.DocumentService.GetAdvantageSettings= function(X,Y,width,Offset,onSuccess,onFailed,userContext) {AX.DF.OM.DocumentService._staticInstance.GetAdvantageSettings(X,Y,width,Offset,onSuccess,onFailed,userContext); }
AX.DF.OM.DocumentService.SaveDocumentComment= function(id,Comment,onSuccess,onFailed,userContext) {AX.DF.OM.DocumentService._staticInstance.SaveDocumentComment(id,Comment,onSuccess,onFailed,userContext); }
AX.DF.OM.DocumentService.GetDocumentFolders= function(Name,text,DataType,Data,DataInterval,onSuccess,onFailed,userContext) {AX.DF.OM.DocumentService._staticInstance.GetDocumentFolders(Name,text,DataType,Data,DataInterval,onSuccess,onFailed,userContext); }
AX.DF.OM.DocumentService.GetSimilarFolderNames= function(Name,prefixText,onSuccess,onFailed,userContext) {AX.DF.OM.DocumentService._staticInstance.GetSimilarFolderNames(Name,prefixText,onSuccess,onFailed,userContext); }
AX.DF.OM.DocumentService.DrawPermissionGrid= function(folderID,onSuccess,onFailed,userContext) {AX.DF.OM.DocumentService._staticInstance.DrawPermissionGrid(folderID,onSuccess,onFailed,userContext); }
AX.DF.OM.DocumentService.DrawUserPermissionGrid= function(folderID,onSuccess,onFailed,userContext) {AX.DF.OM.DocumentService._staticInstance.DrawUserPermissionGrid(folderID,onSuccess,onFailed,userContext); }
AX.DF.OM.DocumentService.Propagate= function(folderID,onSuccess,onFailed,userContext) {AX.DF.OM.DocumentService._staticInstance.Propagate(folderID,onSuccess,onFailed,userContext); }
AX.DF.OM.DocumentService.SavePermissions= function(permID,cbAllowRead,cbAllowCreate,cbAllowUpdate,cbAllowDelete,cbAllowExecute,onSuccess,onFailed,userContext) {AX.DF.OM.DocumentService._staticInstance.SavePermissions(permID,cbAllowRead,cbAllowCreate,cbAllowUpdate,cbAllowDelete,cbAllowExecute,onSuccess,onFailed,userContext); }
AX.DF.OM.DocumentService.CategoryMove= function(Node,neighborNode,Next,_type,onSuccess,onFailed,userContext) {AX.DF.OM.DocumentService._staticInstance.CategoryMove(Node,neighborNode,Next,_type,onSuccess,onFailed,userContext); }
AX.DF.OM.DocumentService.RedrawCategoryTreeView= function(SelectedNode,onSuccess,onFailed,userContext) {AX.DF.OM.DocumentService._staticInstance.RedrawCategoryTreeView(SelectedNode,onSuccess,onFailed,userContext); }
AX.DF.OM.DocumentService.RedrawDDCategoryTreeView= function(SelectedNode,onSuccess,onFailed,userContext) {AX.DF.OM.DocumentService._staticInstance.RedrawDDCategoryTreeView(SelectedNode,onSuccess,onFailed,userContext); }
AX.DF.OM.DocumentService.AddNewCategory= function(Name,parentID,onSuccess,onFailed,userContext) {AX.DF.OM.DocumentService._staticInstance.AddNewCategory(Name,parentID,onSuccess,onFailed,userContext); }
AX.DF.OM.DocumentService.UpdateCategory= function(Name,catID,parentID,onSuccess,onFailed,userContext) {AX.DF.OM.DocumentService._staticInstance.UpdateCategory(Name,catID,parentID,onSuccess,onFailed,userContext); }
AX.DF.OM.DocumentService.DeleteCategory= function(catID,onSuccess,onFailed,userContext) {AX.DF.OM.DocumentService._staticInstance.DeleteCategory(catID,onSuccess,onFailed,userContext); }
AX.DF.OM.DocumentService.DrawCheckedCategories= function(checkedIDs,onSuccess,onFailed,userContext) {AX.DF.OM.DocumentService._staticInstance.DrawCheckedCategories(checkedIDs,onSuccess,onFailed,userContext); }
AX.DF.OM.DocumentService.DrawMainCategoryTree= function(checkedIDs,onSuccess,onFailed,userContext) {AX.DF.OM.DocumentService._staticInstance.DrawMainCategoryTree(checkedIDs,onSuccess,onFailed,userContext); }
AX.DF.OM.DocumentService.RenderFolderstable= function(ID,ColumnNumber,checkPermissions,onSuccess,onFailed,userContext) {AX.DF.OM.DocumentService._staticInstance.RenderFolderstable(ID,ColumnNumber,checkPermissions,onSuccess,onFailed,userContext); }
AX.DF.OM.DocumentService.RenderCategoriesTable= function(ID,ColumnNumber,onSuccess,onFailed,userContext) {AX.DF.OM.DocumentService._staticInstance.RenderCategoriesTable(ID,ColumnNumber,onSuccess,onFailed,userContext); }
AX.DF.OM.DocumentService.SaveAlertMe= function(docId,title,SendAlertTo,ChangeType,SendCondition,DeadLine,ItemType,onSuccess,onFailed,userContext) {AX.DF.OM.DocumentService._staticInstance.SaveAlertMe(docId,title,SendAlertTo,ChangeType,SendCondition,DeadLine,ItemType,onSuccess,onFailed,userContext); }
AX.DF.OM.DocumentService.DeleteAlert= function(ID,onSuccess,onFailed,userContext) {AX.DF.OM.DocumentService._staticInstance.DeleteAlert(ID,onSuccess,onFailed,userContext); }
AX.DF.OM.DocumentService.ShowProperties= function(ID,x,y,width,height,offset,onSuccess,onFailed,userContext) {AX.DF.OM.DocumentService._staticInstance.ShowProperties(ID,x,y,width,height,offset,onSuccess,onFailed,userContext); }
