Interface ICleaningProcedureArticleGroupAssignmentRepository
Repository to save load and delete the assignments between clenaing procedures and article groups.
One article group should only be assigned to one cleaning procedure. This will enshure that at any time an article from a specific group is selected the system can find the specified cleaning procedure.
Namespace: Simplic.Logistics.Cleaning
Assembly: Simplic.Logistics.Cleaning.dll
Syntax
public interface ICleaningProcedureArticleGroupAssignmentRepository
Methods
| Improve this Doc View SourceCheckDuplicateArticleGroups(Guid, Nullable<Guid>)
Checks werther the article group is already assigned to another cleaning procedure then the given.
Declaration
bool CheckDuplicateArticleGroups(Guid articleGroupId, Guid? ignoredCleaningProcedureId = null)
Parameters
Type | Name | Description |
---|---|---|
System.Guid | articleGroupId | The id of the article group that will be checked. |
System.Nullable<System.Guid> | ignoredCleaningProcedureId | An id of a cleaning procedure that can be ignored in the check. |
Returns
Type | Description |
---|---|
System.Boolean | Returns true if the article group is also in another cleaning procedure than the ignored. |
DeleteAssignment(Guid, Guid)
Deletes the assignment between a cleaning procedure and an article group.
Declaration
bool DeleteAssignment(Guid cleaningProcedureId, Guid articleGroupId)
Parameters
Type | Name | Description |
---|---|---|
System.Guid | cleaningProcedureId | The id of a cleaning procedure. |
System.Guid | articleGroupId | The id of an article group. |
Returns
Type | Description |
---|---|
System.Boolean | Returns werther the delete was successfull |
GetAssignedArticleGroupIds(Guid)
Gets the assigned article group ids of the given cleaning procedure.
Declaration
IEnumerable<Guid> GetAssignedArticleGroupIds(Guid cleaningProcedureId)
Parameters
Type | Name | Description |
---|---|---|
System.Guid | cleaningProcedureId | A valid cleaning procedure id. |
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<System.Guid> | Returns an enumerable of all assigned article group ids. |
GetCleaningProcedureForArticle(Guid)
Gets a cleaning procedure for a certain article.
The method will look for the group the article is assigned to and will return the cleaning procedure based on the article group.
Declaration
Guid? GetCleaningProcedureForArticle(Guid articleId)
Parameters
Type | Name | Description |
---|---|---|
System.Guid | articleId | The id of an article. |
Returns
Type | Description |
---|---|
System.Nullable<System.Guid> | Will return a cleaning procedure id or null if no assignment was found. |
GetCleaningProcedureId(Guid)
Gets the single cleaning procedure id which the given article group is assigned to.
Or null when the article group is not assigned to a procedure.
Declaration
Guid? GetCleaningProcedureId(Guid articleGroupId)
Parameters
Type | Name | Description |
---|---|---|
System.Guid | articleGroupId | An article group id. |
Returns
Type | Description |
---|---|
System.Nullable<System.Guid> | Returns an cleaning procedure id, or null when the article group is not assigned |
SaveAssignment(Guid, IList<Guid>)
Saves the assighment between a cleaning procedure and an article group.
Declaration
bool SaveAssignment(Guid cleaningProcedureId, IList<Guid> articleGroupIds)
Parameters
Type | Name | Description |
---|---|---|
System.Guid | cleaningProcedureId | The id of a cleaning procedure. |
System.Collections.Generic.IList<System.Guid> | articleGroupIds | A list of ids of article groups. |
Returns
Type | Description |
---|---|
System.Boolean | Returns werther the save was successfull. |