Перейти к основному содержимому

ListEditor

это просто список объектов с редактированием полей

Описание

Этот элемент управления представляет из себя список объектов, которые можно создавать и изменять их поля. Применяется для полей типа List . Пример:

XxXx.Domain.xml
<List Name="ResponsiblePersonGroups" ChildEntity="ResponsiblePersonGroup" IndexProperty="Index" />

Пример ListEditor

XxXx.UxForm.xml
<ListEditor ShowClearButton="true">
<Label>Представители ответственных лиц</Label>
<PropertyName>ResponsiblePersonGroups</PropertyName>
<EntityId>ResponsiblePersonGroup</EntityId>
<Reorder>true</Reorder>
<ViewForm>
<Controls>
<ReadOnlyText>
<TextExpression>this.Properties.RoleTitle</TextExpression>
<Bold>true</Bold>
</ReadOnlyText>
<ReadOnlyText>
<VisibilityBinding>!this.Properties.RoleTitle</VisibilityBinding>
<TextExpression>'[Не указан заголовок ответственного лица]'</TextExpression>
<Bold>false</Bold>
<CssClass>text-danger</CssClass>
</ReadOnlyText>
<PickListView>
<Label>Представители</Label>
<PropertyName>Representatives</PropertyName>
<ViewForm>
<Controls>
<ReadOnlyText>
<TextExpression>'– ' + this.References.ResponsiblePersonId.Properties.Position + ' ' + this.References.ResponsiblePersonId.References.OrganizationId.Properties.BriefName + ' ' + this.References.ResponsiblePersonId.Properties.FullName + ', ' + this.References.ResponsiblePersonId.Properties.RepresentationDocument</TextExpression>
<Bold>false</Bold>
</ReadOnlyText>
</Controls>
</ViewForm>
</PickListView>
</Controls>
</ViewForm>
<EditForm>
<Controls>
<TextEditor>
<Label>Заголовок ответственного лица</Label>
<PropertyName>RoleTitle</PropertyName>
</TextEditor>
<PickListEditor>
<Label>Представители</Label>
<PropertyName>Representatives</PropertyName>
<PickListViewName>ResponsiblePersonPickList</PickListViewName>
<PickListViewEntityId>ResponsiblePerson</PickListViewEntityId>
<EntityId>ResponsiblePersonGroupResponsiblePerson</EntityId>
<ListItemReferencePropertyName>ResponsiblePersonId</ListItemReferencePropertyName>
<ViewForm>
<Controls>
<ReadOnlyText>
<TextExpression>'– ' + this.References.ResponsiblePersonId.Properties.Position + ' ' + this.References.ResponsiblePersonId.References.OrganizationId.Properties.BriefName + ' ' + this.References.ResponsiblePersonId.Properties.FullName + ', ' + this.References.ResponsiblePersonId.Properties.RepresentationDocument</TextExpression>
<Bold>false</Bold>
</ReadOnlyText>
</Controls>
</ViewForm>
<NewFromListFormName>ResponsiblePersonForm</NewFromListFormName>
<Reorder>true</Reorder>
</PickListEditor>
</Controls>
</EditForm>
</ListEditor>

Элементы управления ListEditor:

Название поляОписание принимаемого типа данных
LabelОтображаемое в браузере название поля
PropertyNameНазвание свойства
EntityIdТип сущностей списка
ViewFormЭлемент который может содержать другие элементы, но ТОЛЬКО нередактируемые, например ReadOnlyText и FileAttachmentListView. При этом внутри Controls указываются поля для отображения одной сущности списка
EditFormОписывает форму для редактирования полей сущности списка
ReorderБулево значение, указывающее, можно ли изменять порядок элементов списка
ShowClearButtonБулево значение, указывающее, будет ли кнопка быстрой отчистки поля от выбранных элементов