Stock Management Provider

IStockManagementRepositoryService in assembly SanteDB.Core.Api version 3.0.1980.0

Summary

Represents a stock management repository service.

Operations

Operation
Response/Return
Input/Parameter
Description

Adjust

Act

ManufacturedMaterial manufacturedMaterial Place place Int32 quantity Concept reason

Performs a stock adjustment for the specified facility and material.

GetBalance

Int32

Place place ManufacturedMaterial manufacturedMaterial

Gets the balance for the material.

GetConsumed

IEnumerable<ActParticipation>

Guid manufacturedMaterialKey Guid placeKey Nullable<DateTimeOffset> startPeriod Nullable<DateTimeOffset> endPeriod

Get the total amount of consumed objects

FindAdjustments

IEnumerable<Act>

Guid manufacturedMaterialKey Guid placeKey Nullable<DateTimeOffset> startPeriod Nullable<DateTimeOffset> endPeriod

Find adjustments matching the specified

Implementations

Local Stock Management Repository - (SanteDB.Core.Api)

Represents a stock management repository service.

Service Registration

...
<section xsi:type="ApplicationServiceContextConfigurationSection" threadPoolSize="4">
	<serviceProviders>
		...
		<add type="SanteDB.Core.Services.Impl.Repository.LocalStockManagementRepositoryService, SanteDB.Core.Api, Version=3.0.1980.0, Culture=neutral, PublicKeyToken=null" />
		...
	</serviceProviders>

Example Implementation

/// Example Implementation
using SanteDB.Core.Services;
/// Other usings here
public class MyStockManagementRepositoryService : SanteDB.Core.Services.IStockManagementRepositoryService { 
	public String ServiceName => "My own IStockManagementRepositoryService service";
	/// <summary>
	/// Performs a stock adjustment for the specified facility and material.
	/// </summary>
	public Act Adjust(ManufacturedMaterial manufacturedMaterial,Place place,Int32 quantity,Concept reason){
		throw new System.NotImplementedException();
	}
	/// <summary>
	/// Gets the balance for the material.
	/// </summary>
	public Int32 GetBalance(Place place,ManufacturedMaterial manufacturedMaterial){
		throw new System.NotImplementedException();
	}
	/// <summary>
	/// Get the total amount of consumed objects
	/// </summary>
	public IEnumerable<ActParticipation> GetConsumed(Guid manufacturedMaterialKey,Guid placeKey,Nullable<DateTimeOffset> startPeriod,Nullable<DateTimeOffset> endPeriod){
		throw new System.NotImplementedException();
	}
	/// <summary>
	/// Find adjustments matching the specified
	/// </summary>
	public IEnumerable<Act> FindAdjustments(Guid manufacturedMaterialKey,Guid placeKey,Nullable<DateTimeOffset> startPeriod,Nullable<DateTimeOffset> endPeriod){
		throw new System.NotImplementedException();
	}
}

References

Last updated