Class CostCenterManager
Contains the databaseaccess for costcenter entities
Inheritance
System.Object
CostCenterManager
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Assembly: Simplic.ERP.Core.dll
Syntax
public class CostCenterManager
Constructors
|
Improve this Doc
View Source
CostCenterManager()
Declaration
public CostCenterManager()
Methods
|
Improve this Doc
View Source
CheckCostCenterNumber(Int32, Guid, Guid)
Checks if the Number is unique
Declaration
public bool CheckCostCenterNumber(int number, Guid Id, Guid tenantId)
Parameters
Type |
Name |
Description |
System.Int32 |
number |
|
System.Guid |
Id |
|
System.Guid |
tenantId |
|
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
CheckCostCenterNumber(Int32, Guid, Guid, Int32)
Checks if the Number is unique
Declaration
public bool CheckCostCenterNumber(int number, Guid Id, Guid tenantId, int typeId)
Parameters
Type |
Name |
Description |
System.Int32 |
number |
|
System.Guid |
Id |
|
System.Guid |
tenantId |
|
System.Int32 |
typeId |
|
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
Delete(CostCenter)
Sets IsDeleted for this cost center to true.
Declaration
public void Delete(CostCenter center)
Parameters
|
Improve this Doc
View Source
Delete(Guid)
Sets IsDeleted for this cost center id to true.
Declaration
public void Delete(Guid id)
Parameters
Type |
Name |
Description |
System.Guid |
id |
|
|
Improve this Doc
View Source
DeleteAssignment(CostCenterAssignment)
Removes the assigment from the database
Declaration
public void DeleteAssignment(CostCenterAssignment assignment)
Parameters
|
Improve this Doc
View Source
DeleteUserGroup(CostCenterUserGroup)
Removes the usergroup assigment from the database
Declaration
public void DeleteUserGroup(CostCenterUserGroup assignment)
Parameters
|
Improve this Doc
View Source
Get(Guid)
Gets the costcenter by guid
Declaration
public CostCenter Get(Guid guid)
Parameters
Type |
Name |
Description |
System.Guid |
guid |
|
Returns
|
Improve this Doc
View Source
Get(Int32)
Gets the costcenter by guid
Declaration
public CostCenter Get(int number)
Parameters
Type |
Name |
Description |
System.Int32 |
number |
|
Returns
|
Improve this Doc
View Source
Get(Int32, Int32)
Gets the costcenter by guid
Declaration
public CostCenter Get(int number, int typeId)
Parameters
Type |
Name |
Description |
System.Int32 |
number |
|
System.Int32 |
typeId |
|
Returns
|
Improve this Doc
View Source
Get(String)
Gets the costcenter by name
Declaration
public CostCenter Get(string name)
Parameters
Type |
Name |
Description |
System.String |
name |
|
Returns
|
Improve this Doc
View Source
GetAssignment(Guid)
gets a costcenter assigment by id
Declaration
public CostCenterAssignment GetAssignment(Guid id)
Parameters
Type |
Name |
Description |
System.Guid |
id |
|
Returns
|
Improve this Doc
View Source
GetAssignments(Guid)
gets all assignments for a distrebuted costcenter
Declaration
public IEnumerable<CostCenterAssignment> GetAssignments(Guid parentId)
Parameters
Type |
Name |
Description |
System.Guid |
parentId |
|
Returns
|
Improve this Doc
View Source
GetErrorCostCenter(Guid)
Gets or creates an error costcenter for the tenant
Declaration
public CostCenter GetErrorCostCenter(Guid tenantId)
Parameters
Type |
Name |
Description |
System.Guid |
tenantId |
|
Returns
|
Improve this Doc
View Source
GetErrorCostCenter(Guid, Int32)
Gets or creates an error costcenter for the tenant
Declaration
public CostCenter GetErrorCostCenter(Guid tenantId, int typeId)
Parameters
Type |
Name |
Description |
System.Guid |
tenantId |
|
System.Int32 |
typeId |
|
Returns
|
Improve this Doc
View Source
GetUserGroups(Guid)
gets usergroups by costcenter id
Declaration
public IEnumerable<CostCenterUserGroup> GetUserGroups(Guid costCenterId)
Parameters
Type |
Name |
Description |
System.Guid |
costCenterId |
|
Returns
|
Improve this Doc
View Source
Reactivate(Guid)
Reactivates a previously deleted Costcenter.
Declaration
public void Reactivate(Guid costCenterId)
Parameters
Type |
Name |
Description |
System.Guid |
costCenterId |
|
|
Improve this Doc
View Source
Save(CostCenter)
Saves the costcenter to datatable
Declaration
public void Save(CostCenter center)
Parameters
|
Improve this Doc
View Source
SaveAssignment(CostCenterAssignment)
/ Saves the costcenter assignment to datatable
Declaration
public void SaveAssignment(CostCenterAssignment assignment)
Parameters
|
Improve this Doc
View Source
SaveUserGroup(CostCenterUserGroup)
/ Saves the costcenter usergroup assignment to datatable
Declaration
public void SaveUserGroup(CostCenterUserGroup assignment)
Parameters