Interface INumberAllocationAgent
Namespace: SuperOffice.WebApi.AgentsAssembly: SuperOffice.WebApi.dll This agent can be used to manage number allocation
Implements
IAgentBase, IDisposableMethods
CreateDefaultRefCountEntityAsync(RequestOptions)
Set default values into a new RefCountEntity. NetServer calculates default values on the entity, which is required when creating/storing a new instanceParameters
requestOptions RequestOptions
Override language/culture codes on this request.
Returns
Task<RefCountEntity> A blank RefCountEntityDeleteRefCountEntityAsync(int, RequestOptions)
Deletes the RefCountEntityParameters
refCountEntityId int
The identity of the RefCountEntity
requestOptions RequestOptions
Override language/culture codes on this request.
Returns
TaskGetNumberEachTemplateAsync(RequestOptions)
Returns true or false if Automatically create new counters for new document templatesParameters
requestOptions RequestOptions
Override language/culture codes on this request.
Returns
Task<bool> Is NumberEachTemplate?GetRefCountEntityAsync(int, RequestOptions)
Gets a specific RefCountEntity object.Parameters
refCountEntityId int
The identifier of the RefCountEntity object
requestOptions RequestOptions
Override language/culture codes on this request.
Returns
Task<RefCountEntity> RefCountEntitySaveDefaultNumberingAsync(RefCountEntity, RequestOptions)
Saves default numbering values in preferencesParameters
refCountEntity RefCountEntity
The refCountEntity that holds the values that will be saved
requestOptions RequestOptions
Override language/culture codes on this request.
Returns
Task voidSaveRefCountEntityAsync(RefCountEntity, RequestOptions)
Updates the existing RefCountEntity or creates a new RefCountEntity if the id parameter is 0.Parameters
refCountEntity RefCountEntity
The RefCountEntity that is saved.
requestOptions RequestOptions
Override language/culture codes on this request.
Returns
Task<RefCountEntity> New or updated RefCountEntitySetNumberEachTemplateAsync(bool, RequestOptions)
Saves true or false if Automatically create new counters for new document templatesParameters
setValue bool
true or false if Automatically create new counters for new document templates
requestOptions RequestOptions
Override language/culture codes on this request.