Interface IDepartment
Подразделение.
Inherited Members
Namespace: Ascon.Polynom.Api
Assembly: Ascon.Polynom.Api.dll
Syntax
public interface IDepartment : ISecurityElement, IAbleToHaveDescription, ICodeableApiObject, IAbleToHaveExternalId, IAbleToHaveChangeableName, IAbleToHaveName, IDeleteableApiObject, IDepartmentOwner, IAbleToHaveId, IApiObject, IApiEntity, INotifyPropertyChanged
Properties
Phone
Возвращает или задает телефон.
Declaration
string Phone { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Positions
Возвращает должности.
Declaration
IApiReadOnlyCollection<IPosition> Positions { get; }
Property Value
| Type | Description |
|---|---|
| IApiReadOnlyCollection<IPosition> |
SubDepartments
Возвращает суботделения.
Declaration
IApiReadOnlyCollection<IDepartment> SubDepartments { get; }
Property Value
| Type | Description |
|---|---|
| IApiReadOnlyCollection<IDepartment> |
SuperDepartment
Возвращает или задает суперотделение.
Declaration
IDepartment SuperDepartment { get; }
Property Value
| Type | Description |
|---|---|
| IDepartment |
Web
Возвращает или задает веб-адрес.
Declaration
string Web { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Methods
CanMoveTo(IDepartmentOwner)
Определяет можно ли переместить подразделение в указанное подразделение или менеджер безопасности.
Declaration
bool CanMoveTo(IDepartmentOwner destinationDepartmentOwner)
Parameters
| Type | Name | Description |
|---|---|---|
| IDepartmentOwner | destinationDepartmentOwner | Целевой владелец подразделений. |
Returns
| Type | Description |
|---|---|
| bool |
|
CreatePosition(string, Guid?)
Создает должность.
Declaration
IPosition CreatePosition(string name, Guid? id = null)
Parameters
| Type | Name | Description |
|---|---|---|
| string | name | Имя. |
| Guid? | id | Идентификатор должности. |
Returns
| Type | Description |
|---|---|
| IPosition | Созданная должность. |
CreateSubDepartment(string, string, string, string, string, Guid?)
Создает отделение.
Declaration
IDepartment CreateSubDepartment(string name, string code = null, string description = null, string phone = null, string web = null, Guid? id = null)
Parameters
| Type | Name | Description |
|---|---|---|
| string | name | Имя. |
| string | code | Код. |
| string | description | Описание. |
| string | phone | Телефон. |
| string | web | Веб-адрес. |
| Guid? | id | Идентификатор отдела. |
Returns
| Type | Description |
|---|---|
| IDepartment | Созданное отделение. |
MoveTo(IDepartmentOwner)
Перемещает подразделение в другое подразделение.
Declaration
void MoveTo(IDepartmentOwner destinationDepartmentOwner)
Parameters
| Type | Name | Description |
|---|---|---|
| IDepartmentOwner | destinationDepartmentOwner | Целевое подразделение. |